From f4c66f0c3cb2ae61c9d89661197ff28c44868783 Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Wed, 25 Oct 2023 23:13:46 -0700 Subject: [PATCH 01/19] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6b7cf1491..a0a8aedbd 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ > 🎁 **New! [Try out the new JetBrains extension (Alpha)](https://plugins.jetbrains.com/plugin/22707-continue-extension)** +> Interested in a 1-on-1, 15 minute introduction to Continue? Fill out [this form](https://forms.gle/H6U6rGDX55oWSWjC8) and we'll get in touch! + ![Continue logo](media/c_d.png)

Continue

From ba6e385030c1bb1fb19c6c8e0661a4882eb42515 Mon Sep 17 00:00:00 2001 From: Mase Graye Date: Thu, 26 Oct 2023 17:46:40 -0500 Subject: [PATCH 02/19] Set CWD when running ui build prelaunch task (#588) Fixes Server + Extension vscode launch configuration. Then previous "npm" type task respected the cwd setting from launch.json. However, the new "shell" type task seems to require it be explicitly set in the task. --- .vscode/tasks.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 7210d7d62..5673d154c 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -60,6 +60,9 @@ "presentation": { "revealProblems": "onProblem", "clear": true + }, + "options": { + "cwd": "${workspaceFolder}/extensions/vscode" } }, // From f6cfdf4f931356722b94fc98a635706414e8797c Mon Sep 17 00:00:00 2001 From: Ty Dunn Date: Fri, 27 Oct 2023 09:10:33 -0700 Subject: [PATCH 03/19] add ref to what llm to use --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a0a8aedbd..10f0ec297 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Press `cmd+shift+r` (MacOS) / `ctrl+shift+r` (Windows) when you come across an e ### Download for [VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) and [JetBrains](https://plugins.jetbrains.com/plugin/22707-continue-extension) -By default, Continue uses `GPT-4` and `GPT-3.5-turbo` via the OpenAI API. You can adjust the config to use different Large Language Models (LLMs), including local, private models. Read more [here](https://continue.dev/docs/customization/models). +By default, Continue uses `GPT-4` and `GPT-3.5-turbo` via the OpenAI API. You can adjust the config to use different Large Language Models (LLMs) like [Code Llama, Claude 2, WizardCoder, PaLM 2, and more](github.com/continuedev/what-llm-to-use). Read more about available model providers [here](https://continue.dev/docs/customization/models). ### [Run the server manually](https://continue.dev/docs/walkthroughs/manually-run-continue) From ce22d3404873ae23cfe865613cb9ed10565f512c Mon Sep 17 00:00:00 2001 From: Ty Dunn Date: Fri, 27 Oct 2023 09:11:31 -0700 Subject: [PATCH 04/19] fixing broken link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 10f0ec297..27227d093 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Press `cmd+shift+r` (MacOS) / `ctrl+shift+r` (Windows) when you come across an e ### Download for [VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) and [JetBrains](https://plugins.jetbrains.com/plugin/22707-continue-extension) -By default, Continue uses `GPT-4` and `GPT-3.5-turbo` via the OpenAI API. You can adjust the config to use different Large Language Models (LLMs) like [Code Llama, Claude 2, WizardCoder, PaLM 2, and more](github.com/continuedev/what-llm-to-use). Read more about available model providers [here](https://continue.dev/docs/customization/models). +By default, Continue uses `GPT-4` and `GPT-3.5-turbo` via the OpenAI API. You can adjust the config to use different Large Language Models (LLMs) like [Code Llama, Claude 2, WizardCoder, PaLM 2, and more](https://github.com/continuedev/what-llm-to-use). Read more [here](https://continue.dev/docs/customization/models). ### [Run the server manually](https://continue.dev/docs/walkthroughs/manually-run-continue) From 7b1f362e82b02b060ba0257cdbeb83c9c19c6dcb Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 27 Oct 2023 16:12:27 +0000 Subject: [PATCH 05/19] =?UTF-8?q?ci:=20=F0=9F=8F=B7=20Update=20PyPI=20vers?= =?UTF-8?q?ion=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/pyproject.toml b/server/pyproject.toml index 8858d4c10..29042701b 100644 --- a/server/pyproject.toml +++ b/server/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "continuedev" -version = "0.1.72" +version = "0.1.73" description = "" authors = ["Nate Sesti "] readme = "README.md" From ef0306441ce7459338cd2dd440d2bbe001f2ea42 Mon Sep 17 00:00:00 2001 From: jwalksir <35584631+jwalksir@users.noreply.github.com> Date: Sat, 28 Oct 2023 15:50:13 -0400 Subject: [PATCH 06/19] Update running-continue-without-internet.md (#590) --- docs/docs/walkthroughs/running-continue-without-internet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/walkthroughs/running-continue-without-internet.md b/docs/docs/walkthroughs/running-continue-without-internet.md index 752c4bff9..1ae7b7a41 100644 --- a/docs/docs/walkthroughs/running-continue-without-internet.md +++ b/docs/docs/walkthroughs/running-continue-without-internet.md @@ -9,7 +9,7 @@ keywords: [no internet, air-gapped, local model] Continue can be run even on an air-gapped computer if you use a local model. You'll have to make a few adjustments for this to work. -1. Download the latest .vsix file from the [Open VSX Registry](https://open-vsx.org/extensions/vscode/Continue/continue) and [install it to VS Code](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix). +1. Download the latest .vsix file from the [Open VSX Registry](https://open-vsx.org/extension/Continue/continue) and [install it to VS Code](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix). 2. In VS Code settings, search "continue" and check the box that says "Manually Running Server". This will stop Continue from trying to kill and redownload the server binary. 3. Follow instructions to [run Continue manually](./manually-run-continue.md). 4. Open `~/.continue/config.py` and set `allow_anonymous_telemetry=False`. This will stop Continue from attempting requests to PostHog. From c61049600ec96a92e02356d79412650dc3883f43 Mon Sep 17 00:00:00 2001 From: Peter Zaback Date: Mon, 30 Oct 2023 17:13:58 -0500 Subject: [PATCH 07/19] Fix URL for Together.ai models list in models.md (#593) --- docs/docs/customization/models.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/customization/models.md b/docs/docs/customization/models.md index 8fc1940e7..2f9fcab82 100644 --- a/docs/docs/customization/models.md +++ b/docs/docs/customization/models.md @@ -24,7 +24,7 @@ Local Models Open-Source Models (not local) -- [TogetherLLM](../reference/Models/togetherllm.md) - Use any model from the [Together Models list](https://docs.together.ai/docs/models-inference) with your Together API key. +- [TogetherLLM](../reference/Models/togetherllm.md) - Use any model from the [Together Models list](https://docs.together.ai/docs/inference-models) with your Together API key. - [ReplicateLLM](../reference/Models/replicatellm.md) - Use any open-source model from the [Replicate Streaming List](https://replicate.com/collections/streaming-language-models) with your Replicate API key. - [HuggingFaceInferenceAPI](../reference/Models/huggingfaceinferenceapi.md) - Use any open-source model from the [Hugging Face Inference API](https://huggingface.co/inference-api) with your Hugging Face token. From db222418da3ed076d54a996e71a3c6a9a2d749e5 Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Wed, 1 Nov 2023 01:57:51 -0700 Subject: [PATCH 08/19] Preview (#595) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Strong typing (#533) * refactor: :recycle: get rid of continuedev.src.continuedev structure * refactor: :recycle: switching back to server folder * feat: :sparkles: make config.py imports shorter * feat: :bookmark: publish as pre-release vscode extension * refactor: :recycle: refactor and add more completion params to ui * build: :building_construction: download from preview S3 * fix: :bug: fix paths * fix: :green_heart: package:pre-release * ci: :green_heart: more time for tests * fix: :green_heart: fix build scripts * fix: :bug: fix import in run.py * fix: :bookmark: update version to try again * ci: 💚 Update package.json version [skip ci] * refactor: :fire: don't check for old extensions version * fix: :bug: small bug fixes * fix: :bug: fix config.py import paths * ci: 💚 Update package.json version [skip ci] * ci: :green_heart: platform-specific builds test #1 * feat: :green_heart: ship with binary * fix: :green_heart: fix copy statement to include.exe for windows * fix: :green_heart: cd extension before packaging * chore: :loud_sound: count tokens generated * fix: :green_heart: remove npm_config_arch * fix: :green_heart: publish as pre-release! * chore: :bookmark: update version * perf: :green_heart: hardcode distro paths * fix: :bug: fix yaml syntax error * chore: :bookmark: update version * fix: :green_heart: update permissions and version * feat: :bug: kill old server if needed * feat: :lipstick: update marketplace icon for pre-release * ci: 💚 Update package.json version [skip ci] * feat: :sparkles: auto-reload for config.py * feat: :wrench: update default config.py imports * feat: :sparkles: codelens in config.py * feat: :sparkles: select model param count from UI * ci: 💚 Update package.json version [skip ci] * feat: :sparkles: more model options, ollama error handling * perf: :zap: don't show server loading immediately * fix: :bug: fixing small UI details * ci: 💚 Update package.json version [skip ci] * feat: :rocket: headers param on LLM class * fix: :bug: fix headers for openai.;y * feat: :sparkles: highlight code on cmd+shift+L * ci: 💚 Update package.json version [skip ci] * feat: :lipstick: sticky top bar in gui.tsx * fix: :loud_sound: websocket logging and horizontal scrollbar * ci: 💚 Update package.json version [skip ci] * feat: :sparkles: allow AzureOpenAI Service through GGML * ci: 💚 Update package.json version [skip ci] * fix: :bug: fix automigration * ci: 💚 Update package.json version [skip ci] * ci: :green_heart: upload binaries in ci, download apple silicon * chore: :fire: remove notes * fix: :green_heart: use curl to download binary * fix: :green_heart: set permissions on apple silicon binary * fix: :green_heart: testing * fix: :green_heart: cleanup file * fix: :green_heart: fix preview.yaml * fix: :green_heart: only upload once per binary * fix: :green_heart: install rosetta * ci: :green_heart: download binary after tests * ci: 💚 Update package.json version [skip ci] * ci: :green_heart: prepare ci for merge to main * feat: :sparkles: improved edit prompts for OS models * feat: :sparkles: add edit templates to model packages * feat: :necktie: allow timeout param for OpenAI LLM class * ci: 💚 Update package.json version [skip ci] * feat: :lipstick: add textgenwebui as official option in Ui * fix: :bug: fix for --meilisearch-url flag * fix: :bug: meilisearch fixes * feat: :sparkles: display model params for previous prompts * fix: :bug: fix overriding of system message * ci: 💚 Update package.json version [skip ci] * fix: :zap: update count_tokens method * feat: :zap: reduce default max_tokens * fix: :bug: fix set_system_message * ✨ Codebase Embeddings (#547) * feat: :sparkles: basic codebase embeddings * feat: :construction: reranking after chroma retrieval * refactor: :truck: rename binary: run to continue_server * ci: :green_heart: only do pypi step in github workflow * ci: 🏷 Update PyPI version [skip ci] * feat: :bug: add openai_api_key param for chroma steps * ci: 🏷 Update PyPI version [skip ci] * build: :green_heart: update pypi package * ci: 🏷 Update PyPI version [skip ci] * fix: :bug: rename run.spec * ci: 🏷 Update PyPI version [skip ci] * feat: :sparkles: params to control embeddings search * ci: 🏷 Update PyPI version [skip ci] * rename run.py * feat: :construction: improvements in progress for embeddings * feat: :art: last bit of cleaning for chunked embeddings * ci: :green_heart: add back pypi deployment in main.yam * ci: 🏷 Update PyPI version [skip ci] * fix: :bug: error handling for chroma index in non-git folder * ci: 🏷 Update PyPI version [skip ci] * fix: :bug: don't log reranking prompt * ci: 🏷 Update PyPI version [skip ci] * feat: :sparkles: add option to select embeddings model * ci: 🏷 Update PyPI version [skip ci] * move path decode/encode functions * ci: 🏷 Update PyPI version [skip ci] * update spec file * Preview (#541) * Strong typing (#533) * refactor: :recycle: get rid of continuedev.src.continuedev structure * refactor: :recycle: switching back to server folder * feat: :sparkles: make config.py imports shorter * feat: :bookmark: publish as pre-release vscode extension * refactor: :recycle: refactor and add more completion params to ui * build: :building_construction: download from preview S3 * fix: :bug: fix paths * fix: :green_heart: package:pre-release * ci: :green_heart: more time for tests * fix: :green_heart: fix build scripts * fix: :bug: fix import in run.py * fix: :bookmark: update version to try again * ci: 💚 Update package.json version [skip ci] * refactor: :fire: don't check for old extensions version * fix: :bug: small bug fixes * fix: :bug: fix config.py import paths * ci: 💚 Update package.json version [skip ci] * ci: :green_heart: platform-specific builds test #1 * feat: :green_heart: ship with binary * fix: :green_heart: fix copy statement to include.exe for windows * fix: :green_heart: cd extension before packaging * chore: :loud_sound: count tokens generated * fix: :green_heart: remove npm_config_arch * fix: :green_heart: publish as pre-release! * chore: :bookmark: update version * perf: :green_heart: hardcode distro paths * fix: :bug: fix yaml syntax error * chore: :bookmark: update version * fix: :green_heart: update permissions and version * feat: :bug: kill old server if needed * feat: :lipstick: update marketplace icon for pre-release * ci: 💚 Update package.json version [skip ci] * feat: :sparkles: auto-reload for config.py * feat: :wrench: update default config.py imports * feat: :sparkles: codelens in config.py * feat: :sparkles: select model param count from UI * ci: 💚 Update package.json version [skip ci] * feat: :sparkles: more model options, ollama error handling * perf: :zap: don't show server loading immediately * fix: :bug: fixing small UI details * ci: 💚 Update package.json version [skip ci] * feat: :rocket: headers param on LLM class * fix: :bug: fix headers for openai.;y * feat: :sparkles: highlight code on cmd+shift+L * ci: 💚 Update package.json version [skip ci] * feat: :lipstick: sticky top bar in gui.tsx * fix: :loud_sound: websocket logging and horizontal scrollbar * ci: 💚 Update package.json version [skip ci] * feat: :sparkles: allow AzureOpenAI Service through GGML * ci: 💚 Update package.json version [skip ci] * fix: :bug: fix automigration * ci: 💚 Update package.json version [skip ci] * ci: :green_heart: upload binaries in ci, download apple silicon * chore: :fire: remove notes * fix: :green_heart: use curl to download binary * fix: :green_heart: set permissions on apple silicon binary * fix: :green_heart: testing * fix: :green_heart: cleanup file * fix: :green_heart: fix preview.yaml * fix: :green_heart: only upload once per binary * fix: :green_heart: install rosetta * ci: :green_heart: download binary after tests * ci: 💚 Update package.json version [skip ci] * ci: :green_heart: prepare ci for merge to main --------- Co-authored-by: GitHub Action * fix: :memo: fix deployent readme * chore: :bookmark: update package.json version * fix: :bug: fix ci to only upload from linux x64, not alpine * ci: 💚 Update package.json version [skip ci] * fix: :bug: fixing up * refactor: :fire: remove sentence_transformers_model option * ci: :green_heart: run preview.yaml * refactor: :recycle: rename to continue_server * ci: :green_heart: update python version in continue_server.spec * ci: :green_heart: checking paths * ci: :green_heart: find path of site-packages * fix * ci: :green_heart: deploy to pre-release * ci: :green_heart: change branch to pull from in ci * perf: :construction_worker: build with tiktoken vocab * chore: :bookmark: upgrade version * ci: 💚 Update package.json version [skip ci] * fix: :zap: update count_tokens method * ci: :green_heart: download continue_server, not run * ci: 💚 Update package.json version [skip ci] * feat: :zap: reduce default max_tokens * fix: :bug: fix set_system_message * ci: :green_heart: update ci for preview branch * build: :green_heart: update pypi package --------- Co-authored-by: GitHub Action * ci: :green_heart: publish to pypi in seperate step * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * feat: :art: small changes to /codebase ui * 📌 update pydantic version * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * 🐛 check for DISCONNECTED before closing ws * 🐛 check for disconnected before sending ws msg * 🚸 add python path to global vscode settings * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * 💄 stop button * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * 🚑 solve ssl file not found error * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * 🔒️ trust_env=True for proxy env var * ⚡️ always use custom aiohttp session for openai * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * ⚡️ flatten messages * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * 🐛 migrate away from legacy completions endpoint * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * 🚑 fix delta undefined * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * ⚡️ retry for readfile in index generation * 💄 inserting at cursor above input box * ⚡️ debouncing /edit streaming * Initial intelliJ plugin changes to support webview (#457) * Initial intelliJ plugin changes to support webview * connect webview websockets * Starting work on downloading server binary from S3 * fix color theme in intellij * refactor name to continuedev * correctly set important variables for onLoad * highlighted code now working * keyboard shortcuts (Actions) * fix: :bug: hf_tgi fix, proxy support for ggml * fix: :bug: remove unecessary logging * Sync the changes * Clean up code * updating how continue works * ci: 🏷 Update PyPI version [skip ci] * docs: :memo: docs for customizing chat / edit templates * docs: :memo: headless mode docs (start) * docs: :memo: updated setup docs * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * fix: :bug: compatibility with python 3.8 * feat: :sparkles: verify_ssl option for all LLMs * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * fix: :bug: verify_ssl and ssl_context mutual exclusivity * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * feat: :adhesive_bandage: ca_bundle_path for maybeproxyopenai * fix: :bug: a few minor fixes * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * fix: :bug: custom escaping instead of URI for diff paths * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * fix: :bug: fix huggingface tgi * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * docs: :memo: small docs update on how continue works * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * Clarifying `logs` instructions in troubleshooting.md (#476) * fix: :bug: fixes to templating messages * fix: some typos (#478) * fix: :bug: fix for lmstudio defaults * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * Implement design patterns for better extensibility * Fix: Ensure read operations in ContinuePluginSelectionListener are run within the correct context using runReadAction. * feat: :sparkles: implement most other ideProtocolClient methods * wait until server is running to connect * remove unnecessary imports, update version * reformat code and optimize the imports * fix: :bug: fix serialization bug * fix: :bug: attempt to fix error from jetbrains marketplace * a few updates * fix: :bug: bringing jetbrains up to par * feat: :sparkles: highlighted code updates in intellij * fix: :ambulance: fix freezing issue * fix: :bug: fix icons, bump version * feat: :sparkles: /edit support, other fixes * quick input, keyboard shortcuts * fix: :bug: fix /edit and keyboard shortcuts and lagging on scroll * feat: :lipstick: welcome panel * chore: :bookmark: update version * ide endpoint for websockets * fix: :ambulance: fix freezing problem * quick input * fix: :bug: small jetbrains fixes * fix: :lipstick: nicer dropdown that can "drop up" * fix: :bug: fix font size for dropdown * fix: :lipstick: fix textarea for quickinput * Preview (#541) * Strong typing (#533) * refactor: :recycle: get rid of continuedev.src.continuedev structure * refactor: :recycle: switching back to server folder * feat: :sparkles: make config.py imports shorter * feat: :bookmark: publish as pre-release vscode extension * refactor: :recycle: refactor and add more completion params to ui * build: :building_construction: download from preview S3 * fix: :bug: fix paths * fix: :green_heart: package:pre-release * ci: :green_heart: more time for tests * fix: :green_heart: fix build scripts * fix: :bug: fix import in run.py * fix: :bookmark: update version to try again * ci: 💚 Update package.json version [skip ci] * refactor: :fire: don't check for old extensions version * fix: :bug: small bug fixes * fix: :bug: fix config.py import paths * ci: 💚 Update package.json version [skip ci] * ci: :green_heart: platform-specific builds test #1 * feat: :green_heart: ship with binary * fix: :green_heart: fix copy statement to include.exe for windows * fix: :green_heart: cd extension before packaging * chore: :loud_sound: count tokens generated * fix: :green_heart: remove npm_config_arch * fix: :green_heart: publish as pre-release! * chore: :bookmark: update version * perf: :green_heart: hardcode distro paths * fix: :bug: fix yaml syntax error * chore: :bookmark: update version * fix: :green_heart: update permissions and version * feat: :bug: kill old server if needed * feat: :lipstick: update marketplace icon for pre-release * ci: 💚 Update package.json version [skip ci] * feat: :sparkles: auto-reload for config.py * feat: :wrench: update default config.py imports * feat: :sparkles: codelens in config.py * feat: :sparkles: select model param count from UI * ci: 💚 Update package.json version [skip ci] * feat: :sparkles: more model options, ollama error handling * perf: :zap: don't show server loading immediately * fix: :bug: fixing small UI details * ci: 💚 Update package.json version [skip ci] * feat: :rocket: headers param on LLM class * fix: :bug: fix headers for openai.;y * feat: :sparkles: highlight code on cmd+shift+L * ci: 💚 Update package.json version [skip ci] * feat: :lipstick: sticky top bar in gui.tsx * fix: :loud_sound: websocket logging and horizontal scrollbar * ci: 💚 Update package.json version [skip ci] * feat: :sparkles: allow AzureOpenAI Service through GGML * ci: 💚 Update package.json version [skip ci] * fix: :bug: fix automigration * ci: 💚 Update package.json version [skip ci] * ci: :green_heart: upload binaries in ci, download apple silicon * chore: :fire: remove notes * fix: :green_heart: use curl to download binary * fix: :green_heart: set permissions on apple silicon binary * fix: :green_heart: testing * fix: :green_heart: cleanup file * fix: :green_heart: fix preview.yaml * fix: :green_heart: only upload once per binary * fix: :green_heart: install rosetta * ci: :green_heart: download binary after tests * ci: 💚 Update package.json version [skip ci] * ci: :green_heart: prepare ci for merge to main --------- Co-authored-by: GitHub Action * fix: :memo: fix deployent readme * fix: :bug: do read operation in readAction * chore: :bookmark: update version * 🐛 small jetbrains fixes * ⚡️ exponential backoff jetbrains * 🐛 fix history loading bug * 💄 many small ui fixes * 🐛 fixes freezing problem (actually) * 🥅 catch errors, other stuff * 🐛 many jetbrains fixes * 💄 when no context items found, say in dropdown * 🎉 VS Code tutorial * ✨ jetbrains tutorial file * ⚡️ exponential backoff for ide websockets * 🎉 unused work on intellij editor inlay * ✨ server loading progress messages * ✨ additional progress update * 💄 fix /edit flickering, keyboard interactions --------- Co-authored-by: Nate Sesti Co-authored-by: Ty Dunn Co-authored-by: GitHub Action Co-authored-by: Aaron Mihalik Co-authored-by: LangLangBart <92653266+LangLangBart@users.noreply.github.com> Co-authored-by: Nate Sesti <33237525+sestinj@users.noreply.github.com> * 💚 update binaries in preview workflow * ci: 🏷 Update PyPI version [skip ci] * 💚 log prepackaging error * 💚 remove ci steps for testing * 💚 make npm run build work on windows * 🔥 remove codebase embeddings from default config * 🐛 fix jetbrains input key handling * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * 🔊 add vscMachineId to user interest form * 💄 focus continue input box after quick input * ✨ Show VS Code Tutorial * ✨ chatml template_messages * 🐛 fix gh action s3 bucket name, handle ollama err * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * ✏️ automatically remove trailing / from serverUrl * Nate/better embeddings (#564) * ♻️ refactoring codebase index folder * ➕ tree_sitter dependency * 🐛 solve a few indexing bugs * ⚡️ code chunker * ✏️ automatically remove trailing / from serverUrl * 🎨 introduce Chunk class * 🎨 finish chunking refactor * 🐛 call format_exception so that 3.8-compatible * ci: 🏷 Update PyPI version [skip ci] * register/unregister shortcuts instead of unregistering the commands themselves (#568) * 💚 fix tree_sitter_languages build for windows * 🚸 allow toggling telemetry from vscode settings * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * 🔊 update logging * ♻️ refactor extension folders and react-app * fix: hotkey for new session (#572) * 💄 file icons, preview context items * 💄 toggle to show context items * 💄 nicer preview dropdown * ci: 🏷 Update PyPI version [skip ci] * 💚 fix path in yaml * ci: 🏷 Update PyPI version [skip ci] * 💚 one more path fix to GH workflows * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * 💄 inline keyboard shortcut suggestions * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * 👷 parameterize .spec file * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * 🐛 use platform-specific keyboard shortcut icons * ci: 🏷 Update PyPI version [skip ci] * ci: 💚 Update package.json version [skip ci] * 🧑‍💻 refresh contents of highlighted ranges * 🐛 stop description and title gen if step stopped * 🐛 fix hidden items in dropdown by setting height * 🔖 update compatibility for eap jetbrains * ✨ continue ascii art * ♻️ use message IDs * 🚧 can at start the server * ⚡️ switch to socket.io! * 🚧 socket.io for GUI * 🚧 working out proper object composition * 🏷️ regenerate types * 🚧 implement first version of SessionState reducer * 🚧 Fixed all type errors in gui * 🚧 basic chat is working! * 🚧 prompt inspection * 🚧 mostly fixed session loading/saving * 🚧 slash commands and context providers * 🚧 inspect prompt * 🚧 highlighted code * 🚧 preview context items * ✨ state persistence * 🚧 /edit * 🚧 settings * 🚧 change models * 🚧 /share * 🚧 fixed saving history * 🚧 /clear * undo reset * 🐛 small fixes * 🚧 intellij socket.io * 🐛 refactor for Intellij * 🐛 fix gui connection, ci * 🐛 health endpoint * 💚 give more time in ci * 💚 health * 💚 testing ci server start * 🐛 don't ignore stdio * 💚 pysqlite3-binary * 💚 import new sqlite * 👷 build sqlite from source * 💡 ci * 📌 try building with python3.11 * 👷 build sqlite, try again * 💚 if ubuntu * 💚 ubuntu latest * ✅ don't call done in test * 📌 use newer ubuntu * ci: 💚 Update package.json version [skip ci] * 🐛 uncomment testing tweaks * ci: 💚 Update package.json version [skip ci] * 🐛 small fixes * ⚡️ limit to avoid max msg size with socketio * 🐛 ignore other msg types in ide * ci: 💚 Update package.json version [skip ci] * ✨ debug terminal * ci: 💚 Update package.json version [skip ci] * 🐛 merge ranges * 🐛 fix vscMediaUrl * ci: 💚 Update package.json version [skip ci] * ✨ Ask Continue * ci: 💚 Update package.json version [skip ci] * 👷 don't publish binaries from main * 📝 fix docs --------- Co-authored-by: GitHub Action Co-authored-by: Bishwendu Kundu Co-authored-by: Ty Dunn Co-authored-by: Aaron Mihalik Co-authored-by: LangLangBart <92653266+LangLangBart@users.noreply.github.com> Co-authored-by: James Vogel --- .github/workflows/main.yaml | 100 +-- .github/workflows/preview.yaml | 189 +++-- continue_server.py | 4 + continue_server.spec | 3 +- extensions/intellij/README.md | 2 +- extensions/intellij/build.gradle.kts | 2 +- .../ContinuePluginStartupActivity.kt | 9 +- .../continue/Diffs.kt | 3 +- .../continue/IdeProtocolClient.kt | 319 ++++--- .../factories/CustomhandlerFactory.kt | 3 +- .../ContinuePluginSelectionListener.kt | 3 +- .../ContinueExtensionSettingsService.kt | 3 +- .../services/ContinuePluginService.kt | 6 +- .../ContinuePluginToolWindowFactory.kt | 44 +- .../src/main/resources/META-INF/plugin.xml | 2 +- .../src/main/resources/continue_tutorial.py | 13 +- .../main/resources/webview/assets/index.css | 2 +- .../main/resources/webview/assets/index.js | 738 ++++++++-------- extensions/vscode/continue_tutorial.py | 6 + extensions/vscode/gui/assets/index.css | 2 +- extensions/vscode/gui/assets/index.js | 738 ++++++++-------- .../vscode/manual-testing-sandbox/example.ts | 4 +- .../nested-folder/helloNested.py | 3 + extensions/vscode/package-lock.json | 172 +++- extensions/vscode/package.json | 4 +- extensions/vscode/schema/ContextItemId.d.ts | 19 + .../schema/ContextProviderDescription.d.ts | 22 + extensions/vscode/schema/ContinueConfig.d.ts | 27 +- extensions/vscode/schema/ContinueError.d.ts | 16 + extensions/vscode/schema/FullState.d.ts | 177 ---- extensions/vscode/schema/Models.d.ts | 8 +- ...oryNode.d.ts => PersistedSessionInfo.d.ts} | 85 +- .../schema/RangeInFileWithContents.d.ts | 35 + .../vscode/schema/SessionState.d.ts | 75 +- extensions/vscode/schema/SessionUpdate.d.ts | 61 ++ .../schema/SlashCommandDescription.d.ts | 16 + .../vscode/scripts/install_from_source.py | 4 +- extensions/vscode/src/activation/activate.ts | 52 +- extensions/vscode/src/commands.ts | 42 +- extensions/vscode/src/continueIdeClient.ts | 241 +++--- extensions/vscode/src/debugPanel.ts | 190 ++--- extensions/vscode/src/diffs.ts | 3 +- extensions/vscode/src/util/messenger.ts | 177 ---- gui/package-lock.json | 186 ++++ gui/package.json | 4 + gui/src/App.tsx | 68 +- gui/src/components/ComboBox.tsx | 163 ++-- gui/src/components/ContinueButton.tsx | 4 +- gui/src/components/ErrorStepContainer.tsx | 12 +- gui/src/components/Layout.tsx | 15 +- gui/src/components/Loader.tsx | 4 +- gui/src/components/ModelCard.tsx | 4 +- gui/src/components/PillButton.tsx | 68 +- gui/src/components/StepContainer.tsx | 68 +- gui/src/components/Suggestions.tsx | 14 +- gui/src/components/UserInputContainer.tsx | 356 -------- gui/src/components/VSCodeFileLink.tsx | 4 +- .../dialogs/AddContextGroupDialog.tsx | 2 +- .../dialogs/SelectContextGroupDialog.tsx | 2 +- .../AbstractContinueGUIClientProtocol.ts | 16 +- gui/src/hooks/ContinueGUIClientProtocol.ts | 156 ++-- gui/src/hooks/messenger.ts | 108 ++- gui/src/hooks/useContinueClient.ts | 49 ++ gui/src/hooks/useSetup.ts | 151 ++++ gui/src/hooks/useWebsocket.ts | 48 -- gui/src/hooks/vscodeMessenger.ts | 8 +- gui/src/main.tsx | 11 +- gui/src/pages/error.tsx | 24 +- gui/src/pages/gui.tsx | 530 ++++++------ gui/src/pages/history.tsx | 43 +- gui/src/pages/modelconfig.tsx | 4 +- gui/src/redux/selectors/chatSelectors.ts | 11 - gui/src/redux/selectors/miscSelectors.ts | 5 - gui/src/redux/slices/chatSlice.ts | 93 -- gui/src/redux/slices/configSlice.ts | 18 +- gui/src/redux/slices/miscSlice.ts | 10 +- gui/src/redux/slices/serverStateReducer.ts | 100 +-- gui/src/redux/slices/sessionStateReducer.ts | 330 ++++++++ gui/src/redux/store.ts | 80 +- gui/src/schema/ContextItemId.d.ts | 19 + .../schema/ContextProviderDescription.d.ts | 22 + gui/src/schema/ContinueConfig.d.ts | 27 +- gui/src/schema/ContinueError.d.ts | 16 + gui/src/schema/FullState.d.ts | 177 ---- gui/src/schema/Models.d.ts | 8 +- ...History.d.ts => PersistedSessionInfo.d.ts} | 91 +- gui/src/schema/RangeInFileWithContents.d.ts | 35 + .../src/schema/SessionState.d.ts | 81 +- gui/src/schema/SessionUpdate.d.ts | 61 ++ gui/src/schema/SlashCommandDescription.d.ts | 16 + gui/src/vscode/index.ts | 30 +- schema/json/ContextItemId.json | 25 + schema/json/ContextProviderDescription.json | 39 + schema/json/ContinueConfig.json | 35 +- schema/json/ContinueError.json | 24 + schema/json/FullState.json | 413 --------- schema/json/Models.json | 14 +- ...oryNode.json => PersistedSessionInfo.json} | 222 +++-- schema/json/RangeInFileWithContents.json | 64 ++ .../json/{History.json => SessionState.json} | 217 ++--- schema/json/SessionUpdate.json | 136 +++ schema/json/SlashCommandDescription.json | 24 + server/config.py | 2 +- server/continuedev/__init__.py | 5 +- server/continuedev/__main__.py | 12 + server/continuedev/core/abstract_sdk.py | 82 -- server/continuedev/core/autopilot.py | 793 +++++------------- server/continuedev/core/config.py | 115 ++- server/continuedev/core/context.py | 185 ++-- server/continuedev/core/main.py | 195 ++--- server/continuedev/core/models.py | 59 +- server/continuedev/core/sdk.py | 211 ++--- server/continuedev/core/steps.py | 103 +-- server/continuedev/headless/__init__.py | 23 +- server/continuedev/headless/headless_ide.py | 4 - .../libs/constants/default_config.py | 6 - server/continuedev/libs/llm/anthropic.py | 4 +- server/continuedev/libs/llm/base.py | 18 +- server/continuedev/libs/llm/ggml.py | 31 +- server/continuedev/libs/llm/ollama.py | 4 +- server/continuedev/libs/llm/openai.py | 6 +- .../continuedev/libs/llm/openai_free_trial.py | 8 +- server/continuedev/libs/llm/prompts/chat.py | 25 +- server/continuedev/libs/llm/replicate.py | 4 +- server/continuedev/libs/llm/text_gen_webui.py | 4 - server/continuedev/libs/llm/together.py | 19 +- server/continuedev/libs/util/edit_config.py | 19 +- server/continuedev/libs/util/logging.py | 4 +- server/continuedev/libs/util/queue.py | 25 +- server/continuedev/libs/util/telemetry.py | 13 - server/continuedev/models/filesystem.py | 6 + .../models/generate_json_schema.py | 27 +- server/continuedev/models/websockets.py | 13 + .../plugins/context_providers/file.py | 61 +- .../plugins/context_providers/filetree.py | 2 +- .../context_providers/highlighted_code.py | 85 +- .../plugins/context_providers/search.py | 2 +- .../plugins/context_providers/terminal.py | 15 +- server/continuedev/plugins/policies/commit.py | 6 +- .../continuedev/plugins/policies/default.py | 38 +- .../continuedev/plugins/policies/headless.py | 15 +- .../recipes/AddTransformRecipe/README.md | 9 - .../AddTransformRecipe/dlt_transform_docs.md | 142 ---- .../recipes/AddTransformRecipe/main.py | 31 - .../recipes/AddTransformRecipe/steps.py | 106 --- .../recipes/CreatePipelineRecipe/README.md | 0 .../recipes/CreatePipelineRecipe/main.py | 40 - .../recipes/CreatePipelineRecipe/steps.py | 243 ------ .../plugins/recipes/DDtoBQRecipe/README.md | 3 - .../dlt_duckdb_to_bigquery_docs.md | 85 -- .../plugins/recipes/DDtoBQRecipe/main.py | 31 - .../plugins/recipes/DDtoBQRecipe/steps.py | 119 --- .../DeployPipelineAirflowRecipe/README.md | 0 .../DeployPipelineAirflowRecipe/main.py | 86 -- .../DeployPipelineAirflowRecipe/steps.py | 125 --- .../plugins/recipes/TemplateRecipe/main.py | 2 +- server/continuedev/plugins/steps/chat.py | 332 +------- server/continuedev/plugins/steps/chroma.py | 38 +- .../plugins/steps/clear_history.py | 6 +- server/continuedev/plugins/steps/cmd.py | 8 +- .../plugins/steps/draft/typeorm.py | 2 +- .../plugins/steps/function_calling.py | 261 ++++++ .../plugins/steps/input/nl_multiselect.py | 32 - server/continuedev/plugins/steps/main.py | 25 +- .../continuedev/plugins/steps/on_traceback.py | 7 +- .../continuedev/plugins/steps/open_config.py | 3 +- .../plugins/steps/share_session.py | 36 +- server/continuedev/server/gui.py | 531 +----------- server/continuedev/server/ide.py | 718 +--------------- server/continuedev/server/main.py | 36 +- .../continuedev/server/meilisearch_server.py | 4 +- server/continuedev/server/protocols/gui.py | 314 +++++++ .../server/protocols/gui_protocol.py | 15 + server/continuedev/server/protocols/ide.py | 474 +++++++++++ .../server/{ => protocols}/ide_protocol.py | 30 +- server/continuedev/server/session_manager.py | 195 ----- server/continuedev/server/sessions.py | 129 +++ .../server/websockets_messenger.py | 142 ++++ server/continuedev/server/window_manager.py | 242 ++++++ server/poetry.lock | 88 +- server/pyproject.toml | 1 + server/requirements.txt | 3 +- 182 files changed, 6827 insertions(+), 8305 deletions(-) create mode 100644 extensions/vscode/schema/ContextItemId.d.ts create mode 100644 extensions/vscode/schema/ContextProviderDescription.d.ts create mode 100644 extensions/vscode/schema/ContinueError.d.ts delete mode 100644 extensions/vscode/schema/FullState.d.ts rename extensions/vscode/schema/{HistoryNode.d.ts => PersistedSessionInfo.d.ts} (56%) create mode 100644 extensions/vscode/schema/RangeInFileWithContents.d.ts rename gui/src/schema/HistoryNode.d.ts => extensions/vscode/schema/SessionState.d.ts (56%) create mode 100644 extensions/vscode/schema/SessionUpdate.d.ts create mode 100644 extensions/vscode/schema/SlashCommandDescription.d.ts delete mode 100644 extensions/vscode/src/util/messenger.ts delete mode 100644 gui/src/components/UserInputContainer.tsx create mode 100644 gui/src/hooks/useContinueClient.ts create mode 100644 gui/src/hooks/useSetup.ts delete mode 100644 gui/src/hooks/useWebsocket.ts delete mode 100644 gui/src/redux/selectors/chatSelectors.ts delete mode 100644 gui/src/redux/selectors/miscSelectors.ts delete mode 100644 gui/src/redux/slices/chatSlice.ts create mode 100644 gui/src/redux/slices/sessionStateReducer.ts create mode 100644 gui/src/schema/ContextItemId.d.ts create mode 100644 gui/src/schema/ContextProviderDescription.d.ts create mode 100644 gui/src/schema/ContinueError.d.ts delete mode 100644 gui/src/schema/FullState.d.ts rename gui/src/schema/{History.d.ts => PersistedSessionInfo.d.ts} (52%) create mode 100644 gui/src/schema/RangeInFileWithContents.d.ts rename extensions/vscode/schema/History.d.ts => gui/src/schema/SessionState.d.ts (52%) create mode 100644 gui/src/schema/SessionUpdate.d.ts create mode 100644 gui/src/schema/SlashCommandDescription.d.ts create mode 100644 schema/json/ContextItemId.json create mode 100644 schema/json/ContextProviderDescription.json create mode 100644 schema/json/ContinueError.json delete mode 100644 schema/json/FullState.json rename schema/json/{HistoryNode.json => PersistedSessionInfo.json} (63%) create mode 100644 schema/json/RangeInFileWithContents.json rename schema/json/{History.json => SessionState.json} (55%) create mode 100644 schema/json/SessionUpdate.json create mode 100644 schema/json/SlashCommandDescription.json delete mode 100644 server/continuedev/core/abstract_sdk.py create mode 100644 server/continuedev/models/websockets.py delete mode 100644 server/continuedev/plugins/recipes/AddTransformRecipe/README.md delete mode 100644 server/continuedev/plugins/recipes/AddTransformRecipe/dlt_transform_docs.md delete mode 100644 server/continuedev/plugins/recipes/AddTransformRecipe/main.py delete mode 100644 server/continuedev/plugins/recipes/AddTransformRecipe/steps.py delete mode 100644 server/continuedev/plugins/recipes/CreatePipelineRecipe/README.md delete mode 100644 server/continuedev/plugins/recipes/CreatePipelineRecipe/main.py delete mode 100644 server/continuedev/plugins/recipes/CreatePipelineRecipe/steps.py delete mode 100644 server/continuedev/plugins/recipes/DDtoBQRecipe/README.md delete mode 100644 server/continuedev/plugins/recipes/DDtoBQRecipe/dlt_duckdb_to_bigquery_docs.md delete mode 100644 server/continuedev/plugins/recipes/DDtoBQRecipe/main.py delete mode 100644 server/continuedev/plugins/recipes/DDtoBQRecipe/steps.py delete mode 100644 server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/README.md delete mode 100644 server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/main.py delete mode 100644 server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/steps.py create mode 100644 server/continuedev/plugins/steps/function_calling.py delete mode 100644 server/continuedev/plugins/steps/input/nl_multiselect.py create mode 100644 server/continuedev/server/protocols/gui.py create mode 100644 server/continuedev/server/protocols/gui_protocol.py create mode 100644 server/continuedev/server/protocols/ide.py rename server/continuedev/server/{ => protocols}/ide_protocol.py (83%) delete mode 100644 server/continuedev/server/session_manager.py create mode 100644 server/continuedev/server/sessions.py create mode 100644 server/continuedev/server/websockets_messenger.py create mode 100644 server/continuedev/server/window_manager.py diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index f616c60a1..19b947ec7 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -7,7 +7,7 @@ on: jobs: pypi-deployment: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest permissions: contents: write steps: @@ -64,19 +64,19 @@ jobs: platform: win32 arch: arm64 npm_config_arch: arm - - os: ubuntu-20.04 + - os: ubuntu-latest platform: linux arch: x64 npm_config_arch: x64 - - os: ubuntu-20.04 + - os: ubuntu-latest platform: linux arch: arm64 npm_config_arch: arm64 - - os: ubuntu-20.04 + - os: ubuntu-latest platform: linux arch: armhf npm_config_arch: arm - - os: ubuntu-20.04 + - os: ubuntu-latest platform: alpine arch: x64 npm_config_arch: x64 @@ -97,11 +97,12 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10.8" + python-version: "3.11" - - name: Install Pyinstaller + - name: Install dependencies run: | - pip install pyinstaller + python -m pip install --upgrade pip + pip install poetry - name: Install Dependencies run: | @@ -143,7 +144,7 @@ jobs: path: extensions/vscode/exe/continue_server - uses: actions/upload-artifact@v2 - if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' && matrix.platform == 'linux' + if: matrix.os == 'ubuntu-latest' && matrix.arch == 'x64' && matrix.platform == 'linux' with: name: LinuxBinary path: extensions/vscode/exe/continue_server @@ -200,13 +201,13 @@ jobs: export DISPLAY=:99 # Export the display number to the environment cd extensions/vscode npm run test - if: matrix.os == 'ubuntu-20.04' + if: matrix.os == 'ubuntu-latest' - name: Run extension tests run: | cd extensions/vscode npm run test - if: matrix.os != 'ubuntu-20.04' + if: matrix.os != 'ubuntu-latest' # 3.5 If on Apple Silicon, download the binary from S3 bucket - name: Remove existing binary @@ -215,7 +216,7 @@ jobs: - name: Download Apple Silicon Binary if: matrix.os == 'macos-latest' && matrix.arch == 'arm64' - run: curl -o extensions/vscode/exe/continue_server https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon/continue_server + run: curl -o extensions/vscode/exe/continue_server https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon-preview/continue_server - name: Set permissions run: | @@ -241,7 +242,7 @@ jobs: if: always() publish: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: build permissions: contents: write @@ -285,7 +286,7 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git commit -am "ci: 💚 Update package.json version [skip ci]" + git commit -am "ci: 🏷 Update PyPI version [skip ci]" - name: Push changes uses: ad-m/github-push-action@master @@ -294,42 +295,43 @@ jobs: branch: ${{ github.ref }} # 5. Download binaries and upload to S3 - - name: Download Linux build - uses: actions/download-artifact@v2 - with: - name: LinuxBinary - path: exe/linux + # Skipping this until JetBrains is up-to-date + # - name: Download Linux build + # uses: actions/download-artifact@v2 + # with: + # name: LinuxBinary + # path: exe/linux - - name: Download macOS build - uses: actions/download-artifact@v2 - with: - name: macOSBinary - path: exe/mac + # - name: Download macOS build + # uses: actions/download-artifact@v2 + # with: + # name: macOSBinary + # path: exe/mac - - name: Download Windows build - uses: actions/download-artifact@v2 - with: - name: WindowsBinary - path: exe/windows + # - name: Download Windows build + # uses: actions/download-artifact@v2 + # with: + # name: WindowsBinary + # path: exe/windows - - name: Upload binaries to S3 (s3.continue.dev) - uses: jakejarvis/s3-sync-action@master - with: - args: --acl public-read --follow-symlinks - env: - AWS_S3_BUCKET: s3.continue.dev - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_REGION: "us-west-1" - SOURCE_DIR: "exe" + # - name: Upload binaries to S3 (s3.continue.dev) + # uses: jakejarvis/s3-sync-action@master + # with: + # args: --acl public-read --follow-symlinks + # env: + # AWS_S3_BUCKET: s3.continue.dev + # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + # AWS_REGION: "us-west-1" + # SOURCE_DIR: "exe" - - name: Upload binaries to S3 (continue-server-binaries) - uses: jakejarvis/s3-sync-action@master - with: - args: --acl public-read --follow-symlinks - env: - AWS_S3_BUCKET: continue-server-binaries - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_REGION: "us-west-1" - SOURCE_DIR: "exe" + # - name: Upload binaries to S3 (continue-server-binaries) + # uses: jakejarvis/s3-sync-action@master + # with: + # args: --acl public-read --follow-symlinks + # env: + # AWS_S3_BUCKET: continue-server-binaries + # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + # AWS_REGION: "us-west-1" + # SOURCE_DIR: "exe" diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 022372383..eb88e555f 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -6,47 +6,47 @@ on: - preview jobs: - pypi-deployment: - runs-on: ubuntu-20.04 - permissions: - contents: write - steps: - - name: Check out code - uses: actions/checkout@v2 + # pypi-deployment: + # runs-on: ubuntu-latest + # permissions: + # contents: write + # steps: + # - name: Check out code + # uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.10.8" + # - name: Set up Python + # uses: actions/setup-python@v4 + # with: + # python-version: "3.10.8" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install poetry + # - name: Install dependencies + # run: | + # python -m pip install --upgrade pip + # pip install poetry - - name: Install project dependencies - run: cd server && poetry install + # - name: Install project dependencies + # run: cd server && poetry install - - name: Configure Poetry Token - run: cd server && poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} + # - name: Configure Poetry Token + # run: cd server && poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} - - name: Bump the version - run: cd server && poetry version patch + # - name: Bump the version + # run: cd server && poetry version patch - - name: Build and publish the package - run: cd server && poetry publish --build + # - name: Build and publish the package + # run: cd server && poetry publish --build - - name: Commit changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git commit -am "ci: 🏷 Update PyPI version [skip ci]" + # - name: Commit changes + # run: | + # git config --local user.email "action@github.com" + # git config --local user.name "GitHub Action" + # git commit -am "ci: 🏷 Update PyPI version [skip ci]" - - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.ref }} + # - name: Push changes + # uses: ad-m/github-push-action@master + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # branch: ${{ github.ref }} build: strategy: @@ -64,19 +64,19 @@ jobs: platform: win32 arch: arm64 npm_config_arch: arm - - os: ubuntu-20.04 + - os: ubuntu-latest platform: linux arch: x64 npm_config_arch: x64 - - os: ubuntu-20.04 + - os: ubuntu-latest platform: linux arch: arm64 npm_config_arch: arm64 - - os: ubuntu-20.04 + - os: ubuntu-latest platform: linux arch: armhf npm_config_arch: arm - - os: ubuntu-20.04 + - os: ubuntu-latest platform: alpine arch: x64 npm_config_arch: x64 @@ -97,7 +97,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10.8" + python-version: "3.11" - name: Install Pyinstaller run: | @@ -107,6 +107,36 @@ jobs: run: | pip install -r server/requirements.txt + # - name: Install newer sqlite on linux + # run: pip install pysqlite3-binary + # if: matrix.os == 'ubuntu-latest' + + # Download the latest release of SQLite source code and build the source + # amalgamation files (sqlite3.c and sqlite3.h). + + # - name: Git clone pysqlite3 + # run: git clone https://github.com/coleifer/pysqlite3 + # if: matrix.os == 'ubuntu-latest' + + # - name: Install newer sqlite3 on linux + # run: | + # wget https://www.sqlite.org/src/tarball/sqlite.tar.gz?r=release \ + # -O sqlite.tar.gz + # tar xzf sqlite.tar.gz + # cd sqlite/ + # ./configure + # make sqlite3.c + # if: matrix.os == 'ubuntu-latest' + + # Copy the sqlite3 amalgamation files into the root of the pysqlite3 checkout + # and run build_static + build: + # - name: Copy and static build + # run: | + # cp sqlite/sqlite3.[ch] pysqlite3/ + # cd pysqlite3 + # python setup.py build_static build + # if: matrix.os == 'ubuntu-latest' + - name: Install tiktoken vocab file # Done to avoid extra network request to download the vocab file run: | @@ -143,7 +173,7 @@ jobs: path: extensions/vscode/exe/continue_server - uses: actions/upload-artifact@v2 - if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' && matrix.platform == 'linux' + if: matrix.os == 'ubuntu-latest' && matrix.arch == 'x64' && matrix.platform == 'linux' with: name: LinuxBinary path: extensions/vscode/exe/continue_server @@ -200,13 +230,13 @@ jobs: export DISPLAY=:99 # Export the display number to the environment cd extensions/vscode npm run test - if: matrix.os == 'ubuntu-20.04' + if: matrix.os == 'ubuntu-latest' - name: Run extension tests run: | cd extensions/vscode npm run test - if: matrix.os != 'ubuntu-20.04' + if: matrix.os != 'ubuntu-latest' # 3.5 If on Apple Silicon, download the binary from S3 bucket - name: Remove existing binary @@ -215,7 +245,7 @@ jobs: - name: Download Apple Silicon Binary if: matrix.os == 'macos-latest' && matrix.arch == 'arm64' - run: curl -o extensions/vscode/exe/continue_server https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon/continue_server + run: curl -o extensions/vscode/exe/continue_server https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon-preview/continue_server - name: Set permissions run: | @@ -241,7 +271,7 @@ jobs: if: always() publish: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: build permissions: contents: write @@ -262,7 +292,8 @@ jobs: - uses: actions/download-artifact@v3 # 2. Publish the extension to VS Code Marketplace - - run: | + - name: Publish to VS Code Marketplace + run: | cd extensions/vscode npx vsce publish --pre-release --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-ia32/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix env: @@ -293,42 +324,42 @@ jobs: branch: ${{ github.ref }} # 5. Download binaries and upload to S3 - - name: Download Linux build - uses: actions/download-artifact@v2 - with: - name: LinuxBinary - path: exe/linux + # - name: Download Linux build + # uses: actions/download-artifact@v2 + # with: + # name: LinuxBinary + # path: exe/linux - - name: Download macOS build - uses: actions/download-artifact@v2 - with: - name: macOSBinary - path: exe/mac + # - name: Download macOS build + # uses: actions/download-artifact@v2 + # with: + # name: macOSBinary + # path: exe/mac - - name: Download Windows build - uses: actions/download-artifact@v2 - with: - name: WindowsBinary - path: exe/windows + # - name: Download Windows build + # uses: actions/download-artifact@v2 + # with: + # name: WindowsBinary + # path: exe/windows - - name: Upload binaries to S3 (s3.continue.dev) - uses: jakejarvis/s3-sync-action@master - with: - args: --acl public-read --follow-symlinks - env: - AWS_S3_BUCKET: s3.continue.dev - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_REGION: "us-west-1" - SOURCE_DIR: "exe" + # - name: Upload binaries to S3 (s3.continue.dev) + # uses: jakejarvis/s3-sync-action@master + # with: + # args: --acl public-read --follow-symlinks + # env: + # AWS_S3_BUCKET: s3.continue.dev + # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + # AWS_REGION: "us-west-1" + # SOURCE_DIR: "exe" - - name: Upload binaries to S3 (continue-server-binaries) - uses: jakejarvis/s3-sync-action@master - with: - args: --acl public-read --follow-symlinks - env: - AWS_S3_BUCKET: continue-server-binaries - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_REGION: "us-west-1" - SOURCE_DIR: "exe" + # - name: Upload binaries to S3 (continue-server-binaries) + # uses: jakejarvis/s3-sync-action@master + # with: + # args: --acl public-read --follow-symlinks + # env: + # AWS_S3_BUCKET: continue-server-binaries + # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + # AWS_REGION: "us-west-1" + # SOURCE_DIR: "exe" diff --git a/continue_server.py b/continue_server.py index ec093c8e5..3acd1a1bd 100644 --- a/continue_server.py +++ b/continue_server.py @@ -3,6 +3,10 @@ import sys from server.main import main +# __import__('pysqlite3') +# import sys +# sys.modules['sqlite3'] = sys.modules.pop('pysqlite3') + if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"): ca_bundle_path = os.path.join(sys._MEIPASS, "ca_bundle", "cacert.pem") print("Certificates at: ", ca_bundle_path) diff --git a/continue_server.spec b/continue_server.spec index f160f131e..ef528b7f9 100644 --- a/continue_server.spec +++ b/continue_server.spec @@ -55,7 +55,8 @@ a = Analysis( 'chromadb.migrations.embeddings_queue', 'chromadb.migrations.sysdb', 'chromadb.migrations.metadb', 'chromadb.segment.impl', 'chromadb.segment.impl.manager', 'chromadb.segment.impl.manager.local', - 'chromadb.segment.impl.metadata', 'chromadb.segment.impl.metadata.sqlite' + 'chromadb.segment.impl.metadata', 'chromadb.segment.impl.metadata.sqlite', + # 'pysqlite3' ], hookspath=[], hooksconfig={}, diff --git a/extensions/intellij/README.md b/extensions/intellij/README.md index 981ecd97a..c2f9142dd 100644 --- a/extensions/intellij/README.md +++ b/extensions/intellij/README.md @@ -40,4 +40,4 @@ The Continue JetBrains extension is currently in alpha. It will attempt to start > [Troubleshooting Continue](https://continue.dev/docs/troubleshooting) - \ No newline at end of file + diff --git a/extensions/intellij/build.gradle.kts b/extensions/intellij/build.gradle.kts index d4dad25ed..a6c600d45 100644 --- a/extensions/intellij/build.gradle.kts +++ b/extensions/intellij/build.gradle.kts @@ -26,7 +26,7 @@ dependencies { // implementation(libs.annotations) implementation("com.squareup.okhttp3:okhttp:4.9.1") implementation("org.jetbrains.kotlin:kotlin-stdlib:1.4.32") - + implementation ("io.socket:socket.io-client:2.1.0") } // Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+. diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt index 8e1957b50..92e514c18 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt @@ -21,6 +21,7 @@ import com.intellij.openapi.editor.EditorFactory import com.intellij.openapi.extensions.PluginId import com.intellij.openapi.fileEditor.FileEditorManager import com.intellij.openapi.keymap.KeymapManager +import com.intellij.openapi.project.DumbAware import com.intellij.openapi.project.Project import com.intellij.openapi.startup.StartupActivity import com.intellij.openapi.ui.DialogWrapper @@ -459,7 +460,7 @@ class WelcomeDialogWrapper(val project: Project) : DialogWrapper(true) { } } -class ContinuePluginStartupActivity : StartupActivity, Disposable { +class ContinuePluginStartupActivity : StartupActivity, Disposable, DumbAware { private val coroutineScope = CoroutineScope(Dispatchers.IO) override fun runActivity(project: Project) { @@ -539,9 +540,7 @@ class ContinuePluginStartupActivity : StartupActivity, Disposable { GlobalScope.async(Dispatchers.IO) { startContinuePythonServer(project) - val wsUrl = getContinueServerUrl().replace("http://", "ws://").replace("https://", "wss://") val ideProtocolClient = IdeProtocolClient( - "$wsUrl/ide/ws", continuePluginService, defaultStrategy, coroutineScope, @@ -557,16 +556,12 @@ class ContinuePluginStartupActivity : StartupActivity, Disposable { coroutineScope ) - val newSessionId = ideProtocolClient.getSessionIdAsync().await() - val sessionId = newSessionId ?: "" - // Reload the WebView continuePluginService?.let { val workspacePaths = if (project.basePath != null) arrayOf(project.basePath) else emptyList() continuePluginService.worksapcePaths = workspacePaths as Array - continuePluginService.sessionId = sessionId } EditorFactory.getInstance().eventMulticaster.addSelectionListener( diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt index e0d61db7a..5fc62fc12 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt @@ -12,6 +12,7 @@ import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.command.WriteCommandAction import com.intellij.openapi.components.ServiceManager import com.intellij.openapi.fileEditor.FileDocumentManager +import com.intellij.openapi.project.DumbAware import com.intellij.openapi.project.Project import com.intellij.openapi.ui.DialogWrapper import com.intellij.openapi.util.Disposer @@ -46,7 +47,7 @@ interface DiffInfo { var dialog: DialogWrapper? } -class DiffManager(private val project: Project) { +class DiffManager(private val project: Project): DumbAware { private val diffContentFactory = DiffContentFactory.getInstance() diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt index 77811fc8b..97425c09c 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt @@ -1,5 +1,6 @@ package com.github.continuedev.continueintellijextension.`continue` +import com.github.continuedev.continueintellijextension.activities.getContinueServerUrl import com.github.continuedev.continueintellijextension.services.ContinuePluginService import com.google.gson.Gson import com.google.gson.reflect.TypeToken @@ -9,6 +10,7 @@ import com.intellij.openapi.editor.SelectionModel import com.intellij.openapi.fileEditor.FileDocumentManager import com.intellij.openapi.fileEditor.FileEditorManager import com.intellij.openapi.fileEditor.TextEditor +import com.intellij.openapi.project.DumbAware import com.intellij.openapi.project.Project import com.intellij.openapi.ui.MessageType import com.intellij.openapi.ui.popup.Balloon @@ -25,9 +27,18 @@ import kotlinx.coroutines.* import okhttp3.* import java.io.File import java.net.NetworkInterface +import java.net.URI +import java.util.* +import io.socket.client.IO +import io.socket.client.Socket +import java.net.URLEncoder + +fun uuid(): String { + return UUID.randomUUID().toString() +} -data class WebSocketMessage(val messageType: String, val data: T) +data class WebSocketMessage(val messageType: String, val messageId: String, val data: T) data class WorkspaceDirectory(val workspaceDirectory: String) data class UniqueId(val uniqueId: String) data class ReadFile(val contents: String) @@ -70,17 +81,16 @@ fun getMachineUniqueID(): String { return "No MAC Address Found" } -class IdeProtocolClient( - private val serverUrl: String = "ws://localhost:65432/ide/ws", +class IdeProtocolClient ( private val continuePluginService: ContinuePluginService, private val textSelectionStrategy: TextSelectionStrategy, private val coroutineScope: CoroutineScope, private val workspacePath: String, private val project: Project -) { - private val eventListeners = mutableListOf() +): DumbAware { private var webSocket: WebSocket? = null - private val okHttpClient = OkHttpClient() + + private var socket: Socket? = null val diffManager = DiffManager(project) @@ -88,73 +98,45 @@ class IdeProtocolClient( initWebSocket() } - var sessionId: String? = null - - fun getSessionIdAsync(): Deferred = coroutineScope.async { - withTimeoutOrNull(10000) { - while ((webSocket?.queueSize() ?: 0) > 0) { - delay(1000) - } - } - println("Getting session ID") - val respDeferred = sendAndReceive("getSessionId", mapOf()) - val resp = respDeferred.await() // Awaiting the deferred response - println(resp) - val data = (resp as? Map<*, *>)?.get("data") as? Map<*, *> - sessionId = data?.get("sessionId").toString() - println("New Continue session with ID: $sessionId") - sessionId - } - - private val pendingResponses: MutableMap> = - mutableMapOf() - - fun sendAndReceive( - messageType: String, - data: Map - ): CompletableDeferred { - val deferred = CompletableDeferred() - pendingResponses[messageType] = - deferred // Store the deferred object for later resolution - - sendMessage(messageType, data) - return deferred - } - private fun serializeMessage(data: Map): String { val gson = Gson() return gson.toJson(data) } - private fun handleWebsocketMessage(webSocket: WebSocket, text: String) { + private fun send(messageType: String, messageId: String, data: Any) { + val wsMessage = WebSocketMessage( + messageType, + messageId, + data + ) + socket?.send("message", Gson().toJson(wsMessage)) + } + + private fun handleWebsocketMessage(text: String) { coroutineScope.launch(Dispatchers.IO) { val parsedMessage: Map = Gson().fromJson( text, object : TypeToken>() {}.type ) val messageType = parsedMessage["messageType"] as? String + val messageId = parsedMessage["messageId"] as? String + if (messageId == null) { + + println("Received message without messageId: $text") + return@launch + } val data = parsedMessage["data"] as Map<*, *> try { when (messageType) { "workspaceDirectory" -> { - webSocket.send( - Gson().toJson( - WebSocketMessage( - "workspaceDirectory", - WorkspaceDirectory(workspaceDirectory()) - ) - ) - ) + send("workspaceDirectory", messageId, WorkspaceDirectory(workspaceDirectory())) } - "uniqueId" -> webSocket.send( - Gson().toJson( - WebSocketMessage( - "uniqueId", - UniqueId(uniqueId()) - ) - ) + "uniqueId" -> send( + "uniqueId", + messageId, + UniqueId(uniqueId()) ) "ide" -> { @@ -168,15 +150,10 @@ class IdeProtocolClient( if (sshClient != null || sshTty != null) { remoteName = "ssh" } - webSocket.send( - Gson().toJson( - WebSocketMessage( - "ide", - IdeInfo( - ideName, ideVersion, remoteName - ) - ) - ) + send( + "ide", + messageId, + IdeInfo(ideName, ideVersion, remoteName) ) } @@ -191,47 +168,35 @@ class IdeProtocolClient( "readFile" -> { val msg = ReadFile(readFile(data["filepath"] as String)) - webSocket.send( - Gson().toJson( - WebSocketMessage( - "readFile", - msg - ) - ) + send( + "readFile", + messageId, + msg ) } "listDirectoryContents" -> { - webSocket.send( - Gson().toJson( - WebSocketMessage( - "listDirectoryContents", - ListDirectoryContents(listDirectoryContents()) - ) - ) + send( + "listDirectoryContents", + messageId, + ListDirectoryContents(listDirectoryContents()) ) } "getTerminalContents" -> { - webSocket.send( - Gson().toJson( - WebSocketMessage( - "getTerminalContents", - GetTerminalContents("Terminal cannot be accessed in JetBrains IDE") - ) - ) + send( + "getTerminalContents", + messageId, + GetTerminalContents("Terminal cannot be accessed in JetBrains IDE") ) } "visibleFiles" -> { val msg = VisibleFiles(visibleFiles()) - webSocket.send( - Gson().toJson( - WebSocketMessage( - "visibleFiles", - msg - ) - ) + send( + "visibleFiles", + messageId, + msg ) } @@ -266,13 +231,10 @@ class IdeProtocolClient( val rif = RangeInFile(rifWithContents.filepath, rifWithContents.range) rifs += rif } - webSocket.send( - Gson().toJson( - WebSocketMessage( - "highlightedCode", - HighlightedCode(rifs) - ) - ) + send( + "highlightedCode", + messageId, + HighlightedCode(rifs) ) } @@ -283,72 +245,72 @@ class IdeProtocolClient( } catch (error: Exception) { showMessage("Error handling message of type $messageType: $error") } - - - if (messageType != null) { - pendingResponses[messageType]?.complete(parsedMessage) - pendingResponses.remove(messageType) - } } } - private var backoff: Int = 100 // ms - private fun initWebSocket() { - val webSocketListener = object : WebSocketListener() { - - override fun onOpen(webSocket: WebSocket, response: Response) { - // handle onOpen - backoff = 100 // reset backoff - } - - override fun onMessage(webSocket: WebSocket, text: String) { - handleWebsocketMessage(webSocket, text) - } - - override fun onFailure( - webSocket: WebSocket, - t: Throwable, - response: Response? - ) { - eventListeners.forEach { it.onErrorOccurred(t) } - // handle failure - backoff *= 2 - if (backoff > 10000000) return - Thread.sleep(backoff.toLong()) - initWebSocket() - } - - override fun onClosed(webSocket: WebSocket, code: Int, reason: String) { - super.onClosed(webSocket, code, reason) - println("Closing Continue IDE websocket") - // handle closure - backoff *= 2 - if (backoff > 10000000) return - Thread.sleep(backoff.toLong()) - initWebSocket() - } - + val applicationInfo = ApplicationInfo.getInstance() + val ideName: String = applicationInfo.fullApplicationName + val ideVersion = applicationInfo.fullVersion + val sshClient = System.getenv("SSH_CLIENT") + val sshTty = System.getenv("SSH_TTY") + + var remoteName: String? = null + if (sshClient != null || sshTty != null) { + remoteName = "ssh" + } + data class IDEInfo( + val name: String, + val version: String, + val remote_name: String + ) + + val windowInfo = mapOf( + "window_id" to continuePluginService.windowId, + "workspace_directory" to workspaceDirectory(), + "unique_id" to uniqueId(), + "ide_info" to IDEInfo( + name = ideName, + version = ideVersion, + remote_name = remoteName ?: "" + ) + ) + + val requestUrl = "${getContinueServerUrl()}/?window_info=${ + URLEncoder.encode( + Gson().toJson(windowInfo), "UTF-8" + )}" + + val uri: URI = URI.create(requestUrl) + val options: IO.Options = IO.Options.builder() + .setPath("/ide/socket.io") + .setTransports(arrayOf("websocket", "polling", "flashsocket")) + .build() + + val socket: Socket = IO.socket(uri, options) + + socket.on(Socket.EVENT_CONNECT) { + println("Connected to Continue IDE websocket") } - val request = Request.Builder() - .url("${serverUrl}${if (sessionId != null) "?session_id=$sessionId" else ""}") - .build() - - webSocket = okHttpClient.newWebSocket(request, webSocketListener) + socket.on(Socket.EVENT_DISCONNECT) { + println("Disconnected from Continue IDE websocket") + } + + socket.on(Socket.EVENT_CONNECT_ERROR) { + println("Error connecting to Continue IDE websocket") + } + + socket.on("message") { args -> + val data = args[0].toString() + println("Received message: $data") + handleWebsocketMessage(data) + } + + socket.connect() + this.socket = socket } - fun addEventListener(listener: WebSocketEventListener) { - eventListeners.add(listener) - } - - fun connect() { - // Connection is handled automatically by OkHttp - } - - fun disconnect() { - webSocket?.close(1000, null) - } private fun sendMessage(messageType: String, message: Map) { val sendData = mapOf("messageType" to messageType, "data" to message) @@ -356,7 +318,7 @@ class IdeProtocolClient( webSocket?.send(jsonMessage) } - fun workspaceDirectory(): String { + private fun workspaceDirectory(): String { return this.workspacePath } @@ -398,7 +360,7 @@ class IdeProtocolClient( return document?.text ?: "" } - fun getHighlightedCode(): RangeInFileWithContents? { + private fun getHighlightedCode(): RangeInFileWithContents? { val result = ApplicationManager.getApplication().runReadAction { // Get the editor instance for the currently active editor window val editor = FileEditorManager.getInstance(project).selectedTextEditor ?: return@runReadAction null @@ -431,31 +393,36 @@ class IdeProtocolClient( return result } - private fun sendWebSocketMessage(messageType: String, data: T) { - webSocket?.send(Gson().toJson( - WebSocketMessage(messageType, data) - )) - } - fun sendHighlightedCode(edit: Boolean = false) { val rif = getHighlightedCode() ?: return - sendWebSocketMessage("highlightedCodePush", HighlightedCodeUpdate( - listOf(rif), - edit - )) +// send("highlightedCodePush", uuid(), HighlightedCodeUpdate( +// listOf(rif), +// edit +// )) + + continuePluginService.dispatchCustomEvent("highlightedCode", + mapOf( + "type" to "highlightedCode", + "rangeInFileWithContents" to rif, + "edit" to edit + )) } fun sendMainUserInput(input: String) { - sendWebSocketMessage("mainUserInput", MainUserInput(input)) + continuePluginService.dispatchCustomEvent("userInput", + mapOf( + "type" to "userInput", + "input" to input, + )) } fun sendAcceptRejectDiff(accepted: Boolean, stepIndex: Int) { - sendWebSocketMessage("acceptRejectDiff", AcceptRejectDiff(accepted, stepIndex)) + send("acceptRejectDiff", uuid(), AcceptRejectDiff(accepted, stepIndex)) } fun deleteAtIndex(index: Int) { - sendWebSocketMessage("deleteAtIndex", DeleteAtIndex(index)) + send("deleteAtIndex", uuid(), DeleteAtIndex(index)) } private val DEFAULT_IGNORE_DIRS = listOf( @@ -485,7 +452,7 @@ class IdeProtocolClient( } - fun listDirectoryContents(): List { + private fun listDirectoryContents(): List { val workspacePath = File(workspaceDirectory()) val workspaceDir = VirtualFileManager.getInstance().findFileByUrl("file://$workspacePath") @@ -506,7 +473,7 @@ class IdeProtocolClient( return contents } - fun saveFile(filepath: String) { + private fun saveFile(filepath: String) { ApplicationManager.getApplication().invokeLater { val file = LocalFileSystem.getInstance().findFileByPath(filepath) ?: return@invokeLater val fileDocumentManager = FileDocumentManager.getInstance() @@ -541,12 +508,12 @@ class IdeProtocolClient( } } - fun visibleFiles(): List { + private fun visibleFiles(): List { val fileEditorManager = FileEditorManager.getInstance(project) return fileEditorManager.openFiles.toList().map { it.path } } - fun showMessage(msg: String) { + private fun showMessage(msg: String) { val statusBar = WindowManager.getInstance().getStatusBar(project) JBPopupFactory.getInstance() diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/factories/CustomhandlerFactory.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/factories/CustomhandlerFactory.kt index 2df50b20a..0bc9d70e6 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/factories/CustomhandlerFactory.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/factories/CustomhandlerFactory.kt @@ -1,5 +1,6 @@ package com.github.continuedev.continueintellijextension.factories +import com.intellij.openapi.project.DumbAware import org.cef.browser.CefBrowser import org.cef.browser.CefFrame import org.cef.callback.CefCallback @@ -25,7 +26,7 @@ class CustomSchemeHandlerFactory : CefSchemeHandlerFactory { } } -class CustomResourceHandler : CefResourceHandler { +class CustomResourceHandler : CefResourceHandler, DumbAware { private var state: ResourceHandlerState = ClosedConnection private var currentUrl: String? = null override fun processRequest( diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt index 5edf73cfa..e2164b090 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt @@ -7,13 +7,14 @@ import com.intellij.openapi.editor.SelectionModel import com.intellij.openapi.editor.event.SelectionEvent import com.intellij.openapi.editor.event.SelectionListener import com.intellij.openapi.fileEditor.FileDocumentManager +import com.intellij.openapi.project.DumbAware import com.intellij.openapi.vfs.VirtualFile import kotlinx.coroutines.CoroutineScope class ContinuePluginSelectionListener( private val ideProtocolClient: IdeProtocolClient, private val coroutineScope: CoroutineScope -) : SelectionListener { +) : SelectionListener, DumbAware { private val debouncer = Debouncer(100L, coroutineScope) override fun selectionChanged(e: SelectionEvent) { debouncer.debounce { handleSelection(e) } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinueExtensionSettingsService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinueExtensionSettingsService.kt index 30ad5e788..74feab71a 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinueExtensionSettingsService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinueExtensionSettingsService.kt @@ -5,6 +5,7 @@ import com.intellij.openapi.components.ServiceManager import com.intellij.openapi.components.State import com.intellij.openapi.components.Storage import com.intellij.openapi.options.Configurable +import com.intellij.openapi.project.DumbAware import kotlinx.serialization.Serializable import java.awt.GridBagConstraints import java.awt.GridBagLayout @@ -15,7 +16,7 @@ import javax.swing.JLabel import javax.swing.JPanel import javax.swing.JTextField -class ContinueSettingsComponent { +class ContinueSettingsComponent: DumbAware { val panel: JPanel = JPanel(GridBagLayout()) private val myTextField: JTextField = JTextField() private val myCheckBox: JCheckBox = diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinuePluginService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinuePluginService.kt index 978ac744d..92df0fd1d 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinuePluginService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinuePluginService.kt @@ -5,21 +5,23 @@ import com.github.continuedev.continueintellijextension.toolWindow.ContinuePlugi import com.google.gson.Gson import com.intellij.openapi.Disposable import com.intellij.openapi.components.Service +import com.intellij.openapi.project.DumbAware import com.intellij.openapi.project.Project import com.intellij.ui.jcef.executeJavaScriptAsync import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.cancel import kotlinx.coroutines.launch +import java.util.UUID @Service(Service.Level.PROJECT) -class ContinuePluginService(project: Project) : Disposable { +class ContinuePluginService(project: Project) : Disposable, DumbAware { val coroutineScope = CoroutineScope(Dispatchers.Main) var continuePluginWindow: ContinuePluginToolWindowFactory.ContinuePluginWindow? = null var ideProtocolClient: IdeProtocolClient? = null - var sessionId: String? = null var worksapcePaths: Array? = null + var windowId: String = UUID.randomUUID().toString() override fun dispose() { coroutineScope.cancel() diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt index c55745250..32e548f83 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt @@ -6,6 +6,9 @@ import com.intellij.ui.content.ContentFactory import com.intellij.ui.jcef.JBCefJSQuery import javax.swing.* import com.github.continuedev.continueintellijextension.activities.getContinueServerUrl +import com.github.continuedev.continueintellijextension.`continue`.Position +import com.github.continuedev.continueintellijextension.`continue`.Range +import com.github.continuedev.continueintellijextension.`continue`.RangeInFile import com.github.continuedev.continueintellijextension.`continue`.getMachineUniqueID import com.github.continuedev.continueintellijextension.factories.CustomSchemeHandlerFactory import com.github.continuedev.continueintellijextension.services.ContinuePluginService @@ -49,13 +52,6 @@ class ContinuePluginToolWindowFactory : ToolWindowFactory, DumbAware { System.setProperty("ide.browser.jcef.jsQueryPoolSize", JS_QUERY_POOL_SIZE) } - suspend fun waitForSessionId(pluginService: ContinuePluginService) { - while (pluginService.sessionId == null) { - delay(200) - } - return - } - val webView: JBCefBrowser by lazy { val browser = JBCefBrowser() browser.jbCefClient.setProperty( @@ -79,6 +75,7 @@ class ContinuePluginToolWindowFactory : ToolWindowFactory, DumbAware { val parser = JsonParser() val json: JsonObject = parser.parse(msg).asJsonObject val type = json.get("type").asString + val data = json.get("data").asJsonObject when (type) { "onLoad" -> { GlobalScope.launch { @@ -112,26 +109,39 @@ class ContinuePluginToolWindowFactory : ToolWindowFactory, DumbAware { browser.executeJavaScriptAsync("document.body.style.setProperty(\"--vscode-editor-background\", \"$defaultBackgroundHex\");") browser.executeJavaScriptAsync("document.body.style.setProperty(\"--vscode-list-hoverBackground\", \"$secondaryDarkHex\");") - // Wait for session ID, then pass the onLoad information - waitForSessionId(continuePluginService) - - val sessionId = continuePluginService.sessionId - val workspacePaths = continuePluginService.worksapcePaths - val jsonData = mutableMapOf( "type" to "onLoad", - "sessionId" to sessionId, - "apiUrl" to getContinueServerUrl(), - "workspacePaths" to workspacePaths, + "windowId" to continuePluginService.windowId, + "serverUrl" to getContinueServerUrl(), + "workspacePaths" to continuePluginService.worksapcePaths, "vscMachineId" to getMachineUniqueID(), "vscMediaUrl" to "http://continue", - "dataSwitchOn" to true ) val jsonString = Gson().toJson(jsonData) browser.executeJavaScriptAsync("""window.postMessage($jsonString, "*");""") } } + "showLines" -> { + continuePluginService.ideProtocolClient?.highlightCode(RangeInFile( + data.get("filepath").asString, + Range(Position( + data.get("startLine").asInt, + 0 + ), Position( + data.get("endLine").asInt + 1, + 0 + )), + + ),"#00ff0022") + } + "showVirtualFile" -> { + continuePluginService.ideProtocolClient?.showVirtualFile(data.get("name").asString, data.get("content").asString) + } + "showFile" -> { + continuePluginService.ideProtocolClient?.setFileOpen(data.get("filepath").asString) + } + "reloadWindow" -> {} } diff --git a/extensions/intellij/src/main/resources/META-INF/plugin.xml b/extensions/intellij/src/main/resources/META-INF/plugin.xml index bff882fe2..bccd5733f 100644 --- a/extensions/intellij/src/main/resources/META-INF/plugin.xml +++ b/extensions/intellij/src/main/resources/META-INF/plugin.xml @@ -3,8 +3,8 @@ com.github.continuedev.continueintellijextension Continue continue-dev - com.intellij.modules.platform + *:not(summary){display:none!important}.wmde-markdown kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.wmde-markdown h1,.wmde-markdown h2,.wmde-markdown h3,.wmde-markdown h4,.wmde-markdown h5,.wmde-markdown h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.wmde-markdown h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown h3{font-weight:600;font-size:1.25em}.wmde-markdown h4{font-weight:600;font-size:1em}.wmde-markdown h5{font-weight:600;font-size:.875em}.wmde-markdown h6{font-weight:600;font-size:.85em;color:var(--color-fg-muted)}.wmde-markdown p{margin-top:0;margin-bottom:10px}.wmde-markdown blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.wmde-markdown ul,.wmde-markdown ol{margin-top:0;margin-bottom:0;padding-left:2em}.wmde-markdown ol ol,.wmde-markdown ul ol{list-style-type:lower-roman}.wmde-markdown ul ul ol,.wmde-markdown ul ol ol,.wmde-markdown ol ul ol,.wmde-markdown ol ol ol{list-style-type:lower-alpha}.wmde-markdown dd{margin-left:0}.wmde-markdown tt,.wmde-markdown code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.wmde-markdown pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.wmde-markdown .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.wmde-markdown ::-moz-placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown ::placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown input::-webkit-outer-spin-button,.wmde-markdown input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.wmde-markdown [data-catalyst]{display:block}.wmde-markdown:before{display:table;content:""}.wmde-markdown:after{display:table;clear:both;content:""}.wmde-markdown>*:first-child{margin-top:0!important}.wmde-markdown>*:last-child{margin-bottom:0!important}.wmde-markdown a:not([href]){color:inherit;text-decoration:none}.wmde-markdown .absent{color:var(--color-danger-fg)}.wmde-markdown a.anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.wmde-markdown .anchor:focus{outline:none}.wmde-markdown p,.wmde-markdown blockquote,.wmde-markdown ul,.wmde-markdown ol,.wmde-markdown dl,.wmde-markdown table,.wmde-markdown pre,.wmde-markdown details{margin-top:0;margin-bottom:16px}.wmde-markdown blockquote>:first-child{margin-top:0}.wmde-markdown blockquote>:last-child{margin-bottom:0}.wmde-markdown sup>a:before{content:"["}.wmde-markdown sup>a:after{content:"]"}.wmde-markdown h1 .octicon-link,.wmde-markdown h2 .octicon-link,.wmde-markdown h3 .octicon-link,.wmde-markdown h4 .octicon-link,.wmde-markdown h5 .octicon-link,.wmde-markdown h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.wmde-markdown h1:hover .anchor,.wmde-markdown h2:hover .anchor,.wmde-markdown h3:hover .anchor,.wmde-markdown h4:hover .anchor,.wmde-markdown h5:hover .anchor,.wmde-markdown h6:hover .anchor{text-decoration:none}.wmde-markdown h1:hover .anchor .octicon-link,.wmde-markdown h2:hover .anchor .octicon-link,.wmde-markdown h3:hover .anchor .octicon-link,.wmde-markdown h4:hover .anchor .octicon-link,.wmde-markdown h5:hover .anchor .octicon-link,.wmde-markdown h6:hover .anchor .octicon-link{visibility:visible}.wmde-markdown h1 tt,.wmde-markdown h1 code,.wmde-markdown h2 tt,.wmde-markdown h2 code,.wmde-markdown h3 tt,.wmde-markdown h3 code,.wmde-markdown h4 tt,.wmde-markdown h4 code,.wmde-markdown h5 tt,.wmde-markdown h5 code,.wmde-markdown h6 tt,.wmde-markdown h6 code{padding:0 .2em;font-size:inherit}.wmde-markdown ul.no-list,.wmde-markdown ol.no-list{padding:0;list-style-type:none}.wmde-markdown ol[type="1"]{list-style-type:decimal}.wmde-markdown ol[type=a]{list-style-type:lower-alpha}.wmde-markdown ol[type=i]{list-style-type:lower-roman}.wmde-markdown div>ol:not([type]){list-style-type:decimal}.wmde-markdown ul ul,.wmde-markdown ul ol,.wmde-markdown ol ol,.wmde-markdown ol ul{margin-top:0;margin-bottom:0}.wmde-markdown li>p{margin-top:16px}.wmde-markdown li+li{margin-top:.25em}.wmde-markdown dl{padding:0}.wmde-markdown dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.wmde-markdown dl dd{padding:0 16px;margin-bottom:16px}.wmde-markdown table th{font-weight:600}.wmde-markdown table th,.wmde-markdown table td{padding:6px 13px;border:1px solid var(--color-border-default)}.wmde-markdown table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.wmde-markdown table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.wmde-markdown table img{background-color:transparent}.wmde-markdown img[align=right]{padding-left:20px}.wmde-markdown img[align=left]{padding-right:20px}.wmde-markdown .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.wmde-markdown span.frame{display:block;overflow:hidden}.wmde-markdown span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.wmde-markdown span.frame span img{display:block;float:left}.wmde-markdown span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.wmde-markdown span.align-center{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.wmde-markdown span.align-center span img{margin:0 auto;text-align:center}.wmde-markdown span.align-right{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.wmde-markdown span.align-right span img{margin:0;text-align:right}.wmde-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.wmde-markdown span.float-left span{margin:13px 0 0}.wmde-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.wmde-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.wmde-markdown code,.wmde-markdown tt{padding:.2em .4em;margin:0;font-size:85%;background-color:var(--color-neutral-muted);border-radius:6px}.wmde-markdown code br,.wmde-markdown tt br{display:none}.wmde-markdown del code{text-decoration:inherit}.wmde-markdown pre code{font-size:100%}.wmde-markdown pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.wmde-markdown pre{font-size:85%;line-height:1.45;background-color:var(--color-canvas-subtle);border-radius:6px}.wmde-markdown pre code,.wmde-markdown pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.wmde-markdown pre>code{padding:16px;overflow:auto;display:block}.wmde-markdown .csv-data td,.wmde-markdown .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.wmde-markdown .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.wmde-markdown .csv-data tr{border-top:0}.wmde-markdown .csv-data th{font-weight:600;background:var(--color-canvas-subtle);border-top:0}.wmde-markdown .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.wmde-markdown .footnotes ol{padding-left:16px}.wmde-markdown .footnotes li{position:relative}.wmde-markdown .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.wmde-markdown .footnotes li:target{color:var(--color-fg-default)}.wmde-markdown .footnotes .data-footnote-backref g-emoji{font-family:monospace}.wmde-markdown .task-list-item{list-style-type:none}.wmde-markdown .task-list-item label{font-weight:400}.wmde-markdown .task-list-item.enabled label{cursor:pointer}.wmde-markdown .task-list-item+.wmde-markdown .task-list-item{margin-top:3px}.wmde-markdown .task-list-item .handle{display:none}.wmde-markdown .task-list-item-checkbox,.wmde-markdown .contains-task-list input[type=checkbox]{margin:0 .2em .25em -1.6em;vertical-align:middle}.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,.wmde-markdown .contains-task-list:dir(rtl) input[type=checkbox]{margin:0 -1.6em .25em .2em}.wmde-markdown ::-webkit-calendar-picker-indicator{filter:invert(50%)}.wmde-markdown pre{position:relative}.wmde-markdown pre .copied{visibility:hidden;display:flex;position:absolute;cursor:pointer;color:var(--color-fg-defaul);top:6px;right:6px;border-radius:5px;background:var(--color-border-default);padding:6px;font-size:12px;transition:all .3s}.wmde-markdown pre .copied .octicon-copy{display:block}.wmde-markdown pre .copied .octicon-check{display:none}.wmde-markdown pre:hover .copied{visibility:visible}.wmde-markdown pre:hover .copied:hover{background:var(--color-prettylights-syntax-entity-tag);color:var(--color-canvas-default)}.wmde-markdown pre:hover .copied:active,.wmde-markdown pre .copied.active{background:#2e9b33;color:var(--color-canvas-default)}.wmde-markdown pre .active .octicon-copy{display:none}.wmde-markdown pre .active .octicon-check{display:block}.highlight-line{background-color:var(--color-neutral-muted)}.code-line.line-number:before{display:inline-block;width:1rem;text-align:right;margin-right:16px;color:var(--color-fg-subtle);content:attr(line);white-space:nowrap}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--color-prettylights-syntax-comment)}.token.namespace{opacity:.7}.token.property,.token.tag,.token.selector,.token.constant,.token.symbol,.token.deleted{color:var(--color-prettylights-syntax-entity-tag)}.token.maybe-class-name{color:var(--color-prettylights-syntax-variable)}.token.property-access,.token.operator,.token.boolean,.token.number,.token.selector .token.class,.token.attr-name,.token.string,.token.char,.token.builtin{color:var(--color-prettylights-syntax-constant)}.token.deleted{color:var(--color-prettylights-syntax-markup-deleted-text)}.code-line .token.deleted{background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.token.inserted{color:var(--color-prettylights-syntax-markup-inserted-text)}.code-line .token.inserted{background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.token.variable{color:var(--color-prettylights-syntax-constant)}.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.color,.token.atrule,.token.attr-value,.token.function,.token.class-name{color:var(--color-prettylights-syntax-string)}.token.rule,.token.regex,.token.important,.token.keyword{color:var(--color-prettylights-syntax-keyword)}.token.coord{color:var(--color-prettylights-syntax-meta-diff-range)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.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}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.right-1{right:.25rem}.top-0{top:0}.top-1{top:.25rem}.z-10{z-index:10}.float-right{float:right}.m-0{margin:0}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.mx-16{margin-left:4rem;margin-right:4rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-6{margin-right:1.5rem}.mr-auto{margin-right:auto}.mt-2{margin-top:.5rem}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-2{height:.5rem}.h-5{height:1.25rem}.h-full{height:100%}.w-5{width:1.25rem}.w-full{width:100%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.border-spacing-0{--tw-border-spacing-x: 0px;--tw-border-spacing-y: 0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-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))}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.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)))}.overflow-scroll{overflow:scroll}.overflow-y-scroll{overflow-y:scroll}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.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)}.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}.duration-100{transition-duration:.1s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:root{--secondary-dark: rgb(37, 37, 38);--vsc-background: rgb(30, 30, 30);--button-color: rgb(113, 28, 59);--button-color-hover: rgba(113, 28, 59, .667);--def-border-radius: 5px;--vscode-editor-background: rgb(30, 30, 30);--vscode-editor-foreground: rgb(197, 200, 198);--vscode-textBlockQuote-background: rgba(255, 255, 255, 1)}html,body,#root{height:100%;background-color:var(--vscode-editor-background);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}body{color:var(--vscode-editor-foreground);padding:0;margin:0;height:100%}.press-start-2p{font-family:"Press Start 2P",sans-serif}a:focus{outline:none}.hover\:underline:hover{text-decoration-line:underline} +@media (prefers-color-scheme: dark){.wmde-markdown,.wmde-markdown-var{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149}}@media (prefers-color-scheme: light){.wmde-markdown,.wmde-markdown-var{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}}[data-color-mode*=dark] .wmde-markdown,[data-color-mode*=dark] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=dark],.wmde-markdown[data-color-mode*=dark],body[data-color-mode*=dark]{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149}[data-color-mode*=light] .wmde-markdown,[data-color-mode*=light] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=light],.wmde-markdown[data-color-mode*=light],body[data-color-mode*=light]{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}.wmde-markdown{-webkit-text-size-adjust:100%;font-family:-apple-system,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word;color:var(--color-fg-default);background-color:var(--color-canvas-default)}.wmde-markdown details,.wmde-markdown figcaption,.wmde-markdown figure{display:block}.wmde-markdown summary{display:list-item}.wmde-markdown [hidden]{display:none!important}.wmde-markdown a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.wmde-markdown a:active,.wmde-markdown a:hover{outline-width:0}.wmde-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wmde-markdown b,.wmde-markdown strong{font-weight:600}.wmde-markdown dfn{font-style:italic}.wmde-markdown h1{margin:.67em 0;font-weight:600;padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown mark{background-color:var(--color-attention-subtle);color:var(--color-text-primary)}.wmde-markdown small{font-size:90%}.wmde-markdown sub,.wmde-markdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.wmde-markdown sub{bottom:-.25em}.wmde-markdown sup{top:-.5em}.wmde-markdown img{display:inline-block;border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.wmde-markdown code,.wmde-markdown kbd,.wmde-markdown pre,.wmde-markdown samp{font-family:monospace,monospace;font-size:1em}.wmde-markdown figure{margin:1em 40px}.wmde-markdown hr{box-sizing:content-box;overflow:hidden;background:transparent;border:0;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default)}.wmde-markdown input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.wmde-markdown [type=button],.wmde-markdown [type=reset],.wmde-markdown [type=submit]{-webkit-appearance:button}.wmde-markdown [type=button]::-moz-focus-inner,.wmde-markdown [type=reset]::-moz-focus-inner,.wmde-markdown [type=submit]::-moz-focus-inner{border-style:none;padding:0}.wmde-markdown [type=button]:-moz-focusring,.wmde-markdown [type=reset]:-moz-focusring,.wmde-markdown [type=submit]:-moz-focusring{outline:1px dotted ButtonText}.wmde-markdown [type=checkbox],.wmde-markdown [type=radio]{box-sizing:border-box;padding:0}.wmde-markdown [type=number]::-webkit-inner-spin-button,.wmde-markdown [type=number]::-webkit-outer-spin-button{height:auto}.wmde-markdown [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.wmde-markdown [type=search]::-webkit-search-cancel-button,.wmde-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none}.wmde-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}.wmde-markdown ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.wmde-markdown a:hover{text-decoration:underline}.wmde-markdown hr:before{display:table;content:""}.wmde-markdown hr:after{display:table;clear:both;content:""}.wmde-markdown table{border-spacing:0;border-collapse:collapse;display:block;width:-moz-max-content;width:max-content;max-width:100%}.wmde-markdown td,.wmde-markdown th{padding:0}.wmde-markdown details summary{cursor:pointer}.wmde-markdown details:not([open])>*:not(summary){display:none!important}.wmde-markdown kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.wmde-markdown h1,.wmde-markdown h2,.wmde-markdown h3,.wmde-markdown h4,.wmde-markdown h5,.wmde-markdown h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.wmde-markdown h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown h3{font-weight:600;font-size:1.25em}.wmde-markdown h4{font-weight:600;font-size:1em}.wmde-markdown h5{font-weight:600;font-size:.875em}.wmde-markdown h6{font-weight:600;font-size:.85em;color:var(--color-fg-muted)}.wmde-markdown p{margin-top:0;margin-bottom:10px}.wmde-markdown blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.wmde-markdown ul,.wmde-markdown ol{margin-top:0;margin-bottom:0;padding-left:2em}.wmde-markdown ol ol,.wmde-markdown ul ol{list-style-type:lower-roman}.wmde-markdown ul ul ol,.wmde-markdown ul ol ol,.wmde-markdown ol ul ol,.wmde-markdown ol ol ol{list-style-type:lower-alpha}.wmde-markdown dd{margin-left:0}.wmde-markdown tt,.wmde-markdown code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.wmde-markdown pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.wmde-markdown .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.wmde-markdown ::-moz-placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown ::placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown input::-webkit-outer-spin-button,.wmde-markdown input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.wmde-markdown [data-catalyst]{display:block}.wmde-markdown:before{display:table;content:""}.wmde-markdown:after{display:table;clear:both;content:""}.wmde-markdown>*:first-child{margin-top:0!important}.wmde-markdown>*:last-child{margin-bottom:0!important}.wmde-markdown a:not([href]){color:inherit;text-decoration:none}.wmde-markdown .absent{color:var(--color-danger-fg)}.wmde-markdown a.anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.wmde-markdown .anchor:focus{outline:none}.wmde-markdown p,.wmde-markdown blockquote,.wmde-markdown ul,.wmde-markdown ol,.wmde-markdown dl,.wmde-markdown table,.wmde-markdown pre,.wmde-markdown details{margin-top:0;margin-bottom:16px}.wmde-markdown blockquote>:first-child{margin-top:0}.wmde-markdown blockquote>:last-child{margin-bottom:0}.wmde-markdown sup>a:before{content:"["}.wmde-markdown sup>a:after{content:"]"}.wmde-markdown h1 .octicon-link,.wmde-markdown h2 .octicon-link,.wmde-markdown h3 .octicon-link,.wmde-markdown h4 .octicon-link,.wmde-markdown h5 .octicon-link,.wmde-markdown h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.wmde-markdown h1:hover .anchor,.wmde-markdown h2:hover .anchor,.wmde-markdown h3:hover .anchor,.wmde-markdown h4:hover .anchor,.wmde-markdown h5:hover .anchor,.wmde-markdown h6:hover .anchor{text-decoration:none}.wmde-markdown h1:hover .anchor .octicon-link,.wmde-markdown h2:hover .anchor .octicon-link,.wmde-markdown h3:hover .anchor .octicon-link,.wmde-markdown h4:hover .anchor .octicon-link,.wmde-markdown h5:hover .anchor .octicon-link,.wmde-markdown h6:hover .anchor .octicon-link{visibility:visible}.wmde-markdown h1 tt,.wmde-markdown h1 code,.wmde-markdown h2 tt,.wmde-markdown h2 code,.wmde-markdown h3 tt,.wmde-markdown h3 code,.wmde-markdown h4 tt,.wmde-markdown h4 code,.wmde-markdown h5 tt,.wmde-markdown h5 code,.wmde-markdown h6 tt,.wmde-markdown h6 code{padding:0 .2em;font-size:inherit}.wmde-markdown ul.no-list,.wmde-markdown ol.no-list{padding:0;list-style-type:none}.wmde-markdown ol[type="1"]{list-style-type:decimal}.wmde-markdown ol[type=a]{list-style-type:lower-alpha}.wmde-markdown ol[type=i]{list-style-type:lower-roman}.wmde-markdown div>ol:not([type]){list-style-type:decimal}.wmde-markdown ul ul,.wmde-markdown ul ol,.wmde-markdown ol ol,.wmde-markdown ol ul{margin-top:0;margin-bottom:0}.wmde-markdown li>p{margin-top:16px}.wmde-markdown li+li{margin-top:.25em}.wmde-markdown dl{padding:0}.wmde-markdown dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.wmde-markdown dl dd{padding:0 16px;margin-bottom:16px}.wmde-markdown table th{font-weight:600}.wmde-markdown table th,.wmde-markdown table td{padding:6px 13px;border:1px solid var(--color-border-default)}.wmde-markdown table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.wmde-markdown table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.wmde-markdown table img{background-color:transparent}.wmde-markdown img[align=right]{padding-left:20px}.wmde-markdown img[align=left]{padding-right:20px}.wmde-markdown .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.wmde-markdown span.frame{display:block;overflow:hidden}.wmde-markdown span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.wmde-markdown span.frame span img{display:block;float:left}.wmde-markdown span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.wmde-markdown span.align-center{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.wmde-markdown span.align-center span img{margin:0 auto;text-align:center}.wmde-markdown span.align-right{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.wmde-markdown span.align-right span img{margin:0;text-align:right}.wmde-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.wmde-markdown span.float-left span{margin:13px 0 0}.wmde-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.wmde-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.wmde-markdown code,.wmde-markdown tt{padding:.2em .4em;margin:0;font-size:85%;background-color:var(--color-neutral-muted);border-radius:6px}.wmde-markdown code br,.wmde-markdown tt br{display:none}.wmde-markdown del code{text-decoration:inherit}.wmde-markdown pre code{font-size:100%}.wmde-markdown pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.wmde-markdown pre{font-size:85%;line-height:1.45;background-color:var(--color-canvas-subtle);border-radius:6px}.wmde-markdown pre code,.wmde-markdown pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.wmde-markdown pre>code{padding:16px;overflow:auto;display:block}.wmde-markdown .csv-data td,.wmde-markdown .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.wmde-markdown .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.wmde-markdown .csv-data tr{border-top:0}.wmde-markdown .csv-data th{font-weight:600;background:var(--color-canvas-subtle);border-top:0}.wmde-markdown .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.wmde-markdown .footnotes ol{padding-left:16px}.wmde-markdown .footnotes li{position:relative}.wmde-markdown .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.wmde-markdown .footnotes li:target{color:var(--color-fg-default)}.wmde-markdown .footnotes .data-footnote-backref g-emoji{font-family:monospace}.wmde-markdown .task-list-item{list-style-type:none}.wmde-markdown .task-list-item label{font-weight:400}.wmde-markdown .task-list-item.enabled label{cursor:pointer}.wmde-markdown .task-list-item+.wmde-markdown .task-list-item{margin-top:3px}.wmde-markdown .task-list-item .handle{display:none}.wmde-markdown .task-list-item-checkbox,.wmde-markdown .contains-task-list input[type=checkbox]{margin:0 .2em .25em -1.6em;vertical-align:middle}.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,.wmde-markdown .contains-task-list:dir(rtl) input[type=checkbox]{margin:0 -1.6em .25em .2em}.wmde-markdown ::-webkit-calendar-picker-indicator{filter:invert(50%)}.wmde-markdown pre{position:relative}.wmde-markdown pre .copied{visibility:hidden;display:flex;position:absolute;cursor:pointer;color:var(--color-fg-defaul);top:6px;right:6px;border-radius:5px;background:var(--color-border-default);padding:6px;font-size:12px;transition:all .3s}.wmde-markdown pre .copied .octicon-copy{display:block}.wmde-markdown pre .copied .octicon-check{display:none}.wmde-markdown pre:hover .copied{visibility:visible}.wmde-markdown pre:hover .copied:hover{background:var(--color-prettylights-syntax-entity-tag);color:var(--color-canvas-default)}.wmde-markdown pre:hover .copied:active,.wmde-markdown pre .copied.active{background:#2e9b33;color:var(--color-canvas-default)}.wmde-markdown pre .active .octicon-copy{display:none}.wmde-markdown pre .active .octicon-check{display:block}.highlight-line{background-color:var(--color-neutral-muted)}.code-line.line-number:before{display:inline-block;width:1rem;text-align:right;margin-right:16px;color:var(--color-fg-subtle);content:attr(line);white-space:nowrap}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--color-prettylights-syntax-comment)}.token.namespace{opacity:.7}.token.property,.token.tag,.token.selector,.token.constant,.token.symbol,.token.deleted{color:var(--color-prettylights-syntax-entity-tag)}.token.maybe-class-name{color:var(--color-prettylights-syntax-variable)}.token.property-access,.token.operator,.token.boolean,.token.number,.token.selector .token.class,.token.attr-name,.token.string,.token.char,.token.builtin{color:var(--color-prettylights-syntax-constant)}.token.deleted{color:var(--color-prettylights-syntax-markup-deleted-text)}.code-line .token.deleted{background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.token.inserted{color:var(--color-prettylights-syntax-markup-inserted-text)}.code-line .token.inserted{background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.token.variable{color:var(--color-prettylights-syntax-constant)}.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.color,.token.atrule,.token.attr-value,.token.function,.token.class-name{color:var(--color-prettylights-syntax-string)}.token.rule,.token.regex,.token.important,.token.keyword{color:var(--color-prettylights-syntax-keyword)}.token.coord{color:var(--color-prettylights-syntax-meta-diff-range)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.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}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.right-1{right:.25rem}.top-0{top:0}.top-1{top:.25rem}.z-10{z-index:10}.float-right{float:right}.m-0{margin:0}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.mx-16{margin-left:4rem;margin-right:4rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.mt-2{margin-top:.5rem}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-2{height:.5rem}.h-5{height:1.25rem}.h-full{height:100%}.w-5{width:1.25rem}.w-full{width:100%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.border-spacing-0{--tw-border-spacing-x: 0px;--tw-border-spacing-y: 0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-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))}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.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)))}.overflow-scroll{overflow:scroll}.overflow-y-scroll{overflow-y:scroll}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.opacity-100{opacity:1}.outline{outline-style:solid}.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)}.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}.duration-100{transition-duration:.1s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:root{--secondary-dark: rgb(37, 37, 38);--vsc-background: rgb(30, 30, 30);--button-color: rgb(113, 28, 59);--button-color-hover: rgba(113, 28, 59, .667);--def-border-radius: 5px;--vscode-editor-background: rgb(30, 30, 30);--vscode-editor-foreground: rgb(197, 200, 198);--vscode-textBlockQuote-background: rgba(255, 255, 255, 1)}html,body,#root{height:100%;background-color:var(--vscode-editor-background);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}body{color:var(--vscode-editor-foreground);padding:0;margin:0;height:100%}.press-start-2p{font-family:"Press Start 2P",sans-serif}a:focus{outline:none}.hover\:underline:hover{text-decoration-line:underline} diff --git a/extensions/intellij/src/main/resources/webview/assets/index.js b/extensions/intellij/src/main/resources/webview/assets/index.js index 6e1370660..5148d27da 100644 --- a/extensions/intellij/src/main/resources/webview/assets/index.js +++ b/extensions/intellij/src/main/resources/webview/assets/index.js @@ -1,4 +1,4 @@ -var OG=Object.defineProperty;var DG=(e,t,n)=>t in e?OG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ea=(e,t,n)=>(DG(e,typeof t!="symbol"?t+"":t,n),n);function LG(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var ql=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bR={exports:{}},Mg={},ER={exports:{}},Bt={};/** +var TW=Object.defineProperty;var SW=(e,t,n)=>t in e?TW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ns=(e,t,n)=>(SW(e,typeof t!="symbol"?t+"":t,n),n);function wW(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Jl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var DN={exports:{}},lm={},LN={exports:{}},Pt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var OG=Object.defineProperty;var DG=(e,t,n)=>t in e?OG(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ep=Symbol.for("react.element"),MG=Symbol.for("react.portal"),FG=Symbol.for("react.fragment"),PG=Symbol.for("react.strict_mode"),BG=Symbol.for("react.profiler"),UG=Symbol.for("react.provider"),$G=Symbol.for("react.context"),zG=Symbol.for("react.forward_ref"),HG=Symbol.for("react.suspense"),jG=Symbol.for("react.memo"),GG=Symbol.for("react.lazy"),mw=Symbol.iterator;function VG(e){return e===null||typeof e!="object"?null:(e=mw&&e[mw]||e["@@iterator"],typeof e=="function"?e:null)}var vR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yR=Object.assign,_R={};function nc(e,t,n){this.props=e,this.context=t,this.refs=_R,this.updater=n||vR}nc.prototype.isReactComponent={};nc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};nc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function TR(){}TR.prototype=nc.prototype;function C9(e,t,n){this.props=e,this.context=t,this.refs=_R,this.updater=n||vR}var x9=C9.prototype=new TR;x9.constructor=C9;yR(x9,nc.prototype);x9.isPureReactComponent=!0;var bw=Array.isArray,SR=Object.prototype.hasOwnProperty,k9={current:null},wR={key:!0,ref:!0,__self:!0,__source:!0};function AR(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)SR.call(t,r)&&!wR.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1t in e?OG(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var XG=C,ZG=Symbol.for("react.element"),QG=Symbol.for("react.fragment"),JG=Object.prototype.hasOwnProperty,eV=XG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tV={key:!0,ref:!0,__self:!0,__source:!0};function CR(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)JG.call(t,r)&&!tV.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:ZG,type:e,key:a,ref:o,props:i,_owner:eV.current}}Mg.Fragment=QG;Mg.jsx=CR;Mg.jsxs=CR;bR.exports=Mg;var I=bR.exports,y4={},xR={exports:{}},ji={},kR={exports:{}},IR={};/** + */var $W=C,zW=Symbol.for("react.element"),HW=Symbol.for("react.fragment"),jW=Object.prototype.hasOwnProperty,GW=$W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,VW={key:!0,ref:!0,__self:!0,__source:!0};function HN(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)jW.call(t,r)&&!VW.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:zW,type:e,key:a,ref:o,props:i,_owner:GW.current}}lm.Fragment=HW;lm.jsx=HN;lm.jsxs=HN;DN.exports=lm;var I=DN.exports,J4={},jN={exports:{}},Wi={},GN={exports:{}},VN={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var OG=Object.defineProperty;var DG=(e,t,n)=>t in e?OG(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(V,ce){var N=V.length;V.push(ce);e:for(;0>>1,oe=V[me];if(0>>1;mei(Te,N))Ki(xe,Te)?(V[me]=xe,V[K]=N,me=K):(V[me]=Te,V[re]=N,me=re);else if(Ki(xe,N))V[me]=xe,V[K]=N,me=K;else break e}}return ce}function i(V,ce){var N=V.sortIndex-ce.sortIndex;return N!==0?N:V.id-ce.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],c=[],p=1,f=null,m=3,g=!1,E=!1,b=!1,T=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(V){for(var ce=n(c);ce!==null;){if(ce.callback===null)r(c);else if(ce.startTime<=V)r(c),ce.sortIndex=ce.expirationTime,t(u,ce);else break;ce=n(c)}}function A(V){if(b=!1,w(V),!E)if(n(u)!==null)E=!0,fe(D);else{var ce=n(c);ce!==null&&Z(A,ce.startTime-V)}}function D(V,ce){E=!1,b&&(b=!1,v(B),B=-1),g=!0;var N=m;try{for(w(ce),f=n(u);f!==null&&(!(f.expirationTime>ce)||V&&!Q());){var me=f.callback;if(typeof me=="function"){f.callback=null,m=f.priorityLevel;var oe=me(f.expirationTime<=ce);ce=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===n(u)&&r(u),w(ce)}else r(u);f=n(u)}if(f!==null)var O=!0;else{var re=n(c);re!==null&&Z(A,re.startTime-ce),O=!1}return O}finally{f=null,m=N,g=!1}}var k=!1,R=null,B=-1,W=5,P=-1;function Q(){return!(e.unstable_now()-PV||125me?(V.sortIndex=N,t(c,V),n(u)===null&&V===n(c)&&(b?(v(B),B=-1):b=!0,Z(A,N-me))):(V.sortIndex=oe,t(u,V),E||g||(E=!0,fe(D))),V},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(V){var ce=m;return function(){var N=m;m=ce;try{return V.apply(this,arguments)}finally{m=N}}}})(IR);kR.exports=IR;var nV=kR.exports;/** + */(function(e){function t(W,se){var D=W.length;W.push(se);e:for(;0>>1,le=W[pe];if(0>>1;pei(Se,D))Xi(ke,Se)?(W[pe]=ke,W[X]=D,pe=X):(W[pe]=Se,W[ie]=D,pe=ie);else if(Xi(ke,D))W[pe]=ke,W[X]=D,pe=X;else break e}}return se}function i(W,se){var D=W.sortIndex-se.sortIndex;return D!==0?D:W.id-se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],c=[],p=1,f=null,m=3,g=!1,b=!1,y=!1,T=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(W){for(var se=n(c);se!==null;){if(se.callback===null)r(c);else if(se.startTime<=W)r(c),se.sortIndex=se.expirationTime,t(u,se);else break;se=n(c)}}function A(W){if(y=!1,w(W),!b)if(n(u)!==null)b=!0,De(R);else{var se=n(c);se!==null&&H(A,se.startTime-W)}}function R(W,se){b=!1,y&&(y=!1,E(B),B=-1),g=!0;var D=m;try{for(w(se),f=n(u);f!==null&&(!(f.expirationTime>se)||W&&!Q());){var pe=f.callback;if(typeof pe=="function"){f.callback=null,m=f.priorityLevel;var le=pe(f.expirationTime<=se);se=e.unstable_now(),typeof le=="function"?f.callback=le:f===n(u)&&r(u),w(se)}else r(u);f=n(u)}if(f!==null)var L=!0;else{var ie=n(c);ie!==null&&H(A,ie.startTime-se),L=!1}return L}finally{f=null,m=D,g=!1}}var k=!1,N=null,B=-1,q=5,P=-1;function Q(){return!(e.unstable_now()-PW||125pe?(W.sortIndex=D,t(c,W),n(u)===null&&W===n(c)&&(y?(E(B),B=-1):y=!0,H(A,D-pe))):(W.sortIndex=le,t(u,W),b||g||(b=!0,De(R))),W},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(W){var se=m;return function(){var D=m;m=se;try{return W.apply(this,arguments)}finally{m=D}}}})(VN);GN.exports=VN;var WW=GN.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var OG=Object.defineProperty;var DG=(e,t,n)=>t in e?OG(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var RR=C,Bi=nV;function Pe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_4=Object.prototype.hasOwnProperty,rV=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vw={},yw={};function iV(e){return _4.call(yw,e)?!0:_4.call(vw,e)?!1:rV.test(e)?yw[e]=!0:(vw[e]=!0,!1)}function aV(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oV(e,t,n,r){if(t===null||typeof t>"u"||aV(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ri(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Cr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Cr[e]=new ri(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Cr[t]=new ri(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Cr[e]=new ri(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Cr[e]=new ri(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Cr[e]=new ri(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Cr[e]=new ri(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Cr[e]=new ri(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Cr[e]=new ri(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Cr[e]=new ri(e,5,!1,e.toLowerCase(),null,!1,!1)});var R9=/[\-:]([a-z])/g;function N9(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(R9,N9);Cr[t]=new ri(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(R9,N9);Cr[t]=new ri(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(R9,N9);Cr[t]=new ri(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Cr[e]=new ri(e,1,!1,e.toLowerCase(),null,!1,!1)});Cr.xlinkHref=new ri("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Cr[e]=new ri(e,1,!1,e.toLowerCase(),null,!0,!0)});function O9(e,t,n,r){var i=Cr.hasOwnProperty(t)?Cr[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eb=Object.prototype.hasOwnProperty,qW=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yA={},EA={};function KW(e){return eb.call(EA,e)?!0:eb.call(yA,e)?!1:qW.test(e)?EA[e]=!0:(yA[e]=!0,!1)}function YW(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XW(e,t,n,r){if(t===null||typeof t>"u"||YW(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function oi(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ir[e]=new oi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ir[t]=new oi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ir[e]=new oi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ir[e]=new oi(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ir[e]=new oi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ir[e]=new oi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ir[e]=new oi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ir[e]=new oi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ir[e]=new oi(e,5,!1,e.toLowerCase(),null,!1,!1)});var yE=/[\-:]([a-z])/g;function EE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ir[e]=new oi(e,1,!1,e.toLowerCase(),null,!1,!1)});Ir.xlinkHref=new oi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ir[e]=new oi(e,1,!1,e.toLowerCase(),null,!0,!0)});function vE(e,t,n,r){var i=Ir.hasOwnProperty(t)?Ir[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var u=` -`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{R5=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?od(e):""}function sV(e){switch(e.tag){case 5:return od(e.type);case 16:return od("Lazy");case 13:return od("Suspense");case 19:return od("SuspenseList");case 0:case 2:case 15:return e=N5(e.type,!1),e;case 11:return e=N5(e.type.render,!1),e;case 1:return e=N5(e.type,!0),e;default:return""}}function A4(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o1:return"Fragment";case a1:return"Portal";case T4:return"Profiler";case D9:return"StrictMode";case S4:return"Suspense";case w4:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case DR:return(e.displayName||"Context")+".Consumer";case OR:return(e._context.displayName||"Context")+".Provider";case L9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M9:return t=e.displayName||null,t!==null?t:A4(e.type)||"Memo";case Ls:t=e._payload,e=e._init;try{return A4(e(t))}catch{}}return null}function lV(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return A4(t);case 8:return t===D9?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ll(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function MR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function uV(e){var t=MR(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kf(e){e._valueTracker||(e._valueTracker=uV(e))}function FR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=MR(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ch(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function C4(e,t){var n=t.checked;return Dn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Tw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ll(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function PR(e,t){t=t.checked,t!=null&&O9(e,"checked",t,!1)}function x4(e,t){PR(e,t);var n=ll(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?k4(e,t.type,n):t.hasOwnProperty("defaultValue")&&k4(e,t.type,ll(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function k4(e,t,n){(t!=="number"||Ch(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sd=Array.isArray;function I1(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Yf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cV=["Webkit","ms","Moz","O"];Object.keys(hd).forEach(function(e){cV.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hd[t]=hd[e]})});function zR(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hd.hasOwnProperty(e)&&hd[e]?(""+t).trim():t+"px"}function HR(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=zR(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var dV=Dn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function N4(e,t){if(t){if(dV[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pe(62))}}function O4(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var D4=null;function F9(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var L4=null,R1=null,N1=null;function Cw(e){if(e=_p(e)){if(typeof L4!="function")throw Error(Pe(280));var t=e.stateNode;t&&(t=$g(t),L4(e.stateNode,e.type,t))}}function jR(e){R1?N1?N1.push(e):N1=[e]:R1=e}function GR(){if(R1){var e=R1,t=N1;if(N1=R1=null,Cw(e),t)for(e=0;e>>=0,e===0?32:31-(TV(e)/SV|0)|0}var Xf=64,Zf=4194304;function ld(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=ld(s):(a&=o,a!==0&&(r=ld(a)))}else o=n&~i,o!==0?r=ld(o):a!==0&&(r=ld(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$a(t),e[t]=n}function xV(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=md),Mw=String.fromCharCode(32),Fw=!1;function cN(e,t){switch(e){case"keyup":return tW.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dN(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var s1=!1;function rW(e,t){switch(e){case"compositionend":return dN(t);case"keypress":return t.which!==32?null:(Fw=!0,Mw);case"textInput":return e=t.data,e===Mw&&Fw?null:e;default:return null}}function iW(e,t){if(s1)return e==="compositionend"||!G9&&cN(e,t)?(e=lN(),Q0=z9=Hs=null,s1=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$w(n)}}function gN(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gN(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mN(){for(var e=window,t=Ch();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ch(e.document)}return t}function V9(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fW(e){var t=mN(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gN(n.ownerDocument.documentElement,n)){if(r!==null&&V9(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=zw(n,a);var o=zw(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,l1=null,$4=null,Ed=null,z4=!1;function Hw(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;z4||l1==null||l1!==Ch(r)||(r=l1,"selectionStart"in r&&V9(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ed&&qd(Ed,r)||(Ed=r,r=Dh($4,"onSelect"),0d1||(e.current=q4[d1],q4[d1]=null,d1--)}function mn(e,t){d1++,q4[d1]=e.current,e.current=t}var ul={},zr=ml(ul),mi=ml(!1),lu=ul;function H1(e,t){var n=e.type.contextTypes;if(!n)return ul;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function bi(e){return e=e.childContextTypes,e!=null}function Mh(){Sn(mi),Sn(zr)}function Yw(e,t,n){if(zr.current!==ul)throw Error(Pe(168));mn(zr,t),mn(mi,n)}function AN(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Pe(108,lV(e)||"Unknown",i));return Dn({},n,r)}function Fh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ul,lu=zr.current,mn(zr,e),mn(mi,mi.current),!0}function Xw(e,t,n){var r=e.stateNode;if(!r)throw Error(Pe(169));n?(e=AN(e,t,lu),r.__reactInternalMemoizedMergedChildContext=e,Sn(mi),Sn(zr),mn(zr,e)):Sn(mi),mn(mi,n)}var Vo=null,zg=!1,V5=!1;function CN(e){Vo===null?Vo=[e]:Vo.push(e)}function AW(e){zg=!0,CN(e)}function bl(){if(!V5&&Vo!==null){V5=!0;var e=0,t=an;try{var n=Vo;for(an=1;e>=o,i-=o,qo=1<<32-$a(t)+i|n<B?(W=R,R=null):W=R.sibling;var P=m(v,R,w[B],A);if(P===null){R===null&&(R=W);break}e&&R&&P.alternate===null&&t(v,R),y=a(P,y,B),k===null?D=P:k.sibling=P,k=P,R=W}if(B===w.length)return n(v,R),xn&&Hl(v,B),D;if(R===null){for(;BB?(W=R,R=null):W=R.sibling;var Q=m(v,R,P.value,A);if(Q===null){R===null&&(R=W);break}e&&R&&Q.alternate===null&&t(v,R),y=a(Q,y,B),k===null?D=Q:k.sibling=Q,k=Q,R=W}if(P.done)return n(v,R),xn&&Hl(v,B),D;if(R===null){for(;!P.done;B++,P=w.next())P=f(v,P.value,A),P!==null&&(y=a(P,y,B),k===null?D=P:k.sibling=P,k=P);return xn&&Hl(v,B),D}for(R=r(v,R);!P.done;B++,P=w.next())P=g(R,v,B,P.value,A),P!==null&&(e&&P.alternate!==null&&R.delete(P.key===null?B:P.key),y=a(P,y,B),k===null?D=P:k.sibling=P,k=P);return e&&R.forEach(function(z){return t(v,z)}),xn&&Hl(v,B),D}function T(v,y,w,A){if(typeof w=="object"&&w!==null&&w.type===o1&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case qf:e:{for(var D=w.key,k=y;k!==null;){if(k.key===D){if(D=w.type,D===o1){if(k.tag===7){n(v,k.sibling),y=i(k,w.props.children),y.return=v,v=y;break e}}else if(k.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Ls&&rA(D)===k.type){n(v,k.sibling),y=i(k,w.props),y.ref=Uc(v,k,w),y.return=v,v=y;break e}n(v,k);break}else t(v,k);k=k.sibling}w.type===o1?(y=iu(w.props.children,v.mode,A,w.key),y.return=v,v=y):(A=oh(w.type,w.key,w.props,null,v.mode,A),A.ref=Uc(v,y,w),A.return=v,v=A)}return o(v);case a1:e:{for(k=w.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(v,y.sibling),y=i(y,w.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=J5(w,v.mode,A),y.return=v,v=y}return o(v);case Ls:return k=w._init,T(v,y,k(w._payload),A)}if(sd(w))return E(v,y,w,A);if(Lc(w))return b(v,y,w,A);i0(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(v,y.sibling),y=i(y,w),y.return=v,v=y):(n(v,y),y=Q5(w,v.mode,A),y.return=v,v=y),o(v)):n(v,y)}return T}var G1=LN(!0),MN=LN(!1),Tp={},go=ml(Tp),Zd=ml(Tp),Qd=ml(Tp);function Ql(e){if(e===Tp)throw Error(Pe(174));return e}function eE(e,t){switch(mn(Qd,t),mn(Zd,e),mn(go,Tp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:R4(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=R4(t,e)}Sn(go),mn(go,t)}function V1(){Sn(go),Sn(Zd),Sn(Qd)}function FN(e){Ql(Qd.current);var t=Ql(go.current),n=R4(t,e.type);t!==n&&(mn(Zd,e),mn(go,n))}function tE(e){Zd.current===e&&(Sn(go),Sn(Zd))}var Nn=ml(0);function Hh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var W5=[];function nE(){for(var e=0;en?n:4,e(!0);var r=q5.transition;q5.transition={};try{e(!1),t()}finally{an=n,q5.transition=r}}function QN(){return ga().memoizedState}function IW(e,t,n){var r=el(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},JN(e))eO(t,n);else if(n=RN(e,t,n,r),n!==null){var i=ei();za(n,e,r,i),tO(n,t,r)}}function RW(e,t,n){var r=el(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(JN(e))eO(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,ja(s,o)){var u=t.interleaved;u===null?(i.next=i,Q9(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=RN(e,t,i,r),n!==null&&(i=ei(),za(n,e,r,i),tO(n,t,r))}}function JN(e){var t=e.alternate;return e===On||t!==null&&t===On}function eO(e,t){vd=jh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tO(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,B9(e,n)}}var Gh={readContext:ha,useCallback:Lr,useContext:Lr,useEffect:Lr,useImperativeHandle:Lr,useInsertionEffect:Lr,useLayoutEffect:Lr,useMemo:Lr,useReducer:Lr,useRef:Lr,useState:Lr,useDebugValue:Lr,useDeferredValue:Lr,useTransition:Lr,useMutableSource:Lr,useSyncExternalStore:Lr,useId:Lr,unstable_isNewReconciler:!1},NW={readContext:ha,useCallback:function(e,t){return io().memoizedState=[e,t===void 0?null:t],e},useContext:ha,useEffect:aA,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nh(4194308,4,qN.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nh(4194308,4,e,t)},useInsertionEffect:function(e,t){return nh(4,2,e,t)},useMemo:function(e,t){var n=io();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=io();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=IW.bind(null,On,e),[r.memoizedState,e]},useRef:function(e){var t=io();return e={current:e},t.memoizedState=e},useState:iA,useDebugValue:sE,useDeferredValue:function(e){return io().memoizedState=e},useTransition:function(){var e=iA(!1),t=e[0];return e=kW.bind(null,e[1]),io().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=On,i=io();if(xn){if(n===void 0)throw Error(Pe(407));n=n()}else{if(n=t(),dr===null)throw Error(Pe(349));cu&30||UN(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,aA(zN.bind(null,r,a,e),[e]),r.flags|=2048,tp(9,$N.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=io(),t=dr.identifierPrefix;if(xn){var n=Ko,r=qo;n=(r&~(1<<32-$a(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jd++,0")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{n3=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ed(e):""}function ZW(e){switch(e.tag){case 5:return Ed(e.type);case 16:return Ed("Lazy");case 13:return Ed("Suspense");case 19:return Ed("SuspenseList");case 0:case 2:case 15:return e=r3(e.type,!1),e;case 11:return e=r3(e.type.render,!1),e;case 1:return e=r3(e.type,!0),e;default:return""}}function ib(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case h1:return"Fragment";case f1:return"Portal";case tb:return"Profiler";case _E:return"StrictMode";case nb:return"Suspense";case rb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case YN:return(e.displayName||"Context")+".Consumer";case KN:return(e._context.displayName||"Context")+".Provider";case TE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case SE:return t=e.displayName||null,t!==null?t:ib(e.type)||"Memo";case Hs:t=e._payload,e=e._init;try{return ib(e(t))}catch{}}return null}function QW(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ib(t);case 8:return t===_E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ZN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function JW(e){var t=ZN(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function u0(e){e._valueTracker||(e._valueTracker=JW(e))}function QN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ZN(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ab(e,t){var n=t.checked;return Ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _A(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function JN(e,t){t=t.checked,t!=null&&vE(e,"checked",t,!1)}function ob(e,t){JN(e,t);var n=hl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sb(e,t.type,n):t.hasOwnProperty("defaultValue")&&sb(e,t.type,hl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function TA(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sb(e,t,n){(t!=="number"||Jh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vd=Array.isArray;function P1(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=c0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eq=["Webkit","ms","Moz","O"];Object.keys(xd).forEach(function(e){eq.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xd[t]=xd[e]})});function rO(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xd.hasOwnProperty(e)&&xd[e]?(""+t).trim():t+"px"}function iO(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=rO(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var tq=Ln({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cb(e,t){if(t){if(tq[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pe(62))}}function db(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pb=null;function wE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fb=null,B1=null,U1=null;function AA(e){if(e=Fp(e)){if(typeof fb!="function")throw Error(Pe(280));var t=e.stateNode;t&&(t=fm(t),fb(e.stateNode,e.type,t))}}function aO(e){B1?U1?U1.push(e):U1=[e]:B1=e}function oO(){if(B1){var e=B1,t=U1;if(U1=B1=null,AA(e),t)for(e=0;e>>=0,e===0?32:31-(pq(e)/fq|0)|0}var d0=64,p0=4194304;function _d(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function rg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=_d(s):(a&=o,a!==0&&(r=_d(a)))}else o=n&~i,o!==0?r=_d(o):a!==0&&(r=_d(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Lp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ga(t),e[t]=n}function bq(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Rd),LA=String.fromCharCode(32),MA=!1;function CO(e,t){switch(e){case"keyup":return Vq.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var g1=!1;function qq(e,t){switch(e){case"compositionend":return kO(t);case"keypress":return t.which!==32?null:(MA=!0,LA);case"textInput":return e=t.data,e===LA&&MA?null:e;default:return null}}function Kq(e,t){if(g1)return e==="compositionend"||!OE&&CO(e,t)?(e=wO(),bh=IE=Xs=null,g1=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=UA(n)}}function NO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?NO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function OO(){for(var e=window,t=Jh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jh(e.document)}return t}function DE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function rK(e){var t=OO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&NO(n.ownerDocument.documentElement,n)){if(r!==null&&DE(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=$A(n,a);var o=$A(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,m1=null,Eb=null,Od=null,vb=!1;function zA(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vb||m1==null||m1!==Jh(r)||(r=m1,"selectionStart"in r&&DE(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Od&&up(Od,r)||(Od=r,r=og(Eb,"onSelect"),0E1||(e.current=Cb[E1],Cb[E1]=null,E1--)}function bn(e,t){E1++,Cb[E1]=e.current,e.current=t}var gl={},Gr=Tl(gl),Ei=Tl(!1),gu=gl;function Z1(e,t){var n=e.type.contextTypes;if(!n)return gl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vi(e){return e=e.childContextTypes,e!=null}function lg(){wn(Ei),wn(Gr)}function KA(e,t,n){if(Gr.current!==gl)throw Error(Pe(168));bn(Gr,t),bn(Ei,n)}function zO(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Pe(108,QW(e)||"Unknown",i));return Ln({},n,r)}function ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gl,gu=Gr.current,bn(Gr,e),bn(Ei,Ei.current),!0}function YA(e,t,n){var r=e.stateNode;if(!r)throw Error(Pe(169));n?(e=zO(e,t,gu),r.__reactInternalMemoizedMergedChildContext=e,wn(Ei),wn(Gr),bn(Gr,e)):wn(Ei),bn(Ei,n)}var Jo=null,hm=!1,b3=!1;function HO(e){Jo===null?Jo=[e]:Jo.push(e)}function gK(e){hm=!0,HO(e)}function Sl(){if(!b3&&Jo!==null){b3=!0;var e=0,t=on;try{var n=Jo;for(on=1;e>=o,i-=o,ts=1<<32-Ga(t)+i|n<B?(q=N,N=null):q=N.sibling;var P=m(E,N,w[B],A);if(P===null){N===null&&(N=q);break}e&&N&&P.alternate===null&&t(E,N),v=a(P,v,B),k===null?R=P:k.sibling=P,k=P,N=q}if(B===w.length)return n(E,N),xn&&Kl(E,B),R;if(N===null){for(;BB?(q=N,N=null):q=N.sibling;var Q=m(E,N,P.value,A);if(Q===null){N===null&&(N=q);break}e&&N&&Q.alternate===null&&t(E,N),v=a(Q,v,B),k===null?R=Q:k.sibling=Q,k=Q,N=q}if(P.done)return n(E,N),xn&&Kl(E,B),R;if(N===null){for(;!P.done;B++,P=w.next())P=f(E,P.value,A),P!==null&&(v=a(P,v,B),k===null?R=P:k.sibling=P,k=P);return xn&&Kl(E,B),R}for(N=r(E,N);!P.done;B++,P=w.next())P=g(N,E,B,P.value,A),P!==null&&(e&&P.alternate!==null&&N.delete(P.key===null?B:P.key),v=a(P,v,B),k===null?R=P:k.sibling=P,k=P);return e&&N.forEach(function($){return t(E,$)}),xn&&Kl(E,B),R}function T(E,v,w,A){if(typeof w=="object"&&w!==null&&w.type===h1&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case l0:e:{for(var R=w.key,k=v;k!==null;){if(k.key===R){if(R=w.type,R===h1){if(k.tag===7){n(E,k.sibling),v=i(k,w.props.children),v.return=E,E=v;break e}}else if(k.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Hs&&nC(R)===k.type){n(E,k.sibling),v=i(k,w.props),v.ref=Zc(E,k,w),v.return=E,E=v;break e}n(E,k);break}else t(E,k);k=k.sibling}w.type===h1?(v=du(w.props.children,E.mode,A,w.key),v.return=E,E=v):(A=Ah(w.type,w.key,w.props,null,E.mode,A),A.ref=Zc(E,v,w),A.return=E,E=A)}return o(E);case f1:e:{for(k=w.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(E,v.sibling),v=i(v,w.children||[]),v.return=E,E=v;break e}else{n(E,v);break}else t(E,v);v=v.sibling}v=A3(w,E.mode,A),v.return=E,E=v}return o(E);case Hs:return k=w._init,T(E,v,k(w._payload),A)}if(vd(w))return b(E,v,w,A);if(Wc(w))return y(E,v,w,A);E0(E,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(E,v.sibling),v=i(v,w),v.return=E,E=v):(n(E,v),v=w3(w,E.mode,A),v.return=E,E=v),o(E)):n(E,v)}return T}var J1=XO(!0),ZO=XO(!1),Pp={},_o=Tl(Pp),fp=Tl(Pp),hp=Tl(Pp);function iu(e){if(e===Pp)throw Error(Pe(174));return e}function HE(e,t){switch(bn(hp,t),bn(fp,e),bn(_o,Pp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ub(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ub(t,e)}wn(_o),bn(_o,t)}function ec(){wn(_o),wn(fp),wn(hp)}function QO(e){iu(hp.current);var t=iu(_o.current),n=ub(t,e.type);t!==n&&(bn(fp,e),bn(_o,n))}function jE(e){fp.current===e&&(wn(_o),wn(fp))}var On=Tl(0);function gg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var y3=[];function GE(){for(var e=0;en?n:4,e(!0);var r=E3.transition;E3.transition={};try{e(!1),t()}finally{on=n,E3.transition=r}}function hD(){return ya().memoizedState}function EK(e,t,n){var r=sl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gD(e))mD(t,n);else if(n=WO(e,t,n,r),n!==null){var i=ri();Va(n,e,r,i),bD(n,t,r)}}function vK(e,t,n){var r=sl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gD(e))mD(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ka(s,o)){var u=t.interleaved;u===null?(i.next=i,$E(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=WO(e,t,i,r),n!==null&&(i=ri(),Va(n,e,r,i),bD(n,t,r))}}function gD(e){var t=e.alternate;return e===Dn||t!==null&&t===Dn}function mD(e,t){Dd=mg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bD(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,CE(e,n)}}var bg={readContext:ba,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useMutableSource:Pr,useSyncExternalStore:Pr,useId:Pr,unstable_isNewReconciler:!1},_K={readContext:ba,useCallback:function(e,t){return co().memoizedState=[e,t===void 0?null:t],e},useContext:ba,useEffect:iC,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_h(4194308,4,uD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _h(4194308,4,e,t)},useInsertionEffect:function(e,t){return _h(4,2,e,t)},useMemo:function(e,t){var n=co();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=co();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=EK.bind(null,Dn,e),[r.memoizedState,e]},useRef:function(e){var t=co();return e={current:e},t.memoizedState=e},useState:rC,useDebugValue:YE,useDeferredValue:function(e){return co().memoizedState=e},useTransition:function(){var e=rC(!1),t=e[0];return e=yK.bind(null,e[1]),co().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Dn,i=co();if(xn){if(n===void 0)throw Error(Pe(407));n=n()}else{if(n=t(),fr===null)throw Error(Pe(349));bu&30||tD(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,iC(rD.bind(null,r,a,e),[e]),r.flags|=2048,bp(9,nD.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=co(),t=fr.identifierPrefix;if(xn){var n=ns,r=ts;n=(r&~(1<<32-Ga(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[lo]=t,e[Xd]=r,cO(e,t,!1,!1),t.stateNode=e;e:{switch(o=O4(n,r),n){case"dialog":yn("cancel",e),yn("close",e),i=r;break;case"iframe":case"object":case"embed":yn("load",e),i=r;break;case"video":case"audio":for(i=0;iq1&&(t.flags|=128,r=!0,$c(a,!1),t.lanes=4194304)}else{if(!r)if(e=Hh(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$c(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!xn)return Mr(t),null}else 2*jn()-a.renderingStartTime>q1&&n!==1073741824&&(t.flags|=128,r=!0,$c(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=jn(),t.sibling=null,n=Nn.current,mn(Nn,r?n&1|2:n&1),t):(Mr(t),null);case 22:case 23:return fE(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ni&1073741824&&(Mr(t),t.subtreeFlags&6&&(t.flags|=8192)):Mr(t),null;case 24:return null;case 25:return null}throw Error(Pe(156,t.tag))}function UW(e,t){switch(q9(t),t.tag){case 1:return bi(t.type)&&Mh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return V1(),Sn(mi),Sn(zr),nE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tE(t),null;case 13:if(Sn(Nn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pe(340));j1()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Sn(Nn),null;case 4:return V1(),null;case 10:return Z9(t.type._context),null;case 22:case 23:return fE(),null;case 24:return null;default:return null}}var o0=!1,Br=!1,$W=typeof WeakSet=="function"?WeakSet:Set,nt=null;function g1(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pn(e,t,r)}else n.current=null}function ab(e,t,n){try{n()}catch(r){Pn(e,t,r)}}var hA=!1;function zW(e,t){if(H4=Nh,e=mN(),V9(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,c=0,p=0,f=e,m=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++c===i&&(s=o),m===a&&++p===r&&(u=o),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(j4={focusedElem:e,selectionRange:n},Nh=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){t=nt;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var b=E.memoizedProps,T=E.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?b:Da(t.type,b),T);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pe(163))}}catch(A){Pn(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}return E=hA,hA=!1,E}function yd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&ab(t,n,a)}i=i.next}while(i!==r)}}function Gg(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ob(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function fO(e){var t=e.alternate;t!==null&&(e.alternate=null,fO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lo],delete t[Xd],delete t[W4],delete t[SW],delete t[wW])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hO(e){return e.tag===5||e.tag===3||e.tag===4}function gA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hO(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Lh));else if(r!==4&&(e=e.child,e!==null))for(sb(e,t,n),e=e.sibling;e!==null;)sb(e,t,n),e=e.sibling}function lb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lb(e,t,n),e=e.sibling;e!==null;)lb(e,t,n),e=e.sibling}var Er=null,La=!1;function ws(e,t,n){for(n=n.child;n!==null;)gO(e,t,n),n=n.sibling}function gO(e,t,n){if(ho&&typeof ho.onCommitFiberUnmount=="function")try{ho.onCommitFiberUnmount(Fg,n)}catch{}switch(n.tag){case 5:Br||g1(n,t);case 6:var r=Er,i=La;Er=null,ws(e,t,n),Er=r,La=i,Er!==null&&(La?(e=Er,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Er.removeChild(n.stateNode));break;case 18:Er!==null&&(La?(e=Er,n=n.stateNode,e.nodeType===8?G5(e.parentNode,n):e.nodeType===1&&G5(e,n),Vd(e)):G5(Er,n.stateNode));break;case 4:r=Er,i=La,Er=n.stateNode.containerInfo,La=!0,ws(e,t,n),Er=r,La=i;break;case 0:case 11:case 14:case 15:if(!Br&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&ab(n,t,o),i=i.next}while(i!==r)}ws(e,t,n);break;case 1:if(!Br&&(g1(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Pn(n,t,s)}ws(e,t,n);break;case 21:ws(e,t,n);break;case 22:n.mode&1?(Br=(r=Br)||n.memoizedState!==null,ws(e,t,n),Br=r):ws(e,t,n);break;default:ws(e,t,n)}}function mA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $W),t.forEach(function(r){var i=XW.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=jn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jW(r/1960))-r,10e?16:e,js===null)var r=!1;else{if(e=js,js=null,qh=0,qt&6)throw Error(Pe(331));var i=qt;for(qt|=4,nt=e.current;nt!==null;){var a=nt,o=a.child;if(nt.flags&16){var s=a.deletions;if(s!==null){for(var u=0;ujn()-dE?ru(e,0):cE|=n),Ei(e,t)}function SO(e,t){t===0&&(e.mode&1?(t=Zf,Zf<<=1,!(Zf&130023424)&&(Zf=4194304)):t=1);var n=ei();e=es(e,t),e!==null&&(vp(e,t,n),Ei(e,n))}function YW(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),SO(e,n)}function XW(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Pe(314))}r!==null&&r.delete(t),SO(e,n)}var wO;wO=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mi.current)hi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return hi=!1,PW(e,t,n);hi=!!(e.flags&131072)}else hi=!1,xn&&t.flags&1048576&&xN(t,Bh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rh(e,t),e=t.pendingProps;var i=H1(t,zr.current);D1(t,n),i=iE(null,t,r,e,i,n);var a=aE();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bi(r)?(a=!0,Fh(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,J9(t),i.updater=Hg,t.stateNode=i,i._reactInternals=t,Q4(t,r,e,n),t=tb(null,t,r,!0,a,n)):(t.tag=0,xn&&a&&W9(t),Xr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rh(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=QW(r),e=Da(r,e),i){case 0:t=eb(null,t,r,e,n);break e;case 1:t=dA(null,t,r,e,n);break e;case 11:t=uA(null,t,r,e,n);break e;case 14:t=cA(null,t,r,Da(r.type,e),n);break e}throw Error(Pe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),eb(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),dA(e,t,r,i,n);case 3:e:{if(sO(t),e===null)throw Error(Pe(387));r=t.pendingProps,a=t.memoizedState,i=a.element,NN(e,t),zh(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=W1(Error(Pe(423)),t),t=pA(e,t,r,n,i);break e}else if(r!==i){i=W1(Error(Pe(424)),t),t=pA(e,t,r,n,i);break e}else for(Di=Zs(t.stateNode.containerInfo.firstChild),Li=t,xn=!0,Fa=null,n=MN(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(j1(),r===i){t=ts(e,t,n);break e}Xr(e,t,r,n)}t=t.child}return t;case 5:return FN(t),e===null&&Y4(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,G4(r,i)?o=null:a!==null&&G4(r,a)&&(t.flags|=32),oO(e,t),Xr(e,t,o,n),t.child;case 6:return e===null&&Y4(t),null;case 13:return lO(e,t,n);case 4:return eE(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=G1(t,null,r,n):Xr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),uA(e,t,r,i,n);case 7:return Xr(e,t,t.pendingProps,n),t.child;case 8:return Xr(e,t,t.pendingProps.children,n),t.child;case 12:return Xr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,mn(Uh,r._currentValue),r._currentValue=o,a!==null)if(ja(a.value,o)){if(a.children===i.children&&!mi.current){t=ts(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(a.tag===1){u=Xo(-1,n&-n),u.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),X4(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Pe(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),X4(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Xr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,D1(t,n),i=ha(i),r=r(i),t.flags|=1,Xr(e,t,r,n),t.child;case 14:return r=t.type,i=Da(r,t.pendingProps),i=Da(r.type,i),cA(e,t,r,i,n);case 15:return iO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),rh(e,t),t.tag=1,bi(r)?(e=!0,Fh(t)):e=!1,D1(t,n),DN(t,r,i),Q4(t,r,i,n),tb(null,t,r,!0,e,n);case 19:return uO(e,t,n);case 22:return aO(e,t,n)}throw Error(Pe(156,t.tag))};function AO(e,t){return ZR(e,t)}function ZW(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ua(e,t,n,r){return new ZW(e,t,n,r)}function gE(e){return e=e.prototype,!(!e||!e.isReactComponent)}function QW(e){if(typeof e=="function")return gE(e)?1:0;if(e!=null){if(e=e.$$typeof,e===L9)return 11;if(e===M9)return 14}return 2}function tl(e,t){var n=e.alternate;return n===null?(n=ua(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function oh(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")gE(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case o1:return iu(n.children,i,a,t);case D9:o=8,i|=8;break;case T4:return e=ua(12,n,t,i|2),e.elementType=T4,e.lanes=a,e;case S4:return e=ua(13,n,t,i),e.elementType=S4,e.lanes=a,e;case w4:return e=ua(19,n,t,i),e.elementType=w4,e.lanes=a,e;case LR:return Wg(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case OR:o=10;break e;case DR:o=9;break e;case L9:o=11;break e;case M9:o=14;break e;case Ls:o=16,r=null;break e}throw Error(Pe(130,e==null?e:typeof e,""))}return t=ua(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function iu(e,t,n,r){return e=ua(7,e,r,t),e.lanes=n,e}function Wg(e,t,n,r){return e=ua(22,e,r,t),e.elementType=LR,e.lanes=n,e.stateNode={isHidden:!1},e}function Q5(e,t,n){return e=ua(6,e,null,t),e.lanes=n,e}function J5(e,t,n){return t=ua(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function JW(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=D5(0),this.expirationTimes=D5(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=D5(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function mE(e,t,n,r,i,a,o,s,u){return e=new JW(e,t,n,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ua(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},J9(a),e}function eq(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(IO)}catch(e){console.error(e)}}IO(),xR.exports=ji;var yE=xR.exports;const _E=Hi(yE);var wA=yE;y4.createRoot=wA.createRoot,y4.hydrateRoot=wA.hydrateRoot;var RO={exports:{}},on={};/** +`+a.stack}return{value:e,source:t,stack:i,digest:null}}function T3(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ob(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wK=typeof WeakMap=="function"?WeakMap:Map;function yD(e,t,n){n=is(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Eg||(Eg=!0,Hb=r),Ob(e,t)},n}function ED(e,t,n){n=is(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ob(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Ob(e,t),typeof r!="function"&&(ol===null?ol=new Set([this]):ol.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function aC(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wK;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=BK.bind(null,e,t,n),t.then(e,e))}function oC(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function sC(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=is(-1,1),t.tag=2,al(n,t,1))),n.lanes|=1),e)}var AK=hs.ReactCurrentOwner,bi=!1;function Jr(e,t,n,r){t.child=e===null?ZO(t,null,n,r):J1(t,e.child,n,r)}function lC(e,t,n,r,i){n=n.render;var a=t.ref;return z1(t,i),r=WE(e,t,n,r,a,i),n=qE(),e!==null&&!bi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,us(e,t,i)):(xn&&n&&LE(t),t.flags|=1,Jr(e,t,r,i),t.child)}function uC(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!r9(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,vD(e,t,a,r,i)):(e=Ah(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:up,n(o,r)&&e.ref===t.ref)return us(e,t,i)}return t.flags|=1,e=ll(a,r),e.ref=t.ref,e.return=t,t.child=e}function vD(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(up(a,r)&&e.ref===t.ref)if(bi=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(bi=!0);else return t.lanes=e.lanes,us(e,t,i)}return Db(e,t,n,r,i)}function _D(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},bn(w1,Di),Di|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,bn(w1,Di),Di|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,bn(w1,Di),Di|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,bn(w1,Di),Di|=r;return Jr(e,t,i,n),t.child}function TD(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Db(e,t,n,r,i){var a=vi(n)?gu:Gr.current;return a=Z1(t,a),z1(t,i),n=WE(e,t,n,r,a,i),r=qE(),e!==null&&!bi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,us(e,t,i)):(xn&&r&&LE(t),t.flags|=1,Jr(e,t,n,i),t.child)}function cC(e,t,n,r,i){if(vi(n)){var a=!0;ug(t)}else a=!1;if(z1(t,i),t.stateNode===null)Th(e,t),YO(t,n,r),Nb(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=ba(c):(c=vi(n)?gu:Gr.current,c=Z1(t,c));var p=n.getDerivedStateFromProps,f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==c)&&tC(t,o,r,c),js=!1;var m=t.memoizedState;o.state=m,hg(t,r,o,i),u=t.memoizedState,s!==r||m!==u||Ei.current||js?(typeof p=="function"&&(Rb(t,n,p,r),u=t.memoizedState),(s=js||eC(t,n,s,r,m,u,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,qO(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Fa(t.type,s),o.props=c,f=t.pendingProps,m=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=ba(u):(u=vi(n)?gu:Gr.current,u=Z1(t,u));var g=n.getDerivedStateFromProps;(p=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||m!==u)&&tC(t,o,r,u),js=!1,m=t.memoizedState,o.state=m,hg(t,r,o,i);var b=t.memoizedState;s!==f||m!==b||Ei.current||js?(typeof g=="function"&&(Rb(t,n,g,r),b=t.memoizedState),(c=js||eC(t,n,c,r,m,b,u)||!1)?(p||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,b,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,b,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),o.props=r,o.state=b,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Lb(e,t,n,r,a,i)}function Lb(e,t,n,r,i,a){TD(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&YA(t,n,!1),us(e,t,a);r=t.stateNode,AK.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=J1(t,e.child,null,a),t.child=J1(t,null,s,a)):Jr(e,t,s,a),t.memoizedState=r.state,i&&YA(t,n,!0),t.child}function SD(e){var t=e.stateNode;t.pendingContext?KA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&KA(e,t.context,!1),HE(e,t.containerInfo)}function dC(e,t,n,r,i){return Q1(),FE(i),t.flags|=256,Jr(e,t,n,r),t.child}var Mb={dehydrated:null,treeContext:null,retryLane:0};function Fb(e){return{baseLanes:e,cachePool:null,transitions:null}}function wD(e,t,n){var r=t.pendingProps,i=On.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),bn(On,i&1),e===null)return xb(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Em(o,r,0,null),e=du(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Fb(n),t.memoizedState=Mb,e):XE(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return CK(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ll(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=ll(s,a):(a=du(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Fb(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Mb,r}return a=e.child,e=a.sibling,r=ll(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function XE(e,t){return t=Em({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function v0(e,t,n,r){return r!==null&&FE(r),J1(t,e.child,null,n),e=XE(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function CK(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=T3(Error(Pe(422))),v0(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Em({mode:"visible",children:r.children},i,0,null),a=du(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&J1(t,e.child,null,o),t.child.memoizedState=Fb(o),t.memoizedState=Mb,a);if(!(t.mode&1))return v0(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(Pe(419)),r=T3(a,r,void 0),v0(e,t,o,r)}if(s=(o&e.childLanes)!==0,bi||s){if(r=fr,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,ls(e,i),Va(r,e,i,-1))}return n9(),r=T3(Error(Pe(421))),v0(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=UK.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Mi=il(i.nextSibling),Fi=t,xn=!0,$a=null,e!==null&&(la[ua++]=ts,la[ua++]=ns,la[ua++]=mu,ts=e.id,ns=e.overflow,mu=t),t=XE(t,r.children),t.flags|=4096,t)}function pC(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ib(e.return,t,n)}function S3(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function AD(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Jr(e,t,r.children,n),r=On.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pC(e,n,t);else if(e.tag===19)pC(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(bn(On,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&gg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),S3(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&gg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}S3(t,!0,n,null,a);break;case"together":S3(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Th(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function us(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yu|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Pe(153));if(t.child!==null){for(e=t.child,n=ll(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ll(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kK(e,t,n){switch(t.tag){case 3:SD(t),Q1();break;case 5:QO(t);break;case 1:vi(t.type)&&ug(t);break;case 4:HE(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;bn(pg,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(bn(On,On.current&1),t.flags|=128,null):n&t.child.childLanes?wD(e,t,n):(bn(On,On.current&1),e=us(e,t,n),e!==null?e.sibling:null);bn(On,On.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return AD(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),bn(On,On.current),r)break;return null;case 22:case 23:return t.lanes=0,_D(e,t,n)}return us(e,t,n)}var CD,Pb,kD,xD;CD=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Pb=function(){};kD=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,iu(_o.current);var a=null;switch(n){case"input":i=ab(e,i),r=ab(e,r),a=[];break;case"select":i=Ln({},i,{value:void 0}),r=Ln({},r,{value:void 0}),a=[];break;case"textarea":i=lb(e,i),r=lb(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=sg)}cb(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(np.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(u!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(a=a||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(a=a||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(np.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&_n("scroll",e),a||s===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};xD=function(e,t,n,r){n!==r&&(t.flags|=4)};function Qc(e,t){if(!xn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Br(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xK(e,t,n){var r=t.pendingProps;switch(ME(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Br(t),null;case 1:return vi(t.type)&&lg(),Br(t),null;case 3:return r=t.stateNode,ec(),wn(Ei),wn(Gr),GE(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(y0(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$a!==null&&(Vb($a),$a=null))),Pb(e,t),Br(t),null;case 5:jE(t);var i=iu(hp.current);if(n=t.type,e!==null&&t.stateNode!=null)kD(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Pe(166));return Br(t),null}if(e=iu(_o.current),y0(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[go]=t,r[pp]=a,e=(t.mode&1)!==0,n){case"dialog":_n("cancel",r),_n("close",r);break;case"iframe":case"object":case"embed":_n("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[go]=t,e[pp]=r,CD(e,t,!1,!1),t.stateNode=e;e:{switch(o=db(n,r),n){case"dialog":_n("cancel",e),_n("close",e),i=r;break;case"iframe":case"object":case"embed":_n("load",e),i=r;break;case"video":case"audio":for(i=0;inc&&(t.flags|=128,r=!0,Qc(a,!1),t.lanes=4194304)}else{if(!r)if(e=gg(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qc(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!xn)return Br(t),null}else 2*Gn()-a.renderingStartTime>nc&&n!==1073741824&&(t.flags|=128,r=!0,Qc(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Gn(),t.sibling=null,n=On.current,bn(On,r?n&1|2:n&1),t):(Br(t),null);case 22:case 23:return t9(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Di&1073741824&&(Br(t),t.subtreeFlags&6&&(t.flags|=8192)):Br(t),null;case 24:return null;case 25:return null}throw Error(Pe(156,t.tag))}function IK(e,t){switch(ME(t),t.tag){case 1:return vi(t.type)&&lg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ec(),wn(Ei),wn(Gr),GE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jE(t),null;case 13:if(wn(On),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pe(340));Q1()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wn(On),null;case 4:return ec(),null;case 10:return UE(t.type._context),null;case 22:case 23:return t9(),null;case 24:return null;default:return null}}var _0=!1,zr=!1,RK=typeof WeakSet=="function"?WeakSet:Set,tt=null;function S1(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Bn(e,t,r)}else n.current=null}function Bb(e,t,n){try{n()}catch(r){Bn(e,t,r)}}var fC=!1;function NK(e,t){if(_b=ig,e=OO(),DE(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,c=0,p=0,f=e,m=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++c===i&&(s=o),m===a&&++p===r&&(u=o),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tb={focusedElem:e,selectionRange:n},ig=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){t=tt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var y=b.memoizedProps,T=b.memoizedState,E=t.stateNode,v=E.getSnapshotBeforeUpdate(t.elementType===t.type?y:Fa(t.type,y),T);E.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pe(163))}}catch(A){Bn(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}return b=fC,fC=!1,b}function Ld(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Bb(t,n,a)}i=i.next}while(i!==r)}}function bm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ub(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ID(e){var t=e.alternate;t!==null&&(e.alternate=null,ID(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[go],delete t[pp],delete t[Ab],delete t[fK],delete t[hK])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function RD(e){return e.tag===5||e.tag===3||e.tag===4}function hC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||RD(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $b(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sg));else if(r!==4&&(e=e.child,e!==null))for($b(e,t,n),e=e.sibling;e!==null;)$b(e,t,n),e=e.sibling}function zb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(zb(e,t,n),e=e.sibling;e!==null;)zb(e,t,n),e=e.sibling}var _r=null,Pa=!1;function Os(e,t,n){for(n=n.child;n!==null;)ND(e,t,n),n=n.sibling}function ND(e,t,n){if(vo&&typeof vo.onCommitFiberUnmount=="function")try{vo.onCommitFiberUnmount(um,n)}catch{}switch(n.tag){case 5:zr||S1(n,t);case 6:var r=_r,i=Pa;_r=null,Os(e,t,n),_r=r,Pa=i,_r!==null&&(Pa?(e=_r,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_r.removeChild(n.stateNode));break;case 18:_r!==null&&(Pa?(e=_r,n=n.stateNode,e.nodeType===8?m3(e.parentNode,n):e.nodeType===1&&m3(e,n),sp(e)):m3(_r,n.stateNode));break;case 4:r=_r,i=Pa,_r=n.stateNode.containerInfo,Pa=!0,Os(e,t,n),_r=r,Pa=i;break;case 0:case 11:case 14:case 15:if(!zr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Bb(n,t,o),i=i.next}while(i!==r)}Os(e,t,n);break;case 1:if(!zr&&(S1(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Bn(n,t,s)}Os(e,t,n);break;case 21:Os(e,t,n);break;case 22:n.mode&1?(zr=(r=zr)||n.memoizedState!==null,Os(e,t,n),zr=r):Os(e,t,n);break;default:Os(e,t,n)}}function gC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new RK),t.forEach(function(r){var i=$K.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ra(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=Gn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DK(r/1960))-r,10e?16:e,Zs===null)var r=!1;else{if(e=Zs,Zs=null,vg=0,Kt&6)throw Error(Pe(331));var i=Kt;for(Kt|=4,tt=e.current;tt!==null;){var a=tt,o=a.child;if(tt.flags&16){var s=a.deletions;if(s!==null){for(var u=0;uGn()-JE?cu(e,0):QE|=n),_i(e,t)}function UD(e,t){t===0&&(e.mode&1?(t=p0,p0<<=1,!(p0&130023424)&&(p0=4194304)):t=1);var n=ri();e=ls(e,t),e!==null&&(Lp(e,t,n),_i(e,n))}function UK(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),UD(e,n)}function $K(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Pe(314))}r!==null&&r.delete(t),UD(e,n)}var $D;$D=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ei.current)bi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bi=!1,kK(e,t,n);bi=!!(e.flags&131072)}else bi=!1,xn&&t.flags&1048576&&jO(t,dg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Th(e,t),e=t.pendingProps;var i=Z1(t,Gr.current);z1(t,n),i=WE(null,t,r,e,i,n);var a=qE();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)?(a=!0,ug(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zE(t),i.updater=gm,t.stateNode=i,i._reactInternals=t,Nb(t,r,e,n),t=Lb(null,t,r,!0,a,n)):(t.tag=0,xn&&a&&LE(t),Jr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Th(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=HK(r),e=Fa(r,e),i){case 0:t=Db(null,t,r,e,n);break e;case 1:t=cC(null,t,r,e,n);break e;case 11:t=lC(null,t,r,e,n);break e;case 14:t=uC(null,t,r,Fa(r.type,e),n);break e}throw Error(Pe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),Db(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),cC(e,t,r,i,n);case 3:e:{if(SD(t),e===null)throw Error(Pe(387));r=t.pendingProps,a=t.memoizedState,i=a.element,qO(e,t),hg(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=tc(Error(Pe(423)),t),t=dC(e,t,r,n,i);break e}else if(r!==i){i=tc(Error(Pe(424)),t),t=dC(e,t,r,n,i);break e}else for(Mi=il(t.stateNode.containerInfo.firstChild),Fi=t,xn=!0,$a=null,n=ZO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Q1(),r===i){t=us(e,t,n);break e}Jr(e,t,r,n)}t=t.child}return t;case 5:return QO(t),e===null&&xb(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Sb(r,i)?o=null:a!==null&&Sb(r,a)&&(t.flags|=32),TD(e,t),Jr(e,t,o,n),t.child;case 6:return e===null&&xb(t),null;case 13:return wD(e,t,n);case 4:return HE(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=J1(t,null,r,n):Jr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),lC(e,t,r,i,n);case 7:return Jr(e,t,t.pendingProps,n),t.child;case 8:return Jr(e,t,t.pendingProps.children,n),t.child;case 12:return Jr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,bn(pg,r._currentValue),r._currentValue=o,a!==null)if(Ka(a.value,o)){if(a.children===i.children&&!Ei.current){t=us(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(a.tag===1){u=is(-1,n&-n),u.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Ib(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Pe(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ib(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Jr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,z1(t,n),i=ba(i),r=r(i),t.flags|=1,Jr(e,t,r,n),t.child;case 14:return r=t.type,i=Fa(r,t.pendingProps),i=Fa(r.type,i),uC(e,t,r,i,n);case 15:return vD(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),Th(e,t),t.tag=1,vi(r)?(e=!0,ug(t)):e=!1,z1(t,n),YO(t,r,i),Nb(t,r,i,n),Lb(null,t,r,!0,e,n);case 19:return AD(e,t,n);case 22:return _D(e,t,n)}throw Error(Pe(156,t.tag))};function zD(e,t){return fO(e,t)}function zK(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pa(e,t,n,r){return new zK(e,t,n,r)}function r9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HK(e){if(typeof e=="function")return r9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===TE)return 11;if(e===SE)return 14}return 2}function ll(e,t){var n=e.alternate;return n===null?(n=pa(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ah(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")r9(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case h1:return du(n.children,i,a,t);case _E:o=8,i|=8;break;case tb:return e=pa(12,n,t,i|2),e.elementType=tb,e.lanes=a,e;case nb:return e=pa(13,n,t,i),e.elementType=nb,e.lanes=a,e;case rb:return e=pa(19,n,t,i),e.elementType=rb,e.lanes=a,e;case XN:return Em(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case KN:o=10;break e;case YN:o=9;break e;case TE:o=11;break e;case SE:o=14;break e;case Hs:o=16,r=null;break e}throw Error(Pe(130,e==null?e:typeof e,""))}return t=pa(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function du(e,t,n,r){return e=pa(7,e,r,t),e.lanes=n,e}function Em(e,t,n,r){return e=pa(22,e,r,t),e.elementType=XN,e.lanes=n,e.stateNode={isHidden:!1},e}function w3(e,t,n){return e=pa(6,e,null,t),e.lanes=n,e}function A3(e,t,n){return t=pa(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jK(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=a3(0),this.expirationTimes=a3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=a3(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function i9(e,t,n,r,i,a,o,s,u){return e=new jK(e,t,n,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pa(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zE(a),e}function GK(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(VD)}catch(e){console.error(e)}}VD(),jN.exports=Wi;var l9=jN.exports;const u9=Vi(l9);var SC=l9;J4.createRoot=SC.createRoot,J4.hydrateRoot=SC.hydrateRoot;var WD={exports:{}},sn={};/** * @license React * react-is.production.min.js * @@ -45,34 +45,34 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var TE=Symbol.for("react.element"),SE=Symbol.for("react.portal"),Zg=Symbol.for("react.fragment"),Qg=Symbol.for("react.strict_mode"),Jg=Symbol.for("react.profiler"),e2=Symbol.for("react.provider"),t2=Symbol.for("react.context"),aq=Symbol.for("react.server_context"),n2=Symbol.for("react.forward_ref"),r2=Symbol.for("react.suspense"),i2=Symbol.for("react.suspense_list"),a2=Symbol.for("react.memo"),o2=Symbol.for("react.lazy"),oq=Symbol.for("react.offscreen"),NO;NO=Symbol.for("react.module.reference");function Ea(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case TE:switch(e=e.type,e){case Zg:case Jg:case Qg:case r2:case i2:return e;default:switch(e=e&&e.$$typeof,e){case aq:case t2:case n2:case o2:case a2:case e2:return e;default:return t}}case SE:return t}}}on.ContextConsumer=t2;on.ContextProvider=e2;on.Element=TE;on.ForwardRef=n2;on.Fragment=Zg;on.Lazy=o2;on.Memo=a2;on.Portal=SE;on.Profiler=Jg;on.StrictMode=Qg;on.Suspense=r2;on.SuspenseList=i2;on.isAsyncMode=function(){return!1};on.isConcurrentMode=function(){return!1};on.isContextConsumer=function(e){return Ea(e)===t2};on.isContextProvider=function(e){return Ea(e)===e2};on.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===TE};on.isForwardRef=function(e){return Ea(e)===n2};on.isFragment=function(e){return Ea(e)===Zg};on.isLazy=function(e){return Ea(e)===o2};on.isMemo=function(e){return Ea(e)===a2};on.isPortal=function(e){return Ea(e)===SE};on.isProfiler=function(e){return Ea(e)===Jg};on.isStrictMode=function(e){return Ea(e)===Qg};on.isSuspense=function(e){return Ea(e)===r2};on.isSuspenseList=function(e){return Ea(e)===i2};on.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zg||e===Jg||e===Qg||e===r2||e===i2||e===oq||typeof e=="object"&&e!==null&&(e.$$typeof===o2||e.$$typeof===a2||e.$$typeof===e2||e.$$typeof===t2||e.$$typeof===n2||e.$$typeof===NO||e.getModuleId!==void 0)};on.typeOf=Ea;RO.exports=on;var wE=RO.exports;const sq=Hi(wE);function lq(e){function t(oe,O,re,Te,K){for(var xe=0,ne=0,Le=0,Re=0,Xe,Ve,dt=0,ot=0,Ge,pt=Ge=Xe=0,U=0,ie=0,pe=0,ke=0,ve=re.length,Se=ve-1,Me,ze="",Ke="",jt="",ue="",ye;UXe)&&(ke=(ze=ze.replace(" ",":")).length),0Te&&(Te=(O=O.trim()).charCodeAt(0)),Te){case 38:return O.replace(v,"$1"+oe.trim());case 58:return oe.trim()+O.replace(v,"$1"+oe.trim());default:if(0<1*re&&0ne.charCodeAt(8))break;case 115:K=K.replace(ne,"-webkit-"+ne)+";"+K;break;case 207:case 102:K=K.replace(ne,"-webkit-"+(102re.charCodeAt(0)&&(re=re.trim()),me=re,re=[me],0Ze)&&(xe=(ze=ze.replace(" ",":")).length),0Se&&(Se=(L=L.trim()).charCodeAt(0)),Se){case 38:return L.replace(E,"$1"+le.trim());case 58:return le.trim()+L.replace(E,"$1"+le.trim());default:if(0<1*ie&&0te.charCodeAt(8))break;case 115:X=X.replace(te,"-webkit-"+te)+";"+X;break;case 207:case 102:X=X.replace(te,"-webkit-"+(102ie.charCodeAt(0)&&(ie=ie.trim()),pe=ie,ie=[pe],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var kq=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Sp(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=Sd&&(Sd=t+1),sh.set(e,t),Zh.set(t,e)},Nq="style["+K1+'][data-styled-version="5.3.11"]',Oq=new RegExp("^"+K1+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Dq=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;c--){var p=u[c];if(p&&p.nodeType===1&&p.hasAttribute(K1))return p}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(K1,"active"),r.setAttribute("data-styled-version","5.3.11");var o=Mq();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},Fq=function(){function e(n){var r=this.element=FO(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=m+",")}),a+=""+c+p+'{content:"'+f+`"}/*!sc*/ -`}}}return a}(this)},e}(),$q=/(a)(d)/gi,OA=function(e){return String.fromCharCode(e+(e>25?39:97))};function hb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=OA(t%52)+n;return(OA(t%52)+n).replace($q,"$1-$2")}var b1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},BO=function(e){return b1(5381,e)};function zq(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=b1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var v=r(f,"."+T,void 0,i);n.insertRules(i,T,v)}a.push(T)}}return a.join(" ")},e}(),Gq=/^\s*\/\/.*$/gm,Vq=[":","[",".","#"];function Wq(e){var t,n,r,i,a=e===void 0?nl:e,o=a.options,s=o===void 0?nl:o,u=a.plugins,c=u===void 0?Xh:u,p=new lq(s),f=[],m=function(b){function T(v){if(v)try{b(v+"}")}catch{}}return function(v,y,w,A,D,k,R,B,W,P){switch(v){case 1:if(W===0&&y.charCodeAt(0)===64)return b(y+";"),"";break;case 2:if(B===0)return y+"/*|*/";break;case 3:switch(B){case 102:case 112:return b(w[0]+y),"";default:return y+(P===0?"/*|*/":"")}case-2:y.split("/*|*/}").forEach(T)}}}(function(b){f.push(b)}),g=function(b,T,v){return T===0&&Vq.indexOf(v[n.length])!==-1||v.match(i)?b:"."+t};function E(b,T,v,y){y===void 0&&(y="&");var w=b.replace(Gq,""),A=T&&v?v+" "+T+" { "+w+" }":w;return t=y,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(v||!T?"":T,A)}return p.use([].concat(c,[function(b,T,v){b===2&&v.length&&v[0].lastIndexOf(n)>0&&(v[0]=v[0].replace(r,g))},m,function(b){if(b===-2){var T=f;return f=[],T}}])),E.hash=c.length?c.reduce(function(b,T){return T.name||Sp(15),b1(b,T.name)},5381).toString():"",E}var UO=ut.createContext();UO.Consumer;var $O=ut.createContext(),qq=($O.Consumer,new PO),gb=Wq();function Kq(){return C.useContext(UO)||qq}function Yq(){return C.useContext($O)||gb}var zO=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=gb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Sp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=gb),this.name+t.hash},e}(),Xq=/([A-Z])/,Zq=/([A-Z])/g,Qq=/^ms-/,Jq=function(e){return"-"+e.toLowerCase()};function DA(e){return Xq.test(e)?e.replace(Zq,Jq).replace(Qq,"-ms-"):e}var LA=function(e){return e==null||e===!1||e===""};function Y1(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,nK=/(^-|-$)/g;function e3(e){return e.replace(tK,"-").replace(nK,"")}var jO=function(e){return hb(BO(e)>>>0)};function c0(e){return typeof e=="string"&&!0}var mb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},rK=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function iK(e,t,n){var r=e[n];mb(t)&&mb(r)?GO(r,t):e[n]=t}function GO(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),D=w&&w+"-"+(c0(y)?y:e3(RA(y)));return WO(y,Yo({},A,{attrs:m,componentId:D}),n)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(y){this._foldedDefaultProps=r?GO({},e.defaultProps,y):y}}),Object.defineProperty(E,"toString",{value:function(){return"."+E.styledComponentId}}),i&&Cq(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),E}var bb=function(e){return function t(n,r,i){if(i===void 0&&(i=nl),!wE.isValidElementType(r))return Sp(1,String(r));var a=function(){return n(r,i,HO.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,Yo({},i,{},o))},a.attrs=function(o){return t(n,r,Yo({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(WO,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){bb[e]=bb(e)});function b2(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var yY=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Bp(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=Pd&&(Pd=t+1),Ch.set(e,t),wg.set(t,e)},_Y="style["+rc+'][data-styled-version="5.3.11"]',TY=new RegExp("^"+rc+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),SY=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;c--){var p=u[c];if(p&&p.nodeType===1&&p.hasAttribute(rc))return p}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(rc,"active"),r.setAttribute("data-styled-version","5.3.11");var o=AY();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},CY=function(){function e(n){var r=this.element=QD(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=m+",")}),a+=""+c+p+'{content:"'+f+`"}/*!sc*/ +`}}}return a}(this)},e}(),RY=/(a)(d)/gi,NC=function(e){return String.fromCharCode(e+(e>25?39:97))};function qb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=NC(t%52)+n;return(NC(t%52)+n).replace(RY,"$1-$2")}var A1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eL=function(e){return A1(5381,e)};function NY(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=A1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var E=r(f,"."+T,void 0,i);n.insertRules(i,T,E)}a.push(T)}}return a.join(" ")},e}(),LY=/^\s*\/\/.*$/gm,MY=[":","[",".","#"];function FY(e){var t,n,r,i,a=e===void 0?ul:e,o=a.options,s=o===void 0?ul:o,u=a.plugins,c=u===void 0?Sg:u,p=new QK(s),f=[],m=function(y){function T(E){if(E)try{y(E+"}")}catch{}}return function(E,v,w,A,R,k,N,B,q,P){switch(E){case 1:if(q===0&&v.charCodeAt(0)===64)return y(v+";"),"";break;case 2:if(B===0)return v+"/*|*/";break;case 3:switch(B){case 102:case 112:return y(w[0]+v),"";default:return v+(P===0?"/*|*/":"")}case-2:v.split("/*|*/}").forEach(T)}}}(function(y){f.push(y)}),g=function(y,T,E){return T===0&&MY.indexOf(E[n.length])!==-1||E.match(i)?y:"."+t};function b(y,T,E,v){v===void 0&&(v="&");var w=y.replace(LY,""),A=T&&E?E+" "+T+" { "+w+" }":w;return t=v,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(E||!T?"":T,A)}return p.use([].concat(c,[function(y,T,E){y===2&&E.length&&E[0].lastIndexOf(n)>0&&(E[0]=E[0].replace(r,g))},m,function(y){if(y===-2){var T=f;return f=[],T}}])),b.hash=c.length?c.reduce(function(y,T){return T.name||Bp(15),A1(y,T.name)},5381).toString():"",b}var tL=ut.createContext();tL.Consumer;var nL=ut.createContext(),PY=(nL.Consumer,new JD),Kb=FY();function BY(){return C.useContext(tL)||PY}function UY(){return C.useContext(nL)||Kb}var rL=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Kb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Bp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Kb),this.name+t.hash},e}(),$Y=/([A-Z])/,zY=/([A-Z])/g,HY=/^ms-/,jY=function(e){return"-"+e.toLowerCase()};function OC(e){return $Y.test(e)?e.replace(zY,jY).replace(HY,"-ms-"):e}var DC=function(e){return e==null||e===!1||e===""};function ic(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,WY=/(^-|-$)/g;function C3(e){return e.replace(VY,"-").replace(WY,"")}var aL=function(e){return qb(eL(e)>>>0)};function A0(e){return typeof e=="string"&&!0}var Yb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},qY=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function KY(e,t,n){var r=e[n];Yb(t)&&Yb(r)?oL(r,t):e[n]=t}function oL(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),R=w&&w+"-"+(A0(v)?v:C3(IC(v)));return lL(v,rs({},A,{attrs:m,componentId:R}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(v){this._foldedDefaultProps=r?oL({},e.defaultProps,v):v}}),Object.defineProperty(b,"toString",{value:function(){return"."+b.styledComponentId}}),i&&mY(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Xb=function(e){return function t(n,r,i){if(i===void 0&&(i=ul),!p9.isValidElementType(r))return Bp(1,String(r));var a=function(){return n(r,i,iL.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,rs({},i,{},o))},a.attrs=function(o){return t(n,r,rs({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(lL,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Xb[e]=Xb(e)});function Gm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r({x:e,y:e}),oK={left:"right",right:"left",bottom:"top",top:"bottom"},sK={start:"end",end:"start"};function Eb(e,t,n){return M1(e,ip(t,n))}function wp(e,t){return typeof e=="function"?e(t):e}function fu(e){return e.split("-")[0]}function Ap(e){return e.split("-")[1]}function KO(e){return e==="x"?"y":"x"}function OE(e){return e==="y"?"height":"width"}function E2(e){return["top","bottom"].includes(fu(e))?"y":"x"}function DE(e){return KO(E2(e))}function lK(e,t,n){n===void 0&&(n=!1);const r=Ap(e),i=DE(e),a=OE(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Jh(o)),[o,Jh(o)]}function uK(e){const t=Jh(e);return[vb(e),t,vb(t)]}function vb(e){return e.replace(/start|end/g,t=>sK[t])}function cK(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function dK(e,t,n,r){const i=Ap(e);let a=cK(fu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(vb)))),a}function Jh(e){return e.replace(/left|right|bottom|top/g,t=>oK[t])}function pK(e){return{top:0,right:0,bottom:0,left:0,...e}}function YO(e){return typeof e!="number"?pK(e):{top:e,right:e,bottom:e,left:e}}function eg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function PA(e,t,n){let{reference:r,floating:i}=e;const a=E2(t),o=DE(t),s=OE(o),u=fu(t),c=a==="y",p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let g;switch(u){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-i.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Ap(t)){case"start":g[o]-=m*(n&&c?-1:1);break;case"end":g[o]+=m*(n&&c?-1:1);break}return g}const fK=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:f}=PA(c,r,u),m=r,g={},E=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s}=t,{element:u,padding:c=0}=wp(e,t)||{};if(u==null)return{};const p=YO(c),f={x:n,y:r},m=DE(i),g=OE(m),E=await o.getDimensions(u),b=m==="y",T=b?"top":"left",v=b?"bottom":"right",y=b?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[m]-f[m]-a.floating[g],A=f[m]-a.reference[m],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=D?D[y]:0;(!k||!await(o.isElement==null?void 0:o.isElement(D)))&&(k=s.floating[y]||a.floating[g]);const R=w/2-A/2,B=k/2-E[g]/2-1,W=ip(p[T],B),P=ip(p[v],B),Q=W,z=k-E[g]-P,le=k/2-E[g]/2+R,he=Eb(Q,le,z),fe=Ap(i)!=null&&le!=he&&a.reference[g]/2-(leQ<=0)){var B,W;const Q=(((B=i.flip)==null?void 0:B.index)||0)+1,z=A[Q];if(z)return{data:{index:Q,overflows:R},reset:{placement:z}};let le=(W=R.filter(he=>he.overflows[0]<=0).sort((he,de)=>he.overflows[1]-de.overflows[1])[0])==null?void 0:W.placement;if(!le)switch(m){case"bestFit":{var P;const he=(P=R.map(de=>[de.placement,de.overflows.filter(fe=>fe>0).reduce((fe,Z)=>fe+Z,0)]).sort((de,fe)=>de[1]-fe[1])[0])==null?void 0:P[0];he&&(le=he);break}case"initialPlacement":le=o;break}if(r!==le)return{reset:{placement:le}}}return{}}}};async function mK(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=fu(n),s=Ap(n),u=E2(n)==="y",c=["left","top"].includes(o)?-1:1,p=a&&u?-1:1,f=wp(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:E}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof E=="number"&&(g=s==="end"?E*-1:E),u?{x:g*p,y:m*c}:{x:m*c,y:g*p}}const bK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await mK(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},EK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:T=>{let{x:v,y}=T;return{x:v,y}}},...u}=wp(e,t),c={x:n,y:r},p=await XO(t,u),f=E2(fu(i)),m=KO(f);let g=c[m],E=c[f];if(a){const T=m==="y"?"top":"left",v=m==="y"?"bottom":"right",y=g+p[T],w=g-p[v];g=Eb(y,g,w)}if(o){const T=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=E+p[T],w=E-p[v];E=Eb(y,E,w)}const b=s.fn({...t,[m]:g,[f]:E});return{...b,data:{x:b.x-n,y:b.y-r}}}}};function dl(e){return ZO(e)?(e.nodeName||"").toLowerCase():"#document"}function Mi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function El(e){var t;return(t=(ZO(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ZO(e){return e instanceof Node||e instanceof Mi(e).Node}function ns(e){return e instanceof Element||e instanceof Mi(e).Element}function vo(e){return e instanceof HTMLElement||e instanceof Mi(e).HTMLElement}function BA(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mi(e).ShadowRoot}function Cp(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function vK(e){return["table","td","th"].includes(dl(e))}function LE(e){const t=ME(),n=ma(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function yK(e){let t=X1(e);for(;vo(t)&&!v2(t);){if(LE(t))return t;t=X1(t)}return null}function ME(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function v2(e){return["html","body","#document"].includes(dl(e))}function ma(e){return Mi(e).getComputedStyle(e)}function y2(e){return ns(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function X1(e){if(dl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||BA(e)&&e.host||El(e);return BA(t)?t.host:t}function QO(e){const t=X1(e);return v2(t)?e.ownerDocument?e.ownerDocument.body:e.body:vo(t)&&Cp(t)?t:QO(t)}function JO(e,t){var n;t===void 0&&(t=[]);const r=QO(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Mi(r);return i?t.concat(a,a.visualViewport||[],Cp(r)?r:[]):t.concat(r,JO(r))}function eD(e){const t=ma(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vo(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Qh(n)!==a||Qh(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function tD(e){return ns(e)?e:e.contextElement}function F1(e){const t=tD(e);if(!vo(t))return cl(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=eD(t);let o=(a?Qh(n.width):n.width)/r,s=(a?Qh(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const _K=cl(0);function nD(e){const t=Mi(e);return!ME()||!t.visualViewport?_K:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mi(e)?!1:t}function ap(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=tD(e);let o=cl(1);t&&(r?ns(r)&&(o=F1(r)):o=F1(e));const s=TK(a,n,r)?nD(a):cl(0);let u=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,p=i.width/o.x,f=i.height/o.y;if(a){const m=Mi(a),g=r&&ns(r)?Mi(r):r;let E=m.frameElement;for(;E&&r&&g!==m;){const b=F1(E),T=E.getBoundingClientRect(),v=ma(E),y=T.left+(E.clientLeft+parseFloat(v.paddingLeft))*b.x,w=T.top+(E.clientTop+parseFloat(v.paddingTop))*b.y;u*=b.x,c*=b.y,p*=b.x,f*=b.y,u+=y,c+=w,E=Mi(E).frameElement}}return eg({width:p,height:f,x:u,y:c})}function SK(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=vo(n),a=El(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s=cl(1);const u=cl(0);if((i||!i&&r!=="fixed")&&((dl(n)!=="body"||Cp(a))&&(o=y2(n)),vo(n))){const c=ap(n);s=F1(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+u.x,y:t.y*s.y-o.scrollTop*s.y+u.y}}function wK(e){return Array.from(e.getClientRects())}function rD(e){return ap(El(e)).left+y2(e).scrollLeft}function AK(e){const t=El(e),n=y2(e),r=e.ownerDocument.body,i=M1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=M1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+rD(e);const s=-n.scrollTop;return ma(r).direction==="rtl"&&(o+=M1(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function CK(e,t){const n=Mi(e),r=El(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const c=ME();(!c||c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}function xK(e,t){const n=ap(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=vo(e)?F1(e):cl(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=i*a.x,c=r*a.y;return{width:o,height:s,x:u,y:c}}function UA(e,t,n){let r;if(t==="viewport")r=CK(e,n);else if(t==="document")r=AK(El(e));else if(ns(t))r=xK(t,n);else{const i=nD(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return eg(r)}function iD(e,t){const n=X1(e);return n===t||!ns(n)||v2(n)?!1:ma(n).position==="fixed"||iD(n,t)}function kK(e,t){const n=t.get(e);if(n)return n;let r=JO(e).filter(s=>ns(s)&&dl(s)!=="body"),i=null;const a=ma(e).position==="fixed";let o=a?X1(e):e;for(;ns(o)&&!v2(o);){const s=ma(o),u=LE(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Cp(o)&&!u&&iD(e,o))?r=r.filter(p=>p!==o):i=s,o=X1(o)}return t.set(e,r),r}function IK(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?kK(t,this._c):[].concat(n),r],s=o[0],u=o.reduce((c,p)=>{const f=UA(t,p,i);return c.top=M1(f.top,c.top),c.right=ip(f.right,c.right),c.bottom=ip(f.bottom,c.bottom),c.left=M1(f.left,c.left),c},UA(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function RK(e){return eD(e)}function NK(e,t,n){const r=vo(t),i=El(t),a=n==="fixed",o=ap(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=cl(0);if(r||!r&&!a)if((dl(t)!=="body"||Cp(i))&&(s=y2(t)),r){const c=ap(t,!0,a,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else i&&(u.x=rD(i));return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function $A(e,t){return!vo(e)||ma(e).position==="fixed"?null:t?t(e):e.offsetParent}function aD(e,t){const n=Mi(e);if(!vo(e))return n;let r=$A(e,t);for(;r&&vK(r)&&ma(r).position==="static";)r=$A(r,t);return r&&(dl(r)==="html"||dl(r)==="body"&&ma(r).position==="static"&&!LE(r))?n:r||yK(e)||n}const OK=async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||aD,a=this.getDimensions;return{reference:NK(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}};function DK(e){return ma(e).direction==="rtl"}const LK={convertOffsetParentRelativeRectToViewportRelativeRect:SK,getDocumentElement:El,getClippingRect:IK,getOffsetParent:aD,getElementRects:OK,getClientRects:wK,getDimensions:RK,getScale:F1,isElement:ns,isRTL:DK},zA=(e,t,n)=>{const r=new Map,i={platform:LK,...n},a={...i.platform,_c:r};return fK(e,t,{...i,platform:a})};/* +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i({x:e,y:e}),XY={left:"right",right:"left",bottom:"top",top:"bottom"},ZY={start:"end",end:"start"};function Zb(e,t,n){return j1(e,vp(t,n))}function Up(e,t){return typeof e=="function"?e(t):e}function vu(e){return e.split("-")[0]}function $p(e){return e.split("-")[1]}function cL(e){return e==="x"?"y":"x"}function v9(e){return e==="y"?"height":"width"}function Vm(e){return["top","bottom"].includes(vu(e))?"y":"x"}function _9(e){return cL(Vm(e))}function QY(e,t,n){n===void 0&&(n=!1);const r=$p(e),i=_9(e),a=v9(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Cg(o)),[o,Cg(o)]}function JY(e){const t=Cg(e);return[Qb(e),t,Qb(t)]}function Qb(e){return e.replace(/start|end/g,t=>ZY[t])}function eX(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function tX(e,t,n,r){const i=$p(e);let a=eX(vu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Qb)))),a}function Cg(e){return e.replace(/left|right|bottom|top/g,t=>XY[t])}function nX(e){return{top:0,right:0,bottom:0,left:0,...e}}function dL(e){return typeof e!="number"?nX(e):{top:e,right:e,bottom:e,left:e}}function kg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function FC(e,t,n){let{reference:r,floating:i}=e;const a=Vm(t),o=_9(t),s=v9(o),u=vu(t),c=a==="y",p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let g;switch(u){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-i.width,y:f};break;default:g={x:r.x,y:r.y}}switch($p(t)){case"start":g[o]-=m*(n&&c?-1:1);break;case"end":g[o]+=m*(n&&c?-1:1);break}return g}const rX=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:f}=FC(c,r,u),m=r,g={},b=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s}=t,{element:u,padding:c=0}=Up(e,t)||{};if(u==null)return{};const p=dL(c),f={x:n,y:r},m=_9(i),g=v9(m),b=await o.getDimensions(u),y=m==="y",T=y?"top":"left",E=y?"bottom":"right",v=y?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[m]-f[m]-a.floating[g],A=f[m]-a.reference[m],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=R?R[v]:0;(!k||!await(o.isElement==null?void 0:o.isElement(R)))&&(k=s.floating[v]||a.floating[g]);const N=w/2-A/2,B=k/2-b[g]/2-1,q=vp(p[T],B),P=vp(p[E],B),Q=q,$=k-b[g]-P,oe=k/2-b[g]/2+N,fe=Zb(Q,oe,$),De=$p(i)!=null&&oe!=fe&&a.reference[g]/2-(oeQ<=0)){var B,q;const Q=(((B=i.flip)==null?void 0:B.index)||0)+1,$=A[Q];if($)return{data:{index:Q,overflows:N},reset:{placement:$}};let oe=(q=N.filter(fe=>fe.overflows[0]<=0).sort((fe,ce)=>fe.overflows[1]-ce.overflows[1])[0])==null?void 0:q.placement;if(!oe)switch(m){case"bestFit":{var P;const fe=(P=N.map(ce=>[ce.placement,ce.overflows.filter(De=>De>0).reduce((De,H)=>De+H,0)]).sort((ce,De)=>ce[1]-De[1])[0])==null?void 0:P[0];fe&&(oe=fe);break}case"initialPlacement":oe=o;break}if(r!==oe)return{reset:{placement:oe}}}return{}}}};async function oX(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=vu(n),s=$p(n),u=Vm(n)==="y",c=["left","top"].includes(o)?-1:1,p=a&&u?-1:1,f=Up(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),u?{x:g*p,y:m*c}:{x:m*c,y:g*p}}const sX=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await oX(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},lX=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:T=>{let{x:E,y:v}=T;return{x:E,y:v}}},...u}=Up(e,t),c={x:n,y:r},p=await pL(t,u),f=Vm(vu(i)),m=cL(f);let g=c[m],b=c[f];if(a){const T=m==="y"?"top":"left",E=m==="y"?"bottom":"right",v=g+p[T],w=g-p[E];g=Zb(v,g,w)}if(o){const T=f==="y"?"top":"left",E=f==="y"?"bottom":"right",v=b+p[T],w=b-p[E];b=Zb(v,b,w)}const y=s.fn({...t,[m]:g,[f]:b});return{...y,data:{x:y.x-n,y:y.y-r}}}}};function bl(e){return fL(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wl(e){var t;return(t=(fL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fL(e){return e instanceof Node||e instanceof Pi(e).Node}function cs(e){return e instanceof Element||e instanceof Pi(e).Element}function Ao(e){return e instanceof HTMLElement||e instanceof Pi(e).HTMLElement}function PC(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function zp(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ea(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function uX(e){return["table","td","th"].includes(bl(e))}function T9(e){const t=S9(),n=Ea(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function cX(e){let t=ac(e);for(;Ao(t)&&!Wm(t);){if(T9(t))return t;t=ac(t)}return null}function S9(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wm(e){return["html","body","#document"].includes(bl(e))}function Ea(e){return Pi(e).getComputedStyle(e)}function qm(e){return cs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ac(e){if(bl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||PC(e)&&e.host||wl(e);return PC(t)?t.host:t}function hL(e){const t=ac(e);return Wm(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ao(t)&&zp(t)?t:hL(t)}function gL(e,t){var n;t===void 0&&(t=[]);const r=hL(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(r);return i?t.concat(a,a.visualViewport||[],zp(r)?r:[]):t.concat(r,gL(r))}function mL(e){const t=Ea(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ao(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ag(n)!==a||Ag(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function bL(e){return cs(e)?e:e.contextElement}function G1(e){const t=bL(e);if(!Ao(t))return ml(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=mL(t);let o=(a?Ag(n.width):n.width)/r,s=(a?Ag(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const dX=ml(0);function yL(e){const t=Pi(e);return!S9()||!t.visualViewport?dX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pX(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pi(e)?!1:t}function _p(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=bL(e);let o=ml(1);t&&(r?cs(r)&&(o=G1(r)):o=G1(e));const s=pX(a,n,r)?yL(a):ml(0);let u=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,p=i.width/o.x,f=i.height/o.y;if(a){const m=Pi(a),g=r&&cs(r)?Pi(r):r;let b=m.frameElement;for(;b&&r&&g!==m;){const y=G1(b),T=b.getBoundingClientRect(),E=Ea(b),v=T.left+(b.clientLeft+parseFloat(E.paddingLeft))*y.x,w=T.top+(b.clientTop+parseFloat(E.paddingTop))*y.y;u*=y.x,c*=y.y,p*=y.x,f*=y.y,u+=v,c+=w,b=Pi(b).frameElement}}return kg({width:p,height:f,x:u,y:c})}function fX(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Ao(n),a=wl(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s=ml(1);const u=ml(0);if((i||!i&&r!=="fixed")&&((bl(n)!=="body"||zp(a))&&(o=qm(n)),Ao(n))){const c=_p(n);s=G1(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+u.x,y:t.y*s.y-o.scrollTop*s.y+u.y}}function hX(e){return Array.from(e.getClientRects())}function EL(e){return _p(wl(e)).left+qm(e).scrollLeft}function gX(e){const t=wl(e),n=qm(e),r=e.ownerDocument.body,i=j1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=j1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+EL(e);const s=-n.scrollTop;return Ea(r).direction==="rtl"&&(o+=j1(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function mX(e,t){const n=Pi(e),r=wl(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const c=S9();(!c||c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}function bX(e,t){const n=_p(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ao(e)?G1(e):ml(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=i*a.x,c=r*a.y;return{width:o,height:s,x:u,y:c}}function BC(e,t,n){let r;if(t==="viewport")r=mX(e,n);else if(t==="document")r=gX(wl(e));else if(cs(t))r=bX(t,n);else{const i=yL(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return kg(r)}function vL(e,t){const n=ac(e);return n===t||!cs(n)||Wm(n)?!1:Ea(n).position==="fixed"||vL(n,t)}function yX(e,t){const n=t.get(e);if(n)return n;let r=gL(e).filter(s=>cs(s)&&bl(s)!=="body"),i=null;const a=Ea(e).position==="fixed";let o=a?ac(e):e;for(;cs(o)&&!Wm(o);){const s=Ea(o),u=T9(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||zp(o)&&!u&&vL(e,o))?r=r.filter(p=>p!==o):i=s,o=ac(o)}return t.set(e,r),r}function EX(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?yX(t,this._c):[].concat(n),r],s=o[0],u=o.reduce((c,p)=>{const f=BC(t,p,i);return c.top=j1(f.top,c.top),c.right=vp(f.right,c.right),c.bottom=vp(f.bottom,c.bottom),c.left=j1(f.left,c.left),c},BC(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function vX(e){return mL(e)}function _X(e,t,n){const r=Ao(t),i=wl(t),a=n==="fixed",o=_p(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=ml(0);if(r||!r&&!a)if((bl(t)!=="body"||zp(i))&&(s=qm(t)),r){const c=_p(t,!0,a,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else i&&(u.x=EL(i));return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function UC(e,t){return!Ao(e)||Ea(e).position==="fixed"?null:t?t(e):e.offsetParent}function _L(e,t){const n=Pi(e);if(!Ao(e))return n;let r=UC(e,t);for(;r&&uX(r)&&Ea(r).position==="static";)r=UC(r,t);return r&&(bl(r)==="html"||bl(r)==="body"&&Ea(r).position==="static"&&!T9(r))?n:r||cX(e)||n}const TX=async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||_L,a=this.getDimensions;return{reference:_X(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}};function SX(e){return Ea(e).direction==="rtl"}const wX={convertOffsetParentRelativeRectToViewportRelativeRect:fX,getDocumentElement:wl,getClippingRect:EX,getOffsetParent:_L,getElementRects:TX,getClientRects:hX,getDimensions:vX,getScale:G1,isElement:cs,isRTL:SX},$C=(e,t,n)=>{const r=new Map,i={platform:wX,...n},a={...i.platform,_c:r};return rX(e,t,{...i,platform:a})};/* * React Tooltip * {@link https://github.com/ReactTooltip/react-tooltip} * @copyright ReactTooltip Team * @license MIT -*/const MK="react-tooltip-core-styles",FK="react-tooltip-base-styles",HA={core:!1,base:!1};function jA({css:e,id:t=FK,type:n="base",ref:r}){var i,a;if(!e||typeof document>"u"||HA[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=MK),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),HA[n]=!0}const GA=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},PK="DEFAULT_TOOLTIP_ID",BK={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},UK=C.createContext({getTooltipData:()=>BK});function oD(e=PK){return C.useContext(UK).getTooltipData(e)}const $K=typeof window<"u"?C.useLayoutEffect:C.useEffect,zK=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},VA=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(zK(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},WA=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[bK(Number(i)),gK(),EK({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(hK({element:n,padding:5})),zA(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,E;const b={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:v}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},y=(E={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&E!==void 0?E:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const D=`${s}`.match(/(\d+)px/);A=D!=null&&D[1]?Number(D[1]):1}return{tooltipStyles:b,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:v!=null?`${v}px`:"",right:"",bottom:"",...w,[y]:`-${4+A}px`},place:f}})):zA(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var HK="core-styles-module_tooltip__3vRRp",jK="core-styles-module_fixed__pcSol",GK="core-styles-module_arrow__cvMwQ",VK="core-styles-module_noArrow__xock6",WK="core-styles-module_clickable__ZuTTB",qK="core-styles-module_show__Nt9eE",n3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const KK=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:E=0,float:b=!1,hidden:T=!1,noArrow:v=!1,clickable:y=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:D=!1,style:k,position:R,afterShow:B,afterHide:W,content:P,contentWrapperRef:Q,isOpen:z,setIsOpen:le,activeAnchor:he,setActiveAnchor:de,border:fe,opacity:Z})=>{const V=C.useRef(null),ce=C.useRef(null),N=C.useRef(null),me=C.useRef(null),[oe,O]=C.useState(o),[re,Te]=C.useState({}),[K,xe]=C.useState({}),[ne,Le]=C.useState(!1),[Re,Xe]=C.useState(!1),Ve=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:Ge}=oD(e),pt=C.useRef(!1),[U,ie]=C.useState([]),pe=C.useRef(!1),ke=c||u.includes("click");$K(()=>(pe.current=!0,()=>{pe.current=!1}),[]),C.useEffect(()=>{if(!ne){const se=setTimeout(()=>{Xe(!1)},150);return()=>{clearTimeout(se)}}return()=>null},[ne]);const ve=se=>{pe.current&&(se&&Xe(!0),setTimeout(()=>{pe.current&&(le==null||le(se),z===void 0&&Le(se))},10))};C.useEffect(()=>{if(z===void 0)return()=>null;z&&Xe(!0);const se=setTimeout(()=>{Le(z)},10);return()=>{clearTimeout(se)}},[z]),C.useEffect(()=>{ne!==Ve.current&&(Ve.current=ne,ne?B==null||B():W==null||W())},[ne]);const Se=(se=E)=>{me.current&&clearTimeout(me.current),me.current=setTimeout(()=>{pt.current||ve(!1)},se)},Me=se=>{var j;if(!se)return;const $=(j=se.currentTarget)!==null&&j!==void 0?j:se.target;if(!($!=null&&$.isConnected))return de(null),void Ge({current:null});g?(N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{ve(!0)},g)):ve(!0),de($),Ge({current:$}),me.current&&clearTimeout(me.current)},ze=()=>{y?Se(E||100):E?Se():ve(!1),N.current&&clearTimeout(N.current)},Ke=({x:se,y:j})=>{WA({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:se,y:j,width:0,height:0,top:j,left:se,right:se,bottom:j})},tooltipReference:V.current,tooltipArrowReference:ce.current,strategy:p,middlewares:f,border:fe}).then($=>{Object.keys($.tooltipStyles).length&&Te($.tooltipStyles),Object.keys($.tooltipArrowStyles).length&&xe($.tooltipArrowStyles),O($.place)})},jt=se=>{if(!se)return;const j=se,$={x:j.clientX,y:j.clientY};Ke($),dt.current=$},ue=se=>{Me(se),E&&Se()},ye=se=>{var j;[document.querySelector(`[id='${i}']`),...U].some($=>$==null?void 0:$.contains(se.target))||!((j=V.current)===null||j===void 0)&&j.contains(se.target)||(ve(!1),N.current&&clearTimeout(N.current))},We=GA(Me,50,!0),at=GA(ze,50,!0);C.useEffect(()=>{var se,j;const $=new Set(ot);U.forEach(Zt=>{$.add({current:Zt})});const J=document.querySelector(`[id='${i}']`);J&&$.add({current:J});const be=()=>{ve(!1)},Fe=VA(he),De=VA(V.current);A&&(window.addEventListener("scroll",be),Fe==null||Fe.addEventListener("scroll",be),De==null||De.addEventListener("scroll",be)),D&&window.addEventListener("resize",be);const tt=Zt=>{Zt.key==="Escape"&&ve(!1)};w&&window.addEventListener("keydown",tt);const Je=[];ke?(window.addEventListener("click",ye),Je.push({event:"click",listener:ue})):(Je.push({event:"mouseenter",listener:We},{event:"mouseleave",listener:at},{event:"focus",listener:We},{event:"blur",listener:at}),b&&Je.push({event:"mousemove",listener:jt}));const Ze=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return y&&!ke&&((se=V.current)===null||se===void 0||se.addEventListener("mouseenter",Ze),(j=V.current)===null||j===void 0||j.addEventListener("mouseleave",Rt)),Je.forEach(({event:Zt,listener:kt})=>{$.forEach(nn=>{var Yt;(Yt=nn.current)===null||Yt===void 0||Yt.addEventListener(Zt,kt)})}),()=>{var Zt,kt;A&&(window.removeEventListener("scroll",be),Fe==null||Fe.removeEventListener("scroll",be),De==null||De.removeEventListener("scroll",be)),D&&window.removeEventListener("resize",be),ke&&window.removeEventListener("click",ye),w&&window.removeEventListener("keydown",tt),y&&!ke&&((Zt=V.current)===null||Zt===void 0||Zt.removeEventListener("mouseenter",Ze),(kt=V.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),Je.forEach(({event:nn,listener:Yt})=>{$.forEach(jr=>{var Gr;(Gr=jr.current)===null||Gr===void 0||Gr.removeEventListener(nn,Yt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let se=a??"";!se&&e&&(se=`[data-tooltip-id='${e}']`);const j=new MutationObserver($=>{const J=[];$.forEach(be=>{if(be.type==="attributes"&&be.attributeName==="data-tooltip-id"&&be.target.getAttribute("data-tooltip-id")===e&&J.push(be.target),be.type==="childList"&&(he&&[...be.removedNodes].some(Fe=>{var De;return!!(!((De=Fe==null?void 0:Fe.contains)===null||De===void 0)&&De.call(Fe,he))&&(Xe(!1),ve(!1),de(null),N.current&&clearTimeout(N.current),me.current&&clearTimeout(me.current),!0)}),se))try{const Fe=[...be.addedNodes].filter(De=>De.nodeType===1);J.push(...Fe.filter(De=>De.matches(se))),J.push(...Fe.flatMap(De=>[...De.querySelectorAll(se)]))}catch{}}),J.length&&ie(be=>[...be,...J])});return j.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{j.disconnect()}},[e,a,he]);const Qe=()=>{R?Ke(R):b?dt.current&&Ke(dt.current):WA({place:o,offset:s,elementReference:he,tooltipReference:V.current,tooltipArrowReference:ce.current,strategy:p,middlewares:f,border:fe}).then(se=>{pe.current&&(Object.keys(se.tooltipStyles).length&&Te(se.tooltipStyles),Object.keys(se.tooltipArrowStyles).length&&xe(se.tooltipArrowStyles),O(se.place))})};C.useEffect(()=>{Qe()},[ne,he,P,k,o,s,p,R]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const se=new ResizeObserver(()=>{Qe()});return se.observe(Q.current),()=>{se.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var se;const j=document.querySelector(`[id='${i}']`),$=[...U,j];he&&$.includes(he)||de((se=U[0])!==null&&se!==void 0?se:j)},[i,U,he]),C.useEffect(()=>()=>{N.current&&clearTimeout(N.current),me.current&&clearTimeout(me.current)},[]),C.useEffect(()=>{let se=a;if(!se&&e&&(se=`[data-tooltip-id='${e}']`),se)try{const j=Array.from(document.querySelectorAll(se));ie(j)}catch{ie([])}},[e,a]);const Y=!T&&P&&ne&&Object.keys(re).length>0;return Re?ut.createElement(m,{id:e,role:"tooltip",className:FA("react-tooltip",HK,n3.tooltip,n3[r],t,`react-tooltip__place-${oe}`,{[qK]:Y,[jK]:p==="fixed",[WK]:y}),style:{...k,...re,opacity:Z!==void 0&&Y?Z:void 0},ref:V},P,ut.createElement(m,{className:FA("react-tooltip-arrow",GK,n3.arrow,n,{[VK]:v}),style:K,ref:ce})):null},YK=({content:e})=>ut.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),XK=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:E=!1,positionStrategy:b="absolute",middlewares:T,delayShow:v=0,delayHide:y=0,float:w=!1,hidden:A=!1,noArrow:D=!1,clickable:k=!1,closeOnEsc:R=!1,closeOnScroll:B=!1,closeOnResize:W=!1,style:P,position:Q,isOpen:z,disableStyleInjection:le=!1,border:he,opacity:de,setIsOpen:fe,afterShow:Z,afterHide:V})=>{const[ce,N]=C.useState(r),[me,oe]=C.useState(i),[O,re]=C.useState(c),[Te,K]=C.useState(u),[xe,ne]=C.useState(p),[Le,Re]=C.useState(v),[Xe,Ve]=C.useState(y),[dt,ot]=C.useState(w),[Ge,pt]=C.useState(A),[U,ie]=C.useState(f),[pe,ke]=C.useState(g),[ve,Se]=C.useState(b),[Me,ze]=C.useState(null),Ke=C.useRef(le),{anchorRefs:jt,activeAnchor:ue}=oD(e),ye=se=>se==null?void 0:se.getAttributeNames().reduce((j,$)=>{var J;return $.startsWith("data-tooltip-")&&(j[$.replace(/^data-tooltip-/,"")]=(J=se==null?void 0:se.getAttribute($))!==null&&J!==void 0?J:null),j},{}),We=se=>{const j={place:$=>{var J;re((J=$)!==null&&J!==void 0?J:c)},content:$=>{N($??r)},html:$=>{oe($??i)},variant:$=>{var J;K((J=$)!==null&&J!==void 0?J:u)},offset:$=>{ne($===null?p:Number($))},wrapper:$=>{var J;ie((J=$)!==null&&J!==void 0?J:f)},events:$=>{const J=$==null?void 0:$.split(" ");ke(J??g)},"position-strategy":$=>{var J;Se((J=$)!==null&&J!==void 0?J:b)},"delay-show":$=>{Re($===null?v:Number($))},"delay-hide":$=>{Ve($===null?y:Number($))},float:$=>{ot($===null?w:$==="true")},hidden:$=>{pt($===null?A:$==="true")}};Object.values(j).forEach($=>$(null)),Object.entries(se).forEach(([$,J])=>{var be;(be=j[$])===null||be===void 0||be.call(j,J)})};C.useEffect(()=>{N(r)},[r]),C.useEffect(()=>{oe(i)},[i]),C.useEffect(()=>{re(c)},[c]),C.useEffect(()=>{K(u)},[u]),C.useEffect(()=>{ne(p)},[p]),C.useEffect(()=>{Re(v)},[v]),C.useEffect(()=>{Ve(y)},[y]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Se(b)},[b]),C.useEffect(()=>{Ke.current!==le&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[le]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:le==="core",disableBase:le}}))},[]),C.useEffect(()=>{var se;const j=new Set(jt);let $=n;if(!$&&e&&($=`[data-tooltip-id='${e}']`),$)try{document.querySelectorAll($).forEach(tt=>{j.add({current:tt})})}catch{console.warn(`[react-tooltip] "${$}" is not a valid CSS selector`)}const J=document.querySelector(`[id='${t}']`);if(J&&j.add({current:J}),!j.size)return()=>null;const be=(se=Me??J)!==null&&se!==void 0?se:ue.current,Fe=new MutationObserver(tt=>{tt.forEach(Je=>{var Ze;if(!be||Je.type!=="attributes"||!(!((Ze=Je.attributeName)===null||Ze===void 0)&&Ze.startsWith("data-tooltip-")))return;const Rt=ye(be);We(Rt)})}),De={attributes:!0,childList:!1,subtree:!1};if(be){const tt=ye(be);We(tt),Fe.observe(be,De)}return()=>{Fe.disconnect()}},[jt,ue,Me,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),he&&!CSS.supports("border",`${he}`)&&console.warn(`[react-tooltip] "${he}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),de&&!CSS.supports("opacity",`${de}`)&&console.warn(`[react-tooltip] "${de}" is not a valid \`opacity\`.`)},[]);let at=m;const Qe=C.useRef(null);if(a){const se=a({content:ce??null,activeAnchor:Me});at=se?ut.createElement("div",{ref:Qe,className:"react-tooltip-content-wrapper"},se):null}else ce&&(at=ce);me&&(at=ut.createElement(YK,{content:me}));const Y={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:at,contentWrapperRef:Qe,place:O,variant:Te,offset:xe,wrapper:U,events:pe,openOnClick:E,positionStrategy:ve,middlewares:T,delayShow:Le,delayHide:Xe,float:dt,hidden:Ge,noArrow:D,clickable:k,closeOnEsc:R,closeOnScroll:B,closeOnResize:W,style:P,position:Q,isOpen:z,border:he,opacity:de,setIsOpen:fe,afterShow:Z,afterHide:V,activeAnchor:Me,setActiveAnchor:se=>ze(se)};return ut.createElement(KK,{...Y})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||jA({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||jA({css:` -.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px;transform:rotate(45deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function _2(){const e=window.navigator.platform.toUpperCase();return e.indexOf("MAC")>=0?"mac":e.indexOf("LINUX")>=0?"linux":e.indexOf("WIN")>=0?"windows":"unknown"}function tg(e){switch(_2()){case"mac":return e.metaKey;case"linux":case"windows":return e.ctrlKey;default:return e.metaKey}}function ZK(){switch(_2()){case"mac":return"⌘";case"linux":case"windows":return"^";default:return"⌘"}}function nr(){const e=localStorage.getItem("fontSize");return e?parseInt(e):14}function qA(e){switch(e.split(".").pop()){case"py":return"python";case"js":return"javascript";case"ts":return"typescript";case"java":return"java";case"go":return"go";case"rb":return"ruby";case"rs":return"rust";case"c":return"c";case"cpp":return"cpp";case"cs":return"csharp";case"php":return"php";case"scala":return"scala";case"swift":return"swift";case"kt":return"kotlin";case"md":return"markdown";case"json":return"json";case"html":return"html";case"css":return"css";case"sh":return"shell";case"yaml":return"yaml";case"toml":return"toml";case"tex":return"latex";case"sql":return"sql";default:return""}}const wt="5px",vt="#646464",da="#1bbe84",Lt="var(--vscode-list-hoverBackground, rgb(45 45 45))",Kt="var(--vscode-editor-background, rgb(30 30 30))",Ht="var(--vscode-editor-foreground, #fff)";if(typeof document<"u"){const e=localStorage.getItem("--vscode-editor-foreground"),t=localStorage.getItem("--vscode-editor-background"),n=localStorage.getItem("--vscode-list-hoverBackground");e&&document.body.style.setProperty("--vscode-editor-foreground",e),t&&document.body.style.setProperty("--vscode-editor-background",t),n&&document.body.style.setProperty("--vscode-list-hoverBackground",n)}const op=He.button` +*/const AX="react-tooltip-core-styles",CX="react-tooltip-base-styles",zC={core:!1,base:!1};function HC({css:e,id:t=CX,type:n="base",ref:r}){var i,a;if(!e||typeof document>"u"||zC[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=AX),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),zC[n]=!0}const jC=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},kX="DEFAULT_TOOLTIP_ID",xX={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},IX=C.createContext({getTooltipData:()=>xX});function TL(e=kX){return C.useContext(IX).getTooltipData(e)}const RX=typeof window<"u"?C.useLayoutEffect:C.useEffect,NX=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},GC=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(NX(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},VC=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[sX(Number(i)),aX(),lX({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(iX({element:n,padding:5})),$C(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,b;const y={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:E}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},v=(b={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&b!==void 0?b:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const R=`${s}`.match(/(\d+)px/);A=R!=null&&R[1]?Number(R[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:E!=null?`${E}px`:"",right:"",bottom:"",...w,[v]:`-${4+A}px`},place:f}})):$C(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var OX="core-styles-module_tooltip__3vRRp",DX="core-styles-module_fixed__pcSol",LX="core-styles-module_arrow__cvMwQ",MX="core-styles-module_noArrow__xock6",FX="core-styles-module_clickable__ZuTTB",PX="core-styles-module_show__Nt9eE",x3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const BX=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:b=0,float:y=!1,hidden:T=!1,noArrow:E=!1,clickable:v=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:R=!1,style:k,position:N,afterShow:B,afterHide:q,content:P,contentWrapperRef:Q,isOpen:$,setIsOpen:oe,activeAnchor:fe,setActiveAnchor:ce,border:De,opacity:H})=>{const W=C.useRef(null),se=C.useRef(null),D=C.useRef(null),pe=C.useRef(null),[le,L]=C.useState(o),[ie,Se]=C.useState({}),[X,ke]=C.useState({}),[te,Me]=C.useState(!1),[Re,Ze]=C.useState(!1),We=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:je}=TL(e),pt=C.useRef(!1),[U,re]=C.useState([]),de=C.useRef(!1),xe=c||u.includes("click");RX(()=>(de.current=!0,()=>{de.current=!1}),[]),C.useEffect(()=>{if(!te){const ge=setTimeout(()=>{Ze(!1)},150);return()=>{clearTimeout(ge)}}return()=>null},[te]);const ye=ge=>{de.current&&(ge&&Ze(!0),setTimeout(()=>{de.current&&(oe==null||oe(ge),$===void 0&&Me(ge))},10))};C.useEffect(()=>{if($===void 0)return()=>null;$&&Ze(!0);const ge=setTimeout(()=>{Me($)},10);return()=>{clearTimeout(ge)}},[$]),C.useEffect(()=>{te!==We.current&&(We.current=te,te?B==null||B():q==null||q())},[te]);const Te=(ge=b)=>{pe.current&&clearTimeout(pe.current),pe.current=setTimeout(()=>{pt.current||ye(!1)},ge)},Le=ge=>{var G;if(!ge)return;const K=(G=ge.currentTarget)!==null&&G!==void 0?G:ge.target;if(!(K!=null&&K.isConnected))return ce(null),void je({current:null});g?(D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{ye(!0)},g)):ye(!0),ce(K),je({current:K}),pe.current&&clearTimeout(pe.current)},ze=()=>{v?Te(b||100):b?Te():ye(!1),D.current&&clearTimeout(D.current)},Ye=({x:ge,y:G})=>{VC({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:ge,y:G,width:0,height:0,top:G,left:ge,right:ge,bottom:G})},tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(K=>{Object.keys(K.tooltipStyles).length&&Se(K.tooltipStyles),Object.keys(K.tooltipArrowStyles).length&&ke(K.tooltipArrowStyles),L(K.place)})},jt=ge=>{if(!ge)return;const G=ge,K={x:G.clientX,y:G.clientY};Ye(K),dt.current=K},ue=ge=>{Le(ge),b&&Te()},Ee=ge=>{var G;[document.querySelector(`[id='${i}']`),...U].some(K=>K==null?void 0:K.contains(ge.target))||!((G=W.current)===null||G===void 0)&&G.contains(ge.target)||(ye(!1),D.current&&clearTimeout(D.current))},qe=jC(Le,50,!0),j=jC(ze,50,!0);C.useEffect(()=>{var ge,G;const K=new Set(ot);U.forEach(Qt=>{K.add({current:Qt})});const ne=document.querySelector(`[id='${i}']`);ne&&K.add({current:ne});const ve=()=>{ye(!1)},Qe=GC(fe),Fe=GC(W.current);A&&(window.addEventListener("scroll",ve),Qe==null||Qe.addEventListener("scroll",ve),Fe==null||Fe.addEventListener("scroll",ve)),R&&window.addEventListener("resize",ve);const at=Qt=>{Qt.key==="Escape"&&ye(!1)};w&&window.addEventListener("keydown",at);const rt=[];xe?(window.addEventListener("click",Ee),rt.push({event:"click",listener:ue})):(rt.push({event:"mouseenter",listener:qe},{event:"mouseleave",listener:j},{event:"focus",listener:qe},{event:"blur",listener:j}),y&&rt.push({event:"mousemove",listener:jt}));const Je=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return v&&!xe&&((ge=W.current)===null||ge===void 0||ge.addEventListener("mouseenter",Je),(G=W.current)===null||G===void 0||G.addEventListener("mouseleave",Rt)),rt.forEach(({event:Qt,listener:kt})=>{K.forEach(rn=>{var Xt;(Xt=rn.current)===null||Xt===void 0||Xt.addEventListener(Qt,kt)})}),()=>{var Qt,kt;A&&(window.removeEventListener("scroll",ve),Qe==null||Qe.removeEventListener("scroll",ve),Fe==null||Fe.removeEventListener("scroll",ve)),R&&window.removeEventListener("resize",ve),xe&&window.removeEventListener("click",Ee),w&&window.removeEventListener("keydown",at),v&&!xe&&((Qt=W.current)===null||Qt===void 0||Qt.removeEventListener("mouseenter",Je),(kt=W.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),rt.forEach(({event:rn,listener:Xt})=>{K.forEach(Wr=>{var qr;(qr=Wr.current)===null||qr===void 0||qr.removeEventListener(rn,Xt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let ge=a??"";!ge&&e&&(ge=`[data-tooltip-id='${e}']`);const G=new MutationObserver(K=>{const ne=[];K.forEach(ve=>{if(ve.type==="attributes"&&ve.attributeName==="data-tooltip-id"&&ve.target.getAttribute("data-tooltip-id")===e&&ne.push(ve.target),ve.type==="childList"&&(fe&&[...ve.removedNodes].some(Qe=>{var Fe;return!!(!((Fe=Qe==null?void 0:Qe.contains)===null||Fe===void 0)&&Fe.call(Qe,fe))&&(Ze(!1),ye(!1),ce(null),D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current),!0)}),ge))try{const Qe=[...ve.addedNodes].filter(Fe=>Fe.nodeType===1);ne.push(...Qe.filter(Fe=>Fe.matches(ge))),ne.push(...Qe.flatMap(Fe=>[...Fe.querySelectorAll(ge)]))}catch{}}),ne.length&&re(ve=>[...ve,...ne])});return G.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{G.disconnect()}},[e,a,fe]);const me=()=>{N?Ye(N):y?dt.current&&Ye(dt.current):VC({place:o,offset:s,elementReference:fe,tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(ge=>{de.current&&(Object.keys(ge.tooltipStyles).length&&Se(ge.tooltipStyles),Object.keys(ge.tooltipArrowStyles).length&&ke(ge.tooltipArrowStyles),L(ge.place))})};C.useEffect(()=>{me()},[te,fe,P,k,o,s,p,N]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const ge=new ResizeObserver(()=>{me()});return ge.observe(Q.current),()=>{ge.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var ge;const G=document.querySelector(`[id='${i}']`),K=[...U,G];fe&&K.includes(fe)||ce((ge=U[0])!==null&&ge!==void 0?ge:G)},[i,U,fe]),C.useEffect(()=>()=>{D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current)},[]),C.useEffect(()=>{let ge=a;if(!ge&&e&&(ge=`[data-tooltip-id='${e}']`),ge)try{const G=Array.from(document.querySelectorAll(ge));re(G)}catch{re([])}},[e,a]);const Ve=!T&&P&&te&&Object.keys(ie).length>0;return Re?ut.createElement(m,{id:e,role:"tooltip",className:MC("react-tooltip",OX,x3.tooltip,x3[r],t,`react-tooltip__place-${le}`,{[PX]:Ve,[DX]:p==="fixed",[FX]:v}),style:{...k,...ie,opacity:H!==void 0&&Ve?H:void 0},ref:W},P,ut.createElement(m,{className:MC("react-tooltip-arrow",LX,x3.arrow,n,{[MX]:E}),style:X,ref:se})):null},UX=({content:e})=>ut.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),$X=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:b=!1,positionStrategy:y="absolute",middlewares:T,delayShow:E=0,delayHide:v=0,float:w=!1,hidden:A=!1,noArrow:R=!1,clickable:k=!1,closeOnEsc:N=!1,closeOnScroll:B=!1,closeOnResize:q=!1,style:P,position:Q,isOpen:$,disableStyleInjection:oe=!1,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W})=>{const[se,D]=C.useState(r),[pe,le]=C.useState(i),[L,ie]=C.useState(c),[Se,X]=C.useState(u),[ke,te]=C.useState(p),[Me,Re]=C.useState(E),[Ze,We]=C.useState(v),[dt,ot]=C.useState(w),[je,pt]=C.useState(A),[U,re]=C.useState(f),[de,xe]=C.useState(g),[ye,Te]=C.useState(y),[Le,ze]=C.useState(null),Ye=C.useRef(oe),{anchorRefs:jt,activeAnchor:ue}=TL(e),Ee=ge=>ge==null?void 0:ge.getAttributeNames().reduce((G,K)=>{var ne;return K.startsWith("data-tooltip-")&&(G[K.replace(/^data-tooltip-/,"")]=(ne=ge==null?void 0:ge.getAttribute(K))!==null&&ne!==void 0?ne:null),G},{}),qe=ge=>{const G={place:K=>{var ne;ie((ne=K)!==null&&ne!==void 0?ne:c)},content:K=>{D(K??r)},html:K=>{le(K??i)},variant:K=>{var ne;X((ne=K)!==null&&ne!==void 0?ne:u)},offset:K=>{te(K===null?p:Number(K))},wrapper:K=>{var ne;re((ne=K)!==null&&ne!==void 0?ne:f)},events:K=>{const ne=K==null?void 0:K.split(" ");xe(ne??g)},"position-strategy":K=>{var ne;Te((ne=K)!==null&&ne!==void 0?ne:y)},"delay-show":K=>{Re(K===null?E:Number(K))},"delay-hide":K=>{We(K===null?v:Number(K))},float:K=>{ot(K===null?w:K==="true")},hidden:K=>{pt(K===null?A:K==="true")}};Object.values(G).forEach(K=>K(null)),Object.entries(ge).forEach(([K,ne])=>{var ve;(ve=G[K])===null||ve===void 0||ve.call(G,ne)})};C.useEffect(()=>{D(r)},[r]),C.useEffect(()=>{le(i)},[i]),C.useEffect(()=>{ie(c)},[c]),C.useEffect(()=>{X(u)},[u]),C.useEffect(()=>{te(p)},[p]),C.useEffect(()=>{Re(E)},[E]),C.useEffect(()=>{We(v)},[v]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Te(y)},[y]),C.useEffect(()=>{Ye.current!==oe&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[oe]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:oe==="core",disableBase:oe}}))},[]),C.useEffect(()=>{var ge;const G=new Set(jt);let K=n;if(!K&&e&&(K=`[data-tooltip-id='${e}']`),K)try{document.querySelectorAll(K).forEach(at=>{G.add({current:at})})}catch{console.warn(`[react-tooltip] "${K}" is not a valid CSS selector`)}const ne=document.querySelector(`[id='${t}']`);if(ne&&G.add({current:ne}),!G.size)return()=>null;const ve=(ge=Le??ne)!==null&&ge!==void 0?ge:ue.current,Qe=new MutationObserver(at=>{at.forEach(rt=>{var Je;if(!ve||rt.type!=="attributes"||!(!((Je=rt.attributeName)===null||Je===void 0)&&Je.startsWith("data-tooltip-")))return;const Rt=Ee(ve);qe(Rt)})}),Fe={attributes:!0,childList:!1,subtree:!1};if(ve){const at=Ee(ve);qe(at),Qe.observe(ve,Fe)}return()=>{Qe.disconnect()}},[jt,ue,Le,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),fe&&!CSS.supports("border",`${fe}`)&&console.warn(`[react-tooltip] "${fe}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),ce&&!CSS.supports("opacity",`${ce}`)&&console.warn(`[react-tooltip] "${ce}" is not a valid \`opacity\`.`)},[]);let j=m;const me=C.useRef(null);if(a){const ge=a({content:se??null,activeAnchor:Le});j=ge?ut.createElement("div",{ref:me,className:"react-tooltip-content-wrapper"},ge):null}else se&&(j=se);pe&&(j=ut.createElement(UX,{content:pe}));const Ve={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:j,contentWrapperRef:me,place:L,variant:Se,offset:ke,wrapper:U,events:de,openOnClick:b,positionStrategy:ye,middlewares:T,delayShow:Me,delayHide:Ze,float:dt,hidden:je,noArrow:R,clickable:k,closeOnEsc:N,closeOnScroll:B,closeOnResize:q,style:P,position:Q,isOpen:$,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W,activeAnchor:Le,setActiveAnchor:ge=>ze(ge)};return ut.createElement(BX,{...Ve})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||HC({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||HC({css:` +.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px;transform:rotate(45deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function Km(){const e=window.navigator.platform.toUpperCase();return e.indexOf("MAC")>=0?"mac":e.indexOf("LINUX")>=0?"linux":e.indexOf("WIN")>=0?"windows":"unknown"}function xg(e){switch(Km()){case"mac":return e.metaKey;case"linux":case"windows":return e.ctrlKey;default:return e.metaKey}}function zX(){switch(Km()){case"mac":return"⌘";case"linux":case"windows":return"^";default:return"⌘"}}function pr(){const e=localStorage.getItem("fontSize");return e?parseInt(e):14}function WC(e){switch(e.split(".").pop()){case"py":return"python";case"js":return"javascript";case"ts":return"typescript";case"java":return"java";case"go":return"go";case"rb":return"ruby";case"rs":return"rust";case"c":return"c";case"cpp":return"cpp";case"cs":return"csharp";case"php":return"php";case"scala":return"scala";case"swift":return"swift";case"kt":return"kotlin";case"md":return"markdown";case"json":return"json";case"html":return"html";case"css":return"css";case"sh":return"shell";case"yaml":return"yaml";case"toml":return"toml";case"tex":return"latex";case"sql":return"sql";default:return""}}const It="5px",Et="#646464",ha="#1bbe84",Vt="var(--vscode-list-hoverBackground, rgb(45 45 45))",Ht="var(--vscode-editor-background, rgb(30 30 30))",Yt="var(--vscode-editor-foreground, #fff)";if(typeof document<"u"){const e=localStorage.getItem("--vscode-editor-foreground"),t=localStorage.getItem("--vscode-editor-background"),n=localStorage.getItem("--vscode-list-hoverBackground");e&&document.body.style.setProperty("--vscode-editor-foreground",e),t&&document.body.style.setProperty("--vscode-editor-background",t),n&&document.body.style.setProperty("--vscode-list-hoverBackground",n)}const oc=Ge.button` padding: 10px 12px; margin: 8px 0; - border-radius: ${wt}; + border-radius: ${It}; border: none; color: white; - background-color: ${da}; + background-color: ${ha}; &:disabled { color: gray; @@ -81,45 +81,45 @@ Error generating stack: `+a.message+` &:hover:enabled { cursor: pointer; } -`,Gs=He(XK)` +`,au=Ge($X)` font-size: 12px; background-color: rgb(60 60 60); - border-radius: ${wt}; + border-radius: ${It}; padding: 6px; padding-left: 12px; padding-right: 12px; z-index: 1000; max-width: 80vw; -`,QK=He.textarea` +`,HX=Ge.textarea` padding: 8px; font-family: inherit; - border-radius: ${wt}; + border-radius: ${It}; margin: 16px auto; height: auto; width: calc(100% - 32px); - background-color: ${Lt}; - color: ${Ht}; + background-color: ${Vt}; + color: ${Yt}; z-index: 1; border: 1px solid transparent; resize: vertical; &:focus { - outline: 1px solid ${vt}; + outline: 1px solid ${Et}; border: 1px solid transparent; } &::placeholder { - color: ${vt}80; + color: ${Et}80; } -`;He.pre` - border-radius: ${wt}; +`;Ge.pre` + border-radius: ${It}; padding: 8px; max-height: 150px; overflow-y: scroll; margin: 0; - background-color: ${Kt}; + background-color: ${Ht}; border: none; /* text wrapping */ @@ -128,84 +128,84 @@ Error generating stack: `+a.message+` white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* Internet Explorer 5.5+ */ -`;He.h3` - background-color: ${Lt}; - border-radius: ${wt}; +`;Ge.h3` + background-color: ${Vt}; + border-radius: ${It}; padding: 4px 8px; width: fit-content; -`;const ng=He.input` +`;const Ig=Ge.input` width: 100%; padding: 8px 12px; margin: 8px 0; box-sizing: border-box; - border-radius: ${wt}; - outline: 1px solid ${vt}; + border-radius: ${It}; + outline: 1px solid ${Et}; border: none; - background-color: ${Kt}; - color: ${Ht}; + background-color: ${Ht}; + color: ${Yt}; &:focus { - background: ${Lt}; + background: ${Vt}; } &:invalid { outline: 1px solid red; } -`,JK=He.input.attrs({type:"number"})` +`,jX=Ge.input.attrs({type:"number"})` padding: 8px 12px; margin: 8px 4px; box-sizing: border-box; - border-radius: ${wt}; - outline: 1px solid ${vt}; + border-radius: ${It}; + outline: 1px solid ${Et}; border: none; - background-color: ${Kt}; - color: ${Ht}; + background-color: ${Ht}; + color: ${Yt}; &:focus { - background: ${Lt}; + background: ${Vt}; } -`;He.select` +`;Ge.select` padding: 8px 12px; margin: 8px 0; box-sizing: border-box; - border-radius: ${wt}; - outline: 1px solid ${vt}; + border-radius: ${It}; + outline: 1px solid ${Et}; border: none; - background-color: ${Kt}; - color: ${Ht}; -`;He.label` - font-size: ${e=>e.fontSize||nr()}px; -`;const KA=b2` + background-color: ${Ht}; + color: ${Yt}; +`;Ge.label` + font-size: ${e=>e.fontSize||pr()}px; +`;const qC=Gm` from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } -`;He.div` +`;Ge.div` border: 4px solid transparent; border-radius: 50%; border-top: 4px solid white; width: 36px; height: 36px; - -webkit-animation: ${KA} 1s ease-in-out infinite; - animation: ${KA} 1s ease-in-out infinite; + -webkit-animation: ${qC} 1s ease-in-out infinite; + animation: ${qC} 1s ease-in-out infinite; margin: auto; -`;He.div` - border-radius: ${wt}; +`;Ge.div` + border-radius: ${It}; padding: ${e=>e.borderWidth||"1px"}; background-color: white; -`;He.textarea` +`;Ge.textarea` padding: 8px; font-size: 16px; - border-radius: ${wt}; + border-radius: ${It}; border: 1px solid #ccc; margin: 8px 8px; - background-color: ${Kt}; - color: ${Ht}; + background-color: ${Ht}; + color: ${Yt}; outline: 1px solid orange; resize: none; -`;b2` +`;Gm` from { opacity: 0; transform: translateY(-10px); @@ -214,12 +214,12 @@ Error generating stack: `+a.message+` opacity: 1; transform: translateY(0px); } -`;const eY=He.button` - background-color: ${({inverted:e})=>e?Ht:"transparent"}; - color: ${({inverted:e})=>e?Kt:Ht}; +`;const GX=Ge.button` + background-color: ${({inverted:e})=>e?Yt:"transparent"}; + color: ${({inverted:e})=>e?Ht:Yt}; border: none; - border-radius: ${wt}; + border-radius: ${It}; cursor: ${({disabled:e})=>e?"default":"pointer"}; &:focus { @@ -228,61 +228,61 @@ Error generating stack: `+a.message+` } &:hover { - background-color: ${({inverted:e})=>typeof e>"u"||e?Lt:"transparent"}; + background-color: ${({inverted:e})=>typeof e>"u"||e?Vt:"transparent"}; } display: flex; align-items: center; justify-content: center; gap: 4px; padding: 2px; -`;function tY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))}const nY=C.forwardRef(tY),ac=nY;function rY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"}))}const iY=C.forwardRef(rY),aY=iY;function oY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"}))}const sY=C.forwardRef(oY),lY=sY;function uY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 19.5l-15-15m0 0v11.25m0-11.25h11.25"}))}const cY=C.forwardRef(uY),dY=cY;function pY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))}const fY=C.forwardRef(pY),hY=fY;function gY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"}))}const mY=C.forwardRef(gY),sD=mY;function bY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}const EY=C.forwardRef(bY),vY=EY;function yY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}const _Y=C.forwardRef(yY),TY=_Y;function SY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))}const wY=C.forwardRef(SY),AY=wY;function CY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"}))}const xY=C.forwardRef(CY),kY=xY;function IY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75L16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0020.25 18V6A2.25 2.25 0 0018 3.75H6A2.25 2.25 0 003.75 6v12A2.25 2.25 0 006 20.25z"}))}const RY=C.forwardRef(IY),NY=RY;function OY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const DY=C.forwardRef(OY),LY=DY;function MY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}const FY=C.forwardRef(MY),lD=FY;function PY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"}))}const BY=C.forwardRef(PY),UY=BY;function $Y({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const zY=C.forwardRef($Y),HY=zY;function jY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}const GY=C.forwardRef(jY),VY=GY;function WY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42"}))}const qY=C.forwardRef(WY),KY=qY;function YY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"}))}const XY=C.forwardRef(YY),ZY=XY;function QY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"}))}const JY=C.forwardRef(QY),uD=JY;function eX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const tX=C.forwardRef(eX),cD=tX;function nX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"}))}const rX=C.forwardRef(nX),iX=rX;function aX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"}))}const oX=C.forwardRef(aX),dD=oX;function sX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"}))}const lX=C.forwardRef(sX),uX=lX;function cX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}const dX=C.forwardRef(cX),pD=dX;function pX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const fX=C.forwardRef(pX),T2=fX,vi=ut.forwardRef((e,t)=>{const[n,r]=C.useState(!1),i=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(eY,{"data-tooltip-id":`header_button_${e.text}`,inverted:e.inverted,disabled:e.disabled,onMouseEnter:()=>{e.disabled||r(!0)},onMouseLeave:()=>{r(!1)},onClick:e.onClick,onKeyDown:e.onKeyDown,className:e.className,ref:t,tabIndex:e.tabIndex,children:e.children}),i&&_E.createPortal(I.jsx(Gs,{id:`header_button_${e.text}`,place:"bottom",children:e.text}),i)]})});function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}const YA=["http","https","mailto","tel"];function hX(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! +`,VX=C.createContext(null),I3={didCatch:!1,error:null};class WX extends C.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=I3}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,i=arguments.length,a=new Array(i),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function KX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))}const YX=C.forwardRef(KX),mc=YX;function XX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"}))}const ZX=C.forwardRef(XX),QX=ZX;function JX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"}))}const eZ=C.forwardRef(JX),tZ=eZ;function nZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 19.5l-15-15m0 0v11.25m0-11.25h11.25"}))}const rZ=C.forwardRef(nZ),iZ=rZ;function aZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))}const oZ=C.forwardRef(aZ),sZ=oZ;function lZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"}))}const uZ=C.forwardRef(lZ),SL=uZ;function cZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}const dZ=C.forwardRef(cZ),pZ=dZ;function fZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}const hZ=C.forwardRef(fZ),gZ=hZ;function mZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))}const bZ=C.forwardRef(mZ),yZ=bZ;function EZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"}))}const vZ=C.forwardRef(EZ),_Z=vZ;function TZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75L16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0020.25 18V6A2.25 2.25 0 0018 3.75H6A2.25 2.25 0 003.75 6v12A2.25 2.25 0 006 20.25z"}))}const SZ=C.forwardRef(TZ),wZ=SZ;function AZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const CZ=C.forwardRef(AZ),kZ=CZ;function xZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}const IZ=C.forwardRef(xZ),wL=IZ;function RZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"}))}const NZ=C.forwardRef(RZ),OZ=NZ;function DZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const LZ=C.forwardRef(DZ),MZ=LZ;function FZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}const PZ=C.forwardRef(FZ),BZ=PZ;function UZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42"}))}const $Z=C.forwardRef(UZ),zZ=$Z;function HZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"}))}const jZ=C.forwardRef(HZ),AL=jZ;function GZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const VZ=C.forwardRef(GZ),CL=VZ;function WZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"}))}const qZ=C.forwardRef(WZ),KZ=qZ;function YZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"}))}const XZ=C.forwardRef(YZ),ZZ=XZ;function QZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"}))}const JZ=C.forwardRef(QZ),eQ=JZ;function tQ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}const nQ=C.forwardRef(tQ),kL=nQ;function rQ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const iQ=C.forwardRef(rQ),w9=iQ,zi=ut.forwardRef((e,t)=>{const[n,r]=C.useState(!1),i=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(GX,{"data-tooltip-id":`header_button_${e.text}`,inverted:e.inverted,disabled:e.disabled,onMouseEnter:()=>{e.disabled||r(!0)},onMouseLeave:()=>{r(!1)},onClick:e.onClick,onKeyDown:e.onKeyDown,className:e.className,ref:t,tabIndex:e.tabIndex,children:e.children}),i&&u9.createPortal(I.jsx(au,{id:`header_button_${e.text}`,place:"bottom",children:e.text}),i)]})});function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}const KC=["http","https","mailto","tel"];function aQ(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT - */var gX=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const fD=Hi(gX);function wd(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?XA(e.position):"start"in e||"end"in e?XA(e):"line"in e||"column"in e?yb(e):""}function yb(e){return ZA(e&&e.line)+":"+ZA(e&&e.column)}function XA(e){return yb(e&&e.start)+"-"+yb(e&&e.end)}function ZA(e){return e&&typeof e=="number"?e:1}class va extends Error{constructor(t,n,r){const i=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}n&&("type"in n||"position"in n?n.position&&(a=n.position):"start"in n||"end"in n?a=n:("line"in n||"column"in n)&&(a.start=n)),this.name=wd(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}va.prototype.file="";va.prototype.name="";va.prototype.reason="";va.prototype.message="";va.prototype.stack="";va.prototype.fatal=null;va.prototype.column=null;va.prototype.line=null;va.prototype.source=null;va.prototype.ruleId=null;va.prototype.position=null;const ao={basename:mX,dirname:bX,extname:EX,join:vX,sep:"/"};function mX(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xp(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function bX(e){if(xp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function EX(e){xp(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function vX(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function _X(e,t){let n="",r=0,i=-1,a=0,o=-1,s,u;for(;++o<=e.length;){if(o2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function xp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const TX={cwd:SX};function SX(){return"/"}function _b(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function wX(e){if(typeof e=="string")e=new URL(e);else if(!_b(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return AX(e)}function AX(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||lh.call(t,i)},iC=function(t,n){eC&&n.name==="__proto__"?eC(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},aC=function(t,n){if(n==="__proto__")if(lh.call(t,n)){if(tC)return tC(t,n).value}else return;return t[n]},xX=function e(){var t,n,r,i,a,o,s=arguments[0],u=1,c=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});uo.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(c){const p=c;if(s&&n)throw p;return i(p)}s||(u instanceof Promise?u.then(a,i):u instanceof Error?i(u):a(u))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const RX=bD().freeze(),mD={}.hasOwnProperty;function bD(){const e=kX(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=u,a.parse=c,a.stringify=p,a.run=f,a.runSync=m,a.process=g,a.processSync=E,a;function a(){const b=bD();let T=-1;for(;++T{if(k||!R||!B)D(k);else{const W=a.stringify(R,B);W==null||(DX(W)?B.value=W:B.result=W),D(k,B)}});function D(k,R){k||!R?w(k):y?y(R):T(null,R)}}}function E(b){let T;a.freeze(),o3("processSync",a.Parser),s3("processSync",a.Compiler);const v=Hc(b);return a.process(v,y),lC("processSync","process",T),v;function y(w){T=!0,JA(w)}}}function oC(e,t){return typeof e=="function"&&e.prototype&&(NX(e.prototype)||t in e.prototype)}function NX(e){let t;for(t in e)if(mD.call(e,t))return!0;return!1}function o3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function s3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function l3(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function sC(e){if(!Tb(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function lC(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Hc(e){return OX(e)?e:new hD(e)}function OX(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function DX(e){return typeof e=="string"||fD(e)}const LX={};function MX(e,t){const n=t||LX,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ED(e,r,i)}function ED(e,t,n){if(FX(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return uC(e.children,t,n)}return Array.isArray(e)?uC(e,t,n):""}function uC(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Fi(e,e.length,0,t),e):t}const cC={}.hasOwnProperty;function vD(e){const t={};let n=-1;for(;++no))return;const R=t.events.length;let B=R,W,P;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(W){P=t.events[B][1].end;break}W=!0}for(v(r),k=R;kw;){const D=n[A];t.containerState=D[1],D[0].exit.call(t,e)}n.length=w}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function qX(e,t,n){return Gt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ig(e){if(e===null||hn(e)||hu(e))return 1;if(S2(e))return 2}function w2(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);pC(f,-u),pC(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=la(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=la(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=la(c,w2(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=la(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=la(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Fi(e,r-1,n-r+3,c),n=r+c.length-p-2;break}}for(n=-1;++n0&&Dt(k)?Gt(e,y,"linePrefix",a+1)(k):y(k)}function y(k){return k===null||gt(k)?e.check(hC,b,A)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||gt(k)?(e.exit("codeFlowValue"),y(k)):(e.consume(k),w)}function A(k){return e.exit("codeFenced"),t(k)}function D(k,R,B){let W=0;return P;function P(de){return k.enter("lineEnding"),k.consume(de),k.exit("lineEnding"),Q}function Q(de){return k.enter("codeFencedFence"),Dt(de)?Gt(k,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(de):z(de)}function z(de){return de===s?(k.enter("codeFencedFenceSequence"),le(de)):B(de)}function le(de){return de===s?(W++,k.consume(de),le):W>=o?(k.exit("codeFencedFenceSequence"),Dt(de)?Gt(k,he,"whitespace")(de):he(de)):B(de)}function he(de){return de===null||gt(de)?(k.exit("codeFencedFence"),R(de)):B(de)}}}function aZ(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const u3={name:"codeIndented",tokenize:sZ},oZ={tokenize:lZ,partial:!0};function sZ(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Gt(e,a,"linePrefix",4+1)(c)}function a(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):gt(c)?e.attempt(oZ,o,u)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||gt(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function u(c){return e.exit("codeIndented"),t(c)}}function lZ(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Gt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):gt(o)?i(o):n(o)}}const uZ={name:"codeText",tokenize:pZ,resolve:cZ,previous:dZ};function cZ(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function wD(e,t,n,r,i,a,o,s,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return f;function f(v){return v===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(v),e.exit(a),m):v===null||v===32||v===41||rg(v)?n(v):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(v))}function m(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===62?(e.exit("chunkString"),e.exit(s),m(v)):v===null||v===60||gt(v)?n(v):(e.consume(v),v===92?E:g)}function E(v){return v===60||v===62||v===92?(e.consume(v),g):g(v)}function b(v){return!p&&(v===null||v===41||hn(v))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(v)):p999||g===null||g===91||g===93&&!u||g===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):gt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||gt(g)||s++>999?(e.exit("chunkString"),p(g)):(e.consume(g),u||(u=!Dt(g)),g===92?m:f)}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,f):f(g)}}function CD(e,t,n,r,i,a){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,u):n(m)}function u(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),c(m))}function c(m){return m===o?(e.exit(a),u(o)):m===null?n(m):gt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Gt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===o||m===null||gt(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:p)}function f(m){return m===o||m===92?(e.consume(m),p):p(m)}}function Ad(e,t){let n;return r;function r(i){return gt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Dt(i)?Gt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Ha(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vZ={name:"definition",tokenize:_Z},yZ={tokenize:TZ,partial:!0};function _Z(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return AD.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return i=Ha(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return hn(g)?Ad(e,c)(g):c(g)}function c(g){return wD(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(yZ,f,f)(g)}function f(g){return Dt(g)?Gt(e,m,"whitespace")(g):m(g)}function m(g){return g===null||gt(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function TZ(e,t,n){return r;function r(s){return hn(s)?Ad(e,i)(s):n(s)}function i(s){return CD(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Dt(s)?Gt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||gt(s)?t(s):n(s)}}const SZ={name:"hardBreakEscape",tokenize:wZ};function wZ(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return gt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const AZ={name:"headingAtx",tokenize:xZ,resolve:CZ};function CZ(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Fi(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function xZ(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||hn(p)?(e.exit("atxHeadingSequence"),s(p)):n(p)}function s(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||gt(p)?(e.exit("atxHeading"),t(p)):Dt(p)?Gt(e,s,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),s(p))}function c(p){return p===null||p===35||hn(p)?(e.exit("atxHeadingText"),s(p)):(e.consume(p),c)}}const kZ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],mC=["pre","script","style","textarea"],IZ={name:"htmlFlow",tokenize:DZ,resolveTo:OZ,concrete:!0},RZ={tokenize:MZ,partial:!0},NZ={tokenize:LZ,partial:!0};function OZ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function DZ(e,t,n){const r=this;let i,a,o,s,u;return c;function c(O){return p(O)}function p(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),f}function f(O){return O===33?(e.consume(O),m):O===47?(e.consume(O),a=!0,b):O===63?(e.consume(O),i=3,r.interrupt?t:N):Qr(O)?(e.consume(O),o=String.fromCharCode(O),T):n(O)}function m(O){return O===45?(e.consume(O),i=2,g):O===91?(e.consume(O),i=5,s=0,E):Qr(O)?(e.consume(O),i=4,r.interrupt?t:N):n(O)}function g(O){return O===45?(e.consume(O),r.interrupt?t:N):n(O)}function E(O){const re="CDATA[";return O===re.charCodeAt(s++)?(e.consume(O),s===re.length?r.interrupt?t:z:E):n(O)}function b(O){return Qr(O)?(e.consume(O),o=String.fromCharCode(O),T):n(O)}function T(O){if(O===null||O===47||O===62||hn(O)){const re=O===47,Te=o.toLowerCase();return!re&&!a&&mC.includes(Te)?(i=1,r.interrupt?t(O):z(O)):kZ.includes(o.toLowerCase())?(i=6,re?(e.consume(O),v):r.interrupt?t(O):z(O)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(O):a?y(O):w(O))}return O===45||$r(O)?(e.consume(O),o+=String.fromCharCode(O),T):n(O)}function v(O){return O===62?(e.consume(O),r.interrupt?t:z):n(O)}function y(O){return Dt(O)?(e.consume(O),y):P(O)}function w(O){return O===47?(e.consume(O),P):O===58||O===95||Qr(O)?(e.consume(O),A):Dt(O)?(e.consume(O),w):P(O)}function A(O){return O===45||O===46||O===58||O===95||$r(O)?(e.consume(O),A):D(O)}function D(O){return O===61?(e.consume(O),k):Dt(O)?(e.consume(O),D):w(O)}function k(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),u=O,R):Dt(O)?(e.consume(O),k):B(O)}function R(O){return O===u?(e.consume(O),u=null,W):O===null||gt(O)?n(O):(e.consume(O),R)}function B(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||hn(O)?D(O):(e.consume(O),B)}function W(O){return O===47||O===62||Dt(O)?w(O):n(O)}function P(O){return O===62?(e.consume(O),Q):n(O)}function Q(O){return O===null||gt(O)?z(O):Dt(O)?(e.consume(O),Q):n(O)}function z(O){return O===45&&i===2?(e.consume(O),fe):O===60&&i===1?(e.consume(O),Z):O===62&&i===4?(e.consume(O),me):O===63&&i===3?(e.consume(O),N):O===93&&i===5?(e.consume(O),ce):gt(O)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(RZ,oe,le)(O)):O===null||gt(O)?(e.exit("htmlFlowData"),le(O)):(e.consume(O),z)}function le(O){return e.check(NZ,he,oe)(O)}function he(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),de}function de(O){return O===null||gt(O)?le(O):(e.enter("htmlFlowData"),z(O))}function fe(O){return O===45?(e.consume(O),N):z(O)}function Z(O){return O===47?(e.consume(O),o="",V):z(O)}function V(O){if(O===62){const re=o.toLowerCase();return mC.includes(re)?(e.consume(O),me):z(O)}return Qr(O)&&o.length<8?(e.consume(O),o+=String.fromCharCode(O),V):z(O)}function ce(O){return O===93?(e.consume(O),N):z(O)}function N(O){return O===62?(e.consume(O),me):O===45&&i===2?(e.consume(O),N):z(O)}function me(O){return O===null||gt(O)?(e.exit("htmlFlowData"),oe(O)):(e.consume(O),me)}function oe(O){return e.exit("htmlFlow"),t(O)}}function LZ(e,t,n){const r=this;return i;function i(o){return gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function MZ(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(kp,t,n)}}const FZ={name:"htmlText",tokenize:PZ};function PZ(e,t,n){const r=this;let i,a,o;return s;function s(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),u}function u(N){return N===33?(e.consume(N),c):N===47?(e.consume(N),D):N===63?(e.consume(N),w):Qr(N)?(e.consume(N),B):n(N)}function c(N){return N===45?(e.consume(N),p):N===91?(e.consume(N),a=0,E):Qr(N)?(e.consume(N),y):n(N)}function p(N){return N===45?(e.consume(N),g):n(N)}function f(N){return N===null?n(N):N===45?(e.consume(N),m):gt(N)?(o=f,Z(N)):(e.consume(N),f)}function m(N){return N===45?(e.consume(N),g):f(N)}function g(N){return N===62?fe(N):N===45?m(N):f(N)}function E(N){const me="CDATA[";return N===me.charCodeAt(a++)?(e.consume(N),a===me.length?b:E):n(N)}function b(N){return N===null?n(N):N===93?(e.consume(N),T):gt(N)?(o=b,Z(N)):(e.consume(N),b)}function T(N){return N===93?(e.consume(N),v):b(N)}function v(N){return N===62?fe(N):N===93?(e.consume(N),v):b(N)}function y(N){return N===null||N===62?fe(N):gt(N)?(o=y,Z(N)):(e.consume(N),y)}function w(N){return N===null?n(N):N===63?(e.consume(N),A):gt(N)?(o=w,Z(N)):(e.consume(N),w)}function A(N){return N===62?fe(N):w(N)}function D(N){return Qr(N)?(e.consume(N),k):n(N)}function k(N){return N===45||$r(N)?(e.consume(N),k):R(N)}function R(N){return gt(N)?(o=R,Z(N)):Dt(N)?(e.consume(N),R):fe(N)}function B(N){return N===45||$r(N)?(e.consume(N),B):N===47||N===62||hn(N)?W(N):n(N)}function W(N){return N===47?(e.consume(N),fe):N===58||N===95||Qr(N)?(e.consume(N),P):gt(N)?(o=W,Z(N)):Dt(N)?(e.consume(N),W):fe(N)}function P(N){return N===45||N===46||N===58||N===95||$r(N)?(e.consume(N),P):Q(N)}function Q(N){return N===61?(e.consume(N),z):gt(N)?(o=Q,Z(N)):Dt(N)?(e.consume(N),Q):W(N)}function z(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),i=N,le):gt(N)?(o=z,Z(N)):Dt(N)?(e.consume(N),z):(e.consume(N),he)}function le(N){return N===i?(e.consume(N),i=void 0,de):N===null?n(N):gt(N)?(o=le,Z(N)):(e.consume(N),le)}function he(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||hn(N)?W(N):(e.consume(N),he)}function de(N){return N===47||N===62||hn(N)?W(N):n(N)}function fe(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function Z(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),V}function V(N){return Dt(N)?Gt(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):ce(N)}function ce(N){return e.enter("htmlTextData"),o(N)}}const FE={name:"labelEnd",tokenize:jZ,resolveTo:HZ,resolveAll:zZ},BZ={tokenize:GZ},UZ={tokenize:VZ},$Z={tokenize:WZ};function zZ(e){let t=-1;for(;++t=3&&(c===null||gt(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),Dt(c)?Gt(e,s,"whitespace")(c):s(c))}}const ui={name:"list",tokenize:tQ,continuation:{tokenize:nQ},exit:iQ},JZ={tokenize:aQ,partial:!0},eQ={tokenize:rQ,partial:!0};function tQ(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(g){const E=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:Sb(g)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(uh,n,c)(g):c(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return Sb(g)&&++o<10?(e.consume(g),u):(!r.interrupt||o<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(kp,r.interrupt?n:p,e.attempt(JZ,m,f))}function p(g){return r.containerState.initialBlankLine=!0,a++,m(g)}function f(g){return Dt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function nQ(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(kp,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Gt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Dt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eQ,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Gt(e,e.attempt(ui,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function rQ(e,t,n){const r=this;return Gt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function iQ(e){e.exit(this.containerState.type)}function aQ(e,t,n){const r=this;return Gt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!Dt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const bC={name:"setextUnderline",tokenize:sQ,resolveTo:oQ};function oQ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function sQ(e,t,n){const r=this;let i;return a;function a(c){let p=r.events.length,f;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){f=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Dt(c)?Gt(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||gt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const lQ={tokenize:uQ};function uQ(e){const t=this,n=e.attempt(kp,r,e.attempt(this.parser.constructs.flowInitial,i,Gt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(hZ,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const cQ={resolveAll:kD()},dQ=xD("string"),pQ=xD("text");function xD(e){return{tokenize:t,resolveAll:kD(e==="text"?fQ:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(p){return c(p)?a(p):s(p)}function s(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return c(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function c(p){if(p===null)return!0;const f=i[p];let m=-1;if(f)for(;++m-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function mQ(e,t){let n=-1;const r=[];let i;for(;++ne.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function lQ(e){if(Hp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function uQ(e){Hp(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function cQ(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function pQ(e,t){let n="",r=0,i=-1,a=0,o=-1,s,u;for(;++o<=e.length;){if(o2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Hp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const fQ={cwd:hQ};function hQ(){return"/"}function ey(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function gQ(e){if(typeof e=="string")e=new URL(e);else if(!ey(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mQ(e)}function mQ(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||kh.call(t,i)},rk=function(t,n){JC&&n.name==="__proto__"?JC(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ik=function(t,n){if(n==="__proto__")if(kh.call(t,n)){if(ek)return ek(t,n).value}else return;return t[n]},yQ=function e(){var t,n,r,i,a,o,s=arguments[0],u=1,c=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});uo.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(c){const p=c;if(s&&n)throw p;return i(p)}s||(u instanceof Promise?u.then(a,i):u instanceof Error?i(u):a(u))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const _Q=OL().freeze(),NL={}.hasOwnProperty;function OL(){const e=EQ(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=u,a.parse=c,a.stringify=p,a.run=f,a.runSync=m,a.process=g,a.processSync=b,a;function a(){const y=OL();let T=-1;for(;++T{if(k||!N||!B)R(k);else{const q=a.stringify(N,B);q==null||(wQ(q)?B.value=q:B.result=q),R(k,B)}});function R(k,N){k||!N?w(k):v?v(N):T(null,N)}}}function b(y){let T;a.freeze(),D3("processSync",a.Parser),L3("processSync",a.Compiler);const E=ed(y);return a.process(E,v),sk("processSync","process",T),E;function v(w){T=!0,QC(w)}}}function ak(e,t){return typeof e=="function"&&e.prototype&&(TQ(e.prototype)||t in e.prototype)}function TQ(e){let t;for(t in e)if(NL.call(e,t))return!0;return!1}function D3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function L3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function M3(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ok(e){if(!ty(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sk(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ed(e){return SQ(e)?e:new IL(e)}function SQ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wQ(e){return typeof e=="string"||xL(e)}const AQ={};function CQ(e,t){const n=t||AQ,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return DL(e,r,i)}function DL(e,t,n){if(kQ(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lk(e.children,t,n)}return Array.isArray(e)?lk(e,t,n):""}function lk(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Bi(e,e.length,0,t),e):t}const uk={}.hasOwnProperty;function LL(e){const t={};let n=-1;for(;++no))return;const N=t.events.length;let B=N,q,P;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(q){P=t.events[B][1].end;break}q=!0}for(E(r),k=N;kw;){const R=n[A];t.containerState=R[1],R[0].exit.call(t,e)}n.length=w}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function BQ(e,t,n){return Gt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ng(e){if(e===null||gn(e)||_u(e))return 1;if(Ym(e))return 2}function Xm(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);dk(f,-u),dk(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ca(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ca(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=ca(c,Xm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ca(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=ca(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Bi(e,r-1,n-r+3,c),n=r+c.length-p-2;break}}for(n=-1;++n0&&Dt(k)?Gt(e,v,"linePrefix",a+1)(k):v(k)}function v(k){return k===null||gt(k)?e.check(fk,y,A)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||gt(k)?(e.exit("codeFlowValue"),v(k)):(e.consume(k),w)}function A(k){return e.exit("codeFenced"),t(k)}function R(k,N,B){let q=0;return P;function P(ce){return k.enter("lineEnding"),k.consume(ce),k.exit("lineEnding"),Q}function Q(ce){return k.enter("codeFencedFence"),Dt(ce)?Gt(k,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ce):$(ce)}function $(ce){return ce===s?(k.enter("codeFencedFenceSequence"),oe(ce)):B(ce)}function oe(ce){return ce===s?(q++,k.consume(ce),oe):q>=o?(k.exit("codeFencedFenceSequence"),Dt(ce)?Gt(k,fe,"whitespace")(ce):fe(ce)):B(ce)}function fe(ce){return ce===null||gt(ce)?(k.exit("codeFencedFence"),N(ce)):B(ce)}}}function XQ(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const F3={name:"codeIndented",tokenize:QQ},ZQ={tokenize:JQ,partial:!0};function QQ(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Gt(e,a,"linePrefix",4+1)(c)}function a(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):gt(c)?e.attempt(ZQ,o,u)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||gt(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function u(c){return e.exit("codeIndented"),t(c)}}function JQ(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Gt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):gt(o)?i(o):n(o)}}const eJ={name:"codeText",tokenize:rJ,resolve:tJ,previous:nJ};function tJ(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function UL(e,t,n,r,i,a,o,s,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return f;function f(E){return E===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(E),e.exit(a),m):E===null||E===32||E===41||Rg(E)?n(E):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(E))}function m(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===62?(e.exit("chunkString"),e.exit(s),m(E)):E===null||E===60||gt(E)?n(E):(e.consume(E),E===92?b:g)}function b(E){return E===60||E===62||E===92?(e.consume(E),g):g(E)}function y(E){return!p&&(E===null||E===41||gn(E))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(E)):p999||g===null||g===91||g===93&&!u||g===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):gt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||gt(g)||s++>999?(e.exit("chunkString"),p(g)):(e.consume(g),u||(u=!Dt(g)),g===92?m:f)}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,f):f(g)}}function zL(e,t,n,r,i,a){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,u):n(m)}function u(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),c(m))}function c(m){return m===o?(e.exit(a),u(o)):m===null?n(m):gt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Gt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===o||m===null||gt(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:p)}function f(m){return m===o||m===92?(e.consume(m),p):p(m)}}function Ud(e,t){let n;return r;function r(i){return gt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Dt(i)?Gt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Wa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const cJ={name:"definition",tokenize:pJ},dJ={tokenize:fJ,partial:!0};function pJ(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return $L.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return i=Wa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return gn(g)?Ud(e,c)(g):c(g)}function c(g){return UL(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(dJ,f,f)(g)}function f(g){return Dt(g)?Gt(e,m,"whitespace")(g):m(g)}function m(g){return g===null||gt(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function fJ(e,t,n){return r;function r(s){return gn(s)?Ud(e,i)(s):n(s)}function i(s){return zL(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Dt(s)?Gt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||gt(s)?t(s):n(s)}}const hJ={name:"hardBreakEscape",tokenize:gJ};function gJ(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return gt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const mJ={name:"headingAtx",tokenize:yJ,resolve:bJ};function bJ(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Bi(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function yJ(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||gn(p)?(e.exit("atxHeadingSequence"),s(p)):n(p)}function s(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||gt(p)?(e.exit("atxHeading"),t(p)):Dt(p)?Gt(e,s,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),s(p))}function c(p){return p===null||p===35||gn(p)?(e.exit("atxHeadingText"),s(p)):(e.consume(p),c)}}const EJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gk=["pre","script","style","textarea"],vJ={name:"htmlFlow",tokenize:wJ,resolveTo:SJ,concrete:!0},_J={tokenize:CJ,partial:!0},TJ={tokenize:AJ,partial:!0};function SJ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function wJ(e,t,n){const r=this;let i,a,o,s,u;return c;function c(L){return p(L)}function p(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),f}function f(L){return L===33?(e.consume(L),m):L===47?(e.consume(L),a=!0,y):L===63?(e.consume(L),i=3,r.interrupt?t:D):ti(L)?(e.consume(L),o=String.fromCharCode(L),T):n(L)}function m(L){return L===45?(e.consume(L),i=2,g):L===91?(e.consume(L),i=5,s=0,b):ti(L)?(e.consume(L),i=4,r.interrupt?t:D):n(L)}function g(L){return L===45?(e.consume(L),r.interrupt?t:D):n(L)}function b(L){const ie="CDATA[";return L===ie.charCodeAt(s++)?(e.consume(L),s===ie.length?r.interrupt?t:$:b):n(L)}function y(L){return ti(L)?(e.consume(L),o=String.fromCharCode(L),T):n(L)}function T(L){if(L===null||L===47||L===62||gn(L)){const ie=L===47,Se=o.toLowerCase();return!ie&&!a&&gk.includes(Se)?(i=1,r.interrupt?t(L):$(L)):EJ.includes(o.toLowerCase())?(i=6,ie?(e.consume(L),E):r.interrupt?t(L):$(L)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):a?v(L):w(L))}return L===45||jr(L)?(e.consume(L),o+=String.fromCharCode(L),T):n(L)}function E(L){return L===62?(e.consume(L),r.interrupt?t:$):n(L)}function v(L){return Dt(L)?(e.consume(L),v):P(L)}function w(L){return L===47?(e.consume(L),P):L===58||L===95||ti(L)?(e.consume(L),A):Dt(L)?(e.consume(L),w):P(L)}function A(L){return L===45||L===46||L===58||L===95||jr(L)?(e.consume(L),A):R(L)}function R(L){return L===61?(e.consume(L),k):Dt(L)?(e.consume(L),R):w(L)}function k(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),u=L,N):Dt(L)?(e.consume(L),k):B(L)}function N(L){return L===u?(e.consume(L),u=null,q):L===null||gt(L)?n(L):(e.consume(L),N)}function B(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||gn(L)?R(L):(e.consume(L),B)}function q(L){return L===47||L===62||Dt(L)?w(L):n(L)}function P(L){return L===62?(e.consume(L),Q):n(L)}function Q(L){return L===null||gt(L)?$(L):Dt(L)?(e.consume(L),Q):n(L)}function $(L){return L===45&&i===2?(e.consume(L),De):L===60&&i===1?(e.consume(L),H):L===62&&i===4?(e.consume(L),pe):L===63&&i===3?(e.consume(L),D):L===93&&i===5?(e.consume(L),se):gt(L)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(_J,le,oe)(L)):L===null||gt(L)?(e.exit("htmlFlowData"),oe(L)):(e.consume(L),$)}function oe(L){return e.check(TJ,fe,le)(L)}function fe(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ce}function ce(L){return L===null||gt(L)?oe(L):(e.enter("htmlFlowData"),$(L))}function De(L){return L===45?(e.consume(L),D):$(L)}function H(L){return L===47?(e.consume(L),o="",W):$(L)}function W(L){if(L===62){const ie=o.toLowerCase();return gk.includes(ie)?(e.consume(L),pe):$(L)}return ti(L)&&o.length<8?(e.consume(L),o+=String.fromCharCode(L),W):$(L)}function se(L){return L===93?(e.consume(L),D):$(L)}function D(L){return L===62?(e.consume(L),pe):L===45&&i===2?(e.consume(L),D):$(L)}function pe(L){return L===null||gt(L)?(e.exit("htmlFlowData"),le(L)):(e.consume(L),pe)}function le(L){return e.exit("htmlFlow"),t(L)}}function AJ(e,t,n){const r=this;return i;function i(o){return gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function CJ(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(jp,t,n)}}const kJ={name:"htmlText",tokenize:xJ};function xJ(e,t,n){const r=this;let i,a,o;return s;function s(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),u}function u(D){return D===33?(e.consume(D),c):D===47?(e.consume(D),R):D===63?(e.consume(D),w):ti(D)?(e.consume(D),B):n(D)}function c(D){return D===45?(e.consume(D),p):D===91?(e.consume(D),a=0,b):ti(D)?(e.consume(D),v):n(D)}function p(D){return D===45?(e.consume(D),g):n(D)}function f(D){return D===null?n(D):D===45?(e.consume(D),m):gt(D)?(o=f,H(D)):(e.consume(D),f)}function m(D){return D===45?(e.consume(D),g):f(D)}function g(D){return D===62?De(D):D===45?m(D):f(D)}function b(D){const pe="CDATA[";return D===pe.charCodeAt(a++)?(e.consume(D),a===pe.length?y:b):n(D)}function y(D){return D===null?n(D):D===93?(e.consume(D),T):gt(D)?(o=y,H(D)):(e.consume(D),y)}function T(D){return D===93?(e.consume(D),E):y(D)}function E(D){return D===62?De(D):D===93?(e.consume(D),E):y(D)}function v(D){return D===null||D===62?De(D):gt(D)?(o=v,H(D)):(e.consume(D),v)}function w(D){return D===null?n(D):D===63?(e.consume(D),A):gt(D)?(o=w,H(D)):(e.consume(D),w)}function A(D){return D===62?De(D):w(D)}function R(D){return ti(D)?(e.consume(D),k):n(D)}function k(D){return D===45||jr(D)?(e.consume(D),k):N(D)}function N(D){return gt(D)?(o=N,H(D)):Dt(D)?(e.consume(D),N):De(D)}function B(D){return D===45||jr(D)?(e.consume(D),B):D===47||D===62||gn(D)?q(D):n(D)}function q(D){return D===47?(e.consume(D),De):D===58||D===95||ti(D)?(e.consume(D),P):gt(D)?(o=q,H(D)):Dt(D)?(e.consume(D),q):De(D)}function P(D){return D===45||D===46||D===58||D===95||jr(D)?(e.consume(D),P):Q(D)}function Q(D){return D===61?(e.consume(D),$):gt(D)?(o=Q,H(D)):Dt(D)?(e.consume(D),Q):q(D)}function $(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),i=D,oe):gt(D)?(o=$,H(D)):Dt(D)?(e.consume(D),$):(e.consume(D),fe)}function oe(D){return D===i?(e.consume(D),i=void 0,ce):D===null?n(D):gt(D)?(o=oe,H(D)):(e.consume(D),oe)}function fe(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||gn(D)?q(D):(e.consume(D),fe)}function ce(D){return D===47||D===62||gn(D)?q(D):n(D)}function De(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function H(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),W}function W(D){return Dt(D)?Gt(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):se(D)}function se(D){return e.enter("htmlTextData"),o(D)}}const A9={name:"labelEnd",tokenize:LJ,resolveTo:DJ,resolveAll:OJ},IJ={tokenize:MJ},RJ={tokenize:FJ},NJ={tokenize:PJ};function OJ(e){let t=-1;for(;++t=3&&(c===null||gt(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),Dt(c)?Gt(e,s,"whitespace")(c):s(c))}}const pi={name:"list",tokenize:WJ,continuation:{tokenize:qJ},exit:YJ},GJ={tokenize:XJ,partial:!0},VJ={tokenize:KJ,partial:!0};function WJ(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:ny(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(xh,n,c)(g):c(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return ny(g)&&++o<10?(e.consume(g),u):(!r.interrupt||o<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(jp,r.interrupt?n:p,e.attempt(GJ,m,f))}function p(g){return r.containerState.initialBlankLine=!0,a++,m(g)}function f(g){return Dt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function qJ(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(jp,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Gt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Dt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(VJ,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Gt(e,e.attempt(pi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function KJ(e,t,n){const r=this;return Gt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function YJ(e){e.exit(this.containerState.type)}function XJ(e,t,n){const r=this;return Gt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!Dt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const mk={name:"setextUnderline",tokenize:QJ,resolveTo:ZJ};function ZJ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function QJ(e,t,n){const r=this;let i;return a;function a(c){let p=r.events.length,f;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){f=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Dt(c)?Gt(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||gt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const JJ={tokenize:eee};function eee(e){const t=this,n=e.attempt(jp,r,e.attempt(this.parser.constructs.flowInitial,i,Gt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aJ,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tee={resolveAll:jL()},nee=HL("string"),ree=HL("text");function HL(e){return{tokenize:t,resolveAll:jL(e==="text"?iee:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(p){return c(p)?a(p):s(p)}function s(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return c(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function c(p){if(p===null)return!0;const f=i[p];let m=-1;if(f)for(;++m-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function see(e,t){let n=-1;const r=[];let i;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const RQ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function RD(e){return e.replace(RQ,NQ)}function NQ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return ID(n.slice(a?2:1),a?16:10)}return sp(n)||e}const ND={}.hasOwnProperty,OQ=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),DQ(n)(IQ(xQ(n).document().write(kQ()(e,t,!0))))};function DQ(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ke),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(pt),blockQuote:s(Xe),characterEscape:Q,characterReference:Q,codeFenced:s(Ve),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(Ve,u),codeText:s(dt,u),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(ot),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(Ge),hardBreakEscape:s(U),hardBreakTrailing:s(U),htmlFlow:s(ie,u),htmlFlowData:Q,htmlText:s(ie,u),htmlTextData:Q,image:s(pe),label:u,link:s(ke),listItem:s(Se),listItemValue:E,listOrdered:s(ve,g),listUnordered:s(ve),paragraph:s(Me),reference:Te,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(pt),strong:s(ze),thematicBreak:s(jt)},exit:{atxHeading:p(),atxHeadingSequence:R,autolink:p(),autolinkEmail:Re,autolinkProtocol:Le,blockQuote:p(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:ne,codeFenced:p(y),codeFencedFence:v,codeFencedFenceInfo:b,codeFencedFenceMeta:T,codeFlowValue:z,codeIndented:p(w),codeText:p(Z),codeTextData:z,data:z,definition:p(),definitionDestinationString:k,definitionLabelString:A,definitionTitleString:D,emphasis:p(),hardBreakEscape:p(he),hardBreakTrailing:p(he),htmlFlow:p(de),htmlFlowData:z,htmlText:p(fe),htmlTextData:z,image:p(ce),label:me,labelText:N,lineEnding:le,link:p(V),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:K,resourceDestinationString:oe,resourceTitleString:O,resource:re,setextHeading:p(P),setextHeadingLineSequence:W,setextHeadingText:B,strong:p(),thematicBreak:p()}};OD(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let ye={type:"root",children:[]};const We={stack:[ye],tokenStack:[],config:t,enter:c,exit:f,buffer:u,resume:m,setData:a,getData:o},at=[];let Qe=-1;for(;++Qe0){const Y=We.tokenStack[We.tokenStack.length-1];(Y[1]||vC).call(We,void 0,Y[0])}for(ye.position={start:As(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:As(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Qe=-1;++Qe{const r=this.data("settings");return OQ(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function FQ(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function PQ(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` -`}]}function BQ(e,t){const n=t.value?t.value+` -`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function UQ(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $Q(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oc(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function DD(e,t){const n=String(t.identifier).toUpperCase(),r=oc(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=i+1);const o=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function zQ(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},DD(e,{type:"footnoteReference",identifier:i,position:t.position})}function HQ(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jQ(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function LD(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function GQ(e,t){const n=e.definition(t.identifier);if(!n)return LD(e,t);const r={src:oc(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function VQ(e,t){const n={src:oc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function WQ(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function qQ(e,t){const n=e.definition(t.identifier);if(!n)return LD(e,t);const r={href:oc(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function KQ(e,t){const n={href:oc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function YQ(e,t,n){const r=e.all(t),i=n?XQ(n):MD(t),a={},o=[];if(typeof t.checked=="boolean"){const p=r[0];let f;p&&p.type==="element"&&p.tagName==="p"?f=p:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const _ee=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function VL(e){return e.replace(_ee,Tee)}function Tee(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return GL(n.slice(a?2:1),a?16:10)}return Tp(n)||e}const WL={}.hasOwnProperty,See=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),wee(n)(vee(yee(n).document().write(Eee()(e,t,!0))))};function wee(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xe),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(pt),blockQuote:s(Ze),characterEscape:Q,characterReference:Q,codeFenced:s(We),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(We,u),codeText:s(dt,u),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(ot),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(je),hardBreakEscape:s(U),hardBreakTrailing:s(U),htmlFlow:s(re,u),htmlFlowData:Q,htmlText:s(re,u),htmlTextData:Q,image:s(de),label:u,link:s(xe),listItem:s(Te),listItemValue:b,listOrdered:s(ye,g),listUnordered:s(ye),paragraph:s(Le),reference:Se,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(pt),strong:s(ze),thematicBreak:s(jt)},exit:{atxHeading:p(),atxHeadingSequence:N,autolink:p(),autolinkEmail:Re,autolinkProtocol:Me,blockQuote:p(),characterEscapeValue:$,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:te,codeFenced:p(v),codeFencedFence:E,codeFencedFenceInfo:y,codeFencedFenceMeta:T,codeFlowValue:$,codeIndented:p(w),codeText:p(H),codeTextData:$,data:$,definition:p(),definitionDestinationString:k,definitionLabelString:A,definitionTitleString:R,emphasis:p(),hardBreakEscape:p(fe),hardBreakTrailing:p(fe),htmlFlow:p(ce),htmlFlowData:$,htmlText:p(De),htmlTextData:$,image:p(se),label:pe,labelText:D,lineEnding:oe,link:p(W),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:X,resourceDestinationString:le,resourceTitleString:L,resource:ie,setextHeading:p(P),setextHeadingLineSequence:q,setextHeadingText:B,strong:p(),thematicBreak:p()}};qL(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let Ee={type:"root",children:[]};const qe={stack:[Ee],tokenStack:[],config:t,enter:c,exit:f,buffer:u,resume:m,setData:a,getData:o},j=[];let me=-1;for(;++me0){const Ve=qe.tokenStack[qe.tokenStack.length-1];(Ve[1]||yk).call(qe,void 0,Ve[0])}for(Ee.position={start:Ds(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Ds(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me{const r=this.data("settings");return See(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function kee(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function xee(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` +`}]}function Iee(e,t){const n=t.value?t.value+` +`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Ree(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nee(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bc(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function KL(e,t){const n=String(t.identifier).toUpperCase(),r=bc(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=i+1);const o=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function Oee(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},KL(e,{type:"footnoteReference",identifier:i,position:t.position})}function Dee(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lee(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function YL(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Mee(e,t){const n=e.definition(t.identifier);if(!n)return YL(e,t);const r={src:bc(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function Fee(e,t){const n={src:bc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Pee(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Bee(e,t){const n=e.definition(t.identifier);if(!n)return YL(e,t);const r={href:bc(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Uee(e,t){const n={href:bc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $ee(e,t,n){const r=e.all(t),i=n?zee(n):XL(t),a={},o=[];if(typeof t.checked=="boolean"){const p=r[0];let f;p&&p.type==="element"&&p.tagName==="p"?f=p:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function ZQ(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i-1?r.offset:null}}}function nJ(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Ip(t.children[1]),u=A2(t.children[t.children.length-1]);s.line&&u.line&&(o.position={start:s,end:u}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function rJ(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let u=-1;const c=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(TC(t.slice(i),i>0,!1)),a.join("")}function TC(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===yC||a===_C;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===yC||a===_C;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function oJ(e,t){const n={type:"text",value:aJ(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function sJ(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const lJ={blockquote:FQ,break:PQ,code:BQ,delete:UQ,emphasis:$Q,footnoteReference:DD,footnote:zQ,heading:HQ,html:jQ,imageReference:GQ,image:VQ,inlineCode:WQ,linkReference:qQ,link:KQ,listItem:YQ,list:ZQ,paragraph:QQ,root:JQ,strong:eJ,table:nJ,tableCell:iJ,tableRow:rJ,text:oJ,thematicBreak:sJ,toml:d0,yaml:d0,definition:d0,footnoteDefinition:d0};function d0(){return null}const C2=function(e){if(e==null)return pJ;if(typeof e=="string")return dJ(e);if(typeof e=="object")return Array.isArray(e)?uJ(e):cJ(e);if(typeof e=="function")return x2(e);throw new Error("Expected function, string, or object as test")};function uJ(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let m=[],g,E,b;if((!t||i(s,u,c[c.length-1]||null))&&(m=hJ(n(s,c)),m[0]===Ab))return m;if(s.children&&m[0]!==Cd)for(E=(r?s.children.length:-1)+a,b=c.concat(s);E>-1&&E{const i=wC(r.identifier);i&&!SC.call(t,i)&&(t[i]=r)}),n;function n(r){const i=wC(r);return i&&SC.call(t,i)?t[i]:null}}function wC(e){return String(e||"").toUpperCase()}const ag={}.hasOwnProperty;function bJ(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteLabelTagName=n.footnoteLabelTagName||"h2",o.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,o.handlers={...lJ,...n.handlers},o.definition=mJ(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=EJ,o.applyData=vJ,o.one=s,o.all=u,o.wrap=_J,o.augment=a,Ui(e,"footnoteDefinition",c=>{const p=String(c.identifier).toUpperCase();ag.call(i,p)||(i[p]=c)}),o;function a(c,p){if(c&&"data"in c&&c.data){const f=c.data;f.hName&&(p.type!=="element"&&(p={type:"element",tagName:"",properties:{},children:[]}),p.tagName=f.hName),p.type==="element"&&f.hProperties&&(p.properties={...p.properties,...f.hProperties}),"children"in p&&p.children&&f.hChildren&&(p.children=f.hChildren)}if(c){const f="type"in c?c:{position:c};gJ(f)||(p.position={start:Ip(f),end:A2(f)})}return p}function o(c,p,f,m){return Array.isArray(f)&&(m=f,f={}),a(c,{type:"element",tagName:p,properties:f||{},children:m||[]})}function s(c,p){return BD(o,c,p)}function u(c){return PE(o,c)}}function EJ(e,t){e.position&&(t.position=tJ(e))}function vJ(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&a&&(n.properties={...n.properties,...a}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function BD(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return ag.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:PE(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):yJ(e,t)}function PE(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i1}function Hee(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i-1?r.offset:null}}}function qee(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Gp(t.children[1]),u=Zm(t.children[t.children.length-1]);s.line&&u.line&&(o.position={start:s,end:u}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Kee(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let u=-1;const c=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(_k(t.slice(i),i>0,!1)),a.join("")}function _k(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Ek||a===vk;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Ek||a===vk;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Zee(e,t){const n={type:"text",value:Xee(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Qee(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Jee={blockquote:kee,break:xee,code:Iee,delete:Ree,emphasis:Nee,footnoteReference:KL,footnote:Oee,heading:Dee,html:Lee,imageReference:Mee,image:Fee,inlineCode:Pee,linkReference:Bee,link:Uee,listItem:$ee,list:Hee,paragraph:jee,root:Gee,strong:Vee,table:qee,tableCell:Yee,tableRow:Kee,text:Zee,thematicBreak:Qee,toml:C0,yaml:C0,definition:C0,footnoteDefinition:C0};function C0(){return null}const Qm=function(e){if(e==null)return rte;if(typeof e=="string")return nte(e);if(typeof e=="object")return Array.isArray(e)?ete(e):tte(e);if(typeof e=="function")return Jm(e);throw new Error("Expected function, string, or object as test")};function ete(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let m=[],g,b,y;if((!t||i(s,u,c[c.length-1]||null))&&(m=ate(n(s,c)),m[0]===iy))return m;if(s.children&&m[0]!==$d)for(b=(r?s.children.length:-1)+a,y=c.concat(s);b>-1&&b{const i=Sk(r.identifier);i&&!Tk.call(t,i)&&(t[i]=r)}),n;function n(r){const i=Sk(r);return i&&Tk.call(t,i)?t[i]:null}}function Sk(e){return String(e||"").toUpperCase()}const Og={}.hasOwnProperty;function lte(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteLabelTagName=n.footnoteLabelTagName||"h2",o.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,o.handlers={...Jee,...n.handlers},o.definition=ste(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=ute,o.applyData=cte,o.one=s,o.all=u,o.wrap=pte,o.augment=a,Hi(e,"footnoteDefinition",c=>{const p=String(c.identifier).toUpperCase();Og.call(i,p)||(i[p]=c)}),o;function a(c,p){if(c&&"data"in c&&c.data){const f=c.data;f.hName&&(p.type!=="element"&&(p={type:"element",tagName:"",properties:{},children:[]}),p.tagName=f.hName),p.type==="element"&&f.hProperties&&(p.properties={...p.properties,...f.hProperties}),"children"in p&&p.children&&f.hChildren&&(p.children=f.hChildren)}if(c){const f="type"in c?c:{position:c};ote(f)||(p.position={start:Gp(f),end:Zm(f)})}return p}function o(c,p,f,m){return Array.isArray(f)&&(m=f,f={}),a(c,{type:"element",tagName:p,properties:f||{},children:m||[]})}function s(c,p){return JL(o,c,p)}function u(c){return C9(o,c)}}function ute(e,t){e.position&&(t.position=Wee(e))}function cte(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&a&&(n.properties={...n.properties,...a}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function JL(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Og.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:C9(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):dte(e,t)}function C9(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i0&&n.push({type:"text",value:` -`}),n}function TJ(e){const t=[];let n=-1;for(;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&f.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(f)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const f=c.children[c.children.length-1];f&&f.type==="text"?f.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...u)}else i.push(...u);const p={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,p),t.push(p)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` +`}),n}function fte(e){const t=[];let n=-1;for(;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&f.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(f)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const f=c.children[c.children.length-1];f&&f.type==="text"?f.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...u)}else i.push(...u);const p={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,p),t.push(p)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:` -`}]}}function UD(e,t){const n=bJ(e,t),r=n.one(e,null),i=TJ(n);return i&&r.children.push({type:"text",value:` -`},i),Array.isArray(r)?{type:"root",children:r}:r}const SJ=function(e,t){return e&&"run"in e?AJ(e,t):CJ(e||t)},wJ=SJ;function AJ(e,t){return(n,r,i)=>{e.run(UD(n,t),r,a=>{i(a)})}}function CJ(e){return t=>UD(t,e)}var $D={exports:{}},xJ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kJ=xJ,IJ=kJ;function zD(){}function HD(){}HD.resetWarningCache=zD;var RJ=function(){function e(r,i,a,o,s,u){if(u!==IJ){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:HD,resetWarningCache:zD};return n.PropTypes=n,n};$D.exports=RJ();var NJ=$D.exports;const Ee=Hi(NJ);class Rp{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Rp.prototype.property={};Rp.prototype.normal={};Rp.prototype.space=null;function jD(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&FJ.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(CC,UJ);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!CC.test(a)){let o=a.replace(PJ,BJ);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=BE}return new i(r,t)}function BJ(e){return"-"+e.toLowerCase()}function UJ(e){return e.charAt(1).toUpperCase()}const xC={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"},Tu=jD([WD,VD,YD,XD,LJ],"html"),yl=jD([WD,VD,YD,XD,MJ],"svg");function $J(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Ui(t,"element",(n,r,i)=>{const a=i;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(n,r,a)),o&&typeof r=="number")return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}function ZD(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function og(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function UE(e){return e.join(" ").trim()}function lp(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function $E(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var zE={exports:{}},kC=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zJ=/\n/g,HJ=/^\s*/,jJ=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,GJ=/^:\s*/,VJ=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,WJ=/^[;\s]*/,qJ=/^\s+|\s+$/g,KJ=` -`,IC="/",RC="*",Kl="",YJ="comment",XJ="declaration",ZJ=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(E){var b=E.match(zJ);b&&(n+=b.length);var T=E.lastIndexOf(KJ);r=~T?E.length-T:r+E.length}function a(){var E={line:n,column:r};return function(b){return b.position=new o(E),c(),b}}function o(E){this.start=E,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(E){var b=new Error(t.source+":"+n+":"+r+": "+E);if(b.reason=E,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function u(E){var b=E.exec(e);if(b){var T=b[0];return i(T),e=e.slice(T.length),b}}function c(){u(HJ)}function p(E){var b;for(E=E||[];b=f();)b!==!1&&E.push(b);return E}function f(){var E=a();if(!(IC!=e.charAt(0)||RC!=e.charAt(1))){for(var b=2;Kl!=e.charAt(b)&&(RC!=e.charAt(b)||IC!=e.charAt(b+1));)++b;if(b+=2,Kl===e.charAt(b-1))return s("End of comment missing");var T=e.slice(2,b-2);return r+=2,i(T),e=e.slice(b),r+=2,E({type:YJ,comment:T})}}function m(){var E=a(),b=u(jJ);if(b){if(f(),!u(GJ))return s("property missing ':'");var T=u(VJ),v=E({type:XJ,property:NC(b[0].replace(kC,Kl)),value:T?NC(T[0].replace(kC,Kl)):Kl});return u(WJ),v}}function g(){var E=[];p(E);for(var b;b=m();)b!==!1&&(E.push(b),p(E));return E}return c(),g()};function NC(e){return e?e.replace(qJ,Kl):Kl}var QJ=ZJ;function QD(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=QJ(e),a=typeof t=="function",o,s,u=0,c=i.length;u0?ut.createElement(g,u,f):ut.createElement(g,u)}function ree(e){let t=-1;for(;++t for more info)`),delete p0[a]}const t=RX().use(MQ).use(e.remarkPlugins||[]).use(wJ,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use($J,e),n=new hD;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=ut.createElement(ut.Fragment,{},JD({options:e,schema:Tu,listDepth:0},r));return e.className&&(i=ut.createElement("div",{className:e.className},i)),i}HE.propTypes={children:Ee.string,className:Ee.string,allowElement:Ee.func,allowedElements:Ee.arrayOf(Ee.string),disallowedElements:Ee.arrayOf(Ee.string),unwrapDisallowed:Ee.bool,remarkPlugins:Ee.arrayOf(Ee.oneOfType([Ee.object,Ee.func,Ee.arrayOf(Ee.oneOfType([Ee.bool,Ee.string,Ee.object,Ee.func,Ee.arrayOf(Ee.any)]))])),rehypePlugins:Ee.arrayOf(Ee.oneOfType([Ee.object,Ee.func,Ee.arrayOf(Ee.oneOfType([Ee.bool,Ee.string,Ee.object,Ee.func,Ee.arrayOf(Ee.any)]))])),sourcePos:Ee.bool,rawSourcePos:Ee.bool,skipHtml:Ee.bool,includeElementIndex:Ee.bool,transformLinkUri:Ee.oneOfType([Ee.func,Ee.bool]),linkTarget:Ee.oneOfType([Ee.func,Ee.string]),transformImageUri:Ee.func,components:Ee.object};const uee={tokenize:gee,partial:!0},eL={tokenize:mee,partial:!0},tL={tokenize:bee,partial:!0},nL={tokenize:Eee,partial:!0},cee={tokenize:vee,partial:!0},rL={tokenize:fee,previous:aL},iL={tokenize:hee,previous:oL},ss={tokenize:pee,previous:sL},_o={},dee={text:_o};let Ml=48;for(;Ml<123;)_o[Ml]=ss,Ml++,Ml===58?Ml=65:Ml===91&&(Ml=97);_o[43]=ss;_o[45]=ss;_o[46]=ss;_o[95]=ss;_o[72]=[ss,iL];_o[104]=[ss,iL];_o[87]=[ss,rL];_o[119]=[ss,rL];function pee(e,t,n){const r=this;let i,a;return o;function o(f){return!kb(f)||!sL.call(r,r.previous)||jE(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return kb(f)?(e.consume(f),s):f===64?(e.consume(f),u):n(f)}function u(f){return f===46?e.check(cee,p,c)(f):f===45||f===95||$r(f)?(a=!0,e.consume(f),u):p(f)}function c(f){return e.consume(f),i=!0,u}function p(f){return a&&i&&Qr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function fee(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!aL.call(r,r.previous)||jE(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(uee,e.attempt(eL,e.attempt(tL,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function hee(e,t,n){const r=this;let i="",a=!1;return o;function o(f){return(f===72||f===104)&&oL.call(r,r.previous)&&!jE(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(Qr(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(f),u}return n(f)}function u(f){return f===47?(e.consume(f),a?c:(a=!0,u)):n(f)}function c(f){return f===null||rg(f)||hn(f)||hu(f)||S2(f)?n(f):e.attempt(eL,e.attempt(tL,p),n)(f)}function p(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function gee(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function mee(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(nL,u,s)(c):c===null||hn(c)||hu(c)||c!==45&&S2(c)?u(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function u(c){return i||r||!a?n(c):t(c)}}function bee(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const yee={tokenize:kee,partial:!0};function _ee(){return{document:{91:{tokenize:Aee,continuation:{tokenize:Cee},exit:xee}},text:{91:{tokenize:wee},93:{add:"after",tokenize:Tee,resolveTo:See}}}}function Tee(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const c=Ha(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function See(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function wee(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(a>999||f===93&&!o||f===null||f===91||hn(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Ha(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return hn(f)||(o=!0),a++,e.consume(f),f===92?p:c}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function Aee(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return u;function u(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(E)}function p(E){if(o>999||E===93&&!s||E===null||E===91||hn(E))return n(E);if(E===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Ha(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return hn(E)||(s=!0),o++,e.consume(E),E===92?f:p}function f(E){return E===91||E===92||E===93?(e.consume(E),o++,p):p(E)}function m(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),i.includes(a)||i.push(a),Gt(e,g,"gfmFootnoteDefinitionWhitespace")):n(E)}function g(E){return t(E)}}function Cee(e,t,n){return e.check(kp,t,e.attempt(yee,t,n))}function xee(e){e.exit("gfmFootnoteDefinition")}function kee(e,t,n){const r=this;return Gt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function Iee(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u1?u(E):(o.consume(E),f++,g);if(f<2&&!n)return u(E);const T=o.exit("strikethroughSequenceTemporary"),v=ig(E);return T._open=!v||v===2&&!!b,T._close=!b||b===2&&!!v,s(E)}}}class Ree{constructor(){this.map=[]}add(t,n,r){Nee(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Nee(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const he=r.events[Q][1].type;if(he==="lineEnding"||he==="linePrefix")Q--;else break}const z=Q>-1?r.events[Q][1].type:null,le=z==="tableHead"||z==="tableRow"?k:u;return le===k&&r.parser.lazy[r.now().line]?n(P):le(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(o=!0,a+=1),p(P)}function p(P){return P===null?n(P):gt(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),g):n(P):Dt(P)?Gt(e,p,"whitespace")(P):(a+=1,o&&(o=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||hn(P)?(e.exit("data"),p(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function g(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),o=!1,Dt(P)?Gt(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):E(P))}function E(P){return P===45||P===58?T(P):P===124?(o=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),b):D(P)}function b(P){return Dt(P)?Gt(e,T,"whitespace")(P):T(P)}function T(P){return P===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),v):P===45?(a+=1,v(P)):P===null||gt(P)?A(P):D(P)}function v(P){return P===45?(e.enter("tableDelimiterFiller"),y(P)):D(P)}function y(P){return P===45?(e.consume(P),y):P===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(P))}function w(P){return Dt(P)?Gt(e,A,"whitespace")(P):A(P)}function A(P){return P===124?E(P):P===null||gt(P)?!o||i!==a?D(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):D(P)}function D(P){return n(P)}function k(P){return e.enter("tableRow"),R(P)}function R(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),R):P===null||gt(P)?(e.exit("tableRow"),t(P)):Dt(P)?Gt(e,R,"whitespace")(P):(e.enter("data"),B(P))}function B(P){return P===null||P===124||hn(P)?(e.exit("data"),R(P)):(e.consume(P),P===92?W:B)}function W(P){return P===92||P===124?(e.consume(P),B):B(P)}}function Mee(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,c,p,f;const m=new Ree;for(;++nn[2]+1){const E=n[2]+1,b=n[3]-n[2]-1;e.add(E,b,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},e1(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function DC(e,t,n,r,i){const a=[],o=e1(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function e1(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Fee={tokenize:Bee},Pee={text:{91:Fee}};function Bee(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return hn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return gt(u)?t(u):Dt(u)?e.check({tokenize:Uee},t,n)(u):n(u)}}function Uee(e,t,n){return Gt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function $ee(e){return vD([dee,_ee(),Iee(e),Dee,Pee])}function LC(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function zee(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Hee={}.hasOwnProperty,jee=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=C2(i.ignore||[]),s=Gee(a);let u=-1;for(;++u0?{type:"text",value:R}:void 0),R!==!1&&(T!==D&&w.push({type:"text",value:f.value.slice(T,D)}),Array.isArray(R)?w.push(...R):R&&w.push(R),T=D+A[0].length,y=!0),!E.global)break;A=E.exec(f.value)}return y?(Te}const f3="phrasing",h3=["autolink","link","image","label"],Vee={transforms:[Qee],enter:{literalAutolink:qee,literalAutolinkEmail:g3,literalAutolinkHttp:g3,literalAutolinkWww:g3},exit:{literalAutolink:Zee,literalAutolinkEmail:Xee,literalAutolinkHttp:Kee,literalAutolinkWww:Yee}},Wee={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:f3,notInConstruct:h3},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:f3,notInConstruct:h3},{character:":",before:"[ps]",after:"\\/",inConstruct:f3,notInConstruct:h3}]};function qee(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function g3(e){this.config.enter.autolinkProtocol.call(this,e)}function Kee(e){this.config.exit.autolinkProtocol.call(this,e)}function Yee(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function Xee(e){this.config.exit.autolinkEmail.call(this,e)}function Zee(e){this.exit(e)}function Qee(e){jee(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Jee],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,ete]],{ignore:["link","linkReference"]})}function Jee(e,t,n,r,i){let a="";if(!lL(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!tte(n)))return!1;const o=nte(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function ete(e,t,n,r){return!lL(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function tte(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function nte(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=LC(e,"(");let a=LC(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function lL(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||hu(n)||S2(n))&&(!t||n!==47)}function uL(e){return e.label||!e.identifier?e.label||"":RD(e.identifier)}function rte(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s{e.run(eM(n,t),r,a=>{i(a)})}}function bte(e){return t=>eM(t,e)}var tM={exports:{}},yte="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ete=yte,vte=Ete;function nM(){}function rM(){}rM.resetWarningCache=nM;var _te=function(){function e(r,i,a,o,s,u){if(u!==vte){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rM,resetWarningCache:nM};return n.PropTypes=n,n};tM.exports=_te();var Tte=tM.exports;const be=Vi(Tte);class Vp{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Vp.prototype.property={};Vp.prototype.normal={};Vp.prototype.space=null;function iM(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&kte.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ak,Rte);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ak.test(a)){let o=a.replace(xte,Ite);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=k9}return new i(r,t)}function Ite(e){return"-"+e.toLowerCase()}function Rte(e){return e.charAt(1).toUpperCase()}const Ck={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"},Iu=iM([sM,oM,cM,dM,Ate],"html"),Cl=iM([sM,oM,cM,dM,Cte],"svg");function Nte(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Hi(t,"element",(n,r,i)=>{const a=i;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(n,r,a)),o&&typeof r=="number")return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}function pM(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function Dg(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function x9(e){return e.join(" ").trim()}function Sp(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function I9(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var R9={exports:{}},kk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ote=/\n/g,Dte=/^\s*/,Lte=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Mte=/^:\s*/,Fte=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Pte=/^[;\s]*/,Bte=/^\s+|\s+$/g,Ute=` +`,xk="/",Ik="*",eu="",$te="comment",zte="declaration",Hte=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(b){var y=b.match(Ote);y&&(n+=y.length);var T=b.lastIndexOf(Ute);r=~T?b.length-T:r+b.length}function a(){var b={line:n,column:r};return function(y){return y.position=new o(b),c(),y}}function o(b){this.start=b,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(b){var y=new Error(t.source+":"+n+":"+r+": "+b);if(y.reason=b,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function u(b){var y=b.exec(e);if(y){var T=y[0];return i(T),e=e.slice(T.length),y}}function c(){u(Dte)}function p(b){var y;for(b=b||[];y=f();)y!==!1&&b.push(y);return b}function f(){var b=a();if(!(xk!=e.charAt(0)||Ik!=e.charAt(1))){for(var y=2;eu!=e.charAt(y)&&(Ik!=e.charAt(y)||xk!=e.charAt(y+1));)++y;if(y+=2,eu===e.charAt(y-1))return s("End of comment missing");var T=e.slice(2,y-2);return r+=2,i(T),e=e.slice(y),r+=2,b({type:$te,comment:T})}}function m(){var b=a(),y=u(Lte);if(y){if(f(),!u(Mte))return s("property missing ':'");var T=u(Fte),E=b({type:zte,property:Rk(y[0].replace(kk,eu)),value:T?Rk(T[0].replace(kk,eu)):eu});return u(Pte),E}}function g(){var b=[];p(b);for(var y;y=m();)y!==!1&&(b.push(y),p(b));return b}return c(),g()};function Rk(e){return e?e.replace(Bte,eu):eu}var jte=Hte;function fM(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=jte(e),a=typeof t=="function",o,s,u=0,c=i.length;u0?ut.createElement(g,u,f):ut.createElement(g,u)}function Kte(e){let t=-1;for(;++t for more info)`),delete k0[a]}const t=_Q().use(Cee).use(e.remarkPlugins||[]).use(gte,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Nte,e),n=new IL;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=ut.createElement(ut.Fragment,{},hM({options:e,schema:Iu,listDepth:0},r));return e.className&&(i=ut.createElement("div",{className:e.className},i)),i}N9.propTypes={children:be.string,className:be.string,allowElement:be.func,allowedElements:be.arrayOf(be.string),disallowedElements:be.arrayOf(be.string),unwrapDisallowed:be.bool,remarkPlugins:be.arrayOf(be.oneOfType([be.object,be.func,be.arrayOf(be.oneOfType([be.bool,be.string,be.object,be.func,be.arrayOf(be.any)]))])),rehypePlugins:be.arrayOf(be.oneOfType([be.object,be.func,be.arrayOf(be.oneOfType([be.bool,be.string,be.object,be.func,be.arrayOf(be.any)]))])),sourcePos:be.bool,rawSourcePos:be.bool,skipHtml:be.bool,includeElementIndex:be.bool,transformLinkUri:be.oneOfType([be.func,be.bool]),linkTarget:be.oneOfType([be.func,be.string]),transformImageUri:be.func,components:be.object};const ene={tokenize:one,partial:!0},gM={tokenize:sne,partial:!0},mM={tokenize:lne,partial:!0},bM={tokenize:une,partial:!0},tne={tokenize:cne,partial:!0},yM={tokenize:ine,previous:vM},EM={tokenize:ane,previous:_M},gs={tokenize:rne,previous:TM},xo={},nne={text:xo};let zl=48;for(;zl<123;)xo[zl]=gs,zl++,zl===58?zl=65:zl===91&&(zl=97);xo[43]=gs;xo[45]=gs;xo[46]=gs;xo[95]=gs;xo[72]=[gs,EM];xo[104]=[gs,EM];xo[87]=[gs,yM];xo[119]=[gs,yM];function rne(e,t,n){const r=this;let i,a;return o;function o(f){return!sy(f)||!TM.call(r,r.previous)||O9(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return sy(f)?(e.consume(f),s):f===64?(e.consume(f),u):n(f)}function u(f){return f===46?e.check(tne,p,c)(f):f===45||f===95||jr(f)?(a=!0,e.consume(f),u):p(f)}function c(f){return e.consume(f),i=!0,u}function p(f){return a&&i&&ti(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function ine(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!vM.call(r,r.previous)||O9(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ene,e.attempt(gM,e.attempt(mM,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function ane(e,t,n){const r=this;let i="",a=!1;return o;function o(f){return(f===72||f===104)&&_M.call(r,r.previous)&&!O9(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(ti(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(f),u}return n(f)}function u(f){return f===47?(e.consume(f),a?c:(a=!0,u)):n(f)}function c(f){return f===null||Rg(f)||gn(f)||_u(f)||Ym(f)?n(f):e.attempt(gM,e.attempt(mM,p),n)(f)}function p(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function one(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function sne(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(bM,u,s)(c):c===null||gn(c)||_u(c)||c!==45&&Ym(c)?u(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function u(c){return i||r||!a?n(c):t(c)}}function lne(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const dne={tokenize:Ene,partial:!0};function pne(){return{document:{91:{tokenize:mne,continuation:{tokenize:bne},exit:yne}},text:{91:{tokenize:gne},93:{add:"after",tokenize:fne,resolveTo:hne}}}}function fne(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const c=Wa(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function hne(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function gne(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(a>999||f===93&&!o||f===null||f===91||gn(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Wa(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return gn(f)||(o=!0),a++,e.consume(f),f===92?p:c}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function mne(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(o>999||b===93&&!s||b===null||b===91||gn(b))return n(b);if(b===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=Wa(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return gn(b)||(s=!0),o++,e.consume(b),b===92?f:p}function f(b){return b===91||b===92||b===93?(e.consume(b),o++,p):p(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Gt(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function bne(e,t,n){return e.check(jp,t,e.attempt(dne,t,n))}function yne(e){e.exit("gfmFootnoteDefinition")}function Ene(e,t,n){const r=this;return Gt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function vne(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u1?u(b):(o.consume(b),f++,g);if(f<2&&!n)return u(b);const T=o.exit("strikethroughSequenceTemporary"),E=Ng(b);return T._open=!E||E===2&&!!y,T._close=!y||y===2&&!!E,s(b)}}}class _ne{constructor(){this.map=[]}add(t,n,r){Tne(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Tne(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const fe=r.events[Q][1].type;if(fe==="lineEnding"||fe==="linePrefix")Q--;else break}const $=Q>-1?r.events[Q][1].type:null,oe=$==="tableHead"||$==="tableRow"?k:u;return oe===k&&r.parser.lazy[r.now().line]?n(P):oe(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(o=!0,a+=1),p(P)}function p(P){return P===null?n(P):gt(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),g):n(P):Dt(P)?Gt(e,p,"whitespace")(P):(a+=1,o&&(o=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||gn(P)?(e.exit("data"),p(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function g(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),o=!1,Dt(P)?Gt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?T(P):P===124?(o=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),y):R(P)}function y(P){return Dt(P)?Gt(e,T,"whitespace")(P):T(P)}function T(P){return P===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),E):P===45?(a+=1,E(P)):P===null||gt(P)?A(P):R(P)}function E(P){return P===45?(e.enter("tableDelimiterFiller"),v(P)):R(P)}function v(P){return P===45?(e.consume(P),v):P===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(P))}function w(P){return Dt(P)?Gt(e,A,"whitespace")(P):A(P)}function A(P){return P===124?b(P):P===null||gt(P)?!o||i!==a?R(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):R(P)}function R(P){return n(P)}function k(P){return e.enter("tableRow"),N(P)}function N(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),N):P===null||gt(P)?(e.exit("tableRow"),t(P)):Dt(P)?Gt(e,N,"whitespace")(P):(e.enter("data"),B(P))}function B(P){return P===null||P===124||gn(P)?(e.exit("data"),N(P)):(e.consume(P),P===92?q:B)}function q(P){return P===92||P===124?(e.consume(P),B):B(P)}}function Cne(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,c,p,f;const m=new _ne;for(;++nn[2]+1){const b=n[2]+1,y=n[3]-n[2]-1;e.add(b,y,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},s1(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Ok(e,t,n,r,i){const a=[],o=s1(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function s1(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const kne={tokenize:Ine},xne={text:{91:kne}};function Ine(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return gn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return gt(u)?t(u):Dt(u)?e.check({tokenize:Rne},t,n)(u):n(u)}}function Rne(e,t,n){return Gt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Nne(e){return LL([nne,pne(),vne(e),wne,xne])}function Dk(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function One(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Dne={}.hasOwnProperty,Lne=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=Qm(i.ignore||[]),s=Mne(a);let u=-1;for(;++u0?{type:"text",value:N}:void 0),N!==!1&&(T!==R&&w.push({type:"text",value:f.value.slice(T,R)}),Array.isArray(N)?w.push(...N):N&&w.push(N),T=R+A[0].length,v=!0),!b.global)break;A=b.exec(f.value)}return v?(Te}const $3="phrasing",z3=["autolink","link","image","label"],Fne={transforms:[jne],enter:{literalAutolink:Bne,literalAutolinkEmail:H3,literalAutolinkHttp:H3,literalAutolinkWww:H3},exit:{literalAutolink:Hne,literalAutolinkEmail:zne,literalAutolinkHttp:Une,literalAutolinkWww:$ne}},Pne={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$3,notInConstruct:z3},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$3,notInConstruct:z3},{character:":",before:"[ps]",after:"\\/",inConstruct:$3,notInConstruct:z3}]};function Bne(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function H3(e){this.config.enter.autolinkProtocol.call(this,e)}function Une(e){this.config.exit.autolinkProtocol.call(this,e)}function $ne(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function zne(e){this.config.exit.autolinkEmail.call(this,e)}function Hne(e){this.exit(e)}function jne(e){Lne(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Gne],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Vne]],{ignore:["link","linkReference"]})}function Gne(e,t,n,r,i){let a="";if(!SM(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Wne(n)))return!1;const o=qne(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Vne(e,t,n,r){return!SM(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Wne(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function qne(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Dk(e,"(");let a=Dk(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function SM(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||_u(n)||Ym(n))&&(!t||n!==47)}function wM(e){return e.label||!e.identifier?e.label||"":VL(e.identifier)}function Kne(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s `}return` -`}const ate=/\r?\n|\r/g;function ote(e,t){const n=[];let r=0,i=0,a;for(;a=ate.exec(e);)o(e.slice(r,a.index)),n.push(a[0]),r=a.index+a[0].length,i++;return o(e.slice(r)),n.join("");function o(s){n.push(t(s,i,!s))}}function cL(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function ste(e,t){return PC(e,t.inConstruct,!0)&&!PC(e,t.notInConstruct,!1)}function PC(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r=c||p+10?" ":"")),i.shift(4),a+=i.move(ote(rte(e,n,i.current()),_te)),o(),a}function _te(e,t,n){return t===0?e:(n?"":" ")+e}function fL(e,t,n){const r=t.indexStack,i=e.children||[],a=[];let o=-1,s=n.before;r.push(-1);let u=t.createTracker(n);for(;++o0&&(s==="\r"||s===` -`)&&c.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",u=t.createTracker(n),u.move(a.join(""))),a.push(u.move(t.handle(c,e,t,{...u.current(),before:s,after:p}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}const Tte=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];hL.peek=xte;const Ste={canContainEols:["delete"],enter:{strikethrough:Ate},exit:{strikethrough:Cte}},wte={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Tte}],handlers:{delete:hL}};function Ate(e){this.enter({type:"delete",children:[]},e)}function Cte(e){this.exit(e)}function hL(e,t,n,r){const i=k2(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=fL(e,n,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function xte(){return"~"}gL.peek=kte;function gL(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++au&&(u=e[c].length);++Ts[T])&&(s[T]=y)}E.push(v)}a[c]=E,o[c]=b}let p=-1;if(typeof n=="object"&&"length"in n)for(;++ps[p]&&(s[p]=v),m[p]=v),f[p]=y}a.splice(1,0,f),o.splice(1,0,m),c=-1;const g=[];for(;++cn==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function Lte(e){this.exit(e),this.setData("inTable")}function Mte(e){this.enter({type:"tableRow",children:[]},e)}function m3(e){this.exit(e)}function $C(e){this.enter({type:"tableCell",children:[]},e)}function Fte(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Pte));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function Pte(e,t){return t==="|"?t:e}function Bte(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";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:o,tableRow:s,tableCell:u,inlineCode:m}};function o(g,E,b,T){return c(p(g,b,T),g.align)}function s(g,E,b,T){const v=f(g,b,T),y=c([v]);return y.slice(0,y.indexOf(` -`))}function u(g,E,b,T){const v=b.enter("tableCell"),y=b.enter("phrasing"),w=fL(g,b,{...T,before:a,after:a});return y(),v(),w}function c(g,E){return Ite(g,{align:E,alignDelimiters:r,padding:n,stringLength:i})}function p(g,E,b){const T=g.children;let v=-1;const y=[],w=E.enter("table");for(;++v-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),p);return u(),c;function p(f,m,g){return m?(g?"":" ".repeat(o))+f:(g?a:a+" ".repeat(o-a.length))+f}}const Hte={exit:{taskListCheckValueChecked:zC,taskListCheckValueUnchecked:zC,paragraph:Gte}},jte={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Vte}};function zC(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Gte(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a=55296&&e<=57343};Va.isSurrogatePair=function(e){return e>=56320&&e<=57343};Va.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Va.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Va.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||Yte.indexOf(e)>-1};var GE={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"};const t1=Va,b3=GE,Fl=t1.CODE_POINTS,Xte=65536;let Zte=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=Xte}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(t1.isSurrogatePair(n))return this.pos++,this._addGap(),t1.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Fl.EOF;return this._err(b3.surrogateInInputStream),t}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(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+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,Fl.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Fl.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Fl.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Fl.LINE_FEED):(this.skipNextNewLine=!1,t1.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Fl.LINE_FEED||t===Fl.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){t1.isControlCodePoint(t)?this._err(b3.controlCharacterInInputStream):t1.isUndefinedCodePoint(t)&&this._err(b3.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var Qte=Zte,Jte=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]);const ene=Qte,un=Va,Jl=Jte,Ae=GE,G=un.CODE_POINTS,Pl=un.CODE_POINT_SEQUENCES,tne={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},mL=1,bL=2,EL=4,nne=mL|bL|EL,Ot="DATA_STATE",n1="RCDATA_STATE",cd="RAWTEXT_STATE",Ho="SCRIPT_DATA_STATE",vL="PLAINTEXT_STATE",HC="TAG_OPEN_STATE",jC="END_TAG_OPEN_STATE",E3="TAG_NAME_STATE",GC="RCDATA_LESS_THAN_SIGN_STATE",VC="RCDATA_END_TAG_OPEN_STATE",WC="RCDATA_END_TAG_NAME_STATE",qC="RAWTEXT_LESS_THAN_SIGN_STATE",KC="RAWTEXT_END_TAG_OPEN_STATE",YC="RAWTEXT_END_TAG_NAME_STATE",XC="SCRIPT_DATA_LESS_THAN_SIGN_STATE",ZC="SCRIPT_DATA_END_TAG_OPEN_STATE",QC="SCRIPT_DATA_END_TAG_NAME_STATE",JC="SCRIPT_DATA_ESCAPE_START_STATE",ex="SCRIPT_DATA_ESCAPE_START_DASH_STATE",ka="SCRIPT_DATA_ESCAPED_STATE",tx="SCRIPT_DATA_ESCAPED_DASH_STATE",v3="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",h0="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",nx="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",rx="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",ix="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Lo="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",ax="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",ox="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",g0="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",sx="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",to="BEFORE_ATTRIBUTE_NAME_STATE",m0="ATTRIBUTE_NAME_STATE",y3="AFTER_ATTRIBUTE_NAME_STATE",_3="BEFORE_ATTRIBUTE_VALUE_STATE",b0="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",E0="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",v0="ATTRIBUTE_VALUE_UNQUOTED_STATE",T3="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Cs="SELF_CLOSING_START_TAG_STATE",jc="BOGUS_COMMENT_STATE",lx="MARKUP_DECLARATION_OPEN_STATE",ux="COMMENT_START_STATE",cx="COMMENT_START_DASH_STATE",xs="COMMENT_STATE",dx="COMMENT_LESS_THAN_SIGN_STATE",px="COMMENT_LESS_THAN_SIGN_BANG_STATE",fx="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",hx="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",y0="COMMENT_END_DASH_STATE",_0="COMMENT_END_STATE",gx="COMMENT_END_BANG_STATE",mx="DOCTYPE_STATE",T0="BEFORE_DOCTYPE_NAME_STATE",S0="DOCTYPE_NAME_STATE",bx="AFTER_DOCTYPE_NAME_STATE",Ex="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",vx="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",S3="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",w3="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",A3="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",yx="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",_x="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Tx="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Gc="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Vc="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",C3="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Mo="BOGUS_DOCTYPE_STATE",w0="CDATA_SECTION_STATE",Sx="CDATA_SECTION_BRACKET_STATE",wx="CDATA_SECTION_END_STATE",Wu="CHARACTER_REFERENCE_STATE",Ax="NAMED_CHARACTER_REFERENCE_STATE",Cx="AMBIGUOS_AMPERSAND_STATE",xx="NUMERIC_CHARACTER_REFERENCE_STATE",kx="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Ix="DECIMAL_CHARACTER_REFERENCE_START_STATE",Rx="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Nx="DECIMAL_CHARACTER_REFERENCE_STATE",Wc="NUMERIC_CHARACTER_REFERENCE_END_STATE";function vn(e){return e===G.SPACE||e===G.LINE_FEED||e===G.TABULATION||e===G.FORM_FEED}function xd(e){return e>=G.DIGIT_0&&e<=G.DIGIT_9}function Na(e){return e>=G.LATIN_CAPITAL_A&&e<=G.LATIN_CAPITAL_Z}function Gl(e){return e>=G.LATIN_SMALL_A&&e<=G.LATIN_SMALL_Z}function Ns(e){return Gl(e)||Na(e)}function x3(e){return Ns(e)||xd(e)}function yL(e){return e>=G.LATIN_CAPITAL_A&&e<=G.LATIN_CAPITAL_F}function _L(e){return e>=G.LATIN_SMALL_A&&e<=G.LATIN_SMALL_F}function rne(e){return xd(e)||yL(e)||_L(e)}function ch(e){return e+32}function Mn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function ks(e){return String.fromCharCode(ch(e))}function Ox(e,t){const n=Jl[++e];let r=++e,i=r+n-1;for(;r<=i;){const a=r+i>>>1,o=Jl[a];if(ot)i=a-1;else return Jl[a+n]}return-1}let _a=class ci{constructor(){this.preprocessor=new ene,this.tokenQueue=[],this.allowCDATA=!1,this.state=Ot,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(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:ci.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,a=!0;const o=t.length;let s=0,u=n,c;for(;s0&&(u=this._consume(),i++),u===G.EOF){a=!1;break}if(c=t[s],u!==c&&(r||u!==ch(c))){a=!1;break}}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Pl.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(Ae.endTagWithAttributes),t.selfClosing&&this._err(Ae.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=ci.CHARACTER_TOKEN;vn(t)?n=ci.WHITESPACE_CHARACTER_TOKEN:t===G.NULL&&(n=ci.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Mn(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const a=Jl[i],o=a")):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=ka,this._emitChars(un.REPLACEMENT_CHARACTER)):t===G.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ka,this._emitCodePoint(t))}[h0](t){t===G.SOLIDUS?(this.tempBuff=[],this.state=nx):Ns(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(ix)):(this._emitChars("<"),this._reconsumeInState(ka))}[nx](t){Ns(t)?(this._createEndTagToken(),this._reconsumeInState(rx)):(this._emitChars("")):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=Lo,this._emitChars(un.REPLACEMENT_CHARACTER)):t===G.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Lo,this._emitCodePoint(t))}[g0](t){t===G.SOLIDUS?(this.tempBuff=[],this.state=sx,this._emitChars("/")):this._reconsumeInState(Lo)}[sx](t){vn(t)||t===G.SOLIDUS||t===G.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?ka:Lo,this._emitCodePoint(t)):Na(t)?(this.tempBuff.push(ch(t)),this._emitCodePoint(t)):Gl(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Lo)}[to](t){vn(t)||(t===G.SOLIDUS||t===G.GREATER_THAN_SIGN||t===G.EOF?this._reconsumeInState(y3):t===G.EQUALS_SIGN?(this._err(Ae.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=m0):(this._createAttr(""),this._reconsumeInState(m0)))}[m0](t){vn(t)||t===G.SOLIDUS||t===G.GREATER_THAN_SIGN||t===G.EOF?(this._leaveAttrName(y3),this._unconsume()):t===G.EQUALS_SIGN?this._leaveAttrName(_3):Na(t)?this.currentAttr.name+=ks(t):t===G.QUOTATION_MARK||t===G.APOSTROPHE||t===G.LESS_THAN_SIGN?(this._err(Ae.unexpectedCharacterInAttributeName),this.currentAttr.name+=Mn(t)):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.name+=un.REPLACEMENT_CHARACTER):this.currentAttr.name+=Mn(t)}[y3](t){vn(t)||(t===G.SOLIDUS?this.state=Cs:t===G.EQUALS_SIGN?this.state=_3:t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(m0)))}[_3](t){vn(t)||(t===G.QUOTATION_MARK?this.state=b0:t===G.APOSTROPHE?this.state=E0:t===G.GREATER_THAN_SIGN?(this._err(Ae.missingAttributeValue),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(v0))}[b0](t){t===G.QUOTATION_MARK?this.state=T3:t===G.AMPERSAND?(this.returnState=b0,this.state=Wu):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Mn(t)}[E0](t){t===G.APOSTROPHE?this.state=T3:t===G.AMPERSAND?(this.returnState=E0,this.state=Wu):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Mn(t)}[v0](t){vn(t)?this._leaveAttrValue(to):t===G.AMPERSAND?(this.returnState=v0,this.state=Wu):t===G.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=un.REPLACEMENT_CHARACTER):t===G.QUOTATION_MARK||t===G.APOSTROPHE||t===G.LESS_THAN_SIGN||t===G.EQUALS_SIGN||t===G.GRAVE_ACCENT?(this._err(Ae.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Mn(t)):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Mn(t)}[T3](t){vn(t)?this._leaveAttrValue(to):t===G.SOLIDUS?this._leaveAttrValue(Cs):t===G.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBetweenAttributes),this._reconsumeInState(to))}[Cs](t){t===G.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.unexpectedSolidusInTag),this._reconsumeInState(to))}[jc](t){t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=un.REPLACEMENT_CHARACTER):this.currentToken.data+=Mn(t)}[lx](t){this._consumeSequenceIfMatch(Pl.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=ux):this._consumeSequenceIfMatch(Pl.DOCTYPE_STRING,t,!1)?this.state=mx:this._consumeSequenceIfMatch(Pl.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=w0:(this._err(Ae.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=jc):this._ensureHibernation()||(this._err(Ae.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(jc))}[ux](t){t===G.HYPHEN_MINUS?this.state=cx:t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(xs)}[cx](t){t===G.HYPHEN_MINUS?this.state=_0:t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(xs))}[xs](t){t===G.HYPHEN_MINUS?this.state=y0:t===G.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=dx):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Mn(t)}[dx](t){t===G.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=px):t===G.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(xs)}[px](t){t===G.HYPHEN_MINUS?this.state=fx:this._reconsumeInState(xs)}[fx](t){t===G.HYPHEN_MINUS?this.state=hx:this._reconsumeInState(y0)}[hx](t){t!==G.GREATER_THAN_SIGN&&t!==G.EOF&&this._err(Ae.nestedComment),this._reconsumeInState(_0)}[y0](t){t===G.HYPHEN_MINUS?this.state=_0:t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(xs))}[_0](t){t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EXCLAMATION_MARK?this.state=gx:t===G.HYPHEN_MINUS?this.currentToken.data+="-":t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(xs))}[gx](t){t===G.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=y0):t===G.GREATER_THAN_SIGN?(this._err(Ae.incorrectlyClosedComment),this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(xs))}[mx](t){vn(t)?this.state=T0:t===G.GREATER_THAN_SIGN?this._reconsumeInState(T0):t===G.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(T0))}[T0](t){vn(t)||(Na(t)?(this._createDoctypeToken(ks(t)),this.state=S0):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this._createDoctypeToken(un.REPLACEMENT_CHARACTER),this.state=S0):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Mn(t)),this.state=S0))}[S0](t){vn(t)?this.state=bx:t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):Na(t)?this.currentToken.name+=ks(t):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.name+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Mn(t)}[bx](t){vn(t)||(t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Pl.PUBLIC_STRING,t,!1)?this.state=Ex:this._consumeSequenceIfMatch(Pl.SYSTEM_STRING,t,!1)?this.state=_x:this._ensureHibernation()||(this._err(Ae.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[Ex](t){vn(t)?this.state=vx:t===G.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=S3):t===G.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=w3):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo))}[vx](t){vn(t)||(t===G.QUOTATION_MARK?(this.currentToken.publicId="",this.state=S3):t===G.APOSTROPHE?(this.currentToken.publicId="",this.state=w3):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[S3](t){t===G.QUOTATION_MARK?this.state=A3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Mn(t)}[w3](t){t===G.APOSTROPHE?this.state=A3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Mn(t)}[A3](t){vn(t)?this.state=yx:t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.QUOTATION_MARK?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Vc):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo))}[yx](t){vn(t)||(t===G.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===G.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this.currentToken.systemId="",this.state=Vc):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[_x](t){vn(t)?this.state=Tx:t===G.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Vc):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo))}[Tx](t){vn(t)||(t===G.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this.currentToken.systemId="",this.state=Vc):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[Gc](t){t===G.QUOTATION_MARK?this.state=C3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Mn(t)}[Vc](t){t===G.APOSTROPHE?this.state=C3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Mn(t)}[C3](t){vn(t)||(t===G.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Mo)))}[Mo](t){t===G.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===G.NULL?this._err(Ae.unexpectedNullCharacter):t===G.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[w0](t){t===G.RIGHT_SQUARE_BRACKET?this.state=Sx:t===G.EOF?(this._err(Ae.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Sx](t){t===G.RIGHT_SQUARE_BRACKET?this.state=wx:(this._emitChars("]"),this._reconsumeInState(w0))}[wx](t){t===G.GREATER_THAN_SIGN?this.state=Ot:t===G.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(w0))}[Wu](t){this.tempBuff=[G.AMPERSAND],t===G.NUMBER_SIGN?(this.tempBuff.push(t),this.state=xx):x3(t)?this._reconsumeInState(Ax):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ax](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[G.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===G.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Ae.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Cx}[Cx](t){x3(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Mn(t):this._emitCodePoint(t):(t===G.SEMICOLON&&this._err(Ae.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[xx](t){this.charRefCode=0,t===G.LATIN_SMALL_X||t===G.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=kx):this._reconsumeInState(Ix)}[kx](t){rne(t)?this._reconsumeInState(Rx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ix](t){xd(t)?this._reconsumeInState(Nx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Rx](t){yL(t)?this.charRefCode=this.charRefCode*16+t-55:_L(t)?this.charRefCode=this.charRefCode*16+t-87:xd(t)?this.charRefCode=this.charRefCode*16+t-48:t===G.SEMICOLON?this.state=Wc:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(Wc))}[Nx](t){xd(t)?this.charRefCode=this.charRefCode*10+t-48:t===G.SEMICOLON?this.state=Wc:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(Wc))}[Wc](){if(this.charRefCode===G.NULL)this._err(Ae.nullCharacterReference),this.charRefCode=G.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Ae.characterReferenceOutsideUnicodeRange),this.charRefCode=G.REPLACEMENT_CHARACTER;else if(un.isSurrogate(this.charRefCode))this._err(Ae.surrogateCharacterReference),this.charRefCode=G.REPLACEMENT_CHARACTER;else if(un.isUndefinedCodePoint(this.charRefCode))this._err(Ae.noncharacterCharacterReference);else if(un.isControlCodePoint(this.charRefCode)||this.charRefCode===G.CARRIAGE_RETURN){this._err(Ae.controlCharacterReference);const t=tne[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};_a.CHARACTER_TOKEN="CHARACTER_TOKEN";_a.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";_a.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";_a.START_TAG_TOKEN="START_TAG_TOKEN";_a.END_TAG_TOKEN="END_TAG_TOKEN";_a.COMMENT_TOKEN="COMMENT_TOKEN";_a.DOCTYPE_TOKEN="DOCTYPE_TOKEN";_a.EOF_TOKEN="EOF_TOKEN";_a.HIBERNATION_TOKEN="HIBERNATION_TOKEN";_a.MODE={DATA:Ot,RCDATA:n1,RAWTEXT:cd,SCRIPT_DATA:Ho,PLAINTEXT:vL};_a.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var I2=_a,Wa={};const k3=Wa.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/"};Wa.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Wa.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const $e=Wa.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"};Wa.SPECIAL_ELEMENTS={[k3.HTML]:{[$e.ADDRESS]:!0,[$e.APPLET]:!0,[$e.AREA]:!0,[$e.ARTICLE]:!0,[$e.ASIDE]:!0,[$e.BASE]:!0,[$e.BASEFONT]:!0,[$e.BGSOUND]:!0,[$e.BLOCKQUOTE]:!0,[$e.BODY]:!0,[$e.BR]:!0,[$e.BUTTON]:!0,[$e.CAPTION]:!0,[$e.CENTER]:!0,[$e.COL]:!0,[$e.COLGROUP]:!0,[$e.DD]:!0,[$e.DETAILS]:!0,[$e.DIR]:!0,[$e.DIV]:!0,[$e.DL]:!0,[$e.DT]:!0,[$e.EMBED]:!0,[$e.FIELDSET]:!0,[$e.FIGCAPTION]:!0,[$e.FIGURE]:!0,[$e.FOOTER]:!0,[$e.FORM]:!0,[$e.FRAME]:!0,[$e.FRAMESET]:!0,[$e.H1]:!0,[$e.H2]:!0,[$e.H3]:!0,[$e.H4]:!0,[$e.H5]:!0,[$e.H6]:!0,[$e.HEAD]:!0,[$e.HEADER]:!0,[$e.HGROUP]:!0,[$e.HR]:!0,[$e.HTML]:!0,[$e.IFRAME]:!0,[$e.IMG]:!0,[$e.INPUT]:!0,[$e.LI]:!0,[$e.LINK]:!0,[$e.LISTING]:!0,[$e.MAIN]:!0,[$e.MARQUEE]:!0,[$e.MENU]:!0,[$e.META]:!0,[$e.NAV]:!0,[$e.NOEMBED]:!0,[$e.NOFRAMES]:!0,[$e.NOSCRIPT]:!0,[$e.OBJECT]:!0,[$e.OL]:!0,[$e.P]:!0,[$e.PARAM]:!0,[$e.PLAINTEXT]:!0,[$e.PRE]:!0,[$e.SCRIPT]:!0,[$e.SECTION]:!0,[$e.SELECT]:!0,[$e.SOURCE]:!0,[$e.STYLE]:!0,[$e.SUMMARY]:!0,[$e.TABLE]:!0,[$e.TBODY]:!0,[$e.TD]:!0,[$e.TEMPLATE]:!0,[$e.TEXTAREA]:!0,[$e.TFOOT]:!0,[$e.TH]:!0,[$e.THEAD]:!0,[$e.TITLE]:!0,[$e.TR]:!0,[$e.TRACK]:!0,[$e.UL]:!0,[$e.WBR]:!0,[$e.XMP]:!0},[k3.MATHML]:{[$e.MI]:!0,[$e.MO]:!0,[$e.MN]:!0,[$e.MS]:!0,[$e.MTEXT]:!0,[$e.ANNOTATION_XML]:!0},[k3.SVG]:{[$e.TITLE]:!0,[$e.FOREIGN_OBJECT]:!0,[$e.DESC]:!0}};const TL=Wa,je=TL.TAG_NAMES,cn=TL.NAMESPACES;function Dx(e){switch(e.length){case 1:return e===je.P;case 2:return e===je.RB||e===je.RP||e===je.RT||e===je.DD||e===je.DT||e===je.LI;case 3:return e===je.RTC;case 6:return e===je.OPTION;case 8:return e===je.OPTGROUP}return!1}function ine(e){switch(e.length){case 1:return e===je.P;case 2:return e===je.RB||e===je.RP||e===je.RT||e===je.DD||e===je.DT||e===je.LI||e===je.TD||e===je.TH||e===je.TR;case 3:return e===je.RTC;case 5:return e===je.TBODY||e===je.TFOOT||e===je.THEAD;case 6:return e===je.OPTION;case 7:return e===je.CAPTION;case 8:return e===je.OPTGROUP||e===je.COLGROUP}return!1}function A0(e,t){switch(e.length){case 2:if(e===je.TD||e===je.TH)return t===cn.HTML;if(e===je.MI||e===je.MO||e===je.MN||e===je.MS)return t===cn.MATHML;break;case 4:if(e===je.HTML)return t===cn.HTML;if(e===je.DESC)return t===cn.SVG;break;case 5:if(e===je.TABLE)return t===cn.HTML;if(e===je.MTEXT)return t===cn.MATHML;if(e===je.TITLE)return t===cn.SVG;break;case 6:return(e===je.APPLET||e===je.OBJECT)&&t===cn.HTML;case 7:return(e===je.CAPTION||e===je.MARQUEE)&&t===cn.HTML;case 8:return e===je.TEMPLATE&&t===cn.HTML;case 13:return e===je.FOREIGN_OBJECT&&t===cn.SVG;case 14:return e===je.ANNOTATION_XML&&t===cn.MATHML}return!1}let ane=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===je.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===cn.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(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===cn.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===je.H1||t===je.H2||t===je.H3||t===je.H4||t===je.H5||t===je.H6&&n===cn.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===je.TD||t===je.TH&&n===cn.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==je.TABLE&&this.currentTagName!==je.TEMPLATE&&this.currentTagName!==je.HTML||this.treeAdapter.getNamespaceURI(this.current)!==cn.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==je.TBODY&&this.currentTagName!==je.TFOOT&&this.currentTagName!==je.THEAD&&this.currentTagName!==je.TEMPLATE&&this.currentTagName!==je.HTML||this.treeAdapter.getNamespaceURI(this.current)!==cn.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==je.TR&&this.currentTagName!==je.TEMPLATE&&this.currentTagName!==je.HTML||this.treeAdapter.getNamespaceURI(this.current)!==cn.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===je.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===je.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===cn.HTML)return!0;if(A0(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===je.H1||n===je.H2||n===je.H3||n===je.H4||n===je.H5||n===je.H6)&&r===cn.HTML)return!0;if(A0(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===cn.HTML)return!0;if((r===je.UL||r===je.OL)&&i===cn.HTML||A0(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===cn.HTML)return!0;if(r===je.BUTTON&&i===cn.HTML||A0(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===cn.HTML){if(r===t)return!0;if(r===je.TABLE||r===je.TEMPLATE||r===je.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===cn.HTML){if(n===je.TBODY||n===je.THEAD||n===je.TFOOT)return!0;if(n===je.TABLE||n===je.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===cn.HTML){if(r===t)return!0;if(r!==je.OPTION&&r!==je.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Dx(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ine(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Dx(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var one=ane;const C0=3;let VE=class Os{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=C0){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===Os.MARKER_ENTRY)break;const u=s.element,c=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===a&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length=C0-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:Os.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:Os.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Os.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Os.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Os.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Os.ELEMENT_ENTRY&&r.element===t)return r}return null}};VE.MARKER_ENTRY="MARKER_ENTRY";VE.ELEMENT_ENTRY="ELEMENT_ENTRY";var sne=VE;let SL=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};SL.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i=c||p+10?" ":"")),i.shift(4),a+=i.move(Zne(Kne(e,n,i.current()),pre)),o(),a}function pre(e,t,n){return t===0?e:(n?"":" ")+e}function xM(e,t,n){const r=t.indexStack,i=e.children||[],a=[];let o=-1,s=n.before;r.push(-1);let u=t.createTracker(n);for(;++o0&&(s==="\r"||s===` +`)&&c.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",u=t.createTracker(n),u.move(a.join(""))),a.push(u.move(t.handle(c,e,t,{...u.current(),before:s,after:p}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}const fre=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];IM.peek=yre;const hre={canContainEols:["delete"],enter:{strikethrough:mre},exit:{strikethrough:bre}},gre={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:fre}],handlers:{delete:IM}};function mre(e){this.enter({type:"delete",children:[]},e)}function bre(e){this.exit(e)}function IM(e,t,n,r){const i=e2(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=xM(e,n,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function yre(){return"~"}RM.peek=Ere;function RM(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++au&&(u=e[c].length);++Ts[T])&&(s[T]=v)}b.push(E)}a[c]=b,o[c]=y}let p=-1;if(typeof n=="object"&&"length"in n)for(;++ps[p]&&(s[p]=E),m[p]=E),f[p]=v}a.splice(1,0,f),o.splice(1,0,m),c=-1;const g=[];for(;++cn==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function Are(e){this.exit(e),this.setData("inTable")}function Cre(e){this.enter({type:"tableRow",children:[]},e)}function j3(e){this.exit(e)}function Uk(e){this.enter({type:"tableCell",children:[]},e)}function kre(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,xre));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function xre(e,t){return t==="|"?t:e}function Ire(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";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:o,tableRow:s,tableCell:u,inlineCode:m}};function o(g,b,y,T){return c(p(g,y,T),g.align)}function s(g,b,y,T){const E=f(g,y,T),v=c([E]);return v.slice(0,v.indexOf(` +`))}function u(g,b,y,T){const E=y.enter("tableCell"),v=y.enter("phrasing"),w=xM(g,y,{...T,before:a,after:a});return v(),E(),w}function c(g,b){return vre(g,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function p(g,b,y){const T=g.children;let E=-1;const v=[],w=b.enter("table");for(;++E-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),p);return u(),c;function p(f,m,g){return m?(g?"":" ".repeat(o))+f:(g?a:a+" ".repeat(o-a.length))+f}}const Dre={exit:{taskListCheckValueChecked:$k,taskListCheckValueUnchecked:$k,paragraph:Mre}},Lre={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Fre}};function $k(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Mre(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a=55296&&e<=57343};Xa.isSurrogatePair=function(e){return e>=56320&&e<=57343};Xa.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Xa.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Xa.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||$re.indexOf(e)>-1};var D9={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"};const l1=Xa,G3=D9,Hl=l1.CODE_POINTS,zre=65536;let Hre=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=zre}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(l1.isSurrogatePair(n))return this.pos++,this._addGap(),l1.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Hl.EOF;return this._err(G3.surrogateInInputStream),t}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(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+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,Hl.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Hl.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Hl.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Hl.LINE_FEED):(this.skipNextNewLine=!1,l1.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Hl.LINE_FEED||t===Hl.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){l1.isControlCodePoint(t)?this._err(G3.controlCharacterInInputStream):l1.isUndefinedCodePoint(t)&&this._err(G3.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var jre=Hre,Gre=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]);const Vre=jre,cn=Xa,ou=Gre,Ae=D9,V=cn.CODE_POINTS,jl=cn.CODE_POINT_SEQUENCES,Wre={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},NM=1,OM=2,DM=4,qre=NM|OM|DM,Ot="DATA_STATE",u1="RCDATA_STATE",Sd="RAWTEXT_STATE",Xo="SCRIPT_DATA_STATE",LM="PLAINTEXT_STATE",zk="TAG_OPEN_STATE",Hk="END_TAG_OPEN_STATE",V3="TAG_NAME_STATE",jk="RCDATA_LESS_THAN_SIGN_STATE",Gk="RCDATA_END_TAG_OPEN_STATE",Vk="RCDATA_END_TAG_NAME_STATE",Wk="RAWTEXT_LESS_THAN_SIGN_STATE",qk="RAWTEXT_END_TAG_OPEN_STATE",Kk="RAWTEXT_END_TAG_NAME_STATE",Yk="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Xk="SCRIPT_DATA_END_TAG_OPEN_STATE",Zk="SCRIPT_DATA_END_TAG_NAME_STATE",Qk="SCRIPT_DATA_ESCAPE_START_STATE",Jk="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Na="SCRIPT_DATA_ESCAPED_STATE",ex="SCRIPT_DATA_ESCAPED_DASH_STATE",W3="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",I0="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",tx="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",nx="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",rx="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",zo="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",ix="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",ax="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",R0="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",ox="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",so="BEFORE_ATTRIBUTE_NAME_STATE",N0="ATTRIBUTE_NAME_STATE",q3="AFTER_ATTRIBUTE_NAME_STATE",K3="BEFORE_ATTRIBUTE_VALUE_STATE",O0="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",D0="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",L0="ATTRIBUTE_VALUE_UNQUOTED_STATE",Y3="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Ls="SELF_CLOSING_START_TAG_STATE",td="BOGUS_COMMENT_STATE",sx="MARKUP_DECLARATION_OPEN_STATE",lx="COMMENT_START_STATE",ux="COMMENT_START_DASH_STATE",Ms="COMMENT_STATE",cx="COMMENT_LESS_THAN_SIGN_STATE",dx="COMMENT_LESS_THAN_SIGN_BANG_STATE",px="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",fx="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",M0="COMMENT_END_DASH_STATE",F0="COMMENT_END_STATE",hx="COMMENT_END_BANG_STATE",gx="DOCTYPE_STATE",P0="BEFORE_DOCTYPE_NAME_STATE",B0="DOCTYPE_NAME_STATE",mx="AFTER_DOCTYPE_NAME_STATE",bx="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",yx="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",X3="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Z3="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Q3="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Ex="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",vx="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",_x="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",nd="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",rd="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",J3="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ho="BOGUS_DOCTYPE_STATE",U0="CDATA_SECTION_STATE",Tx="CDATA_SECTION_BRACKET_STATE",Sx="CDATA_SECTION_END_STATE",Ju="CHARACTER_REFERENCE_STATE",wx="NAMED_CHARACTER_REFERENCE_STATE",Ax="AMBIGUOS_AMPERSAND_STATE",Cx="NUMERIC_CHARACTER_REFERENCE_STATE",kx="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",xx="DECIMAL_CHARACTER_REFERENCE_START_STATE",Ix="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Rx="DECIMAL_CHARACTER_REFERENCE_STATE",id="NUMERIC_CHARACTER_REFERENCE_END_STATE";function vn(e){return e===V.SPACE||e===V.LINE_FEED||e===V.TABULATION||e===V.FORM_FEED}function zd(e){return e>=V.DIGIT_0&&e<=V.DIGIT_9}function La(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_Z}function Xl(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_Z}function Us(e){return Xl(e)||La(e)}function e4(e){return Us(e)||zd(e)}function MM(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_F}function FM(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_F}function Kre(e){return zd(e)||MM(e)||FM(e)}function Ih(e){return e+32}function Fn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Fs(e){return String.fromCharCode(Ih(e))}function Nx(e,t){const n=ou[++e];let r=++e,i=r+n-1;for(;r<=i;){const a=r+i>>>1,o=ou[a];if(ot)i=a-1;else return ou[a+n]}return-1}let wa=class fi{constructor(){this.preprocessor=new Vre,this.tokenQueue=[],this.allowCDATA=!1,this.state=Ot,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(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:fi.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,a=!0;const o=t.length;let s=0,u=n,c;for(;s0&&(u=this._consume(),i++),u===V.EOF){a=!1;break}if(c=t[s],u!==c&&(r||u!==Ih(c))){a=!1;break}}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==jl.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(Ae.endTagWithAttributes),t.selfClosing&&this._err(Ae.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=fi.CHARACTER_TOKEN;vn(t)?n=fi.WHITESPACE_CHARACTER_TOKEN:t===V.NULL&&(n=fi.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Fn(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const a=ou[i],o=a")):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=Na,this._emitChars(cn.REPLACEMENT_CHARACTER)):t===V.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Na,this._emitCodePoint(t))}[I0](t){t===V.SOLIDUS?(this.tempBuff=[],this.state=tx):Us(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(rx)):(this._emitChars("<"),this._reconsumeInState(Na))}[tx](t){Us(t)?(this._createEndTagToken(),this._reconsumeInState(nx)):(this._emitChars("")):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=zo,this._emitChars(cn.REPLACEMENT_CHARACTER)):t===V.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=zo,this._emitCodePoint(t))}[R0](t){t===V.SOLIDUS?(this.tempBuff=[],this.state=ox,this._emitChars("/")):this._reconsumeInState(zo)}[ox](t){vn(t)||t===V.SOLIDUS||t===V.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Na:zo,this._emitCodePoint(t)):La(t)?(this.tempBuff.push(Ih(t)),this._emitCodePoint(t)):Xl(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(zo)}[so](t){vn(t)||(t===V.SOLIDUS||t===V.GREATER_THAN_SIGN||t===V.EOF?this._reconsumeInState(q3):t===V.EQUALS_SIGN?(this._err(Ae.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=N0):(this._createAttr(""),this._reconsumeInState(N0)))}[N0](t){vn(t)||t===V.SOLIDUS||t===V.GREATER_THAN_SIGN||t===V.EOF?(this._leaveAttrName(q3),this._unconsume()):t===V.EQUALS_SIGN?this._leaveAttrName(K3):La(t)?this.currentAttr.name+=Fs(t):t===V.QUOTATION_MARK||t===V.APOSTROPHE||t===V.LESS_THAN_SIGN?(this._err(Ae.unexpectedCharacterInAttributeName),this.currentAttr.name+=Fn(t)):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.name+=cn.REPLACEMENT_CHARACTER):this.currentAttr.name+=Fn(t)}[q3](t){vn(t)||(t===V.SOLIDUS?this.state=Ls:t===V.EQUALS_SIGN?this.state=K3:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(N0)))}[K3](t){vn(t)||(t===V.QUOTATION_MARK?this.state=O0:t===V.APOSTROPHE?this.state=D0:t===V.GREATER_THAN_SIGN?(this._err(Ae.missingAttributeValue),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(L0))}[O0](t){t===V.QUOTATION_MARK?this.state=Y3:t===V.AMPERSAND?(this.returnState=O0,this.state=Ju):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[D0](t){t===V.APOSTROPHE?this.state=Y3:t===V.AMPERSAND?(this.returnState=D0,this.state=Ju):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[L0](t){vn(t)?this._leaveAttrValue(so):t===V.AMPERSAND?(this.returnState=L0,this.state=Ju):t===V.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.QUOTATION_MARK||t===V.APOSTROPHE||t===V.LESS_THAN_SIGN||t===V.EQUALS_SIGN||t===V.GRAVE_ACCENT?(this._err(Ae.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Fn(t)):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[Y3](t){vn(t)?this._leaveAttrValue(so):t===V.SOLIDUS?this._leaveAttrValue(Ls):t===V.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBetweenAttributes),this._reconsumeInState(so))}[Ls](t){t===V.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.unexpectedSolidusInTag),this._reconsumeInState(so))}[td](t){t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=cn.REPLACEMENT_CHARACTER):this.currentToken.data+=Fn(t)}[sx](t){this._consumeSequenceIfMatch(jl.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=lx):this._consumeSequenceIfMatch(jl.DOCTYPE_STRING,t,!1)?this.state=gx:this._consumeSequenceIfMatch(jl.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=U0:(this._err(Ae.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=td):this._ensureHibernation()||(this._err(Ae.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(td))}[lx](t){t===V.HYPHEN_MINUS?this.state=ux:t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(Ms)}[ux](t){t===V.HYPHEN_MINUS?this.state=F0:t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ms))}[Ms](t){t===V.HYPHEN_MINUS?this.state=M0:t===V.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=cx):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Fn(t)}[cx](t){t===V.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=dx):t===V.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Ms)}[dx](t){t===V.HYPHEN_MINUS?this.state=px:this._reconsumeInState(Ms)}[px](t){t===V.HYPHEN_MINUS?this.state=fx:this._reconsumeInState(M0)}[fx](t){t!==V.GREATER_THAN_SIGN&&t!==V.EOF&&this._err(Ae.nestedComment),this._reconsumeInState(F0)}[M0](t){t===V.HYPHEN_MINUS?this.state=F0:t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ms))}[F0](t){t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EXCLAMATION_MARK?this.state=hx:t===V.HYPHEN_MINUS?this.currentToken.data+="-":t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Ms))}[hx](t){t===V.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=M0):t===V.GREATER_THAN_SIGN?(this._err(Ae.incorrectlyClosedComment),this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Ms))}[gx](t){vn(t)?this.state=P0:t===V.GREATER_THAN_SIGN?this._reconsumeInState(P0):t===V.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(P0))}[P0](t){vn(t)||(La(t)?(this._createDoctypeToken(Fs(t)),this.state=B0):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this._createDoctypeToken(cn.REPLACEMENT_CHARACTER),this.state=B0):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Fn(t)),this.state=B0))}[B0](t){vn(t)?this.state=mx:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):La(t)?this.currentToken.name+=Fs(t):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.name+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Fn(t)}[mx](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(jl.PUBLIC_STRING,t,!1)?this.state=bx:this._consumeSequenceIfMatch(jl.SYSTEM_STRING,t,!1)?this.state=vx:this._ensureHibernation()||(this._err(Ae.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[bx](t){vn(t)?this.state=yx:t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=X3):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Z3):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho))}[yx](t){vn(t)||(t===V.QUOTATION_MARK?(this.currentToken.publicId="",this.state=X3):t===V.APOSTROPHE?(this.currentToken.publicId="",this.state=Z3):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[X3](t){t===V.QUOTATION_MARK?this.state=Q3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fn(t)}[Z3](t){t===V.APOSTROPHE?this.state=Q3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fn(t)}[Q3](t){vn(t)?this.state=Ex:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=rd):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho))}[Ex](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.QUOTATION_MARK?(this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this.currentToken.systemId="",this.state=rd):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[vx](t){vn(t)?this.state=_x:t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=rd):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho))}[_x](t){vn(t)||(t===V.QUOTATION_MARK?(this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this.currentToken.systemId="",this.state=rd):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[nd](t){t===V.QUOTATION_MARK?this.state=J3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fn(t)}[rd](t){t===V.APOSTROPHE?this.state=J3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fn(t)}[J3](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Ho)))}[Ho](t){t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.NULL?this._err(Ae.unexpectedNullCharacter):t===V.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[U0](t){t===V.RIGHT_SQUARE_BRACKET?this.state=Tx:t===V.EOF?(this._err(Ae.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Tx](t){t===V.RIGHT_SQUARE_BRACKET?this.state=Sx:(this._emitChars("]"),this._reconsumeInState(U0))}[Sx](t){t===V.GREATER_THAN_SIGN?this.state=Ot:t===V.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(U0))}[Ju](t){this.tempBuff=[V.AMPERSAND],t===V.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Cx):e4(t)?this._reconsumeInState(wx):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[wx](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[V.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===V.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Ae.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Ax}[Ax](t){e4(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Fn(t):this._emitCodePoint(t):(t===V.SEMICOLON&&this._err(Ae.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Cx](t){this.charRefCode=0,t===V.LATIN_SMALL_X||t===V.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=kx):this._reconsumeInState(xx)}[kx](t){Kre(t)?this._reconsumeInState(Ix):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[xx](t){zd(t)?this._reconsumeInState(Rx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ix](t){MM(t)?this.charRefCode=this.charRefCode*16+t-55:FM(t)?this.charRefCode=this.charRefCode*16+t-87:zd(t)?this.charRefCode=this.charRefCode*16+t-48:t===V.SEMICOLON?this.state=id:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(id))}[Rx](t){zd(t)?this.charRefCode=this.charRefCode*10+t-48:t===V.SEMICOLON?this.state=id:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(id))}[id](){if(this.charRefCode===V.NULL)this._err(Ae.nullCharacterReference),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Ae.characterReferenceOutsideUnicodeRange),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(cn.isSurrogate(this.charRefCode))this._err(Ae.surrogateCharacterReference),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(cn.isUndefinedCodePoint(this.charRefCode))this._err(Ae.noncharacterCharacterReference);else if(cn.isControlCodePoint(this.charRefCode)||this.charRefCode===V.CARRIAGE_RETURN){this._err(Ae.controlCharacterReference);const t=Wre[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};wa.CHARACTER_TOKEN="CHARACTER_TOKEN";wa.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";wa.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";wa.START_TAG_TOKEN="START_TAG_TOKEN";wa.END_TAG_TOKEN="END_TAG_TOKEN";wa.COMMENT_TOKEN="COMMENT_TOKEN";wa.DOCTYPE_TOKEN="DOCTYPE_TOKEN";wa.EOF_TOKEN="EOF_TOKEN";wa.HIBERNATION_TOKEN="HIBERNATION_TOKEN";wa.MODE={DATA:Ot,RCDATA:u1,RAWTEXT:Sd,SCRIPT_DATA:Xo,PLAINTEXT:LM};wa.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var t2=wa,Za={};const t4=Za.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/"};Za.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Za.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const $e=Za.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"};Za.SPECIAL_ELEMENTS={[t4.HTML]:{[$e.ADDRESS]:!0,[$e.APPLET]:!0,[$e.AREA]:!0,[$e.ARTICLE]:!0,[$e.ASIDE]:!0,[$e.BASE]:!0,[$e.BASEFONT]:!0,[$e.BGSOUND]:!0,[$e.BLOCKQUOTE]:!0,[$e.BODY]:!0,[$e.BR]:!0,[$e.BUTTON]:!0,[$e.CAPTION]:!0,[$e.CENTER]:!0,[$e.COL]:!0,[$e.COLGROUP]:!0,[$e.DD]:!0,[$e.DETAILS]:!0,[$e.DIR]:!0,[$e.DIV]:!0,[$e.DL]:!0,[$e.DT]:!0,[$e.EMBED]:!0,[$e.FIELDSET]:!0,[$e.FIGCAPTION]:!0,[$e.FIGURE]:!0,[$e.FOOTER]:!0,[$e.FORM]:!0,[$e.FRAME]:!0,[$e.FRAMESET]:!0,[$e.H1]:!0,[$e.H2]:!0,[$e.H3]:!0,[$e.H4]:!0,[$e.H5]:!0,[$e.H6]:!0,[$e.HEAD]:!0,[$e.HEADER]:!0,[$e.HGROUP]:!0,[$e.HR]:!0,[$e.HTML]:!0,[$e.IFRAME]:!0,[$e.IMG]:!0,[$e.INPUT]:!0,[$e.LI]:!0,[$e.LINK]:!0,[$e.LISTING]:!0,[$e.MAIN]:!0,[$e.MARQUEE]:!0,[$e.MENU]:!0,[$e.META]:!0,[$e.NAV]:!0,[$e.NOEMBED]:!0,[$e.NOFRAMES]:!0,[$e.NOSCRIPT]:!0,[$e.OBJECT]:!0,[$e.OL]:!0,[$e.P]:!0,[$e.PARAM]:!0,[$e.PLAINTEXT]:!0,[$e.PRE]:!0,[$e.SCRIPT]:!0,[$e.SECTION]:!0,[$e.SELECT]:!0,[$e.SOURCE]:!0,[$e.STYLE]:!0,[$e.SUMMARY]:!0,[$e.TABLE]:!0,[$e.TBODY]:!0,[$e.TD]:!0,[$e.TEMPLATE]:!0,[$e.TEXTAREA]:!0,[$e.TFOOT]:!0,[$e.TH]:!0,[$e.THEAD]:!0,[$e.TITLE]:!0,[$e.TR]:!0,[$e.TRACK]:!0,[$e.UL]:!0,[$e.WBR]:!0,[$e.XMP]:!0},[t4.MATHML]:{[$e.MI]:!0,[$e.MO]:!0,[$e.MN]:!0,[$e.MS]:!0,[$e.MTEXT]:!0,[$e.ANNOTATION_XML]:!0},[t4.SVG]:{[$e.TITLE]:!0,[$e.FOREIGN_OBJECT]:!0,[$e.DESC]:!0}};const PM=Za,He=PM.TAG_NAMES,dn=PM.NAMESPACES;function Ox(e){switch(e.length){case 1:return e===He.P;case 2:return e===He.RB||e===He.RP||e===He.RT||e===He.DD||e===He.DT||e===He.LI;case 3:return e===He.RTC;case 6:return e===He.OPTION;case 8:return e===He.OPTGROUP}return!1}function Yre(e){switch(e.length){case 1:return e===He.P;case 2:return e===He.RB||e===He.RP||e===He.RT||e===He.DD||e===He.DT||e===He.LI||e===He.TD||e===He.TH||e===He.TR;case 3:return e===He.RTC;case 5:return e===He.TBODY||e===He.TFOOT||e===He.THEAD;case 6:return e===He.OPTION;case 7:return e===He.CAPTION;case 8:return e===He.OPTGROUP||e===He.COLGROUP}return!1}function $0(e,t){switch(e.length){case 2:if(e===He.TD||e===He.TH)return t===dn.HTML;if(e===He.MI||e===He.MO||e===He.MN||e===He.MS)return t===dn.MATHML;break;case 4:if(e===He.HTML)return t===dn.HTML;if(e===He.DESC)return t===dn.SVG;break;case 5:if(e===He.TABLE)return t===dn.HTML;if(e===He.MTEXT)return t===dn.MATHML;if(e===He.TITLE)return t===dn.SVG;break;case 6:return(e===He.APPLET||e===He.OBJECT)&&t===dn.HTML;case 7:return(e===He.CAPTION||e===He.MARQUEE)&&t===dn.HTML;case 8:return e===He.TEMPLATE&&t===dn.HTML;case 13:return e===He.FOREIGN_OBJECT&&t===dn.SVG;case 14:return e===He.ANNOTATION_XML&&t===dn.MATHML}return!1}let Xre=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===He.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===dn.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(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===dn.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===He.H1||t===He.H2||t===He.H3||t===He.H4||t===He.H5||t===He.H6&&n===dn.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===He.TD||t===He.TH&&n===dn.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==He.TABLE&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==He.TBODY&&this.currentTagName!==He.TFOOT&&this.currentTagName!==He.THEAD&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==He.TR&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===He.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===He.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if($0(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===He.H1||n===He.H2||n===He.H3||n===He.H4||n===He.H5||n===He.H6)&&r===dn.HTML)return!0;if($0(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if((r===He.UL||r===He.OL)&&i===dn.HTML||$0(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if(r===He.BUTTON&&i===dn.HTML||$0(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===dn.HTML){if(r===t)return!0;if(r===He.TABLE||r===He.TEMPLATE||r===He.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===dn.HTML){if(n===He.TBODY||n===He.THEAD||n===He.TFOOT)return!0;if(n===He.TABLE||n===He.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===dn.HTML){if(r===t)return!0;if(r!==He.OPTION&&r!==He.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Ox(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Yre(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Ox(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var Zre=Xre;const z0=3;let L9=class $s{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=z0){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===$s.MARKER_ENTRY)break;const u=s.element,c=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===a&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length=z0-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:$s.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:$s.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:$s.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===$s.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===$s.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===$s.ELEMENT_ENTRY&&r.element===t)return r}return null}};L9.MARKER_ENTRY="MARKER_ENTRY";L9.ELEMENT_ENTRY="ELEMENT_ENTRY";var Qre=L9;let BM=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};BM.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i{const a=I3.MODE[i];r[a]=function(o){t.ctLoc=t._getCurrentLocation(),n[a].call(this,o)}}),r}};var AL=dne;const pne=ls;let fne=class extends pne{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var hne=fne;const R3=ls,Mx=I2,gne=AL,mne=hne,bne=Wa,N3=bne.TAG_NAMES;let Ene=class extends R3{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===Mx.END_TAG_TOKEN&&a===n.tagName,s={};o?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const a=R3.install(this.tokenizer,gne);t.posTracker=a.posTracker,R3.install(this.openElements,mne,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===Mx.END_TAG_TOKEN&&(r.tagName===N3.HTML||r.tagName===N3.BODY&&this.openElements.hasInScope(N3.BODY)))for(let a=this.openElements.stackTop;a>=0;a--){const o=this.openElements.items[a];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),a=i.length;for(let o=0;o(Object.keys(i).forEach(a=>{r[a]=i[a]}),r),Object.create(null))},R2={};const{DOCUMENT_MODE:qu}=Wa,kL="html",$ne="about:legacy-compat",zne="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",IL=["+//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//"],Hne=IL.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),jne=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],RL=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Gne=RL.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Px(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Bx(e,t){for(let n=0;n-1)return qu.QUIRKS;let r=t===null?Hne:IL;if(Bx(n,r))return qu.QUIRKS;if(r=t===null?RL:Gne,Bx(n,r))return qu.LIMITED_QUIRKS}return qu.NO_QUIRKS};R2.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Px(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Px(n)),r};var _l={};const O3=I2,qE=Wa,ft=qE.TAG_NAMES,vr=qE.NAMESPACES,dh=qE.ATTRS,Ux={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Vne="definitionurl",Wne="definitionURL",qne={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"},Kne={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:vr.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:vr.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:vr.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:vr.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:vr.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:vr.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:vr.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:vr.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:vr.XML},"xml:space":{prefix:"xml",name:"space",namespace:vr.XML},xmlns:{prefix:"",name:"xmlns",namespace:vr.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:vr.XMLNS}},Yne=_l.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"},Xne={[ft.B]:!0,[ft.BIG]:!0,[ft.BLOCKQUOTE]:!0,[ft.BODY]:!0,[ft.BR]:!0,[ft.CENTER]:!0,[ft.CODE]:!0,[ft.DD]:!0,[ft.DIV]:!0,[ft.DL]:!0,[ft.DT]:!0,[ft.EM]:!0,[ft.EMBED]:!0,[ft.H1]:!0,[ft.H2]:!0,[ft.H3]:!0,[ft.H4]:!0,[ft.H5]:!0,[ft.H6]:!0,[ft.HEAD]:!0,[ft.HR]:!0,[ft.I]:!0,[ft.IMG]:!0,[ft.LI]:!0,[ft.LISTING]:!0,[ft.MENU]:!0,[ft.META]:!0,[ft.NOBR]:!0,[ft.OL]:!0,[ft.P]:!0,[ft.PRE]:!0,[ft.RUBY]:!0,[ft.S]:!0,[ft.SMALL]:!0,[ft.SPAN]:!0,[ft.STRONG]:!0,[ft.STRIKE]:!0,[ft.SUB]:!0,[ft.SUP]:!0,[ft.TABLE]:!0,[ft.TT]:!0,[ft.U]:!0,[ft.UL]:!0,[ft.VAR]:!0};_l.causesExit=function(e){const t=e.tagName;return t===ft.FONT&&(O3.getTokenAttr(e,dh.COLOR)!==null||O3.getTokenAttr(e,dh.SIZE)!==null||O3.getTokenAttr(e,dh.FACE)!==null)?!0:Xne[t]};_l.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),a=lre[i];if(a){this.insertionMode=a;break}else if(!n&&(i===S.TD||i===S.TH)){this.insertionMode=L2;break}else if(!n&&i===S.HEAD){this.insertionMode=uc;break}else if(i===S.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===S.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===S.HTML){this.insertionMode=this.headElement?O2:N2;break}else if(n){this.insertionMode=mo;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===S.TEMPLATE)break;if(i===S.TABLE){this.insertionMode=XE;return}}this.insertionMode=YE}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);if(i===S.TEMPLATE&&a===rt.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===S.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Su.SPECIAL_ELEMENTS[r][n]}}var dre=cre;function pre(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Oa(e,t),n}function fre(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function hre(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),u=s&&a>=sre;!s||u?(u&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=gre(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function gre(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function mre(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===S.TEMPLATE&&i===rt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function bre(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Fs(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==S.TEMPLATE&&e._err(Ar.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Ar.endTagWithoutMatchingOpenElement)}function Rd(e,t){e.openElements.pop(),e.insertionMode=O2,e._processToken(t)}function wre(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.BASEFONT||n===S.BGSOUND||n===S.HEAD||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.STYLE?cr(e,t):n===S.NOSCRIPT?e._err(Ar.nestedNoscriptInHead):Nd(e,t)}function Are(e,t){const n=t.tagName;n===S.NOSCRIPT?(e.openElements.pop(),e.insertionMode=uc):n===S.BR?Nd(e,t):e._err(Ar.endTagWithoutMatchingOpenElement)}function Nd(e,t){const n=t.type===q.EOF_TOKEN?Ar.openElementsLeftAfterEof:Ar.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=uc,e._processToken(t)}function Cre(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.BODY?(e._insertElement(t,rt.HTML),e.framesetOk=!1,e.insertionMode=mo):n===S.FRAMESET?(e._insertElement(t,rt.HTML),e.insertionMode=M2):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.SCRIPT||n===S.STYLE||n===S.TEMPLATE||n===S.TITLE?(e._err(Ar.abandonedHeadElementChild),e.openElements.push(e.headElement),cr(e,t),e.openElements.remove(e.headElement)):n===S.HEAD?e._err(Ar.misplacedStartTagForHeadElement):Od(e,t)}function xre(e,t){const n=t.tagName;n===S.BODY||n===S.HTML||n===S.BR?Od(e,t):n===S.TEMPLATE?wu(e,t):e._err(Ar.endTagWithoutMatchingOpenElement)}function Od(e,t){e._insertFakeElement(S.BODY),e.insertionMode=mo,e._processToken(t)}function Bl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function k0(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function kre(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Ire(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Rre(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,rt.HTML),e.insertionMode=M2)}function Fo(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML)}function Nre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6)&&e.openElements.pop(),e._insertElement(t,rt.HTML)}function Vx(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Ore(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),n||(e.formElement=e.openElements.current))}function Dre(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],a=e.treeAdapter.getTagName(i);let o=null;if(n===S.LI&&a===S.LI?o=S.LI:(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)&&(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML)}function Lre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),e.tokenizer.state=q.MODE.PLAINTEXT}function Mre(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.framesetOk=!1}function Fre(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);n&&(Fs(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ku(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Pre(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(Fs(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Wx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Bre(e,t){e.treeAdapter.getDocumentMode(e.document)!==Su.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),e.framesetOk=!1,e.insertionMode=Ur}function r1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,rt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ure(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,rt.HTML);const n=q.getTokenAttr(t,NL.TYPE);(!n||n.toLowerCase()!==OL)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function qx(e,t){e._appendElement(t,rt.HTML),t.ackSelfClosing=!0}function $re(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,rt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function zre(e,t){t.tagName=S.IMG,r1(e,t)}function Hre(e,t){e._insertElement(t,rt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=q.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=sg}function jre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,q.MODE.RAWTEXT)}function Gre(e,t){e.framesetOk=!1,e._switchToTextParsing(t,q.MODE.RAWTEXT)}function Kx(e,t){e._switchToTextParsing(t,q.MODE.RAWTEXT)}function Vre(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.framesetOk=!1,e.insertionMode===Ur||e.insertionMode===D2||e.insertionMode===pa||e.insertionMode===rs||e.insertionMode===L2?e.insertionMode=XE:e.insertionMode=YE}function Yx(e,t){e.openElements.currentTagName===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML)}function Xx(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,rt.HTML)}function Wre(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,rt.HTML)}function qre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML)}function Kre(e,t){e._reconstructActiveFormattingElements(),uo.adjustTokenMathMLAttrs(t),uo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,rt.MATHML):e._insertElement(t,rt.MATHML),t.ackSelfClosing=!0}function Yre(e,t){e._reconstructActiveFormattingElements(),uo.adjustTokenSVGAttrs(t),uo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,rt.SVG):e._insertElement(t,rt.SVG),t.ackSelfClosing=!0}function ta(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML)}function yi(e,t){const n=t.tagName;switch(n.length){case 1:n===S.I||n===S.S||n===S.B||n===S.U?Ku(e,t):n===S.P?Fo(e,t):n===S.A?Fre(e,t):ta(e,t);break;case 2:n===S.DL||n===S.OL||n===S.UL?Fo(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?Nre(e,t):n===S.LI||n===S.DD||n===S.DT?Dre(e,t):n===S.EM||n===S.TT?Ku(e,t):n===S.BR?r1(e,t):n===S.HR?$re(e,t):n===S.RB?Xx(e,t):n===S.RT||n===S.RP?Wre(e,t):n!==S.TH&&n!==S.TD&&n!==S.TR&&ta(e,t);break;case 3:n===S.DIV||n===S.DIR||n===S.NAV?Fo(e,t):n===S.PRE?Vx(e,t):n===S.BIG?Ku(e,t):n===S.IMG||n===S.WBR?r1(e,t):n===S.XMP?jre(e,t):n===S.SVG?Yre(e,t):n===S.RTC?Xx(e,t):n!==S.COL&&ta(e,t);break;case 4:n===S.HTML?kre(e,t):n===S.BASE||n===S.LINK||n===S.META?cr(e,t):n===S.BODY?Ire(e,t):n===S.MAIN||n===S.MENU?Fo(e,t):n===S.FORM?Ore(e,t):n===S.CODE||n===S.FONT?Ku(e,t):n===S.NOBR?Pre(e,t):n===S.AREA?r1(e,t):n===S.MATH?Kre(e,t):n===S.MENU?qre(e,t):n!==S.HEAD&&ta(e,t);break;case 5:n===S.STYLE||n===S.TITLE?cr(e,t):n===S.ASIDE?Fo(e,t):n===S.SMALL?Ku(e,t):n===S.TABLE?Bre(e,t):n===S.EMBED?r1(e,t):n===S.INPUT?Ure(e,t):n===S.PARAM||n===S.TRACK?qx(e,t):n===S.IMAGE?zre(e,t):n!==S.FRAME&&n!==S.TBODY&&n!==S.TFOOT&&n!==S.THEAD&&ta(e,t);break;case 6:n===S.SCRIPT?cr(e,t):n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Fo(e,t):n===S.BUTTON?Mre(e,t):n===S.STRIKE||n===S.STRONG?Ku(e,t):n===S.APPLET||n===S.OBJECT?Wx(e,t):n===S.KEYGEN?r1(e,t):n===S.SOURCE?qx(e,t):n===S.IFRAME?Gre(e,t):n===S.SELECT?Vre(e,t):n===S.OPTION?Yx(e,t):ta(e,t);break;case 7:n===S.BGSOUND?cr(e,t):n===S.DETAILS||n===S.ADDRESS||n===S.ARTICLE||n===S.SECTION||n===S.SUMMARY?Fo(e,t):n===S.LISTING?Vx(e,t):n===S.MARQUEE?Wx(e,t):n===S.NOEMBED?Kx(e,t):n!==S.CAPTION&&ta(e,t);break;case 8:n===S.BASEFONT?cr(e,t):n===S.FRAMESET?Rre(e,t):n===S.FIELDSET?Fo(e,t):n===S.TEXTAREA?Hre(e,t):n===S.TEMPLATE?cr(e,t):n===S.NOSCRIPT?e.options.scriptingEnabled?Kx(e,t):ta(e,t):n===S.OPTGROUP?Yx(e,t):n!==S.COLGROUP&&ta(e,t);break;case 9:n===S.PLAINTEXT?Lre(e,t):ta(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Fo(e,t):ta(e,t);break;default:ta(e,t)}}function Xre(e){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=ZE)}function Zre(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=ZE,e._processToken(t))}function Is(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Qre(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):e.openElements.remove(n))}function Jre(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(S.P),e._closePElement()}function eie(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function tie(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function nie(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Zx(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function rie(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(S.BR),e.openElements.pop(),e.framesetOk=!1}function Oa(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function QE(e,t){const n=t.tagName;switch(n.length){case 1:n===S.A||n===S.B||n===S.I||n===S.S||n===S.U?Fs(e,t):n===S.P?Jre(e):Oa(e,t);break;case 2:n===S.DL||n===S.UL||n===S.OL?Is(e,t):n===S.LI?eie(e):n===S.DD||n===S.DT?tie(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?nie(e):n===S.BR?rie(e):n===S.EM||n===S.TT?Fs(e,t):Oa(e,t);break;case 3:n===S.BIG?Fs(e,t):n===S.DIR||n===S.DIV||n===S.NAV||n===S.PRE?Is(e,t):Oa(e,t);break;case 4:n===S.BODY?Xre(e):n===S.HTML?Zre(e,t):n===S.FORM?Qre(e):n===S.CODE||n===S.FONT||n===S.NOBR?Fs(e,t):n===S.MAIN||n===S.MENU?Is(e,t):Oa(e,t);break;case 5:n===S.ASIDE?Is(e,t):n===S.SMALL?Fs(e,t):Oa(e,t);break;case 6:n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Is(e,t):n===S.APPLET||n===S.OBJECT?Zx(e,t):n===S.STRIKE||n===S.STRONG?Fs(e,t):Oa(e,t);break;case 7:n===S.ADDRESS||n===S.ARTICLE||n===S.DETAILS||n===S.SECTION||n===S.SUMMARY||n===S.LISTING?Is(e,t):n===S.MARQUEE?Zx(e,t):Oa(e,t);break;case 8:n===S.FIELDSET?Is(e,t):n===S.TEMPLATE?wu(e,t):Oa(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Is(e,t):Oa(e,t);break;default:Oa(e,t)}}function Po(e,t){e.tmplInsertionModeStackTop>-1?zL(e,t):e.stopped=!0}function iie(e,t){t.tagName===S.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function aie(e,t){e._err(Ar.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Bo(e,t){const n=e.openElements.currentTagName;n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ML,e._processToken(t)):na(e,t)}function oie(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,rt.HTML),e.insertionMode=D2}function sie(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,rt.HTML),e.insertionMode=Np}function lie(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.COLGROUP),e.insertionMode=Np,e._processToken(t)}function uie(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,rt.HTML),e.insertionMode=pa}function cie(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.TBODY),e.insertionMode=pa,e._processToken(t)}function die(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processToken(t))}function pie(e,t){const n=q.getTokenAttr(t,NL.TYPE);n&&n.toLowerCase()===OL?e._appendElement(t,rt.HTML):na(e,t),t.ackSelfClosing=!0}function fie(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,rt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function JE(e,t){const n=t.tagName;switch(n.length){case 2:n===S.TD||n===S.TH||n===S.TR?cie(e,t):na(e,t);break;case 3:n===S.COL?lie(e,t):na(e,t);break;case 4:n===S.FORM?fie(e,t):na(e,t);break;case 5:n===S.TABLE?die(e,t):n===S.STYLE?cr(e,t):n===S.TBODY||n===S.TFOOT||n===S.THEAD?uie(e,t):n===S.INPUT?pie(e,t):na(e,t);break;case 6:n===S.SCRIPT?cr(e,t):na(e,t);break;case 7:n===S.CAPTION?oie(e,t):na(e,t);break;case 8:n===S.COLGROUP?sie(e,t):n===S.TEMPLATE?cr(e,t):na(e,t);break;default:na(e,t)}}function ev(e,t){const n=t.tagName;n===S.TABLE?e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode()):n===S.TEMPLATE?wu(e,t):n!==S.BODY&&n!==S.CAPTION&&n!==S.COL&&n!==S.COLGROUP&&n!==S.HTML&&n!==S.TBODY&&n!==S.TD&&n!==S.TFOOT&&n!==S.TH&&n!==S.THEAD&&n!==S.TR&&na(e,t)}function na(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function hie(e,t){e.pendingCharacterTokens.push(t)}function gie(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Yc(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Rie(e,t){t.tagName===S.HTML?yi(e,t):cg(e,t)}function Nie(e,t){t.tagName===S.HTML?e.fragmentContext||(e.insertionMode=PL):cg(e,t)}function cg(e,t){e.insertionMode=mo,e._processToken(t)}function Oie(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.FRAMESET?e._insertElement(t,rt.HTML):n===S.FRAME?(e._appendElement(t,rt.HTML),t.ackSelfClosing=!0):n===S.NOFRAMES&&cr(e,t)}function Die(e,t){t.tagName===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==S.FRAMESET&&(e.insertionMode=FL))}function Lie(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.NOFRAMES&&cr(e,t)}function Mie(e,t){t.tagName===S.HTML&&(e.insertionMode=BL)}function Fie(e,t){t.tagName===S.HTML?yi(e,t):ph(e,t)}function ph(e,t){e.insertionMode=mo,e._processToken(t)}function Pie(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.NOFRAMES&&cr(e,t)}function Bie(e,t){t.chars=ire.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Uie(e,t){e._insertCharacters(t),e.framesetOk=!1}function $ie(e,t){if(uo.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==rt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===rt.MATHML?uo.adjustTokenMathMLAttrs(t):r===rt.SVG&&(uo.adjustTokenSVGTagName(t),uo.adjustTokenSVGAttrs(t)),uo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function zie(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===rt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Hie=Hi(dre),Qx=/[#.]/g;function jie(e,t){const n=e||"",r={};let i=0,a,o;for(;i-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function a(o){const s=o&&o.line,u=o&&o.column;if(typeof s=="number"&&typeof u=="number"&&!Number.isNaN(s)&&!Number.isNaN(u)&&s-1 in n){const c=(n[s-2]||0)+u-1||0;if(c>-1&&c{const P=R;if(P.value.stitch&&W!==null&&B!==null)return W.children[B]=P.value.stitch,B}),e.type!=="root"&&f.type==="root"&&f.children.length===1)return f.children[0];return f;function m(){const R={nodeName:"template",tagName:"template",attrs:[],namespaceURI:up.html,childNodes:[]},B={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:up.html,childNodes:[]},W={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(B,R),i._pushTmplInsertionMode(hae),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),i._adoptNodes(B.childNodes[0],W),W}function g(){const R=i.treeAdapter.createDocument();if(i._bootstrap(R,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),R}function E(R){let B=-1;if(R)for(;++BWL(t,n,e)}const Iae=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Rae=Object.hasOwnProperty;class Nae{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Oae(t,n===!0);const a=i;for(;Rae.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Oae(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Iae,"").replace(/ /g,"-"))}const Dae={}.hasOwnProperty;function Hr(e,t){const n=typeof t=="string"&&Lae(e)&&e.type==="element"&&e.properties&&Dae.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}function Lae(e){return!!(e&&typeof e=="object"&&"type"in e)}function qL(e){const t=e&&e.type==="element"&&e.tagName.toLowerCase()||"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}function T1(e){return"children"in e?KL(e):"value"in e?e.value:""}function Mae(e){return e.type==="text"?e.value:"children"in e?KL(e):""}function KL(e){let t=-1;const n=[];for(;++t{nk.reset(),Ui(n,"element",r=>{qL(r)&&r.properties&&!Hr(r,"id")&&(r.properties.id=t+nk.slug(T1(r)))})}}const YL=function(e){if(e==null)return rv;if(typeof e=="string")return Bae(e);if(typeof e=="object")return Pae(e);if(typeof e=="function")return XL(e);throw new Error("Expected function, string, or array as test")};function Pae(e){const t=[];let n=-1;for(;++n{Ui(g,"element",(E,b,T)=>{if(qL(E)&&Hr(E,"id")&&a(E,b,T))return o(E,b,T)})};function s(g){return g.children[n==="prepend"?"unshift":"push"](m(g,v1(!0,{},t),p(r,g))),[Cd]}function u(g,E,b){if(typeof E!="number"||!b)return;const T=m(g,v1(!0,{},t),p(r,g));let v=n==="before"?[T,g]:[g,T];if(i){const y=f(i,g);y&&!Array.isArray(y)&&y.type==="element"&&(y.children=v,v=[y])}return b.children.splice(E,1,...v),[Cd,E+v.length]}function c(g){return g.children=[m(g,v1(!0,{},t),g.children)],[Cd]}function p(g,E){const b=f(g,E);return Array.isArray(b)?b:[b]}function f(g,E){return typeof g=="function"?g(E):v1(!0,Array.isArray(g)?[]:{},g)}function m(g,E,b){return{type:"element",tagName:"a",properties:Object.assign({},E,{href:"#"+(g.properties||{}).id}),children:b}}}const zae=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Hae=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},ZL=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?ZL(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},rk=({value:e=""})=>{const t=zae(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},ik=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},jae=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Ui(r,"element",(i,a,o)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&o&&Array.isArray(o.children)&&o.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof a=="number"){const u=Hae(o.children,a);if(u){const c=rk(u);Object.keys(c).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=ik(s.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&o&&Array.isArray(o.children)&&typeof a=="number"){const s=ZL(o.children,a,"",n);if(s){const u=rk(s);Object.keys(u).length>0&&(i.properties=ik(i.properties,u,t))}}})}},Gae=jae,Vae=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Ui(r,(i,a,o)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let c=(u.value||"").trim();if(c=c.replace(/^/,"$1"),c===t)return s=!0,!1;if(c===n)return s=!1,!1}return!s})}})}},Wae=Vae,qae={}.hasOwnProperty,Kae=function(e,t,n){const r=C2(n||t),i=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,a=i??!0;return o(e);function o(s,u,c){const p=[];if(!r(s,u,c))return null;if(s.children){let g=-1;for(;++g0&&p.length===0)return null}const f={};let m;for(m in s)qae.call(s,m)&&(f[m]=m==="children"?p:s[m]);return f}};var Nb={exports:{}};(function(e,t){function n(r){let i=[],a;for(let o of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(o))i.push(parseInt(o,10));else if(a=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,u,c,p]=a;if(u&&p){u=parseInt(u),p=parseInt(p);const f=u]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}qa.displayName="c";qa.aliases=[];function qa(e){e.register(Mt),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Au.displayName="cpp";Au.aliases=[];function Au(e){e.register(qa),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}P2.displayName="arduino";P2.aliases=["ino"];function P2(e){e.register(Au),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}Op.displayName="bash";Op.aliases=["sh","shell"];function Op(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=i.variable[1].inside,s=0;s>/g,function(oe,O){return"(?:"+me[+O]+")"})}function r(N,me,oe){return RegExp(n(N,me),oe||"")}function i(N,me){for(var oe=0;oe>/g,function(){return"(?:"+N+")"});return N.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(N){return"\\b(?:"+N.trim().replace(/ /g,"|")+")\\b"}var s=o(a.typeDeclaration),u=RegExp(o(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=o(a.typeDeclaration+" "+a.contextual+" "+a.other),p=o(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,E=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),b=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,E]),T=/\[\s*(?:,\s*)*\]/.source,v=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,T]),y=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,m,T]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[y]),A=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,b,T]),D={keyword:u,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:D},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,A]),lookbehind:!0,inside:D},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,E]),lookbehind:!0,inside:D},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:D},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[A,p,g]),inside:D}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[A,b]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[A]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:D}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,E,g,A,u.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[E,m]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(A),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var W=R+"|"+k,P=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[W]),Q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),z=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,le=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,Q]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[z,le]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[z]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[Q]),inside:t.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var he=/:[^}\r\n]+/.source,de=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),fe=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[de,he]),Z=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[W]),2),V=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Z,he]);function ce(N,me){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[N]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[me,he]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[fe]),lookbehind:!0,greedy:!0,inside:ce(fe,de)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[V]),lookbehind:!0,greedy:!0,inside:ce(V,Z)}],char:{pattern:RegExp(k),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}fr.displayName="markup";fr.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function fr(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Tl.displayName="css";Tl.aliases=[];function Tl(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}B2.displayName="diff";B2.aliases=[];function B2(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r +`)&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}};var UM=eie;const Dx=ms,n4=t2,tie=UM;let nie=class extends Dx{constructor(t){super(t),this.tokenizer=t,this.posTracker=Dx.install(t.preprocessor,tie),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;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,a){n._createCharacterToken.call(this,i,a),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===n4.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(n4.MODE).forEach(i=>{const a=n4.MODE[i];r[a]=function(o){t.ctLoc=t._getCurrentLocation(),n[a].call(this,o)}}),r}};var $M=nie;const rie=ms;let iie=class extends rie{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var aie=iie;const r4=ms,Lx=t2,oie=$M,sie=aie,lie=Za,i4=lie.TAG_NAMES;let uie=class extends r4{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===Lx.END_TAG_TOKEN&&a===n.tagName,s={};o?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const a=r4.install(this.tokenizer,oie);t.posTracker=a.posTracker,r4.install(this.openElements,sie,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===Lx.END_TAG_TOKEN&&(r.tagName===i4.HTML||r.tagName===i4.BODY&&this.openElements.hasInScope(i4.BODY)))for(let a=this.openElements.stackTop;a>=0;a--){const o=this.openElements.items[a];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),a=i.length;for(let o=0;o(Object.keys(i).forEach(a=>{r[a]=i[a]}),r),Object.create(null))},n2={};const{DOCUMENT_MODE:e1}=Za,jM="html",Nie="about:legacy-compat",Oie="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",GM=["+//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//"],Die=GM.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),Lie=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],VM=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Mie=VM.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Fx(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Px(e,t){for(let n=0;n-1)return e1.QUIRKS;let r=t===null?Die:GM;if(Px(n,r))return e1.QUIRKS;if(r=t===null?VM:Mie,Px(n,r))return e1.LIMITED_QUIRKS}return e1.NO_QUIRKS};n2.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Fx(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Fx(n)),r};var kl={};const a4=t2,F9=Za,ft=F9.TAG_NAMES,Tr=F9.NAMESPACES,Rh=F9.ATTRS,Bx={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Fie="definitionurl",Pie="definitionURL",Bie={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"},Uie={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Tr.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Tr.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Tr.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Tr.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Tr.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Tr.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Tr.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Tr.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Tr.XML},"xml:space":{prefix:"xml",name:"space",namespace:Tr.XML},xmlns:{prefix:"",name:"xmlns",namespace:Tr.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Tr.XMLNS}},$ie=kl.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"},zie={[ft.B]:!0,[ft.BIG]:!0,[ft.BLOCKQUOTE]:!0,[ft.BODY]:!0,[ft.BR]:!0,[ft.CENTER]:!0,[ft.CODE]:!0,[ft.DD]:!0,[ft.DIV]:!0,[ft.DL]:!0,[ft.DT]:!0,[ft.EM]:!0,[ft.EMBED]:!0,[ft.H1]:!0,[ft.H2]:!0,[ft.H3]:!0,[ft.H4]:!0,[ft.H5]:!0,[ft.H6]:!0,[ft.HEAD]:!0,[ft.HR]:!0,[ft.I]:!0,[ft.IMG]:!0,[ft.LI]:!0,[ft.LISTING]:!0,[ft.MENU]:!0,[ft.META]:!0,[ft.NOBR]:!0,[ft.OL]:!0,[ft.P]:!0,[ft.PRE]:!0,[ft.RUBY]:!0,[ft.S]:!0,[ft.SMALL]:!0,[ft.SPAN]:!0,[ft.STRONG]:!0,[ft.STRIKE]:!0,[ft.SUB]:!0,[ft.SUP]:!0,[ft.TABLE]:!0,[ft.TT]:!0,[ft.U]:!0,[ft.UL]:!0,[ft.VAR]:!0};kl.causesExit=function(e){const t=e.tagName;return t===ft.FONT&&(a4.getTokenAttr(e,Rh.COLOR)!==null||a4.getTokenAttr(e,Rh.SIZE)!==null||a4.getTokenAttr(e,Rh.FACE)!==null)?!0:zie[t]};kl.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),a=Jie[i];if(a){this.insertionMode=a;break}else if(!n&&(i===S.TD||i===S.TH)){this.insertionMode=o2;break}else if(!n&&i===S.HEAD){this.insertionMode=vc;break}else if(i===S.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===S.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===S.HTML){this.insertionMode=this.headElement?i2:r2;break}else if(n){this.insertionMode=To;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===S.TEMPLATE)break;if(i===S.TABLE){this.insertionMode=U9;return}}this.insertionMode=B9}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);if(i===S.TEMPLATE&&a===nt.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===S.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Ru.SPECIAL_ELEMENTS[r][n]}}var nae=tae;function rae(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ma(e,t),n}function iae(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function aae(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),u=s&&a>=Qie;!s||u?(u&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=oae(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function oae(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function sae(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===S.TEMPLATE&&i===nt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function lae(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Gs(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==S.TEMPLATE&&e._err(xr.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(xr.endTagWithoutMatchingOpenElement)}function Gd(e,t){e.openElements.pop(),e.insertionMode=i2,e._processToken(t)}function gae(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.BASEFONT||n===S.BGSOUND||n===S.HEAD||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.STYLE?dr(e,t):n===S.NOSCRIPT?e._err(xr.nestedNoscriptInHead):Vd(e,t)}function mae(e,t){const n=t.tagName;n===S.NOSCRIPT?(e.openElements.pop(),e.insertionMode=vc):n===S.BR?Vd(e,t):e._err(xr.endTagWithoutMatchingOpenElement)}function Vd(e,t){const n=t.type===Y.EOF_TOKEN?xr.openElementsLeftAfterEof:xr.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=vc,e._processToken(t)}function bae(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.BODY?(e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=To):n===S.FRAMESET?(e._insertElement(t,nt.HTML),e.insertionMode=s2):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.SCRIPT||n===S.STYLE||n===S.TEMPLATE||n===S.TITLE?(e._err(xr.abandonedHeadElementChild),e.openElements.push(e.headElement),dr(e,t),e.openElements.remove(e.headElement)):n===S.HEAD?e._err(xr.misplacedStartTagForHeadElement):Wd(e,t)}function yae(e,t){const n=t.tagName;n===S.BODY||n===S.HTML||n===S.BR?Wd(e,t):n===S.TEMPLATE?Nu(e,t):e._err(xr.endTagWithoutMatchingOpenElement)}function Wd(e,t){e._insertFakeElement(S.BODY),e.insertionMode=To,e._processToken(t)}function Gl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function j0(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Eae(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function vae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function _ae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,nt.HTML),e.insertionMode=s2)}function jo(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Tae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6)&&e.openElements.pop(),e._insertElement(t,nt.HTML)}function Gx(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Sae(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),n||(e.formElement=e.openElements.current))}function wae(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],a=e.treeAdapter.getTagName(i);let o=null;if(n===S.LI&&a===S.LI?o=S.LI:(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)&&(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Aae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.tokenizer.state=Y.MODE.PLAINTEXT}function Cae(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1}function kae(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);n&&(Gs(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function t1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xae(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(Gs(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Vx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Iae(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ru.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=Hr}function c1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Rae(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML);const n=Y.getTokenAttr(t,WM.TYPE);(!n||n.toLowerCase()!==qM)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Wx(e,t){e._appendElement(t,nt.HTML),t.ackSelfClosing=!0}function Nae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Oae(e,t){t.tagName=S.IMG,c1(e,t)}function Dae(e,t){e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Y.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Lg}function Lae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function Mae(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function qx(e,t){e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function Fae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode===Hr||e.insertionMode===a2||e.insertionMode===ga||e.insertionMode===ds||e.insertionMode===o2?e.insertionMode=U9:e.insertionMode=B9}function Kx(e,t){e.openElements.currentTagName===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function Yx(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,nt.HTML)}function Pae(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,nt.HTML)}function Bae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Uae(e,t){e._reconstructActiveFormattingElements(),mo.adjustTokenMathMLAttrs(t),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,nt.MATHML):e._insertElement(t,nt.MATHML),t.ackSelfClosing=!0}function $ae(e,t){e._reconstructActiveFormattingElements(),mo.adjustTokenSVGAttrs(t),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,nt.SVG):e._insertElement(t,nt.SVG),t.ackSelfClosing=!0}function ra(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function Ti(e,t){const n=t.tagName;switch(n.length){case 1:n===S.I||n===S.S||n===S.B||n===S.U?t1(e,t):n===S.P?jo(e,t):n===S.A?kae(e,t):ra(e,t);break;case 2:n===S.DL||n===S.OL||n===S.UL?jo(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?Tae(e,t):n===S.LI||n===S.DD||n===S.DT?wae(e,t):n===S.EM||n===S.TT?t1(e,t):n===S.BR?c1(e,t):n===S.HR?Nae(e,t):n===S.RB?Yx(e,t):n===S.RT||n===S.RP?Pae(e,t):n!==S.TH&&n!==S.TD&&n!==S.TR&&ra(e,t);break;case 3:n===S.DIV||n===S.DIR||n===S.NAV?jo(e,t):n===S.PRE?Gx(e,t):n===S.BIG?t1(e,t):n===S.IMG||n===S.WBR?c1(e,t):n===S.XMP?Lae(e,t):n===S.SVG?$ae(e,t):n===S.RTC?Yx(e,t):n!==S.COL&&ra(e,t);break;case 4:n===S.HTML?Eae(e,t):n===S.BASE||n===S.LINK||n===S.META?dr(e,t):n===S.BODY?vae(e,t):n===S.MAIN||n===S.MENU?jo(e,t):n===S.FORM?Sae(e,t):n===S.CODE||n===S.FONT?t1(e,t):n===S.NOBR?xae(e,t):n===S.AREA?c1(e,t):n===S.MATH?Uae(e,t):n===S.MENU?Bae(e,t):n!==S.HEAD&&ra(e,t);break;case 5:n===S.STYLE||n===S.TITLE?dr(e,t):n===S.ASIDE?jo(e,t):n===S.SMALL?t1(e,t):n===S.TABLE?Iae(e,t):n===S.EMBED?c1(e,t):n===S.INPUT?Rae(e,t):n===S.PARAM||n===S.TRACK?Wx(e,t):n===S.IMAGE?Oae(e,t):n!==S.FRAME&&n!==S.TBODY&&n!==S.TFOOT&&n!==S.THEAD&&ra(e,t);break;case 6:n===S.SCRIPT?dr(e,t):n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?jo(e,t):n===S.BUTTON?Cae(e,t):n===S.STRIKE||n===S.STRONG?t1(e,t):n===S.APPLET||n===S.OBJECT?Vx(e,t):n===S.KEYGEN?c1(e,t):n===S.SOURCE?Wx(e,t):n===S.IFRAME?Mae(e,t):n===S.SELECT?Fae(e,t):n===S.OPTION?Kx(e,t):ra(e,t);break;case 7:n===S.BGSOUND?dr(e,t):n===S.DETAILS||n===S.ADDRESS||n===S.ARTICLE||n===S.SECTION||n===S.SUMMARY?jo(e,t):n===S.LISTING?Gx(e,t):n===S.MARQUEE?Vx(e,t):n===S.NOEMBED?qx(e,t):n!==S.CAPTION&&ra(e,t);break;case 8:n===S.BASEFONT?dr(e,t):n===S.FRAMESET?_ae(e,t):n===S.FIELDSET?jo(e,t):n===S.TEXTAREA?Dae(e,t):n===S.TEMPLATE?dr(e,t):n===S.NOSCRIPT?e.options.scriptingEnabled?qx(e,t):ra(e,t):n===S.OPTGROUP?Kx(e,t):n!==S.COLGROUP&&ra(e,t);break;case 9:n===S.PLAINTEXT?Aae(e,t):ra(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?jo(e,t):ra(e,t);break;default:ra(e,t)}}function zae(e){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=$9)}function Hae(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=$9,e._processToken(t))}function Ps(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function jae(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):e.openElements.remove(n))}function Gae(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(S.P),e._closePElement()}function Vae(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function Wae(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function qae(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Xx(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Kae(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(S.BR),e.openElements.pop(),e.framesetOk=!1}function Ma(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function z9(e,t){const n=t.tagName;switch(n.length){case 1:n===S.A||n===S.B||n===S.I||n===S.S||n===S.U?Gs(e,t):n===S.P?Gae(e):Ma(e,t);break;case 2:n===S.DL||n===S.UL||n===S.OL?Ps(e,t):n===S.LI?Vae(e):n===S.DD||n===S.DT?Wae(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?qae(e):n===S.BR?Kae(e):n===S.EM||n===S.TT?Gs(e,t):Ma(e,t);break;case 3:n===S.BIG?Gs(e,t):n===S.DIR||n===S.DIV||n===S.NAV||n===S.PRE?Ps(e,t):Ma(e,t);break;case 4:n===S.BODY?zae(e):n===S.HTML?Hae(e,t):n===S.FORM?jae(e):n===S.CODE||n===S.FONT||n===S.NOBR?Gs(e,t):n===S.MAIN||n===S.MENU?Ps(e,t):Ma(e,t);break;case 5:n===S.ASIDE?Ps(e,t):n===S.SMALL?Gs(e,t):Ma(e,t);break;case 6:n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Ps(e,t):n===S.APPLET||n===S.OBJECT?Xx(e,t):n===S.STRIKE||n===S.STRONG?Gs(e,t):Ma(e,t);break;case 7:n===S.ADDRESS||n===S.ARTICLE||n===S.DETAILS||n===S.SECTION||n===S.SUMMARY||n===S.LISTING?Ps(e,t):n===S.MARQUEE?Xx(e,t):Ma(e,t);break;case 8:n===S.FIELDSET?Ps(e,t):n===S.TEMPLATE?Nu(e,t):Ma(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Ps(e,t):Ma(e,t);break;default:Ma(e,t)}}function Go(e,t){e.tmplInsertionModeStackTop>-1?nF(e,t):e.stopped=!0}function Yae(e,t){t.tagName===S.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Xae(e,t){e._err(xr.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Vo(e,t){const n=e.openElements.currentTagName;n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=XM,e._processToken(t)):ia(e,t)}function Zae(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,nt.HTML),e.insertionMode=a2}function Qae(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=Wp}function Jae(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.COLGROUP),e.insertionMode=Wp,e._processToken(t)}function eoe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=ga}function toe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.TBODY),e.insertionMode=ga,e._processToken(t)}function noe(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processToken(t))}function roe(e,t){const n=Y.getTokenAttr(t,WM.TYPE);n&&n.toLowerCase()===qM?e._appendElement(t,nt.HTML):ia(e,t),t.ackSelfClosing=!0}function ioe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,nt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function H9(e,t){const n=t.tagName;switch(n.length){case 2:n===S.TD||n===S.TH||n===S.TR?toe(e,t):ia(e,t);break;case 3:n===S.COL?Jae(e,t):ia(e,t);break;case 4:n===S.FORM?ioe(e,t):ia(e,t);break;case 5:n===S.TABLE?noe(e,t):n===S.STYLE?dr(e,t):n===S.TBODY||n===S.TFOOT||n===S.THEAD?eoe(e,t):n===S.INPUT?roe(e,t):ia(e,t);break;case 6:n===S.SCRIPT?dr(e,t):ia(e,t);break;case 7:n===S.CAPTION?Zae(e,t):ia(e,t);break;case 8:n===S.COLGROUP?Qae(e,t):n===S.TEMPLATE?dr(e,t):ia(e,t);break;default:ia(e,t)}}function j9(e,t){const n=t.tagName;n===S.TABLE?e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode()):n===S.TEMPLATE?Nu(e,t):n!==S.BODY&&n!==S.CAPTION&&n!==S.COL&&n!==S.COLGROUP&&n!==S.HTML&&n!==S.TBODY&&n!==S.TD&&n!==S.TFOOT&&n!==S.TH&&n!==S.THEAD&&n!==S.TR&&ia(e,t)}function ia(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function aoe(e,t){e.pendingCharacterTokens.push(t)}function ooe(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function sd(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function _oe(e,t){t.tagName===S.HTML?Ti(e,t):Pg(e,t)}function Toe(e,t){t.tagName===S.HTML?e.fragmentContext||(e.insertionMode=QM):Pg(e,t)}function Pg(e,t){e.insertionMode=To,e._processToken(t)}function Soe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.FRAMESET?e._insertElement(t,nt.HTML):n===S.FRAME?(e._appendElement(t,nt.HTML),t.ackSelfClosing=!0):n===S.NOFRAMES&&dr(e,t)}function woe(e,t){t.tagName===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==S.FRAMESET&&(e.insertionMode=ZM))}function Aoe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.NOFRAMES&&dr(e,t)}function Coe(e,t){t.tagName===S.HTML&&(e.insertionMode=JM)}function koe(e,t){t.tagName===S.HTML?Ti(e,t):Nh(e,t)}function Nh(e,t){e.insertionMode=To,e._processToken(t)}function xoe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.NOFRAMES&&dr(e,t)}function Ioe(e,t){t.chars=Yie.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Roe(e,t){e._insertCharacters(t),e.framesetOk=!1}function Noe(e,t){if(mo.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==nt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===nt.MATHML?mo.adjustTokenMathMLAttrs(t):r===nt.SVG&&(mo.adjustTokenSVGTagName(t),mo.adjustTokenSVGAttrs(t)),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Ooe(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===nt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Doe=Vi(nae),Zx=/[#.]/g;function Loe(e,t){const n=e||"",r={};let i=0,a,o;for(;i-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function a(o){const s=o&&o.line,u=o&&o.column;if(typeof s=="number"&&typeof u=="number"&&!Number.isNaN(s)&&!Number.isNaN(u)&&s-1 in n){const c=(n[s-2]||0)+u-1||0;if(c>-1&&c{const P=N;if(P.value.stitch&&q!==null&&B!==null)return q.children[B]=P.value.stitch,B}),e.type!=="root"&&f.type==="root"&&f.children.length===1)return f.children[0];return f;function m(){const N={nodeName:"template",tagName:"template",attrs:[],namespaceURI:wp.html,childNodes:[]},B={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:wp.html,childNodes:[]},q={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(B,N),i._pushTmplInsertionMode(ase),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),i._adoptNodes(B.childNodes[0],q),q}function g(){const N=i.treeAdapter.createDocument();if(i._bootstrap(N,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),N}function b(N){let B=-1;if(N)for(;++BsF(t,n,e)}const vse=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,_se=Object.hasOwnProperty;class Tse{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Sse(t,n===!0);const a=i;for(;_se.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Sse(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(vse,"").replace(/ /g,"-"))}const wse={}.hasOwnProperty;function Vr(e,t){const n=typeof t=="string"&&Ase(e)&&e.type==="element"&&e.properties&&wse.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}function Ase(e){return!!(e&&typeof e=="object"&&"type"in e)}function lF(e){const t=e&&e.type==="element"&&e.tagName.toLowerCase()||"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}function R1(e){return"children"in e?uF(e):"value"in e?e.value:""}function Cse(e){return e.type==="text"?e.value:"children"in e?uF(e):""}function uF(e){let t=-1;const n=[];for(;++t{tI.reset(),Hi(n,"element",r=>{lF(r)&&r.properties&&!Vr(r,"id")&&(r.properties.id=t+tI.slug(R1(r)))})}}const cF=function(e){if(e==null)return W9;if(typeof e=="string")return Ise(e);if(typeof e=="object")return xse(e);if(typeof e=="function")return dF(e);throw new Error("Expected function, string, or array as test")};function xse(e){const t=[];let n=-1;for(;++n{Hi(g,"element",(b,y,T)=>{if(lF(b)&&Vr(b,"id")&&a(b,y,T))return o(b,y,T)})};function s(g){return g.children[n==="prepend"?"unshift":"push"](m(g,k1(!0,{},t),p(r,g))),[$d]}function u(g,b,y){if(typeof b!="number"||!y)return;const T=m(g,k1(!0,{},t),p(r,g));let E=n==="before"?[T,g]:[g,T];if(i){const v=f(i,g);v&&!Array.isArray(v)&&v.type==="element"&&(v.children=E,E=[v])}return y.children.splice(b,1,...E),[$d,b+E.length]}function c(g){return g.children=[m(g,k1(!0,{},t),g.children)],[$d]}function p(g,b){const y=f(g,b);return Array.isArray(y)?y:[y]}function f(g,b){return typeof g=="function"?g(b):k1(!0,Array.isArray(g)?[]:{},g)}function m(g,b,y){return{type:"element",tagName:"a",properties:Object.assign({},b,{href:"#"+(g.properties||{}).id}),children:y}}}const Ose=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Dse=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},pF=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?pF(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},nI=({value:e=""})=>{const t=Ose(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},rI=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Lse=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Hi(r,"element",(i,a,o)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&o&&Array.isArray(o.children)&&o.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof a=="number"){const u=Dse(o.children,a);if(u){const c=nI(u);Object.keys(c).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=rI(s.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&o&&Array.isArray(o.children)&&typeof a=="number"){const s=pF(o.children,a,"",n);if(s){const u=nI(s);Object.keys(u).length>0&&(i.properties=rI(i.properties,u,t))}}})}},Mse=Lse,Fse=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Hi(r,(i,a,o)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let c=(u.value||"").trim();if(c=c.replace(/^/,"$1"),c===t)return s=!0,!1;if(c===n)return s=!1,!1}return!s})}})}},Pse=Fse,Bse={}.hasOwnProperty,Use=function(e,t,n){const r=Qm(n||t),i=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,a=i??!0;return o(e);function o(s,u,c){const p=[];if(!r(s,u,c))return null;if(s.children){let g=-1;for(;++g0&&p.length===0)return null}const f={};let m;for(m in s)Bse.call(s,m)&&(f[m]=m==="children"?p:s[m]);return f}};var cy={exports:{}};(function(e,t){function n(r){let i=[],a;for(let o of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(o))i.push(parseInt(o,10));else if(a=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,u,c,p]=a;if(u&&p){u=parseInt(u),p=parseInt(p);const f=u]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Qa.displayName="c";Qa.aliases=[];function Qa(e){e.register(Lt),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Ou.displayName="cpp";Ou.aliases=[];function Ou(e){e.register(Qa),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}u2.displayName="arduino";u2.aliases=["ino"];function u2(e){e.register(Ou),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}qp.displayName="bash";qp.aliases=["sh","shell"];function qp(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=i.variable[1].inside,s=0;s>/g,function(le,L){return"(?:"+pe[+L]+")"})}function r(D,pe,le){return RegExp(n(D,pe),le||"")}function i(D,pe){for(var le=0;le>/g,function(){return"(?:"+D+")"});return D.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(D){return"\\b(?:"+D.trim().replace(/ /g,"|")+")\\b"}var s=o(a.typeDeclaration),u=RegExp(o(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=o(a.typeDeclaration+" "+a.contextual+" "+a.other),p=o(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,b=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),y=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,b]),T=/\[\s*(?:,\s*)*\]/.source,E=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,T]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,m,T]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),A=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,T]),R={keyword:u,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,N=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,A]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,b]),lookbehind:!0,inside:R},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:R},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[E]),lookbehind:!0,inside:R},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[A,p,g]),inside:R}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:R},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[A,y]),inside:R,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[A]),lookbehind:!0,inside:R,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:R}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,b,g,A,u.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,m]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(A),greedy:!0,inside:R},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var q=N+"|"+k,P=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[q]),Q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),$=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,oe=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,Q]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[$,oe]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[$]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[Q]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var fe=/:[^}\r\n]+/.source,ce=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),De=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ce,fe]),H=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[q]),2),W=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,fe]);function se(D,pe){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[D]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[pe,fe]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[De]),lookbehind:!0,greedy:!0,inside:se(De,ce)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[W]),lookbehind:!0,greedy:!0,inside:se(W,H)}],char:{pattern:RegExp(k),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}gr.displayName="markup";gr.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function gr(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}xl.displayName="css";xl.aliases=[];function xl(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}c2.displayName="diff";c2.aliases=[];function c2(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}U2.displayName="go";U2.aliases=[];function U2(e){e.register(Mt),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}$2.displayName="ini";$2.aliases=[];function $2(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}xu.displayName="java";xu.aliases=[];function xu(e){e.register(Mt),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}z2.displayName="regex";z2.aliases=[];function z2(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",s=RegExp(o+"-"+o),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}dc.displayName="json";dc.aliases=["webmanifest"];function dc(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}H2.displayName="kotlin";H2.aliases=["kt","kts"];function H2(e){e.register(Mt),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}j2.displayName="less";j2.aliases=[];function j2(e){e.register(Tl),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Dp.displayName="lua";Dp.aliases=[];function Dp(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}G2.displayName="makefile";G2.aliases=[];function G2(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}Lp.displayName="yaml";Lp.aliases=["yml"];function Lp(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return u});return RegExp(p,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}V2.displayName="markdown";V2.aliases=["md"];function V2(e){e.register(fr),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(u){s!==u&&(t.languages.markdown[s].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function u(c){if(!(!c||typeof c=="string"))for(var p=0,f=c.length;p]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}q2.displayName="perl";q2.aliases=[];function q2(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}kr.displayName="markup-templating";kr.aliases=[];function kr(e){e.register(fr),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,o){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(a,function(u){if(typeof o=="function"&&!o(u))return u;for(var c=s.length,p;r.code.indexOf(p=n(i,c))!==-1;)++c;return s[c]=u,p}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,o=Object.keys(r.tokenStack);function s(u){for(var c=0;c=o.length);c++){var p=u[c];if(typeof p=="string"||p.content&&typeof p.content=="string"){var f=o[a],m=r.tokenStack[f],g=typeof p=="string"?p:p.content,E=n(i,f),b=g.indexOf(E);if(b>-1){++a;var T=g.substring(0,b),v=new t.Token(i,t.tokenize(m,r.grammar),"language-"+i,m),y=g.substring(b+E.length),w=[];T&&w.push.apply(w,s([T])),w.push(v),y&&w.push.apply(w,s([y])),typeof p=="string"?u.splice.apply(u,[c,1].concat(w)):p.content=w}}else p.content&&s(p.content)}return u}s(r.tokens)}}})}(e)}ku.displayName="php";ku.aliases=[];function ku(e){e.register(kr),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",p)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(e)}Mp.displayName="python";Mp.aliases=["py"];function Mp(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}K2.displayName="r";K2.aliases=[];function K2(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}Iu.displayName="ruby";Iu.aliases=["rb"];function Iu(e){e.register(Mt),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}Y2.displayName="rust";Y2.aliases=[];function Y2(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}X2.displayName="sass";X2.aliases=[];function X2(e){e.register(Tl),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}Z2.displayName="scss";Z2.aliases=[];function Z2(e){e.register(Tl),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}pc.displayName="sql";pc.aliases=[];function pc(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}Q2.displayName="swift";Q2.aliases=[];function Q2(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}fc.displayName="typescript";fc.aliases=["ts"];function fc(e){e.register(xr),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}Fp.displayName="basic";Fp.aliases=[];function Fp(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Pp.displayName="vbnet";Pp.aliases=[];function Pp(e){e.register(Fp),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const ak=/[#.]/g;function Zae(e,t){const n=e||"",r={};let i=0,a,o;for(;i=48&&t<=57}function ooe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function soe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function lk(e){return soe(e)||QL(e)}const Yu=String.fromCharCode,loe=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function uoe(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,o="",s,u;t.position&&("start"in t.position||"indent"in t.position?(u=t.position.indent,s=t.position.start):s=t.position);let c=(s?s.line:0)||1,p=(s?s.column:0)||1,f=g(),m;for(i--;++i<=e.length;)if(m===10&&(p=(u?u[a]:0)||1),m=e.charCodeAt(i),m===38){const T=e.charCodeAt(i+1);if(T===9||T===10||T===12||T===32||T===38||T===60||Number.isNaN(T)||n&&T===n){o+=Yu(m),p++;continue}const v=i+1;let y=v,w=v,A;if(T===35){w=++y;const z=e.charCodeAt(w);z===88||z===120?(A="hexadecimal",w=++y):A="decimal"}else A="named";let D="",k="",R="";const B=A==="named"?lk:A==="decimal"?QL:ooe;for(w--;++w<=e.length;){const z=e.charCodeAt(w);if(!B(z))break;R+=Yu(z),A==="named"&&aoe.includes(R)&&(D=R,k=sp(R))}let W=e.charCodeAt(w)===59;if(W){w++;const z=A==="named"?sp(R):!1;z&&(D=R,k=z)}let P=1+w-v,Q="";if(!(!W&&t.nonTerminated===!1))if(!R)A!=="named"&&E(4,P);else if(A==="named"){if(W&&!k)E(5,1);else if(D!==R&&(w=y+D.length,P=1+w-y,W=!1),!W){const z=D?1:3;if(t.attribute){const le=e.charCodeAt(w);le===61?(E(z,P),k=""):lk(le)?k="":E(z,P)}else E(z,P)}Q=k}else{W||E(2,P);let z=Number.parseInt(R,A==="hexadecimal"?16:10);if(coe(z))E(7,P),Q=Yu(65533);else if(z in sk)E(6,P),Q=sk[z];else{let le="";doe(z)&&E(6,P),z>65535&&(z-=65536,le+=Yu(z>>>10|55296),z=56320|z&1023),Q=le+Yu(z)}}if(Q){b(),f=g(),i=w-1,p+=w-v+1,r.push(Q);const z=g();z.offset++,t.reference&&t.reference.call(t.referenceContext,Q,{start:f,end:z},e.slice(v-1,w)),f=z}else R=e.slice(v-1,w),o+=R,p+=R.length,i=w-1}else m===10&&(c++,a++,p=0),Number.isNaN(m)?b():(o+=Yu(m),p++);return r.join("");function g(){return{line:c,column:p,offset:i+((s?s.offset:0)||0)}}function E(T,v){let y;t.warning&&(y=g(),y.column+=v,y.offset+=v,t.warning.call(t.warningContext,loe[T],y,T))}function b(){o&&(r.push(o),t.text&&t.text.call(t.textContext,o,{start:f,end:g()}),o="")}}function coe(e){return e>=55296&&e<=57343||e>1114111}function doe(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var poe=0,I0={},sr={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++poe}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(sr.util.type(t)){case"Object":if(i=sr.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=sr.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(o,s){r[s]=e(o,n)}),r);default:return t}}},languages:{plain:I0,plaintext:I0,text:I0,txt:I0,extend:function(e,t){var n=sr.util.clone(sr.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||sr.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var u=r[e];return r[e]=a,sr.languages.DFS(sr.languages,function(c,p){p===u&&c!=e&&(this[c]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=sr.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],u=sr.util.type(s);u==="Object"&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):u==="Array"&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(sr.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=sr.tokenize(r.code,r.grammar),sr.hooks.run("after-tokenize",r),Dd.stringify(sr.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new foe;return hh(i,i.head,e),JL(e,i,t,i.head,0),goe(i)},hooks:{all:{},add:function(e,t){var n=sr.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=sr.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:Dd};function Dd(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function uk(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function JL(e,t,n,r,i,a){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var u=0;u=a.reach);v+=T.value.length,T=T.next){var y=T.value;if(t.length>e.length)return;if(!(y instanceof Dd)){var w=1,A;if(m){if(A=uk(b,v,e,f),!A||A.index>=e.length)break;var B=A.index,D=A.index+A[0].length,k=v;for(k+=T.value.length;B>=k;)T=T.next,k+=T.value.length;if(k-=T.value.length,v=k,T.value instanceof Dd)continue;for(var R=T;R!==t.tail&&(ka.reach&&(a.reach=z);var le=T.prev;P&&(le=hh(t,le,P),v+=P.length),hoe(t,le,w);var he=new Dd(o,p?sr.tokenize(W,p):W,g,W);if(T=hh(t,le,he),Q&&hh(t,T,Q),w>1){var de={cause:o+","+u,reach:z};JL(e,t,n,T.prev,v,de),a&&de.reach>a.reach&&(a.reach=de.reach)}}}}}}function foe(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function hh(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function hoe(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}av.displayName="abnf";av.aliases=[];function av(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}ov.displayName="actionscript";ov.aliases=[];function ov(e){e.register(xr),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}sv.displayName="ada";sv.aliases=[];function sv(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}lv.displayName="agda";lv.aliases=[];function lv(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}uv.displayName="al";uv.aliases=[];function uv(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}cv.displayName="antlr4";cv.aliases=["g4"];function cv(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}dv.displayName="apacheconf";dv.aliases=[];function dv(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}pv.displayName="apex";pv.aliases=[];function pv(e){e.register(Mt),e.register(pc),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(o){return RegExp(o.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}fv.displayName="apl";fv.aliases=[];function fv(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}hv.displayName="applescript";hv.aliases=[];function hv(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}gv.displayName="aql";gv.aliases=[];function gv(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}mv.displayName="arff";mv.aliases=[];function mv(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}bv.displayName="armasm";bv.aliases=["arm-asm"];function bv(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}Ev.displayName="arturo";Ev.aliases=["art"];function Ev(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}vv.displayName="asciidoc";vv.aliases=["adoc"];function vv(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var o={},s=0,u=a.length;s/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}_v.displayName="asm6502";_v.aliases=[];function _v(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}Tv.displayName="asmatmel";Tv.aliases=[];function Tv(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}Sv.displayName="autohotkey";Sv.aliases=[];function Sv(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}wv.displayName="autoit";wv.aliases=[];function wv(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}Av.displayName="avisynth";Av.aliases=["avs"];function Av(e){(function(t){function n(c,p){return c.replace(/<<(\d+)>>/g,function(f,m){return p[+m]})}function r(c,p,f){return RegExp(n(c,p),f||"")}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),o=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),s=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[a,o,s].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}Cv.displayName="avro-idl";Cv.aliases=["avdl"];function Cv(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}xv.displayName="awk";xv.aliases=["gawk"];function xv(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}kv.displayName="batch";kv.aliases=[];function kv(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}Iv.displayName="bbcode";Iv.aliases=["shortcode"];function Iv(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}Rv.displayName="bbj";Rv.aliases=[];function Rv(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}Nv.displayName="bicep";Nv.aliases=[];function Nv(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}Ov.displayName="birb";Ov.aliases=[];function Ov(e){e.register(Mt),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}Dv.displayName="bison";Dv.aliases=[];function Dv(e){e.register(qa),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Lv.displayName="bnf";Lv.aliases=["rbnf"];function Lv(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}Mv.displayName="bqn";Mv.aliases=[];function Mv(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}Fv.displayName="brainfuck";Fv.aliases=[];function Fv(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}Pv.displayName="brightscript";Pv.aliases=[];function Pv(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}Bv.displayName="bro";Bv.aliases=[];function Bv(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}Uv.displayName="bsl";Uv.aliases=["oscript"];function Uv(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}$v.displayName="cfscript";$v.aliases=["cfc"];function $v(e){e.register(Mt),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}zv.displayName="chaiscript";zv.aliases=[];function zv(e){e.register(Mt),e.register(Au),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Hv.displayName="cil";Hv.aliases=[];function Hv(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}jv.displayName="cilkc";jv.aliases=["cilk-c"];function jv(e){e.register(qa),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}Gv.displayName="cilkcpp";Gv.aliases=["cilk","cilk-cpp"];function Gv(e){e.register(Au),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}Vv.displayName="clojure";Vv.aliases=[];function Vv(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}Wv.displayName="cmake";Wv.aliases=[];function Wv(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}qv.displayName="cobol";qv.aliases=[];function qv(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}Kv.displayName="coffeescript";Kv.aliases=["coffee"];function Kv(e){e.register(xr),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}Yv.displayName="concurnas";Yv.aliases=["conc"];function Yv(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}Xv.displayName="csp";Xv.aliases=[];function Xv(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}Zv.displayName="cooklang";Zv.aliases=[];function Zv(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,o=/(?:h|hours|hrs|m|min|minutes)/.source,s={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+o+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}Qv.displayName="coq";Qv.aliases=[];function Qv(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Jv.displayName="crystal";Jv.aliases=[];function Jv(e){e.register(Iu),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}ey.displayName="css-extras";ey.aliases=[];function ey(e){e.register(Tl),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}ty.displayName="csv";ty.aliases=[];function ty(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}ny.displayName="cue";ny.aliases=[];function ny(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}ry.displayName="cypher";ry.aliases=[];function ry(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}iy.displayName="d";iy.aliases=[];function iy(e){e.register(Mt),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}ay.displayName="dart";ay.aliases=[];function ay(e){e.register(Mt),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}oy.displayName="dataweave";oy.aliases=[];function oy(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}sy.displayName="dax";sy.aliases=[];function sy(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}ly.displayName="dhall";ly.aliases=[];function ly(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}uy.displayName="django";uy.aliases=["jinja2"];function uy(e){e.register(kr),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}cy.displayName="dns-zone-file";cy.aliases=["dns-zone"];function cy(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}dy.displayName="docker";dy.aliases=["dockerfile"];function dy(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),o={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(c,p){return c=c.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(c,p)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}py.displayName="dot";py.aliases=["gv"];function py(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,o){return RegExp(a.replace(//g,function(){return n}),o)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}fy.displayName="ebnf";fy.aliases=[];function fy(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}hy.displayName="editorconfig";hy.aliases=[];function hy(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}gy.displayName="eiffel";gy.aliases=[];function gy(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}my.displayName="ejs";my.aliases=["eta"];function my(e){e.register(xr),e.register(kr),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}by.displayName="elixir";by.aliases=[];function by(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}Ey.displayName="elm";Ey.aliases=[];function Ey(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}vy.displayName="etlua";vy.aliases=[];function vy(e){e.register(Dp),e.register(kr),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}yy.displayName="erb";yy.aliases=[];function yy(e){e.register(kr),e.register(Iu),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}_y.displayName="erlang";_y.aliases=[];function _y(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}Ty.displayName="excel-formula";Ty.aliases=["xls","xlsx"];function Ty(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}Sy.displayName="fsharp";Sy.aliases=[];function Sy(e){e.register(Mt),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}wy.displayName="factor";wy.aliases=[];function wy(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(c){return new RegExp("(^|\\s)(?:"+c.map(a).join("|")+")(?=\\s|$)")},s={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(s).forEach(function(c){i[c].pattern=o(s[c])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=o(u),t.languages.factor=i})(e)}Ay.displayName="false";Ay.aliases=[];function Ay(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}xy.displayName="flow";xy.aliases=[];function xy(e){e.register(xr),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}ky.displayName="fortran";ky.aliases=[];function ky(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}Iy.displayName="ftl";Iy.aliases=[];function Iy(e){e.register(kr),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",o)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}Ry.displayName="gml";Ry.aliases=["gamemakerlanguage"];function Ry(e){e.register(Mt),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}Ny.displayName="gap";Ny.aliases=[];function Ny(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}Oy.displayName="gcode";Oy.aliases=[];function Oy(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}Dy.displayName="gdscript";Dy.aliases=[];function Dy(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}Ly.displayName="gedcom";Ly.aliases=[];function Ly(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}My.displayName="gettext";My.aliases=["po"];function My(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}Fy.displayName="gherkin";Fy.aliases=[];function Fy(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}Py.displayName="git";Py.aliases=[];function Py(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}By.displayName="glsl";By.aliases=[];function By(e){e.register(qa),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}Uy.displayName="gn";Uy.aliases=["gni"];function Uy(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}$y.displayName="linker-script";$y.aliases=["ld"];function $y(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}zy.displayName="go-module";zy.aliases=["go-mod"];function zy(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}Hy.displayName="gradle";Hy.aliases=[];function Hy(e){e.register(Mt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}jy.displayName="graphql";jy.aliases=[];function jy(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function a(T){return r[i+T]}function o(T,v){v=v||0;for(var y=0;y0)){var g=s(/^\{$/,/^\}$/);if(g===-1)continue;for(var E=i;E=0&&u(b,"variable-input")}}}}})}Gy.displayName="groovy";Gy.aliases=[];function Gy(e){e.register(Mt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}Vy.displayName="textile";Vy.aliases=[];function Vy(e){e.register(fr),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,m){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),m||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),s=o.phrase.inside,u={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=s.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=s.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark}(e)}Wy.displayName="haml";Wy.aliases=[];function Wy(e){e.register(Iu),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,o=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}Bp.displayName="haskell";Bp.aliases=["hs"];function Bp(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}Ky.displayName="haxe";Ky.aliases=[];function Ky(e){e.register(Mt),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}Yy.displayName="hcl";Yy.aliases=[];function Yy(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}Xy.displayName="hlsl";Xy.aliases=[];function Xy(e){e.register(qa),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}Zy.displayName="hoon";Zy.aliases=[];function Zy(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}Qy.displayName="hpkp";Qy.aliases=[];function Qy(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Jy.displayName="hsts";Jy.aliases=[];function Jy(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e6.displayName="uri";e6.aliases=["url"];function e6(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}t6.displayName="http";t6.aliases=[];function t6(e){(function(t){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function o(p){var f=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var s;for(var u in i)if(i[u]){s=s||{};var c=a[u]?o(u):u;s[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}s&&t.languages.insertBefore("http","header",s)})(e)}n6.displayName="ichigojam";n6.aliases=[];function n6(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}r6.displayName="icon";r6.aliases=[];function r6(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}i6.displayName="icu-message-format";i6.aliases=[];function i6(e){(function(t){function n(u,c){return c<=0?/[]/.source:u.replace(//g,function(){return n(u,c-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},o=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(o),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":s,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":s,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},s.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}a6.displayName="idris";a6.aliases=["idr"];function a6(e){e.register(Bp),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}o6.displayName="ignore";o6.aliases=["gitignore","hgignore","npmignore"];function o6(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}s6.displayName="inform7";s6.aliases=[];function s6(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}l6.displayName="io";l6.aliases=[];function l6(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}gc.displayName="javadoclike";gc.aliases=[];function gc(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,o){var s="doc-comment",u=t.languages[a];if(u){var c=u[s];if(!c){var p={};p[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=t.languages.insertBefore(a,"comment",p),c=u[s]}if(c instanceof RegExp&&(c=u[s]={pattern:c}),Array.isArray(c))for(var f=0,m=c.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}d6.displayName="javadoc";d6.aliases=[];function d6(e){e.register(xu),e.register(gc),e.register(fr),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}p6.displayName="javastacktrace";p6.aliases=[];function p6(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}f6.displayName="jexl";f6.aliases=[];function f6(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}h6.displayName="jolie";h6.aliases=[];function h6(e){e.register(Mt),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}g6.displayName="jq";g6.aliases=[];function g6(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}m6.displayName="js-templates";m6.aliases=[];function m6(e){e.register(xr),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],o=i.pattern.source;function s(E,b){if(t.languages[E])return{pattern:RegExp("((?:"+b+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:E}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function u(E,b){return"___"+b.toUpperCase()+"_"+E+"___"}function c(E,b,T){var v={code:E,grammar:b,language:T};return t.hooks.run("before-tokenize",v),v.tokens=t.tokenize(v.code,v.grammar),t.hooks.run("after-tokenize",v),v.tokens}function p(E){var b={};b["interpolation-punctuation"]=a;var T=t.tokenize(E,b);if(T.length===3){var v=[1,1];v.push.apply(v,c(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,v)}return new t.Token("interpolation",T,i.alias,E)}function f(E,b,T){var v=t.tokenize(E,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),y=0,w={},A=v.map(function(B){if(typeof B=="string")return B;for(var W=B.content,P;E.indexOf(P=u(y++,T))!==-1;);return w[P]=W,P}).join(""),D=c(A,b,T),k=Object.keys(w);y=0;function R(B){for(var W=0;W=k.length)return;var P=B[W];if(typeof P=="string"||typeof P.content=="string"){var Q=k[y],z=typeof P=="string"?P:P.content,le=z.indexOf(Q);if(le!==-1){++y;var he=z.substring(0,le),de=p(w[Q]),fe=z.substring(le+Q.length),Z=[];if(he&&Z.push(he),Z.push(de),fe){var V=[fe];R(V),Z.push.apply(Z,V)}typeof P=="string"?(B.splice.apply(B,[W,1].concat(Z)),W+=Z.length-1):P.content=Z}}else{var ce=P.content;Array.isArray(ce)?R(ce):R([ce])}}}return R(D),new t.Token(T,D,"language-"+T,E)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(E){if(!(E.language in m))return;function b(T){for(var v=0,y=T.length;v\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}E6.displayName="n4js";E6.aliases=["n4jsd"];function E6(e){e.register(xr),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}v6.displayName="js-extras";v6.aliases=[];function v6(e){e.register(xr),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(u,c){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}S6.displayName="julia";S6.aliases=[];function S6(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}w6.displayName="keepalived";w6.aliases=[];function w6(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}A6.displayName="keyman";A6.aliases=[];function A6(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}C6.displayName="kumir";C6.aliases=["kum"];function C6(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}x6.displayName="kusto";x6.aliases=[];function x6(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}k6.displayName="latex";k6.aliases=["context","tex"];function k6(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}I6.displayName="latte";I6.aliases=[];function I6(e){e.register(Mt),e.register(kr),e.register(ku),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}Up.displayName="scheme";Up.aliases=[];function Up(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}R6.displayName="lilypond";R6.aliases=["ly"];function R6(e){e.register(Up),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}N6.displayName="liquid";N6.aliases=[];function N6(e){e.register(kr),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var o=a[1];if(o==="raw"&&!r)return r=!0,!0;if(o==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}O6.displayName="lisp";O6.aliases=["elisp","emacs","emacs-lisp"];function O6(e){(function(t){function n(E){return RegExp(/(\()/.source+"(?:"+E+")"+/(?=[\s\)])/.source)}function r(E){return RegExp(/([\s([])/.source+"(?:"+E+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,o="(\\()",s="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(o+c+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:f},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=g,p.defun.inside.arguments=t.util.clone(g),p.defun.inside.arguments.inside.sublist=g,t.languages.lisp=p,t.languages.elisp=p,t.languages.emacs=p,t.languages["emacs-lisp"]=p})(e)}D6.displayName="livescript";D6.aliases=[];function D6(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}L6.displayName="llvm";L6.aliases=[];function L6(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}M6.displayName="log";M6.aliases=[];function M6(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}F6.displayName="lolcode";F6.aliases=[];function F6(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}P6.displayName="magma";P6.aliases=[];function P6(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}J2.displayName="mata";J2.aliases=[];function J2(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}B6.displayName="matlab";B6.aliases=[];function B6(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}U6.displayName="maxscript";U6.aliases=[];function U6(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}$6.displayName="mel";$6.aliases=[];function $6(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}z6.displayName="mermaid";z6.aliases=[];function z6(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}H6.displayName="metafont";H6.aliases=[];function H6(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}j6.displayName="mizar";j6.aliases=[];function j6(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}G6.displayName="mongodb";G6.aliases=[];function G6(e){e.register(xr),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}V6.displayName="monkey";V6.aliases=[];function V6(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}W6.displayName="moonscript";W6.aliases=["moon"];function W6(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}q6.displayName="n1ql";q6.aliases=[];function q6(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}K6.displayName="nand2tetris-hdl";K6.aliases=[];function K6(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}Y6.displayName="naniscript";Y6.aliases=["nani"];function Y6(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(o){var s=o.tokens;s.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=a(u);i(c)||(u.type="bad-line",u.content=c)}})});function i(o){for(var s="[]{}",u=[],c=0;c=&|$!]/}}Z6.displayName="neon";Z6.aliases=[];function Z6(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}Q6.displayName="nevod";Q6.aliases=[];function Q6(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}J6.displayName="nginx";J6.aliases=[];function J6(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}e8.displayName="nim";e8.aliases=[];function e8(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}t8.displayName="nix";t8.aliases=[];function t8(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}n8.displayName="nsis";n8.aliases=[];function n8(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}r8.displayName="ocaml";r8.aliases=[];function r8(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}i8.displayName="odin";i8.aliases=[];function i8(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}a8.displayName="opencl";a8.aliases=[];function a8(e){e.register(qa),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}o8.displayName="openqasm";o8.aliases=["qasm"];function o8(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}s8.displayName="oz";s8.aliases=[];function s8(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}l8.displayName="parigp";l8.aliases=[];function l8(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}u8.displayName="parser";u8.aliases=[];function u8(e){e.register(fr),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}c8.displayName="pascal";c8.aliases=["objectpascal"];function c8(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}d8.displayName="pascaligo";d8.aliases=[];function d8(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,s){return o[s]=i[s],o},{});i["class-name"].forEach(function(o){o.inside=a})})(e)}p8.displayName="psl";p8.aliases=[];function p8(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}f8.displayName="pcaxis";f8.aliases=["px"];function f8(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}h8.displayName="peoplecode";h8.aliases=["pcode"];function h8(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}g8.displayName="phpdoc";g8.aliases=[];function g8(e){e.register(gc),e.register(ku),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}m8.displayName="php-extras";m8.aliases=[];function m8(e){e.register(ku),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}b8.displayName="plant-uml";b8.aliases=["plantuml"];function b8(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",o=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,u=/[[?]?[ox]?/.source,c=/[ox]?[\]?]?/.source,p=u+"(?:"+a+s+"|"+o+a+"(?:"+s+")?)"+c;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+p+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}E8.displayName="plsql";E8.aliases=[];function E8(e){e.register(pc),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}v8.displayName="powerquery";v8.aliases=["mscript","pq"];function v8(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}y8.displayName="powershell";y8.aliases=[];function y8(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}_8.displayName="processing";_8.aliases=[];function _8(e){e.register(Mt),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}T8.displayName="prolog";T8.aliases=[];function T8(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}S8.displayName="promql";S8.aliases=[];function S8(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}w8.displayName="properties";w8.aliases=[];function w8(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}A8.displayName="protobuf";A8.aliases=[];function A8(e){e.register(Mt),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}C8.displayName="stylus";C8.aliases=[];function C8(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}x8.displayName="twig";x8.aliases=[];function x8(e){e.register(kr),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}k8.displayName="pug";k8.aliases=[];function k8(e){e.register(xr),e.register(fr),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,o=r.length;a",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}I8.displayName="puppet";I8.aliases=[];function I8(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}R8.displayName="pure";R8.aliases=[];function R8(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var o={};o["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},o["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",o)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}N8.displayName="purebasic";N8.aliases=["pbfasm"];function N8(e){e.register(Mt),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}O8.displayName="purescript";O8.aliases=["purs"];function O8(e){e.register(Bp),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}D8.displayName="qsharp";D8.aliases=["qs"];function D8(e){e.register(Mt),function(t){function n(g,E){return g.replace(/<<(\d+)>>/g,function(b,T){return"(?:"+E[+T]+")"})}function r(g,E,b){return RegExp(n(g,E),b||"")}function i(g,E){for(var b=0;b>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function o(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(o(a.type+" "+a.other)),u=/\b[A-Za-z_]\w*\b/.source,c=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:s,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:p},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:p}],keyword:s,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}L8.displayName="q";L8.aliases=[];function L8(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}M8.displayName="qml";M8.aliases=[];function M8(e){e.register(xr),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}F8.displayName="qore";F8.aliases=[];function F8(e){e.register(Mt),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}P8.displayName="racket";P8.aliases=["rkt"];function P8(e){e.register(Up),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}B8.displayName="cshtml";B8.aliases=["razor"];function B8(e){e.register(Cu),e.register(fr),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(y,w){for(var A=0;A/g,function(){return"(?:"+y+")"});return y.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),o=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),u=i(/<(?:[^<>'"@/]||)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+u+")?"+a+"|"+o+")*"+/(?![?!\.(\[]|<(?!\/))/.source,p=/@(?![\w()])/.source+"|"+c,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+p+`)[^"'@]*)+["'])`,m=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+m+/\s*\/?>/.source,E=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function o(c,p){return c=c.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(c,p)}a=o(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(s).join(""):""},u=function(c){for(var p=[],f=0;f0&&p[p.length-1].tagName===s(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:s(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:g=!0),(g||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var E=s(m);f0&&(typeof c[f-1]=="string"||c[f-1].type==="plain-text")&&(E=s(c[f-1])+E,c.splice(f-1,1),f--),c[f]=new t.Token("plain-text",E,null,E)}m.content&&typeof m.content!="string"&&u(m.content)}};t.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})}(e)}U8.displayName="tsx";U8.aliases=[];function U8(e){e.register(em),e.register(fc),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}$8.displayName="reason";$8.aliases=[];function $8(e){e.register(Mt),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}z8.displayName="rego";z8.aliases=[];function z8(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}H8.displayName="renpy";H8.aliases=["rpy"];function H8(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}j8.displayName="rescript";j8.aliases=["res"];function j8(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}G8.displayName="rest";G8.aliases=[];function G8(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}V8.displayName="rip";V8.aliases=[];function V8(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}W8.displayName="roboconf";W8.aliases=[];function W8(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}q8.displayName="robotframework";q8.aliases=["robot"];function q8(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,c){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in c)p[f]=c[f];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=r,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:p}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":o,documentation:a,property:s}),keywords:i("Keywords",{"keyword-name":o,documentation:a,property:s}),tasks:i("Tasks",{"task-name":o,documentation:a,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}K8.displayName="sas";K8.aliases=[];function K8(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},E={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},b={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},v=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,y={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return v}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return v}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:f,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:r,"numeric-constant":i,punctuation:p,string:c}},w={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":b,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:w,"submit-statement":T,"global-statements":b,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:w,"submit-statement":T,"global-statements":b,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":y,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:s,keyword:w,function:f,format:g,altformat:E,"global-statements":b,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:m},"macro-keyword":o,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":y,comment:u,function:f,format:g,altformat:E,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:c,step:s,keyword:w,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(e)}Y8.displayName="shell-session";Y8.aliases=["sh-session","shellsession"];function Y8(e){e.register(Op),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}X8.displayName="smali";X8.aliases=[];function X8(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}Z8.displayName="smalltalk";Z8.aliases=[];function Z8(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}Q8.displayName="smarty";Q8.aliases=[];function Q8(e){e.register(kr),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",o="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(u){return u===o&&(s=!1),s?!1:(u===a&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}J8.displayName="sml";J8.aliases=["smlnj"];function J8(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}e_.displayName="solidity";e_.aliases=["sol"];function e_(e){e.register(Mt),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}t_.displayName="solution-file";t_.aliases=["sln"];function t_(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}n_.displayName="soy";n_.aliases=[];function n_(e){e.register(kr),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",s="{/literal}",u=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(c){return c===s&&(u=!1),u?!1:(c===o&&(u=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}tm.displayName="turtle";tm.aliases=["trig"];function tm(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}r_.displayName="sparql";r_.aliases=["rq"];function r_(e){e.register(tm),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}i_.displayName="splunk-spl";i_.aliases=[];function i_(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}a_.displayName="sqf";a_.aliases=[];function a_(e){e.register(Mt),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}o_.displayName="squirrel";o_.aliases=[];function o_(e){e.register(Mt),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}s_.displayName="stan";s_.aliases=[];function s_(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}l_.displayName="stata";l_.aliases=[];function l_(e){e.register(xu),e.register(J2),e.register(Mp),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}u_.displayName="iecst";u_.aliases=[];function u_(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}c_.displayName="supercollider";c_.aliases=["sclang"];function c_(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}d_.displayName="systemd";d_.aliases=[];function d_(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}$p.displayName="t4-templating";$p.aliases=[];function $p(e){(function(t){function n(i,a,o){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:o}}}}function r(i){var a=t.languages[i],o="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,o),"class-feature":n("\\+",a,o),standard:n("",a,o)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}p_.displayName="t4-cs";p_.aliases=["t4"];function p_(e){e.register(Cu),e.register($p),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}f_.displayName="t4-vb";f_.aliases=[];function f_(e){e.register($p),e.register(Pp),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}h_.displayName="tap";h_.aliases=[];function h_(e){e.register(Lp),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}g_.displayName="tcl";g_.aliases=[];function g_(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}m_.displayName="tt2";m_.aliases=[];function m_(e){e.register(Mt),e.register(kr),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}b_.displayName="toml";b_.aliases=[];function b_(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}E_.displayName="tremor";E_.aliases=["trickle","troy"];function E_(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}v_.displayName="typoscript";v_.aliases=["tsconfig"];function v_(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}y_.displayName="unrealscript";y_.aliases=["uc","uscript"];function y_(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}__.displayName="uorazor";__.aliases=[];function __(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}T_.displayName="v";T_.aliases=[];function T_(e){e.register(Mt),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}S_.displayName="vala";S_.aliases=[];function S_(e){e.register(Mt),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}w_.displayName="velocity";w_.aliases=[];function w_(e){e.register(fr),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}A_.displayName="verilog";A_.aliases=[];function A_(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}C_.displayName="vhdl";C_.aliases=[];function C_(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}x_.displayName="vim";x_.aliases=[];function x_(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}k_.displayName="visual-basic";k_.aliases=["vb","vba"];function k_(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}I_.displayName="warpscript";I_.aliases=[];function I_(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}R_.displayName="wasm";R_.aliases=[];function R_(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}N_.displayName="web-idl";N_.aliases=["webidl"];function N_(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}O_.displayName="wgsl";O_.aliases=[];function O_(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}D_.displayName="wiki";D_.aliases=[];function D_(e){e.register(fr),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}L_.displayName="wolfram";L_.aliases=["mathematica","nb","wl"];function L_(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}M_.displayName="wren";M_.aliases=[];function M_(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}F_.displayName="xeora";F_.aliases=["xeoracube"];function F_(e){e.register(fr),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}P_.displayName="xml-doc";P_.aliases=[];function P_(e){e.register(fr),function(t){function n(o,s){t.languages[o]&&t.languages.insertBefore(o,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}B_.displayName="xojo";B_.aliases=[];function B_(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}U_.displayName="xquery";U_.aliases=[];function U_(e){e.register(fr),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],o=0;o0&&a[a.length-1].tagName===n(s.content[0].content[1])&&a.pop():s.content[s.content.length-1].content==="/>"||a.push({tagName:n(s.content[0].content[1]),openedBraces:0}):a.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[o+1]||i[o+1].type!=="punctuation"||i[o+1].content!=="{")&&(!i[o-1]||i[o-1].type!=="plain-text"||i[o-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?a[a.length-1].openedBraces--:s.type!=="comment"&&(u=!0)),(u||typeof s=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var c=n(s);o0&&(typeof i[o-1]=="string"||i[o-1].type==="plain-text")&&(c=n(i[o-1])+c,i.splice(o-1,1),o--),/^\s+$/.test(c)?i[o]=c:i[o]=new t.Token("plain-text",c,null,c)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}$_.displayName="yang";$_.aliases=[];function $_(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}z_.displayName="zig";z_.aliases=[];function z_(e){(function(t){function n(c){return function(){return c}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),u="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+s+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=t.languages.zig)})})(e)}L.register(fr);L.register(Tl);L.register(Mt);L.register(z2);L.register(xr);L.register(iv);L.register(av);L.register(ov);L.register(sv);L.register(lv);L.register(uv);L.register(cv);L.register(dv);L.register(pc);L.register(pv);L.register(fv);L.register(hv);L.register(gv);L.register(qa);L.register(Au);L.register(P2);L.register(mv);L.register(bv);L.register(Op);L.register(Lp);L.register(V2);L.register(Ev);L.register(vv);L.register(Cu);L.register(yv);L.register(_v);L.register(Tv);L.register(Sv);L.register(wv);L.register(Av);L.register(Cv);L.register(xv);L.register(Fp);L.register(kv);L.register(Iv);L.register(Rv);L.register(Nv);L.register(Ov);L.register(Dv);L.register(Lv);L.register(Mv);L.register(Fv);L.register(Pv);L.register(Bv);L.register(Uv);L.register($v);L.register(zv);L.register(Hv);L.register(jv);L.register(Gv);L.register(Vv);L.register(Wv);L.register(qv);L.register(Kv);L.register(Yv);L.register(Xv);L.register(Zv);L.register(Qv);L.register(Iu);L.register(Jv);L.register(ey);L.register(ty);L.register(ny);L.register(ry);L.register(iy);L.register(ay);L.register(oy);L.register(sy);L.register(ly);L.register(B2);L.register(kr);L.register(uy);L.register(cy);L.register(dy);L.register(py);L.register(fy);L.register(hy);L.register(gy);L.register(my);L.register(by);L.register(Ey);L.register(Dp);L.register(vy);L.register(yy);L.register(_y);L.register(Ty);L.register(Sy);L.register(wy);L.register(Ay);L.register(Cy);L.register(xy);L.register(ky);L.register(Iy);L.register(Ry);L.register(Ny);L.register(Oy);L.register(Dy);L.register(Ly);L.register(My);L.register(Fy);L.register(Py);L.register(By);L.register(Uy);L.register($y);L.register(U2);L.register(zy);L.register(Hy);L.register(jy);L.register(Gy);L.register(j2);L.register(Z2);L.register(Vy);L.register(Wy);L.register(qy);L.register(Bp);L.register(Ky);L.register(Yy);L.register(Xy);L.register(Zy);L.register(Qy);L.register(Jy);L.register(dc);L.register(e6);L.register(t6);L.register(n6);L.register(r6);L.register(i6);L.register(a6);L.register(o6);L.register(s6);L.register($2);L.register(l6);L.register(u6);L.register(xu);L.register(ku);L.register(gc);L.register(c6);L.register(d6);L.register(p6);L.register(f6);L.register(h6);L.register(g6);L.register(m6);L.register(fc);L.register(b6);L.register(E6);L.register(v6);L.register(y6);L.register(_6);L.register(T6);L.register(S6);L.register(w6);L.register(A6);L.register(H2);L.register(C6);L.register(x6);L.register(k6);L.register(I6);L.register(Up);L.register(R6);L.register(N6);L.register(O6);L.register(D6);L.register(L6);L.register(M6);L.register(F6);L.register(P6);L.register(G2);L.register(J2);L.register(B6);L.register(U6);L.register($6);L.register(z6);L.register(H6);L.register(j6);L.register(G6);L.register(V6);L.register(W6);L.register(q6);L.register(K6);L.register(Y6);L.register(X6);L.register(Z6);L.register(Q6);L.register(J6);L.register(e8);L.register(t8);L.register(n8);L.register(W2);L.register(r8);L.register(i8);L.register(a8);L.register(o8);L.register(s8);L.register(l8);L.register(u8);L.register(c8);L.register(d8);L.register(p8);L.register(f8);L.register(h8);L.register(q2);L.register(g8);L.register(m8);L.register(b8);L.register(E8);L.register(v8);L.register(y8);L.register(_8);L.register(T8);L.register(S8);L.register(w8);L.register(A8);L.register(C8);L.register(x8);L.register(k8);L.register(I8);L.register(R8);L.register(N8);L.register(O8);L.register(Mp);L.register(D8);L.register(L8);L.register(M8);L.register(F8);L.register(K2);L.register(P8);L.register(B8);L.register(em);L.register(U8);L.register($8);L.register(z8);L.register(H8);L.register(j8);L.register(G8);L.register(V8);L.register(W8);L.register(q8);L.register(Y2);L.register(K8);L.register(X2);L.register(Y8);L.register(X8);L.register(Z8);L.register(Q8);L.register(J8);L.register(e_);L.register(t_);L.register(n_);L.register(tm);L.register(r_);L.register(i_);L.register(a_);L.register(o_);L.register(s_);L.register(l_);L.register(u_);L.register(c_);L.register(Q2);L.register(d_);L.register($p);L.register(p_);L.register(Pp);L.register(f_);L.register(h_);L.register(g_);L.register(m_);L.register(b_);L.register(E_);L.register(v_);L.register(y_);L.register(__);L.register(T_);L.register(S_);L.register(w_);L.register(A_);L.register(C_);L.register(x_);L.register(k_);L.register(I_);L.register(R_);L.register(N_);L.register(O_);L.register(D_);L.register(L_);L.register(M_);L.register(F_);L.register(P_);L.register(B_);L.register(U_);L.register($_);L.register(z_);function Mb(){Mb=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,o){var s=new RegExp(i,a);return t.set(s,o||t.get(i)),dg(s,n.prototype)}function r(i,a){var o=t.get(a);return Object.keys(o).reduce(function(s,u){return s[u]=i[o[u]],s},Object.create(null))}return Soe(n,RegExp),n.prototype.exec=function(i){var a=e.exec.call(this,i);return a&&(a.groups=r(a,this)),a},n.prototype[Symbol.replace]=function(i,a){if(typeof a=="string"){var o=t.get(this);return e[Symbol.replace].call(this,i,a.replace(/\$<([^>]+)>/g,function(u,c){return"$"+o[c]}))}if(typeof a=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(r(u,s)),a.apply(this,u)})}return e[Symbol.replace].call(this,i,a)},Mb.apply(this,arguments)}function Soe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dg(e,t)}function dg(e,t){return dg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},dg(e,t)}function ck(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var woe=function(e){return function(t){return t===void 0&&(t={}),function(r){Ui(r,"element",n)};function n(r,i,a){var o,s;if(a&&a.tagName==="pre"&&r.tagName==="code"){var u=(r==null||(o=r.data)==null?void 0:o.meta)||(r==null||(s=r.properties)==null?void 0:s.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[],r.properties.className.push("code-highlight");var c,p,f=function(A){for(var D,k=D3(A.properties.className);!(D=k()).done;){var R=D.value;if(R.slice(0,9)==="language-")return R.slice(9).toLowerCase()}return null}(r);if(f)try{var m;m=f!=null&&f.includes("diff-")?f.split("-")[1]:f,c=e.highlight(T1(r),m),a.properties.className=(a.properties.className||[]).concat("language-"+m)}catch(A){if(!t.ignoreMissing||!/Unknown language/.test(A.message))throw A;c=r}else c=r;c.children=(p=1,function A(D){return D.reduce(function(k,R){if(R.type==="text"){var B=R.value,W=(B.match(/\n/g)||"").length;if(W===0)R.position={start:{line:p,column:1},end:{line:p,column:1}},k.push(R);else for(var P,Q=B.split(` -`),z=D3(Q.entries());!(P=z()).done;){var le=P.value,he=le[0],de=le[1];k.push({type:"text",value:he===Q.length-1?de:de+` -`,position:{start:{line:p+he,column:1},end:{line:p+he,column:1}}})}return p+=W,k}if(Object.prototype.hasOwnProperty.call(R,"children")){var fe=p;return R.children=A(R.children),k.push(R),R.position={start:{line:fe,column:1},end:{line:p,column:1}},k}return k.push(R),k},[])})(c.children),c.position=c.children.length>0?{start:{line:c.children[0].position.start.line,column:0},end:{line:c.children[c.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var g,E=function(A){var D=/{([\d,-]+)}/,k=A.split(",").map(function(W){return W.trim()}).join();if(D.test(k)){var R=D.exec(k)[1],B=Xae(R);return function(W){return B.includes(W+1)}}return function(){return!1}}(u),b=function(A){var D=Mb(/showLineNumbers=([0-9]+)/i,{lines:1});if(D.test(A)){var k=D.exec(A);return Number(k.groups.lines)}return 1}(u),T=function(A){for(var D=new Array(A),k=0;k=D+1});k.children=R.children,!u.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||v.some(function(B){return u.toLowerCase().includes(B)})||(k.properties.line=[(D+b).toString()],k.properties.className.push("line-number")),E(D)&&k.properties.className.push("highlight-line"),(f==="diff"||f!=null&&f.includes("diff-"))&&T1(k).substring(0,1)==="-"?k.properties.className.push("deleted"):(f==="diff"||f!=null&&f.includes("diff-"))&&T1(k).substring(0,1)==="+"&&k.properties.className.push("inserted")},w=D3(T.entries());!(g=w()).done;)y();T.length>0&&T1(T[T.length-1]).trim()===""&&T.pop(),r.children=T}}}},Aoe=woe(L);const nM="֑-߿יִ-﷽ﹰ-ﻼ",rM="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",Coe=new RegExp("^[^"+rM+"]*["+nM+"]"),xoe=new RegExp("^[^"+nM+"]*["+rM+"]");function koe(e){const t=String(e||"");return Coe.test(t)?"rtl":xoe.test(t)?"ltr":"neutral"}function Ioe(e,t){const n=e.schema,r=e.language,i=e.direction,a=e.editableOrEditingHost;let o;if(t.type==="element"&&t.properties){const c=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",f=dk(t);c!=null&&(e.language=String(c)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=yl),f==="rtl"?o=f:f==="ltr"||f!=="auto"&&t.tagName==="html"||f!=="auto"&&t.tagName==="input"&&p==="tel"?o="ltr":(f==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?o=L3(T1(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?o=t.properties.value?L3(t.properties.value):"ltr":Ui(t,u)),o&&(e.direction=o)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return s;function s(){e.schema=n,e.language=r,e.direction=i,e.editableOrEditingHost=a}function u(c){if(c.type==="text")return o=L3(c.value),o?Ab:void 0;if(c!==t&&c.type==="element"&&(c.tagName==="bdi"||c.tagName==="script"||c.tagName==="style"||c.tagName==="textare"||dk(c)))return Cd}}function L3(e){const t=koe(e);return t==="neutral"?void 0:t}function dk(e){const t=e.type==="element"&&e.properties&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}const Roe=F2("operator",{unknown:Uoe,invalid:Ooe,handlers:{"=":Doe,"~=":Loe,"|=":Moe,"^=":Foe,"$=":Poe,"*=":Boe}});function Noe(e,t,n){const r=e.attrs;let i=-1;for(;++i=fk&&e.charCodeAt(t)<=Woe;)c=c*10+(e.charCodeAt(t)-fk),t++;return t===u?null:c}function s(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?hk.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function gk(e){return Yoe(qoe(e))}const Xoe=gk.default||gk,Zoe=F2("name",{unknown:Tse,invalid:_se,handlers:{any:Fb,"any-link":Qoe,blank:Joe,checked:ese,dir:tse,disabled:aM,empty:nse,enabled:rse,"first-child":ise,"first-of-type":ase,has:ose,lang:sse,"last-child":lse,"last-of-type":use,matches:Fb,not:cse,"nth-child":dse,"nth-last-child":pse,"nth-of-type":hse,"nth-last-of-type":fse,"only-child":gse,"only-of-type":mse,optional:bse,"read-only":Ese,"read-write":oM,required:sM,root:vse,scope:yse}});iM.needsIndex=["any","first-child","first-of-type","last-child","last-of-type","matches","not","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];function iM(e,t,n,r,i){const a=e.pseudos;let o=-1;for(;++o0}function sse(e,t,n,r,i){return i.language!==""&&i.language!==void 0&&Goe(i.language,lp(e.value)).length>0}function lse(e,t,n,r,i){return To(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function use(e,t,n,r,i){return To(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function Fb(e,t,n,r,i){const a={...i,found:!1,shallow:!1,one:!0,scopeElements:[t],results:[],rootQuery:H_(e.value)};return j_(a,t),a.results[0]===t}function cse(e,t,n,r,i){return!Fb(e,t,n,r,i)}function dse(e,t,n,r,i){const a=nm(e);return To(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function pse(e,t,n,r,i){const a=nm(e);return To(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function fse(e,t,n,r,i){const a=nm(e);return To(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function hse(e,t,n,r,i){const a=nm(e);return To(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function gse(e,t,n,r,i){return To(i,e),i.elementCount===1}function mse(e,t,n,r,i){return To(i,e),i.typeCount===1}function bse(e,t){return!sM(e,t)}function Ese(e,t,n,r,i){return!oM(e,t,n,r,i)}function oM(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Hr(t,"readOnly")&&!Hr(t,"disabled"):!!i.editableOrEditingHost}function sM(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Hr(t,"required")}function vse(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function yse(e,t,n,r,i){return i.scopeElements.includes(t)}function _se(){throw new Error("Invalid pseudo-selector")}function Tse(e){throw e.name?new Error("Unknown pseudo-selector `"+e.name+"`"):new Error("Unexpected pseudo-element or empty pseudo-class")}function lM(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";M3(a,p,c)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.rule.nestingOperator===null?M3(a,"descendant",s):s.rule.nestingOperator==="~"&&M3(a,"generalSibling",s)}return a}function gh(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:wse}function M3(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function mk(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}var cM={},G_={},V_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o==="-"||o==="_"}e.isIdentStart=t;function n(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o>="0"&&o<="9"||o==="-"||o==="_"}e.isIdent=n;function r(o){return o>="a"&&o<="f"||o>="A"&&o<="F"||o>="0"&&o<="9"}e.isHex=r;function i(o){for(var s=o.length,u="",c=0;c="A"&&p<="Z"||p>="a"&&p<="z"||c!==0&&p>="0"&&p<="9")u+=p;else{var f=p.charCodeAt(0);if((f&63488)===55296){var m=o.charCodeAt(c++);if((f&64512)!==55296||(m&64512)!==56320)throw Error("UCS-2(decode): illegal sequence");f=((f&1023)<<10)+(m&1023)+65536}u+="\\"+f.toString(16)+" "}c++}return u}e.escapeIdentifier=i;function a(o){for(var s=o.length,u="",c=0,p;c":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},e.strReplacementsRev={"\n":"\\n","\r":"\\r"," ":"\\t","\f":"\\f","\v":"\\v"},e.singleQuoteEscapeChars={n:` +|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}d2.displayName="go";d2.aliases=[];function d2(e){e.register(Lt),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}p2.displayName="ini";p2.aliases=[];function p2(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}Lu.displayName="java";Lu.aliases=[];function Lu(e){e.register(Lt),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}f2.displayName="regex";f2.aliases=[];function f2(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",s=RegExp(o+"-"+o),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}Tc.displayName="json";Tc.aliases=["webmanifest"];function Tc(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}h2.displayName="kotlin";h2.aliases=["kt","kts"];function h2(e){e.register(Lt),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}g2.displayName="less";g2.aliases=[];function g2(e){e.register(xl),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Kp.displayName="lua";Kp.aliases=[];function Kp(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}m2.displayName="makefile";m2.aliases=[];function m2(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}Yp.displayName="yaml";Yp.aliases=["yml"];function Yp(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return u});return RegExp(p,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}b2.displayName="markdown";b2.aliases=["md"];function b2(e){e.register(gr),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(u){s!==u&&(t.languages.markdown[s].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function u(c){if(!(!c||typeof c=="string"))for(var p=0,f=c.length;p]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}E2.displayName="perl";E2.aliases=[];function E2(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Nr.displayName="markup-templating";Nr.aliases=[];function Nr(e){e.register(gr),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,o){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(a,function(u){if(typeof o=="function"&&!o(u))return u;for(var c=s.length,p;r.code.indexOf(p=n(i,c))!==-1;)++c;return s[c]=u,p}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,o=Object.keys(r.tokenStack);function s(u){for(var c=0;c=o.length);c++){var p=u[c];if(typeof p=="string"||p.content&&typeof p.content=="string"){var f=o[a],m=r.tokenStack[f],g=typeof p=="string"?p:p.content,b=n(i,f),y=g.indexOf(b);if(y>-1){++a;var T=g.substring(0,y),E=new t.Token(i,t.tokenize(m,r.grammar),"language-"+i,m),v=g.substring(y+b.length),w=[];T&&w.push.apply(w,s([T])),w.push(E),v&&w.push.apply(w,s([v])),typeof p=="string"?u.splice.apply(u,[c,1].concat(w)):p.content=w}}else p.content&&s(p.content)}return u}s(r.tokens)}}})}(e)}Mu.displayName="php";Mu.aliases=[];function Mu(e){e.register(Nr),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",p)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(e)}Xp.displayName="python";Xp.aliases=["py"];function Xp(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}v2.displayName="r";v2.aliases=[];function v2(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}Fu.displayName="ruby";Fu.aliases=["rb"];function Fu(e){e.register(Lt),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}_2.displayName="rust";_2.aliases=[];function _2(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}T2.displayName="sass";T2.aliases=[];function T2(e){e.register(xl),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}S2.displayName="scss";S2.aliases=[];function S2(e){e.register(xl),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}Sc.displayName="sql";Sc.aliases=[];function Sc(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}w2.displayName="swift";w2.aliases=[];function w2(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}wc.displayName="typescript";wc.aliases=["ts"];function wc(e){e.register(Rr),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}Zp.displayName="basic";Zp.aliases=[];function Zp(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Qp.displayName="vbnet";Qp.aliases=[];function Qp(e){e.register(Zp),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const iI=/[#.]/g;function Hse(e,t){const n=e||"",r={};let i=0,a,o;for(;i=48&&t<=57}function Zse(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Qse(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function sI(e){return Qse(e)||fF(e)}const n1=String.fromCharCode,Jse=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function ele(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,o="",s,u;t.position&&("start"in t.position||"indent"in t.position?(u=t.position.indent,s=t.position.start):s=t.position);let c=(s?s.line:0)||1,p=(s?s.column:0)||1,f=g(),m;for(i--;++i<=e.length;)if(m===10&&(p=(u?u[a]:0)||1),m=e.charCodeAt(i),m===38){const T=e.charCodeAt(i+1);if(T===9||T===10||T===12||T===32||T===38||T===60||Number.isNaN(T)||n&&T===n){o+=n1(m),p++;continue}const E=i+1;let v=E,w=E,A;if(T===35){w=++v;const $=e.charCodeAt(w);$===88||$===120?(A="hexadecimal",w=++v):A="decimal"}else A="named";let R="",k="",N="";const B=A==="named"?sI:A==="decimal"?fF:Zse;for(w--;++w<=e.length;){const $=e.charCodeAt(w);if(!B($))break;N+=n1($),A==="named"&&Xse.includes(N)&&(R=N,k=Tp(N))}let q=e.charCodeAt(w)===59;if(q){w++;const $=A==="named"?Tp(N):!1;$&&(R=N,k=$)}let P=1+w-E,Q="";if(!(!q&&t.nonTerminated===!1))if(!N)A!=="named"&&b(4,P);else if(A==="named"){if(q&&!k)b(5,1);else if(R!==N&&(w=v+R.length,P=1+w-v,q=!1),!q){const $=R?1:3;if(t.attribute){const oe=e.charCodeAt(w);oe===61?(b($,P),k=""):sI(oe)?k="":b($,P)}else b($,P)}Q=k}else{q||b(2,P);let $=Number.parseInt(N,A==="hexadecimal"?16:10);if(tle($))b(7,P),Q=n1(65533);else if($ in oI)b(6,P),Q=oI[$];else{let oe="";nle($)&&b(6,P),$>65535&&($-=65536,oe+=n1($>>>10|55296),$=56320|$&1023),Q=oe+n1($)}}if(Q){y(),f=g(),i=w-1,p+=w-E+1,r.push(Q);const $=g();$.offset++,t.reference&&t.reference.call(t.referenceContext,Q,{start:f,end:$},e.slice(E-1,w)),f=$}else N=e.slice(E-1,w),o+=N,p+=N.length,i=w-1}else m===10&&(c++,a++,p=0),Number.isNaN(m)?y():(o+=n1(m),p++);return r.join("");function g(){return{line:c,column:p,offset:i+((s?s.offset:0)||0)}}function b(T,E){let v;t.warning&&(v=g(),v.column+=E,v.offset+=E,t.warning.call(t.warningContext,Jse[T],v,T))}function y(){o&&(r.push(o),t.text&&t.text.call(t.textContext,o,{start:f,end:g()}),o="")}}function tle(e){return e>=55296&&e<=57343||e>1114111}function nle(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var rle=0,G0={},lr={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++rle}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(lr.util.type(t)){case"Object":if(i=lr.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=lr.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(o,s){r[s]=e(o,n)}),r);default:return t}}},languages:{plain:G0,plaintext:G0,text:G0,txt:G0,extend:function(e,t){var n=lr.util.clone(lr.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||lr.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var u=r[e];return r[e]=a,lr.languages.DFS(lr.languages,function(c,p){p===u&&c!=e&&(this[c]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=lr.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],u=lr.util.type(s);u==="Object"&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):u==="Array"&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(lr.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=lr.tokenize(r.code,r.grammar),lr.hooks.run("after-tokenize",r),qd.stringify(lr.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new ile;return Dh(i,i.head,e),hF(e,i,t,i.head,0),ole(i)},hooks:{all:{},add:function(e,t){var n=lr.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=lr.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:qd};function qd(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function lI(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function hF(e,t,n,r,i,a){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var u=0;u=a.reach);E+=T.value.length,T=T.next){var v=T.value;if(t.length>e.length)return;if(!(v instanceof qd)){var w=1,A;if(m){if(A=lI(y,E,e,f),!A||A.index>=e.length)break;var B=A.index,R=A.index+A[0].length,k=E;for(k+=T.value.length;B>=k;)T=T.next,k+=T.value.length;if(k-=T.value.length,E=k,T.value instanceof qd)continue;for(var N=T;N!==t.tail&&(ka.reach&&(a.reach=$);var oe=T.prev;P&&(oe=Dh(t,oe,P),E+=P.length),ale(t,oe,w);var fe=new qd(o,p?lr.tokenize(q,p):q,g,q);if(T=Dh(t,oe,fe),Q&&Dh(t,T,Q),w>1){var ce={cause:o+","+u,reach:$};hF(e,t,n,T.prev,E,ce),a&&ce.reach>a.reach&&(a.reach=ce.reach)}}}}}}function ile(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Dh(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function ale(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}K9.displayName="abnf";K9.aliases=[];function K9(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}Y9.displayName="actionscript";Y9.aliases=[];function Y9(e){e.register(Rr),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}X9.displayName="ada";X9.aliases=[];function X9(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}Z9.displayName="agda";Z9.aliases=[];function Z9(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}Q9.displayName="al";Q9.aliases=[];function Q9(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}J9.displayName="antlr4";J9.aliases=["g4"];function J9(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}ev.displayName="apacheconf";ev.aliases=[];function ev(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}tv.displayName="apex";tv.aliases=[];function tv(e){e.register(Lt),e.register(Sc),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(o){return RegExp(o.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}nv.displayName="apl";nv.aliases=[];function nv(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}rv.displayName="applescript";rv.aliases=[];function rv(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}iv.displayName="aql";iv.aliases=[];function iv(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}av.displayName="arff";av.aliases=[];function av(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}ov.displayName="armasm";ov.aliases=["arm-asm"];function ov(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}sv.displayName="arturo";sv.aliases=["art"];function sv(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}lv.displayName="asciidoc";lv.aliases=["adoc"];function lv(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var o={},s=0,u=a.length;s/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}cv.displayName="asm6502";cv.aliases=[];function cv(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}dv.displayName="asmatmel";dv.aliases=[];function dv(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}pv.displayName="autohotkey";pv.aliases=[];function pv(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}fv.displayName="autoit";fv.aliases=[];function fv(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}hv.displayName="avisynth";hv.aliases=["avs"];function hv(e){(function(t){function n(c,p){return c.replace(/<<(\d+)>>/g,function(f,m){return p[+m]})}function r(c,p,f){return RegExp(n(c,p),f||"")}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),o=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),s=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[a,o,s].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}gv.displayName="avro-idl";gv.aliases=["avdl"];function gv(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}mv.displayName="awk";mv.aliases=["gawk"];function mv(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}bv.displayName="batch";bv.aliases=[];function bv(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}yv.displayName="bbcode";yv.aliases=["shortcode"];function yv(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}Ev.displayName="bbj";Ev.aliases=[];function Ev(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}vv.displayName="bicep";vv.aliases=[];function vv(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}_v.displayName="birb";_v.aliases=[];function _v(e){e.register(Lt),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}Tv.displayName="bison";Tv.aliases=[];function Tv(e){e.register(Qa),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Sv.displayName="bnf";Sv.aliases=["rbnf"];function Sv(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}wv.displayName="bqn";wv.aliases=[];function wv(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}Av.displayName="brainfuck";Av.aliases=[];function Av(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}Cv.displayName="brightscript";Cv.aliases=[];function Cv(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}kv.displayName="bro";kv.aliases=[];function kv(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}xv.displayName="bsl";xv.aliases=["oscript"];function xv(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}Iv.displayName="cfscript";Iv.aliases=["cfc"];function Iv(e){e.register(Lt),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}Rv.displayName="chaiscript";Rv.aliases=[];function Rv(e){e.register(Lt),e.register(Ou),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Nv.displayName="cil";Nv.aliases=[];function Nv(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}Ov.displayName="cilkc";Ov.aliases=["cilk-c"];function Ov(e){e.register(Qa),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}Dv.displayName="cilkcpp";Dv.aliases=["cilk","cilk-cpp"];function Dv(e){e.register(Ou),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}Lv.displayName="clojure";Lv.aliases=[];function Lv(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}Mv.displayName="cmake";Mv.aliases=[];function Mv(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}Fv.displayName="cobol";Fv.aliases=[];function Fv(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}Pv.displayName="coffeescript";Pv.aliases=["coffee"];function Pv(e){e.register(Rr),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}Bv.displayName="concurnas";Bv.aliases=["conc"];function Bv(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}Uv.displayName="csp";Uv.aliases=[];function Uv(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}$v.displayName="cooklang";$v.aliases=[];function $v(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,o=/(?:h|hours|hrs|m|min|minutes)/.source,s={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+o+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}zv.displayName="coq";zv.aliases=[];function zv(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Hv.displayName="crystal";Hv.aliases=[];function Hv(e){e.register(Fu),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}jv.displayName="css-extras";jv.aliases=[];function jv(e){e.register(xl),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}Gv.displayName="csv";Gv.aliases=[];function Gv(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}Vv.displayName="cue";Vv.aliases=[];function Vv(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}Wv.displayName="cypher";Wv.aliases=[];function Wv(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}qv.displayName="d";qv.aliases=[];function qv(e){e.register(Lt),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}Kv.displayName="dart";Kv.aliases=[];function Kv(e){e.register(Lt),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}Yv.displayName="dataweave";Yv.aliases=[];function Yv(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}Xv.displayName="dax";Xv.aliases=[];function Xv(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}Zv.displayName="dhall";Zv.aliases=[];function Zv(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}Qv.displayName="django";Qv.aliases=["jinja2"];function Qv(e){e.register(Nr),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}Jv.displayName="dns-zone-file";Jv.aliases=["dns-zone"];function Jv(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}e6.displayName="docker";e6.aliases=["dockerfile"];function e6(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),o={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(c,p){return c=c.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(c,p)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}t6.displayName="dot";t6.aliases=["gv"];function t6(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,o){return RegExp(a.replace(//g,function(){return n}),o)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}n6.displayName="ebnf";n6.aliases=[];function n6(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}r6.displayName="editorconfig";r6.aliases=[];function r6(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}i6.displayName="eiffel";i6.aliases=[];function i6(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}a6.displayName="ejs";a6.aliases=["eta"];function a6(e){e.register(Rr),e.register(Nr),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}o6.displayName="elixir";o6.aliases=[];function o6(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}s6.displayName="elm";s6.aliases=[];function s6(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}l6.displayName="etlua";l6.aliases=[];function l6(e){e.register(Kp),e.register(Nr),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}u6.displayName="erb";u6.aliases=[];function u6(e){e.register(Nr),e.register(Fu),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}c6.displayName="erlang";c6.aliases=[];function c6(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}d6.displayName="excel-formula";d6.aliases=["xls","xlsx"];function d6(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}p6.displayName="fsharp";p6.aliases=[];function p6(e){e.register(Lt),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}f6.displayName="factor";f6.aliases=[];function f6(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(c){return new RegExp("(^|\\s)(?:"+c.map(a).join("|")+")(?=\\s|$)")},s={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(s).forEach(function(c){i[c].pattern=o(s[c])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=o(u),t.languages.factor=i})(e)}h6.displayName="false";h6.aliases=[];function h6(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}m6.displayName="flow";m6.aliases=[];function m6(e){e.register(Rr),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}b6.displayName="fortran";b6.aliases=[];function b6(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}y6.displayName="ftl";y6.aliases=[];function y6(e){e.register(Nr),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",o)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}E6.displayName="gml";E6.aliases=["gamemakerlanguage"];function E6(e){e.register(Lt),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}v6.displayName="gap";v6.aliases=[];function v6(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}_6.displayName="gcode";_6.aliases=[];function _6(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}T6.displayName="gdscript";T6.aliases=[];function T6(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}S6.displayName="gedcom";S6.aliases=[];function S6(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}w6.displayName="gettext";w6.aliases=["po"];function w6(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}A6.displayName="gherkin";A6.aliases=[];function A6(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}C6.displayName="git";C6.aliases=[];function C6(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}k6.displayName="glsl";k6.aliases=[];function k6(e){e.register(Qa),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}x6.displayName="gn";x6.aliases=["gni"];function x6(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}I6.displayName="linker-script";I6.aliases=["ld"];function I6(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}R6.displayName="go-module";R6.aliases=["go-mod"];function R6(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}N6.displayName="gradle";N6.aliases=[];function N6(e){e.register(Lt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}O6.displayName="graphql";O6.aliases=[];function O6(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function a(T){return r[i+T]}function o(T,E){E=E||0;for(var v=0;v0)){var g=s(/^\{$/,/^\}$/);if(g===-1)continue;for(var b=i;b=0&&u(y,"variable-input")}}}}})}D6.displayName="groovy";D6.aliases=[];function D6(e){e.register(Lt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}L6.displayName="textile";L6.aliases=[];function L6(e){e.register(gr),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,m){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),m||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),s=o.phrase.inside,u={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=s.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=s.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark}(e)}M6.displayName="haml";M6.aliases=[];function M6(e){e.register(Fu),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,o=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}Jp.displayName="haskell";Jp.aliases=["hs"];function Jp(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}P6.displayName="haxe";P6.aliases=[];function P6(e){e.register(Lt),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}B6.displayName="hcl";B6.aliases=[];function B6(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}U6.displayName="hlsl";U6.aliases=[];function U6(e){e.register(Qa),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}$6.displayName="hoon";$6.aliases=[];function $6(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}z6.displayName="hpkp";z6.aliases=[];function z6(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}H6.displayName="hsts";H6.aliases=[];function H6(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}j6.displayName="uri";j6.aliases=["url"];function j6(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}G6.displayName="http";G6.aliases=[];function G6(e){(function(t){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function o(p){var f=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var s;for(var u in i)if(i[u]){s=s||{};var c=a[u]?o(u):u;s[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}s&&t.languages.insertBefore("http","header",s)})(e)}V6.displayName="ichigojam";V6.aliases=[];function V6(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}W6.displayName="icon";W6.aliases=[];function W6(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}q6.displayName="icu-message-format";q6.aliases=[];function q6(e){(function(t){function n(u,c){return c<=0?/[]/.source:u.replace(//g,function(){return n(u,c-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},o=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(o),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":s,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":s,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},s.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}K6.displayName="idris";K6.aliases=["idr"];function K6(e){e.register(Jp),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}Y6.displayName="ignore";Y6.aliases=["gitignore","hgignore","npmignore"];function Y6(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}X6.displayName="inform7";X6.aliases=[];function X6(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}Z6.displayName="io";Z6.aliases=[];function Z6(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}Cc.displayName="javadoclike";Cc.aliases=[];function Cc(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,o){var s="doc-comment",u=t.languages[a];if(u){var c=u[s];if(!c){var p={};p[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=t.languages.insertBefore(a,"comment",p),c=u[s]}if(c instanceof RegExp&&(c=u[s]={pattern:c}),Array.isArray(c))for(var f=0,m=c.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}e8.displayName="javadoc";e8.aliases=[];function e8(e){e.register(Lu),e.register(Cc),e.register(gr),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}t8.displayName="javastacktrace";t8.aliases=[];function t8(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}n8.displayName="jexl";n8.aliases=[];function n8(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}r8.displayName="jolie";r8.aliases=[];function r8(e){e.register(Lt),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}i8.displayName="jq";i8.aliases=[];function i8(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}a8.displayName="js-templates";a8.aliases=[];function a8(e){e.register(Rr),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],o=i.pattern.source;function s(b,y){if(t.languages[b])return{pattern:RegExp("((?:"+y+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function u(b,y){return"___"+y.toUpperCase()+"_"+b+"___"}function c(b,y,T){var E={code:b,grammar:y,language:T};return t.hooks.run("before-tokenize",E),E.tokens=t.tokenize(E.code,E.grammar),t.hooks.run("after-tokenize",E),E.tokens}function p(b){var y={};y["interpolation-punctuation"]=a;var T=t.tokenize(b,y);if(T.length===3){var E=[1,1];E.push.apply(E,c(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,E)}return new t.Token("interpolation",T,i.alias,b)}function f(b,y,T){var E=t.tokenize(b,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),v=0,w={},A=E.map(function(B){if(typeof B=="string")return B;for(var q=B.content,P;b.indexOf(P=u(v++,T))!==-1;);return w[P]=q,P}).join(""),R=c(A,y,T),k=Object.keys(w);v=0;function N(B){for(var q=0;q=k.length)return;var P=B[q];if(typeof P=="string"||typeof P.content=="string"){var Q=k[v],$=typeof P=="string"?P:P.content,oe=$.indexOf(Q);if(oe!==-1){++v;var fe=$.substring(0,oe),ce=p(w[Q]),De=$.substring(oe+Q.length),H=[];if(fe&&H.push(fe),H.push(ce),De){var W=[De];N(W),H.push.apply(H,W)}typeof P=="string"?(B.splice.apply(B,[q,1].concat(H)),q+=H.length-1):P.content=H}}else{var se=P.content;Array.isArray(se)?N(se):N([se])}}}return N(R),new t.Token(T,R,"language-"+T,b)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(b){if(!(b.language in m))return;function y(T){for(var E=0,v=T.length;E\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}s8.displayName="n4js";s8.aliases=["n4jsd"];function s8(e){e.register(Rr),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}l8.displayName="js-extras";l8.aliases=[];function l8(e){e.register(Rr),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(u,c){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}p8.displayName="julia";p8.aliases=[];function p8(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}f8.displayName="keepalived";f8.aliases=[];function f8(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}h8.displayName="keyman";h8.aliases=[];function h8(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}g8.displayName="kumir";g8.aliases=["kum"];function g8(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}m8.displayName="kusto";m8.aliases=[];function m8(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}b8.displayName="latex";b8.aliases=["context","tex"];function b8(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}y8.displayName="latte";y8.aliases=[];function y8(e){e.register(Lt),e.register(Nr),e.register(Mu),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}ef.displayName="scheme";ef.aliases=[];function ef(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}E8.displayName="lilypond";E8.aliases=["ly"];function E8(e){e.register(ef),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}v8.displayName="liquid";v8.aliases=[];function v8(e){e.register(Nr),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var o=a[1];if(o==="raw"&&!r)return r=!0,!0;if(o==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}_8.displayName="lisp";_8.aliases=["elisp","emacs","emacs-lisp"];function _8(e){(function(t){function n(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function r(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,o="(\\()",s="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(o+c+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:f},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=g,p.defun.inside.arguments=t.util.clone(g),p.defun.inside.arguments.inside.sublist=g,t.languages.lisp=p,t.languages.elisp=p,t.languages.emacs=p,t.languages["emacs-lisp"]=p})(e)}T8.displayName="livescript";T8.aliases=[];function T8(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}S8.displayName="llvm";S8.aliases=[];function S8(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}w8.displayName="log";w8.aliases=[];function w8(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}A8.displayName="lolcode";A8.aliases=[];function A8(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}C8.displayName="magma";C8.aliases=[];function C8(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}A2.displayName="mata";A2.aliases=[];function A2(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}k8.displayName="matlab";k8.aliases=[];function k8(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}x8.displayName="maxscript";x8.aliases=[];function x8(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}I8.displayName="mel";I8.aliases=[];function I8(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}R8.displayName="mermaid";R8.aliases=[];function R8(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}N8.displayName="metafont";N8.aliases=[];function N8(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}O8.displayName="mizar";O8.aliases=[];function O8(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}D8.displayName="mongodb";D8.aliases=[];function D8(e){e.register(Rr),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}L8.displayName="monkey";L8.aliases=[];function L8(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}M8.displayName="moonscript";M8.aliases=["moon"];function M8(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}F8.displayName="n1ql";F8.aliases=[];function F8(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}P8.displayName="nand2tetris-hdl";P8.aliases=[];function P8(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}B8.displayName="naniscript";B8.aliases=["nani"];function B8(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(o){var s=o.tokens;s.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=a(u);i(c)||(u.type="bad-line",u.content=c)}})});function i(o){for(var s="[]{}",u=[],c=0;c=&|$!]/}}$8.displayName="neon";$8.aliases=[];function $8(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}z8.displayName="nevod";z8.aliases=[];function z8(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}H8.displayName="nginx";H8.aliases=[];function H8(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}j8.displayName="nim";j8.aliases=[];function j8(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}G8.displayName="nix";G8.aliases=[];function G8(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}V8.displayName="nsis";V8.aliases=[];function V8(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}W8.displayName="ocaml";W8.aliases=[];function W8(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}q8.displayName="odin";q8.aliases=[];function q8(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}K8.displayName="opencl";K8.aliases=[];function K8(e){e.register(Qa),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}Y8.displayName="openqasm";Y8.aliases=["qasm"];function Y8(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}X8.displayName="oz";X8.aliases=[];function X8(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}Z8.displayName="parigp";Z8.aliases=[];function Z8(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}Q8.displayName="parser";Q8.aliases=[];function Q8(e){e.register(gr),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}J8.displayName="pascal";J8.aliases=["objectpascal"];function J8(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}e_.displayName="pascaligo";e_.aliases=[];function e_(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,s){return o[s]=i[s],o},{});i["class-name"].forEach(function(o){o.inside=a})})(e)}t_.displayName="psl";t_.aliases=[];function t_(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}n_.displayName="pcaxis";n_.aliases=["px"];function n_(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}r_.displayName="peoplecode";r_.aliases=["pcode"];function r_(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}i_.displayName="phpdoc";i_.aliases=[];function i_(e){e.register(Cc),e.register(Mu),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}a_.displayName="php-extras";a_.aliases=[];function a_(e){e.register(Mu),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}o_.displayName="plant-uml";o_.aliases=["plantuml"];function o_(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",o=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,u=/[[?]?[ox]?/.source,c=/[ox]?[\]?]?/.source,p=u+"(?:"+a+s+"|"+o+a+"(?:"+s+")?)"+c;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+p+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}s_.displayName="plsql";s_.aliases=[];function s_(e){e.register(Sc),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}l_.displayName="powerquery";l_.aliases=["mscript","pq"];function l_(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}u_.displayName="powershell";u_.aliases=[];function u_(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}c_.displayName="processing";c_.aliases=[];function c_(e){e.register(Lt),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}d_.displayName="prolog";d_.aliases=[];function d_(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}p_.displayName="promql";p_.aliases=[];function p_(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}f_.displayName="properties";f_.aliases=[];function f_(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}h_.displayName="protobuf";h_.aliases=[];function h_(e){e.register(Lt),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}g_.displayName="stylus";g_.aliases=[];function g_(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}m_.displayName="twig";m_.aliases=[];function m_(e){e.register(Nr),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}b_.displayName="pug";b_.aliases=[];function b_(e){e.register(Rr),e.register(gr),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,o=r.length;a",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}y_.displayName="puppet";y_.aliases=[];function y_(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}E_.displayName="pure";E_.aliases=[];function E_(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var o={};o["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},o["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",o)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}v_.displayName="purebasic";v_.aliases=["pbfasm"];function v_(e){e.register(Lt),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}__.displayName="purescript";__.aliases=["purs"];function __(e){e.register(Jp),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}T_.displayName="qsharp";T_.aliases=["qs"];function T_(e){e.register(Lt),function(t){function n(g,b){return g.replace(/<<(\d+)>>/g,function(y,T){return"(?:"+b[+T]+")"})}function r(g,b,y){return RegExp(n(g,b),y||"")}function i(g,b){for(var y=0;y>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function o(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(o(a.type+" "+a.other)),u=/\b[A-Za-z_]\w*\b/.source,c=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:s,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:p},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:p}],keyword:s,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}S_.displayName="q";S_.aliases=[];function S_(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}w_.displayName="qml";w_.aliases=[];function w_(e){e.register(Rr),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}A_.displayName="qore";A_.aliases=[];function A_(e){e.register(Lt),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}C_.displayName="racket";C_.aliases=["rkt"];function C_(e){e.register(ef),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}k_.displayName="cshtml";k_.aliases=["razor"];function k_(e){e.register(Du),e.register(gr),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(v,w){for(var A=0;A/g,function(){return"(?:"+v+")"});return v.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),o=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),u=i(/<(?:[^<>'"@/]||)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+u+")?"+a+"|"+o+")*"+/(?![?!\.(\[]|<(?!\/))/.source,p=/@(?![\w()])/.source+"|"+c,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+p+`)[^"'@]*)+["'])`,m=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+m+/\s*\/?>/.source,b=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function o(c,p){return c=c.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(c,p)}a=o(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(s).join(""):""},u=function(c){for(var p=[],f=0;f0&&p[p.length-1].tagName===s(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:s(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:g=!0),(g||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var b=s(m);f0&&(typeof c[f-1]=="string"||c[f-1].type==="plain-text")&&(b=s(c[f-1])+b,c.splice(f-1,1),f--),c[f]=new t.Token("plain-text",b,null,b)}m.content&&typeof m.content!="string"&&u(m.content)}};t.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})}(e)}x_.displayName="tsx";x_.aliases=[];function x_(e){e.register(C2),e.register(wc),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}I_.displayName="reason";I_.aliases=[];function I_(e){e.register(Lt),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}R_.displayName="rego";R_.aliases=[];function R_(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}N_.displayName="renpy";N_.aliases=["rpy"];function N_(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}O_.displayName="rescript";O_.aliases=["res"];function O_(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}D_.displayName="rest";D_.aliases=[];function D_(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}L_.displayName="rip";L_.aliases=[];function L_(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}M_.displayName="roboconf";M_.aliases=[];function M_(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}F_.displayName="robotframework";F_.aliases=["robot"];function F_(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,c){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in c)p[f]=c[f];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=r,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:p}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":o,documentation:a,property:s}),keywords:i("Keywords",{"keyword-name":o,documentation:a,property:s}),tasks:i("Tasks",{"task-name":o,documentation:a,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}P_.displayName="sas";P_.aliases=[];function P_(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},y={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},E=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,v={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return E}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return E}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:f,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:r,"numeric-constant":i,punctuation:p,string:c}},w={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":y,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:w,"submit-statement":T,"global-statements":y,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:w,"submit-statement":T,"global-statements":y,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":v,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:s,keyword:w,function:f,format:g,altformat:b,"global-statements":y,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:m},"macro-keyword":o,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":v,comment:u,function:f,format:g,altformat:b,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:c,step:s,keyword:w,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(e)}B_.displayName="shell-session";B_.aliases=["sh-session","shellsession"];function B_(e){e.register(qp),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}U_.displayName="smali";U_.aliases=[];function U_(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}$_.displayName="smalltalk";$_.aliases=[];function $_(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}z_.displayName="smarty";z_.aliases=[];function z_(e){e.register(Nr),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",o="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(u){return u===o&&(s=!1),s?!1:(u===a&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}H_.displayName="sml";H_.aliases=["smlnj"];function H_(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}j_.displayName="solidity";j_.aliases=["sol"];function j_(e){e.register(Lt),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}G_.displayName="solution-file";G_.aliases=["sln"];function G_(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}V_.displayName="soy";V_.aliases=[];function V_(e){e.register(Nr),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",s="{/literal}",u=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(c){return c===s&&(u=!1),u?!1:(c===o&&(u=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}k2.displayName="turtle";k2.aliases=["trig"];function k2(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}W_.displayName="sparql";W_.aliases=["rq"];function W_(e){e.register(k2),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}q_.displayName="splunk-spl";q_.aliases=[];function q_(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}K_.displayName="sqf";K_.aliases=[];function K_(e){e.register(Lt),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}Y_.displayName="squirrel";Y_.aliases=[];function Y_(e){e.register(Lt),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}X_.displayName="stan";X_.aliases=[];function X_(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}Z_.displayName="stata";Z_.aliases=[];function Z_(e){e.register(Lu),e.register(A2),e.register(Xp),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}Q_.displayName="iecst";Q_.aliases=[];function Q_(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}J_.displayName="supercollider";J_.aliases=["sclang"];function J_(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}e7.displayName="systemd";e7.aliases=[];function e7(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}tf.displayName="t4-templating";tf.aliases=[];function tf(e){(function(t){function n(i,a,o){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:o}}}}function r(i){var a=t.languages[i],o="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,o),"class-feature":n("\\+",a,o),standard:n("",a,o)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}t7.displayName="t4-cs";t7.aliases=["t4"];function t7(e){e.register(Du),e.register(tf),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}n7.displayName="t4-vb";n7.aliases=[];function n7(e){e.register(tf),e.register(Qp),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}r7.displayName="tap";r7.aliases=[];function r7(e){e.register(Yp),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}i7.displayName="tcl";i7.aliases=[];function i7(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}a7.displayName="tt2";a7.aliases=[];function a7(e){e.register(Lt),e.register(Nr),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}o7.displayName="toml";o7.aliases=[];function o7(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}s7.displayName="tremor";s7.aliases=["trickle","troy"];function s7(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}l7.displayName="typoscript";l7.aliases=["tsconfig"];function l7(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}u7.displayName="unrealscript";u7.aliases=["uc","uscript"];function u7(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}c7.displayName="uorazor";c7.aliases=[];function c7(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}d7.displayName="v";d7.aliases=[];function d7(e){e.register(Lt),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}p7.displayName="vala";p7.aliases=[];function p7(e){e.register(Lt),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}f7.displayName="velocity";f7.aliases=[];function f7(e){e.register(gr),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}h7.displayName="verilog";h7.aliases=[];function h7(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}g7.displayName="vhdl";g7.aliases=[];function g7(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}m7.displayName="vim";m7.aliases=[];function m7(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}b7.displayName="visual-basic";b7.aliases=["vb","vba"];function b7(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}y7.displayName="warpscript";y7.aliases=[];function y7(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}E7.displayName="wasm";E7.aliases=[];function E7(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}v7.displayName="web-idl";v7.aliases=["webidl"];function v7(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}_7.displayName="wgsl";_7.aliases=[];function _7(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}T7.displayName="wiki";T7.aliases=[];function T7(e){e.register(gr),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}S7.displayName="wolfram";S7.aliases=["mathematica","nb","wl"];function S7(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}w7.displayName="wren";w7.aliases=[];function w7(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}A7.displayName="xeora";A7.aliases=["xeoracube"];function A7(e){e.register(gr),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}C7.displayName="xml-doc";C7.aliases=[];function C7(e){e.register(gr),function(t){function n(o,s){t.languages[o]&&t.languages.insertBefore(o,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}k7.displayName="xojo";k7.aliases=[];function k7(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}x7.displayName="xquery";x7.aliases=[];function x7(e){e.register(gr),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],o=0;o0&&a[a.length-1].tagName===n(s.content[0].content[1])&&a.pop():s.content[s.content.length-1].content==="/>"||a.push({tagName:n(s.content[0].content[1]),openedBraces:0}):a.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[o+1]||i[o+1].type!=="punctuation"||i[o+1].content!=="{")&&(!i[o-1]||i[o-1].type!=="plain-text"||i[o-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?a[a.length-1].openedBraces--:s.type!=="comment"&&(u=!0)),(u||typeof s=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var c=n(s);o0&&(typeof i[o-1]=="string"||i[o-1].type==="plain-text")&&(c=n(i[o-1])+c,i.splice(o-1,1),o--),/^\s+$/.test(c)?i[o]=c:i[o]=new t.Token("plain-text",c,null,c)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}I7.displayName="yang";I7.aliases=[];function I7(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}R7.displayName="zig";R7.aliases=[];function R7(e){(function(t){function n(c){return function(){return c}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),u="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+s+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=t.languages.zig)})})(e)}O.register(gr);O.register(xl);O.register(Lt);O.register(f2);O.register(Rr);O.register(q9);O.register(K9);O.register(Y9);O.register(X9);O.register(Z9);O.register(Q9);O.register(J9);O.register(ev);O.register(Sc);O.register(tv);O.register(nv);O.register(rv);O.register(iv);O.register(Qa);O.register(Ou);O.register(u2);O.register(av);O.register(ov);O.register(qp);O.register(Yp);O.register(b2);O.register(sv);O.register(lv);O.register(Du);O.register(uv);O.register(cv);O.register(dv);O.register(pv);O.register(fv);O.register(hv);O.register(gv);O.register(mv);O.register(Zp);O.register(bv);O.register(yv);O.register(Ev);O.register(vv);O.register(_v);O.register(Tv);O.register(Sv);O.register(wv);O.register(Av);O.register(Cv);O.register(kv);O.register(xv);O.register(Iv);O.register(Rv);O.register(Nv);O.register(Ov);O.register(Dv);O.register(Lv);O.register(Mv);O.register(Fv);O.register(Pv);O.register(Bv);O.register(Uv);O.register($v);O.register(zv);O.register(Fu);O.register(Hv);O.register(jv);O.register(Gv);O.register(Vv);O.register(Wv);O.register(qv);O.register(Kv);O.register(Yv);O.register(Xv);O.register(Zv);O.register(c2);O.register(Nr);O.register(Qv);O.register(Jv);O.register(e6);O.register(t6);O.register(n6);O.register(r6);O.register(i6);O.register(a6);O.register(o6);O.register(s6);O.register(Kp);O.register(l6);O.register(u6);O.register(c6);O.register(d6);O.register(p6);O.register(f6);O.register(h6);O.register(g6);O.register(m6);O.register(b6);O.register(y6);O.register(E6);O.register(v6);O.register(_6);O.register(T6);O.register(S6);O.register(w6);O.register(A6);O.register(C6);O.register(k6);O.register(x6);O.register(I6);O.register(d2);O.register(R6);O.register(N6);O.register(O6);O.register(D6);O.register(g2);O.register(S2);O.register(L6);O.register(M6);O.register(F6);O.register(Jp);O.register(P6);O.register(B6);O.register(U6);O.register($6);O.register(z6);O.register(H6);O.register(Tc);O.register(j6);O.register(G6);O.register(V6);O.register(W6);O.register(q6);O.register(K6);O.register(Y6);O.register(X6);O.register(p2);O.register(Z6);O.register(Q6);O.register(Lu);O.register(Mu);O.register(Cc);O.register(J6);O.register(e8);O.register(t8);O.register(n8);O.register(r8);O.register(i8);O.register(a8);O.register(wc);O.register(o8);O.register(s8);O.register(l8);O.register(u8);O.register(c8);O.register(d8);O.register(p8);O.register(f8);O.register(h8);O.register(h2);O.register(g8);O.register(m8);O.register(b8);O.register(y8);O.register(ef);O.register(E8);O.register(v8);O.register(_8);O.register(T8);O.register(S8);O.register(w8);O.register(A8);O.register(C8);O.register(m2);O.register(A2);O.register(k8);O.register(x8);O.register(I8);O.register(R8);O.register(N8);O.register(O8);O.register(D8);O.register(L8);O.register(M8);O.register(F8);O.register(P8);O.register(B8);O.register(U8);O.register($8);O.register(z8);O.register(H8);O.register(j8);O.register(G8);O.register(V8);O.register(y2);O.register(W8);O.register(q8);O.register(K8);O.register(Y8);O.register(X8);O.register(Z8);O.register(Q8);O.register(J8);O.register(e_);O.register(t_);O.register(n_);O.register(r_);O.register(E2);O.register(i_);O.register(a_);O.register(o_);O.register(s_);O.register(l_);O.register(u_);O.register(c_);O.register(d_);O.register(p_);O.register(f_);O.register(h_);O.register(g_);O.register(m_);O.register(b_);O.register(y_);O.register(E_);O.register(v_);O.register(__);O.register(Xp);O.register(T_);O.register(S_);O.register(w_);O.register(A_);O.register(v2);O.register(C_);O.register(k_);O.register(C2);O.register(x_);O.register(I_);O.register(R_);O.register(N_);O.register(O_);O.register(D_);O.register(L_);O.register(M_);O.register(F_);O.register(_2);O.register(P_);O.register(T2);O.register(B_);O.register(U_);O.register($_);O.register(z_);O.register(H_);O.register(j_);O.register(G_);O.register(V_);O.register(k2);O.register(W_);O.register(q_);O.register(K_);O.register(Y_);O.register(X_);O.register(Z_);O.register(Q_);O.register(J_);O.register(w2);O.register(e7);O.register(tf);O.register(t7);O.register(Qp);O.register(n7);O.register(r7);O.register(i7);O.register(a7);O.register(o7);O.register(s7);O.register(l7);O.register(u7);O.register(c7);O.register(d7);O.register(p7);O.register(f7);O.register(h7);O.register(g7);O.register(m7);O.register(b7);O.register(y7);O.register(E7);O.register(v7);O.register(_7);O.register(T7);O.register(S7);O.register(w7);O.register(A7);O.register(C7);O.register(k7);O.register(x7);O.register(I7);O.register(R7);function hy(){hy=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,o){var s=new RegExp(i,a);return t.set(s,o||t.get(i)),Bg(s,n.prototype)}function r(i,a){var o=t.get(a);return Object.keys(o).reduce(function(s,u){return s[u]=i[o[u]],s},Object.create(null))}return hle(n,RegExp),n.prototype.exec=function(i){var a=e.exec.call(this,i);return a&&(a.groups=r(a,this)),a},n.prototype[Symbol.replace]=function(i,a){if(typeof a=="string"){var o=t.get(this);return e[Symbol.replace].call(this,i,a.replace(/\$<([^>]+)>/g,function(u,c){return"$"+o[c]}))}if(typeof a=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(r(u,s)),a.apply(this,u)})}return e[Symbol.replace].call(this,i,a)},hy.apply(this,arguments)}function hle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bg(e,t)}function Bg(e,t){return Bg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Bg(e,t)}function uI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var gle=function(e){return function(t){return t===void 0&&(t={}),function(r){Hi(r,"element",n)};function n(r,i,a){var o,s;if(a&&a.tagName==="pre"&&r.tagName==="code"){var u=(r==null||(o=r.data)==null?void 0:o.meta)||(r==null||(s=r.properties)==null?void 0:s.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[],r.properties.className.push("code-highlight");var c,p,f=function(A){for(var R,k=o4(A.properties.className);!(R=k()).done;){var N=R.value;if(N.slice(0,9)==="language-")return N.slice(9).toLowerCase()}return null}(r);if(f)try{var m;m=f!=null&&f.includes("diff-")?f.split("-")[1]:f,c=e.highlight(R1(r),m),a.properties.className=(a.properties.className||[]).concat("language-"+m)}catch(A){if(!t.ignoreMissing||!/Unknown language/.test(A.message))throw A;c=r}else c=r;c.children=(p=1,function A(R){return R.reduce(function(k,N){if(N.type==="text"){var B=N.value,q=(B.match(/\n/g)||"").length;if(q===0)N.position={start:{line:p,column:1},end:{line:p,column:1}},k.push(N);else for(var P,Q=B.split(` +`),$=o4(Q.entries());!(P=$()).done;){var oe=P.value,fe=oe[0],ce=oe[1];k.push({type:"text",value:fe===Q.length-1?ce:ce+` +`,position:{start:{line:p+fe,column:1},end:{line:p+fe,column:1}}})}return p+=q,k}if(Object.prototype.hasOwnProperty.call(N,"children")){var De=p;return N.children=A(N.children),k.push(N),N.position={start:{line:De,column:1},end:{line:p,column:1}},k}return k.push(N),k},[])})(c.children),c.position=c.children.length>0?{start:{line:c.children[0].position.start.line,column:0},end:{line:c.children[c.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var g,b=function(A){var R=/{([\d,-]+)}/,k=A.split(",").map(function(q){return q.trim()}).join();if(R.test(k)){var N=R.exec(k)[1],B=zse(N);return function(q){return B.includes(q+1)}}return function(){return!1}}(u),y=function(A){var R=hy(/showLineNumbers=([0-9]+)/i,{lines:1});if(R.test(A)){var k=R.exec(A);return Number(k.groups.lines)}return 1}(u),T=function(A){for(var R=new Array(A),k=0;k=R+1});k.children=N.children,!u.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||E.some(function(B){return u.toLowerCase().includes(B)})||(k.properties.line=[(R+y).toString()],k.properties.className.push("line-number")),b(R)&&k.properties.className.push("highlight-line"),(f==="diff"||f!=null&&f.includes("diff-"))&&R1(k).substring(0,1)==="-"?k.properties.className.push("deleted"):(f==="diff"||f!=null&&f.includes("diff-"))&&R1(k).substring(0,1)==="+"&&k.properties.className.push("inserted")},w=o4(T.entries());!(g=w()).done;)v();T.length>0&&R1(T[T.length-1]).trim()===""&&T.pop(),r.children=T}}}},mle=gle(O);const bF="֑-߿יִ-﷽ﹰ-ﻼ",yF="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",ble=new RegExp("^[^"+yF+"]*["+bF+"]"),yle=new RegExp("^[^"+bF+"]*["+yF+"]");function Ele(e){const t=String(e||"");return ble.test(t)?"rtl":yle.test(t)?"ltr":"neutral"}function vle(e,t){const n=e.schema,r=e.language,i=e.direction,a=e.editableOrEditingHost;let o;if(t.type==="element"&&t.properties){const c=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",f=cI(t);c!=null&&(e.language=String(c)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Cl),f==="rtl"?o=f:f==="ltr"||f!=="auto"&&t.tagName==="html"||f!=="auto"&&t.tagName==="input"&&p==="tel"?o="ltr":(f==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?o=s4(R1(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?o=t.properties.value?s4(t.properties.value):"ltr":Hi(t,u)),o&&(e.direction=o)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return s;function s(){e.schema=n,e.language=r,e.direction=i,e.editableOrEditingHost=a}function u(c){if(c.type==="text")return o=s4(c.value),o?iy:void 0;if(c!==t&&c.type==="element"&&(c.tagName==="bdi"||c.tagName==="script"||c.tagName==="style"||c.tagName==="textare"||cI(c)))return $d}}function s4(e){const t=Ele(e);return t==="neutral"?void 0:t}function cI(e){const t=e.type==="element"&&e.properties&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}const _le=l2("operator",{unknown:Rle,invalid:Sle,handlers:{"=":wle,"~=":Ale,"|=":Cle,"^=":kle,"$=":xle,"*=":Ile}});function Tle(e,t,n){const r=e.attrs;let i=-1;for(;++i=pI&&e.charCodeAt(t)<=Ple;)c=c*10+(e.charCodeAt(t)-pI),t++;return t===u?null:c}function s(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?fI.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function hI(e){return $le(Ble(e))}const zle=hI.default||hI,Hle=l2("name",{unknown:fue,invalid:pue,handlers:{any:gy,"any-link":jle,blank:Gle,checked:Vle,dir:Wle,disabled:vF,empty:qle,enabled:Kle,"first-child":Yle,"first-of-type":Xle,has:Zle,lang:Qle,"last-child":Jle,"last-of-type":eue,matches:gy,not:tue,"nth-child":nue,"nth-last-child":rue,"nth-of-type":aue,"nth-last-of-type":iue,"only-child":oue,"only-of-type":sue,optional:lue,"read-only":uue,"read-write":_F,required:TF,root:cue,scope:due}});EF.needsIndex=["any","first-child","first-of-type","last-child","last-of-type","matches","not","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];function EF(e,t,n,r,i){const a=e.pseudos;let o=-1;for(;++o0}function Qle(e,t,n,r,i){return i.language!==""&&i.language!==void 0&&Mle(i.language,Sp(e.value)).length>0}function Jle(e,t,n,r,i){return Io(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function eue(e,t,n,r,i){return Io(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function gy(e,t,n,r,i){const a={...i,found:!1,shallow:!1,one:!0,scopeElements:[t],results:[],rootQuery:N7(e.value)};return O7(a,t),a.results[0]===t}function tue(e,t,n,r,i){return!gy(e,t,n,r,i)}function nue(e,t,n,r,i){const a=x2(e);return Io(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function rue(e,t,n,r,i){const a=x2(e);return Io(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function iue(e,t,n,r,i){const a=x2(e);return Io(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function aue(e,t,n,r,i){const a=x2(e);return Io(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function oue(e,t,n,r,i){return Io(i,e),i.elementCount===1}function sue(e,t,n,r,i){return Io(i,e),i.typeCount===1}function lue(e,t){return!TF(e,t)}function uue(e,t,n,r,i){return!_F(e,t,n,r,i)}function _F(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Vr(t,"readOnly")&&!Vr(t,"disabled"):!!i.editableOrEditingHost}function TF(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Vr(t,"required")}function cue(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function due(e,t,n,r,i){return i.scopeElements.includes(t)}function pue(){throw new Error("Invalid pseudo-selector")}function fue(e){throw e.name?new Error("Unknown pseudo-selector `"+e.name+"`"):new Error("Unexpected pseudo-element or empty pseudo-class")}function SF(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";l4(a,p,c)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.rule.nestingOperator===null?l4(a,"descendant",s):s.rule.nestingOperator==="~"&&l4(a,"generalSibling",s)}return a}function Lh(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:gue}function l4(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function gI(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}var AF={},D7={},L7={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o==="-"||o==="_"}e.isIdentStart=t;function n(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o>="0"&&o<="9"||o==="-"||o==="_"}e.isIdent=n;function r(o){return o>="a"&&o<="f"||o>="A"&&o<="F"||o>="0"&&o<="9"}e.isHex=r;function i(o){for(var s=o.length,u="",c=0;c="A"&&p<="Z"||p>="a"&&p<="z"||c!==0&&p>="0"&&p<="9")u+=p;else{var f=p.charCodeAt(0);if((f&63488)===55296){var m=o.charCodeAt(c++);if((f&64512)!==55296||(m&64512)!==56320)throw Error("UCS-2(decode): illegal sequence");f=((f&1023)<<10)+(m&1023)+65536}u+="\\"+f.toString(16)+" "}c++}return u}e.escapeIdentifier=i;function a(o){for(var s=o.length,u="",c=0,p;c":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},e.strReplacementsRev={"\n":"\\n","\r":"\\r"," ":"\\t","\f":"\\f","\v":"\\v"},e.singleQuoteEscapeChars={n:` `,r:"\r",t:" ",f:"\f","\\":"\\","'":"'"},e.doubleQuotesEscapeChars={n:` -`,r:"\r",t:" ",f:"\f","\\":"\\",'"':'"'}})(V_);Object.defineProperty(G_,"__esModule",{value:!0});var Ia=V_;function xse(e,t,n,r,i,a){var o=e.length,s="";function u(b,T){var v="";for(t++,s=e.charAt(t);t=o)throw Error("Expected symbol but end of file reached.");if(s=e.charAt(t),Ia.identSpecialChars[s])b+=s;else if(Ia.isHex(s)){var T=s;for(t++,s=e.charAt(t);Ia.isHex(s);)T+=s,t++,s=e.charAt(t);s===" "&&(t++,s=e.charAt(t)),b+=String.fromCharCode(parseInt(T,16));continue}else b+=s}else return b;t++,s=e.charAt(t)}return b}function p(){s=e.charAt(t);for(var b=!1;s===" "||s===" "||s===` -`||s==="\r"||s==="\f";)b=!0,t++,s=e.charAt(t);return b}function f(){var b=m();if(t=o||s===","||s===")"));)if(i[s]){var y=s;if(t++,p(),T=E(),!T)throw Error('Rule expected after "'+y+'".');T.nestingOperator=y}else T=E(),T&&(T.nestingOperator=null);return b}function E(){for(var b=null;t=o)throw Error('Expected "=" but end of file reached.');if(s!=="=")throw Error('Expected "=" but "'+s+'" found.');T.operator=v+"=",t++,p();var y="";if(T.valueType="string",s==='"')y=u('"',Ia.doubleQuotesEscapeChars);else if(s==="'")y=u("'",Ia.singleQuoteEscapeChars);else if(a&&s==="$")t++,y=c(),T.valueType="substitute";else{for(;t=o)throw Error('Expected "]" but end of file reached.');if(s!=="]")throw Error('Expected "]" but "'+s+'" found.');t++,T.value=y}b=b||{},(b.attrs=b.attrs||[]).push(T)}else if(s===":"){t++;var w=c(),A={name:w};if(s==="("){t++;var D="";if(p(),n[w]==="selector")A.valueType="selector",D=m();else{if(A.valueType=n[w]||"string",s==='"')D=u('"',Ia.doubleQuotesEscapeChars);else if(s==="'")D=u("'",Ia.singleQuoteEscapeChars);else if(a&&s==="$")t++,D=c(),A.valueType="substitute";else{for(;t=o)throw Error('Expected ")" but end of file reached.');if(s!==")")throw Error('Expected ")" but "'+s+'" found.');t++,A.value=D}b=b||{},(b.pseudos=b.pseudos||[]).push(A)}else break;return b}return f()}G_.parseCssSelector=xse;var W_={};Object.defineProperty(W_,"__esModule",{value:!0});var ki=V_;function mh(e){var t="";switch(e.type){case"ruleSet":for(var n=e.rule,r=[];n;)n.nestingOperator&&r.push(n.nestingOperator),r.push(mh(n)),n=n.rule;t=r.join(" ");break;case"selectors":t=e.selectors.map(mh).join(", ");break;case"rule":e.tagName&&(e.tagName==="*"?t="*":t=ki.escapeIdentifier(e.tagName)),e.id&&(t+="#"+ki.escapeIdentifier(e.id)),e.classNames&&(t+=e.classNames.map(function(i){return"."+ki.escapeIdentifier(i)}).join("")),e.attrs&&(t+=e.attrs.map(function(i){return"operator"in i?i.valueType==="substitute"?"["+ki.escapeIdentifier(i.name)+i.operator+"$"+i.value+"]":"["+ki.escapeIdentifier(i.name)+i.operator+ki.escapeStr(i.value)+"]":"["+ki.escapeIdentifier(i.name)+"]"}).join("")),e.pseudos&&(t+=e.pseudos.map(function(i){return i.valueType?i.valueType==="selector"?":"+ki.escapeIdentifier(i.name)+"("+mh(i.value)+")":i.valueType==="substitute"?":"+ki.escapeIdentifier(i.name)+"($"+i.value+")":i.valueType==="numeric"?":"+ki.escapeIdentifier(i.name)+"("+i.value+")":":"+ki.escapeIdentifier(i.name)+"("+ki.escapeIdentifier(i.value)+")":":"+ki.escapeIdentifier(i.name)}).join(""));break;default:throw Error('Unknown entity type: "'+e.type+'".')}return t}W_.renderEntity=mh;Object.defineProperty(cM,"__esModule",{value:!0});var kse=G_,Ise=W_,Rse=function(){function e(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return e.prototype.registerSelectorPseudos=function(){for(var t=[],n=0;n","+","~");function Ose(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return rm.parse(e)}function Dse(e,t,n){const r=Lse(e,t,n);return j_(r,t||void 0),r.results}function Lse(e,t,n){return{rootQuery:H_(Ose(e)),results:[],scopeElements:t?t.type==="root"?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:n==="svg"?yl:Tu,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}const dM=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=dM(n.children))}),t),Mse=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=Dse(t,r);i&&i.length>0&&Ui(r,i,(a,o,s)=>{n(a,o,s)});return}Ui(r,(i,a,o)=>{n(i,a,o)})}}},Fse=Mse;var Pse={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Bse(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}function Use(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function pM(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?pM(t.parentElement):null}function $se(e){var t=n=>{var r=pM(n.target);r&&(r.classList.add("active"),Use(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};C.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var zse=function(t){return n=>{Ui(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=tn({},r.properties,{"data-meta":String(r.data.meta)}))})}},Hse=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"];const jse=ut.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:o=!1,skipHtml:s=!0,onScroll:u,onMouseOver:c,pluginsFilter:p,rehypeRewrite:f,wrapperElement:m={},warpperElement:g={}}=e,E=E1(e,Hse),b=ut.useRef(null);C.useImperativeHandle(t,()=>tn({},e,{mdp:b}),[b,e]);var T=(n||"")+" "+(r||"");$se(b);var v=(k,R,B)=>{if(k.type==="element"&&B&&B.type==="root"&&/h(1|2|3|4|5|6)/.test(k.tagName)){var W=k.children&&k.children[0];W&&W.properties&&W.properties.ariaHidden==="true"&&(W.properties=tn({class:"anchor"},W.properties),W.children=[Pse])}if(k.type==="element"&&k.tagName==="pre"&&!o){var P=dM(k.children);k.children.push(Bse(P))}f&&f(k,R,B)},y=[zse,[Aoe,{ignoreMissing:!0}],Fae,$ae,Wae,[Fse,{rewrite:v}],[Gae,{properties:"attr"}],...E.rehypePlugins||[]],w={allowElement:(k,R,B)=>E.allowElement?E.allowElement(k,R,B):/^[A-Za-z0-9]+$/.test(k.tagName)};s&&y.push(kae);var A=[...E.remarkPlugins||[],Kte],D=tn({},g,m);return I.jsx("div",tn({ref:b,onScroll:u,onMouseOver:c},D,{className:T,style:a,children:I.jsx(HE,tn({},w,E,{skipHtml:s,rehypePlugins:p?p("rehype",y):y,remarkPlugins:p?p("remark",A):A,children:i||""}))}))}),Gse=He(jse)` +`,r:"\r",t:" ",f:"\f","\\":"\\",'"':'"'}})(L7);Object.defineProperty(D7,"__esModule",{value:!0});var Oa=L7;function yue(e,t,n,r,i,a){var o=e.length,s="";function u(y,T){var E="";for(t++,s=e.charAt(t);t=o)throw Error("Expected symbol but end of file reached.");if(s=e.charAt(t),Oa.identSpecialChars[s])y+=s;else if(Oa.isHex(s)){var T=s;for(t++,s=e.charAt(t);Oa.isHex(s);)T+=s,t++,s=e.charAt(t);s===" "&&(t++,s=e.charAt(t)),y+=String.fromCharCode(parseInt(T,16));continue}else y+=s}else return y;t++,s=e.charAt(t)}return y}function p(){s=e.charAt(t);for(var y=!1;s===" "||s===" "||s===` +`||s==="\r"||s==="\f";)y=!0,t++,s=e.charAt(t);return y}function f(){var y=m();if(t=o||s===","||s===")"));)if(i[s]){var v=s;if(t++,p(),T=b(),!T)throw Error('Rule expected after "'+v+'".');T.nestingOperator=v}else T=b(),T&&(T.nestingOperator=null);return y}function b(){for(var y=null;t=o)throw Error('Expected "=" but end of file reached.');if(s!=="=")throw Error('Expected "=" but "'+s+'" found.');T.operator=E+"=",t++,p();var v="";if(T.valueType="string",s==='"')v=u('"',Oa.doubleQuotesEscapeChars);else if(s==="'")v=u("'",Oa.singleQuoteEscapeChars);else if(a&&s==="$")t++,v=c(),T.valueType="substitute";else{for(;t=o)throw Error('Expected "]" but end of file reached.');if(s!=="]")throw Error('Expected "]" but "'+s+'" found.');t++,T.value=v}y=y||{},(y.attrs=y.attrs||[]).push(T)}else if(s===":"){t++;var w=c(),A={name:w};if(s==="("){t++;var R="";if(p(),n[w]==="selector")A.valueType="selector",R=m();else{if(A.valueType=n[w]||"string",s==='"')R=u('"',Oa.doubleQuotesEscapeChars);else if(s==="'")R=u("'",Oa.singleQuoteEscapeChars);else if(a&&s==="$")t++,R=c(),A.valueType="substitute";else{for(;t=o)throw Error('Expected ")" but end of file reached.');if(s!==")")throw Error('Expected ")" but "'+s+'" found.');t++,A.value=R}y=y||{},(y.pseudos=y.pseudos||[]).push(A)}else break;return y}return f()}D7.parseCssSelector=yue;var M7={};Object.defineProperty(M7,"__esModule",{value:!0});var Ri=L7;function Mh(e){var t="";switch(e.type){case"ruleSet":for(var n=e.rule,r=[];n;)n.nestingOperator&&r.push(n.nestingOperator),r.push(Mh(n)),n=n.rule;t=r.join(" ");break;case"selectors":t=e.selectors.map(Mh).join(", ");break;case"rule":e.tagName&&(e.tagName==="*"?t="*":t=Ri.escapeIdentifier(e.tagName)),e.id&&(t+="#"+Ri.escapeIdentifier(e.id)),e.classNames&&(t+=e.classNames.map(function(i){return"."+Ri.escapeIdentifier(i)}).join("")),e.attrs&&(t+=e.attrs.map(function(i){return"operator"in i?i.valueType==="substitute"?"["+Ri.escapeIdentifier(i.name)+i.operator+"$"+i.value+"]":"["+Ri.escapeIdentifier(i.name)+i.operator+Ri.escapeStr(i.value)+"]":"["+Ri.escapeIdentifier(i.name)+"]"}).join("")),e.pseudos&&(t+=e.pseudos.map(function(i){return i.valueType?i.valueType==="selector"?":"+Ri.escapeIdentifier(i.name)+"("+Mh(i.value)+")":i.valueType==="substitute"?":"+Ri.escapeIdentifier(i.name)+"($"+i.value+")":i.valueType==="numeric"?":"+Ri.escapeIdentifier(i.name)+"("+i.value+")":":"+Ri.escapeIdentifier(i.name)+"("+Ri.escapeIdentifier(i.value)+")":":"+Ri.escapeIdentifier(i.name)}).join(""));break;default:throw Error('Unknown entity type: "'+e.type+'".')}return t}M7.renderEntity=Mh;Object.defineProperty(AF,"__esModule",{value:!0});var Eue=D7,vue=M7,_ue=function(){function e(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return e.prototype.registerSelectorPseudos=function(){for(var t=[],n=0;n","+","~");function Sue(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return I2.parse(e)}function wue(e,t,n){const r=Aue(e,t,n);return O7(r,t||void 0),r.results}function Aue(e,t,n){return{rootQuery:N7(Sue(e)),results:[],scopeElements:t?t.type==="root"?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:n==="svg"?Cl:Iu,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}const CF=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=CF(n.children))}),t),Cue=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=wue(t,r);i&&i.length>0&&Hi(r,i,(a,o,s)=>{n(a,o,s)});return}Hi(r,(i,a,o)=>{n(i,a,o)})}}},kue=Cue;var xue={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Iue(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}function Rue(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function kF(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?kF(t.parentElement):null}function Nue(e){var t=n=>{var r=kF(n.target);r&&(r.classList.add("active"),Rue(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};C.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var Oue=function(t){return n=>{Hi(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=nn({},r.properties,{"data-meta":String(r.data.meta)}))})}},Due=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"];const Lue=ut.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:o=!1,skipHtml:s=!0,onScroll:u,onMouseOver:c,pluginsFilter:p,rehypeRewrite:f,wrapperElement:m={},warpperElement:g={}}=e,b=C1(e,Due),y=ut.useRef(null);C.useImperativeHandle(t,()=>nn({},e,{mdp:y}),[y,e]);var T=(n||"")+" "+(r||"");Nue(y);var E=(k,N,B)=>{if(k.type==="element"&&B&&B.type==="root"&&/h(1|2|3|4|5|6)/.test(k.tagName)){var q=k.children&&k.children[0];q&&q.properties&&q.properties.ariaHidden==="true"&&(q.properties=nn({class:"anchor"},q.properties),q.children=[xue])}if(k.type==="element"&&k.tagName==="pre"&&!o){var P=CF(k.children);k.children.push(Iue(P))}f&&f(k,N,B)},v=[Oue,[mle,{ignoreMissing:!0}],kse,Nse,Pse,[kue,{rewrite:E}],[Mse,{properties:"attr"}],...b.rehypePlugins||[]],w={allowElement:(k,N,B)=>b.allowElement?b.allowElement(k,N,B):/^[A-Za-z0-9]+$/.test(k.tagName)};s&&v.push(Ese);var A=[...b.remarkPlugins||[],Ure],R=nn({},g,m);return I.jsx("div",nn({ref:y,onScroll:u,onMouseOver:c},R,{className:T,style:a,children:I.jsx(N9,nn({},w,b,{skipHtml:s,rehypePlugins:p?p("rehype",v):v,remarkPlugins:p?p("remark",A):A,children:i||""}))}))}),Mue=Ge(Lue)` pre { - background-color: ${e=>e.light?Kt:Lt}; - border-radius: ${wt}; - /* border: 0.5px solid ${vt}; */ + background-color: ${e=>e.light?Ht:Vt}; + border-radius: ${It}; + /* border: 0.5px solid ${Et}; */ max-width: calc(100vw - 24px); } @@ -290,13 +290,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho code { color: #f78383; word-wrap: break-word; - border-radius: ${wt}; - background-color: ${Lt}; + border-radius: ${It}; + background-color: ${Vt}; } pre > code { - background-color: ${e=>e.light?Kt:Lt}; - color: ${Ht}; + background-color: ${e=>e.light?Ht:Vt}; + color: ${Yt}; padding: 12px; ${e=>{if(e.maxHeight)return` @@ -305,52 +305,68 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `}} } - background-color: ${e=>e.light?"transparent":Kt}; + background-color: ${e=>e.light?"transparent":Ht}; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; - font-size: ${e=>e.fontSize||nr()}px; + font-size: ${e=>e.fontSize||pr()}px; padding: 8px; - color: ${Ht}; -`;function pg(e){return I.jsx(Gse,{components:{a:({node:t,...n})=>I.jsx("a",{...n,target:"_blank",children:n.children})},className:e.className,maxHeight:e.maxHeight,fontSize:nr(),source:e.source||"",wrapperElement:{"data-color-mode":"dark"}})}const Vse=He.div``,Wse=He.div` + color: ${Yt}; +`;function Ug(e){return I.jsx(Mue,{components:{a:({node:t,...n})=>I.jsx("a",{...n,target:"_blank",children:n.children})},className:e.className,maxHeight:e.maxHeight,fontSize:pr(),source:e.source||"",wrapperElement:{"data-color-mode":"dark"}})}const Fue=Ge.div``,Pue=Ge.div` display: flex; gap: 2px; align-items: center; - background-color: ${Kt}; - box-shadow: 1px 1px 10px ${Kt}; - border-radius: ${wt}; + background-color: ${Ht}; + box-shadow: 1px 1px 10px ${Ht}; + border-radius: ${It}; z-index: 100; position: absolute; right: 8px; top: 16px; height: 0; -`,qse=He.div` +`,Bue=Ge.div` padding: 2px; padding-right: 0px; - background-color: ${e=>e.isUserInput?Lt:Kt}; - font-size: ${e=>e.fontSize||nr()}px; - border-radius: ${wt}; + background-color: ${e=>e.isUserInput?Vt:Ht}; + font-size: ${e=>e.fontSize||pr()}px; + border-radius: ${It}; overflow: hidden; -`;function Kse(e){var o,s;const[t,n]=C.useState(!1),r=C.useRef(null),i=C.useRef(null),a=e.historyNode.step.name==="UserInputStep";return C.useEffect(()=>{i!=null&&i.current&&i.current.focus()},[i]),C.useEffect(()=>{var u;t&&((u=r.current)==null||u.focus())},[t]),I.jsx(Vse,{stepDepth:e.historyNode.depth||0,inFuture:e.inFuture,onMouseEnter:()=>{n(!0)},onMouseLeave:()=>{n(!1)},hidden:e.historyNode.step.hide,children:I.jsxs("div",{children:[t&&(((o=e.historyNode.observation)==null?void 0:o.error)||e.noUserInputParent)&&I.jsxs(Wse,{children:[((s=e.historyNode.observation)==null?void 0:s.error)&&I.jsx(vi,{text:"Retry",onClick:u=>{u.stopPropagation(),e.onRetry()},children:I.jsx(aY,{width:"1.4em",height:"1.4em",onClick:e.onRetry})}),e.noUserInputParent&&I.jsx(vi,{text:"Delete",onClick:u=>{u.stopPropagation(),e.onDelete()},children:I.jsx(T2,{width:"1.4em",height:"1.4em",onClick:e.onRetry})})]}),I.jsx(qse,{hidden:!e.open,isUserInput:a,fontSize:nr(),children:I.jsx(pg,{source:e.historyNode.step.description})})]})})}var bn={};/** @license React v17.0.2 +`;function Uue(e){const[t,n]=C.useState(!1),r=C.useRef(null),i=C.useRef(null),a=e.step.name==="UserInputStep";return C.useEffect(()=>{i!=null&&i.current&&i.current.focus()},[i]),C.useEffect(()=>{var o;t&&((o=r.current)==null||o.focus())},[t]),I.jsx(Fue,{stepDepth:e.step.depth||0,onMouseEnter:()=>{n(!0)},onMouseLeave:()=>{n(!1)},hidden:e.step.hide,children:I.jsxs("div",{children:[t&&(e.step.error||e.noUserInputParent)&&I.jsxs(Pue,{children:[e.step.error&&I.jsx(zi,{text:"Retry",onClick:o=>{o.stopPropagation(),e.onRetry()},children:I.jsx(QX,{width:"1.4em",height:"1.4em",onClick:e.onRetry})}),e.noUserInputParent&&I.jsx(zi,{text:"Delete",onClick:o=>{o.stopPropagation(),e.onDelete()},children:I.jsx(w9,{width:"1.4em",height:"1.4em",onClick:e.onRetry})})]}),I.jsx(Bue,{hidden:!e.open,isUserInput:a,fontSize:pr(),children:I.jsx(Ug,{source:e.step.description})})]})})}var yn={};/** @license React v17.0.2 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var im=60103,am=60106,zp=60107,Hp=60108,jp=60114,Gp=60109,Vp=60110,Wp=60112,qp=60113,q_=60120,Kp=60115,Yp=60116,fM=60121,hM=60122,gM=60117,mM=60129,bM=60131;if(typeof Symbol=="function"&&Symbol.for){var mr=Symbol.for;im=mr("react.element"),am=mr("react.portal"),zp=mr("react.fragment"),Hp=mr("react.strict_mode"),jp=mr("react.profiler"),Gp=mr("react.provider"),Vp=mr("react.context"),Wp=mr("react.forward_ref"),qp=mr("react.suspense"),q_=mr("react.suspense_list"),Kp=mr("react.memo"),Yp=mr("react.lazy"),fM=mr("react.block"),hM=mr("react.server.block"),gM=mr("react.fundamental"),mM=mr("react.debug_trace_mode"),bM=mr("react.legacy_hidden")}function Ka(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case im:switch(e=e.type,e){case zp:case jp:case Hp:case qp:case q_:return e;default:switch(e=e&&e.$$typeof,e){case Vp:case Wp:case Yp:case Kp:case Gp:return e;default:return t}}case am:return t}}}var Yse=Gp,Xse=im,Zse=Wp,Qse=zp,Jse=Yp,ele=Kp,tle=am,nle=jp,rle=Hp,ile=qp;bn.ContextConsumer=Vp;bn.ContextProvider=Yse;bn.Element=Xse;bn.ForwardRef=Zse;bn.Fragment=Qse;bn.Lazy=Jse;bn.Memo=ele;bn.Portal=tle;bn.Profiler=nle;bn.StrictMode=rle;bn.Suspense=ile;bn.isAsyncMode=function(){return!1};bn.isConcurrentMode=function(){return!1};bn.isContextConsumer=function(e){return Ka(e)===Vp};bn.isContextProvider=function(e){return Ka(e)===Gp};bn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===im};bn.isForwardRef=function(e){return Ka(e)===Wp};bn.isFragment=function(e){return Ka(e)===zp};bn.isLazy=function(e){return Ka(e)===Yp};bn.isMemo=function(e){return Ka(e)===Kp};bn.isPortal=function(e){return Ka(e)===am};bn.isProfiler=function(e){return Ka(e)===jp};bn.isStrictMode=function(e){return Ka(e)===Hp};bn.isSuspense=function(e){return Ka(e)===qp};bn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zp||e===jp||e===mM||e===Hp||e===qp||e===q_||e===bM||typeof e=="object"&&e!==null&&(e.$$typeof===Yp||e.$$typeof===Kp||e.$$typeof===Gp||e.$$typeof===Vp||e.$$typeof===Wp||e.$$typeof===gM||e.$$typeof===fM||e[0]===hM)};bn.typeOf=Ka;let bk=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ek=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",F3=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,ale=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var ole=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:he=>he!==f;if(!bk(e))throw new TypeError("Invalid target");let E=document.scrollingElement||document.documentElement,b=[],T=e;for(;bk(T)&&g(T);){if(T=ale(T),T===E){b.push(T);break}T!=null&&T===document.body&&F3(T)&&!F3(document.documentElement)||T!=null&&F3(T,m)&&b.push(T)}let v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:D,width:k,top:R,right:B,bottom:W,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?R:c==="end"?W:R+D/2,z=p==="center"?P+k/2:p==="end"?B:P,le=[];for(let he=0;he=0&&P>=0&&W<=y&&B<=v&&R>=V&&W<=N&&P>=me&&B<=ce)return le;let oe=getComputedStyle(de),O=parseInt(oe.borderLeftWidth,10),re=parseInt(oe.borderTopWidth,10),Te=parseInt(oe.borderRightWidth,10),K=parseInt(oe.borderBottomWidth,10),xe=0,ne=0,Le="offsetWidth"in de?de.offsetWidth-de.clientWidth-O-Te:0,Re="offsetHeight"in de?de.offsetHeight-de.clientHeight-re-K:0,Xe="offsetWidth"in de?de.offsetWidth===0?0:Z/de.offsetWidth:0,Ve="offsetHeight"in de?de.offsetHeight===0?0:fe/de.offsetHeight:0;if(E===de)xe=c==="start"?Q:c==="end"?Q-y:c==="nearest"?R0(A,A+y,y,re,K,A+Q,A+Q+D,D):Q-y/2,ne=p==="start"?z:p==="center"?z-v/2:p==="end"?z-v:R0(w,w+v,v,O,Te,w+z,w+z+k,k),xe=Math.max(0,xe+A),ne=Math.max(0,ne+w);else{xe=c==="start"?Q-V-re:c==="end"?Q-N+K+Re:c==="nearest"?R0(V,N,fe,re,K+Re,Q,Q+D,D):Q-(V+fe/2)+Re/2,ne=p==="start"?z-me-O:p==="center"?z-(me+Z/2)+Le/2:p==="end"?z-ce+Te+Le:R0(me,ce,Z,O,Te+Le,z,z+k,k);let{scrollLeft:dt,scrollTop:ot}=de;xe=Math.max(0,Math.min(ot+xe/Ve,de.scrollHeight-fe/Ve+Re)),ne=Math.max(0,Math.min(dt+ne/Xe,de.scrollWidth-Z/Xe+Le)),Q+=ot-xe,z+=dt-ne}le.push({el:de,top:xe,left:ne})}return le},fg=function(){return fg=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function O0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=cp(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function cp(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?cp(1,0,n,r,!1):cp(-1,n-1,n,r,!1):-1}function yk(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(vk(i,e,n)||r&&vk(i,n.document.activeElement,n))})}var ple=vM(function(e){_M(e).textContent=""},500);function fle(e,t){var n=_M(t);e&&(n.textContent=e,ple(t))}function _M(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var hle=["isInitialMount","highlightedIndex","items","environment"],TM={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function gle(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){mle(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(tn({type:i},a))}function mle(e,t,n,r){var i=t.props,a=t.type,o="on"+K_(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](tn({type:a},r))}function ble(e,t){return t.changes}function Ele(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var vle=vM(function(e,t){fle(e(),t)},200),yle=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function _le(e){var t=e.id,n=t===void 0?"downshift-"+ule():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function Tle(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function Sle(e){return e?String(e):""}function K_(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function SM(e){var t=C.useRef(e);return t.current=e,t}function wle(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=Pb(m,g.props);var E=e(m,g),b=g.props.stateReducer(m,tn({},g,{changes:E}));return b},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=SM(n),p=C.useCallback(function(m){return u(tn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&gle(f,Pb(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Ld={itemToString:Sle,stateReducer:ble,getA11ySelectionMessage:Ele,scrollIntoView:lle,environment:typeof window>"u"?{}:window};function co(e,t,n){n===void 0&&(n=TM);var r=e["default"+K_(t)];return r!==void 0?r:n[t]}function D0(e,t,n){n===void 0&&(n=TM);var r=e[t];if(r!==void 0)return r;var i=e["initial"+K_(t)];return i!==void 0?i:co(e,t,n)}function Ale(e){var t=D0(e,"selectedItem"),n=D0(e,"isOpen"),r=D0(e,"highlightedIndex"),i=D0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Md(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function Cle(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!yk(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!yk(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var xle=function(){return EM};function _k(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=E1(n,hle);C.useEffect(function(){r||vle(function(){return e(tn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function kle(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return yle(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var Ile=EM;function Tk(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return tn({isOpen:!1,highlightedIndex:-1},i&&tn({selectedItem:e.items[t],isOpen:co(e,"isOpen"),highlightedIndex:co(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Rle(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Md(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Md(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:co(i,"highlightedIndex"),isOpen:co(i,"isOpen"),selectedItem:co(i,"selectedItem"),inputValue:co(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return tn({},e,a)}Ee.array.isRequired,Ee.func,Ee.func,Ee.func,Ee.number,Ee.number,Ee.number,Ee.bool,Ee.bool,Ee.bool,Ee.any,Ee.any,Ee.any,Ee.string,Ee.string,Ee.string,Ee.func,Ee.string,Ee.func,Ee.func,Ee.func,Ee.func,Ee.func,Ee.shape({addEventListener:Ee.func,removeEventListener:Ee.func,document:Ee.shape({getElementById:Ee.func,activeElement:Ee.any,body:Ee.any})});function Nle(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}fg(fg({},Ld),{getA11yStatusMessage:Nle});var Y_=0,X_=1,Z_=2,Q_=3,J_=4,e7=5,t7=6,n7=7,r7=8,hg=9,i7=10,wM=11,AM=12,a7=13,CM=14,xM=15,kM=16,IM=17,RM=18,o7=19,NM=20,OM=21,s7=22,DM=Object.freeze({__proto__:null,InputKeyDownArrowDown:Y_,InputKeyDownArrowUp:X_,InputKeyDownEscape:Z_,InputKeyDownHome:Q_,InputKeyDownEnd:J_,InputKeyDownPageUp:e7,InputKeyDownPageDown:t7,InputKeyDownEnter:n7,InputChange:r7,InputBlur:hg,InputFocus:i7,MenuMouseLeave:wM,ItemMouseMove:AM,ItemClick:a7,ToggleButtonClick:CM,FunctionToggleMenu:xM,FunctionOpenMenu:kM,FunctionCloseMenu:IM,FunctionSetHighlightedIndex:RM,FunctionSelectItem:o7,FunctionSetInputValue:NM,FunctionReset:OM,ControlledPropUpdatedSelectedItem:s7});function Ole(e){var t=Ale(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),tn({},t,{inputValue:r})}Ee.array.isRequired,Ee.func,Ee.func,Ee.func,Ee.func,Ee.number,Ee.number,Ee.number,Ee.bool,Ee.bool,Ee.bool,Ee.any,Ee.any,Ee.any,Ee.string,Ee.string,Ee.string,Ee.string,Ee.string,Ee.string,Ee.func,Ee.string,Ee.string,Ee.func,Ee.func,Ee.func,Ee.func,Ee.func,Ee.func,Ee.shape({addEventListener:Ee.func,removeEventListener:Ee.func,document:Ee.shape({getElementById:Ee.func,activeElement:Ee.any,body:Ee.any})});function Dle(e,t,n){var r=C.useRef(),i=wle(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){yM(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:s7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[Pb(a,n),o]}var Lle=tn({},Ld,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:cle});function Mle(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case a7:o={isOpen:co(i,"isOpen"),highlightedIndex:co(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case Y_:e.isOpen?o={highlightedIndex:O0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Md(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case X_:e.isOpen?a?o=Tk(i,e.highlightedIndex):o={highlightedIndex:O0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Md(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case n7:o=Tk(i,e.highlightedIndex);break;case Z_:o=tn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case e7:o={highlightedIndex:O0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case t7:o={highlightedIndex:O0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case Q_:o={highlightedIndex:cp(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case J_:o={highlightedIndex:cp(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case hg:o=tn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case r7:o={isOpen:!0,highlightedIndex:co(i,"highlightedIndex"),inputValue:t.inputValue};break;case i7:o={isOpen:!0,highlightedIndex:Md(i,e,0)};break;case o7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case s7:o={inputValue:t.inputValue};break;default:return Rle(e,t,DM)}return tn({},e,o)}var Fle=["onMouseLeave","refKey","ref"],Ple=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],Ble=["onClick","onPress","refKey","ref"],Ule=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];LM.stateChangeTypes=DM;function LM(e){e===void 0&&(e={});var t=tn({},Lle,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=Ole(t),f=Dle(Mle,p,t),m=f[0],g=f[1],E=m.isOpen,b=m.highlightedIndex,T=m.selectedItem,v=m.inputValue,y=C.useRef(null),w=C.useRef({}),A=C.useRef(null),D=C.useRef(null),k=C.useRef(!0),R=_le(t),B=C.useRef(),W=SM({state:m,props:t}),P=C.useCallback(function(xe){return w.current[R.getItemId(xe)]},[R]);_k(s,[E,b,v,i],tn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),_k(u,[T],tn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=kle({menuElement:y.current,highlightedIndex:b,isOpen:E,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});Ile({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var xe=n||r||E;xe&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var z=Cle(E,[A,y,D],o,function(){g({type:hg,selectItem:!1})}),le=xle();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var xe;if(!E)w.current={};else if(((xe=o.document)==null?void 0:xe.activeElement)!==A.current){var ne;A==null||(ne=A.current)==null||ne.focus()}},[E,o]);var he=C.useMemo(function(){return{ArrowDown:function(ne){ne.preventDefault(),g({type:Y_,altKey:ne.altKey,getItemNodeFromIndex:P})},ArrowUp:function(ne){ne.preventDefault(),g({type:X_,altKey:ne.altKey,getItemNodeFromIndex:P})},Home:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:Q_,getItemNodeFromIndex:P}))},End:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:J_,getItemNodeFromIndex:P}))},Escape:function(ne){var Le=W.current.state;(Le.isOpen||Le.inputValue||Le.selectedItem||Le.highlightedIndex>-1)&&(ne.preventDefault(),g({type:Z_}))},Enter:function(ne){var Le=W.current.state;!Le.isOpen||ne.which===229||(ne.preventDefault(),g({type:n7,getItemNodeFromIndex:P}))},PageUp:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:e7,getItemNodeFromIndex:P}))},PageDown:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:t7,getItemNodeFromIndex:P}))}}},[g,W,P]),de=C.useCallback(function(xe){return tn({id:R.labelId,htmlFor:R.inputId},xe)},[R]),fe=C.useCallback(function(xe,ne){var Le,Re=xe===void 0?{}:xe,Xe=Re.onMouseLeave,Ve=Re.refKey,dt=Ve===void 0?"ref":Ve,ot=Re.ref,Ge=E1(Re,Fle),pt=ne===void 0?{}:ne;return pt.suppressRefError,tn((Le={},Le[dt]=N0(ot,function(U){y.current=U}),Le.id=R.menuId,Le.role="listbox",Le["aria-labelledby"]=Ge&&Ge["aria-label"]?void 0:""+R.labelId,Le.onMouseLeave=Uo(Xe,function(){g({type:wM})}),Le),Ge)},[g,le,R]),Z=C.useCallback(function(xe){var ne,Le,Re=xe===void 0?{}:xe,Xe=Re.item,Ve=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,Ge=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,ie=Re.onClick;Re.onPress;var pe=Re.disabled,ke=E1(Re,Ple),ve=W.current,Se=ve.props,Me=ve.state,ze=Tle(Xe,Ve,Se.items,"Pass either item or index to getItemProps!"),Ke=ze[1],jt="onClick",ue=ie,ye=function(){Ke!==Me.highlightedIndex&&(Q.current=!1,g({type:AM,index:Ke,disabled:pe}))},We=function(){g({type:a7,index:Ke})},at=function(Y){return Y.preventDefault()};return tn((ne={},ne[ot]=N0(Ge,function(Qe){Qe&&(w.current[R.getItemId(Ke)]=Qe)}),ne.disabled=pe,ne.role="option",ne["aria-selected"]=""+(Ke===Me.highlightedIndex),ne.id=R.getItemId(Ke),ne),!pe&&(Le={},Le[jt]=Uo(ue,We),Le),{onMouseMove:Uo(pt,ye),onMouseDown:Uo(U,at)},ke)},[g,W,Q,R]),V=C.useCallback(function(xe){var ne,Le=xe===void 0?{}:xe,Re=Le.onClick;Le.onPress;var Xe=Le.refKey,Ve=Xe===void 0?"ref":Xe,dt=Le.ref,ot=E1(Le,Ble),Ge=W.current.state,pt=function(){g({type:CM})};return tn((ne={},ne[Ve]=N0(dt,function(U){D.current=U}),ne["aria-controls"]=R.menuId,ne["aria-expanded"]=Ge.isOpen,ne.id=R.toggleButtonId,ne.tabIndex=-1,ne),!ot.disabled&&tn({},{onClick:Uo(Re,pt)}),ot)},[g,W,R]),ce=C.useCallback(function(xe,ne){var Le,Re=xe===void 0?{}:xe,Xe=Re.onKeyDown,Ve=Re.onChange,dt=Re.onInput,ot=Re.onFocus,Ge=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,ie=Re.ref,pe=E1(Re,Ule),ke=ne===void 0?{}:ne;ke.suppressRefError;var ve=W.current.state,Se=function(at){var Qe=dle(at);Qe&&he[Qe]&&he[Qe](at)},Me=function(at){g({type:r7,inputValue:at.target.value})},ze=function(at){if(ve.isOpen&&!z.current.isMouseDown){var Qe=at.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:hg,selectItem:!Qe})}},Ke=function(){ve.isOpen||g({type:i7})},jt="onChange",ue={};if(!pe.disabled){var ye;ue=(ye={},ye[jt]=Uo(Ve,dt,Me),ye.onKeyDown=Uo(Xe,Se),ye.onBlur=Uo(Ge,ze),ye.onFocus=Uo(ot,Ke),ye)}return tn((Le={},Le[U]=N0(ie,function(We){A.current=We}),Le["aria-activedescendant"]=ve.isOpen&&ve.highlightedIndex>-1?R.getItemId(ve.highlightedIndex):"",Le["aria-autocomplete"]="list",Le["aria-controls"]=R.menuId,Le["aria-expanded"]=ve.isOpen,Le["aria-labelledby"]=pe&&pe["aria-label"]?void 0:""+R.labelId,Le.autoComplete="off",Le.id=R.inputId,Le.role="combobox",Le.value=ve.inputValue,Le),ue,pe)},[le,W,R,he,g,z,o]),N=C.useCallback(function(){g({type:xM})},[g]),me=C.useCallback(function(){g({type:IM})},[g]),oe=C.useCallback(function(){g({type:kM})},[g]),O=C.useCallback(function(xe){g({type:RM,highlightedIndex:xe})},[g]),re=C.useCallback(function(xe){g({type:o7,selectedItem:xe})},[g]),Te=C.useCallback(function(xe){g({type:NM,inputValue:xe})},[g]),K=C.useCallback(function(){g({type:OM})},[g]);return{getItemProps:Z,getLabelProps:de,getMenuProps:fe,getInputProps:ce,getToggleButtonProps:V,toggleMenu:N,openMenu:oe,closeMenu:me,setHighlightedIndex:O,setInputValue:Te,selectItem:re,reset:K,highlightedIndex:b,isOpen:E,selectedItem:T,inputValue:v}}function $le(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}Ee.array,Ee.array,Ee.array,Ee.func,Ee.func,Ee.func,Ee.number,Ee.number,Ee.number,Ee.func,Ee.func,Ee.string,Ee.string,Ee.shape({addEventListener:Ee.func,removeEventListener:Ee.func,document:Ee.shape({getElementById:Ee.func,activeElement:Ee.any,body:Ee.any})});Ld.itemToString,Ld.stateReducer,Ld.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:MM,setPrototypeOf:Sk,isFrozen:zle,getPrototypeOf:Hle,getOwnPropertyDescriptor:FM}=Object;let{freeze:ti,seal:Ga,create:PM}=Object,{apply:Bb,construct:Ub}=typeof Reflect<"u"&&Reflect;ti||(ti=function(t){return t});Ga||(Ga=function(t){return t});Bb||(Bb=function(t,n,r){return t.apply(n,r)});Ub||(Ub=function(t,n){return new t(...n)});const L0=ba(Array.prototype.forEach),wk=ba(Array.prototype.pop),Xc=ba(Array.prototype.push),bh=ba(String.prototype.toLowerCase),P3=ba(String.prototype.toString),jle=ba(String.prototype.match),Zc=ba(String.prototype.replace),Gle=ba(String.prototype.indexOf),Vle=ba(String.prototype.trim),Ii=ba(RegExp.prototype.test),Qc=Wle(TypeError);function ba(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:bh;Sk&&Sk(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(zle(t)||(t[r]=a),i=a)}e[i]=!0}return e}function Xu(e){const t=PM(null);for(const[n,r]of MM(e))FM(e,n)!==void 0&&(t[n]=r);return t}function M0(e,t){for(;e!==null;){const r=FM(e,t);if(r){if(r.get)return ba(r.get);if(typeof r.value=="function")return ba(r.value)}e=Hle(e)}function n(r){return console.warn("fallback value for",r),null}return n}const Ak=ti(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),B3=ti(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),U3=ti(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),qle=ti(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$3=ti(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Kle=ti(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ck=ti(["#text"]),xk=ti(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z3=ti(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kk=ti(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F0=ti(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Yle=Ga(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xle=Ga(/<%[\w\W]*|[\w\W]*%>/gm),Zle=Ga(/\${[\w\W]*}/gm),Qle=Ga(/^data-[\-\w.\u00B7-\uFFFF]/),Jle=Ga(/^aria-[\-\w]+$/),BM=Ga(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eue=Ga(/^(?:\w+script|data):/i),tue=Ga(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),UM=Ga(/^html$/i);var Ik=Object.freeze({__proto__:null,MUSTACHE_EXPR:Yle,ERB_EXPR:Xle,TMPLIT_EXPR:Zle,DATA_ATTR:Qle,ARIA_ATTR:Jle,IS_ALLOWED_URI:BM,IS_SCRIPT_OR_DATA:eue,ATTR_WHITESPACE:tue,DOCTYPE_NAME:UM});const nue=function(){return typeof window>"u"?null:window},rue=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function $M(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nue();const t=qe=>$M(qe);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,E=u.prototype,b=M0(E,"cloneNode"),T=M0(E,"nextSibling"),v=M0(E,"childNodes"),y=M0(E,"parentNode");if(typeof o=="function"){const qe=n.createElement("template");qe.content&&qe.content.ownerDocument&&(n=qe.content.ownerDocument)}let w,A="";const{implementation:D,createNodeIterator:k,createDocumentFragment:R,getElementsByTagName:B}=n,{importNode:W}=r;let P={};t.isSupported=typeof MM=="function"&&typeof y=="function"&&D&&D.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:z,TMPLIT_EXPR:le,DATA_ATTR:he,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:Z}=Ik;let{IS_ALLOWED_URI:V}=Ik,ce=null;const N=Ct({},[...Ak,...B3,...U3,...$3,...Ck]);let me=null;const oe=Ct({},[...xk,...z3,...kk,...F0]);let O=Object.seal(PM(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,Te=null,K=!0,xe=!0,ne=!1,Le=!0,Re=!1,Xe=!1,Ve=!1,dt=!1,ot=!1,Ge=!1,pt=!1,U=!0,ie=!1;const pe="user-content-";let ke=!0,ve=!1,Se={},Me=null;const ze=Ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ke=null;const jt=Ct({},["audio","video","img","source","image","track"]);let ue=null;const ye=Ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Y=Qe,se=!1,j=null;const $=Ct({},[We,at,Qe],P3);let J=null;const be=["application/xhtml+xml","text/html"],Fe="text/html";let De=null,tt=null;const Je=n.createElement("form"),Ze=function(ee){return ee instanceof RegExp||ee instanceof Function},Rt=function(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(tt&&tt===ee)){if((!ee||typeof ee!="object")&&(ee={}),ee=Xu(ee),J=be.indexOf(ee.PARSER_MEDIA_TYPE)===-1?J=Fe:J=ee.PARSER_MEDIA_TYPE,De=J==="application/xhtml+xml"?P3:bh,ce="ALLOWED_TAGS"in ee?Ct({},ee.ALLOWED_TAGS,De):N,me="ALLOWED_ATTR"in ee?Ct({},ee.ALLOWED_ATTR,De):oe,j="ALLOWED_NAMESPACES"in ee?Ct({},ee.ALLOWED_NAMESPACES,P3):$,ue="ADD_URI_SAFE_ATTR"in ee?Ct(Xu(ye),ee.ADD_URI_SAFE_ATTR,De):ye,Ke="ADD_DATA_URI_TAGS"in ee?Ct(Xu(jt),ee.ADD_DATA_URI_TAGS,De):jt,Me="FORBID_CONTENTS"in ee?Ct({},ee.FORBID_CONTENTS,De):ze,re="FORBID_TAGS"in ee?Ct({},ee.FORBID_TAGS,De):{},Te="FORBID_ATTR"in ee?Ct({},ee.FORBID_ATTR,De):{},Se="USE_PROFILES"in ee?ee.USE_PROFILES:!1,K=ee.ALLOW_ARIA_ATTR!==!1,xe=ee.ALLOW_DATA_ATTR!==!1,ne=ee.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=ee.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=ee.SAFE_FOR_TEMPLATES||!1,Xe=ee.WHOLE_DOCUMENT||!1,ot=ee.RETURN_DOM||!1,Ge=ee.RETURN_DOM_FRAGMENT||!1,pt=ee.RETURN_TRUSTED_TYPE||!1,dt=ee.FORCE_BODY||!1,U=ee.SANITIZE_DOM!==!1,ie=ee.SANITIZE_NAMED_PROPS||!1,ke=ee.KEEP_CONTENT!==!1,ve=ee.IN_PLACE||!1,V=ee.ALLOWED_URI_REGEXP||BM,Y=ee.NAMESPACE||Qe,O=ee.CUSTOM_ELEMENT_HANDLING||{},ee.CUSTOM_ELEMENT_HANDLING&&Ze(ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(O.tagNameCheck=ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&Ze(ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(O.attributeNameCheck=ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&typeof ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(O.allowCustomizedBuiltInElements=ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(xe=!1),Ge&&(ot=!0),Se&&(ce=Ct({},[...Ck]),me=[],Se.html===!0&&(Ct(ce,Ak),Ct(me,xk)),Se.svg===!0&&(Ct(ce,B3),Ct(me,z3),Ct(me,F0)),Se.svgFilters===!0&&(Ct(ce,U3),Ct(me,z3),Ct(me,F0)),Se.mathMl===!0&&(Ct(ce,$3),Ct(me,kk),Ct(me,F0))),ee.ADD_TAGS&&(ce===N&&(ce=Xu(ce)),Ct(ce,ee.ADD_TAGS,De)),ee.ADD_ATTR&&(me===oe&&(me=Xu(me)),Ct(me,ee.ADD_ATTR,De)),ee.ADD_URI_SAFE_ATTR&&Ct(ue,ee.ADD_URI_SAFE_ATTR,De),ee.FORBID_CONTENTS&&(Me===ze&&(Me=Xu(Me)),Ct(Me,ee.FORBID_CONTENTS,De)),ke&&(ce["#text"]=!0),Xe&&Ct(ce,["html","head","body"]),ce.table&&(Ct(ce,["tbody"]),delete re.tbody),ee.TRUSTED_TYPES_POLICY){if(typeof ee.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ee.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=ee.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=rue(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ti&&ti(ee),tt=ee}},Zt=Ct({},["mi","mo","mn","ms","mtext"]),kt=Ct({},["foreignobject","desc","title","annotation-xml"]),nn=Ct({},["title","style","font","a","script"]),Yt=Ct({},B3);Ct(Yt,U3),Ct(Yt,qle);const jr=Ct({},$3);Ct(jr,Kle);const Gr=function(ee){let Be=y(ee);(!Be||!Be.tagName)&&(Be={namespaceURI:Y,tagName:"template"});const it=bh(ee.tagName),ln=bh(Be.tagName);return j[ee.namespaceURI]?ee.namespaceURI===at?Be.namespaceURI===Qe?it==="svg":Be.namespaceURI===We?it==="svg"&&(ln==="annotation-xml"||Zt[ln]):!!Yt[it]:ee.namespaceURI===We?Be.namespaceURI===Qe?it==="math":Be.namespaceURI===at?it==="math"&&kt[ln]:!!jr[it]:ee.namespaceURI===Qe?Be.namespaceURI===at&&!kt[ln]||Be.namespaceURI===We&&!Zt[ln]?!1:!jr[it]&&(nn[it]||!Yt[it]):!!(J==="application/xhtml+xml"&&j[ee.namespaceURI]):!1},Vr=function(ee){Xc(t.removed,{element:ee});try{ee.parentNode.removeChild(ee)}catch{ee.remove()}},Ta=function(ee,Be){try{Xc(t.removed,{attribute:Be.getAttributeNode(ee),from:Be})}catch{Xc(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(ee),ee==="is"&&!me[ee])if(ot||Ge)try{Vr(Be)}catch{}else try{Be.setAttribute(ee,"")}catch{}},ii=function(ee){let Be=null,it=null;if(dt)ee=""+ee;else{const ar=jle(ee,/^[\r\n\t ]+/);it=ar&&ar[0]}J==="application/xhtml+xml"&&Y===Qe&&(ee=''+ee+"");const ln=w?w.createHTML(ee):ee;if(Y===Qe)try{Be=new m().parseFromString(ln,J)}catch{}if(!Be||!Be.documentElement){Be=D.createDocument(Y,"template",null);try{Be.documentElement.innerHTML=se?A:ln}catch{}}const ir=Be.body||Be.documentElement;return ee&&it&&ir.insertBefore(n.createTextNode(it),ir.childNodes[0]||null),Y===Qe?B.call(Be,Xe?"html":"body")[0]:Xe?Be.documentElement:ir},Ir=function(ee){return k.call(ee.ownerDocument||ee,ee,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},ps=function(ee){return ee instanceof f&&(typeof ee.nodeName!="string"||typeof ee.textContent!="string"||typeof ee.removeChild!="function"||!(ee.attributes instanceof p)||typeof ee.removeAttribute!="function"||typeof ee.setAttribute!="function"||typeof ee.namespaceURI!="string"||typeof ee.insertBefore!="function"||typeof ee.hasChildNodes!="function")},fs=function(ee){return typeof s=="function"&&ee instanceof s},Wr=function(ee,Be,it){P[ee]&&L0(P[ee],ln=>{ln.call(t,Be,it,tt)})},hs=function(ee){let Be=null;if(Wr("beforeSanitizeElements",ee,null),ps(ee))return Vr(ee),!0;const it=De(ee.nodeName);if(Wr("uponSanitizeElement",ee,{tagName:it,allowedTags:ce}),ee.hasChildNodes()&&!fs(ee.firstElementChild)&&Ii(/<[/\w]/g,ee.innerHTML)&&Ii(/<[/\w]/g,ee.textContent))return Vr(ee),!0;if(!ce[it]||re[it]){if(!re[it]&&Rr(it)&&(O.tagNameCheck instanceof RegExp&&Ii(O.tagNameCheck,it)||O.tagNameCheck instanceof Function&&O.tagNameCheck(it)))return!1;if(ke&&!Me[it]){const ln=y(ee)||ee.parentNode,ir=v(ee)||ee.childNodes;if(ir&&ln){const ar=ir.length;for(let Yn=ar-1;Yn>=0;--Yn)ln.insertBefore(b(ir[Yn],!0),T(ee))}}return Vr(ee),!0}return ee instanceof u&&!Gr(ee)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ii(/<\/no(script|embed|frames)/i,ee.innerHTML)?(Vr(ee),!0):(Re&&ee.nodeType===3&&(Be=ee.textContent,L0([Q,z,le],ln=>{Be=Zc(Be,ln," ")}),ee.textContent!==Be&&(Xc(t.removed,{element:ee.cloneNode()}),ee.textContent=Be)),Wr("afterSanitizeElements",ee,null),!1)},Wt=function(ee,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in Je))return!1;if(!(xe&&!Te[Be]&&Ii(he,Be))){if(!(K&&Ii(de,Be))){if(!me[Be]||Te[Be]){if(!(Rr(ee)&&(O.tagNameCheck instanceof RegExp&&Ii(O.tagNameCheck,ee)||O.tagNameCheck instanceof Function&&O.tagNameCheck(ee))&&(O.attributeNameCheck instanceof RegExp&&Ii(O.attributeNameCheck,Be)||O.attributeNameCheck instanceof Function&&O.attributeNameCheck(Be))||Be==="is"&&O.allowCustomizedBuiltInElements&&(O.tagNameCheck instanceof RegExp&&Ii(O.tagNameCheck,it)||O.tagNameCheck instanceof Function&&O.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ii(V,Zc(it,Z,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&ee!=="script"&&Gle(it,"data:")===0&&Ke[ee])){if(!(ne&&!Ii(fe,Zc(it,Z,"")))){if(it)return!1}}}}}}return!0},Rr=function(ee){return ee.indexOf("-")>0},_i=function(ee){Wr("beforeSanitizeAttributes",ee,null);const{attributes:Be}=ee;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};let ln=Be.length;for(;ln--;){const ir=Be[ln],{name:ar,namespaceURI:Yn,value:wo}=ir,Xa=De(ar);let Nr=ar==="value"?wo:Vle(wo);if(it.attrName=Xa,it.attrValue=Nr,it.keepAttr=!0,it.forceKeepAttr=void 0,Wr("uponSanitizeAttribute",ee,it),Nr=it.attrValue,it.forceKeepAttr||(Ta(ar,ee),!it.keepAttr))continue;if(!Le&&Ii(/\/>/i,Nr)){Ta(ar,ee);continue}Re&&L0([Q,z,le],af=>{Nr=Zc(Nr,af," ")});const rf=De(ee.nodeName);if(Wt(rf,Xa,Nr)){if(ie&&(Xa==="id"||Xa==="name")&&(Ta(ar,ee),Nr=pe+Nr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Yn)switch(g.getAttributeType(rf,Xa)){case"TrustedHTML":{Nr=w.createHTML(Nr);break}case"TrustedScriptURL":{Nr=w.createScriptURL(Nr);break}}try{Yn?ee.setAttributeNS(Yn,ar,Nr):ee.setAttribute(ar,Nr),wk(t.removed)}catch{}}}Wr("afterSanitizeAttributes",ee,null)},Al=function qe(ee){let Be=null;const it=Ir(ee);for(Wr("beforeSanitizeShadowDOM",ee,null);Be=it.nextNode();)Wr("uponSanitizeShadowNode",Be,null),!hs(Be)&&(Be.content instanceof a&&qe(Be.content),_i(Be));Wr("afterSanitizeShadowDOM",ee,null)};return t.sanitize=function(qe){let ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,ln=null,ir=null;if(se=!qe,se&&(qe=""),typeof qe!="string"&&!fs(qe))if(typeof qe.toString=="function"){if(qe=qe.toString(),typeof qe!="string")throw Qc("dirty is not a string, aborting")}else throw Qc("toString is not a function");if(!t.isSupported)return qe;if(Ve||Rt(ee),t.removed=[],typeof qe=="string"&&(ve=!1),ve){if(qe.nodeName){const wo=De(qe.nodeName);if(!ce[wo]||re[wo])throw Qc("root node is forbidden and cannot be sanitized in-place")}}else if(qe instanceof s)Be=ii(""),it=Be.ownerDocument.importNode(qe,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Xe&&qe.indexOf("<")===-1)return w&&pt?w.createHTML(qe):qe;if(Be=ii(qe),!Be)return ot?null:pt?A:""}Be&&dt&&Vr(Be.firstChild);const ar=Ir(ve?qe:Be);for(;ln=ar.nextNode();)hs(ln)||(ln.content instanceof a&&Al(ln.content),_i(ln));if(ve)return qe;if(ot){if(Ge)for(ir=R.call(Be.ownerDocument);Be.firstChild;)ir.appendChild(Be.firstChild);else ir=Be;return(me.shadowroot||me.shadowrootmode)&&(ir=W.call(r,ir,!0)),ir}let Yn=Xe?Be.outerHTML:Be.innerHTML;return Xe&&ce["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ii(UM,Be.ownerDocument.doctype.name)&&(Yn=" -`+Yn),Re&&L0([Q,z,le],wo=>{Yn=Zc(Yn,wo," ")}),w&&pt?w.createHTML(Yn):Yn},t.setConfig=function(){let qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rt(qe),Ve=!0},t.clearConfig=function(){tt=null,Ve=!1},t.isValidAttribute=function(qe,ee,Be){tt||Rt({});const it=De(qe),ln=De(ee);return Wt(it,ln,Be)},t.addHook=function(qe,ee){typeof ee=="function"&&(P[qe]=P[qe]||[],Xc(P[qe],ee))},t.removeHook=function(qe){if(P[qe])return wk(P[qe])},t.removeHooks=function(qe){P[qe]&&(P[qe]=[])},t.removeAllHooks=function(){P={}},t}var iue=$M(),l7={};const aue={folder:["folder","white"],"karma.conf.js":["karma","green"],"karma.conf.coffee":["karma","green"],"README.md":["info","blue"],"CHANGELOG.md":["clock","blue"],CHANGELOG:["clock","blue"],"CHANGES.md":["clock","blue"],"VERSION.md":["clock","blue"],VERSION:["clock","blue"],mvnw:["maven","red"],"tsconfig.json":["tsconfig","blue"],"swagger.json":["json","green"],"swagger.yml":["json","green"],"swagger.yaml":["json","green"],"mime.types":["config","grey-light"],Jenkinsfile:["jenkins","red"],"babel.config.js":["babel","yellow"],"babel.config.json":["babel","yellow"],"babel.config.cjs":["babel","yellow"],"bower.json":["bower","orange"],"Bower.json":["bower","orange"],"firebase.json":["firebase","orange"],geckodriver:["firefox","orange"],"Gruntfile.js":["grunt","orange"],"gruntfile.babel.js":["grunt","orange"],"Gruntfile.babel.js":["grunt","orange"],"gruntfile.js":["grunt","orange"],"Gruntfile.coffee":["grunt","orange"],"gruntfile.coffee":["grunt","orange"],"ionic.config.json":["ionic","blue"],"Ionic.config.json":["ionic","blue"],"ionic.project":["ionic","blue"],"Ionic.project":["ionic","blue"],"platformio.ini":["platformio","orange"],"rollup.config.js":["rollup","red"],"sass-lint.yml":["sass","pink"],"stylelint.config.js":["stylelint","white"],"stylelint.config.cjs":["stylelint","white"],"yarn.clean":["yarn","blue"],"yarn.lock":["yarn","blue"],"webpack.config.js":["webpack","blue"],"webpack.config.build.js":["webpack","blue"],"webpack.common.js":["webpack","blue"],"webpack.dev.js":["webpack","blue"],"webpack.prod.js":["webpack","blue"],"npm-debug.log":["npm_ignored","ignore"]},oue={".bsl":["bsl","red"],".mdo":["mdo","red"],".cls":["salesforce","blue"],".apex":["salesforce","blue"],".asm":["asm","red"],".s":["asm","red"],".bicep":["bicep","blue"],".c":["c","blue"],".h":["c","purple"],".m":["c","yellow"],".cs":["c-sharp","blue"],".cshtml":["html","blue"],".aspx":["html","blue"],".ascx":["html","green"],".asax":["html","yellow"],".master":["html","yellow"],".cc":["cpp","blue"],".cpp":["cpp","blue"],".cxx":["cpp","blue"],".c++":["cpp","blue"],".hh":["cpp","purple"],".hpp":["cpp","purple"],".hxx":["cpp","purple"],".h++":["cpp","purple"],".mm":["cpp","yellow"],".clj":["clojure","green"],".cljs":["clojure","green"],".cljc":["clojure","green"],".edn":["clojure","blue"],".cfc":["coldfusion","blue"],".cfm":["coldfusion","blue"],".coffee":["coffee","yellow"],".litcoffee":["coffee","yellow"],".config":["config","grey-light"],".cfg":["config","grey-light"],".conf":["config","grey-light"],".cr":["crystal","white"],".ecr":["crystal_embedded","white"],".slang":["crystal_embedded","white"],".cson":["json","yellow"],".css":["css","blue"],".css.map":["css","blue"],".sss":["css","blue"],".csv":["csv","green"],".xls":["xls","green"],".xlsx":["xls","green"],".cu":["cu","green"],".cuh":["cu","purple"],".hu":["cu","purple"],".cake":["cake","red"],".ctp":["cake_php","red"],".d":["d","red"],".doc":["word","blue"],".docx":["word","blue"],".ejs":["ejs","yellow"],".ex":["elixir","purple"],".exs":["elixir_script","purple"],".elm":["elm","blue"],".ico":["favicon","yellow"],".fs":["f-sharp","blue"],".fsx":["f-sharp","blue"],".gitignore":["git","ignore"],".gitconfig":["git","ignore"],".gitkeep":["git","ignore"],".gitattributes":["git","ignore"],".gitmodules":["git","ignore"],".go":["go2","blue"],".slide":["go","blue"],".article":["go","blue"],".gd":["godot","blue"],".godot":["godot","red"],".tres":["godot","yellow"],".tscn":["godot","purple"],".gradle":["gradle","blue"],".groovy":["grails","green"],".gsp":["grails","green"],".gql":["graphql","pink"],".graphql":["graphql","pink"],".graphqls":["graphql","pink"],".hack":["hacklang","orange"],".haml":["haml","red"],".handlebars":["mustache","orange"],".hbs":["mustache","orange"],".hjs":["mustache","orange"],".hs":["haskell","purple"],".lhs":["haskell","purple"],".hx":["haxe","orange"],".hxs":["haxe","yellow"],".hxp":["haxe","blue"],".hxml":["haxe","purple"],".html":["html","orange"],".jade":["jade","red"],".java":["java","red"],".class":["java","red"],".classpath":["java","red"],".properties":["java","red"],".js":["javascript","yellow"],".js.map":["javascript","yellow"],".spec.js":["javascript","orange"],".test.js":["javascript","orange"],".es":["javascript","yellow"],".es5":["javascript","yellow"],".es6":["javascript","yellow"],".es7":["javascript","yellow"],".jinja":["jinja","red"],".jinja2":["jinja","red"],".json":["json","yellow"],".jl":["julia","purple"],".kt":["kotlin","orange"],".kts":["kotlin","orange"],".dart":["dart","blue"],".less":["less","blue"],".liquid":["liquid","green"],".ls":["livescript","blue"],".lua":["lua","blue"],".markdown":["markdown","blue"],".md":["markdown","blue"],".argdown":["argdown","blue"],".ad":["argdown","blue"],".mustache":["mustache","orange"],".stache":["mustache","orange"],".nim":["nim","yellow"],".nims":["nim","yellow"],".github-issues":["github","white"],".ipynb":["notebook","blue"],".njk":["nunjucks","green"],".nunjucks":["nunjucks","green"],".nunjs":["nunjucks","green"],".nunj":["nunjucks","green"],".njs":["nunjucks","green"],".nj":["nunjucks","green"],".npm-debug.log":["npm","ignore"],".npmignore":["npm","red"],".npmrc":["npm","red"],".ml":["ocaml","orange"],".mli":["ocaml","orange"],".cmx":["ocaml","orange"],".cmxa":["ocaml","orange"],".odata":["odata","orange"],".pl":["perl","blue"],".php":["php","purple"],".php.inc":["php","purple"],".pipeline":["pipeline","orange"],".pddl":["pddl","purple"],".plan":["plan","green"],".happenings":["happenings","blue"],".ps1":["powershell","blue"],".psd1":["powershell","blue"],".psm1":["powershell","blue"],".prisma":["prisma","blue"],".pug":["pug","red"],".pp":["puppet","yellow"],".epp":["puppet","yellow"],".purs":["purescript","white"],".py":["python","blue"],".jsx":["react","blue"],".spec.jsx":["react","orange"],".test.jsx":["react","orange"],".cjsx":["react","blue"],".spec.tsx":["react","orange"],".test.tsx":["react","orange"],".re":["reasonml","red"],".res":["rescript","red"],".resi":["rescript","pink"],".R":["R","blue"],".rmd":["R","blue"],".rb":["ruby","red"],".erb":["html_erb","red"],".erb.html":["html_erb","red"],".html.erb":["html_erb","red"],".rs":["rust","grey-light"],".sass":["sass","pink"],".scss":["sass","pink"],".springBeans":["spring","green"],".slim":["slim","orange"],".smarty.tpl":["smarty","yellow"],".tpl":["smarty","yellow"],".sbt":["sbt","blue"],".scala":["scala","red"],".sol":["ethereum","blue"],".styl":["stylus","green"],".svelte":["svelte","red"],".swift":["swift","orange"],".sql":["db","pink"],".soql":["db","blue"],".tf":["terraform","purple"],".tf.json":["terraform","purple"],".tfvars":["terraform","purple"],".tex":["tex","blue"],".sty":["tex","yellow"],".dtx":["tex","orange"],".ins":["tex","white"],".txt":["default","white"],".toml":["config","grey-light"],".twig":["twig","green"],".ts":["typescript","blue"],".tsx":["typescript","blue"],".spec.ts":["typescript","orange"],".test.ts":["typescript","orange"],".vala":["vala","grey-light"],".vapi":["vala","grey-light"],".component":["html","orange"],".vue":["vue","green"],".wasm":["wasm","purple"],".wat":["wat","purple"],".xml":["xml","orange"],".yml":["yml","purple"],".yaml":["yml","purple"],".pro":["prolog","orange"],".jar":["zip","red"],".zip":["zip","grey-light"],".wgt":["wgt","blue"],".ai":["illustrator","yellow"],".psd":["photoshop","blue"],".pdf":["pdf","red"],".eot":["font","red"],".ttf":["font","red"],".woff":["font","red"],".woff2":["font","red"],".gif":["image","purple"],".jpg":["image","purple"],".jpeg":["image","purple"],".png":["image","purple"],".pxm":["image","purple"],".svg":["svg","purple"],".svgx":["image","purple"],".tiff":["image","purple"],".webp":["image","purple"],".sublime-project":["sublime","orange"],".sublime-workspace":["sublime","orange"],".code-search":["code-search","purple"],".sh":["shell","green"],".zsh":["shell","green"],".fish":["shell","green"],".zshrc":["shell","green"],".bashrc":["shell","green"],".mov":["video","pink"],".ogv":["video","pink"],".webm":["video","pink"],".avi":["video","pink"],".mpg":["video","pink"],".mp4":["video","pink"],".mp3":["audio","purple"],".ogg":["audio","purple"],".wav":["audio","purple"],".flac":["audio","purple"],".3ds":["svg","blue"],".3dm":["svg","blue"],".stl":["svg","blue"],".obj":["svg","blue"],".dae":["svg","blue"],".bat":["windows","blue"],".cmd":["windows","blue"],".babelrc":["babel","yellow"],".babelrc.js":["babel","yellow"],".babelrc.cjs":["babel","yellow"],".bowerrc":["bower","orange"],".codeclimate.yml":["code-climate","green"],".eslintrc":["eslint","purple"],".eslintrc.js":["eslint","purple"],".eslintrc.cjs":["eslint","purple"],".eslintrc.yaml":["eslint","purple"],".eslintrc.yml":["eslint","purple"],".eslintrc.json":["eslint","purple"],".eslintignore":["eslint","grey"],".firebaserc":["firebase","orange"],".jshintrc":["javascript","blue"],".jscsrc":["javascript","blue"],".stylelintrc":["stylelint","white"],".stylelintrc.json":["stylelint","white"],".stylelintrc.yaml":["stylelint","white"],".stylelintrc.yml":["stylelint","white"],".stylelintrc.js":["stylelint","white"],".stylelintignore":["stylelint","grey"],".direnv":["config","grey-light"],".env":["config","grey-light"],".static":["config","grey-light"],".editorconfig":["config","grey-light"],".slugignore":["config","grey-light"],".tmp":["clock","grey-light"],".htaccess":["config","grey-light"],".key":["lock","green"],".cert":["lock","green"],".cer":["lock","green"],".crt":["lock","green"],".pem":["lock","green"],".DS_Store":["ignored","ignore"]},sue=[["TODO",["todo","blue"]],["Procfile",["heroku","purple"]],["cmakelists.txt",["makefile","blue"]],["CMakeLists.txt",["makefile","blue"]],["CMAKELISTS.txt",["makefile","blue"]],["CMAKELISTS.TXT",["makefile","blue"]],["omakefile",["makefile","grey-light"]],["OMakefile",["makefile","grey-light"]],["OMAKEFILE",["makefile","grey-light"]],["qmakefile",["makefile","purple"]],["QMakefile",["makefile","purple"]],["QMAKEFILE",["makefile","purple"]],["makefile",["makefile","orange"]],["Makefile",["makefile","orange"]],["MAKEFILE",["makefile","orange"]],["CONTRIBUTING",["license","red"]],["COMPILING",["license","orange"]],["COPYING",["license","yellow"]],["LICENCE.md",["license","yellow"]],["LICENSE.md",["license","yellow"]],["LICENCE",["license","yellow"]],["LICENSE",["license","yellow"]],["gulpfile.js",["gulp","red"]],["gulpfile",["gulp","red"]],["Gulpfile",["gulp","red"]],["GULPFILE",["gulp","red"]],["docker-compose.override.yaml",["docker","pink"]],["docker-compose.override.yml",["docker","pink"]],["docker-compose.yaml",["docker","pink"]],["docker-compose.yml",["docker","pink"]],["docker-healthcheck",["docker","green"]],[".dockerignore",["docker","grey"]],["DOCKERFILE",["docker","blue"]],["Dockerfile",["docker","blue"]],["dockerfile",["docker","blue"]],["gemfile",["ruby","red"]],["Gemfile",["ruby","red"]],["mix",["hex","red"]]],lue={files:aue,extensions:oue,partials:sue,default:["default","white"]},uue='',cue='',due='',pue='',fue='',hue='',gue='',mue='',bue='',Eue='',vue='',yue='',_ue='',Tue='',Sue='',wue='',Aue='',Cue='',xue='',kue='',Iue='',Rue='',Nue='',Oue='',Due='',Lue='',Mue='',Fue='',Pue='',Bue='',Uue='',$ue='',zue='',Hue='',jue='',Gue='',Vue='',Wue='',que='',Kue='',Yue='',Xue='',Zue='',Que='',Jue='',e1e='',t1e='',n1e='',r1e='',i1e='',a1e='',o1e='',s1e='',l1e='',u1e='',c1e='',d1e='',p1e='',f1e='',h1e='',g1e='',m1e='',b1e='',E1e='',v1e='',y1e='',_1e='',T1e='',S1e='',w1e='',A1e='',C1e='',x1e='',k1e='',I1e='',R1e='',N1e='',O1e='',D1e='',L1e='',M1e='',F1e='',P1e='',B1e='',U1e='',$1e='',z1e='',H1e='',j1e='',G1e='',V1e='',W1e='',q1e='',K1e='',Y1e='',X1e='',Z1e='',Q1e='',J1e='',ece='',tce='',nce='',rce='',ice='',ace='',oce='',sce='',lce='',uce='',cce='',dce='',pce='',fce='',hce='',gce='',mce='',bce='',Ece='',vce='',yce='',_ce='',Tce='',Sce='',wce='',Ace='',Cce='',xce='',kce='',Ice='',Rce='',Nce='',Oce='',Dce='',Lce='',Mce='',Fce='',Pce='',Bce='',Uce='',$ce='',zce='',Hce='',jce='',Gce={folder:uue,bsl:cue,mdo:due,salesforce:pue,asm:fue,bicep:hue,c:gue,"c-sharp":'',html:mue,cpp:bue,clojure:Eue,coldfusion:vue,coffee:yue,config:_ue,crystal:Tue,crystal_embedded:Sue,json:wue,css:Aue,csv:Cue,xls:xue,cu:kue,cake:Iue,cake_php:Rue,d:Nue,word:Oue,ejs:Due,elixir:Lue,elixir_script:Mue,hex:Fue,elm:Pue,favicon:Bue,"f-sharp":'',git:Uue,go2:$ue,go:zue,godot:Hue,gradle:jue,grails:Gue,graphql:Vue,hacklang:Wue,haml:que,mustache:Kue,haskell:Yue,haxe:Xue,jade:Zue,java:Que,javascript:Jue,jinja:e1e,julia:t1e,karma:n1e,kotlin:r1e,dart:i1e,less:a1e,liquid:o1e,livescript:s1e,lua:l1e,markdown:u1e,argdown:c1e,info:d1e,clock:p1e,maven:f1e,nim:h1e,github:g1e,notebook:m1e,nunjucks:b1e,npm:E1e,ocaml:v1e,odata:y1e,perl:_1e,php:T1e,pipeline:S1e,pddl:w1e,plan:A1e,happenings:C1e,powershell:x1e,prisma:k1e,pug:I1e,puppet:R1e,purescript:N1e,python:O1e,react:D1e,reasonml:L1e,rescript:M1e,R:F1e,ruby:P1e,html_erb:B1e,rust:U1e,sass:$1e,spring:z1e,slim:H1e,smarty:j1e,sbt:G1e,scala:V1e,ethereum:W1e,stylus:q1e,svelte:K1e,swift:Y1e,db:X1e,terraform:Z1e,tex:Q1e,default:'',twig:J1e,typescript:ece,tsconfig:tce,vala:nce,vue:rce,wasm:ice,wat:ace,xml:oce,yml:sce,prolog:lce,zip:uce,wgt:cce,illustrator:dce,photoshop:pce,pdf:fce,font:hce,image:gce,svg:mce,sublime:bce,"code-search":'',shell:Ece,video:vce,audio:yce,windows:_ce,jenkins:Tce,babel:Sce,bower:wce,docker:Ace,"code-climate":'',eslint:Cce,firebase:xce,firefox:kce,grunt:Ice,gulp:Rce,ionic:Nce,platformio:Oce,rollup:Dce,stylelint:Lce,yarn:Mce,webpack:Fce,lock:Pce,license:Bce,makefile:Uce,heroku:$ce,todo:zce,npm_ignored:Hce,ignored:jce};var gg=ql&&ql.__assign||function(){return gg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return i[1]}return Zu.default},zM=function(e){var t=Kce(e),n=t[0],r=t[1];return{svg:qce[n],color:r}};l7.getIcon=zM;var Yce=function(e){return function(t){var n=zM(t);return gg(gg({},n),{color:e[n.color]})}},Xce=l7.themeIcons=Yce;const $b=({filename:e,height:t,width:n})=>{const r=Xce({blue:"#268bd2",grey:"#657b83","grey-light":"#839496",green:"#859900",orange:"#cb4b16",pink:"#d33682",purple:"#6c71c4",red:"#dc322f",white:"#fdf6e3",yellow:"#b58900",ignore:"#586e75"}),{svg:i,color:a}=r(e),o=iue.sanitize(i);return I.jsx("div",{dangerouslySetInnerHTML:{__html:o},style:{width:n,height:t,fill:a}})},Zce=He.button` + */var R2=60103,N2=60106,nf=60107,rf=60108,af=60114,of=60109,sf=60110,lf=60112,uf=60113,F7=60120,cf=60115,df=60116,xF=60121,IF=60122,RF=60117,NF=60129,OF=60131;if(typeof Symbol=="function"&&Symbol.for){var yr=Symbol.for;R2=yr("react.element"),N2=yr("react.portal"),nf=yr("react.fragment"),rf=yr("react.strict_mode"),af=yr("react.profiler"),of=yr("react.provider"),sf=yr("react.context"),lf=yr("react.forward_ref"),uf=yr("react.suspense"),F7=yr("react.suspense_list"),cf=yr("react.memo"),df=yr("react.lazy"),xF=yr("react.block"),IF=yr("react.server.block"),RF=yr("react.fundamental"),NF=yr("react.debug_trace_mode"),OF=yr("react.legacy_hidden")}function Ja(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R2:switch(e=e.type,e){case nf:case af:case rf:case uf:case F7:return e;default:switch(e=e&&e.$$typeof,e){case sf:case lf:case df:case cf:case of:return e;default:return t}}case N2:return t}}}var $ue=of,zue=R2,Hue=lf,jue=nf,Gue=df,Vue=cf,Wue=N2,que=af,Kue=rf,Yue=uf;yn.ContextConsumer=sf;yn.ContextProvider=$ue;yn.Element=zue;yn.ForwardRef=Hue;yn.Fragment=jue;yn.Lazy=Gue;yn.Memo=Vue;yn.Portal=Wue;yn.Profiler=que;yn.StrictMode=Kue;yn.Suspense=Yue;yn.isAsyncMode=function(){return!1};yn.isConcurrentMode=function(){return!1};yn.isContextConsumer=function(e){return Ja(e)===sf};yn.isContextProvider=function(e){return Ja(e)===of};yn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R2};yn.isForwardRef=function(e){return Ja(e)===lf};yn.isFragment=function(e){return Ja(e)===nf};yn.isLazy=function(e){return Ja(e)===df};yn.isMemo=function(e){return Ja(e)===cf};yn.isPortal=function(e){return Ja(e)===N2};yn.isProfiler=function(e){return Ja(e)===af};yn.isStrictMode=function(e){return Ja(e)===rf};yn.isSuspense=function(e){return Ja(e)===uf};yn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nf||e===af||e===NF||e===rf||e===uf||e===F7||e===OF||typeof e=="object"&&e!==null&&(e.$$typeof===df||e.$$typeof===cf||e.$$typeof===of||e.$$typeof===sf||e.$$typeof===lf||e.$$typeof===RF||e.$$typeof===xF||e[0]===IF)};yn.typeOf=Ja;let mI=e=>typeof e=="object"&&e!=null&&e.nodeType===1,bI=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",u4=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,Xue=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var Zue=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:fe=>fe!==f;if(!mI(e))throw new TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,y=[],T=e;for(;mI(T)&&g(T);){if(T=Xue(T),T===b){y.push(T);break}T!=null&&T===document.body&&u4(T)&&!u4(document.documentElement)||T!=null&&u4(T,m)&&y.push(T)}let E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:R,width:k,top:N,right:B,bottom:q,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?N:c==="end"?q:N+R/2,$=p==="center"?P+k/2:p==="end"?B:P,oe=[];for(let fe=0;fe=0&&P>=0&&q<=v&&B<=E&&N>=W&&q<=D&&P>=pe&&B<=se)return oe;let le=getComputedStyle(ce),L=parseInt(le.borderLeftWidth,10),ie=parseInt(le.borderTopWidth,10),Se=parseInt(le.borderRightWidth,10),X=parseInt(le.borderBottomWidth,10),ke=0,te=0,Me="offsetWidth"in ce?ce.offsetWidth-ce.clientWidth-L-Se:0,Re="offsetHeight"in ce?ce.offsetHeight-ce.clientHeight-ie-X:0,Ze="offsetWidth"in ce?ce.offsetWidth===0?0:H/ce.offsetWidth:0,We="offsetHeight"in ce?ce.offsetHeight===0?0:De/ce.offsetHeight:0;if(b===ce)ke=c==="start"?Q:c==="end"?Q-v:c==="nearest"?V0(A,A+v,v,ie,X,A+Q,A+Q+R,R):Q-v/2,te=p==="start"?$:p==="center"?$-E/2:p==="end"?$-E:V0(w,w+E,E,L,Se,w+$,w+$+k,k),ke=Math.max(0,ke+A),te=Math.max(0,te+w);else{ke=c==="start"?Q-W-ie:c==="end"?Q-D+X+Re:c==="nearest"?V0(W,D,De,ie,X+Re,Q,Q+R,R):Q-(W+De/2)+Re/2,te=p==="start"?$-pe-L:p==="center"?$-(pe+H/2)+Me/2:p==="end"?$-se+Se+Me:V0(pe,se,H,L,Se+Me,$,$+k,k);let{scrollLeft:dt,scrollTop:ot}=ce;ke=Math.max(0,Math.min(ot+ke/We,ce.scrollHeight-De/We+Re)),te=Math.max(0,Math.min(dt+te/Ze,ce.scrollWidth-H/Ze+Me)),Q+=ot-ke,$+=dt-te}oe.push({el:ce,top:ke,left:te})}return oe},$g=function(){return $g=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function q0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=Ap(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function Ap(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?Ap(1,0,n,r,!1):Ap(-1,n-1,n,r,!1):-1}function EI(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(yI(i,e,n)||r&&yI(i,n.document.activeElement,n))})}var r1e=LF(function(e){FF(e).textContent=""},500);function i1e(e,t){var n=FF(t);e&&(n.textContent=e,r1e(t))}function FF(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var a1e=["isInitialMount","highlightedIndex","items","environment"],PF={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function o1e(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){s1e(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(nn({type:i},a))}function s1e(e,t,n,r){var i=t.props,a=t.type,o="on"+P7(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](nn({type:a},r))}function l1e(e,t){return t.changes}function u1e(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var c1e=LF(function(e,t){i1e(e(),t)},200),d1e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function p1e(e){var t=e.id,n=t===void 0?"downshift-"+e1e():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function f1e(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function h1e(e){return e?String(e):""}function P7(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function BF(e){var t=C.useRef(e);return t.current=e,t}function g1e(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=my(m,g.props);var b=e(m,g),y=g.props.stateReducer(m,nn({},g,{changes:b}));return y},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=BF(n),p=C.useCallback(function(m){return u(nn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&o1e(f,my(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Kd={itemToString:h1e,stateReducer:l1e,getA11ySelectionMessage:u1e,scrollIntoView:Jue,environment:typeof window>"u"?{}:window};function bo(e,t,n){n===void 0&&(n=PF);var r=e["default"+P7(t)];return r!==void 0?r:n[t]}function K0(e,t,n){n===void 0&&(n=PF);var r=e[t];if(r!==void 0)return r;var i=e["initial"+P7(t)];return i!==void 0?i:bo(e,t,n)}function m1e(e){var t=K0(e,"selectedItem"),n=K0(e,"isOpen"),r=K0(e,"highlightedIndex"),i=K0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Yd(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function b1e(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!EI(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!EI(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var y1e=function(){return DF};function vI(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=C1(n,a1e);C.useEffect(function(){r||c1e(function(){return e(nn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function E1e(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return d1e(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var v1e=DF;function _I(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return nn({isOpen:!1,highlightedIndex:-1},i&&nn({selectedItem:e.items[t],isOpen:bo(e,"isOpen"),highlightedIndex:bo(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function _1e(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Yd(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:bo(i,"highlightedIndex"),isOpen:bo(i,"isOpen"),selectedItem:bo(i,"selectedItem"),inputValue:bo(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return nn({},e,a)}be.array.isRequired,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.func,be.string,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function T1e(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}$g($g({},Kd),{getA11yStatusMessage:T1e});var B7=0,U7=1,$7=2,z7=3,H7=4,j7=5,G7=6,V7=7,W7=8,zg=9,q7=10,UF=11,$F=12,K7=13,zF=14,HF=15,jF=16,GF=17,VF=18,Y7=19,WF=20,qF=21,X7=22,KF=Object.freeze({__proto__:null,InputKeyDownArrowDown:B7,InputKeyDownArrowUp:U7,InputKeyDownEscape:$7,InputKeyDownHome:z7,InputKeyDownEnd:H7,InputKeyDownPageUp:j7,InputKeyDownPageDown:G7,InputKeyDownEnter:V7,InputChange:W7,InputBlur:zg,InputFocus:q7,MenuMouseLeave:UF,ItemMouseMove:$F,ItemClick:K7,ToggleButtonClick:zF,FunctionToggleMenu:HF,FunctionOpenMenu:jF,FunctionCloseMenu:GF,FunctionSetHighlightedIndex:VF,FunctionSelectItem:Y7,FunctionSetInputValue:WF,FunctionReset:qF,ControlledPropUpdatedSelectedItem:X7});function S1e(e){var t=m1e(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),nn({},t,{inputValue:r})}be.array.isRequired,be.func,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.string,be.string,be.string,be.func,be.string,be.string,be.func,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function w1e(e,t,n){var r=C.useRef(),i=g1e(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){MF(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:X7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[my(a,n),o]}var A1e=nn({},Kd,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:t1e});function C1e(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case K7:o={isOpen:bo(i,"isOpen"),highlightedIndex:bo(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case B7:e.isOpen?o={highlightedIndex:q0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Yd(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case U7:e.isOpen?a?o=_I(i,e.highlightedIndex):o={highlightedIndex:q0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Yd(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case V7:o=_I(i,e.highlightedIndex);break;case $7:o=nn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case j7:o={highlightedIndex:q0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case G7:o={highlightedIndex:q0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case z7:o={highlightedIndex:Ap(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case H7:o={highlightedIndex:Ap(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case zg:o=nn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case W7:o={isOpen:!0,highlightedIndex:bo(i,"highlightedIndex"),inputValue:t.inputValue};break;case q7:o={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case Y7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case X7:o={inputValue:t.inputValue};break;default:return _1e(e,t,KF)}return nn({},e,o)}var k1e=["onMouseLeave","refKey","ref"],x1e=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],I1e=["onClick","onPress","refKey","ref"],R1e=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];YF.stateChangeTypes=KF;function YF(e){e===void 0&&(e={});var t=nn({},A1e,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=S1e(t),f=w1e(C1e,p,t),m=f[0],g=f[1],b=m.isOpen,y=m.highlightedIndex,T=m.selectedItem,E=m.inputValue,v=C.useRef(null),w=C.useRef({}),A=C.useRef(null),R=C.useRef(null),k=C.useRef(!0),N=p1e(t),B=C.useRef(),q=BF({state:m,props:t}),P=C.useCallback(function(ke){return w.current[N.getItemId(ke)]},[N]);vI(s,[b,y,E,i],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),vI(u,[T],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=E1e({menuElement:v.current,highlightedIndex:y,isOpen:b,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});v1e({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var ke=n||r||b;ke&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var $=b1e(b,[A,v,R],o,function(){g({type:zg,selectItem:!1})}),oe=y1e();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var ke;if(!b)w.current={};else if(((ke=o.document)==null?void 0:ke.activeElement)!==A.current){var te;A==null||(te=A.current)==null||te.focus()}},[b,o]);var fe=C.useMemo(function(){return{ArrowDown:function(te){te.preventDefault(),g({type:B7,altKey:te.altKey,getItemNodeFromIndex:P})},ArrowUp:function(te){te.preventDefault(),g({type:U7,altKey:te.altKey,getItemNodeFromIndex:P})},Home:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:z7,getItemNodeFromIndex:P}))},End:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:H7,getItemNodeFromIndex:P}))},Escape:function(te){var Me=q.current.state;(Me.isOpen||Me.inputValue||Me.selectedItem||Me.highlightedIndex>-1)&&(te.preventDefault(),g({type:$7}))},Enter:function(te){var Me=q.current.state;!Me.isOpen||te.which===229||(te.preventDefault(),g({type:V7,getItemNodeFromIndex:P}))},PageUp:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:j7,getItemNodeFromIndex:P}))},PageDown:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:G7,getItemNodeFromIndex:P}))}}},[g,q,P]),ce=C.useCallback(function(ke){return nn({id:N.labelId,htmlFor:N.inputId},ke)},[N]),De=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onMouseLeave,We=Re.refKey,dt=We===void 0?"ref":We,ot=Re.ref,je=C1(Re,k1e),pt=te===void 0?{}:te;return pt.suppressRefError,nn((Me={},Me[dt]=W0(ot,function(U){v.current=U}),Me.id=N.menuId,Me.role="listbox",Me["aria-labelledby"]=je&&je["aria-label"]?void 0:""+N.labelId,Me.onMouseLeave=Wo(Ze,function(){g({type:UF})}),Me),je)},[g,oe,N]),H=C.useCallback(function(ke){var te,Me,Re=ke===void 0?{}:ke,Ze=Re.item,We=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,je=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,re=Re.onClick;Re.onPress;var de=Re.disabled,xe=C1(Re,x1e),ye=q.current,Te=ye.props,Le=ye.state,ze=f1e(Ze,We,Te.items,"Pass either item or index to getItemProps!"),Ye=ze[1],jt="onClick",ue=re,Ee=function(){Ye!==Le.highlightedIndex&&(Q.current=!1,g({type:$F,index:Ye,disabled:de}))},qe=function(){g({type:K7,index:Ye})},j=function(Ve){return Ve.preventDefault()};return nn((te={},te[ot]=W0(je,function(me){me&&(w.current[N.getItemId(Ye)]=me)}),te.disabled=de,te.role="option",te["aria-selected"]=""+(Ye===Le.highlightedIndex),te.id=N.getItemId(Ye),te),!de&&(Me={},Me[jt]=Wo(ue,qe),Me),{onMouseMove:Wo(pt,Ee),onMouseDown:Wo(U,j)},xe)},[g,q,Q,N]),W=C.useCallback(function(ke){var te,Me=ke===void 0?{}:ke,Re=Me.onClick;Me.onPress;var Ze=Me.refKey,We=Ze===void 0?"ref":Ze,dt=Me.ref,ot=C1(Me,I1e),je=q.current.state,pt=function(){g({type:zF})};return nn((te={},te[We]=W0(dt,function(U){R.current=U}),te["aria-controls"]=N.menuId,te["aria-expanded"]=je.isOpen,te.id=N.toggleButtonId,te.tabIndex=-1,te),!ot.disabled&&nn({},{onClick:Wo(Re,pt)}),ot)},[g,q,N]),se=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onKeyDown,We=Re.onChange,dt=Re.onInput,ot=Re.onFocus,je=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,re=Re.ref,de=C1(Re,R1e),xe=te===void 0?{}:te;xe.suppressRefError;var ye=q.current.state,Te=function(j){var me=n1e(j);me&&fe[me]&&fe[me](j)},Le=function(j){g({type:W7,inputValue:j.target.value})},ze=function(j){if(ye.isOpen&&!$.current.isMouseDown){var me=j.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:zg,selectItem:!me})}},Ye=function(){ye.isOpen||g({type:q7})},jt="onChange",ue={};if(!de.disabled){var Ee;ue=(Ee={},Ee[jt]=Wo(We,dt,Le),Ee.onKeyDown=Wo(Ze,Te),Ee.onBlur=Wo(je,ze),Ee.onFocus=Wo(ot,Ye),Ee)}return nn((Me={},Me[U]=W0(re,function(qe){A.current=qe}),Me["aria-activedescendant"]=ye.isOpen&&ye.highlightedIndex>-1?N.getItemId(ye.highlightedIndex):"",Me["aria-autocomplete"]="list",Me["aria-controls"]=N.menuId,Me["aria-expanded"]=ye.isOpen,Me["aria-labelledby"]=de&&de["aria-label"]?void 0:""+N.labelId,Me.autoComplete="off",Me.id=N.inputId,Me.role="combobox",Me.value=ye.inputValue,Me),ue,de)},[oe,q,N,fe,g,$,o]),D=C.useCallback(function(){g({type:HF})},[g]),pe=C.useCallback(function(){g({type:GF})},[g]),le=C.useCallback(function(){g({type:jF})},[g]),L=C.useCallback(function(ke){g({type:VF,highlightedIndex:ke})},[g]),ie=C.useCallback(function(ke){g({type:Y7,selectedItem:ke})},[g]),Se=C.useCallback(function(ke){g({type:WF,inputValue:ke})},[g]),X=C.useCallback(function(){g({type:qF})},[g]);return{getItemProps:H,getLabelProps:ce,getMenuProps:De,getInputProps:se,getToggleButtonProps:W,toggleMenu:D,openMenu:le,closeMenu:pe,setHighlightedIndex:L,setInputValue:Se,selectItem:ie,reset:X,highlightedIndex:y,isOpen:b,selectedItem:T,inputValue:E}}function N1e(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}be.array,be.array,be.array,be.func,be.func,be.func,be.number,be.number,be.number,be.func,be.func,be.string,be.string,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});Kd.itemToString,Kd.stateReducer,Kd.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:XF,setPrototypeOf:TI,isFrozen:O1e,getPrototypeOf:D1e,getOwnPropertyDescriptor:ZF}=Object;let{freeze:ii,seal:Ya,create:QF}=Object,{apply:by,construct:yy}=typeof Reflect<"u"&&Reflect;ii||(ii=function(t){return t});Ya||(Ya=function(t){return t});by||(by=function(t,n,r){return t.apply(n,r)});yy||(yy=function(t,n){return new t(...n)});const Y0=va(Array.prototype.forEach),SI=va(Array.prototype.pop),ld=va(Array.prototype.push),Fh=va(String.prototype.toLowerCase),c4=va(String.prototype.toString),L1e=va(String.prototype.match),ud=va(String.prototype.replace),M1e=va(String.prototype.indexOf),F1e=va(String.prototype.trim),Ni=va(RegExp.prototype.test),cd=P1e(TypeError);function va(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Fh;TI&&TI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(O1e(t)||(t[r]=a),i=a)}e[i]=!0}return e}function r1(e){const t=QF(null);for(const[n,r]of XF(e))ZF(e,n)!==void 0&&(t[n]=r);return t}function X0(e,t){for(;e!==null;){const r=ZF(e,t);if(r){if(r.get)return va(r.get);if(typeof r.value=="function")return va(r.value)}e=D1e(e)}function n(r){return console.warn("fallback value for",r),null}return n}const wI=ii(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),d4=ii(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),p4=ii(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B1e=ii(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),f4=ii(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U1e=ii(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),AI=ii(["#text"]),CI=ii(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),h4=ii(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kI=ii(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z0=ii(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$1e=Ya(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z1e=Ya(/<%[\w\W]*|[\w\W]*%>/gm),H1e=Ya(/\${[\w\W]*}/gm),j1e=Ya(/^data-[\-\w.\u00B7-\uFFFF]/),G1e=Ya(/^aria-[\-\w]+$/),JF=Ya(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V1e=Ya(/^(?:\w+script|data):/i),W1e=Ya(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eP=Ya(/^html$/i);var xI=Object.freeze({__proto__:null,MUSTACHE_EXPR:$1e,ERB_EXPR:z1e,TMPLIT_EXPR:H1e,DATA_ATTR:j1e,ARIA_ATTR:G1e,IS_ALLOWED_URI:JF,IS_SCRIPT_OR_DATA:V1e,ATTR_WHITESPACE:W1e,DOCTYPE_NAME:eP});const q1e=function(){return typeof window>"u"?null:window},K1e=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function tP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q1e();const t=Ke=>tP(Ke);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,b=u.prototype,y=X0(b,"cloneNode"),T=X0(b,"nextSibling"),E=X0(b,"childNodes"),v=X0(b,"parentNode");if(typeof o=="function"){const Ke=n.createElement("template");Ke.content&&Ke.content.ownerDocument&&(n=Ke.content.ownerDocument)}let w,A="";const{implementation:R,createNodeIterator:k,createDocumentFragment:N,getElementsByTagName:B}=n,{importNode:q}=r;let P={};t.isSupported=typeof XF=="function"&&typeof v=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:$,TMPLIT_EXPR:oe,DATA_ATTR:fe,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:H}=xI;let{IS_ALLOWED_URI:W}=xI,se=null;const D=At({},[...wI,...d4,...p4,...f4,...AI]);let pe=null;const le=At({},[...CI,...h4,...kI,...Z0]);let L=Object.seal(QF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Se=null,X=!0,ke=!0,te=!1,Me=!0,Re=!1,Ze=!1,We=!1,dt=!1,ot=!1,je=!1,pt=!1,U=!0,re=!1;const de="user-content-";let xe=!0,ye=!1,Te={},Le=null;const ze=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ye=null;const jt=At({},["audio","video","img","source","image","track"]);let ue=null;const Ee=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",j="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let Ve=me,ge=!1,G=null;const K=At({},[qe,j,me],c4);let ne=null;const ve=["application/xhtml+xml","text/html"],Qe="text/html";let Fe=null,at=null;const rt=n.createElement("form"),Je=function(J){return J instanceof RegExp||J instanceof Function},Rt=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(at&&at===J)){if((!J||typeof J!="object")&&(J={}),J=r1(J),ne=ve.indexOf(J.PARSER_MEDIA_TYPE)===-1?ne=Qe:ne=J.PARSER_MEDIA_TYPE,Fe=ne==="application/xhtml+xml"?c4:Fh,se="ALLOWED_TAGS"in J?At({},J.ALLOWED_TAGS,Fe):D,pe="ALLOWED_ATTR"in J?At({},J.ALLOWED_ATTR,Fe):le,G="ALLOWED_NAMESPACES"in J?At({},J.ALLOWED_NAMESPACES,c4):K,ue="ADD_URI_SAFE_ATTR"in J?At(r1(Ee),J.ADD_URI_SAFE_ATTR,Fe):Ee,Ye="ADD_DATA_URI_TAGS"in J?At(r1(jt),J.ADD_DATA_URI_TAGS,Fe):jt,Le="FORBID_CONTENTS"in J?At({},J.FORBID_CONTENTS,Fe):ze,ie="FORBID_TAGS"in J?At({},J.FORBID_TAGS,Fe):{},Se="FORBID_ATTR"in J?At({},J.FORBID_ATTR,Fe):{},Te="USE_PROFILES"in J?J.USE_PROFILES:!1,X=J.ALLOW_ARIA_ATTR!==!1,ke=J.ALLOW_DATA_ATTR!==!1,te=J.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=J.SAFE_FOR_TEMPLATES||!1,Ze=J.WHOLE_DOCUMENT||!1,ot=J.RETURN_DOM||!1,je=J.RETURN_DOM_FRAGMENT||!1,pt=J.RETURN_TRUSTED_TYPE||!1,dt=J.FORCE_BODY||!1,U=J.SANITIZE_DOM!==!1,re=J.SANITIZE_NAMED_PROPS||!1,xe=J.KEEP_CONTENT!==!1,ye=J.IN_PLACE||!1,W=J.ALLOWED_URI_REGEXP||JF,Ve=J.NAMESPACE||me,L=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(ke=!1),je&&(ot=!0),Te&&(se=At({},[...AI]),pe=[],Te.html===!0&&(At(se,wI),At(pe,CI)),Te.svg===!0&&(At(se,d4),At(pe,h4),At(pe,Z0)),Te.svgFilters===!0&&(At(se,p4),At(pe,h4),At(pe,Z0)),Te.mathMl===!0&&(At(se,f4),At(pe,kI),At(pe,Z0))),J.ADD_TAGS&&(se===D&&(se=r1(se)),At(se,J.ADD_TAGS,Fe)),J.ADD_ATTR&&(pe===le&&(pe=r1(pe)),At(pe,J.ADD_ATTR,Fe)),J.ADD_URI_SAFE_ATTR&&At(ue,J.ADD_URI_SAFE_ATTR,Fe),J.FORBID_CONTENTS&&(Le===ze&&(Le=r1(Le)),At(Le,J.FORBID_CONTENTS,Fe)),xe&&(se["#text"]=!0),Ze&&At(se,["html","head","body"]),se.table&&(At(se,["tbody"]),delete ie.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=J.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=K1e(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ii&&ii(J),at=J}},Qt=At({},["mi","mo","mn","ms","mtext"]),kt=At({},["foreignobject","desc","title","annotation-xml"]),rn=At({},["title","style","font","a","script"]),Xt=At({},d4);At(Xt,p4),At(Xt,B1e);const Wr=At({},f4);At(Wr,U1e);const qr=function(J){let Be=v(J);(!Be||!Be.tagName)&&(Be={namespaceURI:Ve,tagName:"template"});const it=Fh(J.tagName),un=Fh(Be.tagName);return G[J.namespaceURI]?J.namespaceURI===j?Be.namespaceURI===me?it==="svg":Be.namespaceURI===qe?it==="svg"&&(un==="annotation-xml"||Qt[un]):!!Xt[it]:J.namespaceURI===qe?Be.namespaceURI===me?it==="math":Be.namespaceURI===j?it==="math"&&kt[un]:!!Wr[it]:J.namespaceURI===me?Be.namespaceURI===j&&!kt[un]||Be.namespaceURI===qe&&!Qt[un]?!1:!Wr[it]&&(rn[it]||!Xt[it]):!!(ne==="application/xhtml+xml"&&G[J.namespaceURI]):!1},Kr=function(J){ld(t.removed,{element:J});try{J.parentNode.removeChild(J)}catch{J.remove()}},Aa=function(J,Be){try{ld(t.removed,{attribute:Be.getAttributeNode(J),from:Be})}catch{ld(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(J),J==="is"&&!pe[J])if(ot||je)try{Kr(Be)}catch{}else try{Be.setAttribute(J,"")}catch{}},si=function(J){let Be=null,it=null;if(dt)J=""+J;else{const or=L1e(J,/^[\r\n\t ]+/);it=or&&or[0]}ne==="application/xhtml+xml"&&Ve===me&&(J=''+J+"");const un=w?w.createHTML(J):J;if(Ve===me)try{Be=new m().parseFromString(un,ne)}catch{}if(!Be||!Be.documentElement){Be=R.createDocument(Ve,"template",null);try{Be.documentElement.innerHTML=ge?A:un}catch{}}const ar=Be.body||Be.documentElement;return J&&it&&ar.insertBefore(n.createTextNode(it),ar.childNodes[0]||null),Ve===me?B.call(Be,Ze?"html":"body")[0]:Ze?Be.documentElement:ar},Or=function(J){return k.call(J.ownerDocument||J,J,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Es=function(J){return J instanceof f&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof p)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},vs=function(J){return typeof s=="function"&&J instanceof s},Yr=function(J,Be,it){P[J]&&Y0(P[J],un=>{un.call(t,Be,it,at)})},_s=function(J){let Be=null;if(Yr("beforeSanitizeElements",J,null),Es(J))return Kr(J),!0;const it=Fe(J.nodeName);if(Yr("uponSanitizeElement",J,{tagName:it,allowedTags:se}),J.hasChildNodes()&&!vs(J.firstElementChild)&&Ni(/<[/\w]/g,J.innerHTML)&&Ni(/<[/\w]/g,J.textContent))return Kr(J),!0;if(!se[it]||ie[it]){if(!ie[it]&&Dr(it)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it)))return!1;if(xe&&!Le[it]){const un=v(J)||J.parentNode,ar=E(J)||J.childNodes;if(ar&&un){const or=ar.length;for(let Zn=or-1;Zn>=0;--Zn)un.insertBefore(y(ar[Zn],!0),T(J))}}return Kr(J),!0}return J instanceof u&&!qr(J)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ni(/<\/no(script|embed|frames)/i,J.innerHTML)?(Kr(J),!0):(Re&&J.nodeType===3&&(Be=J.textContent,Y0([Q,$,oe],un=>{Be=ud(Be,un," ")}),J.textContent!==Be&&(ld(t.removed,{element:J.cloneNode()}),J.textContent=Be)),Yr("afterSanitizeElements",J,null),!1)},qt=function(J,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in rt))return!1;if(!(ke&&!Se[Be]&&Ni(fe,Be))){if(!(X&&Ni(ce,Be))){if(!pe[Be]||Se[Be]){if(!(Dr(J)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,J)||L.tagNameCheck instanceof Function&&L.tagNameCheck(J))&&(L.attributeNameCheck instanceof RegExp&&Ni(L.attributeNameCheck,Be)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(Be))||Be==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ni(W,ud(it,H,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&J!=="script"&&M1e(it,"data:")===0&&Ye[J])){if(!(te&&!Ni(De,ud(it,H,"")))){if(it)return!1}}}}}}return!0},Dr=function(J){return J.indexOf("-")>0},Si=function(J){Yr("beforeSanitizeAttributes",J,null);const{attributes:Be}=J;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};let un=Be.length;for(;un--;){const ar=Be[un],{name:or,namespaceURI:Zn,value:No}=ar,no=Fe(or);let Lr=or==="value"?No:F1e(No);if(it.attrName=no,it.attrValue=Lr,it.keepAttr=!0,it.forceKeepAttr=void 0,Yr("uponSanitizeAttribute",J,it),Lr=it.attrValue,it.forceKeepAttr||(Aa(or,J),!it.keepAttr))continue;if(!Me&&Ni(/\/>/i,Lr)){Aa(or,J);continue}Re&&Y0([Q,$,oe],vf=>{Lr=ud(Lr,vf," ")});const Ef=Fe(J.nodeName);if(qt(Ef,no,Lr)){if(re&&(no==="id"||no==="name")&&(Aa(or,J),Lr=de+Lr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Zn)switch(g.getAttributeType(Ef,no)){case"TrustedHTML":{Lr=w.createHTML(Lr);break}case"TrustedScriptURL":{Lr=w.createScriptURL(Lr);break}}try{Zn?J.setAttributeNS(Zn,or,Lr):J.setAttribute(or,Lr),SI(t.removed)}catch{}}}Yr("afterSanitizeAttributes",J,null)},Nl=function Ke(J){let Be=null;const it=Or(J);for(Yr("beforeSanitizeShadowDOM",J,null);Be=it.nextNode();)Yr("uponSanitizeShadowNode",Be,null),!_s(Be)&&(Be.content instanceof a&&Ke(Be.content),Si(Be));Yr("afterSanitizeShadowDOM",J,null)};return t.sanitize=function(Ke){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,un=null,ar=null;if(ge=!Ke,ge&&(Ke=""),typeof Ke!="string"&&!vs(Ke))if(typeof Ke.toString=="function"){if(Ke=Ke.toString(),typeof Ke!="string")throw cd("dirty is not a string, aborting")}else throw cd("toString is not a function");if(!t.isSupported)return Ke;if(We||Rt(J),t.removed=[],typeof Ke=="string"&&(ye=!1),ye){if(Ke.nodeName){const No=Fe(Ke.nodeName);if(!se[No]||ie[No])throw cd("root node is forbidden and cannot be sanitized in-place")}}else if(Ke instanceof s)Be=si(""),it=Be.ownerDocument.importNode(Ke,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Ze&&Ke.indexOf("<")===-1)return w&&pt?w.createHTML(Ke):Ke;if(Be=si(Ke),!Be)return ot?null:pt?A:""}Be&&dt&&Kr(Be.firstChild);const or=Or(ye?Ke:Be);for(;un=or.nextNode();)_s(un)||(un.content instanceof a&&Nl(un.content),Si(un));if(ye)return Ke;if(ot){if(je)for(ar=N.call(Be.ownerDocument);Be.firstChild;)ar.appendChild(Be.firstChild);else ar=Be;return(pe.shadowroot||pe.shadowrootmode)&&(ar=q.call(r,ar,!0)),ar}let Zn=Ze?Be.outerHTML:Be.innerHTML;return Ze&&se["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ni(eP,Be.ownerDocument.doctype.name)&&(Zn=" +`+Zn),Re&&Y0([Q,$,oe],No=>{Zn=ud(Zn,No," ")}),w&&pt?w.createHTML(Zn):Zn},t.setConfig=function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rt(Ke),We=!0},t.clearConfig=function(){at=null,We=!1},t.isValidAttribute=function(Ke,J,Be){at||Rt({});const it=Fe(Ke),un=Fe(J);return qt(it,un,Be)},t.addHook=function(Ke,J){typeof J=="function"&&(P[Ke]=P[Ke]||[],ld(P[Ke],J))},t.removeHook=function(Ke){if(P[Ke])return SI(P[Ke])},t.removeHooks=function(Ke){P[Ke]&&(P[Ke]=[])},t.removeAllHooks=function(){P={}},t}var Y1e=tP(),Z7={};const X1e={folder:["folder","white"],"karma.conf.js":["karma","green"],"karma.conf.coffee":["karma","green"],"README.md":["info","blue"],"CHANGELOG.md":["clock","blue"],CHANGELOG:["clock","blue"],"CHANGES.md":["clock","blue"],"VERSION.md":["clock","blue"],VERSION:["clock","blue"],mvnw:["maven","red"],"tsconfig.json":["tsconfig","blue"],"swagger.json":["json","green"],"swagger.yml":["json","green"],"swagger.yaml":["json","green"],"mime.types":["config","grey-light"],Jenkinsfile:["jenkins","red"],"babel.config.js":["babel","yellow"],"babel.config.json":["babel","yellow"],"babel.config.cjs":["babel","yellow"],"bower.json":["bower","orange"],"Bower.json":["bower","orange"],"firebase.json":["firebase","orange"],geckodriver:["firefox","orange"],"Gruntfile.js":["grunt","orange"],"gruntfile.babel.js":["grunt","orange"],"Gruntfile.babel.js":["grunt","orange"],"gruntfile.js":["grunt","orange"],"Gruntfile.coffee":["grunt","orange"],"gruntfile.coffee":["grunt","orange"],"ionic.config.json":["ionic","blue"],"Ionic.config.json":["ionic","blue"],"ionic.project":["ionic","blue"],"Ionic.project":["ionic","blue"],"platformio.ini":["platformio","orange"],"rollup.config.js":["rollup","red"],"sass-lint.yml":["sass","pink"],"stylelint.config.js":["stylelint","white"],"stylelint.config.cjs":["stylelint","white"],"yarn.clean":["yarn","blue"],"yarn.lock":["yarn","blue"],"webpack.config.js":["webpack","blue"],"webpack.config.build.js":["webpack","blue"],"webpack.common.js":["webpack","blue"],"webpack.dev.js":["webpack","blue"],"webpack.prod.js":["webpack","blue"],"npm-debug.log":["npm_ignored","ignore"]},Z1e={".bsl":["bsl","red"],".mdo":["mdo","red"],".cls":["salesforce","blue"],".apex":["salesforce","blue"],".asm":["asm","red"],".s":["asm","red"],".bicep":["bicep","blue"],".c":["c","blue"],".h":["c","purple"],".m":["c","yellow"],".cs":["c-sharp","blue"],".cshtml":["html","blue"],".aspx":["html","blue"],".ascx":["html","green"],".asax":["html","yellow"],".master":["html","yellow"],".cc":["cpp","blue"],".cpp":["cpp","blue"],".cxx":["cpp","blue"],".c++":["cpp","blue"],".hh":["cpp","purple"],".hpp":["cpp","purple"],".hxx":["cpp","purple"],".h++":["cpp","purple"],".mm":["cpp","yellow"],".clj":["clojure","green"],".cljs":["clojure","green"],".cljc":["clojure","green"],".edn":["clojure","blue"],".cfc":["coldfusion","blue"],".cfm":["coldfusion","blue"],".coffee":["coffee","yellow"],".litcoffee":["coffee","yellow"],".config":["config","grey-light"],".cfg":["config","grey-light"],".conf":["config","grey-light"],".cr":["crystal","white"],".ecr":["crystal_embedded","white"],".slang":["crystal_embedded","white"],".cson":["json","yellow"],".css":["css","blue"],".css.map":["css","blue"],".sss":["css","blue"],".csv":["csv","green"],".xls":["xls","green"],".xlsx":["xls","green"],".cu":["cu","green"],".cuh":["cu","purple"],".hu":["cu","purple"],".cake":["cake","red"],".ctp":["cake_php","red"],".d":["d","red"],".doc":["word","blue"],".docx":["word","blue"],".ejs":["ejs","yellow"],".ex":["elixir","purple"],".exs":["elixir_script","purple"],".elm":["elm","blue"],".ico":["favicon","yellow"],".fs":["f-sharp","blue"],".fsx":["f-sharp","blue"],".gitignore":["git","ignore"],".gitconfig":["git","ignore"],".gitkeep":["git","ignore"],".gitattributes":["git","ignore"],".gitmodules":["git","ignore"],".go":["go2","blue"],".slide":["go","blue"],".article":["go","blue"],".gd":["godot","blue"],".godot":["godot","red"],".tres":["godot","yellow"],".tscn":["godot","purple"],".gradle":["gradle","blue"],".groovy":["grails","green"],".gsp":["grails","green"],".gql":["graphql","pink"],".graphql":["graphql","pink"],".graphqls":["graphql","pink"],".hack":["hacklang","orange"],".haml":["haml","red"],".handlebars":["mustache","orange"],".hbs":["mustache","orange"],".hjs":["mustache","orange"],".hs":["haskell","purple"],".lhs":["haskell","purple"],".hx":["haxe","orange"],".hxs":["haxe","yellow"],".hxp":["haxe","blue"],".hxml":["haxe","purple"],".html":["html","orange"],".jade":["jade","red"],".java":["java","red"],".class":["java","red"],".classpath":["java","red"],".properties":["java","red"],".js":["javascript","yellow"],".js.map":["javascript","yellow"],".spec.js":["javascript","orange"],".test.js":["javascript","orange"],".es":["javascript","yellow"],".es5":["javascript","yellow"],".es6":["javascript","yellow"],".es7":["javascript","yellow"],".jinja":["jinja","red"],".jinja2":["jinja","red"],".json":["json","yellow"],".jl":["julia","purple"],".kt":["kotlin","orange"],".kts":["kotlin","orange"],".dart":["dart","blue"],".less":["less","blue"],".liquid":["liquid","green"],".ls":["livescript","blue"],".lua":["lua","blue"],".markdown":["markdown","blue"],".md":["markdown","blue"],".argdown":["argdown","blue"],".ad":["argdown","blue"],".mustache":["mustache","orange"],".stache":["mustache","orange"],".nim":["nim","yellow"],".nims":["nim","yellow"],".github-issues":["github","white"],".ipynb":["notebook","blue"],".njk":["nunjucks","green"],".nunjucks":["nunjucks","green"],".nunjs":["nunjucks","green"],".nunj":["nunjucks","green"],".njs":["nunjucks","green"],".nj":["nunjucks","green"],".npm-debug.log":["npm","ignore"],".npmignore":["npm","red"],".npmrc":["npm","red"],".ml":["ocaml","orange"],".mli":["ocaml","orange"],".cmx":["ocaml","orange"],".cmxa":["ocaml","orange"],".odata":["odata","orange"],".pl":["perl","blue"],".php":["php","purple"],".php.inc":["php","purple"],".pipeline":["pipeline","orange"],".pddl":["pddl","purple"],".plan":["plan","green"],".happenings":["happenings","blue"],".ps1":["powershell","blue"],".psd1":["powershell","blue"],".psm1":["powershell","blue"],".prisma":["prisma","blue"],".pug":["pug","red"],".pp":["puppet","yellow"],".epp":["puppet","yellow"],".purs":["purescript","white"],".py":["python","blue"],".jsx":["react","blue"],".spec.jsx":["react","orange"],".test.jsx":["react","orange"],".cjsx":["react","blue"],".spec.tsx":["react","orange"],".test.tsx":["react","orange"],".re":["reasonml","red"],".res":["rescript","red"],".resi":["rescript","pink"],".R":["R","blue"],".rmd":["R","blue"],".rb":["ruby","red"],".erb":["html_erb","red"],".erb.html":["html_erb","red"],".html.erb":["html_erb","red"],".rs":["rust","grey-light"],".sass":["sass","pink"],".scss":["sass","pink"],".springBeans":["spring","green"],".slim":["slim","orange"],".smarty.tpl":["smarty","yellow"],".tpl":["smarty","yellow"],".sbt":["sbt","blue"],".scala":["scala","red"],".sol":["ethereum","blue"],".styl":["stylus","green"],".svelte":["svelte","red"],".swift":["swift","orange"],".sql":["db","pink"],".soql":["db","blue"],".tf":["terraform","purple"],".tf.json":["terraform","purple"],".tfvars":["terraform","purple"],".tex":["tex","blue"],".sty":["tex","yellow"],".dtx":["tex","orange"],".ins":["tex","white"],".txt":["default","white"],".toml":["config","grey-light"],".twig":["twig","green"],".ts":["typescript","blue"],".tsx":["typescript","blue"],".spec.ts":["typescript","orange"],".test.ts":["typescript","orange"],".vala":["vala","grey-light"],".vapi":["vala","grey-light"],".component":["html","orange"],".vue":["vue","green"],".wasm":["wasm","purple"],".wat":["wat","purple"],".xml":["xml","orange"],".yml":["yml","purple"],".yaml":["yml","purple"],".pro":["prolog","orange"],".jar":["zip","red"],".zip":["zip","grey-light"],".wgt":["wgt","blue"],".ai":["illustrator","yellow"],".psd":["photoshop","blue"],".pdf":["pdf","red"],".eot":["font","red"],".ttf":["font","red"],".woff":["font","red"],".woff2":["font","red"],".gif":["image","purple"],".jpg":["image","purple"],".jpeg":["image","purple"],".png":["image","purple"],".pxm":["image","purple"],".svg":["svg","purple"],".svgx":["image","purple"],".tiff":["image","purple"],".webp":["image","purple"],".sublime-project":["sublime","orange"],".sublime-workspace":["sublime","orange"],".code-search":["code-search","purple"],".sh":["shell","green"],".zsh":["shell","green"],".fish":["shell","green"],".zshrc":["shell","green"],".bashrc":["shell","green"],".mov":["video","pink"],".ogv":["video","pink"],".webm":["video","pink"],".avi":["video","pink"],".mpg":["video","pink"],".mp4":["video","pink"],".mp3":["audio","purple"],".ogg":["audio","purple"],".wav":["audio","purple"],".flac":["audio","purple"],".3ds":["svg","blue"],".3dm":["svg","blue"],".stl":["svg","blue"],".obj":["svg","blue"],".dae":["svg","blue"],".bat":["windows","blue"],".cmd":["windows","blue"],".babelrc":["babel","yellow"],".babelrc.js":["babel","yellow"],".babelrc.cjs":["babel","yellow"],".bowerrc":["bower","orange"],".codeclimate.yml":["code-climate","green"],".eslintrc":["eslint","purple"],".eslintrc.js":["eslint","purple"],".eslintrc.cjs":["eslint","purple"],".eslintrc.yaml":["eslint","purple"],".eslintrc.yml":["eslint","purple"],".eslintrc.json":["eslint","purple"],".eslintignore":["eslint","grey"],".firebaserc":["firebase","orange"],".jshintrc":["javascript","blue"],".jscsrc":["javascript","blue"],".stylelintrc":["stylelint","white"],".stylelintrc.json":["stylelint","white"],".stylelintrc.yaml":["stylelint","white"],".stylelintrc.yml":["stylelint","white"],".stylelintrc.js":["stylelint","white"],".stylelintignore":["stylelint","grey"],".direnv":["config","grey-light"],".env":["config","grey-light"],".static":["config","grey-light"],".editorconfig":["config","grey-light"],".slugignore":["config","grey-light"],".tmp":["clock","grey-light"],".htaccess":["config","grey-light"],".key":["lock","green"],".cert":["lock","green"],".cer":["lock","green"],".crt":["lock","green"],".pem":["lock","green"],".DS_Store":["ignored","ignore"]},Q1e=[["TODO",["todo","blue"]],["Procfile",["heroku","purple"]],["cmakelists.txt",["makefile","blue"]],["CMakeLists.txt",["makefile","blue"]],["CMAKELISTS.txt",["makefile","blue"]],["CMAKELISTS.TXT",["makefile","blue"]],["omakefile",["makefile","grey-light"]],["OMakefile",["makefile","grey-light"]],["OMAKEFILE",["makefile","grey-light"]],["qmakefile",["makefile","purple"]],["QMakefile",["makefile","purple"]],["QMAKEFILE",["makefile","purple"]],["makefile",["makefile","orange"]],["Makefile",["makefile","orange"]],["MAKEFILE",["makefile","orange"]],["CONTRIBUTING",["license","red"]],["COMPILING",["license","orange"]],["COPYING",["license","yellow"]],["LICENCE.md",["license","yellow"]],["LICENSE.md",["license","yellow"]],["LICENCE",["license","yellow"]],["LICENSE",["license","yellow"]],["gulpfile.js",["gulp","red"]],["gulpfile",["gulp","red"]],["Gulpfile",["gulp","red"]],["GULPFILE",["gulp","red"]],["docker-compose.override.yaml",["docker","pink"]],["docker-compose.override.yml",["docker","pink"]],["docker-compose.yaml",["docker","pink"]],["docker-compose.yml",["docker","pink"]],["docker-healthcheck",["docker","green"]],[".dockerignore",["docker","grey"]],["DOCKERFILE",["docker","blue"]],["Dockerfile",["docker","blue"]],["dockerfile",["docker","blue"]],["gemfile",["ruby","red"]],["Gemfile",["ruby","red"]],["mix",["hex","red"]]],J1e={files:X1e,extensions:Z1e,partials:Q1e,default:["default","white"]},ece='',tce='',nce='',rce='',ice='',ace='',oce='',sce='',lce='',uce='',cce='',dce='',pce='',fce='',hce='',gce='',mce='',bce='',yce='',Ece='',vce='',_ce='',Tce='',Sce='',wce='',Ace='',Cce='',kce='',xce='',Ice='',Rce='',Nce='',Oce='',Dce='',Lce='',Mce='',Fce='',Pce='',Bce='',Uce='',$ce='',zce='',Hce='',jce='',Gce='',Vce='',Wce='',qce='',Kce='',Yce='',Xce='',Zce='',Qce='',Jce='',ede='',tde='',nde='',rde='',ide='',ade='',ode='',sde='',lde='',ude='',cde='',dde='',pde='',fde='',hde='',gde='',mde='',bde='',yde='',Ede='',vde='',_de='',Tde='',Sde='',wde='',Ade='',Cde='',kde='',xde='',Ide='',Rde='',Nde='',Ode='',Dde='',Lde='',Mde='',Fde='',Pde='',Bde='',Ude='',$de='',zde='',Hde='',jde='',Gde='',Vde='',Wde='',qde='',Kde='',Yde='',Xde='',Zde='',Qde='',Jde='',epe='',tpe='',npe='',rpe='',ipe='',ape='',ope='',spe='',lpe='',upe='',cpe='',dpe='',ppe='',fpe='',hpe='',gpe='',mpe='',bpe='',ype='',Epe='',vpe='',_pe='',Tpe='',Spe='',wpe='',Ape='',Cpe='',kpe='',xpe='',Ipe='',Rpe='',Npe='',Ope='',Dpe='',Lpe='',Mpe={folder:ece,bsl:tce,mdo:nce,salesforce:rce,asm:ice,bicep:ace,c:oce,"c-sharp":'',html:sce,cpp:lce,clojure:uce,coldfusion:cce,coffee:dce,config:pce,crystal:fce,crystal_embedded:hce,json:gce,css:mce,csv:bce,xls:yce,cu:Ece,cake:vce,cake_php:_ce,d:Tce,word:Sce,ejs:wce,elixir:Ace,elixir_script:Cce,hex:kce,elm:xce,favicon:Ice,"f-sharp":'',git:Rce,go2:Nce,go:Oce,godot:Dce,gradle:Lce,grails:Mce,graphql:Fce,hacklang:Pce,haml:Bce,mustache:Uce,haskell:$ce,haxe:zce,jade:Hce,java:jce,javascript:Gce,jinja:Vce,julia:Wce,karma:qce,kotlin:Kce,dart:Yce,less:Xce,liquid:Zce,livescript:Qce,lua:Jce,markdown:ede,argdown:tde,info:nde,clock:rde,maven:ide,nim:ade,github:ode,notebook:sde,nunjucks:lde,npm:ude,ocaml:cde,odata:dde,perl:pde,php:fde,pipeline:hde,pddl:gde,plan:mde,happenings:bde,powershell:yde,prisma:Ede,pug:vde,puppet:_de,purescript:Tde,python:Sde,react:wde,reasonml:Ade,rescript:Cde,R:kde,ruby:xde,html_erb:Ide,rust:Rde,sass:Nde,spring:Ode,slim:Dde,smarty:Lde,sbt:Mde,scala:Fde,ethereum:Pde,stylus:Bde,svelte:Ude,swift:$de,db:zde,terraform:Hde,tex:jde,default:'',twig:Gde,typescript:Vde,tsconfig:Wde,vala:qde,vue:Kde,wasm:Yde,wat:Xde,xml:Zde,yml:Qde,prolog:Jde,zip:epe,wgt:tpe,illustrator:npe,photoshop:rpe,pdf:ipe,font:ape,image:ope,svg:spe,sublime:lpe,"code-search":'',shell:upe,video:cpe,audio:dpe,windows:ppe,jenkins:fpe,babel:hpe,bower:gpe,docker:mpe,"code-climate":'',eslint:bpe,firebase:ype,firefox:Epe,grunt:vpe,gulp:_pe,ionic:Tpe,platformio:Spe,rollup:wpe,stylelint:Ape,yarn:Cpe,webpack:kpe,lock:xpe,license:Ipe,makefile:Rpe,heroku:Npe,todo:Ope,npm_ignored:Dpe,ignored:Lpe};var Hg=Jl&&Jl.__assign||function(){return Hg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return i[1]}return i1.default},nP=function(e){var t=Upe(e),n=t[0],r=t[1];return{svg:Bpe[n],color:r}};Z7.getIcon=nP;var $pe=function(e){return function(t){var n=nP(t);return Hg(Hg({},n),{color:e[n.color]})}},zpe=Z7.themeIcons=$pe;const Ey=({filename:e,height:t,width:n})=>{const r=zpe({blue:"#268bd2",grey:"#657b83","grey-light":"#839496",green:"#859900",orange:"#cb4b16",pink:"#d33682",purple:"#6c71c4",red:"#dc322f",white:"#fdf6e3",yellow:"#b58900",ignore:"#586e75"}),{svg:i,color:a}=r(e),o=Y1e.sanitize(i);return I.jsx("div",{dangerouslySetInnerHTML:{__html:o},style:{width:n,height:t,fill:a}})};var Q7={};Object.defineProperty(Q7,"__esModule",{value:!0});Q7.testFunc=void 0;var Hpe=function(){console.log("test")};Q7.testFunc=Hpe;function jpe(e,t){var n;if(typeof vscode>"u"){if(localStorage.getItem("ide"),window.postIntellijMessage===void 0)throw console.log("Unable to send message: postIntellijMessage is undefined. ",e,t),new Error("postIntellijMessage is undefined");(n=window.postIntellijMessage)==null||n.call(window,e,t);return}vscode.postMessage({type:e,...t})}function qa(e,t,n=0){try{jpe(e,t)}catch(r){n<5?(console.log(`Attempt ${n} failed. Retrying...`),setTimeout(()=>qa(e,t,n+1),Math.pow(2,n)*1e3)):console.error("Max attempts reached. Message could not be sent.",r)}}var rP={exports:{}},iP={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var sc=C;function Gpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vpe=typeof Object.is=="function"?Object.is:Gpe,Wpe=sc.useState,qpe=sc.useEffect,Kpe=sc.useLayoutEffect,Ype=sc.useDebugValue;function Xpe(e,t){var n=t(),r=Wpe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return Kpe(function(){i.value=n,i.getSnapshot=t,g4(i)&&a({inst:i})},[e,n,t]),qpe(function(){return g4(i)&&a({inst:i}),e(function(){g4(i)&&a({inst:i})})},[e]),Ype(n),n}function g4(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vpe(e,n)}catch{return!0}}function Zpe(e,t){return t()}var Qpe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Zpe:Xpe;iP.useSyncExternalStore=sc.useSyncExternalStore!==void 0?sc.useSyncExternalStore:Qpe;rP.exports=iP;var Jpe=rP.exports,aP={exports:{}},oP={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var O2=C,efe=Jpe;function tfe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nfe=typeof Object.is=="function"?Object.is:tfe,rfe=efe.useSyncExternalStore,ife=O2.useRef,afe=O2.useEffect,ofe=O2.useMemo,sfe=O2.useDebugValue;oP.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=ife(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=ofe(function(){function u(g){if(!c){if(c=!0,p=g,g=r(g),i!==void 0&&o.hasValue){var b=o.value;if(i(b,g))return f=b}return f=g}if(b=f,nfe(p,g))return b;var y=r(g);return i!==void 0&&i(b,y)?b:(p=g,f=y)}var c=!1,p,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,i]);var s=rfe(e,a[0],a[1]);return afe(function(){o.hasValue=!0,o.value=s},[s]),sfe(s),s};aP.exports=oP;var lfe=aP.exports;function ufe(e){e()}let sP=ufe;const cfe=e=>sP=e,dfe=()=>sP,II=Symbol.for("react-redux-context"),RI=typeof globalThis<"u"?globalThis:{};function pfe(){var e;if(!C.createContext)return{};const t=(e=RI[II])!=null?e:RI[II]=new Map;let n=t.get(C.createContext);return n||(n=C.createContext(null),t.set(C.createContext,n)),n}const yl=pfe();function J7(e=yl){return function(){return C.useContext(e)}}const lP=J7(),ffe=()=>{throw new Error("uSES not initialized!")};let uP=ffe;const hfe=e=>{uP=e},gfe=(e,t)=>e===t;function mfe(e=yl){const t=e===yl?lP:J7(e);return function(r,i={}){const{equalityFn:a=gfe,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:p,stabilityCheck:f,noopCheck:m}=t();C.useRef(!0);const g=C.useCallback({[r.name](y){return r(y)}}[r.name],[r,f,o]),b=uP(c.addNestedSub,u.getState,p||u.getState,g,a);return C.useDebugValue(b),b}}const zt=mfe();function bfe(){const e=dfe();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,a=n={callback:r,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const NI={notify(){},get:()=>[]};function yfe(e,t){let n,r=NI;function i(f){return u(),r.subscribe(f)}function a(){r.notify()}function o(){p.onStateChange&&p.onStateChange()}function s(){return!!n}function u(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=bfe())}function c(){n&&(n(),n=void 0,r.clear(),r=NI)}const p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:u,tryUnsubscribe:c,getListeners:()=>r};return p}const Efe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vfe=Efe?C.useLayoutEffect:C.useEffect;function _fe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:a="once"}){const o=C.useMemo(()=>{const c=yfe(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:a}},[e,r,i,a]),s=C.useMemo(()=>e.getState(),[e]);vfe(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,s]);const u=t||yl;return C.createElement(u.Provider,{value:o},n)}function cP(e=yl){const t=e===yl?lP:J7(e);return function(){const{store:r}=t();return r}}const Tfe=cP();function Sfe(e=yl){const t=e===yl?Tfe:cP(e);return function(){return t().dispatch}}const eo=Sfe();hfe(lfe.useSyncExternalStoreWithSelector);cfe(l9.unstable_batchedUpdates);function za(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:eT(e)?2:tT(e)?3:0}function W1(e,t){return xc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function wfe(e,t){return xc(e)===2?e.get(t):e[t]}function dP(e,t,n){var r=xc(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function pP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function eT(e){return Rfe&&e instanceof Map}function tT(e){return Nfe&&e instanceof Set}function Zl(e){return e.o||e.t}function nT(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hP(e);delete t[kn];for(var n=q1(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Afe),Object.freeze(e),t&&Su(e,function(n,r){return rT(r,!0)},!0)),e}function Afe(){za(2)}function iT(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function So(e){var t=Sy[e];return t||za(18,e),t}function Cfe(e,t){Sy[e]||(Sy[e]=t)}function vy(){return Cp}function m4(e,t){t&&(So("Patches"),e.u=[],e.s=[],e.v=t)}function jg(e){_y(e),e.p.forEach(kfe),e.p=null}function _y(e){e===Cp&&(Cp=e.l)}function OI(e){return Cp={p:[],l:Cp,h:e,m:!0,_:0}}function kfe(e){var t=e[kn];t.i===0||t.i===1?t.j():t.g=!0}function b4(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||So("ES5").S(t,e,r),r?(n[kn].P&&(jg(t),za(4)),ps(e)&&(e=Gg(t,e),t.l||Vg(t,e)),t.u&&So("Patches").M(n[kn].t,e,t.u,t.s)):e=Gg(t,n,[]),jg(t),t.u&&t.v(t.u,t.s),e!==fP?e:void 0}function Gg(e,t,n){if(iT(t))return t;var r=t[kn];if(!r)return Su(t,function(s,u){return DI(e,r,t,s,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Vg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=nT(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),Su(a,function(s,u){return DI(e,r,i,s,u,n,o)}),Vg(e,i,!1),n&&e.u&&So("Patches").N(r,n,e.u,e.s)}return r.o}function DI(e,t,n,r,i,a,o){if(El(i)){var s=Gg(e,i,a&&t&&t.i!==3&&!W1(t.R,r)?a.concat(r):void 0);if(dP(n,r,s),!El(s))return;e.m=!1}else o&&n.add(i);if(ps(i)&&!iT(i)){if(!e.h.D&&e._<1)return;Gg(e,i),t&&t.A.l||Vg(e,i)}}function Vg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&rT(t,n)}function y4(e,t){var n=e[kn];return(n?Zl(n):e)[t]}function LI(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ks(e){e.P||(e.P=!0,e.l&&Ks(e.l))}function E4(e){e.o||(e.o=nT(e.t))}function Ty(e,t,n){var r=eT(t)?So("MapSet").F(t,n):tT(t)?So("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:vy(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,c=kp;o&&(u=[s],c=wd);var p=Proxy.revocable(u,c),f=p.revoke,m=p.proxy;return s.k=m,s.j=f,m}(t,n):So("ES5").J(t,n);return(n?n.A:vy()).p.push(r),r}function xfe(e){return El(e)||za(22,e),function t(n){if(!ps(n))return n;var r,i=n[kn],a=xc(n);if(i){if(!i.P&&(i.i<4||!So("ES5").K(i)))return i.t;i.I=!0,r=MI(n,a),i.I=!1}else r=MI(n,a);return Su(r,function(o,s){i&&wfe(i.t,o)===s||dP(r,o,t(s))}),a===3?new Set(r):r}(e)}function MI(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return nT(e)}function Ife(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var u=this[kn];return kp.get(u,a)},set:function(u){var c=this[kn];kp.set(c,a,u)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][kn];if(!s.P)switch(s.i){case 5:r(s)&&Ks(s);break;case 4:n(s)&&Ks(s)}}}function n(a){for(var o=a.t,s=a.k,u=q1(s),c=u.length-1;c>=0;c--){var p=u[c];if(p!==kn){var f=o[p];if(f===void 0&&!W1(o,p))return!0;var m=s[p],g=m&&m[kn];if(g?g.t!==f:!pP(m,f))return!0}}var b=!!o[kn];return u.length!==q1(o).length+(b?0:1)}function r(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var u=0;u1?E-1:0),w=1;w1?p-1:0),m=1;m=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=So("Patches").$;return El(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),ji=new Dfe,gP=ji.produce;ji.produceWithPatches.bind(ji);ji.setAutoFreeze.bind(ji);ji.setUseProxies.bind(ji);ji.applyPatches.bind(ji);ji.createDraft.bind(ji);ji.finishDraft.bind(ji);function xp(e){"@babel/helpers - typeof";return xp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xp(e)}function Lfe(e,t){if(xp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mfe(e){var t=Lfe(e,"string");return xp(t)==="symbol"?t:String(t)}function Ffe(e,t,n){return t=Mfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $I(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ur(1));return n(oT)(e,t)}if(typeof e!="function")throw new Error(Ur(2));var i=e,a=t,o=[],s=o,u=!1;function c(){s===o&&(s=o.slice())}function p(){if(u)throw new Error(Ur(3));return a}function f(y){if(typeof y!="function")throw new Error(Ur(4));if(u)throw new Error(Ur(5));var T=!0;return c(),s.push(y),function(){if(T){if(u)throw new Error(Ur(6));T=!1,c();var v=s.indexOf(y);s.splice(v,1),o=null}}}function m(y){if(!Pfe(y))throw new Error(Ur(7));if(typeof y.type>"u")throw new Error(Ur(8));if(u)throw new Error(Ur(9));try{u=!0,a=i(a,y)}finally{u=!1}for(var T=o=s,E=0;E"u")throw new Error(Ur(12));if(typeof n(void 0,{type:Wg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ur(13))})}function mP(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Ur(14));f[g]=T,p=p||T!==y}return p=p||a.length!==Object.keys(u).length,p?f:u}}function qg(){for(var e=arguments.length,t=new Array(e),n=0;n0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]{let n=e.active;typeof t.stop=="boolean"?n=!t.stop:n=!0;let r;t.index>e.history.length?r={...t.update}:t.delta===!0?(r={...e.history[t.index]},t.update.name&&(r.name=(r.name??"")+t.update.name),t.update.description&&(r.description=(r.description??"")+t.update.description),t.update.observations&&(r.observations=[...r.observations??[],...t.update.observations]),t.update.logs&&(r.logs=[...r.logs??[],...t.update.logs])):t.delta===!1&&(r={...e.history[t.index],...t.update});let i=[...e.history];return r&&(t.index>=i.length?i.push(r):i[t.index]=r),{...e,history:i,active:n}},newSession:(e,{payload:t})=>t?(console.log("NEW SESSION"),{...e,history:t.session_state.history,context_items:t.session_state.context_items,contextItemsAtIndex:{},active:!1,title:t.title,session_id:t.session_id}):{...e,history:[],context_items:[],contextItemsAtIndex:{},active:!1,title:"New Session",session_id:Xd()},setTitle:(e,{payload:t})=>({...e,title:t}),setActive:(e,{payload:t})=>({...e,active:t}),setHistory:(e,{payload:t})=>({...e,history:t}),deleteAtIndex:(e,{payload:t})=>{let n=[...e.history];return n[t]={...n[t],hide:!0},{...e,history:n}},addContextItem:(e,{payload:t})=>(console.log("HERE...",t),{...e,context_items:[...e.context_items,t]}),addContextItemAtIndex:(e,{payload:t})=>({...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:[...e.contextItemsAtIndex[t.index]??[],t.item]}}),addHighlightedCode:(e,{payload:t})=>{let n=[...e.context_items].map(a=>({...a,editing:!1}));const r=t.rangeInFileWithContents.filepath.split(/[\\/]/).pop();for(let a=0;aparseInt(g)-1);if(s>p||u{const n=t.ids.map(r=>`${r.provider_title}-${r.item_id}`);return typeof t.index>"u"?{...e,context_items:e.context_items.filter(r=>!n.includes(`${r.description.id.provider_title}-${r.description.id.item_id}`))}:{...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:(e.contextItemsAtIndex[t.index]??[]).filter(r=>!n.includes(`${r.description.id.provider_title}-${r.description.id.item_id}`))}}},setEditingAtIds:(e,{payload:t})=>{const n=t.ids.map(r=>r.item_id);return typeof t.index>"u"?{...e,context_items:e.context_items.map(r=>({...r,editing:n.includes(r.description.id.item_id)}))}:{...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:(e.contextItemsAtIndex[t.index]??[]).map(r=>({...r,editing:n.includes(r.description.id.item_id)}))}}}}}),{setActive:Zd,setHistory:KI,processSessionUpdate:g0e,newSession:uc,deleteAtIndex:S4,addContextItem:TP,addContextItemAtIndex:SP,addHighlightedCode:m0e,deleteContextWithIds:w4,setTitle:wP,setEditingAtIds:b0e}=_P.actions,y0e=_P.reducer,E0e=Ge.button` border: none; - color: ${Ht}; - background-color: ${Lt}; - border-radius: ${wt}; + color: ${Yt}; + background-color: ${Vt}; + border-radius: ${It}; padding: 4px; padding-left: 8px; padding-right: 8px; overflow: hidden; - font-size: ${e=>e.fontSize||nr()}px; + font-size: ${e=>e.fontSize||pr()}px; cursor: pointer; -`;He.div` +`;Ge.div` position: absolute; left: 0px; top: 0px; @@ -359,11 +375,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho display: grid; grid-gap: 0; align-items: center; - border-radius: ${wt}; + border-radius: ${It}; - background-color: ${Lt}; -`;He.div` - background-color: ${Lt}; + background-color: ${Vt}; +`;Ge.div` + background-color: ${Vt}; height: 100%; display: flex; align-items: center; @@ -371,7 +387,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &:hover { background-color: ${e=>e.backgroundColor}; } -`;const Qce=He.div` +`;const v0e=Ge.div` position: absolute; top: -10px; right: -10px; @@ -384,13 +400,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho align-items: center; justify-content: center; padding: 2px; -`,Jce=He.div` - border-radius: ${wt}; - background-color: ${Lt}; +`,_0e=Ge.div` + border-radius: ${It}; + background-color: ${Vt}; display: flex; align-items: center; justify-content: center; -`,ede=He(Zce)` +`,T0e=Ge(E0e)` position: relative; border-color: ${e=>e.borderColor||"transparent"}; border-width: 1px; @@ -398,14 +414,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &:focus { outline: none; - /* border-color: ${vt}; */ + /* border-color: ${Et}; */ text-decoration: underline; } -`,tde=He(vi)` +`,S0e=Ge(zi)` &:hover { background-color: ${e=>e.color}; } -`,nde=He(vi)` +`,w0e=Ge(zi)` ${e=>e.selected&&` background-color: ${e.color}; @@ -413,26 +429,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho background-color: ${e.color}; } `} -`,rde=e=>{const[t,n]=C.useState(!1),r=C.useContext(Ya),[i,a]=C.useState(void 0);C.useEffect(()=>{e.editing&&e.item.content.length>4e3?a("Editing such a large range may be slow"):a(void 0)},[e.editing,e.item]);const o=C.useRef(null),s=C.useRef(null);return I.jsxs("div",{style:{position:"relative"},children:[I.jsxs(Jce,{previewing:e.previewing,ref:o,children:[I.jsx(ede,{fontSize:nr(),borderColor:e.editing&&i?"red":void 0,ref:s,onMouseEnter:()=>{n(!0),e.onHover&&e.onHover(!0)},onMouseLeave:()=>{n(!1),e.onHover&&e.onHover(!1)},className:`pill-button-${e.stepIndex||"main"}`,onKeyDown:u=>{var c,p;u.key==="Backspace"?(c=e.onDelete)==null||c.call(e,e.stepIndex):u.key==="v"?(p=e.toggleViewContent)==null||p.call(e):u.key==="e"&&(r==null||r.setEditingAtIds([e.item.description.id.item_id]))},onClick:u=>{var c;(c=e.onClick)==null||c.call(e,u),r==null||r.previewContextItem(`${e.item.description.id.provider_title}-${e.item.description.id.item_id}`)},onBlur:u=>{var c,p;(c=o.current)!=null&&c.contains(u.relatedTarget)&&(u.preventDefault(),(p=s.current)==null||p.focus())},children:I.jsxs("span",{className:(t?"underline":"")+" flex",children:[["file","code"].includes(e.item.description.id.provider_title)&&I.jsx($b,{height:"16px",width:"16px",filename:e.item.description.name.split(" ").at(0)}),e.item.description.name]})}),(e.editingAny||e.focusing&&e.item.editable||e.editing&&e.editingAny)&&I.jsxs(I.Fragment,{children:[I.jsx(nde,{"data-tooltip-id":`circle-div-${e.item.description.name}`,text:e.editing?"Editing this range":"Edit this range (e)",onClick:()=>{var u,c;e.editing||r==null||r.setEditingAtIds([e.item.description.id.item_id]),e.editingAny||(u=e.prefixInputWithEdit)==null||u.call(e,!0),e.editingAny&&e.editing&&((c=e.prefixInputWithEdit)==null||c.call(e,!1))},tabIndex:-1,color:"#f0f4",selected:e.editing,children:I.jsx(KY,{width:"1.4em",height:"1.4em"})}),I.jsx(Gs,{id:`circle-div-${e.item.description.name}`,children:"Editing this range"})]}),e.focusing&&I.jsx(tde,{text:"Delete (⌫)",onClick:()=>{var u;return(u=e.onDelete)==null?void 0:u.call(e,e.stepIndex)},tabIndex:-1,color:"#f004",children:I.jsx(pD,{width:"1.4em",height:"1.4em"})})]}),I.jsx(Gs,{id:`edit-${e.index}`,children:e.item.editing?"Editing this section (with entire file as context)":"Edit this section"}),I.jsx(Gs,{id:`delete-${e.index}`,children:"Delete"}),e.editing&&i&&I.jsxs(I.Fragment,{children:[I.jsx(Qce,{"data-tooltip-id":`circle-div-${e.item.description.name}`,className:"z-10",children:I.jsx(lD,{style:{margin:"auto"},width:"1.0em",strokeWidth:2})}),I.jsx(Gs,{id:`circle-div-${e.item.description.name}`,children:i})]})]})};var u7={};Object.defineProperty(u7,"__esModule",{value:!0});u7.testFunc=void 0;var ide=function(){console.log("test")};u7.testFunc=ide;function ade(e,t){var n;if(typeof vscode>"u"){if(localStorage.getItem("ide"),window.postIntellijMessage===void 0)throw console.log("Unable to send message: postIntellijMessage is undefined. ",e,t),new Error("postIntellijMessage is undefined");(n=window.postIntellijMessage)==null||n.call(window,e,t);return}vscode.postMessage({type:e,...t})}function rl(e,t,n=0){try{ade(e,t)}catch(r){n<5?(console.log(`Attempt ${n} failed. Retrying...`),setTimeout(()=>rl(e,t,n+1),Math.pow(2,n)*1e3)):console.error("Max attempts reached. Message could not be sent.",r)}}const ode={};var zb=function(e,t){return zb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},zb(e,t)};function Xp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var en=function(){return en=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]"u"&&require("cross-fetch/polyfill"),c=new URL(i,this.url),a&&(p=new URLSearchParams,Object.keys(a).filter(function(w){return a[w]!==null}).map(function(w){return p.set(w,a[w])}),c.search=p.toString()),!((n=u.headers)===null||n===void 0)&&n["Content-Type"]||(o=JSON.stringify(o)),f=en(en({},this.headers),u.headers),y.label=1;case 1:return y.trys.push([1,6,,7]),m=this.httpClient?this.httpClient:fetch,g=m(c.toString(),en(en(en({},u),this.requestConfig),{method:r,body:o,headers:f})),this.httpClient?[4,g]:[3,3];case 2:return[2,y.sent()];case 3:return[4,g.then(function(w){return sde(w)})];case 4:return E=y.sent(),[4,E.json().catch(function(){})];case 5:return b=y.sent(),[2,b];case 6:return T=y.sent(),v=T.stack,lde(T,v,c.toString()),[3,7];case 7:return[2]}})})},e.prototype.get=function(t,n,r){return Ne(this,void 0,void 0,function(){return Oe(this,function(i){switch(i.label){case 0:return[4,this.request({method:"GET",url:t,params:n,config:r})];case 1:return[2,i.sent()]}})})},e.prototype.post=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"POST",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.put=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"PUT",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.patch=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"PATCH",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.delete=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"DELETE",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e}(),Fn=function(){function e(t){this.taskUid=t.taskUid,this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.enqueuedAt=new Date(t.enqueuedAt)}return e}(),Rk=function(){function e(t){this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.uid=t.uid,this.details=t.details,this.canceledBy=t.canceledBy,this.error=t.error,this.duration=t.duration,this.startedAt=new Date(t.startedAt),this.enqueuedAt=new Date(t.enqueuedAt),this.finishedAt=new Date(t.finishedAt)}return e}(),HM=function(){function e(t){this.httpRequest=new bg(t)}return e.prototype.getTask=function(t){return Ne(this,void 0,void 0,function(){var n,r;return Oe(this,function(i){switch(i.label){case 0:return n="tasks/".concat(t),[4,this.httpRequest.get(n)];case 1:return r=i.sent(),[2,new Rk(r)]}})})},e.prototype.getTasks=function(t){return t===void 0&&(t={}),Ne(this,void 0,void 0,function(){var n,r;return Oe(this,function(i){switch(i.label){case 0:return n="tasks",[4,this.httpRequest.get(n,H3(t))];case 1:return r=i.sent(),[2,en(en({},r),{results:r.results.map(function(a){return new Rk(a)})})]}})})},e.prototype.waitForTask=function(t,n){var r=n===void 0?{}:n,i=r.timeOutMs,a=i===void 0?5e3:i,o=r.intervalMs,s=o===void 0?50:o;return Ne(this,void 0,void 0,function(){var u,c;return Oe(this,function(p){switch(p.label){case 0:u=Date.now(),p.label=1;case 1:return Date.now()-u"u"?this.tokens.generateTenantToken(n,r,i):e.prototype.generateTenantToken.call(this,n,r,i)},t}(Ede);function Pa(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:c7(e)?2:d7(e)?3:0}function B1(e,t){return bc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ade(e,t){return bc(e)===2?e.get(t):e[t]}function GM(e,t,n){var r=bc(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function VM(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function c7(e){return Nde&&e instanceof Map}function d7(e){return Ode&&e instanceof Set}function Vl(e){return e.o||e.t}function p7(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=qM(e);delete t[Cn];for(var n=U1(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Cde),Object.freeze(e),t&&mu(e,function(n,r){return f7(r,!0)},!0)),e}function Cde(){Pa(2)}function h7(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function bo(e){var t=Vb[e];return t||Pa(18,e),t}function xde(e,t){Vb[e]||(Vb[e]=t)}function Hb(){return pp}function j3(e,t){t&&(bo("Patches"),e.u=[],e.s=[],e.v=t)}function Eg(e){jb(e),e.p.forEach(kde),e.p=null}function jb(e){e===pp&&(pp=e.l)}function Nk(e){return pp={p:[],l:pp,h:e,m:!0,_:0}}function kde(e){var t=e[Cn];t.i===0||t.i===1?t.j():t.g=!0}function G3(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||bo("ES5").S(t,e,r),r?(n[Cn].P&&(Eg(t),Pa(4)),is(e)&&(e=vg(t,e),t.l||yg(t,e)),t.u&&bo("Patches").M(n[Cn].t,e,t.u,t.s)):e=vg(t,n,[]),Eg(t),t.u&&t.v(t.u,t.s),e!==WM?e:void 0}function vg(e,t,n){if(h7(t))return t;var r=t[Cn];if(!r)return mu(t,function(s,u){return Ok(e,r,t,s,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return yg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=p7(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),mu(a,function(s,u){return Ok(e,r,i,s,u,n,o)}),yg(e,i,!1),n&&e.u&&bo("Patches").N(r,n,e.u,e.s)}return r.o}function Ok(e,t,n,r,i,a,o){if(pl(i)){var s=vg(e,i,a&&t&&t.i!==3&&!B1(t.R,r)?a.concat(r):void 0);if(GM(n,r,s),!pl(s))return;e.m=!1}else o&&n.add(i);if(is(i)&&!h7(i)){if(!e.h.D&&e._<1)return;vg(e,i),t&&t.A.l||yg(e,i)}}function yg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&f7(t,n)}function V3(e,t){var n=e[Cn];return(n?Vl(n):e)[t]}function Dk(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function $s(e){e.P||(e.P=!0,e.l&&$s(e.l))}function W3(e){e.o||(e.o=p7(e.t))}function Gb(e,t,n){var r=c7(t)?bo("MapSet").F(t,n):d7(t)?bo("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:Hb(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,c=fp;o&&(u=[s],c=dd);var p=Proxy.revocable(u,c),f=p.revoke,m=p.proxy;return s.k=m,s.j=f,m}(t,n):bo("ES5").J(t,n);return(n?n.A:Hb()).p.push(r),r}function Ide(e){return pl(e)||Pa(22,e),function t(n){if(!is(n))return n;var r,i=n[Cn],a=bc(n);if(i){if(!i.P&&(i.i<4||!bo("ES5").K(i)))return i.t;i.I=!0,r=Lk(n,a),i.I=!1}else r=Lk(n,a);return mu(r,function(o,s){i&&Ade(i.t,o)===s||GM(r,o,t(s))}),a===3?new Set(r):r}(e)}function Lk(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return p7(e)}function Rde(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var u=this[Cn];return fp.get(u,a)},set:function(u){var c=this[Cn];fp.set(c,a,u)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Cn];if(!s.P)switch(s.i){case 5:r(s)&&$s(s);break;case 4:n(s)&&$s(s)}}}function n(a){for(var o=a.t,s=a.k,u=U1(s),c=u.length-1;c>=0;c--){var p=u[c];if(p!==Cn){var f=o[p];if(f===void 0&&!B1(o,p))return!0;var m=s[p],g=m&&m[Cn];if(g?g.t!==f:!VM(m,f))return!0}}var E=!!o[Cn];return u.length!==U1(o).length+(E?0:1)}function r(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var u=0;u1?v-1:0),w=1;w1?p-1:0),m=1;m=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=bo("Patches").$;return pl(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),$i=new Lde,KM=$i.produce;$i.produceWithPatches.bind($i);$i.setAutoFreeze.bind($i);$i.setUseProxies.bind($i);$i.applyPatches.bind($i);$i.createDraft.bind($i);$i.finishDraft.bind($i);function hp(e){"@babel/helpers - typeof";return hp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hp(e)}function Mde(e,t){if(hp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fde(e){var t=Mde(e,"string");return hp(t)==="symbol"?t:String(t)}function Pde(e,t,n){return t=Fde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uk(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Fr(1));return n(YM)(e,t)}if(typeof e!="function")throw new Error(Fr(2));var i=e,a=t,o=[],s=o,u=!1;function c(){s===o&&(s=o.slice())}function p(){if(u)throw new Error(Fr(3));return a}function f(b){if(typeof b!="function")throw new Error(Fr(4));if(u)throw new Error(Fr(5));var T=!0;return c(),s.push(b),function(){if(T){if(u)throw new Error(Fr(6));T=!1,c();var y=s.indexOf(b);s.splice(y,1),o=null}}}function m(b){if(!Bde(b))throw new Error(Fr(7));if(typeof b.type>"u")throw new Error(Fr(8));if(u)throw new Error(Fr(9));try{u=!0,a=i(a,b)}finally{u=!1}for(var T=o=s,v=0;v"u")throw new Error(Fr(12));if(typeof n(void 0,{type:_g.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Fr(13))})}function $de(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Fr(14));f[g]=T,p=p||T!==b}return p=p||a.length!==Object.keys(u).length,p?f:u}}function Tg(){for(var e=arguments.length,t=new Array(e),n=0;n0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]{e.bottomMessage=t.payload},setBottomMessageCloseTimeout:(e,t)=>{e.bottomMessageCloseTimeout&&clearTimeout(e.bottomMessageCloseTimeout),e.bottomMessageCloseTimeout=t.payload},setDialogMessage:(e,t)=>{e.dialogMessage=t.payload},setDialogEntryOn:(e,t)=>{e.dialogEntryOn=t.payload},setShowDialog:(e,t)=>{e.showDialog=t.payload},setDisplayBottomMessageOnBottom:(e,t)=>{e.displayBottomMessageOnBottom=t.payload}}}),{setBottomMessage:au,setBottomMessageCloseTimeout:Wk,setDialogMessage:X3,setDialogEntryOn:fpe,setShowDialog:Q1,setDisplayBottomMessageOnBottom:hpe}=eF.actions,gpe=eF.reducer;var tF={exports:{}},nF={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var J1=C;function mpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bpe=typeof Object.is=="function"?Object.is:mpe,Epe=J1.useState,vpe=J1.useEffect,ype=J1.useLayoutEffect,_pe=J1.useDebugValue;function Tpe(e,t){var n=t(),r=Epe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return ype(function(){i.value=n,i.getSnapshot=t,Z3(i)&&a({inst:i})},[e,n,t]),vpe(function(){return Z3(i)&&a({inst:i}),e(function(){Z3(i)&&a({inst:i})})},[e]),_pe(n),n}function Z3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bpe(e,n)}catch{return!0}}function Spe(e,t){return t()}var wpe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Spe:Tpe;nF.useSyncExternalStore=J1.useSyncExternalStore!==void 0?J1.useSyncExternalStore:wpe;tF.exports=nF;var Ape=tF.exports,rF={exports:{}},iF={};/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var om=C,Cpe=Ape;function xpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kpe=typeof Object.is=="function"?Object.is:xpe,Ipe=Cpe.useSyncExternalStore,Rpe=om.useRef,Npe=om.useEffect,Ope=om.useMemo,Dpe=om.useDebugValue;iF.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=Rpe(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=Ope(function(){function u(g){if(!c){if(c=!0,p=g,g=r(g),i!==void 0&&o.hasValue){var E=o.value;if(i(E,g))return f=E}return f=g}if(E=f,kpe(p,g))return E;var b=r(g);return i!==void 0&&i(E,b)?E:(p=g,f=b)}var c=!1,p,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,i]);var s=Ipe(e,a[0],a[1]);return Npe(function(){o.hasValue=!0,o.value=s},[s]),Dpe(s),s};rF.exports=iF;var Lpe=rF.exports;function Mpe(e){e()}let aF=Mpe;const Fpe=e=>aF=e,Ppe=()=>aF,qk=Symbol.for("react-redux-context"),Kk=typeof globalThis<"u"?globalThis:{};function Bpe(){var e;if(!C.createContext)return{};const t=(e=Kk[qk])!=null?e:Kk[qk]=new Map;let n=t.get(C.createContext);return n||(n=C.createContext(null),t.set(C.createContext,n)),n}const fl=Bpe();function b7(e=fl){return function(){return C.useContext(e)}}const oF=b7(),Upe=()=>{throw new Error("uSES not initialized!")};let sF=Upe;const $pe=e=>{sF=e},zpe=(e,t)=>e===t;function Hpe(e=fl){const t=e===fl?oF:b7(e);return function(r,i={}){const{equalityFn:a=zpe,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:p,stabilityCheck:f,noopCheck:m}=t();C.useRef(!0);const g=C.useCallback({[r.name](b){return r(b)}}[r.name],[r,f,o]),E=sF(c.addNestedSub,u.getState,p||u.getState,g,a);return C.useDebugValue(E),E}}const zt=Hpe();function jpe(){const e=Ppe();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,a=n={callback:r,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const Yk={notify(){},get:()=>[]};function Gpe(e,t){let n,r=Yk;function i(f){return u(),r.subscribe(f)}function a(){r.notify()}function o(){p.onStateChange&&p.onStateChange()}function s(){return!!n}function u(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=jpe())}function c(){n&&(n(),n=void 0,r.clear(),r=Yk)}const p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:u,tryUnsubscribe:c,getListeners:()=>r};return p}const Vpe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Wpe=Vpe?C.useLayoutEffect:C.useEffect;function qpe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:a="once"}){const o=C.useMemo(()=>{const c=Gpe(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:a}},[e,r,i,a]),s=C.useMemo(()=>e.getState(),[e]);Wpe(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,s]);const u=t||fl;return C.createElement(u.Provider,{value:o},n)}function lF(e=fl){const t=e===fl?oF:b7(e);return function(){const{store:r}=t();return r}}const Kpe=lF();function Ype(e=fl){const t=e===fl?Kpe:lF(e);return function(){return t().dispatch}}const us=Ype();$pe(Lpe.useSyncExternalStoreWithSelector);Fpe(yE.unstable_batchedUpdates);const Xpe=He(op)` +`,A0e=e=>{const[t,n]=C.useState(!1);C.useContext(to);const r=eo(),[i,a]=C.useState(void 0);C.useEffect(()=>{e.editing&&e.item.content.length>4e3?a("Editing such a large range may be slow"):a(void 0)},[e.editing,e.item]);const o=C.useCallback(()=>{var c,p;e.editing||r(b0e({ids:[e.item.description.id],index:e.inputIndex})),e.editingAny||(c=e.prefixInputWithEdit)==null||c.call(e,!0),e.editingAny&&e.editing&&((p=e.prefixInputWithEdit)==null||p.call(e,!1))},[e.editing,e.editingAny,e.item,e.inputIndex]),s=C.useRef(null),u=C.useRef(null);return zt(c=>c.sessionState.context_items),I.jsxs("div",{style:{position:"relative"},children:[I.jsxs(_0e,{previewing:e.previewing,ref:s,children:[I.jsx(T0e,{fontSize:pr(),borderColor:e.editing&&i?"red":void 0,ref:u,onMouseEnter:()=>{n(!0),e.onHover&&e.onHover(!0)},onMouseLeave:()=>{n(!1),e.onHover&&e.onHover(!1)},className:`pill-button-${e.stepIndex||"main"}`,onKeyDown:c=>{var p,f;c.key==="Backspace"?(p=e.onDelete)==null||p.call(e,e.stepIndex):c.key==="v"?(f=e.toggleViewContent)==null||f.call(e):c.key==="e"&&o()},onClick:c=>{var p;if((p=e.onClick)==null||p.call(e,c),e.item.description.id.provider_title==="file")qa("showFile",{filepath:e.item.description.description});else if(e.item.description.id.provider_title==="code"){const f=e.item.description.name.split("(")[1].split(")")[0].split("-");qa("showLines",{filepath:e.item.description.description,start:parseInt(f[0])-1,end:parseInt(f[1])-1})}else qa("showVirtualFile",{name:e.item.description.name,content:e.item.content})},onBlur:c=>{var p,f;(p=s.current)!=null&&p.contains(c.relatedTarget)&&(c.preventDefault(),(f=u.current)==null||f.focus())},children:I.jsxs("span",{className:(t?"underline":"")+" flex",children:[["file","code"].includes(e.item.description.id.provider_title)&&I.jsx(Ey,{height:"16px",width:"16px",filename:e.item.description.name.split(" ").at(0)}),e.item.description.name]})}),(e.editingAny||e.focusing&&e.item.editable||e.editing&&e.editingAny)&&I.jsxs(I.Fragment,{children:[I.jsx(w0e,{"data-tooltip-id":`circle-div-${e.item.description.name}`,text:e.editing?"Editing this range":"Edit this range (e)",onClick:o,tabIndex:-1,color:"#f0f4",selected:e.editing,children:I.jsx(zZ,{width:"1.4em",height:"1.4em"})}),I.jsx(au,{id:`circle-div-${e.item.description.name}`,children:"Editing this range"})]}),e.focusing&&I.jsx(S0e,{text:"Delete (⌫)",onClick:()=>{var c;return(c=e.onDelete)==null?void 0:c.call(e,e.stepIndex)},tabIndex:-1,color:"#f004",children:I.jsx(kL,{width:"1.4em",height:"1.4em"})})]}),I.jsx(au,{id:`edit-${e.index}`,children:e.item.editing?"Editing this section (with entire file as context)":"Edit this section"}),I.jsx(au,{id:`delete-${e.index}`,children:"Delete"}),e.editing&&i&&I.jsxs(I.Fragment,{children:[I.jsx(v0e,{"data-tooltip-id":`circle-div-${e.item.description.name}`,className:"z-10",children:I.jsx(wL,{style:{margin:"auto"},width:"1.0em",strokeWidth:2})}),I.jsx(au,{id:`circle-div-${e.item.description.name}`,children:i})]})]})},C0e={};var Ay=function(e,t){return Ay=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Ay(e,t)};function ff(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ay(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var tn=function(){return tn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]"u"&&require("cross-fetch/polyfill"),c=new URL(i,this.url),a&&(p=new URLSearchParams,Object.keys(a).filter(function(w){return a[w]!==null}).map(function(w){return p.set(w,a[w])}),c.search=p.toString()),!((n=u.headers)===null||n===void 0)&&n["Content-Type"]||(o=JSON.stringify(o)),f=tn(tn({},this.headers),u.headers),v.label=1;case 1:return v.trys.push([1,6,,7]),m=this.httpClient?this.httpClient:fetch,g=m(c.toString(),tn(tn(tn({},u),this.requestConfig),{method:r,body:o,headers:f})),this.httpClient?[4,g]:[3,3];case 2:return[2,v.sent()];case 3:return[4,g.then(function(w){return k0e(w)})];case 4:return b=v.sent(),[4,b.json().catch(function(){})];case 5:return y=v.sent(),[2,y];case 6:return T=v.sent(),E=T.stack,x0e(T,E,c.toString()),[3,7];case 7:return[2]}})})},e.prototype.get=function(t,n,r){return Ne(this,void 0,void 0,function(){return Oe(this,function(i){switch(i.label){case 0:return[4,this.request({method:"GET",url:t,params:n,config:r})];case 1:return[2,i.sent()]}})})},e.prototype.post=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"POST",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.put=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"PUT",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.patch=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"PATCH",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.delete=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"DELETE",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e}(),Pn=function(){function e(t){this.taskUid=t.taskUid,this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.enqueuedAt=new Date(t.enqueuedAt)}return e}(),YI=function(){function e(t){this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.uid=t.uid,this.details=t.details,this.canceledBy=t.canceledBy,this.error=t.error,this.duration=t.duration,this.startedAt=new Date(t.startedAt),this.enqueuedAt=new Date(t.enqueuedAt),this.finishedAt=new Date(t.finishedAt)}return e}(),AP=function(){function e(t){this.httpRequest=new Yg(t)}return e.prototype.getTask=function(t){return Ne(this,void 0,void 0,function(){var n,r;return Oe(this,function(i){switch(i.label){case 0:return n="tasks/".concat(t),[4,this.httpRequest.get(n)];case 1:return r=i.sent(),[2,new YI(r)]}})})},e.prototype.getTasks=function(t){return t===void 0&&(t={}),Ne(this,void 0,void 0,function(){var n,r;return Oe(this,function(i){switch(i.label){case 0:return n="tasks",[4,this.httpRequest.get(n,A4(t))];case 1:return r=i.sent(),[2,tn(tn({},r),{results:r.results.map(function(a){return new YI(a)})})]}})})},e.prototype.waitForTask=function(t,n){var r=n===void 0?{}:n,i=r.timeOutMs,a=i===void 0?5e3:i,o=r.intervalMs,s=o===void 0?50:o;return Ne(this,void 0,void 0,function(){var u,c;return Oe(this,function(p){switch(p.label){case 0:u=Date.now(),p.label=1;case 1:return Date.now()-u"u"?this.tokens.generateTenantToken(n,r,i):e.prototype.generateTenantToken.call(this,n,r,i)},t}(B0e);const kP=pf({name:"uiState",initialState:{bottomMessage:void 0,bottomMessageCloseTimeout:void 0,showDialog:!1,dialogMessage:"",dialogEntryOn:!1,displayBottomMessageOnBottom:!0},reducers:{setBottomMessage:(e,t)=>{e.bottomMessage=t.payload},setBottomMessageCloseTimeout:(e,t)=>{e.bottomMessageCloseTimeout&&clearTimeout(e.bottomMessageCloseTimeout),e.bottomMessageCloseTimeout=t.payload},setDialogMessage:(e,t)=>{e.dialogMessage=t.payload},setDialogEntryOn:(e,t)=>{e.dialogEntryOn=t.payload},setShowDialog:(e,t)=>{e.showDialog=t.payload},setDisplayBottomMessageOnBottom:(e,t)=>{e.displayBottomMessageOnBottom=t.payload}}}),{setBottomMessage:pu,setBottomMessageCloseTimeout:XI,setDialogMessage:C4,setDialogEntryOn:V0e,setShowDialog:cc,setDisplayBottomMessageOnBottom:W0e}=kP.actions,q0e=kP.reducer,K0e=Ge(oc)` margin: auto; margin-top: 8px; margin-bottom: 16px; @@ -455,17 +455,17 @@ Hint: It might not be working because maybe you're not up to date with the Meili opacity: 0.7; `} } -`;function Zpe(e){const t=zt(i=>i.config.vscMediaUrl),[n,r]=C.useState(localStorage.getItem("continueButtonColor"));return C.useEffect(()=>{const i=a=>{a.key==="continueButtonColor"&&r(a.newValue)};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[]),I.jsx(Xpe,{showStop:e.showStop,color:n,hidden:e.hidden,style:{fontSize:"10px"},className:"m-auto press-start-2p",onClick:e.disabled?void 0:e.onClick,isDisabled:e.disabled,children:e.showStop?I.jsxs(I.Fragment,{children:[I.jsx(uX,{width:"18px",height:"18px"}),"STOP"]}):I.jsxs(I.Fragment,{children:[t?I.jsx("img",{src:`${t}/play_button.png`,height:"18px"}):I.jsx(uD,{width:"18px",height:"18px"}),"CONTINUE"]})})}const Qpe={history:{timeline:[],current_index:3},user_input_queue:[],active:!1,slash_commands:[],adding_highlighted_code:!1,selected_context_items:[],config:{system_message:"",temperature:.5}},uF=Zp({name:"serverState",initialState:Qpe,reducers:{setServerState:(e,t)=>{e.selected_context_items=[],e.user_input_queue=[],e.slash_commands=[],Object.assign(e,t.payload)},temporarilyPushToUserInputQueue:(e,t)=>{e.user_input_queue=[...e.user_input_queue,t.payload]},temporarilyCreateNewUserInput:(e,t)=>{e.history.timeline=[...e.history.timeline,{step:{description:t.payload,name:"User Input",hide:!1},depth:0,active:!1,context_used:e.selected_context_items}]},temporarilyClearSession:(e,t)=>{e.history.timeline=[],e.selected_context_items=[],e.session_info={title:t.payload?"Loading session...":"New Session",session_id:"",date_created:""}}}}),{setServerState:Jpe,temporarilyPushToUserInputQueue:efe,temporarilyClearSession:sm,temporarilyCreateNewUserInput:tfe}=uF.actions,nfe=uF.reducer,cF=Zp({name:"misc",initialState:{highlightedCode:"",takenAction:!1,serverStatusMessage:"Continue Server Starting"},reducers:{setHighlightedCode:(e,t)=>{e.highlightedCode=t.payload},setTakenActionTrue:(e,t)=>{e.takenAction=!0},setServerStatusMessage:(e,t)=>{e.serverStatusMessage=t.payload}}}),{setHighlightedCode:rfe,setTakenActionTrue:pd,setServerStatusMessage:ife}=cF.actions,afe=cF.reducer,ofe=(e,t,n)=>{const r=tg(e);if(r&&e.key==="Backspace"){e.preventDefault();const i=e.target.selectionStart,a=e.target.selectionEnd;if(i!==a){const o=t.slice(0,i)+t.slice(a);n(o),e.target.selectionStart=i,e.target.selectionEnd=i}else{const o=t.lastIndexOf(` +`;function xP(e){const t=window.vscMediaUrl,[n,r]=C.useState(localStorage.getItem("continueButtonColor"));return C.useEffect(()=>{const i=a=>{a.key==="continueButtonColor"&&r(a.newValue)};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[]),I.jsx(K0e,{showStop:e.showStop,color:n,hidden:e.hidden,style:{fontSize:"10px"},className:"m-auto press-start-2p",onClick:e.disabled?void 0:e.onClick,isDisabled:e.disabled,children:e.showStop?I.jsxs(I.Fragment,{children:[I.jsx(eQ,{width:"18px",height:"18px"}),"STOP"]}):I.jsxs(I.Fragment,{children:[t?I.jsx("img",{src:`${t}/play_button.png`,height:"18px"}):I.jsx(AL,{width:"18px",height:"18px"}),"CONTINUE"]})})}const IP=pf({name:"misc",initialState:{takenAction:!1,serverStatusMessage:"Continue Server Starting"},reducers:{setTakenActionTrue:(e,t)=>{e.takenAction=!0},setServerStatusMessage:(e,t)=>{e.serverStatusMessage=t.payload}}}),{setTakenActionTrue:Ad,setServerStatusMessage:Y0e}=IP.actions,X0e=IP.reducer,Z0e=(e,t,n)=>{const r=xg(e);if(r&&e.key==="Backspace"){e.preventDefault();const i=e.target.selectionStart,a=e.target.selectionEnd;if(i!==a){const o=t.slice(0,i)+t.slice(a);n(o),e.target.selectionStart=i,e.target.selectionEnd=i}else{const o=t.lastIndexOf(` `,i-1),s=t.slice(0,o+1)+t.slice(i);n(s),e.target.selectionStart=o+1,e.target.selectionEnd=o+1}}else if(r){const i=e.target.selectionStart,a=e.target.selectionEnd;let o=i,s=a;const u=e.shiftKey;if(e.key==="ArrowLeft"){const c=t.lastIndexOf(` `,i-1);o=c===-1?0:c+1,s=u?a:o}else if(e.key==="ArrowRight"){const c=t.indexOf(` -`,i);s=c===-1?t.length:c,o=u?o:s}e.target.selectionStart=o,e.target.selectionEnd=s,e.preventDefault()}},sfe=(e,t,n)=>{const r=e.target.selectionStart,i=e.target.selectionEnd,a=tg(e);if(a&&e.key==="Backspace")if(e.preventDefault(),r!==i){const o=t.slice(0,r)+t.slice(i);n(o),e.target.selectionStart=r,e.target.selectionEnd=r}else{const o=t.slice(0,r).trimEnd().lastIndexOf(" "),s=t.slice(0,o+1)+t.slice(r);n(s),console.log(o),setTimeout(()=>{e.target.selectionStart=o+1,e.target.selectionEnd=o+1},10)}else if(a&&e.key==="c"){if(e.preventDefault(),e.stopPropagation(),r!==i){const o=t.slice(r,i);navigator.clipboard.writeText(o)}}else a&&e.key==="v"&&(e.preventDefault(),e.stopPropagation(),navigator.clipboard.readText().then(o=>{const s=t.slice(0,r)+o+t.slice(i);n(s);const u=r+o.length;setTimeout(()=>{e.target.selectionStart=u,e.target.selectionEnd=u},10)}))},lfe="continue_context_items",ufe=b2` +`,i);s=c===-1?t.length:c,o=u?o:s}e.target.selectionStart=o,e.target.selectionEnd=s,e.preventDefault()}},Q0e=(e,t,n)=>{const r=e.target.selectionStart,i=e.target.selectionEnd,a=xg(e);if(a&&e.key==="Backspace")if(e.preventDefault(),r!==i){const o=t.slice(0,r)+t.slice(i);n(o),e.target.selectionStart=r,e.target.selectionEnd=r}else{const o=t.slice(0,r).trimEnd().lastIndexOf(" "),s=t.slice(0,o+1)+t.slice(r);n(s),console.log(o),setTimeout(()=>{e.target.selectionStart=o+1,e.target.selectionEnd=o+1},10)}else if(a&&e.key==="c"){if(e.preventDefault(),e.stopPropagation(),r!==i){const o=t.slice(r,i);navigator.clipboard.writeText(o)}}else a&&e.key==="v"&&(e.preventDefault(),e.stopPropagation(),navigator.clipboard.readText().then(o=>{const s=t.slice(0,r)+o+t.slice(i);n(s);const u=r+o.length;setTimeout(()=>{e.target.selectionStart=u,e.target.selectionEnd=u},10)}))},J0e="continue_context_items",ehe=Gm` 0% { background-position: 0px 0; } 100% { background-position: 100em 0; } -`,cfe=He.div` +`,the=Ge.div` border-radius: ${e=>e.borderRadius||"0"}; padding: 1px; background: ${e=>e.borderColor?e.borderColor:`repeating-linear-gradient( @@ -478,19 +478,19 @@ Hint: It might not be working because maybe you're not up to date with the Meili #331BBE 85%, #1BBE84 99% )`}; - animation: ${e=>e.loading?ufe:""} 6s linear infinite; + animation: ${e=>e.loading?ehe:""} 6s linear infinite; background-size: 200% 200%; width: 100%; display: flex; flex-direction: row; align-items: center; margin-top: 8px; -`,dfe=He.button` +`,nhe=Ge.button` opacity: 0; background-color: transparent; border: none; outline: none; - color: ${Ht}; + color: ${Yt}; cursor: pointer; display: flex; align-items: center; @@ -500,94 +500,94 @@ Hint: It might not be working because maybe you're not up to date with the Meili padding: 0; margin-left: -8px; - border-radius: ${wt}; + border-radius: ${It}; &:focus { margin-left: 1px; height: fit-content; padding: 3px; opacity: 1; - outline: 1px solid ${vt}; + outline: 1px solid ${Et}; } -`,qb=nr(),pfe=He.div` +`,Cy=pr(),rhe=Ge.div` padding: 0px; - background-color: ${Lt}; - border-radius: ${wt}; + background-color: ${Vt}; + border-radius: ${It}; margin: 8px; overflow: hidden; & div { - background-color: ${Lt}; + background-color: ${Vt}; } -`,ffe=He.p` +`,ihe=Ge.p` margin: 0; padding: 4px 8px; - border-bottom: 1px solid ${vt}; + border-bottom: 1px solid ${Et}; word-break: break-all; - font-size: ${nr()}px; + font-size: ${pr()}px; display: flex; align-items: center; -`,hfe=He.textarea` +`,ahe=Ge.textarea` resize: none; padding: 8px; - font-size: ${e=>e.fontSize||qb}px; + font-size: ${e=>e.fontSize||Cy}px; font-family: inherit; - border-radius: ${wt}; + border-radius: ${It}; margin: 0; height: auto; width: 100%; - background-color: ${Lt}; - color: ${Ht}; + background-color: ${Vt}; + color: ${Yt}; z-index: 1; border: 0.5px solid - ${e=>e.inQueryForDynamicProvider?da:"transparent"}; + ${e=>e.inQueryForDynamicProvider?ha:"transparent"}; &:focus { outline: 0.5px solid - ${e=>e.inQueryForDynamicProvider?da:vt}; + ${e=>e.inQueryForDynamicProvider?ha:Et}; border: 0.5px solid transparent; - background-color: ${e=>e.inQueryForDynamicProvider?`${da}22`:Lt}; + background-color: ${e=>e.inQueryForDynamicProvider?`${ha}22`:Vt}; } &::placeholder { - color: ${vt}cc; + color: ${Et}cc; } -`,gfe=He.div` +`,ohe=Ge.div` position: absolute; top: 14px; right: 12px; - background-color: ${Lt}; - border-radius: ${wt}; + background-color: ${Vt}; + border-radius: ${It}; z-index: 100; -`,mfe=He.div` +`,she=Ge.div` position: absolute; right: 0px; top: 0px; height: fit-content; padding: 2px 4px; - border-radius: ${wt}; + border-radius: ${It}; z-index: 2; color: white; font-size: 12px; - background-color: ${da}; -`,dF=300,bfe=He.ul` - ${e=>e.showAbove?`transform: translateY(-${e.ulHeightPixels+8}px);`:`transform: translateY(${(e.isMainInput?5:4)*(e.fontSize||qb)-(e.isMainInput?2:4)}px);`} + background-color: ${ha}; +`,RP=300,lhe=Ge.ul` + ${e=>e.showAbove?`transform: translateY(-${e.ulHeightPixels+8}px);`:`transform: translateY(${(e.isMainInput?5:4)*(e.fontSize||Cy)-(e.isMainInput?2:4)-6}px);`} position: absolute; - background: ${Kt}; - color: ${Ht}; - max-height: ${dF}px; + background: ${Ht}; + color: ${Yt}; + max-height: ${RP}px; margin-left: 1px; width: calc(100% - 18px); overflow-y: scroll; overflow-x: hidden; padding: 0; ${({hidden:e})=>e&&"display: none;"} - border-radius: ${wt}; - outline: 0.5px solid ${vt}; + border-radius: ${It}; + outline: 0.5px solid ${Et}; -ms-overflow-style: none; - font-size: ${e=>e.fontSize||qb}px; + font-size: ${e=>e.fontSize||Cy}px; scrollbar-width: none; /* Firefox */ z-index: 500; @@ -596,8 +596,8 @@ Hint: It might not be working because maybe you're not up to date with the Meili &::-webkit-scrollbar { display: none; } -`,Xk=He.li` - background-color: ${({highlighted:e})=>e?da+"66":Lt}; +`,ZI=Ge.li` + background-color: ${({highlighted:e})=>e?ha+"66":Vt}; ${({selected:e})=>e&&"font-weight: bold;"} padding: 0.5rem 0.5rem; display: flex; @@ -606,14 +606,17 @@ Hint: It might not be working because maybe you're not up to date with the Meili ${({isLastItem:e})=>e&&"border-bottom: 1px solid gray;"} cursor: pointer; z-index: 500; -`,Zk=ut.forwardRef((e,t)=>{var Se,Me,ze,Ke,jt,ue,ye,We,at,Qe;const n=zt(Y=>Y.serverState.meilisearch_url||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const Y=new wde({host:n});i(Y)},[n]);const a=C.useContext(Ya),o=us(),s=zt(Y=>Y.config.workspacePaths),u=zt(Y=>Y.serverState.history),[c,p]=ut.useState([]),[f,m]=ut.useState(0),[g,E]=ut.useState([]),b=ut.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Se=b.current)==null?void 0:Se.scrollHeight,(Me=b.current)==null?void 0:Me.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[T,v]=C.useState(!1),[y,w]=C.useState(void 0),[A,D]=C.useState(void 0),k=zt(Y=>Y.serverState.slash_commands).map(Y=>({name:`/${Y.name}`,description:Y.description})),R=zt(Y=>e.index?Y.serverState.history.timeline[e.index].context_used||[]:Y.serverState.selected_context_items),B=zt(Y=>Y.serverState.history.timeline);C.useEffect(()=>{T||(w(void 0),D(void 0))},[T]);const W=zt(Y=>Y.serverState.context_providers),P=()=>{v(!1),w(void 0),D(void 0),fe.setInputValue("@")};C.useEffect(()=>{y||E((W==null?void 0:W.map(Y=>({name:Y.display_title,description:Y.description,id:Y.title})).sort((Y,se)=>Y.id==="file"?-1:1))||[])},[y]);const[Q,z]=C.useState(""),le=C.useCallback(({inputValue:Y,highlightedIndex:se})=>{var j;if(!Y){E([]),w(void 0),v(!1);return}if(Q===""&&(W!=null&&W.some($=>$.display_title===Y))){fe.setInputValue(""),z("");return}if(z(Y),A&&!Y.startsWith(`@${A.title}`)&&D(void 0),(j=e.onInputValueChange)==null||j.call(e,Y),Y.endsWith("@")||T){const $=(Y==null?void 0:Y.split("@"))||[];if($.length>1){v(!0);const J=$[$.length-1]||"";if(y&&!Y.endsWith("@")){const be=J.split(" ");he(y.title,be.length>1?be[1]:"").then(Fe=>{E(Fe)})}else{const be=(W==null?void 0:W.filter(Fe=>`@${Fe.title}`.toLowerCase().startsWith(Y.toLowerCase())||`@${Fe.display_title}`.toLowerCase().startsWith(Y.toLowerCase())).map(Fe=>({name:Fe.display_title,description:Fe.description,id:Fe.title})).sort((Fe,De)=>Fe.id==="file"?-1:1))||[];E(be),v(!0)}return}else v(!1),w(void 0)}w(void 0),E((k==null?void 0:k.filter($=>{const J=$.name.toLowerCase(),be=Y.toLowerCase();return J.startsWith(be)&&J!==be}))||[]),(Y.startsWith("/")||Y.startsWith("@"))&&o(pd(null))},[k,T,y,A]),he=async(Y,se)=>{const j=s&&s.length>0?`workspace_dir IN [ ${s.map($=>`"${$}"`).join(", ")} ] AND provider_name = '${Y}'`:void 0;try{const $=await(r==null?void 0:r.index(lfe).search(se,{filter:j}));return($==null?void 0:$.hits.map(J=>({name:J.name,description:J.description,id:J.id,content:J.content})))||[]}catch($){return console.log("Error searching context items",$),[]}},{getInputProps:de,...fe}=LM({onInputValueChange:le,items:g,itemToString(Y){return Y?Y.name:""}});C.useEffect(()=>{fe.highlightedIndex<0&&fe.setHighlightedIndex(0)},[fe.inputValue]);const Z=ut.useRef(null),V=ut.useRef(null),ce=()=>{var Y;return(((Y=Z.current)==null?void 0:Y.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>dF};C.useImperativeHandle(t,()=>fe,[fe]);const N=ut.useRef(null),me=C.useCallback(()=>{var $;if(ve(!0),!N.current)return;const Y=N.current.querySelectorAll(`.pill-button-${e.index||"main"}`),se=Array.from(Y),j=se.findIndex(J=>J===document.activeElement);if(j===se.length-1)($=b.current)==null||$.focus();else if(j!==-1){const J=se[(j+1)%se.length];J==null||J.focus()}else{const J=se[0];J==null||J.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const Y=se=>{se.key==="Tab"&&(se.preventDefault(),me())};return b.current.addEventListener("keydown",Y),()=>{var se;(se=b.current)==null||se.removeEventListener("keydown",Y)}}},[b.current]),C.useEffect(()=>{e.value&&fe.setInputValue(e.value)},[e.value,fe.setInputValue]);const[oe,O]=C.useState(!1);C.useLayoutEffect(()=>{V.current&&fe.setHighlightedIndex(0)},[g,fe.setHighlightedIndex,V.current]);const[re,Te]=C.useState(!1),[K,xe]=C.useState(!1);C.useEffect(()=>{const Y=j=>{j.key==="Meta"&&Te(!0)},se=j=>{j.key==="Meta"&&Te(!1)};return window.addEventListener("keydown",Y),window.addEventListener("keyup",se),()=>{window.removeEventListener("keydown",Y),window.removeEventListener("keyup",se)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const Y=se=>{var j;se.data.type==="focusContinueInput"?(b.current.focus(),o(pd(null))):se.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(j=b.current)!=null&&j.value.startsWith("/edit")||fe.setInputValue("/edit "),o(pd(null))):se.data.type==="focusContinueInputWithNewSession"&&(o(sm(!1)),a==null||a.loadSession(void 0),o(pd(null)))};return window.addEventListener("message",Y),()=>{window.removeEventListener("message",Y)}},[b.current,e.isMainInput]);const ne=ut.useRef(null),Le=C.useCallback((Y,se)=>{e.isMainInput?a==null||a.selectContextItem(Y,se):e.index&&(a==null||a.selectContextItemAtIndex(Y,se,e.index))},[a,e.index]),Re=C.useCallback(Y=>{const se=g[fe.highlightedIndex],j=se==null?void 0:se.name,$=W.find(J=>J.display_title===j);if($){if($.dynamic&&$.requires_query){D($),fe.setInputValue(`@${$.title} `),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}else if($.dynamic){if(!se.id)return;const J=fe.inputValue.split("@"),be=J[J.length-1];if(Le(se.id,be),fe.inputValue.includes("@")){const Fe=W.find(De=>De.title===se.id);!y&&!(Fe!=null&&Fe.dynamic)?(fe.setInputValue(`@${se.id} `),w(Fe)):fe.setInputValue("")}fe.setInputValue(""),v(!1),w(void 0),D(void 0),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}}else{if(y&&se.id){Le(se.id,""),fe.setInputValue(""),v(!1),w(void 0),D(void 0),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}w($),fe.setInputValue(`@${$.title} `),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault(),he($.title,"").then(J=>E(J))},[g,fe.highlightedIndex,W,y,fe.inputValue,Le]),[Xe,Ve]=C.useState(!1),[dt,ot]=C.useState(!1),[Ge,pt]=C.useState(void 0),[U,ie]=C.useState(void 0),pe=ut.useRef(null),[ke,ve]=C.useState(!1);return C.useEffect(()=>{K||ve(!1)},[K]),I.jsxs("div",{ref:pe,children:[R.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:vt,fontSize:"10px",backgroundColor:Kt,paddingLeft:"12px",paddingTop:nr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var Y;fe.setInputValue("@"),(Y=b.current)==null||Y.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Ke=fe.inputValue)==null?void 0:Ke.startsWith("/edit"))||K&&re&&((jt=fe.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||R.length>0&&ke?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:N,style:{backgroundColor:Kt},children:[R.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:Y=>{ot(se=>!se)},id:"toggle-context-div",children:dt?I.jsx(TY,{width:"14px",height:"14px",color:vt}):I.jsx(AY,{width:"14px",height:"14px",color:vt})}),I.jsx(dfe,{className:R.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var Y;a==null||a.deleteContextWithIds(R.map(se=>se.description.id),e.index),(Y=b.current)==null||Y.focus(),pt(void 0),ie(void 0)},onKeyDown:Y=>{var se;Y.key==="Backspace"&&(a==null||a.deleteContextWithIds(R.map(j=>j.description.id),e.index),(se=b.current)==null||se.focus(),pt(void 0),ie(void 0))},children:I.jsx(pD,{width:"1.4em",height:"1.4em"})}),(e.isMainInput?R:B[e.index].context_used||[]).map((Y,se)=>{var j,$,J,be;return I.jsx(rde,{areMultipleItems:R.length>1,item:Y,editing:Y.editing&&(($=(j=b.current)==null?void 0:j.value)==null?void 0:$.startsWith("/edit")),editingAny:(be=(J=b.current)==null?void 0:J.value)==null?void 0:be.startsWith("/edit"),stepIndex:e.index,index:se,onDelete:()=>{var Fe;a==null||a.deleteContextWithIds([Y.description.id],e.index),(Fe=b.current)==null||Fe.focus(),(Y.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===Y.description.id.provider_name||Y.description.id.item_id===(Ge==null?void 0:Ge.description.id.item_id)&&(Ge==null?void 0:Ge.description.id.provider_name)===Y.description.id.provider_name)&&(pt(void 0),ie(void 0))},onClick:Fe=>{Y.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===Y.description.id.provider_name?ie(void 0):ie(Y)},onBlur:()=>{ie(void 0)},toggleViewContent:()=>{pt(Fe=>{if(!Fe)return Y;if(!(Fe.description.id.item_id===Y.description.id.item_id&&Fe.description.id.provider_name===Y.description.id.provider_name))return Y})},previewing:Y.description.id.item_id===(Ge==null?void 0:Ge.description.id.item_id)&&(Ge==null?void 0:Ge.description.id.provider_name)===Y.description.id.provider_name,focusing:Y.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===Y.description.id.provider_name,prefixInputWithEdit:Fe=>{var De,tt,Je;!Fe&&((De=b.current)!=null&&De.value.startsWith("/edit"))&&fe.setInputValue((tt=b.current)==null?void 0:tt.value.replace("/edit ","")),!fe.inputValue.startsWith("/edit")&&(fe.setInputValue(`/edit ${fe.inputValue}`),(Je=b.current)==null||Je.focus())}},`${Y.description.id.item_id}${se}`)})]}):R.length>0&&I.jsxs("div",{onClick:()=>{var Y;(Y=b.current)==null||Y.focus(),ve(!0)},style:{color:vt,fontSize:"10px",backgroundColor:Kt,paddingLeft:"12px",cursor:"default",paddingTop:nr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",R.length," ","context item",R.length===1?"":"s"]}),Ge&&I.jsx("pre",{className:"m-0",children:I.jsx(pg,{source:`\`\`\`${qA(Ge.description.description)} -${Ge.content} -\`\`\``,maxHeight:200})}),dt&&I.jsx("div",{children:R.map(Y=>I.jsxs(pfe,{children:[I.jsxs(ffe,{children:[I.jsx($b,{height:"20px",width:"20px",filename:Y.description.name}),Y.description.description]}),I.jsx("pre",{className:"m-0",children:I.jsx(pg,{source:`\`\`\`${qA(Y.description.description)} -${Y.content} -\`\`\``,maxHeight:200})})]}))}),I.jsxs("div",{className:"flex px-2 relative",style:{backgroundColor:Kt},ref:Z,children:[I.jsxs(cfe,{loading:e.active||!1,isFirst:!1,isLast:!1,borderColor:e.active?void 0:Kt,borderRadius:wt,children:[I.jsx(hfe,{onClick:()=>{var Y;(Y=b.current)==null||Y.focus()},onMouseEnter:()=>O(!0),onMouseLeave:Y=>{var se;Y.relatedTarget===ne.current||(se=ne.current)!=null&&se.contains(Y.relatedTarget)||O(!1)},rows:e.isMainInput?void 0:1,inQueryForDynamicProvider:typeof A<"u",fontSize:nr(),disabled:e.disabled,placeholder:"Ask a question, '/' for slash commands, '@' to add context",...de({onCompositionStart:()=>Ve(!0),onCompositionEnd:()=>Ve(!1),onChange:Y=>{},onFocus:Y=>{xe(!0),o(au(void 0))},onBlur:Y=>{var se,j;(se=pe.current)!=null&&se.contains(Y.relatedTarget)||(j=document.getElementById("toggle-context-div"))!=null&&j.contains(Y.relatedTarget)||xe(!1)},onKeyDown:Y=>{var se,j;if(o(au(void 0)),Y.key==="Enter"&&Y.shiftKey)Y.nativeEvent.preventDownshiftDefault=!0,v(!1);else if(Y.key==="Enter"&&(!fe.isOpen||g.length===0)&&!Xe){const $=fe.inputValue;if(A){const J=$.split("@");Le(A.title,J[J.length-1]),v(!1),fe.setInputValue("");return}else $!==""&&(m(c.length+1),p([...c,$])),Y.nativeEvent.preventDownshiftDefault=!0,e.onEnter&&e.onEnter(Y,$);v(!1)}else if(Y.key==="Enter"&&T)Re(Y);else if(Y.key==="Tab"&&fe.isOpen&&g.length>0&&((se=g[fe.highlightedIndex])!=null&&se.name.startsWith("/")))fe.setInputValue(g[0].name),Y.preventDefault();else if(Y.key==="Tab")Y.nativeEvent.preventDownshiftDefault=!0;else{if((Y.key==="ArrowUp"||Y.key==="ArrowDown")&&g.length>0)return;if(Y.key==="ArrowUp"){if(f==0||Y.currentTarget.selectionStart!==0){Y.nativeEvent.preventDownshiftDefault=!0;return}else f==c.length&&(c.length===0||c[c.length-1]!==Y.currentTarget.value)&&p([...c,Y.currentTarget.value]);fe.setInputValue(c[f-1]),m($=>$-1),v(!1)}else if(Y.key==="ArrowDown"){if(f===c.length||Y.currentTarget.selectionStart!==Y.currentTarget.value.length){Y.nativeEvent.preventDownshiftDefault=!0;return}fMath.min($+1,c.length)),v(!1)}else if(Y.key==="Escape"){if(y){P(),Y.nativeEvent.preventDownshiftDefault=!0;return}else if(A){P(),Y.nativeEvent.preventDownshiftDefault=!0;return}v(!1),fe.isOpen&&g.length>0?(fe.closeMenu(),Y.nativeEvent.preventDownshiftDefault=!0):(Y.nativeEvent.preventDownshiftDefault=!0,(j=b.current)==null||j.blur(),rl("focusEditor",{}))}else Y.key==="Home"||Y.key==="End"?Y.nativeEvent.preventDownshiftDefault=!0:localStorage.getItem("ide")==="jetbrains"&&(_2()==="mac"?ofe(Y,fe.inputValue,fe.setInputValue):sfe(Y,fe.inputValue,fe.setInputValue))}},onClick:()=>{o(au(void 0))},ref:b})}),e.isMainInput||I.jsx(gfe,{ref:ne,children:oe&&I.jsx("div",{className:"flex",children:I.jsxs(I.Fragment,{children:[B.filter((Y,se)=>{var j;return((j=e.groupIndices)==null?void 0:j.includes(se))&&Y.logs}).some(Y=>Y.logs.length>0)&&I.jsx(vi,{onClick:Y=>{Y.stopPropagation(),e.groupIndices&&(a==null||a.showLogsAtIndex(e.groupIndices[1]))},text:"Inspect Prompt",children:I.jsx(dY,{width:"1.3em",height:"1.3em"})}),I.jsx(vi,{onClick:Y=>{var se;Y.stopPropagation(),e.active&&e.groupIndices?a==null||a.deleteAtIndex(e.groupIndices[1]):(se=e.onDelete)==null||se.call(e)},text:e.active?`Stop (${ZK()}⌫)`:"Delete",children:e.active?null:I.jsx(T2,{width:"1.4em",height:"1.4em"})})]})})})]}),A&&I.jsxs(mfe,{children:["Enter ",A.display_title," Query"]}),I.jsxs(bfe,{...fe.getMenuProps({ref:V}),isMainInput:e.isMainInput,showAbove:ce(),ulHeightPixels:((ue=V.current)==null?void 0:ue.getBoundingClientRect().height)||0,hidden:!fe.isOpen||g.length===0||((ye=b.current)==null?void 0:ye.value)==="",fontSize:nr(),children:[y&&I.jsxs("div",{style:{backgroundColor:Lt,borderBottom:`0.5px solid ${vt}`,display:"flex",gap:"4px",position:"sticky",top:"0px"},className:"py-2 px-4 my-0",children:[I.jsx(ac,{width:"1.4em",height:"1.4em",className:"cursor-pointer",onClick:Y=>{var se;P(),(se=b.current)==null||se.focus()}}),y.display_title," -"," ",y.description]}),fe.isOpen&&g.map((Y,se)=>I.jsxs(Xk,{style:{borderTop:se===0?"none":`0.5px solid ${vt}`},...fe.getItemProps({item:Y,index:se}),highlighted:fe.highlightedIndex===se,selected:fe.selectedItem===Y,onClick:j=>{var $;Re(j),j.stopPropagation(),j.preventDefault(),($=b.current)==null||$.focus()},children:[I.jsxs("span",{className:"flex justify-between w-full items-center",children:[I.jsxs("div",{className:"flex items-center justify-center",children:[y&&I.jsx($b,{height:"20px",width:"20px",filename:Y.name}),Y.name," "]}),I.jsx("span",{style:{color:vt,float:"right",textAlign:"right"},children:Y.description})]}),(W==null?void 0:W.filter(j=>!j.dynamic||j.requires_query).find(j=>j.title===Y.id))&&I.jsx(lY,{width:"1.2em",height:"1.2em",color:vt,className:"ml-2 flex-shrink-0"})]},`${Y.name}${se}`)),fe.isOpen&&g.length===0&&I.jsx(Xk,{highlighted:!1,selected:!1,isLastItem:!1,children:I.jsx("span",{style:{color:vt,float:"right",textAlign:"right",display:"flex",width:"100%",cursor:"default"},children:"No items found"})},"empty-items-li")]})]}),e.isMainInput&&I.jsx(Zpe,{disabled:!((We=b.current)!=null&&We.value)&&!(typeof(u==null?void 0:u.current_index)<"u"&&((at=u.timeline[u.current_index])!=null&&at.active)),onClick:()=>{var Y,se;typeof(u==null?void 0:u.current_index)<"u"&&((Y=u.timeline[u.current_index])!=null&&Y.active)?a==null||a.deleteAtIndex(u.current_index):(se=e.onEnter)==null||se.call(e,void 0)},showStop:typeof(u==null?void 0:u.current_index)<"u"&&((Qe=u.timeline[u.current_index])==null?void 0:Qe.active)||!1})]})});function Qk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t=0||(p[u]=o[u]);return p}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vfe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function fF(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Sg(e);if(t){var i=Sg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return vfe(this,n)}}function yo(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var a,o,s=[],u=!0,c=!1;try{for(i=i.call(n);!(u=(a=i.next()).done)&&(s.push(a.value),!r||s.length!==r);u=!0);}catch(p){c=!0,o=p}finally{try{u||i.return==null||i.return()}finally{if(c)throw o}}return s}}(e,t)||E7(e,t)||function(){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 Yb(e){return function(t){if(Array.isArray(t))return Xb(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||E7(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function E7(e,t){if(e){if(typeof e=="string")return Xb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xb(e,t):void 0}}function Xb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var fa={DEBUG:!1,LIB_VERSION:"1.75.2"};/** +`,QI=ut.forwardRef((e,t)=>{var Te,Le,ze,Ye,jt,ue,Ee,qe;const n=zt(j=>j.serverState.meilisearchUrl||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const j=new G0e({host:n});i(j)},[n]);const a=C.useContext(to),o=eo(),s=zt(j=>j.config.workspacePaths);zt(j=>j.sessionState.history);const[u,c]=ut.useState([]),[p,f]=ut.useState(0),[m,g]=ut.useState([]),b=ut.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Te=b.current)==null?void 0:Te.scrollHeight,(Le=b.current)==null?void 0:Le.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[y,T]=C.useState(!1),[E,v]=C.useState(void 0),[w,A]=C.useState(void 0),R=zt(j=>{var me;return((me=j.serverState.slashCommands)==null?void 0:me.map(Ve=>({name:`/${Ve.name}`,description:Ve.description})))||[]}),k=zt(j=>typeof e.index<"u"?j.sessionState.contextItemsAtIndex[e.index]||[]:j.sessionState.context_items||[]),N=zt(j=>j.sessionState.history),B=zt(j=>j.sessionState.active);C.useEffect(()=>{y||(v(void 0),A(void 0))},[y]);const q=zt(j=>j.serverState.contextProviders),P=()=>{T(!1),v(void 0),A(void 0),H.setInputValue("@")};C.useEffect(()=>{E||g((q==null?void 0:q.map(j=>({name:j.display_title,description:j.description,id:j.title})).sort((j,me)=>j.id==="file"?-1:1))||[])},[E]);const[Q,$]=C.useState(""),oe=C.useCallback(async(j,me)=>{const Ve=await(a==null?void 0:a.getContextItem(j,me));e.isMainInput?o(TP(Ve)):typeof e.index<"u"&&o(SP({item:Ve,index:e.index}))},[a,e.index]),fe=C.useCallback(({inputValue:j,highlightedIndex:me})=>{var Ve;if(!j){g([]),v(void 0),T(!1);return}if(Q===""&&(q!=null&&q.some(ge=>ge.display_title===j))){H.setInputValue(""),$("");return}if($(j),w&&!j.startsWith(`@${w.title}`)&&A(void 0),(Ve=e.onInputValueChange)==null||Ve.call(e,j),j.endsWith("@")||y){const ge=(j==null?void 0:j.split("@"))||[];if(ge.length>1){T(!0);const G=ge[ge.length-1]||"";if(E&&!j.endsWith("@")){const K=G.split(" ");ce(E.title,K.length>1?K[1]:"").then(ne=>{g(ne)})}else{const K=(q==null?void 0:q.filter(ne=>`@${ne.title}`.toLowerCase().startsWith(j.toLowerCase())||`@${ne.display_title}`.toLowerCase().startsWith(j.toLowerCase())).map(ne=>({name:ne.display_title,description:ne.description,id:ne.title})).sort((ne,ve)=>ne.id==="file"?-1:1))||[];g(K),T(!0)}return}else T(!1),v(void 0)}v(void 0),g((R==null?void 0:R.filter(ge=>{const G=ge.name.toLowerCase(),K=j.toLowerCase();return G.startsWith(K)&&G!==K}))||[]),(j.startsWith("/")||j.startsWith("@"))&&o(Ad(null))},[R,y,E,w]),ce=async(j,me)=>{const Ve=s&&s.length>0?`workspace_dir IN [ ${s.map(ge=>`"${ge}"`).join(", ")} ] AND provider_name = '${j}'`:void 0;try{const ge=await(r==null?void 0:r.index(J0e).search(me,{filter:Ve}));return(ge==null?void 0:ge.hits.map(G=>({name:G.name,description:G.description,id:G.id,content:G.content})))||[]}catch(ge){return console.log("Error searching context items",ge),[]}},{getInputProps:De,...H}=YF({onInputValueChange:fe,items:m,itemToString(j){return j?j.name:""}});C.useEffect(()=>{H.highlightedIndex<0&&H.setHighlightedIndex(0)},[H.inputValue]);const W=ut.useRef(null),se=ut.useRef(null),D=()=>{var j;return(((j=W.current)==null?void 0:j.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>RP};C.useImperativeHandle(t,()=>H,[H]);const pe=ut.useRef(null),le=C.useCallback(()=>{var ge;if(ye(!0),!pe.current)return;const j=pe.current.querySelectorAll(`.pill-button-${e.index||"main"}`),me=Array.from(j),Ve=me.findIndex(G=>G===document.activeElement);if(Ve===me.length-1)(ge=b.current)==null||ge.focus();else if(Ve!==-1){const G=me[(Ve+1)%me.length];G==null||G.focus()}else{const G=me[0];G==null||G.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const j=me=>{me.key==="Tab"&&(me.preventDefault(),le())};return b.current.addEventListener("keydown",j),()=>{var me;(me=b.current)==null||me.removeEventListener("keydown",j)}}},[b.current]),C.useEffect(()=>{e.value&&H.setInputValue(e.value)},[e.value,H.setInputValue]);const[L,ie]=C.useState(!1);C.useLayoutEffect(()=>{se.current&&H.setHighlightedIndex(0)},[m,H.setHighlightedIndex,se.current]);const[Se,X]=C.useState(!1),[ke,te]=C.useState(!1);C.useEffect(()=>{const j=Ve=>{Ve.key==="Meta"&&X(!0)},me=Ve=>{Ve.key==="Meta"&&X(!1)};return window.addEventListener("keydown",j),window.addEventListener("keyup",me),()=>{window.removeEventListener("keydown",j),window.removeEventListener("keyup",me)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const j=me=>{var Ve;me.data.type==="focusContinueInput"?(b.current.focus(),o(Ad(null))):me.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(Ve=b.current)!=null&&Ve.value.startsWith("/edit")||H.setInputValue("/edit "),o(Ad(null))):me.data.type==="focusContinueInputWithNewSession"&&(a==null||a.stopSession(),o(uc()),o(Ad(null)))};return window.addEventListener("message",j),()=>{window.removeEventListener("message",j)}},[b.current,e.isMainInput]);const Me=ut.useRef(null),Re=C.useCallback(j=>{const me=m[H.highlightedIndex],Ve=me==null?void 0:me.name,ge=q.find(G=>G.display_title===Ve);if(ge){if(ge.dynamic&&ge.requires_query){A(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}else if(ge.dynamic){if(!me.id)return;const G=H.inputValue.split("@"),K=G[G.length-1];if(oe(me.id,K),H.inputValue.includes("@")){const ne=q.find(ve=>ve.title===me.id);!E&&!(ne!=null&&ne.dynamic)?(H.setInputValue(`@${me.id} `),v(ne)):H.setInputValue("")}H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}}else{if(E&&me.id){oe(me.id,""),H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}v(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault(),ce(ge.title,"").then(G=>g(G))},[m,H.highlightedIndex,q,E,H.inputValue,oe]),[Ze,We]=C.useState(!1),[dt,ot]=C.useState(!1),[je,pt]=C.useState(void 0),[U,re]=C.useState(void 0),de=ut.useRef(null),[xe,ye]=C.useState(!1);return C.useEffect(()=>{ke||ye(!1)},[ke]),I.jsxs("div",{ref:de,style:{paddingTop:"4px",backgroundColor:Ht},children:[k.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",paddingTop:pr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var j;H.setInputValue("@"),(j=b.current)==null||j.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Ye=H.inputValue)==null?void 0:Ye.startsWith("/edit"))||ke&&Se&&((jt=H.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||k.length>0&&xe?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:pe,style:{backgroundColor:Ht},children:[k.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:j=>{ot(me=>!me)},id:"toggle-context-div",children:dt?I.jsx(gZ,{width:"14px",height:"14px",color:Et}):I.jsx(yZ,{width:"14px",height:"14px",color:Et})}),I.jsx(nhe,{className:k.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var j;o(w4({ids:k.map(me=>me.description.id),index:e.index})),(j=b.current)==null||j.focus(),pt(void 0),re(void 0)},onKeyDown:j=>{var me;j.key==="Backspace"&&(o(w4({ids:k.map(Ve=>Ve.description.id),index:e.index})),(me=b.current)==null||me.focus(),pt(void 0),re(void 0))},children:I.jsx(kL,{width:"1.4em",height:"1.4em"})}),k.map((j,me)=>{var Ve,ge,G,K;return I.jsx(A0e,{inputIndex:e.index,areMultipleItems:k.length>1,item:j,editing:j.editing&&((ge=(Ve=b.current)==null?void 0:Ve.value)==null?void 0:ge.startsWith("/edit")),editingAny:(K=(G=b.current)==null?void 0:G.value)==null?void 0:K.startsWith("/edit"),stepIndex:e.index,index:me,onDelete:()=>{var ne;o(w4({ids:[j.description.id],index:e.index})),(ne=b.current)==null||ne.focus(),(j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name||j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name)&&(pt(void 0),re(void 0))},onClick:ne=>{j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name?re(void 0):re(j)},onBlur:()=>{re(void 0)},toggleViewContent:()=>{pt(ne=>{if(!ne)return j;if(!(ne.description.id.item_id===j.description.id.item_id&&ne.description.id.provider_name===j.description.id.provider_name))return j})},previewing:j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name,focusing:j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name,prefixInputWithEdit:ne=>{var ve,Qe,Fe;!ne&&((ve=b.current)!=null&&ve.value.startsWith("/edit"))&&H.setInputValue((Qe=b.current)==null?void 0:Qe.value.replace("/edit ","")),!H.inputValue.startsWith("/edit")&&(H.setInputValue(`/edit ${H.inputValue}`),(Fe=b.current)==null||Fe.focus())}},`${j.description.id.item_id}${me}`)})]}):k.length>0&&I.jsxs("div",{onClick:()=>{var j;(j=b.current)==null||j.focus(),ye(!0)},style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",cursor:"default",paddingTop:pr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",k.length," ","context item",k.length===1?"":"s"]}),je&&I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(je.description.description)} +${je.content} +\`\`\``,maxHeight:200})}),dt&&I.jsx("div",{children:k.map(j=>I.jsxs(rhe,{children:[I.jsxs(ihe,{children:[I.jsx(Ey,{height:"20px",width:"20px",filename:j.description.name}),j.description.name]}),I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(j.description.description)} +${j.content} +\`\`\``,maxHeight:200})})]}))}),I.jsxs("div",{className:"flex px-2 relative",style:{backgroundColor:Ht},ref:W,children:[I.jsxs(the,{loading:e.active||!1,isFirst:!1,isLast:!1,borderColor:e.active?void 0:Ht,borderRadius:It,children:[I.jsx(ahe,{onClick:()=>{var j;(j=b.current)==null||j.focus()},onMouseEnter:()=>ie(!0),onMouseLeave:j=>{var me;j.relatedTarget===Me.current||j.relatedTarget instanceof Node&&((me=Me.current)!=null&&me.contains(j.relatedTarget))||ie(!1)},rows:e.isMainInput?void 0:1,inQueryForDynamicProvider:typeof w<"u",fontSize:pr(),disabled:e.disabled,placeholder:"Ask a question, '/' for slash commands, '@' to add context",...De({onCompositionStart:()=>We(!0),onCompositionEnd:()=>We(!1),onChange:j=>{},onFocus:j=>{te(!0),o(pu(void 0))},onBlur:j=>{var me,Ve;(me=de.current)!=null&&me.contains(j.relatedTarget)||(Ve=document.getElementById("toggle-context-div"))!=null&&Ve.contains(j.relatedTarget)||te(!1)},onKeyDown:j=>{var me,Ve;if(o(pu(void 0)),j.key==="Enter"&&j.shiftKey)j.nativeEvent.preventDownshiftDefault=!0,T(!1);else if(j.key==="Enter"&&(!H.isOpen||m.length===0)&&!Ze){const ge=H.inputValue;if(w){const G=ge.split("@");oe(w.title,G[G.length-1]),T(!1),H.setInputValue("");return}else ge!==""&&(f(u.length+1),c([...u,ge])),j.nativeEvent.preventDownshiftDefault=!0,e.onEnter&&e.onEnter(j,ge);T(!1)}else if(j.key==="Enter"&&y)Re(j);else if(j.key==="Tab"&&H.isOpen&&m.length>0&&((me=m[H.highlightedIndex])!=null&&me.name.startsWith("/")))H.setInputValue(m[0].name),j.preventDefault();else if(j.key==="Tab")j.nativeEvent.preventDownshiftDefault=!0;else{if((j.key==="ArrowUp"||j.key==="ArrowDown")&&m.length>0)return;if(j.key==="ArrowUp"){if(p==0||j.currentTarget.selectionStart!==0){j.nativeEvent.preventDownshiftDefault=!0;return}else p==u.length&&(u.length===0||u[u.length-1]!==j.currentTarget.value)&&c([...u,j.currentTarget.value]);H.setInputValue(u[p-1]),f(ge=>ge-1),T(!1)}else if(j.key==="ArrowDown"){if(p===u.length||j.currentTarget.selectionStart!==j.currentTarget.value.length){j.nativeEvent.preventDownshiftDefault=!0;return}pMath.min(ge+1,u.length)),T(!1)}else if(j.key==="Escape"){if(E){P(),j.nativeEvent.preventDownshiftDefault=!0;return}else if(w){P(),j.nativeEvent.preventDownshiftDefault=!0;return}T(!1),H.isOpen&&m.length>0?(H.closeMenu(),j.nativeEvent.preventDownshiftDefault=!0):(j.nativeEvent.preventDownshiftDefault=!0,(Ve=b.current)==null||Ve.blur(),qa("focusEditor",{}))}else j.key==="Home"||j.key==="End"?j.nativeEvent.preventDownshiftDefault=!0:localStorage.getItem("ide")==="jetbrains"&&(Km()==="mac"?Z0e(j,H.inputValue,H.setInputValue):Q0e(j,H.inputValue,H.setInputValue))}},onClick:()=>{o(pu(void 0))},ref:b})}),e.isMainInput||I.jsx(ohe,{ref:Me,children:L&&I.jsx("div",{className:"flex",children:I.jsxs(I.Fragment,{children:[N.filter((j,me)=>{var Ve;return((Ve=e.groupIndices)==null?void 0:Ve.includes(me))&&j.logs}).some(j=>j.logs.length>0)&&I.jsx(zi,{onClick:j=>{if(j.stopPropagation(),e.groupIndices){const me=`This is the exact prompt sent to the LLM: + +`+N.filter((Ve,ge)=>{var G;return(G=e.groupIndices)==null?void 0:G.includes(ge)}).flatMap(Ve=>Ve.logs||[]).join(` +`);qa("showVirtualFile",{name:"inspect_prompt.md",content:me})}},text:"Inspect Prompt",children:I.jsx(iZ,{width:"1.3em",height:"1.3em"})}),I.jsx(zi,{onClick:j=>{var me;j.stopPropagation(),e.active&&e.groupIndices?a==null||a.stopSession():(me=e.onDelete)==null||me.call(e)},text:e.active?`Stop (${zX()}⌫)`:"Delete",children:e.active?null:I.jsx(w9,{width:"1.4em",height:"1.4em"})})]})})})]}),w&&I.jsxs(she,{children:["Enter ",w.display_title," Query"]}),I.jsxs(lhe,{...H.getMenuProps({ref:se}),isMainInput:e.isMainInput,showAbove:D(),ulHeightPixels:((ue=se.current)==null?void 0:ue.getBoundingClientRect().height)||0,hidden:!H.isOpen||m.length===0||((Ee=b.current)==null?void 0:Ee.value)==="",fontSize:pr(),children:[E&&I.jsxs("div",{style:{backgroundColor:Vt,borderBottom:`0.5px solid ${Et}`,display:"flex",gap:"4px",position:"sticky",top:"0px"},className:"py-2 px-4 my-0",children:[I.jsx(mc,{width:"1.4em",height:"1.4em",className:"cursor-pointer",onClick:j=>{var me;P(),(me=b.current)==null||me.focus()}}),E.display_title," -"," ",E.description]}),H.isOpen&&m.map((j,me)=>I.jsxs(ZI,{style:{borderTop:me===0?"none":`0.5px solid ${Et}`},...H.getItemProps({item:j,index:me}),highlighted:H.highlightedIndex===me,selected:H.selectedItem===j,onClick:Ve=>{var ge;Re(Ve),Ve.stopPropagation(),Ve.preventDefault(),(ge=b.current)==null||ge.focus()},children:[I.jsxs("span",{className:"flex justify-between w-full items-center",children:[I.jsxs("div",{className:"flex items-center justify-center",children:[E&&I.jsx(Ey,{height:"20px",width:"20px",filename:j.name}),j.name," "]}),I.jsx("span",{style:{color:Et,float:"right",textAlign:"right"},children:j.description})]}),(q==null?void 0:q.filter(Ve=>!Ve.dynamic||Ve.requires_query).find(Ve=>Ve.title===j.id))&&I.jsx(tZ,{width:"1.2em",height:"1.2em",color:Et,className:"ml-2 flex-shrink-0"})]},`${j.name}${me}`)),H.isOpen&&m.length===0&&I.jsx(ZI,{highlighted:!1,selected:!1,isLastItem:!1,children:I.jsx("span",{style:{color:Et,float:"right",textAlign:"right",display:"flex",width:"100%",cursor:"default"},children:"No items found"})},"empty-items-li")]})]}),e.isMainInput&&I.jsx(xP,{disabled:!B&&(!((qe=b.current)!=null&&qe.value)||typeof a>"u"),onClick:()=>{var j;B?(a==null||a.stopSession(),o(Zd(!1))):(j=e.onEnter)==null||j.call(e,void 0)},showStop:B})]})});function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t=0||(p[u]=o[u]);return p}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function che(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function OP(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Xg(e);if(t){var i=Xg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return che(this,n)}}function Co(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var a,o,s=[],u=!0,c=!1;try{for(i=i.call(n);!(u=(a=i.next()).done)&&(s.push(a.value),!r||s.length!==r);u=!0);}catch(p){c=!0,o=p}finally{try{u||i.return==null||i.return()}finally{if(c)throw o}}return s}}(e,t)||lT(e,t)||function(){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 xy(e){return function(t){if(Array.isArray(t))return Iy(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||lT(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function lT(e,t){if(e){if(typeof e=="string")return Iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iy(e,t):void 0}}function Iy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var ma={DEBUG:!1,LIB_VERSION:"1.75.2"};/** * uuidv7: An experimental implementation of the proposed UUID Version 7 * * @license Apache-2.0 @@ -621,17 +624,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * @packageDocumentation * * from https://github.com/LiosK/uuidv7/blob/e501462ea3d23241de13192ceae726956f9b3b7d/src/index.ts - */Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e});var eI="0123456789abcdef",yfe=function(){function e(t){if(Bn(this,e),this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}return Un(e,[{key:"toString",value:function(){for(var t="",n=0;n>>4)+eI.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(t){return this.compareTo(t)===0}},{key:"compareTo",value:function(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var a=new Uint8Array(16);return a[0]=t/Math.pow(2,40),a[1]=t/Math.pow(2,32),a[2]=t/Math.pow(2,24),a[3]=t/Math.pow(2,16),a[4]=t/Math.pow(2,8),a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}}]),e}(),_fe=function(){function e(){Bn(this,e),ct(this,"timestamp",0),ct(this,"counter",0),ct(this,"random",new Tfe)}return Un(e,[{key:"generate",value:function(){var t=this.generateOrAbort();if(t!==void 0)return t;this.timestamp=0;var n=this.generateOrAbort();if(n===void 0)throw new Error("Could not generate UUID after timestamp reset");return n}},{key:"generateOrAbort",value:function(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return yfe.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),hF=function(e){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t=this.buffer.length&&(hF(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),Sfe=function(){return(tI||(tI=new _fe)).generate()},gF=Array.prototype,mF=Object.prototype,v7=mF.toString,wfe=mF.hasOwnProperty,ht=typeof window<"u"?window:{},Wl=ht.navigator||{userAgent:""},Hn=ht.document||{},ra=Wl.userAgent,Afe=["localhost","127.0.0.1"],nI=gF.forEach,rI=gF.indexOf,Cfe=Array.isArray,y7={},kn={log:function(){if(fa.DEBUG&&!Ua(window.console)&&window.console){for(var e=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r0&&(t[r]=n)}),t},kfe=["$performance_raw"];function Ife(e,t){return n=e,r=function(a,o){return o&&kfe.indexOf(o)>-1?a:typeof a=="string"&&t!==null?a.slice(0,t):a},i=new Set,function a(o,s){return o!==Object(o)?r?r(o,s):o:i.has(o)?void 0:(i.add(o),Wo(o)?(u=[],Zo(o,function(c){u.push(a(c))})):(u={},fn(o,function(c,p){i.has(c)||(u[p]=a(c,p))})),u);var u}(n);var n,r,i}function _7(e){var t,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",p=[];if(!e)return e;e=Rfe(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,p[u++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s>>4)+tR.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(t){return this.compareTo(t)===0}},{key:"compareTo",value:function(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var a=new Uint8Array(16);return a[0]=t/Math.pow(2,40),a[1]=t/Math.pow(2,32),a[2]=t/Math.pow(2,24),a[3]=t/Math.pow(2,16),a[4]=t/Math.pow(2,8),a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}}]),e}(),phe=function(){function e(){Un(this,e),ct(this,"timestamp",0),ct(this,"counter",0),ct(this,"random",new fhe)}return $n(e,[{key:"generate",value:function(){var t=this.generateOrAbort();if(t!==void 0)return t;this.timestamp=0;var n=this.generateOrAbort();if(n===void 0)throw new Error("Could not generate UUID after timestamp reset");return n}},{key:"generateOrAbort",value:function(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return dhe.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),DP=function(e){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t=this.buffer.length&&(DP(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),hhe=function(){return(nR||(nR=new phe)).generate()},LP=Array.prototype,MP=Object.prototype,uT=MP.toString,ghe=MP.hasOwnProperty,ht=typeof window<"u"?window:{},Ql=ht.navigator||{userAgent:""},jn=ht.document||{},aa=Ql.userAgent,mhe=["localhost","127.0.0.1"],rR=LP.forEach,iR=LP.indexOf,bhe=Array.isArray,cT={},In={log:function(){if(ma.DEBUG&&!ja(window.console)&&window.console){for(var e=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r0&&(t[r]=n)}),t},Ehe=["$performance_raw"];function vhe(e,t){return n=e,r=function(a,o){return o&&Ehe.indexOf(o)>-1?a:typeof a=="string"&&t!==null?a.slice(0,t):a},i=new Set,function a(o,s){return o!==Object(o)?r?r(o,s):o:i.has(o)?void 0:(i.add(o),es(o)?(u=[],as(o,function(c){u.push(a(c))})):(u={},hn(o,function(c,p){i.has(c)||(u[p]=a(c,p))})),u);var u}(n);var n,r,i}function dT(e){var t,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",p=[];if(!e)return e;e=_he(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,p[u++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},iI=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=ra,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return Sfe().toString()}},Nfe=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},aI=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{kn.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},oI=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Fd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;bF(p)&&(m=p(f));var E=c.call(u,f);return m!==!1&&E!==!1||(g=!1),g}}}(t,r,s)}else kn.error("No valid element provided to register_event")}}();function T7(e,t){var n=function(){var r=Hn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=Hn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):Hn.body.appendChild(r)};Hn.body?n():Hn.addEventListener("DOMContentLoaded",n)}var yr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return fn(t,function(r){var i=aI(Hn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=Hn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=yr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=aI(Hn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||pn(e," OPR/")?pn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":pn(e,"IEMobile")||pn(e,"WPDesktop")?"Internet Explorer Mobile":pn(e,"SamsungBrowser/")?"Samsung Internet":pn(e,"Edge")||pn(e,"Edg/")?"Microsoft Edge":pn(e,"FBIOS")?"Facebook Mobile":pn(e,"Chrome")?"Chrome":pn(e,"CriOS")?"Chrome iOS":pn(e,"UCWEB")||pn(e,"UCBrowser")?"UC Browser":pn(e,"FxiOS")?"Firefox iOS":pn(t,"Apple")?pn(e,"Mobile")?"Mobile Safari":"Safari":pn(e,"Android")?"Android Mobile":pn(e,"Konqueror")?"Konqueror":pn(e,"Firefox")?"Firefox":pn(e,"MSIE")||pn(e,"Trident/")?"Internet Explorer":pn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[yr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Wl.language||Wl.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return Hn.referrer||"$direct"},referringDomain:function(){if(!Hn.referrer)return"$direct";var e=Hn.createElement("a");return e.href=Hn.referrer,e.host},properties:function(){var e=yr.os(ra),t=e.os_name,n=e.os_version;return Pr(Jb({$os:t,$os_version:n,$browser:yr.browser(ra,Wl.vendor,ht.opera),$device:yr.device(ra),$device_type:yr.deviceType(ra)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:yr.browserVersion(ra,Wl.vendor,ht.opera),$browser_language:yr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:fa.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:vF()/1e3})},people_properties:function(){var e=yr.os(ra),t=e.os_name,n=e.os_version;return Pr(Jb({$os:t,$os_version:n,$browser:yr.browser(ra,Wl.vendor,ht.opera)}),{$browser_version:yr.browserVersion(ra,Wl.vendor,ht.opera)})}};function wg(e){switch(ol(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Ag(e){var t="";return Eh(e)&&!TF(e)&&e.childNodes&&e.childNodes.length&&fn(e.childNodes,function(n){_F(n)&&n.textContent&&(t+=Zb(n.textContent).split(/(\s+)/).filter(S1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Zb(t)}function sI(e){return!!e&&e.nodeType===1}function ou(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function _F(e){return!!e&&e.nodeType===3}function lI(e){return!!e&&e.nodeType===11}var Q3=["a","button","form","input","select","textarea","label"];function Eh(e){for(var t=e;t.parentNode&&!ou(t,"body");t=t.parentNode){var n=wg(t).split(" ");if(pn(n,"ph-sensitive")||pn(n,"ph-no-capture"))return!1}if(pn(wg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function TF(e){return!!(ou(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||ou(e,"select")||ou(e,"textarea")||e.getAttribute("contenteditable")==="true")}function S1(e){return!(e===null||Ua(e)||typeof e=="string"&&(e=Zb(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function uI(e){var t=Ag(e);return S1(t="".concat(t," ").concat(SF(e)).trim())?t:""}function SF(e){var t="";return e&&e.childNodes&&e.childNodes.length&&fn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Ag(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(SF(n)).trim())}catch(a){console.error(a)}}),t}var Ofe=function(){function e(t){Bn(this,e),this.clicks=[],this.enabled=t}return Un(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),Dfe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,po={is_supported:function(){return!0},error:function(e){kn.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=uI(e):i.$el_text=Ag(e));var a=wg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),fn(e.attributes,function(c){var p;TF(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&S1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return fn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),S1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return fn(this._customProperties,function(r){fn(r.event_selectors,function(i){fn(document.querySelectorAll(i),function(a){pn(e,a)&&Eh(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if(_F(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,E){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||ou(g,"html")||!sI(g))return!1;if(b!=null&&b.url_allowlist){var T=window.location.href,v=b.url_allowlist;if(v&&!v.some(function(z){return T.match(z)}))return!1}if(b!=null&&b.dom_event_allowlist){var y=b.dom_event_allowlist;if(y&&!y.some(function(z){return E.type===z}))return!1}if(b!=null&&b.element_allowlist){var w=b.element_allowlist;if(w&&!w.some(function(z){return g.tagName.toLowerCase()===z}))return!1}if(b!=null&&b.css_selector_allowlist){var A=b.css_selector_allowlist;if(A&&!A.some(function(z){return g.matches(z)}))return!1}for(var D=!1,k=[g],R=!0,B=g;B.parentNode&&!ou(B,"body");)if(lI(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(R=B.parentNode||!1))break;if(Q3.indexOf(R.tagName.toLowerCase())>-1)D=!0;else{var W=window.getComputedStyle(R);W&&W.getPropertyValue("cursor")==="pointer"&&(D=!0)}k.push(R),B=R}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&E.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return E.type==="submit";case"input":case"select":case"textarea":return E.type==="change"||E.type==="click";default:return D?E.type==="click":E.type==="click"&&(Q3.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!ou(s,"body");)lI(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(fn(o,function(g){var E=Eh(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=E&&S1(u)&&u),pn(wg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var b=r._getAugmentPropertiesFromElement(g);Pr(p,b)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=uI(a):c[0].$el_text=Ag(a)),u&&(c[0].attr__href=u),f)return!1;var m=Pr(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Fd(document,"submit",n,!1,!0),Fd(document,"change",n,!1,!0),Fd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new Ofe(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?kn.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},cI,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=Ua(t)?10:t,n=Ua(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Cg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Cg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(r9);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},r9,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(A1)||{};this.instance.register(ct({},A1,yt(yt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(A1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Ps)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=yt(yt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Ps,yt(yt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Ps)||{};this.instance.register(ct({},Ps,yt(yt({},n),{},ct({},t,{}))))}else this.instance.unregister(Ps)}}]),e}(),Bfe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",mI=2,Ufe=4,AF=3,$fe=6,zfe=0,Hfe=5e6,jfe="rrweb/console@1",oo,Gfe=Un(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bn(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,E;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(E=o.adds)===null||E===void 0?void 0:E.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==AF||o.data.source!==zfe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,E=yo(i.getNodeOrRelevantParent(p.id),2),b=E[0],T=E[1];return i.mutationBuckets[b]===0?!1:(i.mutationBuckets[b]=(f=i.mutationBuckets[b])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[b]=Math.max(i.mutationBuckets[b]-1,0),i.mutationBuckets[b]===0&&(i.loggedTracker[b]||(i.loggedTracker[b]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,b,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Vfe="/s/",CF="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(oo||(oo={}));var Wfe=[oo.MouseMove,oo.MouseInteraction,oo.Scroll,oo.ViewportResize,oo.Input,oo.TouchMove,oo.MediaInteraction,oo.Drag],qfe=function(){function e(t){var n=this;Bn(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Vfe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return Un(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(t9),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(dI),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(pI);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},t9,!!t.sessionRecording),ct(o,dI,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,pI,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:vF()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?T7(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(fa.LIB_VERSION),function(r){if(r)return kn.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===AF&&Wfe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[mI,Ufe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return kn.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aHfe){var c,p=as(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Bfe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&ol(u)==="object"&&u.type===$fe&&ol(u.data)==="object"&&u.data.plugin===jfe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:CF,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===mI}})}}]),e}(),no={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Kfe=["first-input","navigation","paint","resource"],Yfe=["/s/","/e/"],Xfe=function(){function e(t){Bn(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return Un(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!Afe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Kfe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else kn.log("PostHog Peformance observer not started because we are on localhost.");else kn.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if(Yfe.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[no.timeOrigin]=s,o[no.timestamp]=Math.floor(s+t.startTime),no)a[u]!==void 0&&(o[no[u]]=a[u]);if(this.capturePerformanceEvent(o),Zfe(t)){var c,p=as(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},no.timeOrigin,s),ct(f,no.timestamp,Math.floor(s+t.startTime)),ct(f,no.name,m.name),ct(f,no.duration,m.duration),ct(f,no.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[no.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Zfe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},Qfe=function(){function e(t){Bn(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return Un(e,[{key:"call",value:function(){var t=this,n=_7(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(A1),group_properties:this.instance.get_property(Ps),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),zs.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=as(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=as(t.siteApps);try{var m=function(){var g=c.value,E=g.id,b=g.url,T=[p,p[p.length-1]==="/"&&b[0]==="/"?b.substring(1):b].join("");window["__$$ph_site_app_".concat(E)]=a.instance,T7(T,function(v){v&&console.error("Error while initializing PostHog app with config id ".concat(E),v)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Jfe=["https://app.posthog.com","https://eu.posthog.com"],e0e=["source"],t0e=function(){function e(t){Bn(this,e),this.instance=t}return Un(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(yt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=oI(t.hash,"__posthog")||oI(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Jfe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=yt(yt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=Efe(s,e0e);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),T7(a,function(c){c?kn.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Fd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),n0e="__ph_opt_in_out_";function r0e(e,t){kF(!0,e,t)}function i0e(e,t){kF(!1,e,t)}function a0e(e,t){return xF(e,t)==="1"}function bI(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return fn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){pn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||xF(e,t)==="0"}function o0e(e,t){S7(t=t||{}).remove(w7(e,t),!!t.crossSubdomainCookie)}function S7(e){return(e=e||{}).persistenceType==="localStorage"?qn:e.persistenceType==="localStorage+cookie"?e9:po}function w7(e,t){return((t=t||{}).persistencePrefix||n0e)+e}function xF(e,t){return S7(t).get(w7(e,t))}function kF(e,t,n){EF(t)&&t.length?(S7(n=n||{}).set(w7(t,n),e?1:0,xfe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var IF=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Bn(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return Un(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),s0e=function(e){pF(n,IF);var t=fF(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Bn(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return Un(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;fn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(Yb(a.filter(function(o){return o.url.indexOf("/e")===0})),Yb(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,yt(yt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return fn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),l0e=function(){function e(t){Bn(this,e),this.enabled=t,this.metrics={}}return Un(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Pi=Uint8Array,Jr=Uint16Array,ec=Uint32Array,A7=new Pi([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),C7=new Pi([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),EI=new Pi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),RF=function(e,t){for(var n=new Jr(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Tn)<<1;zl=(61680&(zl=(52428&zl)>>>2|(13107&zl)<<2))>>>4|(3855&zl)<<4,l9[Tn]=((65280&zl)>>>8|(255&zl)<<8)>>>1}var Pd=function(e,t,n){for(var r=e.length,i=0,a=new Jr(t);i>>u]=c}else for(o=new Jr(r),i=0;i>>15-e[i];return o},bu=new Pi(288);for(Tn=0;Tn<144;++Tn)bu[Tn]=8;for(Tn=144;Tn<256;++Tn)bu[Tn]=9;for(Tn=256;Tn<280;++Tn)bu[Tn]=7;for(Tn=280;Tn<288;++Tn)bu[Tn]=8;var xg=new Pi(32);for(Tn=0;Tn<32;++Tn)xg[Tn]=5;var Yl,c0e=Pd(bu,9,0),d0e=Pd(xg,5,0),OF=function(e){return(e/8>>0)+(7&e&&1)},DF=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof Jr?Jr:e instanceof ec?ec:Pi)(n-t);return r.set(e.subarray(t,n)),r},$o=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},Jc=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},t4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new Jr(m+1),E=p0e(n[p-1],g,0);if(E>t){r=0;var b=0,T=E-t,v=1<t))break;b+=v-(1<>>=T;b>0;){var w=a[r].s;g[w]=0&&b;--r){var A=a[r].s;g[A]==t&&(--g[A],++b)}E=t}return[new Pi(g),E]},p0e=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},yI=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Jr(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},ed=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[EI[z-1]];--z);var le,he,de,fe,Z=c+5<<3,V=ed(i,bu)+ed(a,xg)+o,ce=ed(i,m)+ed(a,b)+o+14+3*z+ed(R,P)+(2*R[16]+3*R[17]+7*R[18]);if(Z<=V&&Z<=ce)return yh(t,p,e.subarray(u,u+c));if($o(t,p,1+(ce15&&($o(t,p,O[B]>>>5&127),p+=O[B]>>>12)}}}else le=c0e,he=bu,de=d0e,fe=xg;for(B=0;B255){re=r[B]>>>18&31,Jc(t,p,le[re+257]),p+=he[re+257],re>7&&($o(t,p,r[B]>>>23&31),p+=A7[re]);var Te=31&r[B];Jc(t,p,de[Te]),p+=fe[Te],Te>3&&(Jc(t,p,r[B]>>>5&8191),p+=C7[Te])}else Jc(t,p,le[r[B]]),p+=he[r[B]];return Jc(t,p,le[256]),p+he[256]},f0e=new ec([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),h0e=new Pi(0),g0e=function(){for(var e=new ec(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),m0e=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},b0e=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Pi(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),E=0;if(!o||f<8)for(var b=0;b<=f;b+=65535){var T=b+65535;T>>13,w=8191&v,A=(1<7e3||de>24576)&&me>423){E=_I(a,g,0,P,Q,z,he,de,Z,b-Z,E),de=le=he=0,Z=b;for(var oe=0;oe<286;++oe)Q[oe]=0;for(oe=0;oe<30;++oe)z[oe]=0}var O=2,re=0,Te=w,K=ce-N&32767;if(me>2&&V==W(b-K))for(var xe=Math.min(y,me)-1,ne=Math.min(32767,b),Le=Math.min(258,me);K<=ne&&--Te&&ce!=N;){if(a[b+O]==a[b+O-K]){for(var Re=0;ReO){if(O=Re,re=K,Re>xe)break;var Xe=Math.min(K,Re-2),Ve=0;for(oe=0;oeVe&&(Ve=ot,N=dt)}}}K+=(ce=N)-(N=D[ce])+32768&32767}if(re){P[de++]=268435456|s9[O]<<18|vI[re];var Ge=31&s9[O],pt=31&vI[re];he+=A7[Ge]+C7[pt],++Q[257+Ge],++z[pt],fe=b+O,++le}else P[de++]=a[b],++Q[a[b]]}}E=_I(a,g,p,P,Q,z,he,de,Z,b-Z,E),p||(E=yh(g,E,h0e))}return DF(m,0,u+OF(E)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},u9=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},E0e=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&u9(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},v0e=function(e){return 10+(e.filename&&e.filename.length+1||0)};function y0e(e,t){t===void 0&&(t={});var n=m0e(),r=e.length;n.p(e);var i=b0e(e,t,v0e(t),8),a=i.length;return E0e(i,t),u9(i,a-8,n.d()),u9(i,a-4,r),i}function _0e(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Pi(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Pi(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return DF(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(Yl||(Yl={}));var T0e=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=fa.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=as(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return fn(c,function(E,b){p=encodeURIComponent(E.toString()),f=encodeURIComponent(b),g[g.length]=f+"="+p}),g.join(m)}(r)},x7=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},LF=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var E=x7(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),fn(r,function(b,T){g.setRequestHeader(T,b)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var b;try{b=JSON.parse(g.responseText)}catch(T){return void kn.error(T)}o(b)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(E)},S0e=18e5,w0e=function(e){pF(n,IF);var t=fF(n);function n(r,i,a){var o;return Bn(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return Un(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(S0e,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=as(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=as(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))fa.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,x7(s,yt(yt({},u),{},{sendBeacon:!0})))}catch(c){fa.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?fa.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):LF({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),z0=1800,TI=60,A0e=864e5,C0e=function(){function e(t,n,r){Bn(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||z0;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=z0):a>z0?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=yo(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>A0e,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),x0e=Un(function e(t,n,r,i){Bn(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],E={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(E.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",E),o})}}),k0e=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},I0e=function(){function e(t){Bn(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return Un(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function SI(e){return typeof Event<"u"&&MF(e,Event)}function MF(e,t){try{return e instanceof t}catch{return!1}}function wI(e){return e===null||ol(e)!=="object"&&typeof e!="function"}function _h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function n4(e){return _h(e,"DOMError")}var AI=/\(error: (.*)\)/,CI=50,Th="?";function r4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var R0e=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,N0e=/\((\S*)(?::(\d+))(?::(\d+))\)/,O0e=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,D0e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,L0e=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,M0e=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` -`),u=a;u1024)){var p=AI.test(c)?c.replace(AI,"$1"):c;if(!p.match(/\S*Error: /)){var f,m=as(r);try{for(m.s();!(f=m.n()).done;){var g=(0,f.value)(p);if(g){o.push(g);break}}}catch(E){m.e(E)}finally{m.f()}if(o.length>=CI)break}}}return function(E){if(!E.length)return[];var b=E.slice(0,CI);return b.reverse(),b.map(function(T){return yt(yt({},T),{},{filename:T.filename||b[b.length-1].filename,function:T.function||"?"})})}(o)}}).apply(void 0,[[30,function(e){var t=R0e.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){var n=N0e.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=yo(xI(t[1]||Th,t[2]),2),i=r[0];return r4(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=O0e.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=D0e.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||Th,a=yo(xI(i,r),2);return i=a[0],r4(r=a[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=L0e.exec(e);return t?r4(t[2],t[1]||Th,+t[3],t[4]?+t[4]:void 0):void 0}]]),xI=function(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Th,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},F0e=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,P0e=/Minified React error #\d+;/i;function B0e(e){var t=e.stacktrace||e.stack||"",n=function(r){if(r){if(typeof r.framesToPop=="number")return r.framesToPop;if(P0e.test(r.message))return 1}return 0}(e);try{return M0e(t,n)}catch{}return[]}function i4(e){var t=B0e(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function U0e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:40,n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:"".concat(i.slice(0,t),"...")}return""}function kI(e){var t=yo(e,5),n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s={};if(o===void 0&&typeof n=="string"){var u="Error",c=n,p=n.match(F0e);p&&(u=p[1],c=p[2]),s={$exception_type:u,$exception_message:c}}var f=o||n;if(n4(f)||function(b){return _h(b,"DOMException")}(f)){var m=f;if(function(b){return"stack"in b}(f))s=i4(f);else{var g=m.name||(n4(m)?"DOMError":"DOMException"),E=m.message?"".concat(g,": ").concat(m.message):g;s=function(b){return{$exception_type:"Error",$exception_message:b}}(E),s.$exception_type=n4(m)?"DOMError":"DOMException",s.$exception_message=s.$exception_message||E}"code"in m&&(s.$exception_DOMException_code="".concat(m.code))}else(function(b){return _h(b,"ErrorEvent")})(f)&&f.error?s=i4(f.error):function(b){switch(Object.prototype.toString.call(b)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return MF(b,Error)}}(f)?s=i4(f):function(b){return _h(b,"Object")}(f)||SI(f)?(s=function(b){return{$exception_type:SI(b)?b.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",U0e(b))}}(f),s.$exception_is_synthetic=!0):(s.$exception_type=s.$exception_type||"Error",s.$exception_message=s.$exception_message||f,s.$exception_is_synthetic=!0);return yt(yt(yt(yt({},s),{},{$exception_type:s.$exception_type||"UnknownErrorType",$exception_message:s.$exception_message||""},r?{$exception_source:r}:{}),i?{$exception_lineno:i}:{}),a?{$exception_colno:a}:{})}var II,RI,$0e=function(){function e(t){Bn(this,e),ct(this,"originalOnErrorHandler",void 0),ct(this,"originalOnUnhandledRejectionHandler",void 0),ct(this,"errorsToIgnore",[]),this.instance=t}return Un(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var t,n=arguments.length,r=new Array(n),i=0;i1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(i9);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.surveys;return n.instance.persistence.register(ct({},i9,o)),t(o)})}},{key:"getActiveMatchingSurveys",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(i){var a=i.filter(function(o){return!(!o.start_date||o.end_date)}).filter(function(o){var s,u;if(!o.conditions)return!0;var c=(s=o.conditions)===null||s===void 0||!s.url||window.location.href.indexOf(o.conditions.url)>-1,p=(u=o.conditions)===null||u===void 0||!u.selector||document.querySelector(o.conditions.selector);return c&&p}).filter(function(o){if(!o.linked_flag_key&&!o.targeting_flag_key)return!0;var s=!o.linked_flag_key||n.instance.featureFlags.isFeatureEnabled(o.linked_flag_key),u=!o.targeting_flag_key||n.instance.featureFlags.isFeatureEnabled(o.targeting_flag_key);return s&&u});return t(a)},r)}}]),e}(),H0e={"X-PostHog-Retry-After-Recordings":CF,"X-PostHog-Retry-After-Events":"events"},j0e=function(){function e(){Bn(this,e),ct(this,"limits",{})}return Un(e,[{key:"isRateLimited",value:function(t){var n=this.limits[t||"events"]||!1;return n!==!1&&new Date().getTime()1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,c={segmentRegister:!1,syncCode:!1},p=function(A){return function(){c[A]||(c[A]=!0,c.segmentRegister&&c.syncCode&&(s==null||s(i)))}};if(this.set_config(Pr({},NI(),a,{name:o,token:t,callback_fn:(o===pi?o:pi+"."+o)+"._jsc"})),this.uuidFn=iI(this.config.uuid_version||"og"),this._jsc=function(){},(ht!=null&&(n=ht.rrweb)!==null&&n!==void 0&&n.record||ht!=null&&ht.rrwebRecord)&&(this.__loaded_recorder_version=ht==null||(u=ht.rrweb)===null||u===void 0?void 0:u.version),this.persistence=new fI(this.config),this._captureMetrics=new l0e(this.get_config("_capture_metrics")),this._requestQueue=new s0e(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new w0e(this._captureMetrics,this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new C0e(this.config,this.persistence,this.uuidFn),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new fI(yt(yt({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(p("segmentRegister"))):p("segmentRegister")(),((r=a.bootstrap)===null||r===void 0?void 0:r.distinctID)!==void 0){var f,m,g=this.get_config("get_device_id")(this.uuidFn()),E=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?g:a.bootstrap.distinctID;this.persistence.set_user_state((m=a.bootstrap)!==null&&m!==void 0&&m.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:E})}if(this._hasBootstrappedFeatureFlags()){var b,T,v=Object.keys(((b=a.bootstrap)===null||b===void 0?void 0:b.featureFlags)||{}).filter(function(A){var D,k;return!((D=a.bootstrap)===null||D===void 0||(k=D.featureFlags)===null||k===void 0||!k[A])}).reduce(function(A,D){var k,R;return A[D]=((k=a.bootstrap)===null||k===void 0||(R=k.featureFlags)===null||R===void 0?void 0:R[D])||!1,A},{}),y=Object.keys(((T=a.bootstrap)===null||T===void 0?void 0:T.featureFlagPayloads)||{}).filter(function(A){return v[A]}).reduce(function(A,D){var k,R,B,W;return(k=a.bootstrap)!==null&&k!==void 0&&(R=k.featureFlagPayloads)!==null&&R!==void 0&&R[D]&&(A[D]=(B=a.bootstrap)===null||B===void 0||(W=B.featureFlagPayloads)===null||W===void 0?void 0:W[D]),A},{});this.featureFlags.receivedFeatureFlags({featureFlags:v,featureFlagPayloads:y})}if(!this.get_distinct_id()){var w=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_user_state("anonymous")}ht.addEventListener&&ht.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),p("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(t){console.error("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:Hn.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new Qfe(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var t=this;this.has_opted_out_capturing()||Zo(this.__request_queue,function(n){t._send_request.apply(t,Yb(n))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(t,n){if(Ua(t))return null;if(Sh)return function(o){t(o,n)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],t(o,n)},a}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(t,n,r){var i=JSON.stringify(n);this.__compress_and_send_json_request(t,i,r||H0,c9)}},{key:"__compress_and_send_json_request",value:function(t,n,r,i){var a=function(c,p,f){return c===Yl.GZipJS?[y0e(_0e(p),{mtime:0}),yt(yt({},f),{},{blob:!0,urlQueryArgs:{compression:Yl.GZipJS}})]:[{data:_7(p)},f]}(this.compression[Yl.GZipJS]?Yl.GZipJS:Yl.Base64,n,r),o=yo(a,2),s=o[0],u=o[1];this._send_request(t,s,u,i)}},{key:"_send_request",value:function(t,n,r,i){if(this.rateLimiter.isRateLimited(r._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(FF)this.__request_queue.push([t,n,r,i]);else{var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=Pr(a,r||{}),Sh||(r.method="GET");var o="sendBeacon"in ht.navigator&&r.transport==="sendBeacon";if(t=T0e(t,r.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{ht.navigator.sendBeacon(t,x7(n,yt(yt({},r),{},{sendBeacon:!0})))}catch{}else if(Sh)try{LF({url:t,data:n,headers:this.get_config("xhr_headers"),options:r,captureMetrics:this._captureMetrics,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(p){console.error(p)}else{var s,u=Hn.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=t;var c=Hn.getElementsByTagName("script")[0];(s=c.parentNode)===null||s===void 0||s.insertBefore(u,c)}}}},{key:"_execute_array",value:function(t){var n,r=this,i=[],a=[],o=[];Zo(t,function(u){u&&(n=u[0],Wo(n)?o.push(u):typeof u=="function"?u.call(r):Wo(u)&&n==="alias"?i.push(u):Wo(u)&&n.indexOf("capture")!==-1&&typeof r[n]=="function"?o.push(u):a.push(u))});var s=function(u,c){Zo(u,function(p){if(Wo(p[0])){var f=c;fn(p,function(m){f=f[m[0]].apply(f,m.slice(1))})}else this[p[0]].apply(this,p.slice(1))},c)};s(i,this),s(a,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var t,n;return((t=this.config.bootstrap)===null||t===void 0?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)===null||n===void 0?void 0:n.featureFlags).length>0||!1}},{key:"push",value:function(t){this._execute_array([t])}},{key:"captureException",value:function(t,n){var r;(r=this.exceptionAutocapture)===null||r===void 0||r.captureException([t.name,void 0,void 0,void 0,t],n)}},{key:"capture",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:H0;if(this.__loaded&&!function(c,p){var f=!1;try{var m=c.get_config("token"),g=c.get_config("respect_dnt"),E=c.get_config("opt_out_capturing_persistence_type"),b=c.get_config("opt_out_capturing_cookie_prefix")||void 0,T=c.get_config("window");m&&(f=bI(m,{respectDnt:g,persistenceType:E,persistencePrefix:b,window:T}))}catch(v){p||console.error("Unexpected error when checking capturing opt-out status: "+v)}return f}(this,!1)){this._captureMetrics.incr("capture"),t==="$snapshot"&&this._captureMetrics.incr("snapshot");var i=(r=r||H0).transport;if(i&&(r.transport=i),Ua(t)||typeof t!="string")console.error("No event name provided to posthog.capture");else if(!Nfe(ra)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var a={uuid:this.uuidFn("v7"),event:t,properties:this._calculate_event_properties(t,n||{})};t==="$identify"&&(a.$set=r.$set,a.$set_once=r.$set_once),(a=Ife(a,r._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=r.timestamp||new Date,this.get_config("debug")&&kn.log("PostHog.js send",a);var o=JSON.stringify(a),s=this.get_config("api_host")+(r.endpoint||"/e/"),u=r!==H0;return!this.get_config("request_batching")||u&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(s,o,r):this._requestQueue.enqueue(s,a,r),this._invokeCaptureHooks(t,a),a}}}},{key:"_addCaptureHook",value:function(t){this.__captureHooks.push(t)}},{key:"_invokeCaptureHooks",value:function(t,n){this.config._onCapture(t,n),fn(this.__captureHooks,function(r){return r(t)})}},{key:"_calculate_event_properties",value:function(t,n){var r,i=this.persistence.remove_event_timer(t),a=yt({},n);if(a.token=this.get_config("token"),t==="$snapshot"){var o=yt(yt({},this.persistence.properties()),this.sessionPersistence.properties());return a.distinct_id=o.distinct_id,a}var s=yr.properties();if(this.sessionManager){var u=this.sessionManager.checkAndGetSessionAndWindowId(),c=u.sessionId,p=u.windowId;a.$session_id=c,a.$window_id=p}if((r=this.webPerformance)!==null&&r!==void 0&&r.isEnabled&&(t==="$pageview"&&this.pageViewIdManager.onPageview(),a=Pr(a,{$pageview_id:this.pageViewIdManager.getPageViewId()})),t==="$pageview"&&(a.title=Hn.title),t==="$performance_event"){var f=this.persistence.properties();return a.distinct_id=f.distinct_id,a.$current_url=s.$current_url,a}if(i!==void 0){var m=new Date().getTime()-i;a.$duration=parseFloat((m/1e3).toFixed(3))}a=Pr({},yr.properties(),this.persistence.properties(),this.sessionPersistence.properties(),a);var g=this.get_config("property_blacklist");Wo(g)?fn(g,function(b){delete a[b]}):console.error("Invalid value for property_blacklist config: "+g);var E=this.get_config("sanitize_properties");return E&&(a=E(a,t)),a}},{key:"register",value:function(t,n){this.persistence.register(t,n)}},{key:"register_once",value:function(t,n,r){this.persistence.register_once(t,n,r)}},{key:"register_for_session",value:function(t){this.sessionPersistence.register(t)}},{key:"unregister",value:function(t){this.persistence.unregister(t)}},{key:"unregister_for_session",value:function(t){this.sessionPersistence.unregister(t)}},{key:"_register_single",value:function(t,n){this.register(ct({},t,n))}},{key:"getFeatureFlag",value:function(t,n){return this.featureFlags.getFeatureFlag(t,n)}},{key:"getFeatureFlagPayload",value:function(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}},{key:"isFeatureEnabled",value:function(t,n){return this.featureFlags.isFeatureEnabled(t,n)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}},{key:"getEarlyAccessFeatures",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,n)}},{key:"onFeatureFlags",value:function(t){return this.featureFlags.onFeatureFlags(t)}},{key:"onSessionId",value:function(t){return this.sessionManager.onSessionId(t)}},{key:"getSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(t,n)}},{key:"getActiveMatchingSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(t,n)}},{key:"identify",value:function(t,n,r){if(t){this._captureMetrics.incr("identify");var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var a=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:a},"")}t!==i&&t!==this.get_property(vh)&&(this.unregister(vh),this.register({distinct_id:t}));var o=this.persistence.get_user_state()==="anonymous";t!==i&&o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(n||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Cg))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(t,n){(t||n)&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:n||{}}))}},{key:"group",value:function(t,n,r){if(t&&n){this._captureMetrics.incr("group");var i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:yt(yt({},i),{},ct({},t,n))}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags(ct({},t,r))),i[t]===n||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,n)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(t,n)}},{key:"resetGroupPropertiesForFlags",value:function(t){this.featureFlags.resetGroupPropertiesForFlags(t)}},{key:"reset",value:function(t){var n=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var r=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:r,$device_id:t?r:n},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(t){var n=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=r.sessionId,a=r.sessionStartTimestamp,o=n+"/replay/"+i;if(t!=null&&t.withTimestamp&&a){var s,u=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!a)return o;var c=Math.max(Math.floor((new Date().getTime()-a)/1e3)-u,0);o+="?t=".concat(c)}return o}},{key:"alias",value:function(t,n){return t===this.get_property(wF)?(kn.critical("Attempting to create alias for existing People user - aborting."),-2):(Ua(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(vh,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(t),-1))}},{key:"set_config",value:function(t){var n=yt({},this.config);Qb(t)&&(Pr(this.config,t),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),qn.is_supported()&&qn.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(fa.DEBUG=!0),this.sessionRecording&&t.disable_session_recording!==void 0&&n.disable_session_recording!==t.disable_session_recording&&(t.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var t;return!((t=this.sessionRecording)===null||t===void 0||!t.started())}},{key:"loadToolbar",value:function(t){return this.toolbar.loadToolbar(t)}},{key:"get_config",value:function(t){var n;return(n=this.config)===null||n===void 0?void 0:n[t]}},{key:"get_property",value:function(t){return this.persistence.props[t]}},{key:"getSessionProperty",value:function(t){return this.sessionPersistence.props[t]}},{key:"toString",value:function(){var t,n=(t=this.get_config("name"))!==null&&t!==void 0?t:pi;return n!==pi&&(n=pi+"."+n),n}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&qn.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!po.get("ph_optout")||(po.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(t){var n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),this.get_config("disable_persistence")||this.sessionPersistence.disabled===n||this.sessionPersistence.set_disabled(n)}},{key:"_gdpr_call_func",value:function(t,n){return n=Pr({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},n||{}),qn.is_supported()||n.persistence_type!=="localStorage"||(n.persistence_type="cookie"),t(this.get_config("token"),{capture:n.capture,captureEventName:n.capture_event_name,captureProperties:n.capture_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieExpiration:n.cookie_expiration,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie})}},{key:"opt_in_capturing",value:function(t){t=Pr({enable_persistence:!0},t||{}),this._gdpr_call_func(r0e,t),this._gdpr_update_persistence(t)}},{key:"opt_out_capturing",value:function(t){var n=Pr({clear_persistence:!0},t||{});this._gdpr_call_func(i0e,n),this._gdpr_update_persistence(n)}},{key:"has_opted_in_capturing",value:function(t){return this._gdpr_call_func(a0e,t)}},{key:"has_opted_out_capturing",value:function(t){return this._gdpr_call_func(bI,t)}},{key:"clear_opt_in_out_capturing",value:function(t){var n=Pr({enable_persistence:!0},t??{});this._gdpr_call_func(o0e,n),this._gdpr_update_persistence(n)}},{key:"debug",value:function(t){t===!1?(ht.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(ht.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();(function(e,t){for(var n=0;n127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},aR=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=aa,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return hhe().toString()}},The=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},oR=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{In.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},sR=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Qd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;FP(p)&&(m=p(f));var b=c.call(u,f);return m!==!1&&b!==!1||(g=!1),g}}}(t,r,s)}else In.error("No valid element provided to register_event")}}();function pT(e,t){var n=function(){var r=jn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=jn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):jn.body.appendChild(r)};jn.body?n():jn.addEventListener("DOMContentLoaded",n)}var Sr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return hn(t,function(r){var i=oR(jn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=jn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=Sr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=oR(jn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||fn(e," OPR/")?fn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":fn(e,"IEMobile")||fn(e,"WPDesktop")?"Internet Explorer Mobile":fn(e,"SamsungBrowser/")?"Samsung Internet":fn(e,"Edge")||fn(e,"Edg/")?"Microsoft Edge":fn(e,"FBIOS")?"Facebook Mobile":fn(e,"Chrome")?"Chrome":fn(e,"CriOS")?"Chrome iOS":fn(e,"UCWEB")||fn(e,"UCBrowser")?"UC Browser":fn(e,"FxiOS")?"Firefox iOS":fn(t,"Apple")?fn(e,"Mobile")?"Mobile Safari":"Safari":fn(e,"Android")?"Android Mobile":fn(e,"Konqueror")?"Konqueror":fn(e,"Firefox")?"Firefox":fn(e,"MSIE")||fn(e,"Trident/")?"Internet Explorer":fn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Sr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Ql.language||Ql.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return jn.referrer||"$direct"},referringDomain:function(){if(!jn.referrer)return"$direct";var e=jn.createElement("a");return e.href=jn.referrer,e.host},properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera),$device:Sr.device(aa),$device_type:Sr.deviceType(aa)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera),$browser_language:Sr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:ma.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:BP()/1e3})},people_properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera)}),{$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera)})}};function Zg(e){switch(pl(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Qg(e){var t="";return Ph(e)&&!zP(e)&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){$P(n)&&n.textContent&&(t+=Ry(n.textContent).split(/(\s+)/).filter(N1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Ry(t)}function lR(e){return!!e&&e.nodeType===1}function fu(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function $P(e){return!!e&&e.nodeType===3}function uR(e){return!!e&&e.nodeType===11}var k4=["a","button","form","input","select","textarea","label"];function Ph(e){for(var t=e;t.parentNode&&!fu(t,"body");t=t.parentNode){var n=Zg(t).split(" ");if(fn(n,"ph-sensitive")||fn(n,"ph-no-capture"))return!1}if(fn(Zg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function zP(e){return!!(fu(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||fu(e,"select")||fu(e,"textarea")||e.getAttribute("contenteditable")==="true")}function N1(e){return!(e===null||ja(e)||typeof e=="string"&&(e=Ry(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function cR(e){var t=Qg(e);return N1(t="".concat(t," ").concat(HP(e)).trim())?t:""}function HP(e){var t="";return e&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Qg(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(HP(n)).trim())}catch(a){console.error(a)}}),t}var She=function(){function e(t){Un(this,e),this.clicks=[],this.enabled=t}return $n(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),whe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,yo={is_supported:function(){return!0},error:function(e){In.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=cR(e):i.$el_text=Qg(e));var a=Zg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),hn(e.attributes,function(c){var p;zP(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&N1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return hn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),N1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return hn(this._customProperties,function(r){hn(r.event_selectors,function(i){hn(document.querySelectorAll(i),function(a){fn(e,a)&&Ph(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if($P(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||fu(g,"html")||!lR(g))return!1;if(y!=null&&y.url_allowlist){var T=window.location.href,E=y.url_allowlist;if(E&&!E.some(function($){return T.match($)}))return!1}if(y!=null&&y.dom_event_allowlist){var v=y.dom_event_allowlist;if(v&&!v.some(function($){return b.type===$}))return!1}if(y!=null&&y.element_allowlist){var w=y.element_allowlist;if(w&&!w.some(function($){return g.tagName.toLowerCase()===$}))return!1}if(y!=null&&y.css_selector_allowlist){var A=y.css_selector_allowlist;if(A&&!A.some(function($){return g.matches($)}))return!1}for(var R=!1,k=[g],N=!0,B=g;B.parentNode&&!fu(B,"body");)if(uR(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(N=B.parentNode||!1))break;if(k4.indexOf(N.tagName.toLowerCase())>-1)R=!0;else{var q=window.getComputedStyle(N);q&&q.getPropertyValue("cursor")==="pointer"&&(R=!0)}k.push(N),B=N}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&b.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return b.type==="submit";case"input":case"select":case"textarea":return b.type==="change"||b.type==="click";default:return R?b.type==="click":b.type==="click"&&(k4.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!fu(s,"body");)uR(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(hn(o,function(g){var b=Ph(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=b&&N1(u)&&u),fn(Zg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var y=r._getAugmentPropertiesFromElement(g);$r(p,y)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=cR(a):c[0].$el_text=Qg(a)),u&&(c[0].attr__href=u),f)return!1;var m=$r(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Qd(document,"submit",n,!1,!0),Qd(document,"change",n,!1,!0),Qd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new She(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?In.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},dR,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=ja(t)?10:t,n=ja(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Jg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Jg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Fy);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},Fy,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(D1)||{};this.instance.register(ct({},D1,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(D1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Vs)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=vt(vt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Vs,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Vs)||{};this.instance.register(ct({},Vs,vt(vt({},n),{},ct({},t,{}))))}else this.instance.unregister(Vs)}}]),e}(),Ihe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",bR=2,Rhe=4,GP=3,Nhe=6,Ohe=0,Dhe=5e6,Lhe="rrweb/console@1",fo,Mhe=$n(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Un(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,b;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(b=o.adds)===null||b===void 0?void 0:b.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==GP||o.data.source!==Ohe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,b=Co(i.getNodeOrRelevantParent(p.id),2),y=b[0],T=b[1];return i.mutationBuckets[y]===0?!1:(i.mutationBuckets[y]=(f=i.mutationBuckets[y])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[y]=Math.max(i.mutationBuckets[y]-1,0),i.mutationBuckets[y]===0&&(i.loggedTracker[y]||(i.loggedTracker[y]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,y,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Fhe="/s/",VP="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(fo||(fo={}));var Phe=[fo.MouseMove,fo.MouseInteraction,fo.Scroll,fo.ViewportResize,fo.Input,fo.TouchMove,fo.MediaInteraction,fo.Drag],Bhe=function(){function e(t){var n=this;Un(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Fhe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return $n(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(Ly),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(pR),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(fR);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},Ly,!!t.sessionRecording),ct(o,pR,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,fR,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:BP()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?pT(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(ma.LIB_VERSION),function(r){if(r)return In.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===GP&&Phe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[bR,Rhe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return In.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aDhe){var c,p=fs(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Ihe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&pl(u)==="object"&&u.type===Nhe&&pl(u.data)==="object"&&u.data.plugin===Lhe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:VP,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===bR}})}}]),e}(),lo={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Uhe=["first-input","navigation","paint","resource"],$he=["/s/","/e/"],zhe=function(){function e(t){Un(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return $n(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!mhe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Uhe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else In.log("PostHog Peformance observer not started because we are on localhost.");else In.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if($he.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[lo.timeOrigin]=s,o[lo.timestamp]=Math.floor(s+t.startTime),lo)a[u]!==void 0&&(o[lo[u]]=a[u]);if(this.capturePerformanceEvent(o),Hhe(t)){var c,p=fs(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},lo.timeOrigin,s),ct(f,lo.timestamp,Math.floor(s+t.startTime)),ct(f,lo.name,m.name),ct(f,lo.duration,m.duration),ct(f,lo.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[lo.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Hhe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},jhe=function(){function e(t){Un(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return $n(e,[{key:"call",value:function(){var t=this,n=dT(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(D1),group_properties:this.instance.get_property(Vs),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),Ys.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=fs(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=fs(t.siteApps);try{var m=function(){var g=c.value,b=g.id,y=g.url,T=[p,p[p.length-1]==="/"&&y[0]==="/"?y.substring(1):y].join("");window["__$$ph_site_app_".concat(b)]=a.instance,pT(T,function(E){E&&console.error("Error while initializing PostHog app with config id ".concat(b),E)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Ghe=["https://app.posthog.com","https://eu.posthog.com"],Vhe=["source"],Whe=function(){function e(t){Un(this,e),this.instance=t}return $n(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(vt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=sR(t.hash,"__posthog")||sR(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Ghe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=vt(vt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=uhe(s,Vhe);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),pT(a,function(c){c?In.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Qd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),qhe="__ph_opt_in_out_";function Khe(e,t){qP(!0,e,t)}function Yhe(e,t){qP(!1,e,t)}function Xhe(e,t){return WP(e,t)==="1"}function yR(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return hn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){fn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||WP(e,t)==="0"}function Zhe(e,t){fT(t=t||{}).remove(hT(e,t),!!t.crossSubdomainCookie)}function fT(e){return(e=e||{}).persistenceType==="localStorage"?Kn:e.persistenceType==="localStorage+cookie"?Dy:yo}function hT(e,t){return((t=t||{}).persistencePrefix||qhe)+e}function WP(e,t){return fT(t).get(hT(e,t))}function qP(e,t,n){PP(t)&&t.length?(fT(n=n||{}).set(hT(t,n),e?1:0,yhe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var KP=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Un(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return $n(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),Qhe=function(e){NP(n,KP);var t=OP(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Un(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return $n(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;hn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(xy(a.filter(function(o){return o.url.indexOf("/e")===0})),xy(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,vt(vt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return hn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),Jhe=function(){function e(t){Un(this,e),this.enabled=t,this.metrics={}}return $n(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Ui=Uint8Array,ni=Uint16Array,dc=Uint32Array,gT=new Ui([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mT=new Ui([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ER=new Ui([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),YP=function(e,t){for(var n=new ni(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Sn)<<1;ql=(61680&(ql=(52428&ql)>>>2|(13107&ql)<<2))>>>4|(3855&ql)<<4,zy[Sn]=((65280&ql)>>>8|(255&ql)<<8)>>>1}var Jd=function(e,t,n){for(var r=e.length,i=0,a=new ni(t);i>>u]=c}else for(o=new ni(r),i=0;i>>15-e[i];return o},wu=new Ui(288);for(Sn=0;Sn<144;++Sn)wu[Sn]=8;for(Sn=144;Sn<256;++Sn)wu[Sn]=9;for(Sn=256;Sn<280;++Sn)wu[Sn]=7;for(Sn=280;Sn<288;++Sn)wu[Sn]=8;var em=new Ui(32);for(Sn=0;Sn<32;++Sn)em[Sn]=5;var tu,tge=Jd(wu,9,0),nge=Jd(em,5,0),ZP=function(e){return(e/8>>0)+(7&e&&1)},QP=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof ni?ni:e instanceof dc?dc:Ui)(n-t);return r.set(e.subarray(t,n)),r},qo=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},dd=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},R4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new ni(m+1),b=rge(n[p-1],g,0);if(b>t){r=0;var y=0,T=b-t,E=1<t))break;y+=E-(1<>>=T;y>0;){var w=a[r].s;g[w]=0&&y;--r){var A=a[r].s;g[A]==t&&(--g[A],++y)}b=t}return[new Ui(g),b]},rge=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},_R=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ni(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},pd=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[ER[$-1]];--$);var oe,fe,ce,De,H=c+5<<3,W=pd(i,wu)+pd(a,em)+o,se=pd(i,m)+pd(a,y)+o+14+3*$+pd(N,P)+(2*N[16]+3*N[17]+7*N[18]);if(H<=W&&H<=se)return Uh(t,p,e.subarray(u,u+c));if(qo(t,p,1+(se15&&(qo(t,p,L[B]>>>5&127),p+=L[B]>>>12)}}}else oe=tge,fe=wu,ce=nge,De=em;for(B=0;B255){ie=r[B]>>>18&31,dd(t,p,oe[ie+257]),p+=fe[ie+257],ie>7&&(qo(t,p,r[B]>>>23&31),p+=gT[ie]);var Se=31&r[B];dd(t,p,ce[Se]),p+=De[Se],Se>3&&(dd(t,p,r[B]>>>5&8191),p+=mT[Se])}else dd(t,p,oe[r[B]]),p+=fe[r[B]];return dd(t,p,oe[256]),p+fe[256]},ige=new dc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),age=new Ui(0),oge=function(){for(var e=new dc(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),sge=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},lge=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Ui(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),b=0;if(!o||f<8)for(var y=0;y<=f;y+=65535){var T=y+65535;T>>13,w=8191&E,A=(1<7e3||ce>24576)&&pe>423){b=TR(a,g,0,P,Q,$,fe,ce,H,y-H,b),ce=oe=fe=0,H=y;for(var le=0;le<286;++le)Q[le]=0;for(le=0;le<30;++le)$[le]=0}var L=2,ie=0,Se=w,X=se-D&32767;if(pe>2&&W==q(y-X))for(var ke=Math.min(v,pe)-1,te=Math.min(32767,y),Me=Math.min(258,pe);X<=te&&--Se&&se!=D;){if(a[y+L]==a[y+L-X]){for(var Re=0;ReL){if(L=Re,ie=X,Re>ke)break;var Ze=Math.min(X,Re-2),We=0;for(le=0;leWe&&(We=ot,D=dt)}}}X+=(se=D)-(D=R[se])+32768&32767}if(ie){P[ce++]=268435456|$y[L]<<18|vR[ie];var je=31&$y[L],pt=31&vR[ie];fe+=gT[je]+mT[pt],++Q[257+je],++$[pt],De=y+L,++oe}else P[ce++]=a[y],++Q[a[y]]}}b=TR(a,g,p,P,Q,$,fe,ce,H,y-H,b),p||(b=Uh(g,b,age))}return QP(m,0,u+ZP(b)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},Hy=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},uge=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&Hy(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},cge=function(e){return 10+(e.filename&&e.filename.length+1||0)};function dge(e,t){t===void 0&&(t={});var n=sge(),r=e.length;n.p(e);var i=lge(e,t,cge(t),8),a=i.length;return uge(i,t),Hy(i,a-8,n.d()),Hy(i,a-4,r),i}function pge(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Ui(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Ui(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return QP(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(tu||(tu={}));var fge=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=ma.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=fs(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return hn(c,function(b,y){p=encodeURIComponent(b.toString()),f=encodeURIComponent(y),g[g.length]=f+"="+p}),g.join(m)}(r)},bT=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},JP=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var b=bT(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),hn(r,function(y,T){g.setRequestHeader(T,y)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var y;try{y=JSON.parse(g.responseText)}catch(T){return void In.error(T)}o(y)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(b)},hge=18e5,gge=function(e){NP(n,KP);var t=OP(n);function n(r,i,a){var o;return Un(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return $n(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(hge,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=fs(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=fs(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))ma.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,bT(s,vt(vt({},u),{},{sendBeacon:!0})))}catch(c){ma.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?ma.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):JP({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),rh=1800,SR=60,mge=864e5,bge=function(){function e(t,n,r){Un(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||rh;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=rh):a>rh?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=Co(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>mge,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),yge=$n(function e(t,n,r,i){Un(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],b={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",b),o})}}),Ege=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},vge=function(){function e(t){Un(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return $n(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function wR(e){return typeof Event<"u"&&eB(e,Event)}function eB(e,t){try{return e instanceof t}catch{return!1}}function AR(e){return e===null||pl(e)!=="object"&&typeof e!="function"}function $h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function N4(e){return $h(e,"DOMError")}var CR=/\(error: (.*)\)/,kR=50,zh="?";function O4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var _ge=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Tge=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Age=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Cge=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` +`),u=a;u1024)){var p=CR.test(c)?c.replace(CR,"$1"):c;if(!p.match(/\S*Error: /)){var f,m=fs(r);try{for(m.s();!(f=m.n()).done;){var g=(0,f.value)(p);if(g){o.push(g);break}}}catch(b){m.e(b)}finally{m.f()}if(o.length>=kR)break}}}return function(b){if(!b.length)return[];var y=b.slice(0,kR);return y.reverse(),y.map(function(T){return vt(vt({},T),{},{filename:T.filename||y[y.length-1].filename,function:T.function||"?"})})}(o)}}).apply(void 0,[[30,function(e){var t=_ge.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){var n=Tge.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=Co(xR(t[1]||zh,t[2]),2),i=r[0];return O4(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=Sge.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=wge.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||zh,a=Co(xR(i,r),2);return i=a[0],O4(r=a[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=Age.exec(e);return t?O4(t[2],t[1]||zh,+t[3],t[4]?+t[4]:void 0):void 0}]]),xR=function(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:zh,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},kge=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,xge=/Minified React error #\d+;/i;function Ige(e){var t=e.stacktrace||e.stack||"",n=function(r){if(r){if(typeof r.framesToPop=="number")return r.framesToPop;if(xge.test(r.message))return 1}return 0}(e);try{return Cge(t,n)}catch{}return[]}function D4(e){var t=Ige(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function Rge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:40,n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:"".concat(i.slice(0,t),"...")}return""}function IR(e){var t=Co(e,5),n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s={};if(o===void 0&&typeof n=="string"){var u="Error",c=n,p=n.match(kge);p&&(u=p[1],c=p[2]),s={$exception_type:u,$exception_message:c}}var f=o||n;if(N4(f)||function(y){return $h(y,"DOMException")}(f)){var m=f;if(function(y){return"stack"in y}(f))s=D4(f);else{var g=m.name||(N4(m)?"DOMError":"DOMException"),b=m.message?"".concat(g,": ").concat(m.message):g;s=function(y){return{$exception_type:"Error",$exception_message:y}}(b),s.$exception_type=N4(m)?"DOMError":"DOMException",s.$exception_message=s.$exception_message||b}"code"in m&&(s.$exception_DOMException_code="".concat(m.code))}else(function(y){return $h(y,"ErrorEvent")})(f)&&f.error?s=D4(f.error):function(y){switch(Object.prototype.toString.call(y)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return eB(y,Error)}}(f)?s=D4(f):function(y){return $h(y,"Object")}(f)||wR(f)?(s=function(y){return{$exception_type:wR(y)?y.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",Rge(y))}}(f),s.$exception_is_synthetic=!0):(s.$exception_type=s.$exception_type||"Error",s.$exception_message=s.$exception_message||f,s.$exception_is_synthetic=!0);return vt(vt(vt(vt({},s),{},{$exception_type:s.$exception_type||"UnknownErrorType",$exception_message:s.$exception_message||""},r?{$exception_source:r}:{}),i?{$exception_lineno:i}:{}),a?{$exception_colno:a}:{})}var RR,NR,Nge=function(){function e(t){Un(this,e),ct(this,"originalOnErrorHandler",void 0),ct(this,"originalOnUnhandledRejectionHandler",void 0),ct(this,"errorsToIgnore",[]),this.instance=t}return $n(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var t,n=arguments.length,r=new Array(n),i=0;i1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Py);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.surveys;return n.instance.persistence.register(ct({},Py,o)),t(o)})}},{key:"getActiveMatchingSurveys",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(i){var a=i.filter(function(o){return!(!o.start_date||o.end_date)}).filter(function(o){var s,u;if(!o.conditions)return!0;var c=(s=o.conditions)===null||s===void 0||!s.url||window.location.href.indexOf(o.conditions.url)>-1,p=(u=o.conditions)===null||u===void 0||!u.selector||document.querySelector(o.conditions.selector);return c&&p}).filter(function(o){if(!o.linked_flag_key&&!o.targeting_flag_key)return!0;var s=!o.linked_flag_key||n.instance.featureFlags.isFeatureEnabled(o.linked_flag_key),u=!o.targeting_flag_key||n.instance.featureFlags.isFeatureEnabled(o.targeting_flag_key);return s&&u});return t(a)},r)}}]),e}(),Dge={"X-PostHog-Retry-After-Recordings":VP,"X-PostHog-Retry-After-Events":"events"},Lge=function(){function e(){Un(this,e),ct(this,"limits",{})}return $n(e,[{key:"isRateLimited",value:function(t){var n=this.limits[t||"events"]||!1;return n!==!1&&new Date().getTime()1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,c={segmentRegister:!1,syncCode:!1},p=function(A){return function(){c[A]||(c[A]=!0,c.segmentRegister&&c.syncCode&&(s==null||s(i)))}};if(this.set_config($r({},OR(),a,{name:o,token:t,callback_fn:(o===gi?o:gi+"."+o)+"._jsc"})),this.uuidFn=aR(this.config.uuid_version||"og"),this._jsc=function(){},(ht!=null&&(n=ht.rrweb)!==null&&n!==void 0&&n.record||ht!=null&&ht.rrwebRecord)&&(this.__loaded_recorder_version=ht==null||(u=ht.rrweb)===null||u===void 0?void 0:u.version),this.persistence=new hR(this.config),this._captureMetrics=new Jhe(this.get_config("_capture_metrics")),this._requestQueue=new Qhe(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new gge(this._captureMetrics,this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new bge(this.config,this.persistence,this.uuidFn),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new hR(vt(vt({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(p("segmentRegister"))):p("segmentRegister")(),((r=a.bootstrap)===null||r===void 0?void 0:r.distinctID)!==void 0){var f,m,g=this.get_config("get_device_id")(this.uuidFn()),b=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?g:a.bootstrap.distinctID;this.persistence.set_user_state((m=a.bootstrap)!==null&&m!==void 0&&m.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:b})}if(this._hasBootstrappedFeatureFlags()){var y,T,E=Object.keys(((y=a.bootstrap)===null||y===void 0?void 0:y.featureFlags)||{}).filter(function(A){var R,k;return!((R=a.bootstrap)===null||R===void 0||(k=R.featureFlags)===null||k===void 0||!k[A])}).reduce(function(A,R){var k,N;return A[R]=((k=a.bootstrap)===null||k===void 0||(N=k.featureFlags)===null||N===void 0?void 0:N[R])||!1,A},{}),v=Object.keys(((T=a.bootstrap)===null||T===void 0?void 0:T.featureFlagPayloads)||{}).filter(function(A){return E[A]}).reduce(function(A,R){var k,N,B,q;return(k=a.bootstrap)!==null&&k!==void 0&&(N=k.featureFlagPayloads)!==null&&N!==void 0&&N[R]&&(A[R]=(B=a.bootstrap)===null||B===void 0||(q=B.featureFlagPayloads)===null||q===void 0?void 0:q[R]),A},{});this.featureFlags.receivedFeatureFlags({featureFlags:E,featureFlagPayloads:v})}if(!this.get_distinct_id()){var w=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_user_state("anonymous")}ht.addEventListener&&ht.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),p("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(t){console.error("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:jn.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new jhe(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var t=this;this.has_opted_out_capturing()||as(this.__request_queue,function(n){t._send_request.apply(t,xy(n))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(t,n){if(ja(t))return null;if(Hh)return function(o){t(o,n)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],t(o,n)},a}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(t,n,r){var i=JSON.stringify(n);this.__compress_and_send_json_request(t,i,r||ih,jy)}},{key:"__compress_and_send_json_request",value:function(t,n,r,i){var a=function(c,p,f){return c===tu.GZipJS?[dge(pge(p),{mtime:0}),vt(vt({},f),{},{blob:!0,urlQueryArgs:{compression:tu.GZipJS}})]:[{data:dT(p)},f]}(this.compression[tu.GZipJS]?tu.GZipJS:tu.Base64,n,r),o=Co(a,2),s=o[0],u=o[1];this._send_request(t,s,u,i)}},{key:"_send_request",value:function(t,n,r,i){if(this.rateLimiter.isRateLimited(r._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(tB)this.__request_queue.push([t,n,r,i]);else{var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=$r(a,r||{}),Hh||(r.method="GET");var o="sendBeacon"in ht.navigator&&r.transport==="sendBeacon";if(t=fge(t,r.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{ht.navigator.sendBeacon(t,bT(n,vt(vt({},r),{},{sendBeacon:!0})))}catch{}else if(Hh)try{JP({url:t,data:n,headers:this.get_config("xhr_headers"),options:r,captureMetrics:this._captureMetrics,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(p){console.error(p)}else{var s,u=jn.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=t;var c=jn.getElementsByTagName("script")[0];(s=c.parentNode)===null||s===void 0||s.insertBefore(u,c)}}}},{key:"_execute_array",value:function(t){var n,r=this,i=[],a=[],o=[];as(t,function(u){u&&(n=u[0],es(n)?o.push(u):typeof u=="function"?u.call(r):es(u)&&n==="alias"?i.push(u):es(u)&&n.indexOf("capture")!==-1&&typeof r[n]=="function"?o.push(u):a.push(u))});var s=function(u,c){as(u,function(p){if(es(p[0])){var f=c;hn(p,function(m){f=f[m[0]].apply(f,m.slice(1))})}else this[p[0]].apply(this,p.slice(1))},c)};s(i,this),s(a,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var t,n;return((t=this.config.bootstrap)===null||t===void 0?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)===null||n===void 0?void 0:n.featureFlags).length>0||!1}},{key:"push",value:function(t){this._execute_array([t])}},{key:"captureException",value:function(t,n){var r;(r=this.exceptionAutocapture)===null||r===void 0||r.captureException([t.name,void 0,void 0,void 0,t],n)}},{key:"capture",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ih;if(this.__loaded&&!function(c,p){var f=!1;try{var m=c.get_config("token"),g=c.get_config("respect_dnt"),b=c.get_config("opt_out_capturing_persistence_type"),y=c.get_config("opt_out_capturing_cookie_prefix")||void 0,T=c.get_config("window");m&&(f=yR(m,{respectDnt:g,persistenceType:b,persistencePrefix:y,window:T}))}catch(E){p||console.error("Unexpected error when checking capturing opt-out status: "+E)}return f}(this,!1)){this._captureMetrics.incr("capture"),t==="$snapshot"&&this._captureMetrics.incr("snapshot");var i=(r=r||ih).transport;if(i&&(r.transport=i),ja(t)||typeof t!="string")console.error("No event name provided to posthog.capture");else if(!The(aa)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var a={uuid:this.uuidFn("v7"),event:t,properties:this._calculate_event_properties(t,n||{})};t==="$identify"&&(a.$set=r.$set,a.$set_once=r.$set_once),(a=vhe(a,r._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=r.timestamp||new Date,this.get_config("debug")&&In.log("PostHog.js send",a);var o=JSON.stringify(a),s=this.get_config("api_host")+(r.endpoint||"/e/"),u=r!==ih;return!this.get_config("request_batching")||u&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(s,o,r):this._requestQueue.enqueue(s,a,r),this._invokeCaptureHooks(t,a),a}}}},{key:"_addCaptureHook",value:function(t){this.__captureHooks.push(t)}},{key:"_invokeCaptureHooks",value:function(t,n){this.config._onCapture(t,n),hn(this.__captureHooks,function(r){return r(t)})}},{key:"_calculate_event_properties",value:function(t,n){var r,i=this.persistence.remove_event_timer(t),a=vt({},n);if(a.token=this.get_config("token"),t==="$snapshot"){var o=vt(vt({},this.persistence.properties()),this.sessionPersistence.properties());return a.distinct_id=o.distinct_id,a}var s=Sr.properties();if(this.sessionManager){var u=this.sessionManager.checkAndGetSessionAndWindowId(),c=u.sessionId,p=u.windowId;a.$session_id=c,a.$window_id=p}if((r=this.webPerformance)!==null&&r!==void 0&&r.isEnabled&&(t==="$pageview"&&this.pageViewIdManager.onPageview(),a=$r(a,{$pageview_id:this.pageViewIdManager.getPageViewId()})),t==="$pageview"&&(a.title=jn.title),t==="$performance_event"){var f=this.persistence.properties();return a.distinct_id=f.distinct_id,a.$current_url=s.$current_url,a}if(i!==void 0){var m=new Date().getTime()-i;a.$duration=parseFloat((m/1e3).toFixed(3))}a=$r({},Sr.properties(),this.persistence.properties(),this.sessionPersistence.properties(),a);var g=this.get_config("property_blacklist");es(g)?hn(g,function(y){delete a[y]}):console.error("Invalid value for property_blacklist config: "+g);var b=this.get_config("sanitize_properties");return b&&(a=b(a,t)),a}},{key:"register",value:function(t,n){this.persistence.register(t,n)}},{key:"register_once",value:function(t,n,r){this.persistence.register_once(t,n,r)}},{key:"register_for_session",value:function(t){this.sessionPersistence.register(t)}},{key:"unregister",value:function(t){this.persistence.unregister(t)}},{key:"unregister_for_session",value:function(t){this.sessionPersistence.unregister(t)}},{key:"_register_single",value:function(t,n){this.register(ct({},t,n))}},{key:"getFeatureFlag",value:function(t,n){return this.featureFlags.getFeatureFlag(t,n)}},{key:"getFeatureFlagPayload",value:function(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}},{key:"isFeatureEnabled",value:function(t,n){return this.featureFlags.isFeatureEnabled(t,n)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}},{key:"getEarlyAccessFeatures",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,n)}},{key:"onFeatureFlags",value:function(t){return this.featureFlags.onFeatureFlags(t)}},{key:"onSessionId",value:function(t){return this.sessionManager.onSessionId(t)}},{key:"getSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(t,n)}},{key:"getActiveMatchingSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(t,n)}},{key:"identify",value:function(t,n,r){if(t){this._captureMetrics.incr("identify");var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var a=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:a},"")}t!==i&&t!==this.get_property(Bh)&&(this.unregister(Bh),this.register({distinct_id:t}));var o=this.persistence.get_user_state()==="anonymous";t!==i&&o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(n||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Jg))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(t,n){(t||n)&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:n||{}}))}},{key:"group",value:function(t,n,r){if(t&&n){this._captureMetrics.incr("group");var i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:vt(vt({},i),{},ct({},t,n))}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags(ct({},t,r))),i[t]===n||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,n)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(t,n)}},{key:"resetGroupPropertiesForFlags",value:function(t){this.featureFlags.resetGroupPropertiesForFlags(t)}},{key:"reset",value:function(t){var n=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var r=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:r,$device_id:t?r:n},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(t){var n=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=r.sessionId,a=r.sessionStartTimestamp,o=n+"/replay/"+i;if(t!=null&&t.withTimestamp&&a){var s,u=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!a)return o;var c=Math.max(Math.floor((new Date().getTime()-a)/1e3)-u,0);o+="?t=".concat(c)}return o}},{key:"alias",value:function(t,n){return t===this.get_property(jP)?(In.critical("Attempting to create alias for existing People user - aborting."),-2):(ja(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(Bh,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(t),-1))}},{key:"set_config",value:function(t){var n=vt({},this.config);Ny(t)&&($r(this.config,t),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),Kn.is_supported()&&Kn.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(ma.DEBUG=!0),this.sessionRecording&&t.disable_session_recording!==void 0&&n.disable_session_recording!==t.disable_session_recording&&(t.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var t;return!((t=this.sessionRecording)===null||t===void 0||!t.started())}},{key:"loadToolbar",value:function(t){return this.toolbar.loadToolbar(t)}},{key:"get_config",value:function(t){var n;return(n=this.config)===null||n===void 0?void 0:n[t]}},{key:"get_property",value:function(t){return this.persistence.props[t]}},{key:"getSessionProperty",value:function(t){return this.sessionPersistence.props[t]}},{key:"toString",value:function(){var t,n=(t=this.get_config("name"))!==null&&t!==void 0?t:gi;return n!==gi&&(n=gi+"."+n),n}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&Kn.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!yo.get("ph_optout")||(yo.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(t){var n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),this.get_config("disable_persistence")||this.sessionPersistence.disabled===n||this.sessionPersistence.set_disabled(n)}},{key:"_gdpr_call_func",value:function(t,n){return n=$r({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},n||{}),Kn.is_supported()||n.persistence_type!=="localStorage"||(n.persistence_type="cookie"),t(this.get_config("token"),{capture:n.capture,captureEventName:n.capture_event_name,captureProperties:n.capture_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieExpiration:n.cookie_expiration,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie})}},{key:"opt_in_capturing",value:function(t){t=$r({enable_persistence:!0},t||{}),this._gdpr_call_func(Khe,t),this._gdpr_update_persistence(t)}},{key:"opt_out_capturing",value:function(t){var n=$r({clear_persistence:!0},t||{});this._gdpr_call_func(Yhe,n),this._gdpr_update_persistence(n)}},{key:"has_opted_in_capturing",value:function(t){return this._gdpr_call_func(Xhe,t)}},{key:"has_opted_out_capturing",value:function(t){return this._gdpr_call_func(yR,t)}},{key:"clear_opt_in_out_capturing",value:function(t){var n=$r({enable_persistence:!0},t??{});this._gdpr_call_func(Zhe,n),this._gdpr_update_persistence(n)}},{key:"debug",value:function(t){t===!1?(ht.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(ht.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();(function(e,t){for(var n=0;nI.jsx("div",{className:"m-auto w-full text-center mt-2",children:I.jsx(K0e,{viewBox:"0 0 32 32",children:I.jsx("circle",{cx:"16",cy:"16",r:"14"})})}),X0e=He.div` - background-color: ${Kt}; +`,zge=()=>I.jsx("div",{className:"m-auto w-full text-center mt-2",children:I.jsx($ge,{viewBox:"0 0 32 32",children:I.jsx("circle",{cx:"16",cy:"16",r:"14"})})}),Hge=Ge.div` + background-color: ${Ht}; display: flex; justify-content: center; align-items: center; @@ -655,22 +658,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho flex-grow: 0; margin-left: 13px; cursor: pointer; -`,Z0e=He.div` +`,jge=Ge.div` margin-top: 8px; margin-bottom: 8px; margin-left: 8px; display: flex; align-items: center; gap: 4px; - font-size: ${e=>e.fontSize||nr()}px; + font-size: ${e=>e.fontSize||pr()}px; min-height: 16px; -`;function Q0e(e){var t,n;return e.open?e.children:I.jsxs(Z0e,{fontSize:nr(),children:[I.jsx(X0e,{onClick:()=>{e.onToggle()},children:e.iconElement||I.jsx(sD,{width:"16px",height:"16px"})}),I.jsx("span",{style:{color:vt},children:(t=e.historyNode.observation)!=null&&t.error?(n=e.historyNode.observation)==null?void 0:n.title:e.historyNode.step.name})]})}const J0e=He.div` +`;function Gge(e){var t,n;return e.open?e.children:I.jsxs(jge,{fontSize:pr(),children:[I.jsx(Hge,{onClick:()=>{e.onToggle()},children:e.iconElement||I.jsx(SL,{width:"16px",height:"16px"})}),I.jsx("span",{style:{color:Et},children:(t=e.historyNode.observation)!=null&&t.error?(n=e.historyNode.observation)==null?void 0:n.title:e.historyNode.step.name})]})}const Vge=Ge.div` padding: 8px; background-color: #ff000011; - border-radius: ${wt}; + border-radius: ${It}; border: 1px solid #cc0000; margin: 8px; -`;function ehe(e){var t;return I.jsxs("div",{style:{backgroundColor:Kt,position:"relative"},children:[I.jsxs("div",{style:{position:"absolute",right:"12px",top:"12px",display:"flex"},children:[I.jsx(vi,{text:"Collapse",onClick:()=>e.onClose(),children:I.jsx(VY,{width:"1.3em",height:"1.3em"})}),I.jsx(vi,{text:"Delete",onClick:()=>e.onDelete(),children:I.jsx(T2,{width:"1.3em",height:"1.3em"})})]}),I.jsx(J0e,{children:I.jsx("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},children:(t=e.historyNode.observation)==null?void 0:t.error})})]})}/** +`;function Wge(e){return I.jsxs("div",{style:{backgroundColor:Ht,position:"relative"},children:[I.jsxs("div",{style:{position:"absolute",right:"12px",top:"12px",display:"flex"},children:[I.jsx(zi,{text:"Collapse",onClick:()=>e.onClose(),children:I.jsx(BZ,{width:"1.3em",height:"1.3em"})}),I.jsx(zi,{text:"Delete",onClick:()=>e.onDelete(),children:I.jsx(w9,{width:"1.3em",height:"1.3em"})})]}),I.jsx(Vge,{children:I.jsx("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},children:e.error.message})})]})}/** * @remix-run/router v1.7.2 * * Copyright (c) Remix Software Inc. @@ -679,8 +682,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;tp(g,typeof g=="string"?null:g.state,E===0?"default":void 0));let a=u(n??i.length-1),o=Vn.Pop,s=null;function u(g){return Math.min(Math.max(g,0),i.length-1)}function c(){return i[a]}function p(g,E,b){E===void 0&&(E=null);let T=p9(i?c().pathname:"/",g,E,b);return Eu(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(g)),T}function f(g){return typeof g=="string"?g:lm(g)}return{get index(){return a},get action(){return o},get location(){return c()},createHref:f,createURL(g){return new URL(f(g),"http://localhost")},encodeLocation(g){let E=typeof g=="string"?So(g):g;return{pathname:E.pathname||"",search:E.search||"",hash:E.hash||""}},push(g,E){o=Vn.Push;let b=p(g,E);a+=1,i.splice(a,i.length,b),r&&s&&s({action:o,location:b,delta:1})},replace(g,E){o=Vn.Replace;let b=p(g,E);i[a]=b,r&&s&&s({action:o,location:b,delta:0})},go(g){o=Vn.Pop;let E=u(a+g),b=i[E];a=E,s&&s({action:o,location:b,delta:g})},listen(g){return s=g,()=>{s=null}}}}function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Eu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nhe(){return Math.random().toString(36).substr(2,8)}function p9(e,t,n,r){return n===void 0&&(n=null),Rn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?So(t):t,{state:n,key:t&&t.key||r||nhe()})}function lm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function So(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var Jn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Jn||(Jn={}));const rhe=new Set(["lazy","caseSensitive","path","id","index","children"]);function ihe(e){return e.index===!0}function f9(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if($t(i.index!==!0||!i.children,"Cannot specify children on an index route"),$t(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),ihe(i)){let u=Rn({},i,t(i),{id:s});return r[s]=u,u}else{let u=Rn({},i,t(i),{id:s,children:void 0});return r[s]=u,i.children&&(u.children=f9(i.children,t,o,r)),u}})}function C1(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?So(t):t,i=Qp(r.pathname||"/",n);if(i==null)return null;let a=BF(e);ahe(a);let o=null;for(let s=0;o==null&&s{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};u.relativePath.startsWith("/")&&($t(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=sl([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&($t(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),BF(a.children,t,p,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:phe(c,a.index),routesMeta:p})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let u of UF(a.path))i(a,o,u)}),t}function UF(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=UF(r.join("/")),s=[];return s.push(...o.map(u=>u===""?a:[a,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function ahe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fhe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ohe=/^:\w+$/,she=3,lhe=2,uhe=1,che=10,dhe=-2,OI=e=>e==="*";function phe(e,t){let n=e.split("/"),r=n.length;return n.some(OI)&&(r+=dhe),t&&(r+=lhe),n.filter(i=>!OI(i)).reduce((i,a)=>i+(ohe.test(a)?she:a===""?uhe:che),r)}function fhe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function hhe(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(p==="*"){let m=s[f]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}return c[p]=Ehe(s[f]||"",p),c},{}),pathname:a,pathnameBase:o,pattern:e}}function mhe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Eu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function bhe(e){try{return decodeURI(e)}catch(t){return Eu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ehe(e,t){try{return decodeURIComponent(e)}catch(n){return Eu(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Qp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function vhe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?So(e):e;return{pathname:n?n.startsWith("/")?n:yhe(n,t):t,search:The(r),hash:She(i)}}function yhe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function a4(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function N7(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $F(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=So(e):(i=Rn({},e),$t(!i.pathname||!i.pathname.includes("?"),a4("?","pathname","search",i)),$t(!i.pathname||!i.pathname.includes("#"),a4("#","pathname","hash",i)),$t(!i.search||!i.search.includes("#"),a4("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let f=t.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let u=vhe(i,s),c=o&&o!=="/"&&o.endsWith("/"),p=(a||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}const sl=e=>e.join("/").replace(/\/\/+/g,"/"),_he=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),The=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,She=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class zF{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function HF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jF=["post","put","patch","delete"],whe=new Set(jF),Ahe=["get",...jF],Che=new Set(Ahe),xhe=new Set([301,302,303,307,308]),khe=new Set([307,308]),o4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ihe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},td={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},GF=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rhe=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Nhe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$t(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let j=e.detectErrorBoundary;i=$=>({hasErrorBoundary:j($)})}else i=Rhe;let a={},o=f9(e.routes,i,void 0,a),s,u=e.basename||"/",c=Rn({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),p=null,f=new Set,m=null,g=null,E=null,b=e.hydrationData!=null,T=C1(o,e.history.location,u),v=null;if(T==null){let j=ia(404,{pathname:e.history.location.pathname}),{matches:$,route:J}=$I(o);T=$,v={[J.id]:j}}let y=!T.some(j=>j.route.lazy)&&(!T.some(j=>j.route.loader)||e.hydrationData!=null),w,A={historyAction:e.history.action,location:e.history.location,matches:T,initialized:y,navigation:o4,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},D=Vn.Pop,k=!1,R,B=!1,W=!1,P=[],Q=[],z=new Map,le=0,he=-1,de=new Map,fe=new Set,Z=new Map,V=new Map,ce=new Map,N=!1;function me(){return p=e.history.listen(j=>{let{action:$,location:J,delta:be}=j;if(N){N=!1;return}Eu(ce.size===0||be!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Fe=ue({currentLocation:A.location,nextLocation:J,historyAction:$});if(Fe&&be!=null){N=!0,e.history.go(be*-1),jt(Fe,{state:"blocked",location:J,proceed(){jt(Fe,{state:"proceeding",proceed:void 0,reset:void 0,location:J}),e.history.go(be)},reset(){let De=new Map(A.blockers);De.set(Fe,td),re({blockers:De})}});return}return ne($,J)}),A.initialized||ne(Vn.Pop,A.location),w}function oe(){p&&p(),f.clear(),R&&R.abort(),A.fetchers.forEach((j,$)=>pe($)),A.blockers.forEach((j,$)=>Ke($))}function O(j){return f.add(j),()=>f.delete(j)}function re(j){A=Rn({},A,j),f.forEach($=>$(A))}function Te(j,$){var J,be;let Fe=A.actionData!=null&&A.navigation.formMethod!=null&&Ma(A.navigation.formMethod)&&A.navigation.state==="loading"&&((J=j.state)==null?void 0:J._isRedirect)!==!0,De;$.actionData?Object.keys($.actionData).length>0?De=$.actionData:De=null:Fe?De=A.actionData:De=null;let tt=$.loaderData?UI(A.loaderData,$.loaderData,$.matches||[],$.errors):A.loaderData,Je=A.blockers;Je.size>0&&(Je=new Map(Je),Je.forEach((Rt,Zt)=>Je.set(Zt,td)));let Ze=k===!0||A.navigation.formMethod!=null&&Ma(A.navigation.formMethod)&&((be=j.state)==null?void 0:be._isRedirect)!==!0;s&&(o=s,s=void 0),B||D===Vn.Pop||(D===Vn.Push?e.history.push(j,j.state):D===Vn.Replace&&e.history.replace(j,j.state)),re(Rn({},$,{actionData:De,loaderData:tt,historyAction:D,location:j,initialized:!0,navigation:o4,revalidation:"idle",restoreScrollPosition:Y(j,$.matches||A.matches),preventScrollReset:Ze,blockers:Je})),D=Vn.Pop,k=!1,B=!1,W=!1,P=[],Q=[]}async function K(j,$){if(typeof j=="number"){e.history.go(j);return}let J=h9(A.location,A.matches,u,c.v7_prependBasename,j,$==null?void 0:$.fromRouteId,$==null?void 0:$.relative),{path:be,submission:Fe,error:De}=DI(c.v7_normalizeFormMethod,!1,J,$),tt=A.location,Je=p9(A.location,be,$&&$.state);Je=Rn({},Je,e.history.encodeLocation(Je));let Ze=$&&$.replace!=null?$.replace:void 0,Rt=Vn.Push;Ze===!0?Rt=Vn.Replace:Ze===!1||Fe!=null&&Ma(Fe.formMethod)&&Fe.formAction===A.location.pathname+A.location.search&&(Rt=Vn.Replace);let Zt=$&&"preventScrollReset"in $?$.preventScrollReset===!0:void 0,kt=ue({currentLocation:tt,nextLocation:Je,historyAction:Rt});if(kt){jt(kt,{state:"blocked",location:Je,proceed(){jt(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:Je}),K(j,$)},reset(){let nn=new Map(A.blockers);nn.set(kt,td),re({blockers:nn})}});return}return await ne(Rt,Je,{submission:Fe,pendingError:De,preventScrollReset:Zt,replace:$&&$.replace})}function xe(){if(U(),re({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){ne(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}ne(D||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function ne(j,$,J){R&&R.abort(),R=null,D=j,B=(J&&J.startUninterruptedRevalidation)===!0,Qe(A.location,A.matches),k=(J&&J.preventScrollReset)===!0;let be=s||o,Fe=J&&J.overrideNavigation,De=C1(be,$,u);if(!De){let nn=ia(404,{pathname:$.pathname}),{matches:Yt,route:jr}=$I(be);ye(),Te($,{matches:Yt,loaderData:{},errors:{[jr.id]:nn}});return}if(A.initialized&&!W&&Fhe(A.location,$)&&!(J&&J.submission&&Ma(J.submission.formMethod))){Te($,{matches:De});return}R=new AbortController;let tt=rd(e.history,$,R.signal,J&&J.submission),Je,Ze;if(J&&J.pendingError)Ze={[x1(De).route.id]:J.pendingError};else if(J&&J.submission&&Ma(J.submission.formMethod)){let nn=await Le(tt,$,J.submission,De,{replace:J.replace});if(nn.shortCircuited)return;Je=nn.pendingActionData,Ze=nn.pendingActionError,Fe=j0($,J.submission),tt=new Request(tt.url,{signal:tt.signal})}let{shortCircuited:Rt,loaderData:Zt,errors:kt}=await Re(tt,$,De,Fe,J&&J.submission,J&&J.fetcherSubmission,J&&J.replace,Je,Ze);Rt||(R=null,Te($,Rn({matches:De},Je?{actionData:Je}:{},{loaderData:Zt,errors:kt})))}async function Le(j,$,J,be,Fe){Fe===void 0&&(Fe={}),U();let De=zhe($,J);re({navigation:De});let tt,Je=m9(be,$);if(!Je.route.action&&!Je.route.lazy)tt={type:Jn.error,error:ia(405,{method:j.method,pathname:$.pathname,routeId:Je.route.id})};else if(tt=await nd("action",j,Je,be,a,i,u),j.signal.aborted)return{shortCircuited:!0};if($1(tt)){let Ze;return Fe&&Fe.replace!=null?Ze=Fe.replace:Ze=tt.location===A.location.pathname+A.location.search,await Ge(A,tt,{submission:J,replace:Ze}),{shortCircuited:!0}}if(Ud(tt)){let Ze=x1(be,Je.route.id);return(Fe&&Fe.replace)!==!0&&(D=Vn.Push),{pendingActionData:{},pendingActionError:{[Ze.route.id]:tt.error}}}if(eu(tt))throw ia(400,{type:"defer-action"});return{pendingActionData:{[Je.route.id]:tt.data}}}async function Re(j,$,J,be,Fe,De,tt,Je,Ze){let Rt=be||j0($,Fe),Zt=Fe||De||jI(Rt),kt=s||o,[nn,Yt]=LI(e.history,A,J,Zt,$,W,P,Q,Z,fe,kt,u,Je,Ze);if(ye(Wt=>!(J&&J.some(Rr=>Rr.route.id===Wt))||nn&&nn.some(Rr=>Rr.route.id===Wt)),he=++le,nn.length===0&&Yt.length===0){let Wt=Se();return Te($,Rn({matches:J,loaderData:{},errors:Ze||null},Je?{actionData:Je}:{},Wt?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!B){Yt.forEach(Rr=>{let _i=A.fetchers.get(Rr.key),Al=id(void 0,_i?_i.data:void 0);A.fetchers.set(Rr.key,Al)});let Wt=Je||A.actionData;re(Rn({navigation:Rt},Wt?Object.keys(Wt).length===0?{actionData:null}:{actionData:Wt}:{},Yt.length>0?{fetchers:new Map(A.fetchers)}:{}))}Yt.forEach(Wt=>{z.has(Wt.key)&&ke(Wt.key),Wt.controller&&z.set(Wt.key,Wt.controller)});let jr=()=>Yt.forEach(Wt=>ke(Wt.key));R&&R.signal.addEventListener("abort",jr);let{results:Gr,loaderResults:Vr,fetcherResults:Ta}=await pt(A.matches,J,nn,Yt,j);if(j.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",jr),Yt.forEach(Wt=>z.delete(Wt.key));let ii=zI(Gr);if(ii){if(ii.idx>=nn.length){let Wt=Yt[ii.idx-nn.length].key;fe.add(Wt)}return await Ge(A,ii.result,{replace:tt}),{shortCircuited:!0}}let{loaderData:Ir,errors:ps}=BI(A,J,nn,Vr,Ze,Yt,Ta,V);V.forEach((Wt,Rr)=>{Wt.subscribe(_i=>{(_i||Wt.done)&&V.delete(Rr)})});let fs=Se(),Wr=Me(he),hs=fs||Wr||Yt.length>0;return Rn({loaderData:Ir,errors:ps},hs?{fetchers:new Map(A.fetchers)}:{})}function Xe(j){return A.fetchers.get(j)||Ihe}function Ve(j,$,J,be){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");z.has(j)&&ke(j);let Fe=s||o,De=h9(A.location,A.matches,u,c.v7_prependBasename,J,$,be==null?void 0:be.relative),tt=C1(Fe,De,u);if(!tt){ie(j,$,ia(404,{pathname:De}));return}let{path:Je,submission:Ze,error:Rt}=DI(c.v7_normalizeFormMethod,!0,De,be);if(Rt){ie(j,$,Rt);return}let Zt=m9(tt,Je);if(k=(be&&be.preventScrollReset)===!0,Ze&&Ma(Ze.formMethod)){dt(j,$,Je,Zt,tt,Ze);return}Z.set(j,{routeId:$,path:Je}),ot(j,$,Je,Zt,tt,Ze)}async function dt(j,$,J,be,Fe,De){if(U(),Z.delete(j),!be.route.action&&!be.route.lazy){let qe=ia(405,{method:De.formMethod,pathname:J,routeId:$});ie(j,$,qe);return}let tt=A.fetchers.get(j),Je=Hhe(De,tt);A.fetchers.set(j,Je),re({fetchers:new Map(A.fetchers)});let Ze=new AbortController,Rt=rd(e.history,J,Ze.signal,De);z.set(j,Ze);let Zt=le,kt=await nd("action",Rt,be,Fe,a,i,u);if(Rt.signal.aborted){z.get(j)===Ze&&z.delete(j);return}if($1(kt))if(z.delete(j),he>Zt){let qe=i1(void 0);A.fetchers.set(j,qe),re({fetchers:new Map(A.fetchers)});return}else{fe.add(j);let qe=id(De);return A.fetchers.set(j,qe),re({fetchers:new Map(A.fetchers)}),Ge(A,kt,{submission:De,isFetchActionRedirect:!0})}if(Ud(kt)){ie(j,$,kt.error);return}if(eu(kt))throw ia(400,{type:"defer-action"});let nn=A.navigation.location||A.location,Yt=rd(e.history,nn,Ze.signal),jr=s||o,Gr=A.navigation.state!=="idle"?C1(jr,A.navigation.location,u):A.matches;$t(Gr,"Didn't find any matches after fetcher action");let Vr=++le;de.set(j,Vr);let Ta=id(De,kt.data);A.fetchers.set(j,Ta);let[ii,Ir]=LI(e.history,A,Gr,De,nn,W,P,Q,Z,fe,jr,u,{[be.route.id]:kt.data},void 0);Ir.filter(qe=>qe.key!==j).forEach(qe=>{let ee=qe.key,Be=A.fetchers.get(ee),it=id(void 0,Be?Be.data:void 0);A.fetchers.set(ee,it),z.has(ee)&&ke(ee),qe.controller&&z.set(ee,qe.controller)}),re({fetchers:new Map(A.fetchers)});let ps=()=>Ir.forEach(qe=>ke(qe.key));Ze.signal.addEventListener("abort",ps);let{results:fs,loaderResults:Wr,fetcherResults:hs}=await pt(A.matches,Gr,ii,Ir,Yt);if(Ze.signal.aborted)return;Ze.signal.removeEventListener("abort",ps),de.delete(j),z.delete(j),Ir.forEach(qe=>z.delete(qe.key));let Wt=zI(fs);if(Wt){if(Wt.idx>=ii.length){let qe=Ir[Wt.idx-ii.length].key;fe.add(qe)}return Ge(A,Wt.result)}let{loaderData:Rr,errors:_i}=BI(A,A.matches,ii,Wr,void 0,Ir,hs,V);if(A.fetchers.has(j)){let qe=i1(kt.data);A.fetchers.set(j,qe)}let Al=Me(Vr);A.navigation.state==="loading"&&Vr>he?($t(D,"Expected pending action"),R&&R.abort(),Te(A.navigation.location,{matches:Gr,loaderData:Rr,errors:_i,fetchers:new Map(A.fetchers)})):(re(Rn({errors:_i,loaderData:UI(A.loaderData,Rr,Gr,_i)},Al||Ir.length>0?{fetchers:new Map(A.fetchers)}:{})),W=!1)}async function ot(j,$,J,be,Fe,De){let tt=A.fetchers.get(j),Je=id(De,tt?tt.data:void 0);A.fetchers.set(j,Je),re({fetchers:new Map(A.fetchers)});let Ze=new AbortController,Rt=rd(e.history,J,Ze.signal);z.set(j,Ze);let Zt=le,kt=await nd("loader",Rt,be,Fe,a,i,u);if(eu(kt)&&(kt=await qF(kt,Rt.signal,!0)||kt),z.get(j)===Ze&&z.delete(j),Rt.signal.aborted)return;if($1(kt))if(he>Zt){let Yt=i1(void 0);A.fetchers.set(j,Yt),re({fetchers:new Map(A.fetchers)});return}else{fe.add(j),await Ge(A,kt);return}if(Ud(kt)){let Yt=x1(A.matches,$);A.fetchers.delete(j),re({fetchers:new Map(A.fetchers),errors:{[Yt.route.id]:kt.error}});return}$t(!eu(kt),"Unhandled fetcher deferred data");let nn=i1(kt.data);A.fetchers.set(j,nn),re({fetchers:new Map(A.fetchers)})}async function Ge(j,$,J){let{submission:be,replace:Fe,isFetchActionRedirect:De}=J===void 0?{}:J;$.revalidate&&(W=!0);let tt=p9(j.location,$.location,Rn({_isRedirect:!0},De?{_isFetchActionRedirect:!0}:{}));if($t(tt,"Expected a location on the redirect navigation"),GF.test($.location)&&n){let Rt=e.history.createURL($.location),Zt=Qp(Rt.pathname,u)==null;if(t.location.origin!==Rt.origin||Zt){Fe?t.location.replace($.location):t.location.assign($.location);return}}R=null;let Je=Fe===!0?Vn.Replace:Vn.Push,Ze=be||jI(j.navigation);if(khe.has($.status)&&Ze&&Ma(Ze.formMethod))await ne(Je,tt,{submission:Rn({},Ze,{formAction:$.location}),preventScrollReset:k});else if(De)await ne(Je,tt,{overrideNavigation:j0(tt),fetcherSubmission:Ze,preventScrollReset:k});else{let Rt=j0(tt,Ze);await ne(Je,tt,{overrideNavigation:Rt,preventScrollReset:k})}}async function pt(j,$,J,be,Fe){let De=await Promise.all([...J.map(Ze=>nd("loader",Fe,Ze,$,a,i,u)),...be.map(Ze=>Ze.matches&&Ze.match&&Ze.controller?nd("loader",rd(e.history,Ze.path,Ze.controller.signal),Ze.match,Ze.matches,a,i,u):{type:Jn.error,error:ia(404,{pathname:Ze.path})})]),tt=De.slice(0,J.length),Je=De.slice(J.length);return await Promise.all([HI(j,J,tt,tt.map(()=>Fe.signal),!1,A.loaderData),HI(j,be.map(Ze=>Ze.match),Je,be.map(Ze=>Ze.controller?Ze.controller.signal:null),!0)]),{results:De,loaderResults:tt,fetcherResults:Je}}function U(){W=!0,P.push(...ye()),Z.forEach((j,$)=>{z.has($)&&(Q.push($),ke($))})}function ie(j,$,J){let be=x1(A.matches,$);pe(j),re({errors:{[be.route.id]:J},fetchers:new Map(A.fetchers)})}function pe(j){let $=A.fetchers.get(j);z.has(j)&&!($&&$.state==="loading"&&de.has(j))&&ke(j),Z.delete(j),de.delete(j),fe.delete(j),A.fetchers.delete(j)}function ke(j){let $=z.get(j);$t($,"Expected fetch controller: "+j),$.abort(),z.delete(j)}function ve(j){for(let $ of j){let J=Xe($),be=i1(J.data);A.fetchers.set($,be)}}function Se(){let j=[],$=!1;for(let J of fe){let be=A.fetchers.get(J);$t(be,"Expected fetcher: "+J),be.state==="loading"&&(fe.delete(J),j.push(J),$=!0)}return ve(j),$}function Me(j){let $=[];for(let[J,be]of de)if(be0}function ze(j,$){let J=A.blockers.get(j)||td;return ce.get(j)!==$&&ce.set(j,$),J}function Ke(j){A.blockers.delete(j),ce.delete(j)}function jt(j,$){let J=A.blockers.get(j)||td;$t(J.state==="unblocked"&&$.state==="blocked"||J.state==="blocked"&&$.state==="blocked"||J.state==="blocked"&&$.state==="proceeding"||J.state==="blocked"&&$.state==="unblocked"||J.state==="proceeding"&&$.state==="unblocked","Invalid blocker state transition: "+J.state+" -> "+$.state);let be=new Map(A.blockers);be.set(j,$),re({blockers:be})}function ue(j){let{currentLocation:$,nextLocation:J,historyAction:be}=j;if(ce.size===0)return;ce.size>1&&Eu(!1,"A router only supports one blocker at a time");let Fe=Array.from(ce.entries()),[De,tt]=Fe[Fe.length-1],Je=A.blockers.get(De);if(!(Je&&Je.state==="proceeding")&&tt({currentLocation:$,nextLocation:J,historyAction:be}))return De}function ye(j){let $=[];return V.forEach((J,be)=>{(!j||j(be))&&(J.cancel(),$.push(be),V.delete(be))}),$}function We(j,$,J){if(m=j,E=$,g=J||null,!b&&A.navigation===o4){b=!0;let be=Y(A.location,A.matches);be!=null&&re({restoreScrollPosition:be})}return()=>{m=null,E=null,g=null}}function at(j,$){return g&&g(j,$.map(be=>$he(be,A.loaderData)))||j.key}function Qe(j,$){if(m&&E){let J=at(j,$);m[J]=E()}}function Y(j,$){if(m){let J=at(j,$),be=m[J];if(typeof be=="number")return be}return null}function se(j){a={},s=f9(j,i,void 0,a)}return w={get basename(){return u},get state(){return A},get routes(){return o},initialize:me,subscribe:O,enableScrollRestoration:We,navigate:K,fetch:Ve,revalidate:xe,createHref:j=>e.history.createHref(j),encodeLocation:j=>e.history.encodeLocation(j),getFetcher:Xe,deleteFetcher:pe,dispose:oe,getBlocker:ze,deleteBlocker:Ke,_internalFetchControllers:z,_internalActiveDeferreds:V,_internalSetRoutes:se},w}function Ohe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function h9(e,t,n,r,i,a,o){let s,u;if(a!=null&&o!=="path"){s=[];for(let p of t)if(s.push(p),p.route.id===a){u=p;break}}else s=t,u=t[t.length-1];let c=$F(i||".",N7(s).map(p=>p.pathnameBase),Qp(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!O7(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:sl([n,c.pathname])),lm(c)}function DI(e,t,n,r){if(!r||!Ohe(r))return{path:n};if(r.formMethod&&!Uhe(r.formMethod))return{path:n,error:ia(405,{method:r.formMethod})};let i=()=>({path:n,error:ia(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=WF(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ma(o))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,E)=>{let[b,T]=E;return""+g+b+"="+T+` -`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ma(o))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}$t(typeof FormData=="function","FormData is not available in this environment");let u,c;if(r.formData)u=g9(r.formData),c=r.formData;else if(r.body instanceof FormData)u=g9(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=PI(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=PI(u)}catch{return i()}let p={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Ma(p.formMethod))return{path:n,submission:p};let f=So(n);return t&&f.search&&O7(f.search)&&u.append("index",""),f.search="?"+u,{path:lm(f),submission:p}}function Dhe(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function LI(e,t,n,r,i,a,o,s,u,c,p,f,m,g){let E=g?Object.values(g)[0]:m?Object.values(m)[0]:void 0,b=e.createURL(t.location),T=e.createURL(i),v=g?Object.keys(g)[0]:void 0,w=Dhe(n,v).filter((D,k)=>{if(D.route.lazy)return!0;if(D.route.loader==null)return!1;if(Lhe(t.loaderData,t.matches[k],D)||o.some(W=>W===D.route.id))return!0;let R=t.matches[k],B=D;return MI(D,Rn({currentUrl:b,currentParams:R.params,nextUrl:T,nextParams:B.params},r,{actionResult:E,defaultShouldRevalidate:a||b.pathname+b.search===T.pathname+T.search||b.search!==T.search||VF(R,B)}))}),A=[];return u.forEach((D,k)=>{if(!n.some(Q=>Q.route.id===D.routeId))return;let R=C1(p,D.path,f);if(!R){A.push({key:k,routeId:D.routeId,path:D.path,matches:null,match:null,controller:null});return}let B=t.fetchers.get(k),W=m9(R,D.path),P=!1;c.has(k)?P=!1:s.includes(k)?P=!0:B&&B.state!=="idle"&&B.data===void 0?P=a:P=MI(W,Rn({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:T,nextParams:n[n.length-1].params},r,{actionResult:E,defaultShouldRevalidate:a})),P&&A.push({key:k,routeId:D.routeId,path:D.path,matches:R,match:W,controller:new AbortController})}),[w,A]}function Lhe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function VF(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function MI(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function FI(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];$t(i,"No route found in manifest");let a={};for(let o in r){let u=i[o]!==void 0&&o!=="hasErrorBoundary";Eu(!u,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!u&&!rhe.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Rn({},t(i),{lazy:void 0}))}async function nd(e,t,n,r,i,a,o,s){s===void 0&&(s={});let u,c,p,f=E=>{let b,T=new Promise((v,y)=>b=y);return p=()=>b(),t.signal.addEventListener("abort",p),Promise.race([E({request:t,params:n.params,context:s.requestContext}),T])};try{let E=n.route[e];if(n.route.lazy)if(E)c=(await Promise.all([f(E),FI(n.route,a,i)]))[0];else if(await FI(n.route,a,i),E=n.route[e],E)c=await f(E);else if(e==="action"){let b=new URL(t.url),T=b.pathname+b.search;throw ia(405,{method:t.method,pathname:T,routeId:n.route.id})}else return{type:Jn.data,data:void 0};else if(E)c=await f(E);else{let b=new URL(t.url),T=b.pathname+b.search;throw ia(404,{pathname:T})}$t(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(E){u=Jn.error,c=E}finally{p&&t.signal.removeEventListener("abort",p)}if(Bhe(c)){let E=c.status;if(xhe.has(E)){let v=c.headers.get("Location");if($t(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!GF.test(v))v=h9(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,v);else if(!s.isStaticRequest){let y=new URL(t.url),w=v.startsWith("//")?new URL(y.protocol+v):new URL(v),A=Qp(w.pathname,o)!=null;w.origin===y.origin&&A&&(v=w.pathname+w.search+w.hash)}if(s.isStaticRequest)throw c.headers.set("Location",v),c;return{type:Jn.redirect,status:E,location:v,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(s.isRouteRequest)throw{type:u||Jn.data,response:c};let b,T=c.headers.get("Content-Type");return T&&/\bapplication\/json\b/.test(T)?b=await c.json():b=await c.text(),u===Jn.error?{type:u,error:new zF(E,c.statusText,b),headers:c.headers}:{type:Jn.data,data:b,statusCode:c.status,headers:c.headers}}if(u===Jn.error)return{type:u,error:c};if(Phe(c)){var m,g;return{type:Jn.deferred,deferredData:c,statusCode:(m=c.init)==null?void 0:m.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:Jn.data,data:c}}function rd(e,t,n,r){let i=e.createURL(WF(t)).toString(),a={signal:n};if(r&&Ma(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=g9(r.formData):a.body=r.formData}return new Request(i,a)}function g9(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function PI(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Mhe(e,t,n,r,i){let a={},o=null,s,u=!1,c={};return n.forEach((p,f)=>{let m=t[f].route.id;if($t(!$1(p),"Cannot handle redirect results in processLoaderData"),Ud(p)){let g=x1(e,m),E=p.error;r&&(E=Object.values(r)[0],r=void 0),o=o||{},o[g.route.id]==null&&(o[g.route.id]=E),a[m]=void 0,u||(u=!0,s=HF(p.error)?p.error.status:500),p.headers&&(c[m]=p.headers)}else eu(p)?(i.set(m,p.deferredData),a[m]=p.deferredData.data):a[m]=p.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(s=p.statusCode),p.headers&&(c[m]=p.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function BI(e,t,n,r,i,a,o,s){let{loaderData:u,errors:c}=Mhe(t,n,r,i,s);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function $I(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ia(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?s="defer() is not supported in actions":a==="invalid-body"&&(s="Unable to encode submission body")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new zF(e||500,o,new Error(s),!0)}function zI(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if($1(n))return{result:n,idx:t}}}function WF(e){let t=typeof e=="string"?So(e):e;return lm(Rn({},t,{hash:""}))}function Fhe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function eu(e){return e.type===Jn.deferred}function Ud(e){return e.type===Jn.error}function $1(e){return(e&&e.type)===Jn.redirect}function Phe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Bhe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Uhe(e){return Che.has(e.toLowerCase())}function Ma(e){return whe.has(e.toLowerCase())}async function HI(e,t,n,r,i,a){for(let o=0;of.route.id===u.route.id),p=c!=null&&!VF(c,u)&&(a&&a[u.route.id])!==void 0;if(eu(s)&&(i||p)){let f=r[o];$t(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await qF(s,f,i).then(m=>{m&&(n[o]=m||n[o])})}}}async function qF(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Jn.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Jn.error,error:i}}return{type:Jn.data,data:e.deferredData.data}}}function O7(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function $he(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function m9(e,t){let n=typeof t=="string"?So(t).search:t.search;if(e[e.length-1].route.index&&O7(n||""))return e[e.length-1];let r=N7(e);return r[r.length-1]}function jI(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function j0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function zhe(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function id(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function Hhe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function i1(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** + */function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var t=1;tp(g,typeof g=="string"?null:g.state,b===0?"default":void 0));let a=u(n??i.length-1),o=Wn.Pop,s=null;function u(g){return Math.min(Math.max(g,0),i.length-1)}function c(){return i[a]}function p(g,b,y){b===void 0&&(b=null);let T=Vy(i?c().pathname:"/",g,b,y);return Au(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(g)),T}function f(g){return typeof g=="string"?g:D2(g)}return{get index(){return a},get action(){return o},get location(){return c()},createHref:f,createURL(g){return new URL(f(g),"http://localhost")},encodeLocation(g){let b=typeof g=="string"?Ro(g):g;return{pathname:b.pathname||"",search:b.search||"",hash:b.hash||""}},push(g,b){o=Wn.Push;let y=p(g,b);a+=1,i.splice(a,i.length,y),r&&s&&s({action:o,location:y,delta:1})},replace(g,b){o=Wn.Replace;let y=p(g,b);i[a]=y,r&&s&&s({action:o,location:y,delta:0})},go(g){o=Wn.Pop;let b=u(a+g),y=i[b];a=b,s&&s({action:o,location:y,delta:g})},listen(g){return s=g,()=>{s=null}}}}function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Au(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Kge(){return Math.random().toString(36).substr(2,8)}function Vy(e,t,n,r){return n===void 0&&(n=null),Nn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ro(t):t,{state:n,key:t&&t.key||r||Kge()})}function D2(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ro(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var tr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tr||(tr={}));const Yge=new Set(["lazy","caseSensitive","path","id","index","children"]);function Xge(e){return e.index===!0}function Wy(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if($t(i.index!==!0||!i.children,"Cannot specify children on an index route"),$t(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Xge(i)){let u=Nn({},i,t(i),{id:s});return r[s]=u,u}else{let u=Nn({},i,t(i),{id:s,children:void 0});return r[s]=u,i.children&&(u.children=Wy(i.children,t,o,r)),u}})}function L1(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ro(t):t,i=hf(r.pathname||"/",n);if(i==null)return null;let a=rB(e);Zge(a);let o=null;for(let s=0;o==null&&s{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};u.relativePath.startsWith("/")&&($t(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=fl([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&($t(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),rB(a.children,t,p,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:ime(c,a.index),routesMeta:p})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let u of iB(a.path))i(a,o,u)}),t}function iB(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=iB(r.join("/")),s=[];return s.push(...o.map(u=>u===""?a:[a,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Zge(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ame(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Qge=/^:\w+$/,Jge=3,eme=2,tme=1,nme=10,rme=-2,DR=e=>e==="*";function ime(e,t){let n=e.split("/"),r=n.length;return n.some(DR)&&(r+=rme),t&&(r+=eme),n.filter(i=>!DR(i)).reduce((i,a)=>i+(Qge.test(a)?Jge:a===""?tme:nme),r)}function ame(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function ome(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(p==="*"){let m=s[f]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}return c[p]=cme(s[f]||"",p),c},{}),pathname:a,pathnameBase:o,pattern:e}}function lme(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Au(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function ume(e){try{return decodeURI(e)}catch(t){return Au(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function cme(e,t){try{return decodeURIComponent(e)}catch(n){return Au(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function hf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function dme(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ro(e):e;return{pathname:n?n.startsWith("/")?n:pme(n,t):t,search:hme(r),hash:gme(i)}}function pme(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function L4(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function vT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function aB(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ro(e):(i=Nn({},e),$t(!i.pathname||!i.pathname.includes("?"),L4("?","pathname","search",i)),$t(!i.pathname||!i.pathname.includes("#"),L4("#","pathname","hash",i)),$t(!i.search||!i.search.includes("#"),L4("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let f=t.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let u=dme(i,s),c=o&&o!=="/"&&o.endsWith("/"),p=(a||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}const fl=e=>e.join("/").replace(/\/\/+/g,"/"),fme=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hme=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gme=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class oB{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function sB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lB=["post","put","patch","delete"],mme=new Set(lB),bme=["get",...lB],yme=new Set(bme),Eme=new Set([301,302,303,307,308]),vme=new Set([307,308]),M4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_me={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},uB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tme=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Sme(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$t(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let G=e.detectErrorBoundary;i=K=>({hasErrorBoundary:G(K)})}else i=Tme;let a={},o=Wy(e.routes,i,void 0,a),s,u=e.basename||"/",c=Nn({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),p=null,f=new Set,m=null,g=null,b=null,y=e.hydrationData!=null,T=L1(o,e.history.location,u),E=null;if(T==null){let G=oa(404,{pathname:e.history.location.pathname}),{matches:K,route:ne}=zR(o);T=K,E={[ne.id]:G}}let v=!T.some(G=>G.route.lazy)&&(!T.some(G=>G.route.loader)||e.hydrationData!=null),w,A={historyAction:e.history.action,location:e.history.location,matches:T,initialized:v,navigation:M4,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},R=Wn.Pop,k=!1,N,B=!1,q=!1,P=[],Q=[],$=new Map,oe=0,fe=-1,ce=new Map,De=new Set,H=new Map,W=new Map,se=new Map,D=!1;function pe(){return p=e.history.listen(G=>{let{action:K,location:ne,delta:ve}=G;if(D){D=!1;return}Au(se.size===0||ve!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Qe=ue({currentLocation:A.location,nextLocation:ne,historyAction:K});if(Qe&&ve!=null){D=!0,e.history.go(ve*-1),jt(Qe,{state:"blocked",location:ne,proceed(){jt(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),e.history.go(ve)},reset(){let Fe=new Map(A.blockers);Fe.set(Qe,fd),ie({blockers:Fe})}});return}return te(K,ne)}),A.initialized||te(Wn.Pop,A.location),w}function le(){p&&p(),f.clear(),N&&N.abort(),A.fetchers.forEach((G,K)=>de(K)),A.blockers.forEach((G,K)=>Ye(K))}function L(G){return f.add(G),()=>f.delete(G)}function ie(G){A=Nn({},A,G),f.forEach(K=>K(A))}function Se(G,K){var ne,ve;let Qe=A.actionData!=null&&A.navigation.formMethod!=null&&Ba(A.navigation.formMethod)&&A.navigation.state==="loading"&&((ne=G.state)==null?void 0:ne._isRedirect)!==!0,Fe;K.actionData?Object.keys(K.actionData).length>0?Fe=K.actionData:Fe=null:Qe?Fe=A.actionData:Fe=null;let at=K.loaderData?$R(A.loaderData,K.loaderData,K.matches||[],K.errors):A.loaderData,rt=A.blockers;rt.size>0&&(rt=new Map(rt),rt.forEach((Rt,Qt)=>rt.set(Qt,fd)));let Je=k===!0||A.navigation.formMethod!=null&&Ba(A.navigation.formMethod)&&((ve=G.state)==null?void 0:ve._isRedirect)!==!0;s&&(o=s,s=void 0),B||R===Wn.Pop||(R===Wn.Push?e.history.push(G,G.state):R===Wn.Replace&&e.history.replace(G,G.state)),ie(Nn({},K,{actionData:Fe,loaderData:at,historyAction:R,location:G,initialized:!0,navigation:M4,revalidation:"idle",restoreScrollPosition:Ve(G,K.matches||A.matches),preventScrollReset:Je,blockers:rt})),R=Wn.Pop,k=!1,B=!1,q=!1,P=[],Q=[]}async function X(G,K){if(typeof G=="number"){e.history.go(G);return}let ne=qy(A.location,A.matches,u,c.v7_prependBasename,G,K==null?void 0:K.fromRouteId,K==null?void 0:K.relative),{path:ve,submission:Qe,error:Fe}=LR(c.v7_normalizeFormMethod,!1,ne,K),at=A.location,rt=Vy(A.location,ve,K&&K.state);rt=Nn({},rt,e.history.encodeLocation(rt));let Je=K&&K.replace!=null?K.replace:void 0,Rt=Wn.Push;Je===!0?Rt=Wn.Replace:Je===!1||Qe!=null&&Ba(Qe.formMethod)&&Qe.formAction===A.location.pathname+A.location.search&&(Rt=Wn.Replace);let Qt=K&&"preventScrollReset"in K?K.preventScrollReset===!0:void 0,kt=ue({currentLocation:at,nextLocation:rt,historyAction:Rt});if(kt){jt(kt,{state:"blocked",location:rt,proceed(){jt(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:rt}),X(G,K)},reset(){let rn=new Map(A.blockers);rn.set(kt,fd),ie({blockers:rn})}});return}return await te(Rt,rt,{submission:Qe,pendingError:Fe,preventScrollReset:Qt,replace:K&&K.replace})}function ke(){if(U(),ie({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){te(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}te(R||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function te(G,K,ne){N&&N.abort(),N=null,R=G,B=(ne&&ne.startUninterruptedRevalidation)===!0,me(A.location,A.matches),k=(ne&&ne.preventScrollReset)===!0;let ve=s||o,Qe=ne&&ne.overrideNavigation,Fe=L1(ve,K,u);if(!Fe){let rn=oa(404,{pathname:K.pathname}),{matches:Xt,route:Wr}=zR(ve);Ee(),Se(K,{matches:Xt,loaderData:{},errors:{[Wr.id]:rn}});return}if(A.initialized&&!q&&xme(A.location,K)&&!(ne&&ne.submission&&Ba(ne.submission.formMethod))){Se(K,{matches:Fe});return}N=new AbortController;let at=gd(e.history,K,N.signal,ne&&ne.submission),rt,Je;if(ne&&ne.pendingError)Je={[M1(Fe).route.id]:ne.pendingError};else if(ne&&ne.submission&&Ba(ne.submission.formMethod)){let rn=await Me(at,K,ne.submission,Fe,{replace:ne.replace});if(rn.shortCircuited)return;rt=rn.pendingActionData,Je=rn.pendingActionError,Qe=ah(K,ne.submission),at=new Request(at.url,{signal:at.signal})}let{shortCircuited:Rt,loaderData:Qt,errors:kt}=await Re(at,K,Fe,Qe,ne&&ne.submission,ne&&ne.fetcherSubmission,ne&&ne.replace,rt,Je);Rt||(N=null,Se(K,Nn({matches:Fe},rt?{actionData:rt}:{},{loaderData:Qt,errors:kt})))}async function Me(G,K,ne,ve,Qe){Qe===void 0&&(Qe={}),U();let Fe=Dme(K,ne);ie({navigation:Fe});let at,rt=Yy(ve,K);if(!rt.route.action&&!rt.route.lazy)at={type:tr.error,error:oa(405,{method:G.method,pathname:K.pathname,routeId:rt.route.id})};else if(at=await hd("action",G,rt,ve,a,i,u),G.signal.aborted)return{shortCircuited:!0};if(K1(at)){let Je;return Qe&&Qe.replace!=null?Je=Qe.replace:Je=at.location===A.location.pathname+A.location.search,await je(A,at,{submission:ne,replace:Je}),{shortCircuited:!0}}if(tp(at)){let Je=M1(ve,rt.route.id);return(Qe&&Qe.replace)!==!0&&(R=Wn.Push),{pendingActionData:{},pendingActionError:{[Je.route.id]:at.error}}}if(su(at))throw oa(400,{type:"defer-action"});return{pendingActionData:{[rt.route.id]:at.data}}}async function Re(G,K,ne,ve,Qe,Fe,at,rt,Je){let Rt=ve||ah(K,Qe),Qt=Qe||Fe||GR(Rt),kt=s||o,[rn,Xt]=MR(e.history,A,ne,Qt,K,q,P,Q,H,De,kt,u,rt,Je);if(Ee(qt=>!(ne&&ne.some(Dr=>Dr.route.id===qt))||rn&&rn.some(Dr=>Dr.route.id===qt)),fe=++oe,rn.length===0&&Xt.length===0){let qt=Te();return Se(K,Nn({matches:ne,loaderData:{},errors:Je||null},rt?{actionData:rt}:{},qt?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!B){Xt.forEach(Dr=>{let Si=A.fetchers.get(Dr.key),Nl=md(void 0,Si?Si.data:void 0);A.fetchers.set(Dr.key,Nl)});let qt=rt||A.actionData;ie(Nn({navigation:Rt},qt?Object.keys(qt).length===0?{actionData:null}:{actionData:qt}:{},Xt.length>0?{fetchers:new Map(A.fetchers)}:{}))}Xt.forEach(qt=>{$.has(qt.key)&&xe(qt.key),qt.controller&&$.set(qt.key,qt.controller)});let Wr=()=>Xt.forEach(qt=>xe(qt.key));N&&N.signal.addEventListener("abort",Wr);let{results:qr,loaderResults:Kr,fetcherResults:Aa}=await pt(A.matches,ne,rn,Xt,G);if(G.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",Wr),Xt.forEach(qt=>$.delete(qt.key));let si=HR(qr);if(si){if(si.idx>=rn.length){let qt=Xt[si.idx-rn.length].key;De.add(qt)}return await je(A,si.result,{replace:at}),{shortCircuited:!0}}let{loaderData:Or,errors:Es}=UR(A,ne,rn,Kr,Je,Xt,Aa,W);W.forEach((qt,Dr)=>{qt.subscribe(Si=>{(Si||qt.done)&&W.delete(Dr)})});let vs=Te(),Yr=Le(fe),_s=vs||Yr||Xt.length>0;return Nn({loaderData:Or,errors:Es},_s?{fetchers:new Map(A.fetchers)}:{})}function Ze(G){return A.fetchers.get(G)||_me}function We(G,K,ne,ve){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$.has(G)&&xe(G);let Qe=s||o,Fe=qy(A.location,A.matches,u,c.v7_prependBasename,ne,K,ve==null?void 0:ve.relative),at=L1(Qe,Fe,u);if(!at){re(G,K,oa(404,{pathname:Fe}));return}let{path:rt,submission:Je,error:Rt}=LR(c.v7_normalizeFormMethod,!0,Fe,ve);if(Rt){re(G,K,Rt);return}let Qt=Yy(at,rt);if(k=(ve&&ve.preventScrollReset)===!0,Je&&Ba(Je.formMethod)){dt(G,K,rt,Qt,at,Je);return}H.set(G,{routeId:K,path:rt}),ot(G,K,rt,Qt,at,Je)}async function dt(G,K,ne,ve,Qe,Fe){if(U(),H.delete(G),!ve.route.action&&!ve.route.lazy){let Ke=oa(405,{method:Fe.formMethod,pathname:ne,routeId:K});re(G,K,Ke);return}let at=A.fetchers.get(G),rt=Lme(Fe,at);A.fetchers.set(G,rt),ie({fetchers:new Map(A.fetchers)});let Je=new AbortController,Rt=gd(e.history,ne,Je.signal,Fe);$.set(G,Je);let Qt=oe,kt=await hd("action",Rt,ve,Qe,a,i,u);if(Rt.signal.aborted){$.get(G)===Je&&$.delete(G);return}if(K1(kt))if($.delete(G),fe>Qt){let Ke=d1(void 0);A.fetchers.set(G,Ke),ie({fetchers:new Map(A.fetchers)});return}else{De.add(G);let Ke=md(Fe);return A.fetchers.set(G,Ke),ie({fetchers:new Map(A.fetchers)}),je(A,kt,{submission:Fe,isFetchActionRedirect:!0})}if(tp(kt)){re(G,K,kt.error);return}if(su(kt))throw oa(400,{type:"defer-action"});let rn=A.navigation.location||A.location,Xt=gd(e.history,rn,Je.signal),Wr=s||o,qr=A.navigation.state!=="idle"?L1(Wr,A.navigation.location,u):A.matches;$t(qr,"Didn't find any matches after fetcher action");let Kr=++oe;ce.set(G,Kr);let Aa=md(Fe,kt.data);A.fetchers.set(G,Aa);let[si,Or]=MR(e.history,A,qr,Fe,rn,q,P,Q,H,De,Wr,u,{[ve.route.id]:kt.data},void 0);Or.filter(Ke=>Ke.key!==G).forEach(Ke=>{let J=Ke.key,Be=A.fetchers.get(J),it=md(void 0,Be?Be.data:void 0);A.fetchers.set(J,it),$.has(J)&&xe(J),Ke.controller&&$.set(J,Ke.controller)}),ie({fetchers:new Map(A.fetchers)});let Es=()=>Or.forEach(Ke=>xe(Ke.key));Je.signal.addEventListener("abort",Es);let{results:vs,loaderResults:Yr,fetcherResults:_s}=await pt(A.matches,qr,si,Or,Xt);if(Je.signal.aborted)return;Je.signal.removeEventListener("abort",Es),ce.delete(G),$.delete(G),Or.forEach(Ke=>$.delete(Ke.key));let qt=HR(vs);if(qt){if(qt.idx>=si.length){let Ke=Or[qt.idx-si.length].key;De.add(Ke)}return je(A,qt.result)}let{loaderData:Dr,errors:Si}=UR(A,A.matches,si,Yr,void 0,Or,_s,W);if(A.fetchers.has(G)){let Ke=d1(kt.data);A.fetchers.set(G,Ke)}let Nl=Le(Kr);A.navigation.state==="loading"&&Kr>fe?($t(R,"Expected pending action"),N&&N.abort(),Se(A.navigation.location,{matches:qr,loaderData:Dr,errors:Si,fetchers:new Map(A.fetchers)})):(ie(Nn({errors:Si,loaderData:$R(A.loaderData,Dr,qr,Si)},Nl||Or.length>0?{fetchers:new Map(A.fetchers)}:{})),q=!1)}async function ot(G,K,ne,ve,Qe,Fe){let at=A.fetchers.get(G),rt=md(Fe,at?at.data:void 0);A.fetchers.set(G,rt),ie({fetchers:new Map(A.fetchers)});let Je=new AbortController,Rt=gd(e.history,ne,Je.signal);$.set(G,Je);let Qt=oe,kt=await hd("loader",Rt,ve,Qe,a,i,u);if(su(kt)&&(kt=await pB(kt,Rt.signal,!0)||kt),$.get(G)===Je&&$.delete(G),Rt.signal.aborted)return;if(K1(kt))if(fe>Qt){let Xt=d1(void 0);A.fetchers.set(G,Xt),ie({fetchers:new Map(A.fetchers)});return}else{De.add(G),await je(A,kt);return}if(tp(kt)){let Xt=M1(A.matches,K);A.fetchers.delete(G),ie({fetchers:new Map(A.fetchers),errors:{[Xt.route.id]:kt.error}});return}$t(!su(kt),"Unhandled fetcher deferred data");let rn=d1(kt.data);A.fetchers.set(G,rn),ie({fetchers:new Map(A.fetchers)})}async function je(G,K,ne){let{submission:ve,replace:Qe,isFetchActionRedirect:Fe}=ne===void 0?{}:ne;K.revalidate&&(q=!0);let at=Vy(G.location,K.location,Nn({_isRedirect:!0},Fe?{_isFetchActionRedirect:!0}:{}));if($t(at,"Expected a location on the redirect navigation"),uB.test(K.location)&&n){let Rt=e.history.createURL(K.location),Qt=hf(Rt.pathname,u)==null;if(t.location.origin!==Rt.origin||Qt){Qe?t.location.replace(K.location):t.location.assign(K.location);return}}N=null;let rt=Qe===!0?Wn.Replace:Wn.Push,Je=ve||GR(G.navigation);if(vme.has(K.status)&&Je&&Ba(Je.formMethod))await te(rt,at,{submission:Nn({},Je,{formAction:K.location}),preventScrollReset:k});else if(Fe)await te(rt,at,{overrideNavigation:ah(at),fetcherSubmission:Je,preventScrollReset:k});else{let Rt=ah(at,Je);await te(rt,at,{overrideNavigation:Rt,preventScrollReset:k})}}async function pt(G,K,ne,ve,Qe){let Fe=await Promise.all([...ne.map(Je=>hd("loader",Qe,Je,K,a,i,u)),...ve.map(Je=>Je.matches&&Je.match&&Je.controller?hd("loader",gd(e.history,Je.path,Je.controller.signal),Je.match,Je.matches,a,i,u):{type:tr.error,error:oa(404,{pathname:Je.path})})]),at=Fe.slice(0,ne.length),rt=Fe.slice(ne.length);return await Promise.all([jR(G,ne,at,at.map(()=>Qe.signal),!1,A.loaderData),jR(G,ve.map(Je=>Je.match),rt,ve.map(Je=>Je.controller?Je.controller.signal:null),!0)]),{results:Fe,loaderResults:at,fetcherResults:rt}}function U(){q=!0,P.push(...Ee()),H.forEach((G,K)=>{$.has(K)&&(Q.push(K),xe(K))})}function re(G,K,ne){let ve=M1(A.matches,K);de(G),ie({errors:{[ve.route.id]:ne},fetchers:new Map(A.fetchers)})}function de(G){let K=A.fetchers.get(G);$.has(G)&&!(K&&K.state==="loading"&&ce.has(G))&&xe(G),H.delete(G),ce.delete(G),De.delete(G),A.fetchers.delete(G)}function xe(G){let K=$.get(G);$t(K,"Expected fetch controller: "+G),K.abort(),$.delete(G)}function ye(G){for(let K of G){let ne=Ze(K),ve=d1(ne.data);A.fetchers.set(K,ve)}}function Te(){let G=[],K=!1;for(let ne of De){let ve=A.fetchers.get(ne);$t(ve,"Expected fetcher: "+ne),ve.state==="loading"&&(De.delete(ne),G.push(ne),K=!0)}return ye(G),K}function Le(G){let K=[];for(let[ne,ve]of ce)if(ve0}function ze(G,K){let ne=A.blockers.get(G)||fd;return se.get(G)!==K&&se.set(G,K),ne}function Ye(G){A.blockers.delete(G),se.delete(G)}function jt(G,K){let ne=A.blockers.get(G)||fd;$t(ne.state==="unblocked"&&K.state==="blocked"||ne.state==="blocked"&&K.state==="blocked"||ne.state==="blocked"&&K.state==="proceeding"||ne.state==="blocked"&&K.state==="unblocked"||ne.state==="proceeding"&&K.state==="unblocked","Invalid blocker state transition: "+ne.state+" -> "+K.state);let ve=new Map(A.blockers);ve.set(G,K),ie({blockers:ve})}function ue(G){let{currentLocation:K,nextLocation:ne,historyAction:ve}=G;if(se.size===0)return;se.size>1&&Au(!1,"A router only supports one blocker at a time");let Qe=Array.from(se.entries()),[Fe,at]=Qe[Qe.length-1],rt=A.blockers.get(Fe);if(!(rt&&rt.state==="proceeding")&&at({currentLocation:K,nextLocation:ne,historyAction:ve}))return Fe}function Ee(G){let K=[];return W.forEach((ne,ve)=>{(!G||G(ve))&&(ne.cancel(),K.push(ve),W.delete(ve))}),K}function qe(G,K,ne){if(m=G,b=K,g=ne||null,!y&&A.navigation===M4){y=!0;let ve=Ve(A.location,A.matches);ve!=null&&ie({restoreScrollPosition:ve})}return()=>{m=null,b=null,g=null}}function j(G,K){return g&&g(G,K.map(ve=>Ome(ve,A.loaderData)))||G.key}function me(G,K){if(m&&b){let ne=j(G,K);m[ne]=b()}}function Ve(G,K){if(m){let ne=j(G,K),ve=m[ne];if(typeof ve=="number")return ve}return null}function ge(G){a={},s=Wy(G,i,void 0,a)}return w={get basename(){return u},get state(){return A},get routes(){return o},initialize:pe,subscribe:L,enableScrollRestoration:qe,navigate:X,fetch:We,revalidate:ke,createHref:G=>e.history.createHref(G),encodeLocation:G=>e.history.encodeLocation(G),getFetcher:Ze,deleteFetcher:de,dispose:le,getBlocker:ze,deleteBlocker:Ye,_internalFetchControllers:$,_internalActiveDeferreds:W,_internalSetRoutes:ge},w}function wme(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function qy(e,t,n,r,i,a,o){let s,u;if(a!=null&&o!=="path"){s=[];for(let p of t)if(s.push(p),p.route.id===a){u=p;break}}else s=t,u=t[t.length-1];let c=aB(i||".",vT(s).map(p=>p.pathnameBase),hf(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!_T(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:fl([n,c.pathname])),D2(c)}function LR(e,t,n,r){if(!r||!wme(r))return{path:n};if(r.formMethod&&!Nme(r.formMethod))return{path:n,error:oa(405,{method:r.formMethod})};let i=()=>({path:n,error:oa(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=dB(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ba(o))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,b)=>{let[y,T]=b;return""+g+y+"="+T+` +`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ba(o))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}$t(typeof FormData=="function","FormData is not available in this environment");let u,c;if(r.formData)u=Ky(r.formData),c=r.formData;else if(r.body instanceof FormData)u=Ky(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=BR(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=BR(u)}catch{return i()}let p={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Ba(p.formMethod))return{path:n,submission:p};let f=Ro(n);return t&&f.search&&_T(f.search)&&u.append("index",""),f.search="?"+u,{path:D2(f),submission:p}}function Ame(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function MR(e,t,n,r,i,a,o,s,u,c,p,f,m,g){let b=g?Object.values(g)[0]:m?Object.values(m)[0]:void 0,y=e.createURL(t.location),T=e.createURL(i),E=g?Object.keys(g)[0]:void 0,w=Ame(n,E).filter((R,k)=>{if(R.route.lazy)return!0;if(R.route.loader==null)return!1;if(Cme(t.loaderData,t.matches[k],R)||o.some(q=>q===R.route.id))return!0;let N=t.matches[k],B=R;return FR(R,Nn({currentUrl:y,currentParams:N.params,nextUrl:T,nextParams:B.params},r,{actionResult:b,defaultShouldRevalidate:a||y.pathname+y.search===T.pathname+T.search||y.search!==T.search||cB(N,B)}))}),A=[];return u.forEach((R,k)=>{if(!n.some(Q=>Q.route.id===R.routeId))return;let N=L1(p,R.path,f);if(!N){A.push({key:k,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let B=t.fetchers.get(k),q=Yy(N,R.path),P=!1;c.has(k)?P=!1:s.includes(k)?P=!0:B&&B.state!=="idle"&&B.data===void 0?P=a:P=FR(q,Nn({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:T,nextParams:n[n.length-1].params},r,{actionResult:b,defaultShouldRevalidate:a})),P&&A.push({key:k,routeId:R.routeId,path:R.path,matches:N,match:q,controller:new AbortController})}),[w,A]}function Cme(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function cB(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function FR(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function PR(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];$t(i,"No route found in manifest");let a={};for(let o in r){let u=i[o]!==void 0&&o!=="hasErrorBoundary";Au(!u,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!u&&!Yge.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Nn({},t(i),{lazy:void 0}))}async function hd(e,t,n,r,i,a,o,s){s===void 0&&(s={});let u,c,p,f=b=>{let y,T=new Promise((E,v)=>y=v);return p=()=>y(),t.signal.addEventListener("abort",p),Promise.race([b({request:t,params:n.params,context:s.requestContext}),T])};try{let b=n.route[e];if(n.route.lazy)if(b)c=(await Promise.all([f(b),PR(n.route,a,i)]))[0];else if(await PR(n.route,a,i),b=n.route[e],b)c=await f(b);else if(e==="action"){let y=new URL(t.url),T=y.pathname+y.search;throw oa(405,{method:t.method,pathname:T,routeId:n.route.id})}else return{type:tr.data,data:void 0};else if(b)c=await f(b);else{let y=new URL(t.url),T=y.pathname+y.search;throw oa(404,{pathname:T})}$t(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(b){u=tr.error,c=b}finally{p&&t.signal.removeEventListener("abort",p)}if(Rme(c)){let b=c.status;if(Eme.has(b)){let E=c.headers.get("Location");if($t(E,"Redirects returned/thrown from loaders/actions must have a Location header"),!uB.test(E))E=qy(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,E);else if(!s.isStaticRequest){let v=new URL(t.url),w=E.startsWith("//")?new URL(v.protocol+E):new URL(E),A=hf(w.pathname,o)!=null;w.origin===v.origin&&A&&(E=w.pathname+w.search+w.hash)}if(s.isStaticRequest)throw c.headers.set("Location",E),c;return{type:tr.redirect,status:b,location:E,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(s.isRouteRequest)throw{type:u||tr.data,response:c};let y,T=c.headers.get("Content-Type");return T&&/\bapplication\/json\b/.test(T)?y=await c.json():y=await c.text(),u===tr.error?{type:u,error:new oB(b,c.statusText,y),headers:c.headers}:{type:tr.data,data:y,statusCode:c.status,headers:c.headers}}if(u===tr.error)return{type:u,error:c};if(Ime(c)){var m,g;return{type:tr.deferred,deferredData:c,statusCode:(m=c.init)==null?void 0:m.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:tr.data,data:c}}function gd(e,t,n,r){let i=e.createURL(dB(t)).toString(),a={signal:n};if(r&&Ba(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=Ky(r.formData):a.body=r.formData}return new Request(i,a)}function Ky(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function BR(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function kme(e,t,n,r,i){let a={},o=null,s,u=!1,c={};return n.forEach((p,f)=>{let m=t[f].route.id;if($t(!K1(p),"Cannot handle redirect results in processLoaderData"),tp(p)){let g=M1(e,m),b=p.error;r&&(b=Object.values(r)[0],r=void 0),o=o||{},o[g.route.id]==null&&(o[g.route.id]=b),a[m]=void 0,u||(u=!0,s=sB(p.error)?p.error.status:500),p.headers&&(c[m]=p.headers)}else su(p)?(i.set(m,p.deferredData),a[m]=p.deferredData.data):a[m]=p.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(s=p.statusCode),p.headers&&(c[m]=p.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function UR(e,t,n,r,i,a,o,s){let{loaderData:u,errors:c}=kme(t,n,r,i,s);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function zR(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function oa(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?s="defer() is not supported in actions":a==="invalid-body"&&(s="Unable to encode submission body")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new oB(e||500,o,new Error(s),!0)}function HR(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(K1(n))return{result:n,idx:t}}}function dB(e){let t=typeof e=="string"?Ro(e):e;return D2(Nn({},t,{hash:""}))}function xme(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function su(e){return e.type===tr.deferred}function tp(e){return e.type===tr.error}function K1(e){return(e&&e.type)===tr.redirect}function Ime(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Rme(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Nme(e){return yme.has(e.toLowerCase())}function Ba(e){return mme.has(e.toLowerCase())}async function jR(e,t,n,r,i,a){for(let o=0;of.route.id===u.route.id),p=c!=null&&!cB(c,u)&&(a&&a[u.route.id])!==void 0;if(su(s)&&(i||p)){let f=r[o];$t(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await pB(s,f,i).then(m=>{m&&(n[o]=m||n[o])})}}}async function pB(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:tr.data,data:e.deferredData.unwrappedData}}catch(i){return{type:tr.error,error:i}}return{type:tr.data,data:e.deferredData.data}}}function _T(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ome(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function Yy(e,t){let n=typeof t=="string"?Ro(t).search:t.search;if(e[e.length-1].route.index&&_T(n||""))return e[e.length-1];let r=vT(e);return r[r.length-1]}function GR(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function ah(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Dme(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function md(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function Lme(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function d1(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** * React Router v6.14.2 * * Copyright (c) Remix Software Inc. @@ -689,39 +692,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),o=C.useRef(!1);return XF(()=>{o.current=!0}),C.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){n.go(u);return}let p=$F(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:sl([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,i,e])}const Ghe=C.createContext(null);function Vhe(e){let t=C.useContext(Sl).outlet;return t&&C.createElement(Ghe.Provider,{value:e},t)}function Whe(){let{matches:e}=C.useContext(Sl),t=e[e.length-1];return t?t.params:{}}function qhe(e,t,n){pm()||$t(!1);let{navigator:r}=C.useContext(cm),{matches:i}=C.useContext(Sl),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=D7(),c;if(t){var p;let b=typeof t=="string"?So(t):t;s==="/"||(p=b.pathname)!=null&&p.startsWith(s)||$t(!1),c=b}else c=u;let f=c.pathname||"/",m=s==="/"?f:f.slice(s.length)||"/",g=C1(e,{pathname:m}),E=Qhe(g&&g.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:sl([s,r.encodeLocation?r.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:sl([s,r.encodeLocation?r.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n);return t&&E?C.createElement(dm.Provider,{value:{location:mp({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Vn.Pop}},E):E}function Khe(){let e=QF(),t=HF(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,a)}const Yhe=C.createElement(Khe,null);class Xhe extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?C.createElement(Sl.Provider,{value:this.props.routeContext},C.createElement(YF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Zhe(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(um);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Sl.Provider,{value:t},r)}function Qhe(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let s=a.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id]));s>=0||$t(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,u,c)=>{let p=u.route.id?o==null?void 0:o[u.route.id]:null,f=null;n&&(f=u.route.errorElement||Yhe);let m=t.concat(a.slice(0,c+1)),g=()=>{let E;return p?E=f:u.route.Component?E=C.createElement(u.route.Component,null):u.route.element?E=u.route.element:E=s,C.createElement(Zhe,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:E})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?C.createElement(Xhe,{location:n.location,revalidation:n.revalidation,component:f,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var b9;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(b9||(b9={}));var bp;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(bp||(bp={}));function Jhe(e){let t=C.useContext(um);return t||$t(!1),t}function ege(e){let t=C.useContext(KF);return t||$t(!1),t}function tge(e){let t=C.useContext(Sl);return t||$t(!1),t}function ZF(e){let t=tge(),n=t.matches[t.matches.length-1];return n.route.id||$t(!1),n.route.id}function QF(){var e;let t=C.useContext(YF),n=ege(bp.UseRouteError),r=ZF(bp.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function nge(){let{router:e}=Jhe(b9.UseNavigateStable),t=ZF(bp.UseNavigateStable),n=C.useRef(!1);return XF(()=>{n.current=!0}),C.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,mp({fromRouteId:t},a)))},[e,t])}const rge="startTransition",GI=v4[rge];function ige(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=C.useState(n.state),{v7_startTransition:o}=r||{},s=C.useCallback(f=>{o&&GI?GI(()=>a(f)):a(f)},[a,o]);C.useLayoutEffect(()=>n.subscribe(s),[n,s]);let u=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,m,g)=>n.navigate(f,{state:m,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(f,m,g)=>n.navigate(f,{replace:!0,state:m,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[n]),c=n.basename||"/",p=C.useMemo(()=>({router:n,navigator:u,static:!1,basename:c}),[n,u,c]);return C.createElement(C.Fragment,null,C.createElement(um.Provider,{value:p},C.createElement(KF.Provider,{value:i},C.createElement(sge,{basename:c,location:i.location,navigationType:i.historyAction,navigator:u},i.initialized?C.createElement(age,{routes:n.routes,state:i}):t))),null)}function age(e){let{routes:t,state:n}=e;return qhe(t,void 0,n)}function oge(e){return Vhe(e.context)}function sge(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Vn.Pop,navigator:a,static:o=!1}=e;pm()&&$t(!1);let s=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=So(r));let{pathname:c="/",search:p="",hash:f="",state:m=null,key:g="default"}=r,E=C.useMemo(()=>{let b=Qp(c,s);return b==null?null:{location:{pathname:b,search:p,hash:f,state:m,key:g},navigationType:i}},[s,c,p,f,m,g,i]);return E==null?null:C.createElement(cm.Provider,{value:u},C.createElement(dm.Provider,{children:n,value:E}))}var VI;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(VI||(VI={}));new Promise(()=>{});function lge(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:C.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function uge(e,t){return Nhe({basename:t==null?void 0:t.basename,future:mp({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:the({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:lge}).initialize()}const cge=He.div` + */function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),o=C.useRef(!1);return gB(()=>{o.current=!0}),C.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){n.go(u);return}let p=aB(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:fl([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,i,e])}const Fme=C.createContext(null);function Pme(e){let t=C.useContext(Il).outlet;return t&&C.createElement(Fme.Provider,{value:e},t)}function Bme(){let{matches:e}=C.useContext(Il),t=e[e.length-1];return t?t.params:{}}function Ume(e,t,n){P2()||$t(!1);let{navigator:r}=C.useContext(M2),{matches:i}=C.useContext(Il),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=TT(),c;if(t){var p;let y=typeof t=="string"?Ro(t):t;s==="/"||(p=y.pathname)!=null&&p.startsWith(s)||$t(!1),c=y}else c=u;let f=c.pathname||"/",m=s==="/"?f:f.slice(s.length)||"/",g=L1(e,{pathname:m}),b=Gme(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:fl([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:fl([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n);return t&&b?C.createElement(F2.Provider,{value:{location:Np({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Wn.Pop}},b):b}function $me(){let e=bB(),t=sB(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,a)}const zme=C.createElement($me,null);class Hme extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?C.createElement(Il.Provider,{value:this.props.routeContext},C.createElement(hB.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jme(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(L2);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Il.Provider,{value:t},r)}function Gme(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let s=a.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id]));s>=0||$t(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,u,c)=>{let p=u.route.id?o==null?void 0:o[u.route.id]:null,f=null;n&&(f=u.route.errorElement||zme);let m=t.concat(a.slice(0,c+1)),g=()=>{let b;return p?b=f:u.route.Component?b=C.createElement(u.route.Component,null):u.route.element?b=u.route.element:b=s,C.createElement(jme,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:b})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?C.createElement(Hme,{location:n.location,revalidation:n.revalidation,component:f,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var Xy;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Xy||(Xy={}));var Op;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(Op||(Op={}));function Vme(e){let t=C.useContext(L2);return t||$t(!1),t}function Wme(e){let t=C.useContext(fB);return t||$t(!1),t}function qme(e){let t=C.useContext(Il);return t||$t(!1),t}function mB(e){let t=qme(),n=t.matches[t.matches.length-1];return n.route.id||$t(!1),n.route.id}function bB(){var e;let t=C.useContext(hB),n=Wme(Op.UseRouteError),r=mB(Op.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Kme(){let{router:e}=Vme(Xy.UseNavigateStable),t=mB(Op.UseNavigateStable),n=C.useRef(!1);return gB(()=>{n.current=!0}),C.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Np({fromRouteId:t},a)))},[e,t])}const Yme="startTransition",VR=Q4[Yme];function Xme(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=C.useState(n.state),{v7_startTransition:o}=r||{},s=C.useCallback(f=>{o&&VR?VR(()=>a(f)):a(f)},[a,o]);C.useLayoutEffect(()=>n.subscribe(s),[n,s]);let u=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,m,g)=>n.navigate(f,{state:m,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(f,m,g)=>n.navigate(f,{replace:!0,state:m,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[n]),c=n.basename||"/",p=C.useMemo(()=>({router:n,navigator:u,static:!1,basename:c}),[n,u,c]);return C.createElement(C.Fragment,null,C.createElement(L2.Provider,{value:p},C.createElement(fB.Provider,{value:i},C.createElement(Jme,{basename:c,location:i.location,navigationType:i.historyAction,navigator:u},i.initialized?C.createElement(Zme,{routes:n.routes,state:i}):t))),null)}function Zme(e){let{routes:t,state:n}=e;return Ume(t,void 0,n)}function Qme(e){return Pme(e.context)}function Jme(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Wn.Pop,navigator:a,static:o=!1}=e;P2()&&$t(!1);let s=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=Ro(r));let{pathname:c="/",search:p="",hash:f="",state:m=null,key:g="default"}=r,b=C.useMemo(()=>{let y=hf(c,s);return y==null?null:{location:{pathname:y,search:p,hash:f,state:m,key:g},navigationType:i}},[s,c,p,f,m,g,i]);return b==null?null:C.createElement(M2.Provider,{value:u},C.createElement(F2.Provider,{children:n,value:b}))}var WR;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(WR||(WR={}));new Promise(()=>{});function e2e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:C.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function t2e(e,t){return Sme({basename:t==null?void 0:t.basename,future:Np({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:qge({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:e2e}).initialize()}const n2e=Ge.div` display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; align-items: center; -`;function dge(){const e=cs(),[t,n]=ut.useState(""),r=C.useContext(Ya),i=us();return I.jsxs("div",{className:"p-4",children:[I.jsx("h3",{children:"Free Trial Limit Reached"}),I.jsxs("p",{children:["You've reached the free trial limit of 250 free inputs with Continue's OpenAI API key. To keep using Continue, you can either use your own API key, or use a local LLM. To read more about the options, see our"," ",I.jsx("a",{href:"https://continue.dev/docs/customization/models",target:"_blank",children:"documentation"}),". If you're just looking for fastest way to keep going, type '/config' to open your Continue config file and paste your API key into the OpenAIFreeTrial object."]}),I.jsx(ng,{type:"text",placeholder:"Enter your OpenAI API key",value:t,onChange:a=>n(a.target.value)}),I.jsxs(cge,{children:[I.jsx(op,{onClick:()=>{i(Q1(!1)),e("/models")},children:"Select model"}),I.jsx(op,{disabled:!t,onClick:()=>{r==null||r.addModelForRole("*","OpenAI",{model:"gpt-4",api_key:t,title:"GPT-4"}),i(Q1(!1))},children:"Use my API key"})]})]})}const pge=He.div` - border-radius: ${wt}; - cursor: ${e=>e.isDisabled?"not-allowed":"pointer"}; - padding: 8px 8px; - background-color: ${Lt}; - border: 1px solid transparent; - - display: flex; - justify-content: space-between; - align-items: center; - - color: ${e=>e.isDisabled?vt:Ht}; - - &:hover { - border: ${e=>e.isDisabled?"1px solid transparent":`1px solid ${vt}`}; - } -`,fge=He.p` - font-size: ${e=>e.fontSize}px; - margin: 0; -`;function hge(e){const[t,n]=C.useState(!1);return I.jsxs(I.Fragment,{children:[I.jsxs(pge,{"data-tooltip-id":`suggestion-disabled-${e.textInput.replace(" ","")}`,onClick:e.onClick,onMouseEnter:()=>{e.disabled||n(!0)},onMouseLeave:()=>n(!1),isDisabled:e.disabled,children:[I.jsx(fge,{fontSize:nr(),children:e.description}),I.jsx(ZY,{width:"1.6em",height:"1.6em",style:{opacity:t?1:0,backgroundColor:Lt,boxShadow:`1px 1px 10px ${Lt}`,borderRadius:wt}})]}),I.jsx(Gs,{id:`suggestion-disabled-${e.textInput.replace(" ","")}`,place:"bottom",hidden:!e.disabled,children:"Must highlight code first"})]})}const G0=[I.jsx("p",{children:"Ask a question"}),I.jsxs("p",{children:["1. Highlight code in the editor",I.jsx("br",{}),"2. Press ",localStorage.getItem("ide")==="jetbrains"?"cmd+J":"cmd+M"," ","to select the code",I.jsx("br",{}),"3. Ask a question"]}),I.jsxs("p",{children:["1. Highlight code in the editor",I.jsx("br",{}),"2. Press"," ",localStorage.getItem("ide")==="jetbrains"?"cmd+shift+J":"cmd+shift+M"," ","to select the code",I.jsx("br",{}),"3. Request an edit"]})],wh=[[{title:G0[1],description:"Is there any way to make this code more efficient?",textInput:"Is there any way to make this code more efficient?"},{title:G0[1],description:"What does this function do?",textInput:"What does this function do?"}],[{title:G0[2],description:"/edit write comments for this code",textInput:"/edit write comments for this code"},{title:G0[2],description:"/edit make this code more efficient",textInput:"/edit make this code more efficient"}]],WI=wh.length,gge=He.div` - margin: 4px; - margin-left: 8px; - margin-right: 8px; - position: relative; - background-color: #ff02; - border-radius: ${wt}; - padding: 8px 4px; -`;function mge(e){var m,g;const t=R7(),[n,r]=C.useState(parseInt(localStorage.getItem("stage")||"0")),i=zt(E=>E.serverState.history.timeline),a=zt(E=>{var b;return(b=E.serverState.session_info)==null?void 0:b.session_id}),o=zt(E=>E.serverState.selected_context_items.some(b=>b.description.id.provider_title==="code")),[s,u]=C.useState(!1);C.useEffect(()=>{u(!1)},[a]);const[c,p]=C.useState(0),f=C.useCallback(()=>i.filter(b=>!b.step.hide&&b.step.name==="User Input").length-c<=0,[i,c]);return I.jsx(I.Fragment,{children:s||n>WI-1||!f()||parseInt(localStorage.getItem("tutorialClosedCount")||"0")>0||I.jsxs(gge,{children:[I.jsxs("div",{className:"flex",children:[I.jsx(dD,{width:"1.3em",height:"1.3em",color:"yellow"}),I.jsxs("b",{className:"ml-1",children:["Tutorial (",n+1,"/",WI,")"]})]}),I.jsx("div",{style:{color:Ht,paddingLeft:"4px"},children:n{u(!0);const E=parseInt(localStorage.getItem("tutorialClosedCount")||"0");localStorage.setItem("tutorialClosedCount",(E+1).toString()),t==null||t.capture("tutorial_closed",{stage:n,tutorialClosedCount:E})},children:I.jsx(T2,{width:"1.2em",height:"1.2em"})}),I.jsx("div",{className:"grid grid-cols-2 gap-2 mt-2",children:(g=wh[n])==null?void 0:g.map((E,b)=>I.jsx(hge,{disabled:!o,...E,onClick:()=>{o&&(e.onClick(E.textInput),t==null||t.capture("tutorial_stage_complete",{stage:n}),r(n+1),localStorage.setItem("stage",(n+1).toString()),u(!0),p(T=>T+1))}},b))})]})})}const bge=He.div` +`;function r2e(){const e=bs(),[t,n]=ut.useState(""),r=C.useContext(to),i=eo();return I.jsxs("div",{className:"p-4",children:[I.jsx("h3",{children:"Free Trial Limit Reached"}),I.jsxs("p",{children:["You've reached the free trial limit of 250 free inputs with Continue's OpenAI API key. To keep using Continue, you can either use your own API key, or use a local LLM. To read more about the options, see our"," ",I.jsx("a",{href:"https://continue.dev/docs/customization/models",target:"_blank",children:"documentation"}),". If you're just looking for fastest way to keep going, type '/config' to open your Continue config file and paste your API key into the OpenAIFreeTrial object."]}),I.jsx(Ig,{type:"text",placeholder:"Enter your OpenAI API key",value:t,onChange:a=>n(a.target.value)}),I.jsxs(n2e,{children:[I.jsx(oc,{onClick:()=>{i(cc(!1)),e("/models")},children:"Select model"}),I.jsx(oc,{disabled:!t,onClick:()=>{r==null||r.addModelForRole("*","OpenAI",{model:"gpt-4",api_key:t,title:"GPT-4"}),i(cc(!1))},children:"Use my API key"})]})]})}const i2e=Ge.div` overflow-y: scroll; scrollbar-width: none; /* Firefox */ @@ -730,7 +706,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &::-webkit-scrollbar { display: none; } -`,Ege=He(ng)` +`,a2e=Ge(Ig)` border: none; outline: none; @@ -744,7 +720,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &:focus { outline: none; } -`,vge=He.div` +`,o2e=Ge.div` position: relative; background-color: transparent; @@ -756,45 +732,45 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho content: ""; position: absolute; height: calc(100% - 12px); - border-left: 2px solid ${vt}; + border-left: 2px solid ${Et}; left: 28px; z-index: 0; bottom: 12px; } -`,yge=He.div` - border-radius: ${wt}; +`;Ge.div` + border-radius: ${It}; color: gray; padding: 8px; margin: 8px; text-align: center; -`,_ge=He.div` +`;const s2e=Ge.div` display: flex; justify-content: space-between; align-items: center; padding: 4px; padding-left: 8px; padding-right: 8px; - border-bottom: 0.5px solid ${vt}; + border-bottom: 0.5px solid ${Et}; position: sticky; top: 0; z-index: 100; - background-color: ${Kt}; -`;function qI(e){var de,fe;const t=C.useContext(Ya),n=R7(),r=us(),i=cs(),a=zt(Z=>Z.serverState.history),o=zt(Z=>{var V;return(V=Z.serverState.config.models)==null?void 0:V.default}),s=zt(Z=>Z.misc.serverStatusMessage),u=zt(Z=>Z.serverState.user_input_queue),c=zt(Z=>{var V;return(V=Z.serverState.session_info)==null?void 0:V.title}),[p,f]=C.useState(!1),[m,g]=C.useState([]),[E,b]=C.useState(!0),[T,v]=C.useState(!0),y=C.useRef(null),w=C.useRef(null),A=C.useRef(null),D=zt(Z=>Z.uiState.bottomMessage),k=zt(Z=>Z.misc.takenAction);C.useEffect(()=>{A.current&&r(hpe(A.current.getBoundingClientRect().top{var V;const Z=()=>{var O,re;const N=((O=w.current)==null?void 0:O.scrollTop)||0,me=((re=w.current)==null?void 0:re.scrollHeight)||0,oe=window.innerHeight||0;N+oe+-25>=me?B(!1):B(!0)};return(V=w.current)==null||V.addEventListener("scroll",Z),()=>{window.removeEventListener("scroll",Z)}},[w.current]),C.useLayoutEffect(()=>{var Z,V;R||(V=w.current)==null||V.scrollTo({top:(Z=w.current)==null?void 0:Z.scrollHeight,behavior:"instant"})},[(de=w.current)==null?void 0:de.scrollHeight,a.timeline]),C.useEffect(()=>{const Z=V=>{var ce;V.key==="Backspace"&&tg(V)&&!V.shiftKey&&typeof(a==null?void 0:a.current_index)<"u"&&((ce=a.timeline[a.current_index])!=null&&ce.active)?t==null||t.deleteAtIndex(a.current_index):V.key==="Escape"&&r(au(void 0))};return window.addEventListener("keydown",Z),()=>{window.removeEventListener("keydown",Z)}},[t,a]),C.useEffect(()=>{t==null||t.onStateUpdate(Z=>{var ce;const V=Z.active&&Z.history.current_index{const me=[...N];for(let oe=me.length;oe{if(t&&E){b(!1);for(const Z of u)t.sendMainInput(Z)}},[t,u,E]);const W=Z=>{var V,ce;if(r(pd(null)),y.current){let N=y.current.inputValue;if(N.trim()==="")return;if(N.startsWith("#")&&(N.length===7||N.length===4)){localStorage.setItem("continueButtonColor",N),y.current.setInputValue("");return}if(Z&&tg(Z)&&(N=`/edit ${N}`),y.current.setInputValue(""),!t){r(efe(N));return}if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!N.startsWith("/")||N.startsWith("/edit"))){const oe=localStorage.getItem("ftc");if(oe){const O=parseInt(oe);if(localStorage.setItem("ftc",(O+1).toString()),O>=250){r(Q1(!0)),r(X3(I.jsx(dge,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}if(f(!0),a&&a.current_index>=0&&a.current_index{O.preventDefault(),n==null||n.capture("user_interest_form",{name:O.target.elements[0].value,email:O.target.elements[1].value}),r(X3(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(fpe(!1)),r(Q1(!0)))}else localStorage.setItem("mainTextEntryCounter","1")}},P=(Z,V)=>{t&&t.sendStepUserInput(Z,V)},Q=C.useCallback(Z=>{const V=[];let ce=-1;for(let N=Z;N>=0;N--)if((a==null?void 0:a.timeline.length)>N&&a.timeline[N].step.name==="User Input"&&a.timeline[N].step.hide===!1){V.push(N),ce=N;break}if(V.length===0)return[];for(let N=ce+1;N<(a==null?void 0:a.timeline.length)&&!((a==null?void 0:a.timeline.length)>N&&a.timeline[N].step.name==="User Input"&&a.timeline[N].step.hide===!1);N++)V.push(N);return V},[a.timeline]),z=C.useCallback(Z=>{const V=Q(Z),ce=V[0];g(N=>{const me=[...N];return me[Z]=!me[Z],!V.some((O,re)=>re>0&&me[O])?me[ce]=!1:!V.some((re,Te)=>Te>0&&!me[re])&&(me[ce]=!0),me})},[Q]);C.useEffect(()=>{c&&he(c)},[c]);const[le,he]=C.useState(c||"New Session");return I.jsxs(bge,{ref:w,onKeyDown:Z=>{Z.key==="Enter"&&Z.ctrlKey&&W()},children:[I.jsxs(_ge,{children:[I.jsx(Ege,{onClick:Z=>{Z.target.setSelectionRange(0,Z.target.value.length)},value:le,onChange:Z=>he(Z.target.value),onBlur:Z=>{Z.target.value===c||typeof c>"u"&&Z.target.value==="New Session"||t==null||t.setCurrentSessionTitle(Z.target.value)},onKeyDown:Z=>{Z.key==="Enter"?(Z.preventDefault(),Z.target.blur()):Z.key==="Escape"&&(he(c||"New Session"),Z.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[a.timeline.filter(Z=>!Z.step.hide).length>0&&I.jsx(vi,{onClick:()=>{a.timeline.filter(Z=>!Z.step.hide).length>0&&(r(sm(!1)),t==null||t.loadSession(void 0))},text:"New Session (⌥⌘N)",children:I.jsx(cD,{width:"1.4em",height:"1.4em"})}),I.jsx(vi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(UY,{width:"1.4em",height:"1.4em"})})]})]}),(k||T)&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(Y0e,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{rl("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(mge,{onClick:Z=>{t==null||t.sendMainInput(Z)}}),I.jsx(vge,{children:a==null?void 0:a.timeline.map((Z,V)=>{var ce,N,me;return Z.step.hide?null:I.jsx(C.Fragment,{children:Z.step.name==="User Input"?Z.step.hide||I.jsx(Zk,{isMainInput:!1,value:Z.step.description,active:Q(V).some(oe=>a.timeline[oe].active)||a.timeline[V].active,onEnter:(oe,O)=>{O&&(t==null||t.editStepAtIndex(O,V)),oe==null||oe.stopPropagation(),oe==null||oe.preventDefault()},groupIndices:Q(V),onToggle:oe=>{g(O=>{const re=[...O];return Q(V).forEach(Te=>{re[Te]=oe}),re})},onToggleAll:oe=>{g(O=>O.map(re=>oe))},isToggleOpen:typeof m[V]>"u"?!0:m[V],index:V,onDelete:()=>{Q(V).forEach(oe=>{t==null||t.deleteAtIndex(oe)})}}):I.jsx(Q0e,{historyNode:Z,iconElement:Z.step.class_name==="DefaultModelEditCodeStep"?I.jsx(NY,{width:"16px",height:"16px"}):(ce=Z.observation)!=null&&ce.error?I.jsx(lD,{width:"16px",height:"16px",color:"red"}):I.jsx(sD,{width:"16px",height:"16px"}),open:typeof m[V]>"u"?!((N=Z.observation)!=null&&N.error):m[V],onToggle:()=>z(V),children:(me=Z.observation)!=null&&me.error?I.jsx(ehe,{onClose:()=>z(V),historyNode:Z,onDelete:()=>t==null?void 0:t.deleteAtIndex(V)}):I.jsx(Kse,{index:V,isLast:V===a.timeline.length-1,isFirst:V===0,open:typeof m[V]>"u"?!0:m[V],onUserInput:oe=>{P(oe,V)},inFuture:V>(a==null?void 0:a.current_index),historyNode:Z,onReverse:()=>{t==null||t.reverseToIndex(V)},onRetry:()=>{t==null||t.retryAtIndex(V),f(!0)},onDelete:()=>{t==null||t.deleteAtIndex(V)},noUserInputParent:Q(V).length===0},V)})},V)})}),I.jsx("div",{children:(fe=u==null?void 0:u.map)==null?void 0:fe.call(u,(Z,V)=>I.jsx(yge,{children:Z},V))}),I.jsx("div",{ref:A}),I.jsx(Zk,{isMainInput:!0,ref:y,onEnter:(Z,V)=>{W(Z),Z==null||Z.stopPropagation(),Z==null||Z.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const Tge=He.div` + background-color: ${Ht}; +`;function l2e({error:e,resetErrorBoundary:t}){return I.jsxs("div",{role:"alert",children:[I.jsx("p",{children:"Something went wrong:"}),I.jsx("pre",{style:{color:"red"},children:e.message}),I.jsx(oc,{onClick:t,children:"Restart"})]})}function qR(e){var ce,De;const t=C.useContext(to),n=Bge(),r=eo(),i=bs(),a=zt(H=>H.sessionState),o=zt(H=>{var W;return(W=H.serverState.config.models)==null?void 0:W.default}),s=zt(H=>H.misc.serverStatusMessage),u=zt(H=>H.sessionState.title),c=zt(H=>H.sessionState.active),[p,f]=C.useState(!1),[m,g]=C.useState([]);C.useState(!0);const[b,y]=C.useState(!1);C.useEffect(()=>{setTimeout(()=>{y(!0)},5e3)},[]);const T=C.useRef(null),E=C.useRef(null),v=C.useRef(null),w=zt(H=>H.uiState.bottomMessage),A=zt(H=>H.misc.takenAction);C.useEffect(()=>{v.current&&r(W0e(v.current.getBoundingClientRect().top{var W;const H=()=>{var L,ie;const D=((L=E.current)==null?void 0:L.scrollTop)||0,pe=((ie=E.current)==null?void 0:ie.scrollHeight)||0,le=window.innerHeight||0;D+le+-25>=pe?k(!1):k(!0)};return(W=E.current)==null||W.addEventListener("scroll",H),()=>{window.removeEventListener("scroll",H)}},[E.current]),C.useLayoutEffect(()=>{var H,W;R||(W=E.current)==null||W.scrollTo({top:(H=E.current)==null?void 0:H.scrollHeight,behavior:"instant"})},[(ce=E.current)==null?void 0:ce.scrollHeight,a.history]),C.useEffect(()=>{const H=W=>{W.key==="Backspace"&&xg(W)&&!W.shiftKey?(t==null||t.stopSession(),r(Zd(!1))):W.key==="Escape"&&r(pu(void 0))};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[t,c]);const N=C.useCallback(H=>{if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!H.startsWith("/")||H.startsWith("/edit"))){const pe=localStorage.getItem("ftc");if(pe){const le=parseInt(pe);if(localStorage.setItem("ftc",(le+1).toString()),le>=250){r(cc(!0)),r(C4(I.jsx(r2e,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}f(!0);const W=[...a.history,{name:"User Input",description:H,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:H},hide:!1,depth:0}],se={history:W,context_items:a.context_items};for(let pe of a.context_items)r(SP({item:pe,index:W.length-1}));t.runFromState(se),W.push({name:"Generating Response...",description:" ",observations:[],logs:[],step_type:"SimpleChatStep",params:{},hide:!1,depth:0}),r(KI(W)),r(Zd(!0));const D=localStorage.getItem("mainTextEntryCounter");if(D){let pe=parseInt(D);localStorage.setItem("mainTextEntryCounter",(pe+1).toString()),pe===300&&(r(C4(I.jsxs("div",{className:"text-center p-4",children:["👋 Thanks for using Continue. We are a beta product and love working closely with our first users. If you're interested in speaking, enter your name and email. We won't use this information for anything other than reaching out.",I.jsx("br",{}),I.jsx("br",{}),I.jsxs("form",{onSubmit:le=>{le.preventDefault(),n==null||n.capture("user_interest_form",{name:le.target.elements[0].value,email:le.target.elements[1].value}),r(C4(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(V0e(!1)),r(cc(!0)))}else localStorage.setItem("mainTextEntryCounter","1")},[t,a.history,a.context_items]);C.useEffect(()=>{const H=W=>{W.data.type==="userInput"&&N(W.data.input)};return window.addEventListener("message",H),()=>window.removeEventListener("message",H)},[N]);const B=H=>{if(r(Ad(null)),T.current&&t){let W=T.current.inputValue;if(W.trim()==="")return;if(W.startsWith("#")&&(W.length===7||W.length===4)){localStorage.setItem("continueButtonColor",W),T.current.setInputValue("");return}H&&xg(H)&&(W=`/edit ${W}`),T.current.setInputValue(""),N(W)}},q=(H,W)=>{t&&t.sendStepUserInput(H,W)},P=C.useCallback(H=>{let W=!1;for(let se=H+1;se{const W=[];let se=-1;for(let D=H;D>=0;D--)if(typeof a.history[D]<"u"&&a.history[D].name==="User Input"&&a.history[D].hide===!1){W.push(D),se=D;break}if(W.length===0)return[];for(let D=se+1;D{const W=Q(H),se=W[0];g(D=>{const pe=[...D];return pe[H]=!pe[H],!W.some((L,ie)=>ie>0&&pe[L])?pe[se]=!1:!W.some((ie,Se)=>Se>0&&!pe[ie])&&(pe[se]=!0),pe})},[Q]);C.useEffect(()=>{u&&fe(u)},[u]);const[oe,fe]=C.useState(u||"New Session");return I.jsxs(i2e,{ref:E,onKeyDown:H=>{H.key==="Enter"&&H.ctrlKey&&B()},children:[I.jsxs(s2e,{children:[I.jsx(a2e,{onClick:H=>{H.target.setSelectionRange(0,H.target.value.length)},value:oe,onChange:H=>fe(H.target.value),onBlur:H=>{H.target.value===u||typeof u>"u"&&H.target.value==="New Session"||r(wP(H.target.value))},onKeyDown:H=>{H.key==="Enter"?(H.preventDefault(),H.target.blur()):H.key==="Escape"&&(fe(u||"New Session"),H.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[I.jsx(zi,{onClick:()=>{t==null||t.stopSession(),r(uc())},text:"New Session (⌥⌘N)",children:I.jsx(CL,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(OZ,{width:"1.4em",height:"1.4em"})})]})]}),A&&b&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(zge,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{qa("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(o2e,{children:(De=a==null?void 0:a.history)==null?void 0:De.map((H,W)=>H.hide?null:I.jsx(C.Fragment,{children:I.jsx(WX,{FallbackComponent:l2e,onReset:()=>{t==null||t.stopSession(),r(uc())},children:H.name==="User Input"?H.hide||I.jsx(QI,{isMainInput:!1,value:H.description,active:c&&P(W),onEnter:(se,D)=>{if(D){t==null||t.stopSession();const pe=[...a.history.slice(0,W),{name:"User Input",description:D,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:D},hide:!1,depth:0}];r(KI(pe)),r(Zd(!0));const le={history:pe,context_items:a.context_items};console.log("State: ",le),t.runFromState(le)}se==null||se.stopPropagation(),se==null||se.preventDefault()},groupIndices:Q(W),onToggle:se=>{g(D=>{const pe=[...D];return Q(W).forEach(le=>{pe[le]=se}),pe})},onToggleAll:se=>{g(D=>D.map(pe=>se))},isToggleOpen:typeof m[W]>"u"?!0:m[W],index:W,onDelete:()=>{Q(W).forEach(se=>{console.log(se),r(S4(se))})}}):I.jsx(Gge,{historyNode:H,iconElement:H.step_type==="DefaultModelEditCodeStep"?I.jsx(wZ,{width:"16px",height:"16px"}):H.error?I.jsx(wL,{width:"16px",height:"16px",color:"red"}):I.jsx(SL,{width:"16px",height:"16px"}),open:typeof m[W]>"u"?!H.error:m[W],onToggle:()=>$(W),children:H.error?I.jsx(Wge,{onClose:()=>$(W),error:H.error,onDelete:()=>{r(S4(W))}}):I.jsx(Uue,{index:W,isLast:W===a.history.length-1,isFirst:W===0,open:typeof m[W]>"u"?!0:m[W],onUserInput:se=>{q(se,W)},step:H,onReverse:()=>{t==null||t.reverseToIndex(W)},onRetry:()=>{t==null||t.retryAtIndex(W),f(!0)},onDelete:()=>{r(S4(W))},noUserInputParent:Q(W).length===0},W)})})},W))}),I.jsx("div",{ref:v}),I.jsx(QI,{isMainInput:!0,ref:T,onEnter:(H,W)=>{B(H),H==null||H.stopPropagation(),H==null||H.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const u2e=Ge.div` display: flex; flex-direction: row; align-items: center; justify-content: center; padding: 0.5rem; - border-radius: ${wt}; + border-radius: ${It}; cursor: pointer; - border: 1px solid ${Ht}; + border: 1px solid ${Yt}; - color: ${Ht}; - background-color: ${Kt}; + color: ${Yt}; + background-color: ${Ht}; &:hover { - background-color: ${Ht}; - color: ${Kt}; + background-color: ${Yt}; + color: ${Ht}; } width: fit-content; @@ -803,31 +779,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho overflow: hidden; text-overflow: ellipsis; -`;function Sge(e){const{title:t,checked:n,onClick:r}=e;return I.jsxs(Tge,{onClick:r,checked:n,children:[n&&I.jsx(vY,{width:"1.4em",height:"1.4em"}),t]})}const wge=He.tr` +`;function c2e(e){const{title:t,checked:n,onClick:r}=e;return I.jsxs(u2e,{onClick:r,checked:n,children:[n&&I.jsx(pZ,{width:"1.4em",height:"1.4em"}),t]})}const d2e=Ge.tr` &:hover { - background-color: ${Lt}; + background-color: ${Vt}; } overflow-wrap: anywhere; - border-bottom: 1px solid ${Lt}; - border-top: 1px solid ${Lt}; -`,V0=e=>{let t=new Date(e);return isNaN(t.getTime())&&(t=new Date(parseInt(e)*1e3)),t},s4=He.tr` + border-bottom: 1px solid ${Vt}; + border-top: 1px solid ${Vt}; +`,oh=e=>{let t=new Date(e);return isNaN(t.getTime())&&(t=new Date(parseInt(e)*1e3)),t},F4=Ge.tr` padding: 4px; padding-left: 16px; padding-right: 16px; - background-color: ${Lt}; + background-color: ${Vt}; width: 100%; font-weight: bold; text-align: center; margin: 0; -`,Age=He.div` +`,p2e=Ge.div` cursor: pointer; padding-left: 1rem; padding-right: 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem; -`;function KI(e){const t=e.includes("/")?"/":"\\";return e.split(t).pop()||e}function Cge(){const e=cs(),t=us(),[n,r]=C.useState([]),[i,a]=C.useState([]),o=C.useContext(Ya),s=zt(b=>b.config.apiUrl),u=zt(b=>b.config.workspacePaths),[c,p]=C.useState(!1);C.useEffect(()=>{(async()=>{if(!s)return;const T=await fetch(`${s}/sessions/list`);if(!T.ok)throw new Error(`HTTP error! status: ${T.status}`);const v=await T.json();r(v)})()},[o]),C.useEffect(()=>{a(n.filter(b=>!c||typeof u>"u"||typeof b.workspace_directory>"u"?!0:u.includes(b.workspace_directory)).sort((b,T)=>V0(T.date_created).getTime()-V0(b.date_created).getTime()))},[c,n]);const f=new Date(Date.now()-1e3*60*60*24),m=new Date(Date.now()-1e3*60*60*24*7),g=new Date(Date.now()-1e3*60*60*24*30),E=new Date(0);return I.jsxs("div",{className:"overflow-y-scroll",style:{fontSize:nr()},children:[I.jsxs("div",{className:"sticky top-0",style:{backgroundColor:Kt},children:[I.jsxs("div",{className:"items-center flex m-0 p-0",style:{borderBottom:`0.5px solid ${vt}`},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"History"})]}),u&&u.length>0&&I.jsx(Sge,{checked:c,onClick:()=>p(b=>!b),title:`Show only sessions from ${KI(u[u.length-1])}/`})]}),n.filter(b=>!c||typeof u>"u"||typeof b.workspace_directory>"u"?!0:u.includes(b.workspace_directory)).length===0&&I.jsxs("div",{className:"text-center m-4",children:['No past sessions found. To start a new session, either click the "+" button or use the keyboard shortcut: ',I.jsx("b",{children:"Option + Command + N"})]}),I.jsxs("div",{children:[I.jsx("table",{className:"w-full border-spacing-0 border-collapse",children:I.jsx("tbody",{children:i.map((b,T)=>{const v=T>0?V0(i[T-1].date_created):E,y=V0(b.date_created);return I.jsxs(C.Fragment,{children:[T===0&&y>f&&I.jsx(s4,{children:"Today"}),ym&&v>f&&I.jsx(s4,{children:"This Week"}),yg&&v>m&&I.jsx(s4,{children:"This Month"}),I.jsx(wge,{children:I.jsx("td",{children:I.jsxs(Age,{onClick:()=>{o==null||o.loadSession(b.session_id),t(sm(!0)),e("/")},children:[I.jsx("div",{className:"text-md",children:b.title}),I.jsxs("div",{className:"text-gray-400",children:[y.toLocaleString("en-US",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"numeric",minute:"2-digit",hour12:!0})," | ",KI(b.workspace_directory||""),"/"]})]})})},T)]},T)})})}),I.jsx("br",{}),I.jsx("i",{className:"text-sm ml-4",children:"All session data is saved in ~/.continue/sessions"})]})]})}const xge=He.div` +`;function KR(e){const t=e.includes("/")?"/":"\\";return e.split(t).pop()||e}function f2e(){const e=bs(),t=eo(),[n,r]=C.useState([]),[i,a]=C.useState([]),o=C.useContext(to),s=zt(E=>E.config.apiUrl),u=zt(E=>E.config.workspacePaths),c=zt(E=>E.sessionState),p=zt(E=>{var v;return((v=E.config.workspacePaths)==null?void 0:v[0])||""}),[f,m]=C.useState(!1);C.useEffect(()=>{(async()=>{if(!s)return;const v=await fetch(`${s}/sessions/list`);if(!v.ok)throw new Error(`HTTP error! status: ${v.status}`);const w=await v.json();r(w)})()},[o]),C.useEffect(()=>{a(n.filter(E=>!f||typeof u>"u"||typeof E.workspace_directory>"u"?!0:u.includes(E.workspace_directory)).sort((E,v)=>oh(v.date_created).getTime()-oh(E.date_created).getTime()))},[f,n]);const g=new Date(Date.now()-1e3*60*60*24),b=new Date(Date.now()-1e3*60*60*24*7),y=new Date(Date.now()-1e3*60*60*24*30),T=new Date(0);return I.jsxs("div",{className:"overflow-y-scroll",style:{fontSize:pr()},children:[I.jsxs("div",{className:"sticky top-0",style:{backgroundColor:Ht},children:[I.jsxs("div",{className:"items-center flex m-0 p-0",style:{borderBottom:`0.5px solid ${Et}`},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"History"})]}),u&&u.length>0&&I.jsx(c2e,{checked:f,onClick:()=>m(E=>!E),title:`Show only sessions from ${KR(u[u.length-1])}/`})]}),n.filter(E=>!f||typeof u>"u"||typeof E.workspace_directory>"u"?!0:u.includes(E.workspace_directory)).length===0&&I.jsxs("div",{className:"text-center m-4",children:['No past sessions found. To start a new session, either click the "+" button or use the keyboard shortcut: ',I.jsx("b",{children:"Option + Command + N"})]}),I.jsxs("div",{children:[I.jsx("table",{className:"w-full border-spacing-0 border-collapse",children:I.jsx("tbody",{children:i.map((E,v)=>{const w=v>0?oh(i[v-1].date_created):T,A=oh(E.date_created);return I.jsxs(C.Fragment,{children:[v===0&&A>g&&I.jsx(F4,{children:"Today"}),Ab&&w>g&&I.jsx(F4,{children:"This Week"}),Ay&&w>b&&I.jsx(F4,{children:"This Month"}),I.jsx(d2e,{children:I.jsx("td",{children:I.jsxs(p2e,{onClick:async()=>{const R={session_state:{history:c.history,context_items:c.context_items},title:c.title,workspace_directory:p,session_id:c.session_id};console.log(R),await fetch(`${s}/sessions/save`,{method:"POST",body:JSON.stringify(R),headers:{"Content-Type":"application/json"}});const k=await fetch(`${s}/sessions/${E.session_id}`);if(!k.ok)throw new Error(`HTTP error! status: ${k.status}`);const N=await k.json();o==null||o.stopSession(),t(uc(N)),e("/")},children:[I.jsx("div",{className:"text-md",children:E.title}),I.jsxs("div",{className:"text-gray-400",children:[A.toLocaleString("en-US",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"numeric",minute:"2-digit",hour12:!0})," | ",KR(E.workspace_directory||""),"/"]})]})})},v)]},v)})})}),I.jsx("br",{}),I.jsx("i",{className:"text-sm ml-4",children:"All session data is saved in ~/.continue/sessions"})]})]})}const h2e=Ge.div` display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-gap: 2rem; @@ -835,12 +811,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho justify-items: center; align-items: center; - border-top: 0.5px solid ${vt}; -`,kge=He.div` - border: 0.5px solid ${vt}; - border-radius: ${wt}; + border-top: 0.5px solid ${Et}; +`,g2e=Ge.div` + border: 0.5px solid ${Et}; + border-radius: ${It}; padding: 4px; - color: ${Ht}; + color: ${Yt}; width: 16px; height: 16px; @@ -848,7 +824,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho display: flex; justify-content: center; align-items: center; -`;function Ige(e){const t=_2()==="windows"?e.windows:e.mac;return I.jsxs("div",{className:"flex justify-between w-full items-center",children:[I.jsx("span",{style:{color:Ht},children:e.description}),I.jsx("div",{className:"flex gap-2 float-right",children:t.split(" ").map(n=>I.jsx(kge,{children:n}))})]})}const Rge=[{mac:"⌘ M",windows:"⌃ M",description:"Ask about Highlighted Code"},{mac:"⌘ ⇧ M",windows:"⌃ ⇧ M",description:"Edit Highlighted Code"},{mac:"⌘ ⇧ ↵",windows:"⌃ ⇧ ↵",description:"Accept Diff"},{mac:"⌘ ⇧ ⌫",windows:"⌃ ⇧ ⌫",description:"Reject Diff"},{mac:"⌘ ⇧ L",windows:"⌃ ⇧ L",description:"Quick Text Entry"},{mac:"⌥ ⌘ M",windows:"⌥ ⌃ M",description:"Toggle Auxiliary Bar"},{mac:"⌘ ⇧ R",windows:"⌃ ⇧ R",description:"Debug Terminal"},{mac:"⌥ ⌘ N",windows:"⌥ ⌃ N",description:"New Session"},{mac:"⌘ ⌫",windows:"⌃ ⌫",description:"Stop Active Step"}],Nge=[{mac:"⌘ J",windows:"⌃ J",description:"Ask about Highlighted Code"},{mac:"⌘ ⇧ J",windows:"⌃ ⇧ J",description:"Edit Highlighted Code"},{mac:"⌘ ⇧ ↵",windows:"⌃ ⇧ ↵",description:"Accept Diff"},{mac:"⌘ ⇧ ⌫",windows:"⌃ ⇧ ⌫",description:"Reject Diff"},{mac:"⌥ ⇧ J",windows:"⌥ ⇧ J",description:"Quick Text Entry"},{mac:"⌥ ⌘ J",windows:"⌥ ⌃ J",description:"Toggle Auxiliary Bar"},{mac:"⌘ ⌃ N",windows:"⌥ ⌃ N",description:"New Session"},{mac:"⌘ ⌫",windows:"⌃ ⌫",description:"Stop Active Step"}];function Oge(){return I.jsxs("div",{className:"p-2",children:[I.jsx("h3",{className:"my-3 mx-auto text-center",children:"Keyboard Shortcuts"}),I.jsx(xge,{children:(localStorage.getItem("ide")==="jetbrains"?Nge:Rge).map(e=>I.jsx(Ige,{mac:e.mac,windows:e.windows,description:e.description}))})]})}const W0=He.div` +`;function m2e(e){const t=Km()==="windows"?e.windows:e.mac;return I.jsxs("div",{className:"flex justify-between w-full items-center",children:[I.jsx("span",{style:{color:Yt},children:e.description}),I.jsx("div",{className:"flex gap-2 float-right",children:t.split(" ").map(n=>I.jsx(g2e,{children:n}))})]})}const b2e=[{mac:"⌘ M",windows:"⌃ M",description:"Ask about Highlighted Code"},{mac:"⌘ ⇧ M",windows:"⌃ ⇧ M",description:"Edit Highlighted Code"},{mac:"⌘ ⇧ ↵",windows:"⌃ ⇧ ↵",description:"Accept Diff"},{mac:"⌘ ⇧ ⌫",windows:"⌃ ⇧ ⌫",description:"Reject Diff"},{mac:"⌘ ⇧ L",windows:"⌃ ⇧ L",description:"Quick Text Entry"},{mac:"⌥ ⌘ M",windows:"⌥ ⌃ M",description:"Toggle Auxiliary Bar"},{mac:"⌘ ⇧ R",windows:"⌃ ⇧ R",description:"Debug Terminal"},{mac:"⌥ ⌘ N",windows:"⌥ ⌃ N",description:"New Session"},{mac:"⌘ ⌫",windows:"⌃ ⌫",description:"Stop Active Step"}],y2e=[{mac:"⌘ J",windows:"⌃ J",description:"Ask about Highlighted Code"},{mac:"⌘ ⇧ J",windows:"⌃ ⇧ J",description:"Edit Highlighted Code"},{mac:"⌘ ⇧ ↵",windows:"⌃ ⇧ ↵",description:"Accept Diff"},{mac:"⌘ ⇧ ⌫",windows:"⌃ ⇧ ⌫",description:"Reject Diff"},{mac:"⌥ ⇧ J",windows:"⌥ ⇧ J",description:"Quick Text Entry"},{mac:"⌥ ⌘ J",windows:"⌥ ⌃ J",description:"Toggle Auxiliary Bar"},{mac:"⌘ ⌃ N",windows:"⌥ ⌃ N",description:"New Session"},{mac:"⌘ ⌫",windows:"⌃ ⌫",description:"Stop Active Step"}];function E2e(){return I.jsxs("div",{className:"p-2",children:[I.jsx("h3",{className:"my-3 mx-auto text-center",children:"Keyboard Shortcuts"}),I.jsx(h2e,{children:(localStorage.getItem("ide")==="jetbrains"?y2e:b2e).map(e=>I.jsx(m2e,{mac:e.mac,windows:e.windows,description:e.description}))})]})}const sh=Ge.div` display: flex; align-items: center; justify-content: center; @@ -858,60 +834,60 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho padding: 0 4px; &:hover { - background-color: ${e=>e.backgroundColor||vt}; + background-color: ${e=>e.backgroundColor||Et}; } -`;function YI(){const e=cs();return I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Help Center"})]}),I.jsxs("div",{className:"grid grid-cols-2 grid-rows-2",children:[I.jsx(W0,{backgroundColor:"rgb(234, 51, 35)",children:I.jsx("a",{href:"https://youtu.be/3Ocrc-WX4iQ?si=eDLYtkc6CXQoHsEc",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5.2 -4.5 60 60",fill:Ht,className:"w-full h-full",children:I.jsx("path",{d:"M 44.898438 14.5 C 44.5 12.300781 42.601563 10.699219 40.398438 10.199219 C 37.101563 9.5 31 9 24.398438 9 C 17.800781 9 11.601563 9.5 8.300781 10.199219 C 6.101563 10.699219 4.199219 12.199219 3.800781 14.5 C 3.398438 17 3 20.5 3 25 C 3 29.5 3.398438 33 3.898438 35.5 C 4.300781 37.699219 6.199219 39.300781 8.398438 39.800781 C 11.898438 40.5 17.898438 41 24.5 41 C 31.101563 41 37.101563 40.5 40.601563 39.800781 C 42.800781 39.300781 44.699219 37.800781 45.101563 35.5 C 45.5 33 46 29.398438 46.101563 25 C 45.898438 20.5 45.398438 17 44.898438 14.5 Z M 19 32 L 19 18 L 31.199219 25 Z"})})})}),I.jsx(W0,{backgroundColor:da,children:I.jsx("a",{href:"https://continue.dev/docs/how-to-use-continue",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2.2 -2 28 28",fill:Ht,className:"w-full h-full flex items-center justify-center",children:I.jsx("path",{d:"M11.25 4.533A9.707 9.707 0 006 3a9.735 9.735 0 00-3.25.555.75.75 0 00-.5.707v14.25a.75.75 0 001 .707A8.237 8.237 0 016 18.75c1.995 0 3.823.707 5.25 1.886V4.533zM12.75 20.636A8.214 8.214 0 0118 18.75c.966 0 1.89.166 2.75.47a.75.75 0 001-.708V4.262a.75.75 0 00-.5-.707A9.735 9.735 0 0018 3a9.707 9.707 0 00-5.25 1.533v16.103z"})})})}),I.jsx(W0,{backgroundColor:"rgb(88, 98, 227)",children:I.jsx("a",{href:"https://discord.gg/vapESyrFmJ",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5 -5.5 60 60",fill:Ht,className:"w-full h-full",children:I.jsx("path",{d:"M 41.625 10.769531 C 37.644531 7.566406 31.347656 7.023438 31.078125 7.003906 C 30.660156 6.96875 30.261719 7.203125 30.089844 7.589844 C 30.074219 7.613281 29.9375 7.929688 29.785156 8.421875 C 32.417969 8.867188 35.652344 9.761719 38.578125 11.578125 C 39.046875 11.867188 39.191406 12.484375 38.902344 12.953125 C 38.710938 13.261719 38.386719 13.429688 38.050781 13.429688 C 37.871094 13.429688 37.6875 13.378906 37.523438 13.277344 C 32.492188 10.15625 26.210938 10 25 10 C 23.789063 10 17.503906 10.15625 12.476563 13.277344 C 12.007813 13.570313 11.390625 13.425781 11.101563 12.957031 C 10.808594 12.484375 10.953125 11.871094 11.421875 11.578125 C 14.347656 9.765625 17.582031 8.867188 20.214844 8.425781 C 20.0625 7.929688 19.925781 7.617188 19.914063 7.589844 C 19.738281 7.203125 19.34375 6.960938 18.921875 7.003906 C 18.652344 7.023438 12.355469 7.566406 8.320313 10.8125 C 6.214844 12.761719 2 24.152344 2 34 C 2 34.175781 2.046875 34.34375 2.132813 34.496094 C 5.039063 39.605469 12.972656 40.941406 14.78125 41 C 14.789063 41 14.800781 41 14.8125 41 C 15.132813 41 15.433594 40.847656 15.621094 40.589844 L 17.449219 38.074219 C 12.515625 36.800781 9.996094 34.636719 9.851563 34.507813 C 9.4375 34.144531 9.398438 33.511719 9.765625 33.097656 C 10.128906 32.683594 10.761719 32.644531 11.175781 33.007813 C 11.234375 33.0625 15.875 37 25 37 C 34.140625 37 38.78125 33.046875 38.828125 33.007813 C 39.242188 32.648438 39.871094 32.683594 40.238281 33.101563 C 40.601563 33.515625 40.5625 34.144531 40.148438 34.507813 C 40.003906 34.636719 37.484375 36.800781 32.550781 38.074219 L 34.378906 40.589844 C 34.566406 40.847656 34.867188 41 35.1875 41 C 35.199219 41 35.210938 41 35.21875 41 C 37.027344 40.941406 44.960938 39.605469 47.867188 34.496094 C 47.953125 34.34375 48 34.175781 48 34 C 48 24.152344 43.785156 12.761719 41.625 10.769531 Z M 18.5 30 C 16.566406 30 15 28.210938 15 26 C 15 23.789063 16.566406 22 18.5 22 C 20.433594 22 22 23.789063 22 26 C 22 28.210938 20.433594 30 18.5 30 Z M 31.5 30 C 29.566406 30 28 28.210938 28 26 C 28 23.789063 29.566406 22 31.5 22 C 33.433594 22 35 23.789063 35 26 C 35 28.210938 33.433594 30 31.5 30 Z"})})})}),I.jsx(W0,{children:I.jsx("a",{href:"https://github.com/continuedev/continue/issues/new/choose",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-1.2 -1.2 32 32",fill:Ht,className:"w-full h-full",children:I.jsx("path",{d:"M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"})})})})]}),I.jsx(Oge,{})]})}const Dge=He.div` +`;function YR(){const e=bs();return I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Help Center"})]}),I.jsxs("div",{className:"grid grid-cols-2 grid-rows-2",children:[I.jsx(sh,{backgroundColor:"rgb(234, 51, 35)",children:I.jsx("a",{href:"https://youtu.be/3Ocrc-WX4iQ?si=eDLYtkc6CXQoHsEc",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5.2 -4.5 60 60",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M 44.898438 14.5 C 44.5 12.300781 42.601563 10.699219 40.398438 10.199219 C 37.101563 9.5 31 9 24.398438 9 C 17.800781 9 11.601563 9.5 8.300781 10.199219 C 6.101563 10.699219 4.199219 12.199219 3.800781 14.5 C 3.398438 17 3 20.5 3 25 C 3 29.5 3.398438 33 3.898438 35.5 C 4.300781 37.699219 6.199219 39.300781 8.398438 39.800781 C 11.898438 40.5 17.898438 41 24.5 41 C 31.101563 41 37.101563 40.5 40.601563 39.800781 C 42.800781 39.300781 44.699219 37.800781 45.101563 35.5 C 45.5 33 46 29.398438 46.101563 25 C 45.898438 20.5 45.398438 17 44.898438 14.5 Z M 19 32 L 19 18 L 31.199219 25 Z"})})})}),I.jsx(sh,{backgroundColor:ha,children:I.jsx("a",{href:"https://continue.dev/docs/how-to-use-continue",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2.2 -2 28 28",fill:Yt,className:"w-full h-full flex items-center justify-center",children:I.jsx("path",{d:"M11.25 4.533A9.707 9.707 0 006 3a9.735 9.735 0 00-3.25.555.75.75 0 00-.5.707v14.25a.75.75 0 001 .707A8.237 8.237 0 016 18.75c1.995 0 3.823.707 5.25 1.886V4.533zM12.75 20.636A8.214 8.214 0 0118 18.75c.966 0 1.89.166 2.75.47a.75.75 0 001-.708V4.262a.75.75 0 00-.5-.707A9.735 9.735 0 0018 3a9.707 9.707 0 00-5.25 1.533v16.103z"})})})}),I.jsx(sh,{backgroundColor:"rgb(88, 98, 227)",children:I.jsx("a",{href:"https://discord.gg/vapESyrFmJ",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5 -5.5 60 60",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M 41.625 10.769531 C 37.644531 7.566406 31.347656 7.023438 31.078125 7.003906 C 30.660156 6.96875 30.261719 7.203125 30.089844 7.589844 C 30.074219 7.613281 29.9375 7.929688 29.785156 8.421875 C 32.417969 8.867188 35.652344 9.761719 38.578125 11.578125 C 39.046875 11.867188 39.191406 12.484375 38.902344 12.953125 C 38.710938 13.261719 38.386719 13.429688 38.050781 13.429688 C 37.871094 13.429688 37.6875 13.378906 37.523438 13.277344 C 32.492188 10.15625 26.210938 10 25 10 C 23.789063 10 17.503906 10.15625 12.476563 13.277344 C 12.007813 13.570313 11.390625 13.425781 11.101563 12.957031 C 10.808594 12.484375 10.953125 11.871094 11.421875 11.578125 C 14.347656 9.765625 17.582031 8.867188 20.214844 8.425781 C 20.0625 7.929688 19.925781 7.617188 19.914063 7.589844 C 19.738281 7.203125 19.34375 6.960938 18.921875 7.003906 C 18.652344 7.023438 12.355469 7.566406 8.320313 10.8125 C 6.214844 12.761719 2 24.152344 2 34 C 2 34.175781 2.046875 34.34375 2.132813 34.496094 C 5.039063 39.605469 12.972656 40.941406 14.78125 41 C 14.789063 41 14.800781 41 14.8125 41 C 15.132813 41 15.433594 40.847656 15.621094 40.589844 L 17.449219 38.074219 C 12.515625 36.800781 9.996094 34.636719 9.851563 34.507813 C 9.4375 34.144531 9.398438 33.511719 9.765625 33.097656 C 10.128906 32.683594 10.761719 32.644531 11.175781 33.007813 C 11.234375 33.0625 15.875 37 25 37 C 34.140625 37 38.78125 33.046875 38.828125 33.007813 C 39.242188 32.648438 39.871094 32.683594 40.238281 33.101563 C 40.601563 33.515625 40.5625 34.144531 40.148438 34.507813 C 40.003906 34.636719 37.484375 36.800781 32.550781 38.074219 L 34.378906 40.589844 C 34.566406 40.847656 34.867188 41 35.1875 41 C 35.199219 41 35.210938 41 35.21875 41 C 37.027344 40.941406 44.960938 39.605469 47.867188 34.496094 C 47.953125 34.34375 48 34.175781 48 34 C 48 24.152344 43.785156 12.761719 41.625 10.769531 Z M 18.5 30 C 16.566406 30 15 28.210938 15 26 C 15 23.789063 16.566406 22 18.5 22 C 20.433594 22 22 23.789063 22 26 C 22 28.210938 20.433594 30 18.5 30 Z M 31.5 30 C 29.566406 30 28 28.210938 28 26 C 28 23.789063 29.566406 22 31.5 22 C 33.433594 22 35 23.789063 35 26 C 35 28.210938 33.433594 30 31.5 30 Z"})})})}),I.jsx(sh,{children:I.jsx("a",{href:"https://github.com/continuedev/continue/issues/new/choose",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-1.2 -1.2 32 32",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"})})})})]}),I.jsx(E2e,{})]})}const v2e=Ge.div` position: fixed; width: 100%; height: 100%; background-color: rgba(168, 168, 168, 0.5); z-index: 100; -`,Lge=He.div` +`,_2e=Ge.div` position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 75%; -`,Mge=He.div` - color: ${Ht}; - background-color: ${Kt}; +`,T2e=Ge.div` + color: ${Yt}; + background-color: ${Ht}; border-radius: 8px; display: flex; flex-direction: column; - box-shadow: 0 0 10px 0 ${Ht}; + box-shadow: 0 0 10px 0 ${Yt}; margin: auto; word-wrap: break-word; overflow: hidden; -`;He.textarea` +`;Ge.textarea` border: 1px solid #ccc; border-radius: 8px; padding: 8px; outline: 1px solid black; resize: none; - background-color: ${Lt}; - color: ${Ht}; + background-color: ${Vt}; + color: ${Yt}; &:focus { - outline: 1px solid ${Ht}; + outline: 1px solid ${Yt}; } -`;He.p` - color: ${Ht}; +`;Ge.p` + color: ${Yt}; margin: 8px auto; -`;const Fge=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),I.jsx(Dge,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(Lge,{onClick:t=>{t.stopPropagation()},children:I.jsx(Mge,{children:typeof e.message=="string"?I.jsx(HE,{children:e.message||""}):e.message})})}));var Pge=Object.defineProperty,Bge=(e,t,n)=>t in e?Pge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l4=(e,t,n)=>(Bge(e,typeof t!="symbol"?t+"":t,n),n);let Uge=class{constructor(){l4(this,"current",this.detect()),l4(this,"handoffState","pending"),l4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},su=new Uge,zi=(e,t)=>{su.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function Eo(e){let t=C.useRef(e);return zi(()=>{t.current=e},[e]),t}function JF(e,t){let[n,r]=C.useState(e),i=Eo(e);return zi(()=>r(i.current),[i,r,...t]),n}function $ge(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function hl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return $ge(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=hl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function tc(){let[e]=C.useState(hl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Xt=function(e){let t=Eo(e);return ut.useCallback((...n)=>t.current(...n),[t])};function zge(){let e=typeof document>"u";return"useSyncExternalStore"in v4?(t=>t.useSyncExternalStore)(v4)(()=>()=>{},()=>!1,()=>!e):!1}function L7(){let e=zge(),[t,n]=C.useState(su.isHandoffComplete);return t&&su.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>su.handoff(),[]),e?!1:t}var XI;let fm=(XI=ut.useId)!=null?XI:function(){let e=L7(),[t,n]=ut.useState(e?()=>su.nextId():null);return zi(()=>{t===null&&n(su.nextId())},[t]),t!=null?""+t:void 0};function Sr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Sr),r}function eP(e){return su.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZI=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Hge=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Hge||{}),jge=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(jge||{}),Gge=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Gge||{}),M7=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(M7||{});function tP(e,t=0){var n;return e===((n=eP(e))==null?void 0:n.body)?!1:Sr(t,{0(){return e.matches(ZI)},1(){let r=e;for(;r!==null;){if(r.matches(ZI))return!0;r=r.parentElement}return!1}})}var Vge=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Vge||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Wge(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function q0(e,t,n){let r=Eo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function qge(e,t,n){let r=Eo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function Kge(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!tP(u,M7.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);q0("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),q0("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),q0("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),q0("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),qge("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QI(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Yge(e,t){let[n,r]=C.useState(()=>QI(e));return zi(()=>{r(QI(e))},[e.type,e.as]),zi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let Xge=Symbol();function Ru(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Xt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Xge]))?void 0:n}function Zge(e){throw new Error("Unexpected object: "+e)}var gi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(gi||{});function Qge(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:Zge(e)}})();return a===-1?r:a}function kg(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Ig=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ig||{}),Vs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Vs||{});function wl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=nP(t,e);if(a)return K0(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return K0(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Sr(c?0:1,{0(){return null},1(){return K0({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return K0(s,n,r,o)}function K0(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=u4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,E]of Object.entries(t))typeof E=="boolean"&&(f=!0),E===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(E9(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(E=>` - ${E}`).join(` -`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(E=>` - ${E}`).join(` +`;const S2e=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),I.jsx(v2e,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(_2e,{onClick:t=>{t.stopPropagation()},children:I.jsx(T2e,{children:typeof e.message=="string"?I.jsx(N9,{children:e.message||""}):e.message})})}));var w2e=Object.defineProperty,A2e=(e,t,n)=>t in e?w2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P4=(e,t,n)=>(A2e(e,typeof t!="symbol"?t+"":t,n),n);let C2e=class{constructor(){P4(this,"current",this.detect()),P4(this,"handoffState","pending"),P4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},hu=new C2e,Gi=(e,t)=>{hu.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function wo(e){let t=C.useRef(e);return Gi(()=>{t.current=e},[e]),t}function yB(e,t){let[n,r]=C.useState(e),i=wo(e);return Gi(()=>r(i.current),[i,r,...t]),n}function k2e(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function vl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return k2e(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=vl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function pc(){let[e]=C.useState(vl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Zt=function(e){let t=wo(e);return ut.useCallback((...n)=>t.current(...n),[t])};function x2e(){let e=typeof document>"u";return"useSyncExternalStore"in Q4?(t=>t.useSyncExternalStore)(Q4)(()=>()=>{},()=>!1,()=>!e):!1}function ST(){let e=x2e(),[t,n]=C.useState(hu.isHandoffComplete);return t&&hu.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>hu.handoff(),[]),e?!1:t}var XR;let B2=(XR=ut.useId)!=null?XR:function(){let e=ST(),[t,n]=ut.useState(e?()=>hu.nextId():null);return Gi(()=>{t===null&&n(hu.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Cr),r}function EB(e){return hu.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZR=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var I2e=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(I2e||{}),R2e=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(R2e||{}),N2e=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(N2e||{}),wT=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wT||{});function vB(e,t=0){var n;return e===((n=EB(e))==null?void 0:n.body)?!1:Cr(t,{0(){return e.matches(ZR)},1(){let r=e;for(;r!==null;){if(r.matches(ZR))return!0;r=r.parentElement}return!1}})}var O2e=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(O2e||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function D2e(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lh(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function L2e(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function M2e(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!vB(u,wT.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);lh("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),lh("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),L2e("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QR(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function F2e(e,t){let[n,r]=C.useState(()=>QR(e));return Gi(()=>{r(QR(e))},[e.type,e.as]),Gi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let P2e=Symbol();function Pu(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Zt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[P2e]))?void 0:n}function B2e(e){throw new Error("Unexpected object: "+e)}var yi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(yi||{});function U2e(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:B2e(e)}})();return a===-1?r:a}function tm(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var nm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(nm||{}),Qs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qs||{});function Rl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=_B(t,e);if(a)return uh(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return uh(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Cr(c?0:1,{0(){return null},1(){return uh({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return uh(s,n,r,o)}function uh(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=B4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,b]of Object.entries(t))typeof b=="boolean"&&(f=!0),b===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(Zy(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(b=>` - ${b}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(b=>` - ${b}`).join(` `)].join(` -`));let f=c.props,m=typeof(f==null?void 0:f.className)=="function"?(...E)=>kg(f==null?void 0:f.className(...E),s.className):kg(f==null?void 0:f.className,s.className),g=m?{className:m}:{};return C.cloneElement(c,Object.assign({},nP(c.props,E9(u4(s,["ref"]))),p,u,Jge(c.ref,u.ref),g))}return C.createElement(i,Object.assign({},u4(s,["ref"]),i!==C.Fragment&&u,i!==C.Fragment&&p),c)}function Jge(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function nP(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...a)}}});return t}function ds(e){var t;return Object.assign(C.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function E9(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function u4(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function e2e(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&t2e(n)?!1:r}function t2e(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function rP(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))aP(n,iP(t,r),i);return n}function iP(e,t){return e?e+"["+t+"]":t}function aP(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())aP(e,iP(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):rP(n,t,e)}let n2e="div";var oP=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(oP||{});function r2e(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return wl({ourProps:i,theirProps:r,slot:{},defaultTag:n2e,name:"Hidden"})}let i2e=ds(r2e),F7=C.createContext(null);F7.displayName="OpenClosedContext";var Oi=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Oi||{});function P7(){return C.useContext(F7)}function sP({value:e,children:t}){return ut.createElement(F7.Provider,{value:e},t)}var lr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(lr||{});function a2e(e,t,n){let[r,i]=C.useState(n),a=e!==void 0,o=C.useRef(a),s=C.useRef(!1),u=C.useRef(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!u.current&&(u.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Xt(c=>(a||i(c),t==null?void 0:t(c)))]}function JI(e){return[e.screenX,e.screenY]}function o2e(){let e=C.useRef([-1,-1]);return{wasMoved(t){let n=JI(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=JI(t)}}}function B7(){let e=C.useRef(!1);return zi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let eR=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tR(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return eR.test(o)&&(o=o.replace(eR,"")),o}function s2e(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():tR(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return tR(e).trim()}function l2e(e){let t=C.useRef(""),n=C.useRef("");return Xt(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=s2e(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var u2e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(u2e||{}),c2e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(c2e||{}),d2e=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(d2e||{}),p2e=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(p2e||{});function c4(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Wge(t(e.options.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let f2e={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=c4(e),i=Qge(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var s;return!o.dataRef.current.disabled&&((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=c4(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=c4(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},U7=C.createContext(null);U7.displayName="ListboxActionsContext";function Jp(e){let t=C.useContext(U7);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Jp),n}return t}let $7=C.createContext(null);$7.displayName="ListboxDataContext";function ef(e){let t=C.useContext($7);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ef),n}return t}function h2e(e,t){return Sr(t.type,f2e,e,t)}let g2e=C.Fragment;function m2e(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(re,Te)=>re===Te,disabled:u=!1,horizontal:c=!1,multiple:p=!1,...f}=e;const m=c?"horizontal":"vertical";let g=Ru(t),[E=p?[]:void 0,b]=a2e(n,o,r),[T,v]=C.useReducer(h2e,{dataRef:C.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),y=C.useRef({static:!1,hold:!1}),w=C.useRef(null),A=C.useRef(null),D=C.useRef(null),k=Xt(typeof s=="string"?(re,Te)=>{let K=s;return(re==null?void 0:re[K])===(Te==null?void 0:Te[K])}:s),R=C.useCallback(re=>Sr(B.mode,{1:()=>E.some(Te=>k(Te,re)),0:()=>k(E,re)}),[E]),B=C.useMemo(()=>({...T,value:E,disabled:u,mode:p?1:0,orientation:m,compare:k,isSelected:R,optionsPropsRef:y,labelRef:w,buttonRef:A,optionsRef:D}),[E,u,p,T]);zi(()=>{T.dataRef.current=B},[B]),Kge([B.buttonRef,B.optionsRef],(re,Te)=>{var K;v({type:1}),tP(Te,M7.Loose)||(re.preventDefault(),(K=B.buttonRef.current)==null||K.focus())},B.listboxState===0);let W=C.useMemo(()=>({open:B.listboxState===0,disabled:u,value:E}),[B,u,E]),P=Xt(re=>{let Te=B.options.find(K=>K.id===re);Te&&Z(Te.dataRef.current.value)}),Q=Xt(()=>{if(B.activeOptionIndex!==null){let{dataRef:re,id:Te}=B.options[B.activeOptionIndex];Z(re.current.value),v({type:2,focus:gi.Specific,id:Te})}}),z=Xt(()=>v({type:0})),le=Xt(()=>v({type:1})),he=Xt((re,Te,K)=>re===gi.Specific?v({type:2,focus:gi.Specific,id:Te,trigger:K}):v({type:2,focus:re,trigger:K})),de=Xt((re,Te)=>(v({type:5,id:re,dataRef:Te}),()=>v({type:6,id:re}))),fe=Xt(re=>(v({type:7,id:re}),()=>v({type:7,id:null}))),Z=Xt(re=>Sr(B.mode,{0(){return b==null?void 0:b(re)},1(){let Te=B.value.slice(),K=Te.findIndex(xe=>k(xe,re));return K===-1?Te.push(re):Te.splice(K,1),b==null?void 0:b(Te)}})),V=Xt(re=>v({type:3,value:re})),ce=Xt(()=>v({type:4})),N=C.useMemo(()=>({onChange:Z,registerOption:de,registerLabel:fe,goToOption:he,closeListbox:le,openListbox:z,selectActiveOption:Q,selectOption:P,search:V,clearSearch:ce}),[]),me={ref:g},oe=C.useRef(null),O=tc();return C.useEffect(()=>{oe.current&&r!==void 0&&O.addEventListener(oe.current,"reset",()=>{b==null||b(r)})},[oe,b]),ut.createElement(U7.Provider,{value:N},ut.createElement($7.Provider,{value:B},ut.createElement(sP,{value:Sr(B.listboxState,{0:Oi.Open,1:Oi.Closed})},a!=null&&E!=null&&rP({[a]:E}).map(([re,Te],K)=>ut.createElement(i2e,{features:oP.Hidden,ref:K===0?xe=>{var ne;oe.current=(ne=xe==null?void 0:xe.closest("form"))!=null?ne:null}:void 0,...E9({key:re,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:re,value:Te})})),wl({ourProps:me,theirProps:f,slot:W,defaultTag:g2e,name:"Listbox"}))))}let b2e="button";function E2e(e,t){var n;let r=fm(),{id:i=`headlessui-listbox-button-${r}`,...a}=e,o=ef("Listbox.Button"),s=Jp("Listbox.Button"),u=Ru(o.buttonRef,t),c=tc(),p=Xt(T=>{switch(T.key){case lr.Space:case lr.Enter:case lr.ArrowDown:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(gi.First)});break;case lr.ArrowUp:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(gi.Last)});break}}),f=Xt(T=>{switch(T.key){case lr.Space:T.preventDefault();break}}),m=Xt(T=>{if(e2e(T.currentTarget))return T.preventDefault();o.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})})):(T.preventDefault(),s.openListbox())}),g=JF(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),E=C.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),b={ref:u,id:i,type:Yge(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":g,disabled:o.disabled,onKeyDown:p,onKeyUp:f,onClick:m};return wl({ourProps:b,theirProps:a,slot:E,defaultTag:b2e,name:"Listbox.Button"})}let v2e="label";function y2e(e,t){let n=fm(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,a=ef("Listbox.Label"),o=Jp("Listbox.Label"),s=Ru(a.labelRef,t);zi(()=>o.registerLabel(r),[r]);let u=Xt(()=>{var p;return(p=a.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=C.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return wl({ourProps:{ref:s,id:r,onClick:u},theirProps:i,slot:c,defaultTag:v2e,name:"Listbox.Label"})}let _2e="ul",T2e=Ig.RenderStrategy|Ig.Static;function S2e(e,t){var n;let r=fm(),{id:i=`headlessui-listbox-options-${r}`,...a}=e,o=ef("Listbox.Options"),s=Jp("Listbox.Options"),u=Ru(o.optionsRef,t),c=tc(),p=tc(),f=P7(),m=(()=>f!==null?(f&Oi.Open)===Oi.Open:o.listboxState===0)();C.useEffect(()=>{var v;let y=o.optionsRef.current;y&&o.listboxState===0&&y!==((v=eP(y))==null?void 0:v.activeElement)&&y.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let g=Xt(v=>{switch(p.dispose(),v.key){case lr.Space:if(o.searchQuery!=="")return v.preventDefault(),v.stopPropagation(),s.search(v.key);case lr.Enter:if(v.preventDefault(),v.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:y}=o.options[o.activeOptionIndex];s.onChange(y.current.value)}o.mode===0&&(s.closeListbox(),hl().nextFrame(()=>{var y;return(y=o.buttonRef.current)==null?void 0:y.focus({preventScroll:!0})}));break;case Sr(o.orientation,{vertical:lr.ArrowDown,horizontal:lr.ArrowRight}):return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.Next);case Sr(o.orientation,{vertical:lr.ArrowUp,horizontal:lr.ArrowLeft}):return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.Previous);case lr.Home:case lr.PageUp:return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.First);case lr.End:case lr.PageDown:return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.Last);case lr.Escape:return v.preventDefault(),v.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var y;return(y=o.buttonRef.current)==null?void 0:y.focus({preventScroll:!0})});case lr.Tab:v.preventDefault(),v.stopPropagation();break;default:v.key.length===1&&(s.search(v.key),p.setTimeout(()=>s.clearSearch(),350));break}}),E=JF(()=>{var v,y,w;return(w=(v=o.labelRef.current)==null?void 0:v.id)!=null?w:(y=o.buttonRef.current)==null?void 0:y.id},[o.labelRef.current,o.buttonRef.current]),b=C.useMemo(()=>({open:o.listboxState===0}),[o]),T={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":E,"aria-orientation":o.orientation,id:i,onKeyDown:g,role:"listbox",tabIndex:0,ref:u};return wl({ourProps:T,theirProps:a,slot:b,defaultTag:_2e,features:T2e,visible:m,name:"Listbox.Options"})}let w2e="li";function A2e(e,t){let n=fm(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...o}=e,s=ef("Listbox.Option"),u=Jp("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===r:!1,p=s.isSelected(a),f=C.useRef(null),m=l2e(f),g=Eo({disabled:i,value:a,domRef:f,get textValue(){return m()}}),E=Ru(t,f);zi(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let k=hl();return k.requestAnimationFrame(()=>{var R,B;(B=(R=f.current)==null?void 0:R.scrollIntoView)==null||B.call(R,{block:"nearest"})}),k.dispose},[f,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),zi(()=>u.registerOption(r,g),[g,r]);let b=Xt(k=>{if(i)return k.preventDefault();u.onChange(a),s.mode===0&&(u.closeListbox(),hl().nextFrame(()=>{var R;return(R=s.buttonRef.current)==null?void 0:R.focus({preventScroll:!0})}))}),T=Xt(()=>{if(i)return u.goToOption(gi.Nothing);u.goToOption(gi.Specific,r)}),v=o2e(),y=Xt(k=>v.update(k)),w=Xt(k=>{v.wasMoved(k)&&(i||c||u.goToOption(gi.Specific,r,0))}),A=Xt(k=>{v.wasMoved(k)&&(i||c&&u.goToOption(gi.Nothing))}),D=C.useMemo(()=>({active:c,selected:p,disabled:i}),[c,p,i]);return wl({ourProps:{id:r,ref:E,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:b,onFocus:T,onPointerEnter:y,onMouseEnter:y,onPointerMove:w,onMouseMove:w,onPointerLeave:A,onMouseLeave:A},theirProps:o,slot:D,defaultTag:w2e,name:"Listbox.Option"})}let C2e=ds(m2e),x2e=ds(E2e),k2e=ds(y2e),I2e=ds(S2e),R2e=ds(A2e),hm=Object.assign(C2e,{Button:x2e,Label:k2e,Options:I2e,Option:R2e});function N2e(e=0){let[t,n]=C.useState(e),r=B7(),i=C.useCallback(u=>{r.current&&n(c=>c|u)},[t,r]),a=C.useCallback(u=>!!(t&u),[t]),o=C.useCallback(u=>{r.current&&n(c=>c&~u)},[n,r]),s=C.useCallback(u=>{r.current&&n(c=>c^u)},[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:s}}function O2e(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function d4(e,...t){e&&t.length>0&&e.classList.add(...t)}function p4(e,...t){e&&t.length>0&&e.classList.remove(...t)}function D2e(e,t){let n=hl();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,f)=>f-p);return c}),s=a+o;if(s!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let u=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return n.add(()=>t()),n.dispose}function L2e(e,t,n,r){let i=n?"enter":"leave",a=hl(),o=r!==void 0?O2e(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Sr(i,{enter:()=>t.enter,leave:()=>t.leave}),u=Sr(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Sr(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return p4(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),d4(e,...t.base,...s,...c),a.nextFrame(()=>{p4(e,...t.base,...s,...c),d4(e,...t.base,...s,...u),D2e(e,()=>(p4(e,...t.base,...s),d4(e,...t.base,...t.entered),o()))}),a.dispose}function M2e({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=B7(),s=tc(),u=Eo(n);zi(()=>{e&&(u.current="enter")},[e]),zi(()=>{let c=hl();s.add(c.dispose);let p=t.current;if(p&&u.current!=="idle"&&o.current)return c.dispose(),i.current(u.current),c.add(L2e(p,r.current,u.current==="enter",()=>{c.dispose(),a.current(u.current)})),c.dispose},[n])}function Rs(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let gm=C.createContext(null);gm.displayName="TransitionContext";var F2e=(e=>(e.Visible="visible",e.Hidden="hidden",e))(F2e||{});function P2e(){let e=C.useContext(gm);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function B2e(){let e=C.useContext(mm);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let mm=C.createContext(null);mm.displayName="NestingContext";function bm(e){return"children"in e?bm(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function lP(e,t){let n=Eo(e),r=C.useRef([]),i=B7(),a=tc(),o=Xt((g,E=Vs.Hidden)=>{let b=r.current.findIndex(({el:T})=>T===g);b!==-1&&(Sr(E,{[Vs.Unmount](){r.current.splice(b,1)},[Vs.Hidden](){r.current[b].state="hidden"}}),a.microTask(()=>{var T;!bm(r)&&i.current&&((T=n.current)==null||T.call(n))}))}),s=Xt(g=>{let E=r.current.find(({el:b})=>b===g);return E?E.state!=="visible"&&(E.state="visible"):r.current.push({el:g,state:"visible"}),()=>o(g,Vs.Unmount)}),u=C.useRef([]),c=C.useRef(Promise.resolve()),p=C.useRef({enter:[],leave:[],idle:[]}),f=Xt((g,E,b)=>{u.current.splice(0),t&&(t.chains.current[E]=t.chains.current[E].filter(([T])=>T!==g)),t==null||t.chains.current[E].push([g,new Promise(T=>{u.current.push(T)})]),t==null||t.chains.current[E].push([g,new Promise(T=>{Promise.all(p.current[E].map(([v,y])=>y)).then(()=>T())})]),E==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>b(E)):b(E)}),m=Xt((g,E,b)=>{Promise.all(p.current[E].splice(0).map(([T,v])=>v)).then(()=>{var T;(T=u.current.shift())==null||T()}).then(()=>b(E))});return C.useMemo(()=>({children:r,register:s,unregister:o,onStart:f,onStop:m,wait:c,chains:p}),[s,o,r,f,m,p,c])}function U2e(){}let $2e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nR(e){var t;let n={};for(let r of $2e)n[r]=(t=e[r])!=null?t:U2e;return n}function z2e(e){let t=C.useRef(nR(e));return C.useEffect(()=>{t.current=nR(e)},[e]),t}let H2e="div",uP=Ig.RenderStrategy;function j2e(e,t){var n,r;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s,enter:u,enterFrom:c,enterTo:p,entered:f,leave:m,leaveFrom:g,leaveTo:E,...b}=e,T=C.useRef(null),v=Ru(T,t),y=(n=b.unmount)==null||n?Vs.Unmount:Vs.Hidden,{show:w,appear:A,initial:D}=P2e(),[k,R]=C.useState(w?"visible":"hidden"),B=B2e(),{register:W,unregister:P}=B;C.useEffect(()=>W(T),[W,T]),C.useEffect(()=>{if(y===Vs.Hidden&&T.current){if(w&&k!=="visible"){R("visible");return}return Sr(k,{hidden:()=>P(T),visible:()=>W(T)})}},[k,T,W,P,w,y]);let Q=Eo({base:Rs(b.className),enter:Rs(u),enterFrom:Rs(c),enterTo:Rs(p),entered:Rs(f),leave:Rs(m),leaveFrom:Rs(g),leaveTo:Rs(E)}),z=z2e({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s}),le=L7();C.useEffect(()=>{if(le&&k==="visible"&&T.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[T,k,le]);let he=D&&!A,de=A&&w&&D,fe=(()=>!le||he?"idle":w?"enter":"leave")(),Z=N2e(0),V=Xt(O=>Sr(O,{enter:()=>{Z.addFlag(Oi.Opening),z.current.beforeEnter()},leave:()=>{Z.addFlag(Oi.Closing),z.current.beforeLeave()},idle:()=>{}})),ce=Xt(O=>Sr(O,{enter:()=>{Z.removeFlag(Oi.Opening),z.current.afterEnter()},leave:()=>{Z.removeFlag(Oi.Closing),z.current.afterLeave()},idle:()=>{}})),N=lP(()=>{R("hidden"),P(T)},B);M2e({immediate:de,container:T,classes:Q,direction:fe,onStart:Eo(O=>{N.onStart(T,O,V)}),onStop:Eo(O=>{N.onStop(T,O,ce),O==="leave"&&!bm(N)&&(R("hidden"),P(T))})});let me=b,oe={ref:v};return de?me={...me,className:kg(b.className,...Q.current.enter,...Q.current.enterFrom)}:(me.className=kg(b.className,(r=T.current)==null?void 0:r.className),me.className===""&&delete me.className),ut.createElement(mm.Provider,{value:N},ut.createElement(sP,{value:Sr(k,{visible:Oi.Open,hidden:Oi.Closed})|Z.flags},wl({ourProps:oe,theirProps:me,defaultTag:H2e,features:uP,visible:k==="visible",name:"Transition.Child"})))}function G2e(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=C.useRef(null),s=Ru(o,t);L7();let u=P7();if(n===void 0&&u!==null&&(n=(u&Oi.Open)===Oi.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,p]=C.useState(n?"visible":"hidden"),f=lP(()=>{p("hidden")}),[m,g]=C.useState(!0),E=C.useRef([n]);zi(()=>{m!==!1&&E.current[E.current.length-1]!==n&&(E.current.push(n),g(!1))},[E,n]);let b=C.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);C.useEffect(()=>{if(n)p("visible");else if(!bm(f))p("hidden");else{let w=o.current;if(!w)return;let A=w.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&p("hidden")}},[n,f]);let T={unmount:i},v=Xt(()=>{var w;m&&g(!1),(w=e.beforeEnter)==null||w.call(e)}),y=Xt(()=>{var w;m&&g(!1),(w=e.beforeLeave)==null||w.call(e)});return ut.createElement(mm.Provider,{value:f},ut.createElement(gm.Provider,{value:b},wl({ourProps:{...T,as:C.Fragment,children:ut.createElement(cP,{ref:s,...T,...a,beforeEnter:v,beforeLeave:y})},theirProps:{},defaultTag:C.Fragment,features:uP,visible:c==="visible",name:"Transition"})))}function V2e(e,t){let n=C.useContext(gm)!==null,r=P7()!==null;return ut.createElement(ut.Fragment,null,!n&&r?ut.createElement(v9,{ref:t,...e}):ut.createElement(cP,{ref:t,...e}))}let v9=ds(G2e),cP=ds(j2e),W2e=ds(V2e),q2e=Object.assign(v9,{Child:W2e,Root:v9});const K2e=He.div` +`));let f=c.props,m=typeof(f==null?void 0:f.className)=="function"?(...b)=>tm(f==null?void 0:f.className(...b),s.className):tm(f==null?void 0:f.className,s.className),g=m?{className:m}:{};return C.cloneElement(c,Object.assign({},_B(c.props,Zy(B4(s,["ref"]))),p,u,$2e(c.ref,u.ref),g))}return C.createElement(i,Object.assign({},B4(s,["ref"]),i!==C.Fragment&&u,i!==C.Fragment&&p),c)}function $2e(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function _B(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...a)}}});return t}function ys(e){var t;return Object.assign(C.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Zy(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function B4(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function z2e(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&H2e(n)?!1:r}function H2e(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function TB(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))wB(n,SB(t,r),i);return n}function SB(e,t){return e?e+"["+t+"]":t}function wB(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())wB(e,SB(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):TB(n,t,e)}let j2e="div";var AB=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(AB||{});function G2e(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Rl({ourProps:i,theirProps:r,slot:{},defaultTag:j2e,name:"Hidden"})}let V2e=ys(G2e),AT=C.createContext(null);AT.displayName="OpenClosedContext";var Li=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Li||{});function CT(){return C.useContext(AT)}function CB({value:e,children:t}){return ut.createElement(AT.Provider,{value:e},t)}var ur=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ur||{});function W2e(e,t,n){let[r,i]=C.useState(n),a=e!==void 0,o=C.useRef(a),s=C.useRef(!1),u=C.useRef(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!u.current&&(u.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Zt(c=>(a||i(c),t==null?void 0:t(c)))]}function JR(e){return[e.screenX,e.screenY]}function q2e(){let e=C.useRef([-1,-1]);return{wasMoved(t){let n=JR(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=JR(t)}}}function kT(){let e=C.useRef(!1);return Gi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let eN=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tN(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return eN.test(o)&&(o=o.replace(eN,"")),o}function K2e(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():tN(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return tN(e).trim()}function Y2e(e){let t=C.useRef(""),n=C.useRef("");return Zt(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=K2e(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var X2e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(X2e||{}),Z2e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Z2e||{}),Q2e=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Q2e||{}),J2e=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(J2e||{});function U4(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=D2e(t(e.options.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let e5e={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=U4(e),i=U2e(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var s;return!o.dataRef.current.disabled&&((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=U4(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=U4(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},xT=C.createContext(null);xT.displayName="ListboxActionsContext";function gf(e){let t=C.useContext(xT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gf),n}return t}let IT=C.createContext(null);IT.displayName="ListboxDataContext";function mf(e){let t=C.useContext(IT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,mf),n}return t}function t5e(e,t){return Cr(t.type,e5e,e,t)}let n5e=C.Fragment;function r5e(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(ie,Se)=>ie===Se,disabled:u=!1,horizontal:c=!1,multiple:p=!1,...f}=e;const m=c?"horizontal":"vertical";let g=Pu(t),[b=p?[]:void 0,y]=W2e(n,o,r),[T,E]=C.useReducer(t5e,{dataRef:C.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=C.useRef({static:!1,hold:!1}),w=C.useRef(null),A=C.useRef(null),R=C.useRef(null),k=Zt(typeof s=="string"?(ie,Se)=>{let X=s;return(ie==null?void 0:ie[X])===(Se==null?void 0:Se[X])}:s),N=C.useCallback(ie=>Cr(B.mode,{1:()=>b.some(Se=>k(Se,ie)),0:()=>k(b,ie)}),[b]),B=C.useMemo(()=>({...T,value:b,disabled:u,mode:p?1:0,orientation:m,compare:k,isSelected:N,optionsPropsRef:v,labelRef:w,buttonRef:A,optionsRef:R}),[b,u,p,T]);Gi(()=>{T.dataRef.current=B},[B]),M2e([B.buttonRef,B.optionsRef],(ie,Se)=>{var X;E({type:1}),vB(Se,wT.Loose)||(ie.preventDefault(),(X=B.buttonRef.current)==null||X.focus())},B.listboxState===0);let q=C.useMemo(()=>({open:B.listboxState===0,disabled:u,value:b}),[B,u,b]),P=Zt(ie=>{let Se=B.options.find(X=>X.id===ie);Se&&H(Se.dataRef.current.value)}),Q=Zt(()=>{if(B.activeOptionIndex!==null){let{dataRef:ie,id:Se}=B.options[B.activeOptionIndex];H(ie.current.value),E({type:2,focus:yi.Specific,id:Se})}}),$=Zt(()=>E({type:0})),oe=Zt(()=>E({type:1})),fe=Zt((ie,Se,X)=>ie===yi.Specific?E({type:2,focus:yi.Specific,id:Se,trigger:X}):E({type:2,focus:ie,trigger:X})),ce=Zt((ie,Se)=>(E({type:5,id:ie,dataRef:Se}),()=>E({type:6,id:ie}))),De=Zt(ie=>(E({type:7,id:ie}),()=>E({type:7,id:null}))),H=Zt(ie=>Cr(B.mode,{0(){return y==null?void 0:y(ie)},1(){let Se=B.value.slice(),X=Se.findIndex(ke=>k(ke,ie));return X===-1?Se.push(ie):Se.splice(X,1),y==null?void 0:y(Se)}})),W=Zt(ie=>E({type:3,value:ie})),se=Zt(()=>E({type:4})),D=C.useMemo(()=>({onChange:H,registerOption:ce,registerLabel:De,goToOption:fe,closeListbox:oe,openListbox:$,selectActiveOption:Q,selectOption:P,search:W,clearSearch:se}),[]),pe={ref:g},le=C.useRef(null),L=pc();return C.useEffect(()=>{le.current&&r!==void 0&&L.addEventListener(le.current,"reset",()=>{y==null||y(r)})},[le,y]),ut.createElement(xT.Provider,{value:D},ut.createElement(IT.Provider,{value:B},ut.createElement(CB,{value:Cr(B.listboxState,{0:Li.Open,1:Li.Closed})},a!=null&&b!=null&&TB({[a]:b}).map(([ie,Se],X)=>ut.createElement(V2e,{features:AB.Hidden,ref:X===0?ke=>{var te;le.current=(te=ke==null?void 0:ke.closest("form"))!=null?te:null}:void 0,...Zy({key:ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:ie,value:Se})})),Rl({ourProps:pe,theirProps:f,slot:q,defaultTag:n5e,name:"Listbox"}))))}let i5e="button";function a5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-button-${r}`,...a}=e,o=mf("Listbox.Button"),s=gf("Listbox.Button"),u=Pu(o.buttonRef,t),c=pc(),p=Zt(T=>{switch(T.key){case ur.Space:case ur.Enter:case ur.ArrowDown:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.First)});break;case ur.ArrowUp:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.Last)});break}}),f=Zt(T=>{switch(T.key){case ur.Space:T.preventDefault();break}}),m=Zt(T=>{if(z2e(T.currentTarget))return T.preventDefault();o.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var E;return(E=o.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})})):(T.preventDefault(),s.openListbox())}),g=yB(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),b=C.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),y={ref:u,id:i,type:F2e(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":g,disabled:o.disabled,onKeyDown:p,onKeyUp:f,onClick:m};return Rl({ourProps:y,theirProps:a,slot:b,defaultTag:i5e,name:"Listbox.Button"})}let o5e="label";function s5e(e,t){let n=B2(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,a=mf("Listbox.Label"),o=gf("Listbox.Label"),s=Pu(a.labelRef,t);Gi(()=>o.registerLabel(r),[r]);let u=Zt(()=>{var p;return(p=a.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=C.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return Rl({ourProps:{ref:s,id:r,onClick:u},theirProps:i,slot:c,defaultTag:o5e,name:"Listbox.Label"})}let l5e="ul",u5e=nm.RenderStrategy|nm.Static;function c5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-options-${r}`,...a}=e,o=mf("Listbox.Options"),s=gf("Listbox.Options"),u=Pu(o.optionsRef,t),c=pc(),p=pc(),f=CT(),m=(()=>f!==null?(f&Li.Open)===Li.Open:o.listboxState===0)();C.useEffect(()=>{var E;let v=o.optionsRef.current;v&&o.listboxState===0&&v!==((E=EB(v))==null?void 0:E.activeElement)&&v.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let g=Zt(E=>{switch(p.dispose(),E.key){case ur.Space:if(o.searchQuery!=="")return E.preventDefault(),E.stopPropagation(),s.search(E.key);case ur.Enter:if(E.preventDefault(),E.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:v}=o.options[o.activeOptionIndex];s.onChange(v.current.value)}o.mode===0&&(s.closeListbox(),vl().nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})}));break;case Cr(o.orientation,{vertical:ur.ArrowDown,horizontal:ur.ArrowRight}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Next);case Cr(o.orientation,{vertical:ur.ArrowUp,horizontal:ur.ArrowLeft}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Previous);case ur.Home:case ur.PageUp:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.First);case ur.End:case ur.PageDown:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Last);case ur.Escape:return E.preventDefault(),E.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})});case ur.Tab:E.preventDefault(),E.stopPropagation();break;default:E.key.length===1&&(s.search(E.key),p.setTimeout(()=>s.clearSearch(),350));break}}),b=yB(()=>{var E,v,w;return(w=(E=o.labelRef.current)==null?void 0:E.id)!=null?w:(v=o.buttonRef.current)==null?void 0:v.id},[o.labelRef.current,o.buttonRef.current]),y=C.useMemo(()=>({open:o.listboxState===0}),[o]),T={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":b,"aria-orientation":o.orientation,id:i,onKeyDown:g,role:"listbox",tabIndex:0,ref:u};return Rl({ourProps:T,theirProps:a,slot:y,defaultTag:l5e,features:u5e,visible:m,name:"Listbox.Options"})}let d5e="li";function p5e(e,t){let n=B2(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...o}=e,s=mf("Listbox.Option"),u=gf("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===r:!1,p=s.isSelected(a),f=C.useRef(null),m=Y2e(f),g=wo({disabled:i,value:a,domRef:f,get textValue(){return m()}}),b=Pu(t,f);Gi(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let k=vl();return k.requestAnimationFrame(()=>{var N,B;(B=(N=f.current)==null?void 0:N.scrollIntoView)==null||B.call(N,{block:"nearest"})}),k.dispose},[f,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Gi(()=>u.registerOption(r,g),[g,r]);let y=Zt(k=>{if(i)return k.preventDefault();u.onChange(a),s.mode===0&&(u.closeListbox(),vl().nextFrame(()=>{var N;return(N=s.buttonRef.current)==null?void 0:N.focus({preventScroll:!0})}))}),T=Zt(()=>{if(i)return u.goToOption(yi.Nothing);u.goToOption(yi.Specific,r)}),E=q2e(),v=Zt(k=>E.update(k)),w=Zt(k=>{E.wasMoved(k)&&(i||c||u.goToOption(yi.Specific,r,0))}),A=Zt(k=>{E.wasMoved(k)&&(i||c&&u.goToOption(yi.Nothing))}),R=C.useMemo(()=>({active:c,selected:p,disabled:i}),[c,p,i]);return Rl({ourProps:{id:r,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:y,onFocus:T,onPointerEnter:v,onMouseEnter:v,onPointerMove:w,onMouseMove:w,onPointerLeave:A,onMouseLeave:A},theirProps:o,slot:R,defaultTag:d5e,name:"Listbox.Option"})}let f5e=ys(r5e),h5e=ys(a5e),g5e=ys(s5e),m5e=ys(c5e),b5e=ys(p5e),U2=Object.assign(f5e,{Button:h5e,Label:g5e,Options:m5e,Option:b5e});function y5e(e=0){let[t,n]=C.useState(e),r=kT(),i=C.useCallback(u=>{r.current&&n(c=>c|u)},[t,r]),a=C.useCallback(u=>!!(t&u),[t]),o=C.useCallback(u=>{r.current&&n(c=>c&~u)},[n,r]),s=C.useCallback(u=>{r.current&&n(c=>c^u)},[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:s}}function E5e(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function $4(e,...t){e&&t.length>0&&e.classList.add(...t)}function z4(e,...t){e&&t.length>0&&e.classList.remove(...t)}function v5e(e,t){let n=vl();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,f)=>f-p);return c}),s=a+o;if(s!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let u=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return n.add(()=>t()),n.dispose}function _5e(e,t,n,r){let i=n?"enter":"leave",a=vl(),o=r!==void 0?E5e(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Cr(i,{enter:()=>t.enter,leave:()=>t.leave}),u=Cr(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Cr(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return z4(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),$4(e,...t.base,...s,...c),a.nextFrame(()=>{z4(e,...t.base,...s,...c),$4(e,...t.base,...s,...u),v5e(e,()=>(z4(e,...t.base,...s),$4(e,...t.base,...t.entered),o()))}),a.dispose}function T5e({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=kT(),s=pc(),u=wo(n);Gi(()=>{e&&(u.current="enter")},[e]),Gi(()=>{let c=vl();s.add(c.dispose);let p=t.current;if(p&&u.current!=="idle"&&o.current)return c.dispose(),i.current(u.current),c.add(_5e(p,r.current,u.current==="enter",()=>{c.dispose(),a.current(u.current)})),c.dispose},[n])}function Bs(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let $2=C.createContext(null);$2.displayName="TransitionContext";var S5e=(e=>(e.Visible="visible",e.Hidden="hidden",e))(S5e||{});function w5e(){let e=C.useContext($2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function A5e(){let e=C.useContext(z2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let z2=C.createContext(null);z2.displayName="NestingContext";function H2(e){return"children"in e?H2(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function kB(e,t){let n=wo(e),r=C.useRef([]),i=kT(),a=pc(),o=Zt((g,b=Qs.Hidden)=>{let y=r.current.findIndex(({el:T})=>T===g);y!==-1&&(Cr(b,{[Qs.Unmount](){r.current.splice(y,1)},[Qs.Hidden](){r.current[y].state="hidden"}}),a.microTask(()=>{var T;!H2(r)&&i.current&&((T=n.current)==null||T.call(n))}))}),s=Zt(g=>{let b=r.current.find(({el:y})=>y===g);return b?b.state!=="visible"&&(b.state="visible"):r.current.push({el:g,state:"visible"}),()=>o(g,Qs.Unmount)}),u=C.useRef([]),c=C.useRef(Promise.resolve()),p=C.useRef({enter:[],leave:[],idle:[]}),f=Zt((g,b,y)=>{u.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([T])=>T!==g)),t==null||t.chains.current[b].push([g,new Promise(T=>{u.current.push(T)})]),t==null||t.chains.current[b].push([g,new Promise(T=>{Promise.all(p.current[b].map(([E,v])=>v)).then(()=>T())})]),b==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(b)):y(b)}),m=Zt((g,b,y)=>{Promise.all(p.current[b].splice(0).map(([T,E])=>E)).then(()=>{var T;(T=u.current.shift())==null||T()}).then(()=>y(b))});return C.useMemo(()=>({children:r,register:s,unregister:o,onStart:f,onStop:m,wait:c,chains:p}),[s,o,r,f,m,p,c])}function C5e(){}let k5e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nN(e){var t;let n={};for(let r of k5e)n[r]=(t=e[r])!=null?t:C5e;return n}function x5e(e){let t=C.useRef(nN(e));return C.useEffect(()=>{t.current=nN(e)},[e]),t}let I5e="div",xB=nm.RenderStrategy;function R5e(e,t){var n,r;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s,enter:u,enterFrom:c,enterTo:p,entered:f,leave:m,leaveFrom:g,leaveTo:b,...y}=e,T=C.useRef(null),E=Pu(T,t),v=(n=y.unmount)==null||n?Qs.Unmount:Qs.Hidden,{show:w,appear:A,initial:R}=w5e(),[k,N]=C.useState(w?"visible":"hidden"),B=A5e(),{register:q,unregister:P}=B;C.useEffect(()=>q(T),[q,T]),C.useEffect(()=>{if(v===Qs.Hidden&&T.current){if(w&&k!=="visible"){N("visible");return}return Cr(k,{hidden:()=>P(T),visible:()=>q(T)})}},[k,T,q,P,w,v]);let Q=wo({base:Bs(y.className),enter:Bs(u),enterFrom:Bs(c),enterTo:Bs(p),entered:Bs(f),leave:Bs(m),leaveFrom:Bs(g),leaveTo:Bs(b)}),$=x5e({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s}),oe=ST();C.useEffect(()=>{if(oe&&k==="visible"&&T.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[T,k,oe]);let fe=R&&!A,ce=A&&w&&R,De=(()=>!oe||fe?"idle":w?"enter":"leave")(),H=y5e(0),W=Zt(L=>Cr(L,{enter:()=>{H.addFlag(Li.Opening),$.current.beforeEnter()},leave:()=>{H.addFlag(Li.Closing),$.current.beforeLeave()},idle:()=>{}})),se=Zt(L=>Cr(L,{enter:()=>{H.removeFlag(Li.Opening),$.current.afterEnter()},leave:()=>{H.removeFlag(Li.Closing),$.current.afterLeave()},idle:()=>{}})),D=kB(()=>{N("hidden"),P(T)},B);T5e({immediate:ce,container:T,classes:Q,direction:De,onStart:wo(L=>{D.onStart(T,L,W)}),onStop:wo(L=>{D.onStop(T,L,se),L==="leave"&&!H2(D)&&(N("hidden"),P(T))})});let pe=y,le={ref:E};return ce?pe={...pe,className:tm(y.className,...Q.current.enter,...Q.current.enterFrom)}:(pe.className=tm(y.className,(r=T.current)==null?void 0:r.className),pe.className===""&&delete pe.className),ut.createElement(z2.Provider,{value:D},ut.createElement(CB,{value:Cr(k,{visible:Li.Open,hidden:Li.Closed})|H.flags},Rl({ourProps:le,theirProps:pe,defaultTag:I5e,features:xB,visible:k==="visible",name:"Transition.Child"})))}function N5e(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=C.useRef(null),s=Pu(o,t);ST();let u=CT();if(n===void 0&&u!==null&&(n=(u&Li.Open)===Li.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,p]=C.useState(n?"visible":"hidden"),f=kB(()=>{p("hidden")}),[m,g]=C.useState(!0),b=C.useRef([n]);Gi(()=>{m!==!1&&b.current[b.current.length-1]!==n&&(b.current.push(n),g(!1))},[b,n]);let y=C.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);C.useEffect(()=>{if(n)p("visible");else if(!H2(f))p("hidden");else{let w=o.current;if(!w)return;let A=w.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&p("hidden")}},[n,f]);let T={unmount:i},E=Zt(()=>{var w;m&&g(!1),(w=e.beforeEnter)==null||w.call(e)}),v=Zt(()=>{var w;m&&g(!1),(w=e.beforeLeave)==null||w.call(e)});return ut.createElement(z2.Provider,{value:f},ut.createElement($2.Provider,{value:y},Rl({ourProps:{...T,as:C.Fragment,children:ut.createElement(IB,{ref:s,...T,...a,beforeEnter:E,beforeLeave:v})},theirProps:{},defaultTag:C.Fragment,features:xB,visible:c==="visible",name:"Transition"})))}function O5e(e,t){let n=C.useContext($2)!==null,r=CT()!==null;return ut.createElement(ut.Fragment,null,!n&&r?ut.createElement(Qy,{ref:t,...e}):ut.createElement(IB,{ref:t,...e}))}let Qy=ys(N5e),IB=ys(R5e),D5e=ys(O5e),L5e=Object.assign(Qy,{Child:D5e,Root:Qy});const M5e=Ge.div` display: grid; grid-template-columns: 1fr auto; align-items: center; - border: 0.5px solid ${vt}; - border-radius: ${wt}; + border: 0.5px solid ${Et}; + border-radius: ${It}; overflow: hidden; -`;He.select` +`;Ge.select` border: none; max-width: 50vw; - background-color: ${Kt}; - color: ${Ht}; + background-color: ${Ht}; + color: ${Yt}; padding: 6px; max-height: 35vh; overflow: scroll; @@ -921,10 +897,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho outline: none; } &:hover { - background-color: ${Lt}; + background-color: ${Vt}; } -`;const Y2e=He(cD)` - background-color: ${Kt}; +`;const F5e=Ge(CL)` + background-color: ${Ht}; cursor: pointer; margin: 0px; padding-left: 4px; @@ -932,27 +908,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho height: 100%; &:hover { - background-color: ${Lt}; + background-color: ${Vt}; } - border-left: 0.5px solid ${vt}; -`;He.div` + border-left: 0.5px solid ${Et}; +`;Ge.div` cursor: pointer; padding: 8px; padding-left: 16px; padding-right: 16px; - border-top: 0.5px solid ${vt}; + border-top: 0.5px solid ${Et}; &:hover { - background-color: ${Lt}; + background-color: ${Vt}; } -`;const X2e=He(hm)` - background-color: ${Kt}; +`;const P5e=Ge(U2)` + background-color: ${Ht}; padding: 0; min-width: 80px; -`,Z2e=He(hm.Button)` +`,B5e=Ge(U2.Button)` position: relative; cursor: pointer; - background-color: ${Kt}; + background-color: ${Ht}; text-align: left; border: none; margin: 0; @@ -966,7 +942,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho grid-template-columns: 1fr auto; align-items: center; - color: ${Ht}; + color: ${Yt}; padding: 4px 8px; @@ -975,55 +951,55 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } &:hover { - background-color: ${Lt}; + background-color: ${Vt}; } -`,Q2e=He(hm.Options)` - background-color: ${Lt}; +`,U5e=Ge(U2.Options)` + background-color: ${Vt}; padding: 0; position: absolute; bottom: calc(100% - 16px); max-width: 100%; - border-radius: ${wt}; + border-radius: ${It}; overflow: hidden; -`,J2e=He(hm.Option)` - background-color: ${({selected:e})=>e?`${da}88`:Lt}; +`,$5e=Ge(U2.Option)` + background-color: ${({selected:e})=>e?`${ha}88`:Vt}; cursor: pointer; padding: 6px 8px; &:hover { - background-color: ${da}44; + background-color: ${ha}44; } -`;function f4(e){return e!=null&&e.title?e==null?void 0:e.title:(e==null?void 0:e.model)!==void 0&&(e==null?void 0:e.model.trim())!==""?e!=null&&e.class_name?`${e==null?void 0:e.class_name} - ${e==null?void 0:e.model}`:e==null?void 0:e.model:e==null?void 0:e.class_name}function eme(e){const t=C.useContext(Ya),n=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.default}),r=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.saved}),i=cs(),a={value:JSON.stringify({t:"default",idx:-1}),title:"GPT-4"},[o,s]=C.useState([a]);C.useEffect(()=>{if(!n&&!r){s([a]);return}const c=[];n&&c.push({value:JSON.stringify({t:"default",idx:-1}),title:f4(n)}),r==null||r.forEach((p,f)=>{c.push({value:JSON.stringify({t:"saved",idx:f}),title:f4(p)})}),s(c)},[n,r]);const u=document.getElementById("model-select-top-div");return I.jsx(I.Fragment,{children:I.jsxs(K2e,{children:[I.jsx(X2e,{value:JSON.stringify({t:"default",idx:-1}),onChange:c=>{const p=JSON.parse(c);p.t==="saved"&&(t==null||t.setModelForRoleFromIndex("*",p.idx))},defaultValue:"0",children:I.jsxs("div",{className:"relative",children:[I.jsxs(Z2e,{children:[I.jsx("div",{children:f4(n)||"GPT-4"}),I.jsx("div",{className:"pointer-events-none flex items-center",children:I.jsx(kY,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),u&&_E.createPortal(I.jsx(q2e,{as:C.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:I.jsx(Q2e,{children:o.map((c,p)=>I.jsx(J2e,{selected:c.value===JSON.stringify({t:"default",idx:-1}),value:c.value,children:I.jsx("span",{children:c.title})},p))})}),u)]})}),I.jsx(Y2e,{width:"1.3em",height:"1.3em",onClick:()=>{i("/models")}})]})})}const tme=He.div` +`;function H4(e){return e!=null&&e.title?e==null?void 0:e.title:(e==null?void 0:e.model)!==void 0&&(e==null?void 0:e.model.trim())!==""?e!=null&&e.class_name?`${e==null?void 0:e.class_name} - ${e==null?void 0:e.model}`:e==null?void 0:e.model:e==null?void 0:e.class_name}function z5e(e){const t=C.useContext(to),n=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.default}),r=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.saved}),i=bs(),a={value:JSON.stringify({t:"default",idx:-1}),title:"GPT-4"},[o,s]=C.useState([a]);C.useEffect(()=>{if(!n&&!r){s([a]);return}const c=[];n&&c.push({value:JSON.stringify({t:"default",idx:-1}),title:H4(n)}),r==null||r.forEach((p,f)=>{c.push({value:JSON.stringify({t:"saved",idx:f}),title:H4(p)})}),s(c)},[n,r]);const u=document.getElementById("model-select-top-div");return I.jsx(I.Fragment,{children:I.jsxs(M5e,{children:[I.jsx(P5e,{value:JSON.stringify({t:"default",idx:-1}),onChange:c=>{const p=JSON.parse(c);p.t==="saved"&&(t==null||t.setModelForRoleFromIndex("*",p.idx))},defaultValue:"0",children:I.jsxs("div",{className:"relative",children:[I.jsxs(B5e,{children:[I.jsx("div",{children:H4(n)||"GPT-4"}),I.jsx("div",{className:"pointer-events-none flex items-center",children:I.jsx(_Z,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),u&&u9.createPortal(I.jsx(L5e,{as:C.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:I.jsx(U5e,{children:o.map((c,p)=>I.jsx($5e,{selected:c.value===JSON.stringify({t:"default",idx:-1}),value:c.value,children:I.jsx("span",{children:c.title})},p))})}),u)]})}),I.jsx(F5e,{width:"1.3em",height:"1.3em",onClick:()=>{i("/models")}})]})})}const H5e=Ge.div` width: 100px; height: 6px; border-radius: 6px; - border: 0.5px solid ${vt}; + border: 0.5px solid ${Et}; margin-top: 6px; -`,nme=He.div` +`,j5e=Ge.div` height: 100%; - background-color: ${e=>e.color||Ht}; + background-color: ${e=>e.color||Yt}; border-radius: inherit; transition: width 0.2s ease-in-out; width: ${e=>e.completed}%; -`,rme=He.div` +`,G5e=Ge.div` display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; -`,ime=He.p` +`,V5e=Ge.p` margin: 0; margin-top: 2px; font-size: 11.5px; - color: ${vt}; + color: ${Et}; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -`,ame=({completed:e,total:t})=>{const n=Math.min(100,Math.max(0,e/t*100));return I.jsxs(I.Fragment,{children:[I.jsx("a",{href:"https://continue.dev/docs/customization/models",className:"no-underline ml-2",children:I.jsxs(rme,{"data-tooltip-id":"usage_progress_bar",children:[I.jsx(tme,{children:I.jsx(nme,{completed:n,color:e/t>.75?e/t>.95?"#f00":"#fc0":void 0})}),I.jsxs(ime,{children:["Free Uses: ",e," / ",t]})]})}),I.jsx(Gs,{id:"usage_progress_bar",place:"bottom",children:"Continue allows you to use our OpenAI API key for up to 250 inputs. After this, you can either use your own API key, or use a local LLM. Click the progress bar to go to the docs and learn more."})]})},ome="1.8em",sme=He.div` +`,W5e=({completed:e,total:t})=>{const n=Math.min(100,Math.max(0,e/t*100));return I.jsxs(I.Fragment,{children:[I.jsx("a",{href:"https://continue.dev/docs/customization/models",className:"no-underline ml-2",children:I.jsxs(G5e,{"data-tooltip-id":"usage_progress_bar",children:[I.jsx(H5e,{children:I.jsx(j5e,{completed:n,color:e/t>.75?e/t>.95?"#f00":"#fc0":void 0})}),I.jsxs(V5e,{children:["Free Uses: ",e," / ",t]})]})}),I.jsx(au,{id:"usage_progress_bar",place:"bottom",children:"Continue allows you to use our OpenAI API key for up to 250 inputs. After this, you can either use your own API key, or use a local LLM. Click the progress bar to go to the docs and learn more."})]})},q5e="1.8em",K5e=Ge.div` height: 100%; - border-radius: ${wt}; + border-radius: ${It}; scrollbar-base-color: transparent; scrollbar-width: thin; @@ -1040,7 +1016,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border-radius: 2px; } } -`,lme=He.div` +`,Y5e=Ge.div` position: fixed; bottom: ${e=>e.displayOnBottom?"50px":void 0}; top: ${e=>e.displayOnBottom?void 0:"50px"}; @@ -1048,14 +1024,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho right: 0; margin: 8px; margin-top: 0; - background-color: ${Lt}; - color: ${Ht}; - border-radius: ${wt}; + background-color: ${Vt}; + color: ${Yt}; + border-radius: ${It}; padding: 12px; z-index: 100; - box-shadow: 0px 0px 2px 0px ${Ht}; + box-shadow: 0px 0px 2px 0px ${Yt}; max-height: 35vh; -`,ume=He.footer` +`,X5e=Ge.footer` display: flex; flex-direction: row; gap: 8px; @@ -1063,24 +1039,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho padding: 8px; align-items: center; width: calc(100% - 16px); - height: ${ome}; + height: ${q5e}; overflow: hidden; -`,cme=He.div` +`,Z5e=Ge.div` display: grid; grid-template-rows: 1fr auto; height: 100vh; overflow-x: visible; -`,dme=He.div` - background-color: ${Lt}; +`,Q5e=Ge.div` + background-color: ${Vt}; position: relative; margin-left: 8px; z-index: 200; - font-size: ${nr()}; -`,pme=()=>{const e=cs(),t=D7(),n=C.useContext(Ya),r=us(),i=zt(p=>p.uiState.dialogMessage),a=zt(p=>p.uiState.showDialog),o=zt(p=>{var f;return(f=p.serverState.config.models)==null?void 0:f.default}),s=zt(p=>p.uiState.bottomMessage),u=zt(p=>p.uiState.displayBottomMessageOnBottom),c=zt(p=>p.serverState.history.timeline);return C.useEffect(()=>{const p=f=>{var m;if(f.metaKey&&f.altKey&&f.code==="KeyN"&&c.filter(g=>!g.step.hide).length>0&&(r(sm(!1)),n==null||n.loadSession(void 0)),(f.metaKey||f.ctrlKey)&&f.code==="KeyC"){const g=(m=window.getSelection())==null?void 0:m.toString();g&&setTimeout(()=>{navigator.clipboard.writeText(g)},100)}};return window.addEventListener("keydown",p),()=>{window.removeEventListener("keydown",p)}},[n,c]),C.useEffect(()=>{const p=f=>{f.data.type==="addModel"?e("/models"):f.data.type==="openSettings"&&e("/settings")};return window.addEventListener("message",p),()=>{window.removeEventListener("message",p)}},[]),I.jsxs(sme,{children:[I.jsxs("div",{style:{scrollbarGutter:"stable both-edges",minHeight:"100%",display:"grid",gridTemplateRows:"1fr auto"},children:[I.jsx(Fge,{showDialog:a,onEnter:()=>{r(Q1(!1))},onClose:()=>{r(Q1(!1))},message:i}),I.jsxs(cme,{children:[I.jsx(oge,{}),I.jsx(dme,{id:"model-select-top-div"}),I.jsxs(ume,{children:[I.jsxs("div",{className:"mr-auto flex gap-2 items-center",children:[localStorage.getItem("ide")==="jetbrains"||localStorage.getItem("hideFeature")==="true"||I.jsx(dD,{className:"cursor-pointer",onClick:()=>{localStorage.setItem("hideFeature","true")},onMouseEnter:()=>{r(au("🎁 New Feature: Use ⌘⇧R automatically debug errors in the terminal (you can click the sparkle icon to make it go away)"))},onMouseLeave:()=>{r(Wk(setTimeout(()=>{r(au(void 0))},2e3)))},width:"1.3em",height:"1.3em",color:"yellow"}),I.jsx(eme,{}),(o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(t.pathname==="/settings"||parseInt(localStorage.getItem("ftc")||"0")>=125)&&I.jsx(ame,{completed:parseInt(localStorage.getItem("ftc")||"0"),total:250})]}),I.jsx(vi,{text:"Help",onClick:()=>{e("/help")},children:I.jsx(iX,{width:"1.4em",height:"1.4em"})}),I.jsx(vi,{onClick:()=>{e("/settings")},text:"Settings",children:I.jsx(LY,{width:"1.4em",height:"1.4em"})})]})]}),I.jsx(lme,{displayOnBottom:u,onMouseEnter:()=>{r(Wk(void 0))},onMouseLeave:p=>{p.buttons||r(au(void 0))},hidden:!s,children:s})]}),I.jsx("div",{className:"text-sm",id:"tooltip-portal-div"})]})};class fme{}class dP{}class hme extends dP{constructor(n){super();ea(this,"websocket");ea(this,"onMessageListeners",{});ea(this,"onErrorListeners",[]);ea(this,"onOpenListeners",[]);ea(this,"onCloseListeners",[]);ea(this,"serverUrl");this.serverUrl=n,this.websocket=this._newWebsocket()}_newWebsocket(){const n=new WebSocket(this.serverUrl);for(const r of this.onOpenListeners)this.onOpen(r);for(const r of this.onCloseListeners)this.onClose(r);for(const r in this.onMessageListeners)for(const i of this.onMessageListeners[r])this.onMessageType(r,i);for(const r of this.onErrorListeners)this.onError(r);return n}send(n,r){const i=JSON.stringify({messageType:n,data:r});this.websocket.readyState===this.websocket.OPEN?this.websocket.send(i):(this.websocket.readyState!==this.websocket.CONNECTING&&(this.websocket=this._newWebsocket()),this.websocket.addEventListener("open",()=>{this.websocket.send(i)}))}sendAndReceive(n,r){return new Promise((i,a)=>{const o=s=>{i(s),this.websocket.removeEventListener("message",o)};this.websocket.addEventListener("message",s=>{const u=JSON.parse(s.data);u.messageType===n&&o(u.data)}),this.send(n,r)})}onMessageType(n,r){this.websocket.addEventListener("message",i=>{const a=JSON.parse(i.data);a.messageType===n&&r(a.data)}),this.onMessageListeners[n]=[...this.onMessageListeners[n]||[],r]}onMessage(n){this.websocket.addEventListener("message",r=>{const i=JSON.parse(r.data);n(i.messageType,i.data)})}onOpen(n){this.websocket.addEventListener("open",n),this.onOpenListeners.push(n)}onClose(n){this.websocket.addEventListener("close",n),this.onCloseListeners.push(n)}onError(n){this.websocket.addEventListener("error",n),this.onErrorListeners.push(n)}close(){this.websocket.close()}}class gme extends dP{constructor(n){super();ea(this,"serverUrl");this.serverUrl=n,rl("websocketForwardingOpen",{url:this.serverUrl})}send(n,r){rl("websocketForwardingMessage",{message:{messageType:n,data:r},url:this.serverUrl})}onMessageType(n,r){window.addEventListener("message",i=>{if(i.data.type==="websocketForwardingMessage"){const a=JSON.parse(i.data.data);a.messageType===n&&r(a.data)}})}onMessage(n){window.addEventListener("message",r=>{if(r.data.type==="websocketForwardingMessage"){const i=JSON.parse(r.data.data);n(i.messageType,i.data)}})}onError(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingError"&&n(r.data.error)})}sendAndReceive(n,r){return new Promise(i=>{const a=o=>{if(o.data.type==="websocketForwardingMessage"){const s=JSON.parse(o.data.data);s.messageType===n&&(window.removeEventListener("message",a),i(s.data))}};window.addEventListener("message",a),this.send(n,r)})}onOpen(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingOpen"&&n()})}onClose(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingClose"&&n()})}close(){rl("websocketForwardingClose",{url:this.serverUrl})}}class mme extends fme{constructor(n,r){super();ea(this,"messenger");ea(this,"serverUrlWithSessionId");ea(this,"useVscodeMessagePassing");ea(this,"onStateUpdateCallbacks",[]);this.serverUrlWithSessionId=n,this.useVscodeMessagePassing=r,this.connectMessenger(n,r)}connectMessenger(n,r){this.messenger&&(console.log("Closing session: ",this.serverUrlWithSessionId),this.messenger.close()),this.serverUrlWithSessionId=n,this.useVscodeMessagePassing=r,this.messenger=r?new gme(n):new hme(n),this.messenger.onClose(()=>{console.log("GUI Connection closed: ",n)}),this.messenger.onError(i=>{console.log("GUI Connection error: ",i)}),this.messenger.onOpen(()=>{console.log("GUI Connection opened: ",n)}),this.messenger.onMessageType("reconnect_at_session",i=>{i.session_id&&this.onReconnectAtSession(i.session_id)}),this.messenger.onMessageType("state_update",i=>{if(i.state)for(const a of this.onStateUpdateCallbacks)a(i.state)})}loadSession(n){var r;(r=this.messenger)==null||r.send("load_session",{session_id:n})}onReconnectAtSession(n){const r=`${this.serverUrlWithSessionId.split("?")[0]}?session_id=${n}`;console.log("Reconnecting at session: ",r),this.connectMessenger(r,this.useVscodeMessagePassing)}sendMainInput(n){var r;(r=this.messenger)==null||r.send("main_input",{input:n})}reverseToIndex(n){var r;(r=this.messenger)==null||r.send("reverse_to_index",{index:n})}sendRefinementInput(n,r){var i;(i=this.messenger)==null||i.send("refinement_input",{input:n,index:r})}sendStepUserInput(n,r){var i;(i=this.messenger)==null||i.send("step_user_input",{input:n,index:r})}onStateUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("state_update",i=>{i.state&&n(i.state)}),this.onStateUpdateCallbacks.push(n)}onAvailableSlashCommands(n){var r;(r=this.messenger)==null||r.onMessageType("available_slash_commands",i=>{i.commands&&n(i.commands)})}sendClear(){var n;(n=this.messenger)==null||n.send("clear_history",{})}retryAtIndex(n){var r;(r=this.messenger)==null||r.send("retry_at_index",{index:n})}deleteAtIndex(n){var r;(r=this.messenger)==null||r.send("delete_at_index",{index:n})}deleteContextWithIds(n,r){var i;(i=this.messenger)==null||i.send("delete_context_with_ids",{ids:n.map(a=>`${a.provider_title}-${a.item_id}`),index:r})}setEditingAtIds(n){var r;(r=this.messenger)==null||r.send("set_editing_at_ids",{ids:n})}toggleAddingHighlightedCode(){var n;(n=this.messenger)==null||n.send("toggle_adding_highlighted_code",{})}showLogsAtIndex(n){var r;(r=this.messenger)==null||r.send("show_logs_at_index",{index:n})}showContextVirtualFile(n){var r;(r=this.messenger)==null||r.send("show_context_virtual_file",{index:n})}selectContextItem(n,r){var i;(i=this.messenger)==null||i.send("select_context_item",{id:n,query:r})}selectContextItemAtIndex(n,r,i){var a;(a=this.messenger)==null||a.send("select_context_item_at_index",{id:n,query:r,index:i})}editStepAtIndex(n,r){var i;(i=this.messenger)==null||i.send("edit_step_at_index",{user_input:n,index:r})}setSystemMessage(n){var r;(r=this.messenger)==null||r.send("set_system_message",{message:n})}setTemperature(n){var r;(r=this.messenger)==null||r.send("set_temperature",{temperature:n})}addModelForRole(n,r,i){var a;(a=this.messenger)==null||a.send("add_model_for_role",{role:n,model:i,model_class:r})}setModelForRoleFromIndex(n,r){var i;(i=this.messenger)==null||i.send("set_model_for_role_from_index",{role:n,index:r})}saveContextGroup(n,r){var i;(i=this.messenger)==null||i.send("save_context_group",{context_items:r,title:n})}selectContextGroup(n){var r;(r=this.messenger)==null||r.send("select_context_group",{id:n})}deleteContextGroup(n){var r;(r=this.messenger)==null||r.send("delete_context_group",{id:n})}setCurrentSessionTitle(n){var r;(r=this.messenger)==null||r.send("set_current_session_title",{title:n})}previewContextItem(n){var r;(r=this.messenger)==null||r.send("preview_context_item",{id:n})}}function bme(e=!0){const t=zt(a=>a.config.sessionId),n=zt(a=>a.config.apiUrl),[r,i]=C.useState(void 0);return C.useEffect(()=>{if(console.log(r,t,n),!t||!n){e&&rl("onLoad",{}),i(void 0);return}const a=n.replace("http","ws")+"/gui/ws?session_id="+encodeURIComponent(t);console.log("Creating GUI websocket",a,e);const o=new mme(a,e);console.log(o),i(o)},[t,n]),r}const pP=Zp({name:"config",initialState:{apiUrl:"http://localhost:8000",vscMediaUrl:localStorage.getItem("vscMediaUrl")||void 0},reducers:{setWorkspacePaths:(e,t)=>({...e,workspacePaths:t.payload}),setApiUrl:(e,t)=>({...e,apiUrl:t.payload}),setVscMachineId:(e,t)=>({...e,vscMachineId:t.payload}),setSessionId:(e,t)=>({...e,sessionId:t.payload}),setVscMediaUrl:(e,t)=>(localStorage.setItem("vscMediaUrl",t.payload),{...e,vscMediaUrl:t.payload}),setDataSwitchOn:(e,t)=>({...e,dataSwitchOn:t.payload})}}),{setVscMachineId:Eme,setApiUrl:vme,setWorkspacePaths:yme,setSessionId:_me,setVscMediaUrl:Tme,setDataSwitchOn:Sme}=pP.actions,wme=pP.reducer;function Ame(){const e=QF();return console.error(e),I.jsxs("div",{id:"error-page",className:"text-center",children:[I.jsx("h1",{children:"Error in Continue React App"}),I.jsx("p",{children:I.jsx("i",{children:e.statusText||e.message})}),I.jsx("br",{}),I.jsx("pre",{className:"text-left m-4",children:e.stack})]})}const fP="28px",Cme=He.div` + font-size: ${pr()}; +`,J5e=()=>{const e=bs(),t=TT(),n=C.useContext(to),r=eo(),i=zt(p=>p.uiState.dialogMessage),a=zt(p=>p.uiState.showDialog),o=zt(p=>{var f;return(f=p.serverState.config.models)==null?void 0:f.default}),s=zt(p=>p.uiState.bottomMessage),u=zt(p=>p.uiState.displayBottomMessageOnBottom),c=zt(p=>p.sessionState.history);return C.useEffect(()=>{const p=f=>{var m;if(f.metaKey&&f.altKey&&f.code==="KeyN"&&(n==null||n.stopSession(),r(uc())),(f.metaKey||f.ctrlKey)&&f.code==="KeyC"){const g=(m=window.getSelection())==null?void 0:m.toString();g&&setTimeout(()=>{navigator.clipboard.writeText(g)},100)}};return window.addEventListener("keydown",p),()=>{window.removeEventListener("keydown",p)}},[n,c]),C.useEffect(()=>{const p=f=>{f.data.type==="addModel"?e("/models"):f.data.type==="openSettings"&&e("/settings")};return window.addEventListener("message",p),()=>{window.removeEventListener("message",p)}},[]),I.jsxs(K5e,{children:[I.jsxs("div",{style:{scrollbarGutter:"stable both-edges",minHeight:"100%",display:"grid",gridTemplateRows:"1fr auto"},children:[I.jsx(S2e,{showDialog:a,onEnter:()=>{r(cc(!1))},onClose:()=>{r(cc(!1))},message:i}),I.jsxs(Z5e,{children:[I.jsx(Qme,{}),I.jsx(Q5e,{id:"model-select-top-div"}),I.jsxs(X5e,{children:[I.jsxs("div",{className:"mr-auto flex gap-2 items-center",children:[localStorage.getItem("ide")==="jetbrains"||localStorage.getItem("hideFeature")==="true"||I.jsx(ZZ,{className:"cursor-pointer",onClick:()=>{localStorage.setItem("hideFeature","true")},onMouseEnter:()=>{r(pu("🎁 New Feature: Use ⌘⇧R automatically debug errors in the terminal (you can click the sparkle icon to make it go away)"))},onMouseLeave:()=>{r(XI(setTimeout(()=>{r(pu(void 0))},2e3)))},width:"1.3em",height:"1.3em",color:"yellow"}),I.jsx(z5e,{}),(o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(t.pathname==="/settings"||parseInt(localStorage.getItem("ftc")||"0")>=125)&&I.jsx(W5e,{completed:parseInt(localStorage.getItem("ftc")||"0"),total:250})]}),I.jsx(zi,{text:"Help",onClick:()=>{e("/help")},children:I.jsx(KZ,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{e("/settings")},text:"Settings",children:I.jsx(kZ,{width:"1.4em",height:"1.4em"})})]})]}),I.jsx(Y5e,{displayOnBottom:u,onMouseEnter:()=>{r(XI(void 0))},onMouseLeave:p=>{p.buttons||r(pu(void 0))},hidden:!s,children:s})]}),I.jsx("div",{className:"text-sm",id:"tooltip-portal-div"})]})};class e3e{}const ko=Object.create(null);ko.open="0";ko.close="1";ko.ping="2";ko.pong="3";ko.message="4";ko.upgrade="5";ko.noop="6";const jh=Object.create(null);Object.keys(ko).forEach(e=>{jh[ko[e]]=e});const Jy={type:"error",data:"parser error"},RB=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",NB=typeof ArrayBuffer=="function",OB=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,RT=({type:e,data:t},n,r)=>RB&&t instanceof Blob?n?r(t):rN(t,r):NB&&(t instanceof ArrayBuffer||OB(t))?n?r(t):rN(new Blob([t]),r):r(ko[e]+(t||"")),rN=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function iN(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let j4;function t3e(e,t){if(RB&&e.data instanceof Blob)return e.data.arrayBuffer().then(iN).then(t);if(NB&&(e.data instanceof ArrayBuffer||OB(e.data)))return t(iN(e.data));RT(e,!1,n=>{j4||(j4=new TextEncoder),t(j4.encode(n))})}const aN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kd=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,i=0,a,o,s,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),p=new Uint8Array(c);for(r=0;r>4,p[i++]=(o&15)<<4|s>>2,p[i++]=(s&3)<<6|u&63;return c},r3e=typeof ArrayBuffer=="function",NT=(e,t)=>{if(typeof e!="string")return{type:"message",data:DB(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:i3e(e.substring(1),t)}:jh[n]?e.length>1?{type:jh[n],data:e.substring(1)}:{type:jh[n]}:Jy},i3e=(e,t)=>{if(r3e){const n=n3e(e);return DB(n,t)}else return{base64:!0,data:e}},DB=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},LB=String.fromCharCode(30),a3e=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((a,o)=>{RT(a,!1,s=>{r[o]=s,++i===n&&t(r.join(LB))})})},o3e=(e,t)=>{const n=e.split(LB),r=[];for(let i=0;i{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const a=new DataView(i.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{i=new Uint8Array(9);const a=new DataView(i.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let G4;function ch(e){return e.reduce((t,n)=>t+n.length,0)}function dh(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;iMath.pow(2,53-32)-1){s.enqueue(Jy);break}i=p*Math.pow(2,32)+c.getUint32(4),r=3}else{if(ch(n)e){s.enqueue(Jy);break}}}})}const MB=4;function Xn(e){if(e)return u3e(e)}function u3e(e){for(var t in Xn.prototype)e[t]=Xn.prototype[t];return e}Xn.prototype.on=Xn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Xn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Xn.prototype.off=Xn.prototype.removeListener=Xn.prototype.removeAllListeners=Xn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function FB(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const c3e=da.setTimeout,d3e=da.clearTimeout;function j2(e,t){t.useNativeTimers?(e.setTimeoutFn=c3e.bind(da),e.clearTimeoutFn=d3e.bind(da)):(e.setTimeoutFn=da.setTimeout.bind(da),e.clearTimeoutFn=da.clearTimeout.bind(da))}const p3e=1.33;function f3e(e){return typeof e=="string"?h3e(e):Math.ceil((e.byteLength||e.size)*p3e)}function h3e(e){let t=0,n=0;for(let r=0,i=e.length;r=57344?n+=3:(r++,n+=4);return n}function g3e(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function m3e(e){let t={},n=e.split("&");for(let r=0,i=n.length;r0);return t}function BB(){const e=lN(+new Date);return e!==sN?(oN=0,sN=e):e+"."+lN(oN++)}for(;ph{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};o3e(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,a3e(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=BB()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Y1(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,a)=>{this.onError("xhr post error",i,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Y1=class Gh extends Xn{constructor(t,n){super(),j2(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=FB(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new $B(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Gh.requestsCount++,Gh.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=v3e,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Gh.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Y1.requestsCount=0;Y1.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",uN);else if(typeof addEventListener=="function"){const e="onpagehide"in da?"pagehide":"unload";addEventListener(e,uN,!1)}}function uN(){for(let e in Y1.requests)Y1.requests.hasOwnProperty(e)&&Y1.requests[e].abort()}const DT=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),fh=da.WebSocket||da.MozWebSocket,cN=!0,S3e="arraybuffer",dN=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class w3e extends OT{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=dN?{}:FB(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=cN&&!dN?n?new fh(t,n):new fh(t):new fh(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const o={};try{cN&&this.ws.send(a)}catch{}i&&DT(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=BB()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!fh}}class A3e extends OT{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=l3e(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=s3e();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const a=()=>{r.read().then(({done:s,value:u})=>{s||(this.onPacket(u),a())}).catch(s=>{})};a();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{i&&DT(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const C3e={websocket:w3e,webtransport:A3e,polling:T3e},k3e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,x3e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function tE(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=k3e.exec(e||""),a={},o=14;for(;o--;)a[x3e[o]]=i[o]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=I3e(a,a.path),a.queryKey=R3e(a,a.query),a}function I3e(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function R3e(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,a){i&&(n[i]=a)}),n}let zB=class p1 extends Xn{constructor(t,n={}){super(),this.binaryType=S3e,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=tE(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=tE(n.host).host),j2(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=m3e(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=MB,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new C3e[t](r)}open(){let t;if(this.opts.rememberUpgrade&&p1.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;p1.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;p1.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function a(){r||(r=!0,p(),n.close(),n=null)}const o=f=>{const m=new Error("probe error: "+f);m.transport=n.name,a(),this.emitReserved("upgradeError",m)};function s(){o("transport closed")}function u(){o("socket closed")}function c(f){n&&f.name!==n.name&&a()}const p=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",s),this.off("close",u),this.off("upgrading",c)};n.once("open",i),n.once("error",o),n.once("close",s),this.once("close",u),this.once("upgrading",c),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",p1.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){p1.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,HB=Object.prototype.toString,L3e=typeof Blob=="function"||typeof Blob<"u"&&HB.call(Blob)==="[object BlobConstructor]",M3e=typeof File=="function"||typeof File<"u"&&HB.call(File)==="[object FileConstructor]";function LT(e){return O3e&&(e instanceof ArrayBuffer||D3e(e))||L3e&&e instanceof Blob||M3e&&e instanceof File}function Vh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let o=0;o{this.io.clearTimeoutFn(a),n.apply(this,[null,...o])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,a)=>{n.push((o,s)=>r?o?a(o):i(s):i(o)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...a)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ut.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ut.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ut.EVENT:case Ut.BINARY_EVENT:this.onevent(t);break;case Ut.ACK:case Ut.BINARY_ACK:this.onack(t);break;case Ut.DISCONNECT:this.ondisconnect();break;case Ut.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:Ut.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ut.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ic.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Ic.prototype.reset=function(){this.attempts=0};Ic.prototype.setMin=function(e){this.ms=e};Ic.prototype.setMax=function(e){this.max=e};Ic.prototype.setJitter=function(e){this.jitter=e};class iE extends Xn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,j2(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ic({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||H3e;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new zB(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Ua(n,"open",function(){r.onopen(),t&&t()}),a=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},o=Ua(n,"error",a);if(this._timeout!==!1){const s=this._timeout,u=this.setTimeoutFn(()=>{i(),a(new Error("timeout")),n.close()},s);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Ua(t,"ping",this.onping.bind(this)),Ua(t,"data",this.ondata.bind(this)),Ua(t,"error",this.onerror.bind(this)),Ua(t,"close",this.onclose.bind(this)),Ua(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){DT(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new jB(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const bd={};function Wh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=N3e(e,t.path||"/socket.io"),r=n.source,i=n.id,a=n.path,o=bd[i]&&a in bd[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let u;return s?u=new iE(r,t):(bd[i]||(bd[i]=new iE(r,t)),u=bd[i]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(Wh,{Manager:iE,Socket:jB,io:Wh,connect:Wh});class GB{}class G3e extends GB{constructor(n){super();Ns(this,"socket");console.log("Connecting to socket.io endpoint: ",n,window.windowId),this.socket=Wh(`${n}?window_id=${window.windowId}`,{path:"/gui/socket.io",transports:["websocket","polling","flashsocket"]})}send(n,r){this.socket.emit("message",{message_type:n,data:r,message_id:Xd()})}ackWithMessageMetadata(n,r,i){return a=>{n({message_id:r,message_type:i,data:a})}}onMessageType(n,r){this.socket.on("message",({message_type:i,data:a},o)=>{n===i&&r(a,this.ackWithMessageMetadata(o,"lolidk",n))})}onMessage(n){this.socket.on("message",({message_type:r,data:i},a)=>{n(r,i,this.ackWithMessageMetadata(a,"lolidk",r))})}onOpen(n){this.socket.on("connect",n)}onClose(n){this.socket.on("disconnect",n)}async sendAndReceive(n,r){return new Promise((i,a)=>{this.socket.emit("message",{message_type:n,data:r,message_id:Xd()},o=>{o&&o.error?a(o.error):i(o)})})}onError(n){this.socket.on("error",n)}close(){this.socket.disconnect()}}class V3e extends GB{constructor(n){super();Ns(this,"serverUrl");this.serverUrl=n,qa("websocketForwardingOpen",{url:this.serverUrl})}send(n,r){qa("websocketForwardingMessage",{message:{messageType:n,data:r},url:this.serverUrl})}onMessageType(n,r){window.addEventListener("message",i=>{if(i.data.type==="websocketForwardingMessage"){const a=JSON.parse(i.data.data);a.messageType===n&&r(a.data)}})}onMessage(n){window.addEventListener("message",r=>{if(r.data.type==="websocketForwardingMessage"){const i=JSON.parse(r.data.data);n(i.messageType,i.data)}})}onError(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingError"&&n(r.data.error)})}sendAndReceive(n,r){return new Promise(i=>{const a=o=>{if(o.data.type==="websocketForwardingMessage"){const s=JSON.parse(o.data.data);s.messageType===n&&(window.removeEventListener("message",a),i(s.data))}};window.addEventListener("message",a),this.send(n,r)})}onOpen(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingOpen"&&n()})}onClose(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingClose"&&n()})}close(){qa("websocketForwardingClose",{url:this.serverUrl})}}class W3e extends e3e{constructor(n,r,i){super();Ns(this,"messenger");Ns(this,"serverUrl");Ns(this,"useVscodeMessagePassing");Ns(this,"getSessionState");Ns(this,"onStateUpdateCallbacks",[]);this.serverUrl=n,this.useVscodeMessagePassing=r,this.getSessionState=i,this.serverUrl=n,this.useVscodeMessagePassing=r,this.messenger=r?new V3e(n):new G3e(n),this.messenger.onClose(()=>{console.log("GUI Connection closed: ",n)}),this.messenger.onError(a=>{console.log("GUI Connection error: ",a)}),this.messenger.onOpen(()=>{console.log("GUI Connection opened: ",n)}),this.messenger.onMessage((a,o,s)=>{this.handleMessage(a,o,s)})}onConnected(n){var r;(r=this.messenger)==null||r.onOpen(n)}handleMessage(n,r,i){switch(n){case"state_update":if(r.state)for(const o of this.onStateUpdateCallbacks)o(r.state);break;case"get_session_state":const a=this.getSessionState();i({history:a.history,context_items:a.context_items});break}}loadSession(n){var r;(r=this.messenger)==null||r.send("load_session",{session_id:n})}sendMainInput(n){var r;(r=this.messenger)==null||r.send("main_input",{input:n})}runFromState(n){var r;(r=this.messenger)==null||r.send("run_from_state",{state:n})}async getSessionTitle(n){var r;return await((r=this.messenger)==null?void 0:r.sendAndReceive("get_session_title",{history:n}))}reverseToIndex(n){var r;(r=this.messenger)==null||r.send("reverse_to_index",{index:n})}sendRefinementInput(n,r){var i;(i=this.messenger)==null||i.send("refinement_input",{input:n,index:r})}sendStepUserInput(n,r){var i;(i=this.messenger)==null||i.send("step_user_input",{input:n,index:r})}onStateUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("state_update",i=>{i.state&&n(i.state)}),this.onStateUpdateCallbacks.push(n)}onSessionUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("session_update",i=>{n(i)})}onConfigUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("config_update",i=>{n(i)})}getConfig(){var n;return(n=this.messenger)==null?void 0:n.sendAndReceive("get_config",{})}onAddContextItem(n){var r;(r=this.messenger)==null||r.onMessageType("add_context_item",i=>{n(i)})}onAvailableSlashCommands(n){var r;(r=this.messenger)==null||r.onMessageType("available_slash_commands",i=>{i.commands&&n(i.commands)})}stopSession(){var n;(n=this.messenger)==null||n.send("stop_session",{})}sendClear(){var n;(n=this.messenger)==null||n.send("clear_history",{})}retryAtIndex(n){var r;(r=this.messenger)==null||r.send("retry_at_index",{index:n})}deleteContextWithIds(n,r){var i;(i=this.messenger)==null||i.send("delete_context_with_ids",{ids:n.map(a=>`${a.provider_title}-${a.item_id}`),index:r})}setEditingAtIds(n){var r;(r=this.messenger)==null||r.send("set_editing_at_ids",{ids:n})}toggleAddingHighlightedCode(){var n;(n=this.messenger)==null||n.send("toggle_adding_highlighted_code",{})}showContextVirtualFile(n){var r;(r=this.messenger)==null||r.send("show_context_virtual_file",{index:n})}selectContextItem(n,r){var i;(i=this.messenger)==null||i.send("select_context_item",{id:n,query:r})}async getContextItem(n,r){var i;return await((i=this.messenger)==null?void 0:i.sendAndReceive("get_context_item",{id:n,query:r}))}selectContextItemAtIndex(n,r,i){var a;(a=this.messenger)==null||a.send("select_context_item_at_index",{id:n,query:r,index:i})}editStepAtIndex(n,r){var i;(i=this.messenger)==null||i.send("edit_step_at_index",{user_input:n,index:r})}setSystemMessage(n){var r;(r=this.messenger)==null||r.send("set_system_message",{system_message:n})}setTemperature(n){var r;(r=this.messenger)==null||r.send("set_temperature",{temperature:n})}addModelForRole(n,r,i){var a;(a=this.messenger)==null||a.send("add_model_for_role",{role:n,model:i,model_class:r})}setModelForRoleFromIndex(n,r){var i;(i=this.messenger)==null||i.send("set_model_for_role_from_index",{role:n,index:r})}saveContextGroup(n,r){var i;(i=this.messenger)==null||i.send("save_context_group",{context_items:r,title:n})}selectContextGroup(n){var r;(r=this.messenger)==null||r.send("select_context_group",{id:n})}deleteContextGroup(n){var r;(r=this.messenger)==null||r.send("delete_context_group",{id:n})}}function VB(e=!0){const[t,n]=C.useState(void 0),r=zt(a=>a.sessionState),i=()=>({history:r.history,context_items:r.context_items});return C.useEffect(()=>{t&&(t.getSessionState=i)},[r]),C.useEffect(()=>{const a=window.serverUrl,o=window.windowId;if(a==null||o==null)return;console.log("Creating GUI websocket",a,e);const s=new W3e(a,e,i);s.onConnected(()=>{n(s)})},[window.windowId]),t}function q3e(){const e=bB();console.error(e);const t=eo(),n=VB(!1);return I.jsxs("div",{id:"error-page",className:"text-center",style:{backgroundColor:Ht},children:[I.jsx("h1",{children:"Error in Continue React App"}),I.jsx("p",{children:I.jsx("i",{children:e.statusText||e.message})}),I.jsx("br",{}),I.jsx("p",{children:"Click below to Continue"}),I.jsx("br",{}),I.jsx(xP,{disabled:!1,showStop:!1,onClick:()=>{n==null||n.stopSession(),t(uc())}})]})}const WB="28px",K3e=Ge.div` margin-top: 16px; margin: auto; - width: ${fP}; + width: ${WB}; animation: flash 1.2s infinite ease-in-out; @keyframes flash { 0% { @@ -1093,24 +1069,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.4; } } -`;function xme(e){const t=zt(n=>n.config.vscMediaUrl);return I.jsx(Cme,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(uD,{width:e.size||fP})})}const y9=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(HY,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&_E.createPortal(I.jsx(Gs,{id:t,place:"bottom",children:e}),n)]})};var tf=e=>e.type==="checkbox",k1=e=>e instanceof Date,Zr=e=>e==null;const hP=e=>typeof e=="object";var rr=e=>!Zr(e)&&!Array.isArray(e)&&hP(e)&&!k1(e),kme=e=>rr(e)&&e.target?tf(e.target)?e.target.checked:e.target.value:e,Ime=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Rme=(e,t)=>e.has(Ime(t)),Nme=e=>{const t=e.constructor&&e.constructor.prototype;return rr(t)&&t.hasOwnProperty("isPrototypeOf")},z7=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function jo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(z7&&(e instanceof Blob||e instanceof FileList))&&(n||rr(e)))if(t=n?[]:{},!n&&!Nme(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=jo(e[r]));else return e;return t}var nf=e=>Array.isArray(e)?e.filter(Boolean):[],Wn=e=>e===void 0,lt=(e,t,n)=>{if(!t||!rr(e))return n;const r=nf(t.split(/[,[\].]+?/)).reduce((i,a)=>Zr(i)?i:i[a],e);return Wn(r)||r===e?Wn(e[t])?n:e[t]:r},tu=e=>typeof e=="boolean";const rR={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ba={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},zo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ome=ut.createContext(null),gP=e=>{const{children:t,...n}=e;return ut.createElement(Ome.Provider,{value:n},t)};var Dme=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ba.all&&(t._proxyFormState[o]=!r||Ba.all),n&&(n[o]=!0),e[o]}});return i},aa=e=>rr(e)&&!Object.keys(e).length,Lme=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return aa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ba.all))},h4=e=>Array.isArray(e)?e:[e];function Mme(e){const t=ut.useRef(e);t.current=e,ut.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var fo=e=>typeof e=="string",Fme=(e,t,n,r,i)=>fo(e)?(r&&t.watch.add(e),lt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),lt(n,a))):(r&&(t.watchAll=!0),n),H7=e=>/^\w*$/.test(e),mP=e=>nf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function An(e,t,n){let r=-1;const i=H7(t)?[t]:mP(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const _9=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=lt(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else rr(o)&&_9(o,t)}}};var iR=e=>({isOnSubmit:!e||e===Ba.onSubmit,isOnBlur:e===Ba.onBlur,isOnChange:e===Ba.onChange,isOnAll:e===Ba.all,isOnTouch:e===Ba.onTouched}),aR=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),Bme=(e,t,n)=>{const r=nf(lt(e,n));return An(r,"root",t[n]),An(e,n,r),e},j7=e=>e.type==="file",Ws=e=>typeof e=="function",Rg=e=>{if(!z7)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ah=e=>fo(e),G7=e=>e.type==="radio",Ng=e=>e instanceof RegExp;const oR={value:!1,isValid:!1},sR={value:!0,isValid:!0};var bP=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Wn(e[0].attributes.value)?Wn(e[0].value)||e[0].value===""?sR:{value:e[0].value,isValid:!0}:sR:oR}return oR};const lR={isValid:!1,value:null};var EP=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,lR):lR;function uR(e,t,n="validate"){if(Ah(e)||Array.isArray(e)&&e.every(Ah)||tu(e)&&!e)return{type:n,message:Ah(e)?e:"",ref:t}}var Qu=e=>rr(e)&&!Ng(e)?e:{value:e,message:""},cR=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:E,valueAsNumber:b,mount:T,disabled:v}=e._f,y=lt(t,E);if(!T||v)return{};const w=o?o[0]:a,A=z=>{r&&w.reportValidity&&(w.setCustomValidity(tu(z)?"":z||""),w.reportValidity())},D={},k=G7(a),R=tf(a),B=k||R,W=(b||j7(a))&&Wn(a.value)&&Wn(y)||Rg(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,P=Pme.bind(null,E,n,D),Q=(z,le,he,de=zo.maxLength,fe=zo.minLength)=>{const Z=z?le:he;D[E]={type:z?de:fe,message:Z,ref:a,...P(z?de:fe,Z)}};if(i?!Array.isArray(y)||!y.length:s&&(!B&&(W||Zr(y))||tu(y)&&!y||R&&!bP(o).isValid||k&&!EP(o).isValid)){const{value:z,message:le}=Ah(s)?{value:!!s,message:s}:Qu(s);if(z&&(D[E]={type:zo.required,message:le,ref:w,...P(zo.required,le)},!n))return A(le),D}if(!W&&(!Zr(p)||!Zr(f))){let z,le;const he=Qu(f),de=Qu(p);if(!Zr(y)&&!isNaN(y)){const fe=a.valueAsNumber||y&&+y;Zr(he.value)||(z=fe>he.value),Zr(de.value)||(le=fenew Date(new Date().toDateString()+" "+N),V=a.type=="time",ce=a.type=="week";fo(he.value)&&y&&(z=V?Z(y)>Z(he.value):ce?y>he.value:fe>new Date(he.value)),fo(de.value)&&y&&(le=V?Z(y)+z.value,de=!Zr(le.value)&&y.length<+le.value;if((he||de)&&(Q(he,z.message,le.message),!n))return A(D[E].message),D}if(m&&!W&&fo(y)){const{value:z,message:le}=Qu(m);if(Ng(z)&&!y.match(z)&&(D[E]={type:zo.pattern,message:le,ref:a,...P(zo.pattern,le)},!n))return A(le),D}if(g){if(Ws(g)){const z=await g(y,t),le=uR(z,w);if(le&&(D[E]={...le,...P(zo.validate,le.message)},!n))return A(le.message),D}else if(rr(g)){let z={};for(const le in g){if(!aa(z)&&!n)break;const he=uR(await g[le](y,t),w,le);he&&(z={...he,...P(le,he.message)},A(he.message),n&&(D[E]=z))}if(!aa(z)&&(D[E]={ref:w,...z},!n))return D}}return A(!0),D};function Ume(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var Og=e=>Zr(e)||!hP(e);function nu(e,t){if(Og(e)||Og(t))return e===t;if(k1(e)&&k1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(k1(a)&&k1(o)||rr(a)&&rr(o)||Array.isArray(a)&&Array.isArray(o)?!nu(a,o):a!==o)return!1}}return!0}var vP=e=>e.type==="select-multiple",zme=e=>G7(e)||tf(e),m4=e=>Rg(e)&&e.isConnected,yP=e=>{for(const t in e)if(Ws(e[t]))return!0;return!1};function Dg(e,t={}){const n=Array.isArray(e);if(rr(e)||n)for(const r in e)Array.isArray(e[r])||rr(e[r])&&!yP(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Dg(e[r],t[r])):Zr(e[r])||(t[r]=!0);return t}function _P(e,t,n){const r=Array.isArray(e);if(rr(e)||r)for(const i in e)Array.isArray(e[i])||rr(e[i])&&!yP(e[i])?Wn(t)||Og(n[i])?n[i]=Array.isArray(e[i])?Dg(e[i],[]):{...Dg(e[i])}:_P(e[i],Zr(t)?{}:t[i],n[i]):n[i]=!nu(e[i],t[i]);return n}var b4=(e,t)=>_P(e,t,Dg(t)),TP=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Wn(e)?e:t?e===""?NaN:e&&+e:n&&fo(e)?new Date(e):r?r(e):e;function E4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return j7(t)?t.files:G7(t)?EP(e.refs).value:vP(t)?[...t.selectedOptions].map(({value:n})=>n):tf(t)?bP(e.refs).value:TP(Wn(t.value)?e.ref.value:t.value,e)}var Hme=(e,t,n,r)=>{const i={};for(const a of e){const o=lt(t,a);o&&An(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ad=e=>Wn(e)?e:Ng(e)?e.source:rr(e)?Ng(e.value)?e.value.source:e.value:e,jme=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function dR(e,t,n){const r=lt(e,n);if(r||H7(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=lt(t,a),s=lt(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var Gme=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Vme=(e,t)=>!nf(lt(e,t)).length&&br(e,t);const Wme={mode:Ba.onSubmit,reValidateMode:Ba.onChange,shouldFocusError:!0};function qme(e={},t){let n={...Wme,...e},r={submitCount:0,isDirty:!1,isLoading:Ws(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=rr(n.defaultValues)||rr(n.values)?jo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:jo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:g4(),array:g4(),state:g4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,E=iR(n.mode),b=iR(n.reValidateMode),T=n.criteriaMode===Ba.all,v=U=>ie=>{clearTimeout(p),p=setTimeout(U,ie)},y=async U=>{if(f.isValid||U){const ie=n.resolver?aa((await W()).errors):await Q(i,!0);ie!==r.isValid&&m.state.next({isValid:ie})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,ie=[],pe,ke,ve=!0,Se=!0)=>{if(ke&&pe){if(s.action=!0,Se&&Array.isArray(lt(i,U))){const Me=pe(lt(i,U),ke.argA,ke.argB);ve&&An(i,U,Me)}if(Se&&Array.isArray(lt(r.errors,U))){const Me=pe(lt(r.errors,U),ke.argA,ke.argB);ve&&An(r.errors,U,Me),Vme(r.errors,U)}if(f.touchedFields&&Se&&Array.isArray(lt(r.touchedFields,U))){const Me=pe(lt(r.touchedFields,U),ke.argA,ke.argB);ve&&An(r.touchedFields,U,Me)}f.dirtyFields&&(r.dirtyFields=b4(a,o)),m.state.next({name:U,isDirty:le(U,ie),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else An(o,U,ie)},D=(U,ie)=>{An(r.errors,U,ie),m.state.next({errors:r.errors})},k=(U,ie,pe,ke)=>{const ve=lt(i,U);if(ve){const Se=lt(o,U,Wn(pe)?lt(a,U):pe);Wn(Se)||ke&&ke.defaultChecked||ie?An(o,U,ie?Se:E4(ve._f)):fe(U,Se),s.mount&&y()}},R=(U,ie,pe,ke,ve)=>{let Se=!1,Me=!1;const ze={name:U};if(!pe||ke){f.isDirty&&(Me=r.isDirty,r.isDirty=ze.isDirty=le(),Se=Me!==ze.isDirty);const Ke=nu(lt(a,U),ie);Me=lt(r.dirtyFields,U),Ke?br(r.dirtyFields,U):An(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Se=Se||f.dirtyFields&&Me!==!Ke}if(pe){const Ke=lt(r.touchedFields,U);Ke||(An(r.touchedFields,U,pe),ze.touchedFields=r.touchedFields,Se=Se||f.touchedFields&&Ke!==pe)}return Se&&ve&&m.state.next(ze),Se?ze:{}},B=(U,ie,pe,ke)=>{const ve=lt(r.errors,U),Se=f.isValid&&tu(ie)&&r.isValid!==ie;if(e.delayError&&pe?(c=v(()=>D(U,pe)),c(e.delayError)):(clearTimeout(p),c=null,pe?An(r.errors,U,pe):br(r.errors,U)),(pe?!nu(ve,pe):ve)||!aa(ke)||Se){const Me={...ke,...Se&&tu(ie)?{isValid:ie}:{},errors:r.errors,name:U};r={...r,...Me},m.state.next(Me)}w(!1)},W=async U=>n.resolver(o,n.context,Hme(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:ie}=await W(U);if(U)for(const pe of U){const ke=lt(ie,pe);ke?An(r.errors,pe,ke):br(r.errors,pe)}else r.errors=ie;return ie},Q=async(U,ie,pe={valid:!0})=>{for(const ke in U){const ve=U[ke];if(ve){const{_f:Se,...Me}=ve;if(Se){const ze=u.array.has(Se.name),Ke=await cR(ve,o,T,n.shouldUseNativeValidation&&!ie,ze);if(Ke[Se.name]&&(pe.valid=!1,ie))break;!ie&&(lt(Ke,Se.name)?ze?Bme(r.errors,Ke,Se.name):An(r.errors,Se.name,Ke[Se.name]):br(r.errors,Se.name))}Me&&await Q(Me,ie,pe)}}return pe.valid},z=()=>{for(const U of u.unMount){const ie=lt(i,U);ie&&(ie._f.refs?ie._f.refs.every(pe=>!m4(pe)):!m4(ie._f.ref))&&K(U)}u.unMount=new Set},le=(U,ie)=>(U&&ie&&An(o,U,ie),!nu(me(),a)),he=(U,ie,pe)=>Fme(U,u,{...s.mount?o:Wn(ie)?a:fo(U)?{[U]:ie}:ie},pe,ie),de=U=>nf(lt(s.mount?o:a,U,e.shouldUnregister?lt(a,U,[]):[])),fe=(U,ie,pe={})=>{const ke=lt(i,U);let ve=ie;if(ke){const Se=ke._f;Se&&(!Se.disabled&&An(o,U,TP(ie,Se)),ve=Rg(Se.ref)&&Zr(ie)?"":ie,vP(Se.ref)?[...Se.ref.options].forEach(Me=>Me.selected=ve.includes(Me.value)):Se.refs?tf(Se.ref)?Se.refs.length>1?Se.refs.forEach(Me=>(!Me.defaultChecked||!Me.disabled)&&(Me.checked=Array.isArray(ve)?!!ve.find(ze=>ze===Me.value):ve===Me.value)):Se.refs[0]&&(Se.refs[0].checked=!!ve):Se.refs.forEach(Me=>Me.checked=Me.value===ve):j7(Se.ref)?Se.ref.value="":(Se.ref.value=ve,Se.ref.type||m.values.next({name:U,values:{...o}})))}(pe.shouldDirty||pe.shouldTouch)&&R(U,ve,pe.shouldTouch,pe.shouldDirty,!0),pe.shouldValidate&&N(U)},Z=(U,ie,pe)=>{for(const ke in ie){const ve=ie[ke],Se=`${U}.${ke}`,Me=lt(i,Se);(u.array.has(U)||!Og(ve)||Me&&!Me._f)&&!k1(ve)?Z(Se,ve,pe):fe(Se,ve,pe)}},V=(U,ie,pe={})=>{const ke=lt(i,U),ve=u.array.has(U),Se=jo(ie);An(o,U,Se),ve?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&pe.shouldDirty&&m.state.next({name:U,dirtyFields:b4(a,o),isDirty:le(U,Se)})):ke&&!ke._f&&!Zr(Se)?Z(U,Se,pe):fe(U,Se,pe),aR(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},ce=async U=>{const ie=U.target;let pe=ie.name,ke=!0;const ve=lt(i,pe),Se=()=>ie.type?E4(ve._f):kme(U);if(ve){let Me,ze;const Ke=Se(),jt=U.type===rR.BLUR||U.type===rR.FOCUS_OUT,ue=!jme(ve._f)&&!n.resolver&&!lt(r.errors,pe)&&!ve._f.deps||Gme(jt,lt(r.touchedFields,pe),r.isSubmitted,b,E),ye=aR(pe,u,jt);An(o,pe,Ke),jt?(ve._f.onBlur&&ve._f.onBlur(U),c&&c(0)):ve._f.onChange&&ve._f.onChange(U);const We=R(pe,Ke,jt,!1),at=!aa(We)||ye;if(!jt&&m.values.next({name:pe,type:U.type,values:{...o}}),ue)return f.isValid&&y(),at&&m.state.next({name:pe,...ye?{}:We});if(!jt&&ye&&m.state.next({...r}),w(!0),n.resolver){const{errors:Qe}=await W([pe]),Y=dR(r.errors,i,pe),se=dR(Qe,i,Y.name||pe);Me=se.error,pe=se.name,ze=aa(Qe)}else Me=(await cR(ve,o,T,n.shouldUseNativeValidation))[pe],ke=Number.isNaN(Ke)||Ke===lt(o,pe,Ke),ke&&(Me?ze=!1:f.isValid&&(ze=await Q(i,!0)));ke&&(ve._f.deps&&N(ve._f.deps),B(pe,ze,Me,We))}},N=async(U,ie={})=>{let pe,ke;const ve=h4(U);if(w(!0),n.resolver){const Se=await P(Wn(U)?U:ve);pe=aa(Se),ke=U?!ve.some(Me=>lt(Se,Me)):pe}else U?(ke=(await Promise.all(ve.map(async Se=>{const Me=lt(i,Se);return await Q(Me&&Me._f?{[Se]:Me}:Me)}))).every(Boolean),!(!ke&&!r.isValid)&&y()):ke=pe=await Q(i);return m.state.next({...!fo(U)||f.isValid&&pe!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:pe}:{},errors:r.errors,isValidating:!1}),ie.shouldFocus&&!ke&&_9(i,Se=>Se&<(r.errors,Se),U?ve:u.mount),ke},me=U=>{const ie={...a,...s.mount?o:{}};return Wn(U)?ie:fo(U)?lt(ie,U):U.map(pe=>lt(ie,pe))},oe=(U,ie)=>({invalid:!!lt((ie||r).errors,U),isDirty:!!lt((ie||r).dirtyFields,U),isTouched:!!lt((ie||r).touchedFields,U),error:lt((ie||r).errors,U)}),O=U=>{U&&h4(U).forEach(ie=>br(r.errors,ie)),m.state.next({errors:U?r.errors:{}})},re=(U,ie,pe)=>{const ke=(lt(i,U,{_f:{}})._f||{}).ref;An(r.errors,U,{...ie,ref:ke}),m.state.next({name:U,errors:r.errors,isValid:!1}),pe&&pe.shouldFocus&&ke&&ke.focus&&ke.focus()},Te=(U,ie)=>Ws(U)?m.values.subscribe({next:pe=>U(he(void 0,ie),pe)}):he(U,ie,!0),K=(U,ie={})=>{for(const pe of U?h4(U):u.mount)u.mount.delete(pe),u.array.delete(pe),ie.keepValue||(br(i,pe),br(o,pe)),!ie.keepError&&br(r.errors,pe),!ie.keepDirty&&br(r.dirtyFields,pe),!ie.keepTouched&&br(r.touchedFields,pe),!n.shouldUnregister&&!ie.keepDefaultValue&&br(a,pe);m.values.next({values:{...o}}),m.state.next({...r,...ie.keepDirty?{isDirty:le()}:{}}),!ie.keepIsValid&&y()},xe=({disabled:U,name:ie,field:pe,fields:ke})=>{if(tu(U)){const ve=U?void 0:lt(o,ie,E4(pe?pe._f:lt(ke,ie)._f));An(o,ie,ve),R(ie,ve,!1,!1,!0)}},ne=(U,ie={})=>{let pe=lt(i,U);const ke=tu(ie.disabled);return An(i,U,{...pe||{},_f:{...pe&&pe._f?pe._f:{ref:{name:U}},name:U,mount:!0,...ie}}),u.mount.add(U),pe?xe({field:pe,disabled:ie.disabled,name:U}):k(U,!0,ie.value),{...ke?{disabled:ie.disabled}:{},...n.progressive?{required:!!ie.required,min:ad(ie.min),max:ad(ie.max),minLength:ad(ie.minLength),maxLength:ad(ie.maxLength),pattern:ad(ie.pattern)}:{},name:U,onChange:ce,onBlur:ce,ref:ve=>{if(ve){ne(U,ie),pe=lt(i,U);const Se=Wn(ve.value)&&ve.querySelectorAll&&ve.querySelectorAll("input,select,textarea")[0]||ve,Me=zme(Se),ze=pe._f.refs||[];if(Me?ze.find(Ke=>Ke===Se):Se===pe._f.ref)return;An(i,U,{_f:{...pe._f,...Me?{refs:[...ze.filter(m4),Se,...Array.isArray(lt(a,U))?[{}]:[]],ref:{type:Se.type,name:U}}:{ref:Se}}}),k(U,!1,void 0,Se)}else pe=lt(i,U,{}),pe._f&&(pe._f.mount=!1),(n.shouldUnregister||ie.shouldUnregister)&&!(Rme(u.array,U)&&s.action)&&u.unMount.add(U)}}},Le=()=>n.shouldFocusError&&_9(i,U=>U&<(r.errors,U),u.mount),Re=(U,ie)=>async pe=>{pe&&(pe.preventDefault&&pe.preventDefault(),pe.persist&&pe.persist());let ke=jo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ve,values:Se}=await W();r.errors=ve,ke=Se}else await Q(i);br(r.errors,"root"),aa(r.errors)?(m.state.next({errors:{}}),await U(ke,pe)):(ie&&await ie({...r.errors},pe),Le(),setTimeout(Le)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:aa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Xe=(U,ie={})=>{lt(i,U)&&(Wn(ie.defaultValue)?V(U,lt(a,U)):(V(U,ie.defaultValue),An(a,U,ie.defaultValue)),ie.keepTouched||br(r.touchedFields,U),ie.keepDirty||(br(r.dirtyFields,U),r.isDirty=ie.defaultValue?le(U,lt(a,U)):le()),ie.keepError||(br(r.errors,U),f.isValid&&y()),m.state.next({...r}))},Ve=(U,ie={})=>{const pe=U?jo(U):a,ke=jo(pe),ve=U&&!aa(U)?ke:a;if(ie.keepDefaultValues||(a=pe),!ie.keepValues){if(ie.keepDirtyValues||g)for(const Se of u.mount)lt(r.dirtyFields,Se)?An(ve,Se,lt(o,Se)):V(Se,lt(ve,Se));else{if(z7&&Wn(U))for(const Se of u.mount){const Me=lt(i,Se);if(Me&&Me._f){const ze=Array.isArray(Me._f.refs)?Me._f.refs[0]:Me._f.ref;if(Rg(ze)){const Ke=ze.closest("form");if(Ke){Ke.reset();break}}}}i={}}o=e.shouldUnregister?ie.keepDefaultValues?jo(a):{}:jo(ve),m.array.next({values:{...ve}}),m.values.next({values:{...ve}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!ie.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:ie.keepSubmitCount?r.submitCount:0,isDirty:ie.keepDirty?r.isDirty:!!(ie.keepDefaultValues&&!nu(U,a)),isSubmitted:ie.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ie.keepDirtyValues?r.dirtyFields:ie.keepDefaultValues&&U?b4(a,U):{},touchedFields:ie.keepTouched?r.touchedFields:{},errors:ie.keepErrors?r.errors:{},isSubmitSuccessful:ie.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,ie)=>Ve(Ws(U)?U(o):U,ie);return{control:{register:ne,unregister:K,getFieldState:oe,handleSubmit:Re,setError:re,_executeSchema:W,_getWatch:he,_getDirty:le,_updateValid:y,_removeUnmounted:z,_updateFieldArray:A,_updateDisabledField:xe,_getFieldArray:de,_reset:Ve,_resetDefaultValues:()=>Ws(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:N,register:ne,handleSubmit:Re,watch:Te,setValue:V,getValues:me,reset:dt,resetField:Xe,clearErrors:O,unregister:K,setError:re,setFocus:(U,ie={})=>{const pe=lt(i,U),ke=pe&&pe._f;if(ke){const ve=ke.refs?ke.refs[0]:ke.ref;ve.focus&&(ve.focus(),ie.shouldSelect&&ve.select())}},getFieldState:oe}}function SP(e={}){const t=ut.useRef(),n=ut.useRef(),[r,i]=ut.useState({isDirty:!1,isValidating:!1,isLoading:Ws(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Ws(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...qme(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,Mme({subject:a._subjects.state,next:o=>{Lme(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),ut.useEffect(()=>{e.values&&!nu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),ut.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=Dme(r,a),t.current}const pR=He.hr` - border: 0.5px solid ${vt}; -`,Kme=He(op)` +`;function Y3e(e){const t=window.vscMediaUrl;return I.jsx(K3e,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(AL,{width:e.size||WB})})}const aE=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(MZ,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&u9.createPortal(I.jsx(au,{id:t,place:"bottom",children:e}),n)]})};var bf=e=>e.type==="checkbox",F1=e=>e instanceof Date,ei=e=>e==null;const qB=e=>typeof e=="object";var ir=e=>!ei(e)&&!Array.isArray(e)&&qB(e)&&!F1(e),X3e=e=>ir(e)&&e.target?bf(e.target)?e.target.checked:e.target.value:e,Z3e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Q3e=(e,t)=>e.has(Z3e(t)),J3e=e=>{const t=e.constructor&&e.constructor.prototype;return ir(t)&&t.hasOwnProperty("isPrototypeOf")},FT=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Zo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(FT&&(e instanceof Blob||e instanceof FileList))&&(n||ir(e)))if(t=n?[]:{},!n&&!J3e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Zo(e[r]));else return e;return t}var yf=e=>Array.isArray(e)?e.filter(Boolean):[],qn=e=>e===void 0,lt=(e,t,n)=>{if(!t||!ir(e))return n;const r=yf(t.split(/[,[\].]+?/)).reduce((i,a)=>ei(i)?i:i[a],e);return qn(r)||r===e?qn(e[t])?n:e[t]:r},lu=e=>typeof e=="boolean";const fN={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ha={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ko={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},e4e=ut.createContext(null),KB=e=>{const{children:t,...n}=e;return ut.createElement(e4e.Provider,{value:n},t)};var t4e=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ha.all&&(t._proxyFormState[o]=!r||Ha.all),n&&(n[o]=!0),e[o]}});return i},sa=e=>ir(e)&&!Object.keys(e).length,n4e=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return sa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ha.all))},V4=e=>Array.isArray(e)?e:[e];function r4e(e){const t=ut.useRef(e);t.current=e,ut.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var Eo=e=>typeof e=="string",i4e=(e,t,n,r,i)=>Eo(e)?(r&&t.watch.add(e),lt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),lt(n,a))):(r&&(t.watchAll=!0),n),PT=e=>/^\w*$/.test(e),YB=e=>yf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Cn(e,t,n){let r=-1;const i=PT(t)?[t]:YB(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const oE=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=lt(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else ir(o)&&oE(o,t)}}};var hN=e=>({isOnSubmit:!e||e===Ha.onSubmit,isOnBlur:e===Ha.onBlur,isOnChange:e===Ha.onChange,isOnAll:e===Ha.all,isOnTouch:e===Ha.onTouched}),gN=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),o4e=(e,t,n)=>{const r=yf(lt(e,n));return Cn(r,"root",t[n]),Cn(e,n,r),e},BT=e=>e.type==="file",Js=e=>typeof e=="function",rm=e=>{if(!FT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},qh=e=>Eo(e),UT=e=>e.type==="radio",im=e=>e instanceof RegExp;const mN={value:!1,isValid:!1},bN={value:!0,isValid:!0};var XB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qn(e[0].attributes.value)?qn(e[0].value)||e[0].value===""?bN:{value:e[0].value,isValid:!0}:bN:mN}return mN};const yN={isValid:!1,value:null};var ZB=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,yN):yN;function EN(e,t,n="validate"){if(qh(e)||Array.isArray(e)&&e.every(qh)||lu(e)&&!e)return{type:n,message:qh(e)?e:"",ref:t}}var a1=e=>ir(e)&&!im(e)?e:{value:e,message:""},vN=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:b,valueAsNumber:y,mount:T,disabled:E}=e._f,v=lt(t,b);if(!T||E)return{};const w=o?o[0]:a,A=$=>{r&&w.reportValidity&&(w.setCustomValidity(lu($)?"":$||""),w.reportValidity())},R={},k=UT(a),N=bf(a),B=k||N,q=(y||BT(a))&&qn(a.value)&&qn(v)||rm(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,P=a4e.bind(null,b,n,R),Q=($,oe,fe,ce=Ko.maxLength,De=Ko.minLength)=>{const H=$?oe:fe;R[b]={type:$?ce:De,message:H,ref:a,...P($?ce:De,H)}};if(i?!Array.isArray(v)||!v.length:s&&(!B&&(q||ei(v))||lu(v)&&!v||N&&!XB(o).isValid||k&&!ZB(o).isValid)){const{value:$,message:oe}=qh(s)?{value:!!s,message:s}:a1(s);if($&&(R[b]={type:Ko.required,message:oe,ref:w,...P(Ko.required,oe)},!n))return A(oe),R}if(!q&&(!ei(p)||!ei(f))){let $,oe;const fe=a1(f),ce=a1(p);if(!ei(v)&&!isNaN(v)){const De=a.valueAsNumber||v&&+v;ei(fe.value)||($=De>fe.value),ei(ce.value)||(oe=Denew Date(new Date().toDateString()+" "+D),W=a.type=="time",se=a.type=="week";Eo(fe.value)&&v&&($=W?H(v)>H(fe.value):se?v>fe.value:De>new Date(fe.value)),Eo(ce.value)&&v&&(oe=W?H(v)+$.value,ce=!ei(oe.value)&&v.length<+oe.value;if((fe||ce)&&(Q(fe,$.message,oe.message),!n))return A(R[b].message),R}if(m&&!q&&Eo(v)){const{value:$,message:oe}=a1(m);if(im($)&&!v.match($)&&(R[b]={type:Ko.pattern,message:oe,ref:a,...P(Ko.pattern,oe)},!n))return A(oe),R}if(g){if(Js(g)){const $=await g(v,t),oe=EN($,w);if(oe&&(R[b]={...oe,...P(Ko.validate,oe.message)},!n))return A(oe.message),R}else if(ir(g)){let $={};for(const oe in g){if(!sa($)&&!n)break;const fe=EN(await g[oe](v,t),w,oe);fe&&($={...fe,...P(oe,fe.message)},A(fe.message),n&&(R[b]=$))}if(!sa($)&&(R[b]={ref:w,...$},!n))return R}}return A(!0),R};function s4e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var am=e=>ei(e)||!qB(e);function uu(e,t){if(am(e)||am(t))return e===t;if(F1(e)&&F1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(F1(a)&&F1(o)||ir(a)&&ir(o)||Array.isArray(a)&&Array.isArray(o)?!uu(a,o):a!==o)return!1}}return!0}var QB=e=>e.type==="select-multiple",u4e=e=>UT(e)||bf(e),q4=e=>rm(e)&&e.isConnected,JB=e=>{for(const t in e)if(Js(e[t]))return!0;return!1};function om(e,t={}){const n=Array.isArray(e);if(ir(e)||n)for(const r in e)Array.isArray(e[r])||ir(e[r])&&!JB(e[r])?(t[r]=Array.isArray(e[r])?[]:{},om(e[r],t[r])):ei(e[r])||(t[r]=!0);return t}function eU(e,t,n){const r=Array.isArray(e);if(ir(e)||r)for(const i in e)Array.isArray(e[i])||ir(e[i])&&!JB(e[i])?qn(t)||am(n[i])?n[i]=Array.isArray(e[i])?om(e[i],[]):{...om(e[i])}:eU(e[i],ei(t)?{}:t[i],n[i]):n[i]=!uu(e[i],t[i]);return n}var K4=(e,t)=>eU(e,t,om(t)),tU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>qn(e)?e:t?e===""?NaN:e&&+e:n&&Eo(e)?new Date(e):r?r(e):e;function Y4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return BT(t)?t.files:UT(t)?ZB(e.refs).value:QB(t)?[...t.selectedOptions].map(({value:n})=>n):bf(t)?XB(e.refs).value:tU(qn(t.value)?e.ref.value:t.value,e)}var c4e=(e,t,n,r)=>{const i={};for(const a of e){const o=lt(t,a);o&&Cn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},yd=e=>qn(e)?e:im(e)?e.source:ir(e)?im(e.value)?e.value.source:e.value:e,d4e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _N(e,t,n){const r=lt(e,n);if(r||PT(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=lt(t,a),s=lt(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var p4e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,f4e=(e,t)=>!yf(lt(e,t)).length&&vr(e,t);const h4e={mode:Ha.onSubmit,reValidateMode:Ha.onChange,shouldFocusError:!0};function g4e(e={},t){let n={...h4e,...e},r={submitCount:0,isDirty:!1,isLoading:Js(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=ir(n.defaultValues)||ir(n.values)?Zo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:Zo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:W4(),array:W4(),state:W4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,b=hN(n.mode),y=hN(n.reValidateMode),T=n.criteriaMode===Ha.all,E=U=>re=>{clearTimeout(p),p=setTimeout(U,re)},v=async U=>{if(f.isValid||U){const re=n.resolver?sa((await q()).errors):await Q(i,!0);re!==r.isValid&&m.state.next({isValid:re})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,re=[],de,xe,ye=!0,Te=!0)=>{if(xe&&de){if(s.action=!0,Te&&Array.isArray(lt(i,U))){const Le=de(lt(i,U),xe.argA,xe.argB);ye&&Cn(i,U,Le)}if(Te&&Array.isArray(lt(r.errors,U))){const Le=de(lt(r.errors,U),xe.argA,xe.argB);ye&&Cn(r.errors,U,Le),f4e(r.errors,U)}if(f.touchedFields&&Te&&Array.isArray(lt(r.touchedFields,U))){const Le=de(lt(r.touchedFields,U),xe.argA,xe.argB);ye&&Cn(r.touchedFields,U,Le)}f.dirtyFields&&(r.dirtyFields=K4(a,o)),m.state.next({name:U,isDirty:oe(U,re),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Cn(o,U,re)},R=(U,re)=>{Cn(r.errors,U,re),m.state.next({errors:r.errors})},k=(U,re,de,xe)=>{const ye=lt(i,U);if(ye){const Te=lt(o,U,qn(de)?lt(a,U):de);qn(Te)||xe&&xe.defaultChecked||re?Cn(o,U,re?Te:Y4(ye._f)):De(U,Te),s.mount&&v()}},N=(U,re,de,xe,ye)=>{let Te=!1,Le=!1;const ze={name:U};if(!de||xe){f.isDirty&&(Le=r.isDirty,r.isDirty=ze.isDirty=oe(),Te=Le!==ze.isDirty);const Ye=uu(lt(a,U),re);Le=lt(r.dirtyFields,U),Ye?vr(r.dirtyFields,U):Cn(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Te=Te||f.dirtyFields&&Le!==!Ye}if(de){const Ye=lt(r.touchedFields,U);Ye||(Cn(r.touchedFields,U,de),ze.touchedFields=r.touchedFields,Te=Te||f.touchedFields&&Ye!==de)}return Te&&ye&&m.state.next(ze),Te?ze:{}},B=(U,re,de,xe)=>{const ye=lt(r.errors,U),Te=f.isValid&&lu(re)&&r.isValid!==re;if(e.delayError&&de?(c=E(()=>R(U,de)),c(e.delayError)):(clearTimeout(p),c=null,de?Cn(r.errors,U,de):vr(r.errors,U)),(de?!uu(ye,de):ye)||!sa(xe)||Te){const Le={...xe,...Te&&lu(re)?{isValid:re}:{},errors:r.errors,name:U};r={...r,...Le},m.state.next(Le)}w(!1)},q=async U=>n.resolver(o,n.context,c4e(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:re}=await q(U);if(U)for(const de of U){const xe=lt(re,de);xe?Cn(r.errors,de,xe):vr(r.errors,de)}else r.errors=re;return re},Q=async(U,re,de={valid:!0})=>{for(const xe in U){const ye=U[xe];if(ye){const{_f:Te,...Le}=ye;if(Te){const ze=u.array.has(Te.name),Ye=await vN(ye,o,T,n.shouldUseNativeValidation&&!re,ze);if(Ye[Te.name]&&(de.valid=!1,re))break;!re&&(lt(Ye,Te.name)?ze?o4e(r.errors,Ye,Te.name):Cn(r.errors,Te.name,Ye[Te.name]):vr(r.errors,Te.name))}Le&&await Q(Le,re,de)}}return de.valid},$=()=>{for(const U of u.unMount){const re=lt(i,U);re&&(re._f.refs?re._f.refs.every(de=>!q4(de)):!q4(re._f.ref))&&X(U)}u.unMount=new Set},oe=(U,re)=>(U&&re&&Cn(o,U,re),!uu(pe(),a)),fe=(U,re,de)=>i4e(U,u,{...s.mount?o:qn(re)?a:Eo(U)?{[U]:re}:re},de,re),ce=U=>yf(lt(s.mount?o:a,U,e.shouldUnregister?lt(a,U,[]):[])),De=(U,re,de={})=>{const xe=lt(i,U);let ye=re;if(xe){const Te=xe._f;Te&&(!Te.disabled&&Cn(o,U,tU(re,Te)),ye=rm(Te.ref)&&ei(re)?"":re,QB(Te.ref)?[...Te.ref.options].forEach(Le=>Le.selected=ye.includes(Le.value)):Te.refs?bf(Te.ref)?Te.refs.length>1?Te.refs.forEach(Le=>(!Le.defaultChecked||!Le.disabled)&&(Le.checked=Array.isArray(ye)?!!ye.find(ze=>ze===Le.value):ye===Le.value)):Te.refs[0]&&(Te.refs[0].checked=!!ye):Te.refs.forEach(Le=>Le.checked=Le.value===ye):BT(Te.ref)?Te.ref.value="":(Te.ref.value=ye,Te.ref.type||m.values.next({name:U,values:{...o}})))}(de.shouldDirty||de.shouldTouch)&&N(U,ye,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&D(U)},H=(U,re,de)=>{for(const xe in re){const ye=re[xe],Te=`${U}.${xe}`,Le=lt(i,Te);(u.array.has(U)||!am(ye)||Le&&!Le._f)&&!F1(ye)?H(Te,ye,de):De(Te,ye,de)}},W=(U,re,de={})=>{const xe=lt(i,U),ye=u.array.has(U),Te=Zo(re);Cn(o,U,Te),ye?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&de.shouldDirty&&m.state.next({name:U,dirtyFields:K4(a,o),isDirty:oe(U,Te)})):xe&&!xe._f&&!ei(Te)?H(U,Te,de):De(U,Te,de),gN(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},se=async U=>{const re=U.target;let de=re.name,xe=!0;const ye=lt(i,de),Te=()=>re.type?Y4(ye._f):X3e(U);if(ye){let Le,ze;const Ye=Te(),jt=U.type===fN.BLUR||U.type===fN.FOCUS_OUT,ue=!d4e(ye._f)&&!n.resolver&&!lt(r.errors,de)&&!ye._f.deps||p4e(jt,lt(r.touchedFields,de),r.isSubmitted,y,b),Ee=gN(de,u,jt);Cn(o,de,Ye),jt?(ye._f.onBlur&&ye._f.onBlur(U),c&&c(0)):ye._f.onChange&&ye._f.onChange(U);const qe=N(de,Ye,jt,!1),j=!sa(qe)||Ee;if(!jt&&m.values.next({name:de,type:U.type,values:{...o}}),ue)return f.isValid&&v(),j&&m.state.next({name:de,...Ee?{}:qe});if(!jt&&Ee&&m.state.next({...r}),w(!0),n.resolver){const{errors:me}=await q([de]),Ve=_N(r.errors,i,de),ge=_N(me,i,Ve.name||de);Le=ge.error,de=ge.name,ze=sa(me)}else Le=(await vN(ye,o,T,n.shouldUseNativeValidation))[de],xe=Number.isNaN(Ye)||Ye===lt(o,de,Ye),xe&&(Le?ze=!1:f.isValid&&(ze=await Q(i,!0)));xe&&(ye._f.deps&&D(ye._f.deps),B(de,ze,Le,qe))}},D=async(U,re={})=>{let de,xe;const ye=V4(U);if(w(!0),n.resolver){const Te=await P(qn(U)?U:ye);de=sa(Te),xe=U?!ye.some(Le=>lt(Te,Le)):de}else U?(xe=(await Promise.all(ye.map(async Te=>{const Le=lt(i,Te);return await Q(Le&&Le._f?{[Te]:Le}:Le)}))).every(Boolean),!(!xe&&!r.isValid)&&v()):xe=de=await Q(i);return m.state.next({...!Eo(U)||f.isValid&&de!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:de}:{},errors:r.errors,isValidating:!1}),re.shouldFocus&&!xe&&oE(i,Te=>Te&<(r.errors,Te),U?ye:u.mount),xe},pe=U=>{const re={...a,...s.mount?o:{}};return qn(U)?re:Eo(U)?lt(re,U):U.map(de=>lt(re,de))},le=(U,re)=>({invalid:!!lt((re||r).errors,U),isDirty:!!lt((re||r).dirtyFields,U),isTouched:!!lt((re||r).touchedFields,U),error:lt((re||r).errors,U)}),L=U=>{U&&V4(U).forEach(re=>vr(r.errors,re)),m.state.next({errors:U?r.errors:{}})},ie=(U,re,de)=>{const xe=(lt(i,U,{_f:{}})._f||{}).ref;Cn(r.errors,U,{...re,ref:xe}),m.state.next({name:U,errors:r.errors,isValid:!1}),de&&de.shouldFocus&&xe&&xe.focus&&xe.focus()},Se=(U,re)=>Js(U)?m.values.subscribe({next:de=>U(fe(void 0,re),de)}):fe(U,re,!0),X=(U,re={})=>{for(const de of U?V4(U):u.mount)u.mount.delete(de),u.array.delete(de),re.keepValue||(vr(i,de),vr(o,de)),!re.keepError&&vr(r.errors,de),!re.keepDirty&&vr(r.dirtyFields,de),!re.keepTouched&&vr(r.touchedFields,de),!n.shouldUnregister&&!re.keepDefaultValue&&vr(a,de);m.values.next({values:{...o}}),m.state.next({...r,...re.keepDirty?{isDirty:oe()}:{}}),!re.keepIsValid&&v()},ke=({disabled:U,name:re,field:de,fields:xe})=>{if(lu(U)){const ye=U?void 0:lt(o,re,Y4(de?de._f:lt(xe,re)._f));Cn(o,re,ye),N(re,ye,!1,!1,!0)}},te=(U,re={})=>{let de=lt(i,U);const xe=lu(re.disabled);return Cn(i,U,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:U}},name:U,mount:!0,...re}}),u.mount.add(U),de?ke({field:de,disabled:re.disabled,name:U}):k(U,!0,re.value),{...xe?{disabled:re.disabled}:{},...n.progressive?{required:!!re.required,min:yd(re.min),max:yd(re.max),minLength:yd(re.minLength),maxLength:yd(re.maxLength),pattern:yd(re.pattern)}:{},name:U,onChange:se,onBlur:se,ref:ye=>{if(ye){te(U,re),de=lt(i,U);const Te=qn(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,Le=u4e(Te),ze=de._f.refs||[];if(Le?ze.find(Ye=>Ye===Te):Te===de._f.ref)return;Cn(i,U,{_f:{...de._f,...Le?{refs:[...ze.filter(q4),Te,...Array.isArray(lt(a,U))?[{}]:[]],ref:{type:Te.type,name:U}}:{ref:Te}}}),k(U,!1,void 0,Te)}else de=lt(i,U,{}),de._f&&(de._f.mount=!1),(n.shouldUnregister||re.shouldUnregister)&&!(Q3e(u.array,U)&&s.action)&&u.unMount.add(U)}}},Me=()=>n.shouldFocusError&&oE(i,U=>U&<(r.errors,U),u.mount),Re=(U,re)=>async de=>{de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let xe=Zo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ye,values:Te}=await q();r.errors=ye,xe=Te}else await Q(i);vr(r.errors,"root"),sa(r.errors)?(m.state.next({errors:{}}),await U(xe,de)):(re&&await re({...r.errors},de),Me(),setTimeout(Me)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Ze=(U,re={})=>{lt(i,U)&&(qn(re.defaultValue)?W(U,lt(a,U)):(W(U,re.defaultValue),Cn(a,U,re.defaultValue)),re.keepTouched||vr(r.touchedFields,U),re.keepDirty||(vr(r.dirtyFields,U),r.isDirty=re.defaultValue?oe(U,lt(a,U)):oe()),re.keepError||(vr(r.errors,U),f.isValid&&v()),m.state.next({...r}))},We=(U,re={})=>{const de=U?Zo(U):a,xe=Zo(de),ye=U&&!sa(U)?xe:a;if(re.keepDefaultValues||(a=de),!re.keepValues){if(re.keepDirtyValues||g)for(const Te of u.mount)lt(r.dirtyFields,Te)?Cn(ye,Te,lt(o,Te)):W(Te,lt(ye,Te));else{if(FT&&qn(U))for(const Te of u.mount){const Le=lt(i,Te);if(Le&&Le._f){const ze=Array.isArray(Le._f.refs)?Le._f.refs[0]:Le._f.ref;if(rm(ze)){const Ye=ze.closest("form");if(Ye){Ye.reset();break}}}}i={}}o=e.shouldUnregister?re.keepDefaultValues?Zo(a):{}:Zo(ye),m.array.next({values:{...ye}}),m.values.next({values:{...ye}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!re.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:re.keepSubmitCount?r.submitCount:0,isDirty:re.keepDirty?r.isDirty:!!(re.keepDefaultValues&&!uu(U,a)),isSubmitted:re.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re.keepDirtyValues?r.dirtyFields:re.keepDefaultValues&&U?K4(a,U):{},touchedFields:re.keepTouched?r.touchedFields:{},errors:re.keepErrors?r.errors:{},isSubmitSuccessful:re.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,re)=>We(Js(U)?U(o):U,re);return{control:{register:te,unregister:X,getFieldState:le,handleSubmit:Re,setError:ie,_executeSchema:q,_getWatch:fe,_getDirty:oe,_updateValid:v,_removeUnmounted:$,_updateFieldArray:A,_updateDisabledField:ke,_getFieldArray:ce,_reset:We,_resetDefaultValues:()=>Js(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:D,register:te,handleSubmit:Re,watch:Se,setValue:W,getValues:pe,reset:dt,resetField:Ze,clearErrors:L,unregister:X,setError:ie,setFocus:(U,re={})=>{const de=lt(i,U),xe=de&&de._f;if(xe){const ye=xe.refs?xe.refs[0]:xe.ref;ye.focus&&(ye.focus(),re.shouldSelect&&ye.select())}},getFieldState:le}}function nU(e={}){const t=ut.useRef(),n=ut.useRef(),[r,i]=ut.useState({isDirty:!1,isValidating:!1,isLoading:Js(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Js(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...g4e(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,r4e({subject:a._subjects.state,next:o=>{n4e(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),ut.useEffect(()=>{e.values&&!uu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),ut.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=t4e(r,a),t.current}const TN=Ge.hr` + border: 0.5px solid ${Et}; +`,m4e=Ge(oc)` background-color: transparent; - color: ${vt}; - border: 1px solid ${vt}; + color: ${Et}; + border: 1px solid ${Et}; &:hover { - background-color: ${vt}; + background-color: ${Et}; color: black; } -`,Yme=He(op)` +`,b4e=Ge(oc)` &:hover { opacity: 0.8; } -`,Xme=He.input.attrs({type:"range"})` +`,y4e=Ge.input.attrs({type:"range"})` --webkit-appearance: none; width: 100%; - background-color: ${Lt}; + background-color: ${Vt}; outline: none; border: none; opacity: 0.7; @@ -1123,7 +1099,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho width: 100%; height: 8px; cursor: pointer; - background: ${vt}; + background: ${Et}; border-radius: 4px; } &::-webkit-slider-thumb { @@ -1145,55 +1121,55 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho outline: none; border: none; } -`;function Zme(){const e=SP(),t=s=>console.log(s),n=cs(),r=C.useContext(Ya),i=zt(s=>s.serverState.config);us();const a=()=>{if(!r)return;const s=e.watch("system_message"),u=e.watch("temperature");r.setSystemMessage(s||""),u&&r.setTemperature(u)},o=()=>{a(),n("/")};return C.useEffect(()=>{i&&(e.setValue("system_message",i.system_message),e.setValue("temperature",i.temperature))},[i]),I.jsx(gP,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:o,className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Settings"})]}),I.jsx("form",{onSubmit:e.handleSubmit(t),children:i?I.jsxs("div",{className:"p-2",children:[I.jsxs("h3",{className:"flex gap-1",children:["System Message",I.jsx(y9,{msg:`Set a system message with information that the LLM should always +`;function E4e(){const e=nU(),t=s=>console.log(s),n=bs(),r=C.useContext(to),i=zt(s=>s.serverState.config);eo();const a=()=>{if(!r)return;const s=e.watch("system_message"),u=e.watch("temperature");r.setSystemMessage(s||""),u&&r.setTemperature(u)},o=()=>{a(),n("/")};return C.useEffect(()=>{i&&(e.setValue("system_message",i.system_message),e.setValue("temperature",i.temperature))},[i]),I.jsx(KB,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:o,className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Settings"})]}),I.jsx("form",{onSubmit:e.handleSubmit(t),children:i?I.jsxs("div",{className:"p-2",children:[I.jsxs("h3",{className:"flex gap-1",children:["System Message",I.jsx(aE,{msg:`Set a system message with information that the LLM should always keep in mind (e.g. "Please give concise answers. Always respond in - Spanish.")`})]}),I.jsx(QK,{placeholder:"Enter a system message (e.g. 'Always respond in German')",...e.register("system_message")}),I.jsx(pR,{}),I.jsxs("h3",{className:"flex gap-1",children:["Temperature",I.jsx(y9,{msg:`Set temperature to any value between 0 and 1. Higher values will + Spanish.")`})]}),I.jsx(HX,{placeholder:"Enter a system message (e.g. 'Always respond in German')",...e.register("system_message")}),I.jsx(TN,{}),I.jsxs("h3",{className:"flex gap-1",children:["Temperature",I.jsx(aE,{msg:`Set temperature to any value between 0 and 1. Higher values will make the LLM more creative, while lower values will make it more - predictable.`})]}),I.jsxs("div",{className:"flex justify-between mx-16 gap-1",children:[I.jsx("p",{children:"0"}),I.jsx(Xme,{type:"range",min:"0",max:"1",step:"0.01",...e.register("temperature")}),I.jsx("p",{children:"1"})]}),I.jsx("div",{className:"text-center",style:{marginTop:"-25px"},children:I.jsx("p",{className:"text-sm text-gray-500",children:e.watch("temperature")||i.temperature||"-"})}),I.jsx(pR,{})]}):I.jsx(xme,{})}),I.jsx("hr",{}),I.jsxs("div",{className:"px-2",children:[I.jsx("h3",{children:"Appearance"}),I.jsx("p",{children:"Font Size"}),I.jsx(JK,{type:"number",min:"8",max:"48",step:"1",defaultValue:nr(),onChange:s=>{localStorage.setItem("fontSize",s.target.value)}})]}),I.jsxs("div",{className:"flex gap-2 justify-end px-4",children:[I.jsx(Kme,{onClick:()=>{n("/")},children:"Cancel"}),I.jsx(Yme,{onClick:o,children:"Save"})]})]})})}var Lg={exports:{}};/** + predictable.`})]}),I.jsxs("div",{className:"flex justify-between mx-16 gap-1",children:[I.jsx("p",{children:"0"}),I.jsx(y4e,{type:"range",min:"0",max:"1",step:"0.01",...e.register("temperature")}),I.jsx("p",{children:"1"})]}),I.jsx("div",{className:"text-center",style:{marginTop:"-25px"},children:I.jsx("p",{className:"text-sm text-gray-500",children:e.watch("temperature")||i.temperature||"-"})}),I.jsx(TN,{})]}):I.jsx(Y3e,{})}),I.jsx("hr",{}),I.jsxs("div",{className:"px-2",children:[I.jsx("h3",{children:"Appearance"}),I.jsx("p",{children:"Font Size"}),I.jsx(jX,{type:"number",min:"8",max:"48",step:"1",defaultValue:pr(),onChange:s=>{localStorage.setItem("fontSize",s.target.value)}})]}),I.jsxs("div",{className:"flex gap-2 justify-end px-4",children:[I.jsx(m4e,{onClick:()=>{n("/")},children:"Cancel"}),I.jsx(b4e,{onClick:o,children:"Save"})]})]})})}var sm={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Lg.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,E=1,b=2,T=1,v=2,y=4,w=8,A=16,D=32,k=64,R=128,B=256,W=512,P=30,Q="...",z=800,le=16,he=1,de=2,fe=3,Z=1/0,V=9007199254740991,ce=17976931348623157e292,N=0/0,me=4294967295,oe=me-1,O=me>>>1,re=[["ary",R],["bind",T],["bindKey",v],["curry",w],["curryRight",A],["flip",W],["partial",D],["partialRight",k],["rearg",B]],Te="[object Arguments]",K="[object Array]",xe="[object AsyncFunction]",ne="[object Boolean]",Le="[object Date]",Re="[object DOMException]",Xe="[object Error]",Ve="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",Ge="[object Number]",pt="[object Null]",U="[object Object]",ie="[object Promise]",pe="[object Proxy]",ke="[object RegExp]",ve="[object Set]",Se="[object String]",Me="[object Symbol]",ze="[object Undefined]",Ke="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",ye="[object DataView]",We="[object Float32Array]",at="[object Float64Array]",Qe="[object Int8Array]",Y="[object Int16Array]",se="[object Int32Array]",j="[object Uint8Array]",$="[object Uint8ClampedArray]",J="[object Uint16Array]",be="[object Uint32Array]",Fe=/\b__p \+= '';/g,De=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Je=/&(?:amp|lt|gt|quot|#39);/g,Ze=/[&<>"']/g,Rt=RegExp(Je.source),Zt=RegExp(Ze.source),kt=/<%-([\s\S]+?)%>/g,nn=/<%([\s\S]+?)%>/g,Yt=/<%=([\s\S]+?)%>/g,jr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gr=/^\w*$/,Vr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,ii=RegExp(Ta.source),Ir=/^\s+/,ps=/\s/,fs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wr=/\{\n\/\* \[wrapped with (.+)\] \*/,hs=/,? & /,Wt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Rr=/[()=,{}\[\]\/\s]/,_i=/\\(\\)?/g,Al=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,ee=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,ln=/^0o[0-7]+$/i,ir=/^(?:0|[1-9]\d*)$/,ar=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yn=/($^)/,wo=/['\n\r\u2028\u2029\\]/g,Xa="\\ud800-\\udfff",Nr="\\u0300-\\u036f",rf="\\ufe20-\\ufe2f",af="\\u20d0-\\u20ff",V7=Nr+rf+af,W7="\\u2700-\\u27bf",q7="a-z\\xdf-\\xf6\\xf8-\\xff",kP="\\xac\\xb1\\xd7\\xf7",IP="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",RP="\\u2000-\\u206f",NP=" \\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",K7="A-Z\\xc0-\\xd6\\xd8-\\xde",Y7="\\ufe0e\\ufe0f",X7=kP+IP+RP+NP,Em="['’]",OP="["+Xa+"]",Z7="["+X7+"]",of="["+V7+"]",Q7="\\d+",DP="["+W7+"]",J7="["+q7+"]",eT="[^"+Xa+X7+Q7+W7+q7+K7+"]",vm="\\ud83c[\\udffb-\\udfff]",LP="(?:"+of+"|"+vm+")",tT="[^"+Xa+"]",ym="(?:\\ud83c[\\udde6-\\uddff]){2}",_m="[\\ud800-\\udbff][\\udc00-\\udfff]",Nu="["+K7+"]",nT="\\u200d",rT="(?:"+J7+"|"+eT+")",MP="(?:"+Nu+"|"+eT+")",iT="(?:"+Em+"(?:d|ll|m|re|s|t|ve))?",aT="(?:"+Em+"(?:D|LL|M|RE|S|T|VE))?",oT=LP+"?",sT="["+Y7+"]?",FP="(?:"+nT+"(?:"+[tT,ym,_m].join("|")+")"+sT+oT+")*",PP="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",BP="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lT=sT+oT+FP,UP="(?:"+[DP,ym,_m].join("|")+")"+lT,$P="(?:"+[tT+of+"?",of,ym,_m,OP].join("|")+")",zP=RegExp(Em,"g"),HP=RegExp(of,"g"),Tm=RegExp(vm+"(?="+vm+")|"+$P+lT,"g"),jP=RegExp([Nu+"?"+J7+"+"+iT+"(?="+[Z7,Nu,"$"].join("|")+")",MP+"+"+aT+"(?="+[Z7,Nu+rT,"$"].join("|")+")",Nu+"?"+rT+"+"+iT,Nu+"+"+aT,BP,PP,Q7,UP].join("|"),"g"),GP=RegExp("["+nT+Xa+V7+Y7+"]"),VP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,WP=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qP=-1,En={};En[We]=En[at]=En[Qe]=En[Y]=En[se]=En[j]=En[$]=En[J]=En[be]=!0,En[Te]=En[K]=En[ue]=En[ne]=En[ye]=En[Le]=En[Xe]=En[Ve]=En[ot]=En[Ge]=En[U]=En[ke]=En[ve]=En[Se]=En[Ke]=!1;var gn={};gn[Te]=gn[K]=gn[ue]=gn[ye]=gn[ne]=gn[Le]=gn[We]=gn[at]=gn[Qe]=gn[Y]=gn[se]=gn[ot]=gn[Ge]=gn[U]=gn[ke]=gn[ve]=gn[Se]=gn[Me]=gn[j]=gn[$]=gn[J]=gn[be]=!0,gn[Xe]=gn[Ve]=gn[Ke]=!1;var KP={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},YP={"&":"&","<":"<",">":">",'"':""","'":"'"},XP={"&":"&","<":"<",">":">",""":'"',"'":"'"},ZP={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QP=parseFloat,JP=parseInt,uT=typeof ql=="object"&&ql&&ql.Object===Object&&ql,eB=typeof self=="object"&&self&&self.Object===Object&&self,hr=uT||eB||Function("return this")(),Sm=t&&!t.nodeType&&t,Cl=Sm&&!0&&e&&!e.nodeType&&e,cT=Cl&&Cl.exports===Sm,wm=cT&&uT.process,Wi=function(){try{var te=Cl&&Cl.require&&Cl.require("util").types;return te||wm&&wm.binding&&wm.binding("util")}catch{}}(),dT=Wi&&Wi.isArrayBuffer,pT=Wi&&Wi.isDate,fT=Wi&&Wi.isMap,hT=Wi&&Wi.isRegExp,gT=Wi&&Wi.isSet,mT=Wi&&Wi.isTypedArray;function Ti(te,_e,ge){switch(ge.length){case 0:return te.call(_e);case 1:return te.call(_e,ge[0]);case 2:return te.call(_e,ge[0],ge[1]);case 3:return te.call(_e,ge[0],ge[1],ge[2])}return te.apply(_e,ge)}function tB(te,_e,ge,et){for(var _t=-1,Qt=te==null?0:te.length;++_t-1}function Am(te,_e,ge){for(var et=-1,_t=te==null?0:te.length;++et<_t;)if(ge(_e,te[et]))return!0;return!1}function wn(te,_e){for(var ge=-1,et=te==null?0:te.length,_t=Array(et);++ge-1;);return ge}function wT(te,_e){for(var ge=te.length;ge--&&Ou(_e,te[ge],0)>-1;);return ge}function cB(te,_e){for(var ge=te.length,et=0;ge--;)te[ge]===_e&&++et;return et}var dB=Im(KP),pB=Im(YP);function fB(te){return"\\"+ZP[te]}function hB(te,_e){return te==null?n:te[_e]}function Du(te){return GP.test(te)}function gB(te){return VP.test(te)}function mB(te){for(var _e,ge=[];!(_e=te.next()).done;)ge.push(_e.value);return ge}function Dm(te){var _e=-1,ge=Array(te.size);return te.forEach(function(et,_t){ge[++_e]=[_t,et]}),ge}function AT(te,_e){return function(ge){return te(_e(ge))}}function bs(te,_e){for(var ge=-1,et=te.length,_t=0,Qt=[];++ge-1}function rU(l,d){var h=this.__data__,_=wf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Ao.prototype.clear=JB,Ao.prototype.delete=eU,Ao.prototype.get=tU,Ao.prototype.has=nU,Ao.prototype.set=rU;function Co(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Xi(l,d,h,_,x,F){var H,X=d&f,ae=d&m,we=d&g;if(h&&(H=x?h(l,_,x,F):h(l)),H!==n)return H;if(!In(l))return l;var Ce=Tt(l);if(Ce){if(H=s$(l),!X)return ai(l,H)}else{var Ie=Dr(l),Ye=Ie==Ve||Ie==dt;if(Ss(l))return sS(l,X);if(Ie==U||Ie==Te||Ye&&!x){if(H=ae||Ye?{}:CS(l),!X)return ae?XU(l,vU(H,l)):YU(l,PT(H,l))}else{if(!gn[Ie])return x?l:{};H=l$(l,Ie,X)}}F||(F=new wa);var st=F.get(l);if(st)return st;F.set(l,H),tw(l)?l.forEach(function(Et){H.add(Xi(Et,d,h,Et,l,F))}):JS(l)&&l.forEach(function(Et,Nt){H.set(Nt,Xi(Et,d,h,Nt,l,F))});var bt=we?ae?a5:i5:ae?si:or,At=Ce?n:bt(l);return qi(At||l,function(Et,Nt){At&&(Nt=Et,Et=l[Nt]),Ac(H,Nt,Xi(Et,d,h,Nt,l,F))}),H}function yU(l){var d=or(l);return function(h){return BT(h,l,d)}}function BT(l,d,h){var _=h.length;if(l==null)return!_;for(l=dn(l);_--;){var x=h[_],F=d[x],H=l[x];if(H===n&&!(x in l)||!F(H))return!1}return!0}function UT(l,d,h){if(typeof l!="function")throw new Ki(o);return Oc(function(){l.apply(n,h)},d)}function Cc(l,d,h,_){var x=-1,F=sf,H=!0,X=l.length,ae=[],we=d.length;if(!X)return ae;h&&(d=wn(d,Si(h))),_?(F=Am,H=!1):d.length>=i&&(F=vc,H=!1,d=new Il(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:rw(_);h<_;)l[h++]=d;return l}function zT(l,d){var h=[];return vs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function gr(l,d,h,_,x){var F=-1,H=l.length;for(h||(h=c$),x||(x=[]);++F0&&h(X)?d>1?gr(X,d-1,h,_,x):ms(x,X):_||(x[x.length]=X)}return x}var $m=fS(),HT=fS(!0);function Za(l,d){return l&&$m(l,d,or)}function zm(l,d){return l&&HT(l,d,or)}function Cf(l,d){return gs(d,function(h){return No(l[h])})}function Nl(l,d){d=_s(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[Ja(d[h++])];return h&&h==_?l:n}function jT(l,d,h){var _=d(l);return Tt(l)?_:ms(_,h(l))}function qr(l){return l==null?l===n?ze:pt:xl&&xl in dn(l)?i$(l):b$(l)}function Hm(l,d){return l>d}function SU(l,d){return l!=null&&rn.call(l,d)}function wU(l,d){return l!=null&&d in dn(l)}function AU(l,d,h){return l>=Or(d,h)&&l=120&&Ce.length>=120)?new Il(H&&Ce):n}Ce=l[0];var Ie=-1,Ye=X[0];e:for(;++Ie-1;)X!==l&&bf.call(X,ae,1),bf.call(l,ae,1);return l}function JT(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Ro(x)?bf.call(l,x,1):Zm(l,x)}}return l}function Km(l,d){return l+yf(DT()*(d-l+1))}function BU(l,d,h,_){for(var x=-1,F=Zn(vf((d-l)/(h||1)),0),H=ge(F);F--;)H[_?F:++x]=l,l+=h;return H}function Ym(l,d){var h="";if(!l||d<1||d>V)return h;do d%2&&(h+=l),d=yf(d/2),d&&(l+=l);while(d);return h}function It(l,d){return p5(IS(l,d,li),l+"")}function UU(l){return FT(Gu(l))}function $U(l,d){var h=Gu(l);return Pf(h,Rl(d,0,h.length))}function Ic(l,d,h,_){if(!In(l))return l;d=_s(d,l);for(var x=-1,F=d.length,H=F-1,X=l;X!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=ge(x);++_>>1,H=l[F];H!==null&&!Ai(H)&&(h?H<=d:H=i){var we=d?null:e$(l);if(we)return uf(we);H=!1,x=vc,ae=new Il}else ae=d?[]:X;e:for(;++_=_?l:Zi(l,d,h)}var oS=NB||function(l){return hr.clearTimeout(l)};function sS(l,d){if(d)return l.slice();var h=l.length,_=kT?kT(h):new l.constructor(h);return l.copy(_),_}function t5(l){var d=new l.constructor(l.byteLength);return new gf(d).set(new gf(l)),d}function VU(l,d){var h=d?t5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function WU(l){var d=new l.constructor(l.source,qe.exec(l));return d.lastIndex=l.lastIndex,d}function qU(l){return wc?dn(wc.call(l)):{}}function lS(l,d){var h=d?t5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function uS(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=Ai(l),H=d!==n,X=d===null,ae=d===d,we=Ai(d);if(!X&&!we&&!F&&l>d||F&&H&&ae&&!X&&!we||_&&H&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=X)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function cS(l,d,h,_){for(var x=-1,F=l.length,H=h.length,X=-1,ae=d.length,we=Zn(F-H,0),Ce=ge(ae+we),Ie=!_;++X1?h[x-1]:n,H=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,H&&Kr(h[0],h[1],H)&&(F=x<3?n:F,x=1),d=dn(d);++_-1?x[F?d[H]:H]:n}}function mS(l){return Io(function(d){var h=d.length,_=h,x=Yi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Ki(o);if(x&&!H&&Mf(F)=="wrapper")var H=new Yi([],!0)}for(_=H?_:h;++_1&&Ut.reverse(),Ce&&aeX))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Ye=!0,st=h&b?new Il:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(fs,`{ + */sm.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,b=1,y=2,T=1,E=2,v=4,w=8,A=16,R=32,k=64,N=128,B=256,q=512,P=30,Q="...",$=800,oe=16,fe=1,ce=2,De=3,H=1/0,W=9007199254740991,se=17976931348623157e292,D=0/0,pe=4294967295,le=pe-1,L=pe>>>1,ie=[["ary",N],["bind",T],["bindKey",E],["curry",w],["curryRight",A],["flip",q],["partial",R],["partialRight",k],["rearg",B]],Se="[object Arguments]",X="[object Array]",ke="[object AsyncFunction]",te="[object Boolean]",Me="[object Date]",Re="[object DOMException]",Ze="[object Error]",We="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",je="[object Number]",pt="[object Null]",U="[object Object]",re="[object Promise]",de="[object Proxy]",xe="[object RegExp]",ye="[object Set]",Te="[object String]",Le="[object Symbol]",ze="[object Undefined]",Ye="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",Ee="[object DataView]",qe="[object Float32Array]",j="[object Float64Array]",me="[object Int8Array]",Ve="[object Int16Array]",ge="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",ne="[object Uint16Array]",ve="[object Uint32Array]",Qe=/\b__p \+= '';/g,Fe=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,Je=/[&<>"']/g,Rt=RegExp(rt.source),Qt=RegExp(Je.source),kt=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,Xt=/<%=([\s\S]+?)%>/g,Wr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,Kr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aa=/[\\^$.*+?()[\]{}|]/g,si=RegExp(Aa.source),Or=/^\s+/,Es=/\s/,vs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yr=/\{\n\/\* \[wrapped with (.+)\] \*/,_s=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dr=/[()=,{}\[\]\/\s]/,Si=/\\(\\)?/g,Nl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,J=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,ar=/^(?:0|[1-9]\d*)$/,or=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zn=/($^)/,No=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Lr="\\u0300-\\u036f",Ef="\\ufe20-\\ufe2f",vf="\\u20d0-\\u20ff",GT=Lr+Ef+vf,VT="\\u2700-\\u27bf",WT="a-z\\xdf-\\xf6\\xf8-\\xff",yU="\\xac\\xb1\\xd7\\xf7",EU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vU="\\u2000-\\u206f",_U=" \\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",qT="A-Z\\xc0-\\xd6\\xd8-\\xde",KT="\\ufe0e\\ufe0f",YT=yU+EU+vU+_U,G2="['’]",TU="["+no+"]",XT="["+YT+"]",_f="["+GT+"]",ZT="\\d+",SU="["+VT+"]",QT="["+WT+"]",JT="[^"+no+YT+ZT+VT+WT+qT+"]",V2="\\ud83c[\\udffb-\\udfff]",wU="(?:"+_f+"|"+V2+")",eS="[^"+no+"]",W2="(?:\\ud83c[\\udde6-\\uddff]){2}",q2="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+qT+"]",tS="\\u200d",nS="(?:"+QT+"|"+JT+")",AU="(?:"+Bu+"|"+JT+")",rS="(?:"+G2+"(?:d|ll|m|re|s|t|ve))?",iS="(?:"+G2+"(?:D|LL|M|RE|S|T|VE))?",aS=wU+"?",oS="["+KT+"]?",CU="(?:"+tS+"(?:"+[eS,W2,q2].join("|")+")"+oS+aS+")*",kU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sS=oS+aS+CU,IU="(?:"+[SU,W2,q2].join("|")+")"+sS,RU="(?:"+[eS+_f+"?",_f,W2,q2,TU].join("|")+")",NU=RegExp(G2,"g"),OU=RegExp(_f,"g"),K2=RegExp(V2+"(?="+V2+")|"+RU+sS,"g"),DU=RegExp([Bu+"?"+QT+"+"+rS+"(?="+[XT,Bu,"$"].join("|")+")",AU+"+"+iS+"(?="+[XT,Bu+nS,"$"].join("|")+")",Bu+"?"+nS+"+"+rS,Bu+"+"+iS,xU,kU,ZT,IU].join("|"),"g"),LU=RegExp("["+tS+no+GT+KT+"]"),MU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],PU=-1,En={};En[qe]=En[j]=En[me]=En[Ve]=En[ge]=En[G]=En[K]=En[ne]=En[ve]=!0,En[Se]=En[X]=En[ue]=En[te]=En[Ee]=En[Me]=En[Ze]=En[We]=En[ot]=En[je]=En[U]=En[xe]=En[ye]=En[Te]=En[Ye]=!1;var mn={};mn[Se]=mn[X]=mn[ue]=mn[Ee]=mn[te]=mn[Me]=mn[qe]=mn[j]=mn[me]=mn[Ve]=mn[ge]=mn[ot]=mn[je]=mn[U]=mn[xe]=mn[ye]=mn[Te]=mn[Le]=mn[G]=mn[K]=mn[ne]=mn[ve]=!0,mn[Ze]=mn[We]=mn[Ye]=!1;var BU={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},UU={"&":"&","<":"<",">":">",'"':""","'":"'"},$U={"&":"&","<":"<",">":">",""":'"',"'":"'"},zU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HU=parseFloat,jU=parseInt,lS=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,GU=typeof self=="object"&&self&&self.Object===Object&&self,mr=lS||GU||Function("return this")(),Y2=t&&!t.nodeType&&t,Ol=Y2&&!0&&e&&!e.nodeType&&e,uS=Ol&&Ol.exports===Y2,X2=uS&&lS.process,Yi=function(){try{var ee=Ol&&Ol.require&&Ol.require("util").types;return ee||X2&&X2.binding&&X2.binding("util")}catch{}}(),cS=Yi&&Yi.isArrayBuffer,dS=Yi&&Yi.isDate,pS=Yi&&Yi.isMap,fS=Yi&&Yi.isRegExp,hS=Yi&&Yi.isSet,gS=Yi&&Yi.isTypedArray;function wi(ee,_e,he){switch(he.length){case 0:return ee.call(_e);case 1:return ee.call(_e,he[0]);case 2:return ee.call(_e,he[0],he[1]);case 3:return ee.call(_e,he[0],he[1],he[2])}return ee.apply(_e,he)}function VU(ee,_e,he,et){for(var _t=-1,Jt=ee==null?0:ee.length;++_t-1}function Z2(ee,_e,he){for(var et=-1,_t=ee==null?0:ee.length;++et<_t;)if(he(_e,ee[et]))return!0;return!1}function An(ee,_e){for(var he=-1,et=ee==null?0:ee.length,_t=Array(et);++he-1;);return he}function SS(ee,_e){for(var he=ee.length;he--&&Uu(_e,ee[he],0)>-1;);return he}function e$(ee,_e){for(var he=ee.length,et=0;he--;)ee[he]===_e&&++et;return et}var t$=t5(BU),n$=t5(UU);function r$(ee){return"\\"+zU[ee]}function i$(ee,_e){return ee==null?n:ee[_e]}function $u(ee){return LU.test(ee)}function a$(ee){return MU.test(ee)}function o$(ee){for(var _e,he=[];!(_e=ee.next()).done;)he.push(_e.value);return he}function a5(ee){var _e=-1,he=Array(ee.size);return ee.forEach(function(et,_t){he[++_e]=[_t,et]}),he}function wS(ee,_e){return function(he){return ee(_e(he))}}function ws(ee,_e){for(var he=-1,et=ee.length,_t=0,Jt=[];++he-1}function q$(l,d){var h=this.__data__,_=Uf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Oo.prototype.clear=j$,Oo.prototype.delete=G$,Oo.prototype.get=V$,Oo.prototype.has=W$,Oo.prototype.set=q$;function Do(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Ji(l,d,h,_,x,F){var z,Z=d&f,ae=d&m,we=d&g;if(h&&(z=x?h(l,_,x,F):h(l)),z!==n)return z;if(!Rn(l))return l;var Ce=Tt(l);if(Ce){if(z=Zz(l),!Z)return li(l,z)}else{var Ie=Fr(l),Xe=Ie==We||Ie==dt;if(Rs(l))return ow(l,Z);if(Ie==U||Ie==Se||Xe&&!x){if(z=ae||Xe?{}:Aw(l),!Z)return ae?$z(l,uz(z,l)):Uz(l,FS(z,l))}else{if(!mn[Ie])return x?l:{};z=Qz(l,Ie,Z)}}F||(F=new ka);var st=F.get(l);if(st)return st;F.set(l,z),eA(l)?l.forEach(function(yt){z.add(Ji(yt,d,h,yt,l,F))}):Qw(l)&&l.forEach(function(yt,Nt){z.set(Nt,Ji(yt,d,h,Nt,l,F))});var bt=we?ae?N5:R5:ae?ci:sr,wt=Ce?n:bt(l);return Xi(wt||l,function(yt,Nt){wt&&(Nt=yt,yt=l[Nt]),Pc(z,Nt,Ji(yt,d,h,Nt,l,F))}),z}function cz(l){var d=sr(l);return function(h){return PS(h,l,d)}}function PS(l,d,h){var _=h.length;if(l==null)return!_;for(l=pn(l);_--;){var x=h[_],F=d[x],z=l[x];if(z===n&&!(x in l)||!F(z))return!1}return!0}function BS(l,d,h){if(typeof l!="function")throw new Zi(o);return Gc(function(){l.apply(n,h)},d)}function Bc(l,d,h,_){var x=-1,F=Tf,z=!0,Z=l.length,ae=[],we=d.length;if(!Z)return ae;h&&(d=An(d,Ai(h))),_?(F=Z2,z=!1):d.length>=i&&(F=Nc,z=!1,d=new Ml(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:nA(_);h<_;)l[h++]=d;return l}function $S(l,d){var h=[];return Cs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function br(l,d,h,_,x){var F=-1,z=l.length;for(h||(h=eH),x||(x=[]);++F0&&h(Z)?d>1?br(Z,d-1,h,_,x):Ss(x,Z):_||(x[x.length]=Z)}return x}var p5=pw(),zS=pw(!0);function ro(l,d){return l&&p5(l,d,sr)}function f5(l,d){return l&&zS(l,d,sr)}function zf(l,d){return Ts(d,function(h){return Bo(l[h])})}function Pl(l,d){d=xs(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[ao(d[h++])];return h&&h==_?l:n}function HS(l,d,h){var _=d(l);return Tt(l)?_:Ss(_,h(l))}function Xr(l){return l==null?l===n?ze:pt:Dl&&Dl in pn(l)?Kz(l):sH(l)}function h5(l,d){return l>d}function fz(l,d){return l!=null&&an.call(l,d)}function hz(l,d){return l!=null&&d in pn(l)}function gz(l,d,h){return l>=Mr(d,h)&&l=120&&Ce.length>=120)?new Ml(z&&Ce):n}Ce=l[0];var Ie=-1,Xe=Z[0];e:for(;++Ie-1;)Z!==l&&Of.call(Z,ae,1),Of.call(l,ae,1);return l}function QS(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Po(x)?Of.call(l,x,1):S5(l,x)}}return l}function v5(l,d){return l+Mf(OS()*(d-l+1))}function xz(l,d,h,_){for(var x=-1,F=Jn(Lf((d-l)/(h||1)),0),z=he(F);F--;)z[_?F:++x]=l,l+=h;return z}function _5(l,d){var h="";if(!l||d<1||d>W)return h;do d%2&&(h+=l),d=Mf(d/2),d&&(l+=l);while(d);return h}function xt(l,d){return B5(xw(l,d,di),l+"")}function Iz(l){return MS(Zu(l))}function Rz(l,d){var h=Zu(l);return Qf(h,Fl(d,0,h.length))}function zc(l,d,h,_){if(!Rn(l))return l;d=xs(d,l);for(var x=-1,F=d.length,z=F-1,Z=l;Z!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=he(x);++_>>1,z=l[F];z!==null&&!ki(z)&&(h?z<=d:z=i){var we=d?null:Gz(l);if(we)return wf(we);z=!1,x=Nc,ae=new Ml}else ae=d?[]:Z;e:for(;++_=_?l:ea(l,d,h)}var aw=_$||function(l){return mr.clearTimeout(l)};function ow(l,d){if(d)return l.slice();var h=l.length,_=kS?kS(h):new l.constructor(h);return l.copy(_),_}function k5(l){var d=new l.constructor(l.byteLength);return new Rf(d).set(new Rf(l)),d}function Mz(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function Fz(l){var d=new l.constructor(l.source,Ke.exec(l));return d.lastIndex=l.lastIndex,d}function Pz(l){return Fc?pn(Fc.call(l)):{}}function sw(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function lw(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=ki(l),z=d!==n,Z=d===null,ae=d===d,we=ki(d);if(!Z&&!we&&!F&&l>d||F&&z&&ae&&!Z&&!we||_&&z&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=Z)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function uw(l,d,h,_){for(var x=-1,F=l.length,z=h.length,Z=-1,ae=d.length,we=Jn(F-z,0),Ce=he(ae+we),Ie=!_;++Z1?h[x-1]:n,z=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,z&&Zr(h[0],h[1],z)&&(F=x<3?n:F,x=1),d=pn(d);++_-1?x[F?d[z]:z]:n}}function gw(l){return Fo(function(d){var h=d.length,_=h,x=Qi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Zi(o);if(x&&!z&&Xf(F)=="wrapper")var z=new Qi([],!0)}for(_=z?_:h;++_1&&Bt.reverse(),Ce&&aeZ))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Xe=!0,st=h&y?new Ml:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(vs,`{ /* [wrapped with `+d+`] */ -`)}function c$(l){return Tt(l)||Ll(l)||!!(NT&&l&&l[NT])}function Ro(l,d){var h=typeof l;return d=d??V,!!d&&(h=="number"||h!="symbol"&&ir.test(l))&&l>-1&&l%1==0&&l0){if(++d>=z)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Pf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,zS(l,h)});function HS(l){var d=M(l);return d.__chain__=!0,d}function _z(l,d){return d(l),l}function Bf(l,d){return d(l)}var Tz=Io(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return Um(F,l)};return d>1||this.__actions__.length||!(_ instanceof Ft)||!Ro(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Bf,args:[x],thisArg:n}),new Yi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function Sz(){return HS(this)}function wz(){return new Yi(this.value(),this.__chain__)}function Az(){this.__values__===n&&(this.__values__=nw(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function Cz(){return this}function xz(l){for(var d,h=this;h instanceof Sf;){var _=MS(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function kz(){var l=this.__wrapped__;if(l instanceof Ft){var d=l;return this.__actions__.length&&(d=new Ft(this)),d=d.reverse(),d.__actions__.push({func:Bf,args:[f5],thisArg:n}),new Yi(d,this.__chain__)}return this.thru(f5)}function Iz(){return iS(this.__wrapped__,this.__actions__)}var Rz=Rf(function(l,d,h){rn.call(l,h)?++l[h]:xo(l,h,1)});function Nz(l,d,h){var _=Tt(l)?bT:_U;return h&&Kr(l,d,h)&&(d=n),_(l,mt(d,3))}function Oz(l,d){var h=Tt(l)?gs:zT;return h(l,mt(d,3))}var Dz=gS(FS),Lz=gS(PS);function Mz(l,d){return gr(Uf(l,d),1)}function Fz(l,d){return gr(Uf(l,d),Z)}function Pz(l,d,h){return h=h===n?1:St(h),gr(Uf(l,d),h)}function jS(l,d){var h=Tt(l)?qi:vs;return h(l,mt(d,3))}function GS(l,d){var h=Tt(l)?nB:$T;return h(l,mt(d,3))}var Bz=Rf(function(l,d,h){rn.call(l,h)?l[h].push(d):xo(l,h,[d])});function Uz(l,d,h,_){l=oi(l)?l:Gu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Zn(x+h,0)),Gf(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Ou(l,d,h)>-1}var $z=It(function(l,d,h){var _=-1,x=typeof d=="function",F=oi(l)?ge(l.length):[];return vs(l,function(H){F[++_]=x?Ti(d,H,h):xc(H,d,h)}),F}),zz=Rf(function(l,d,h){xo(l,h,d)});function Uf(l,d){var h=Tt(l)?wn:qT;return h(l,mt(d,3))}function Hz(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),ZT(l,d,h))}var jz=Rf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Gz(l,d,h){var _=Tt(l)?Cm:_T,x=arguments.length<3;return _(l,mt(d,4),h,x,vs)}function Vz(l,d,h){var _=Tt(l)?rB:_T,x=arguments.length<3;return _(l,mt(d,4),h,x,$T)}function Wz(l,d){var h=Tt(l)?gs:zT;return h(l,Hf(mt(d,3)))}function qz(l){var d=Tt(l)?FT:UU;return d(l)}function Kz(l,d,h){(h?Kr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?mU:$U;return _(l,d)}function Yz(l){var d=Tt(l)?bU:HU;return d(l)}function Xz(l){if(l==null)return 0;if(oi(l))return Gf(l)?Lu(l):l.length;var d=Dr(l);return d==ot||d==ve?l.size:Vm(l).length}function Zz(l,d,h){var _=Tt(l)?xm:jU;return h&&Kr(l,d,h)&&(d=n),_(l,mt(d,3))}var Qz=It(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Kr(l,d[0],d[1])?d=[]:h>2&&Kr(d[0],d[1],d[2])&&(d=[d[0]]),ZT(l,gr(d,1),[])}),$f=OB||function(){return hr.Date.now()};function Jz(l,d){if(typeof d!="function")throw new Ki(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function VS(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,ko(l,R,n,n,n,n,d)}function WS(l,d){var h;if(typeof d!="function")throw new Ki(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var g5=It(function(l,d,h){var _=T;if(h.length){var x=bs(h,Hu(g5));_|=D}return ko(l,_,d,h,x)}),qS=It(function(l,d,h){var _=T|v;if(h.length){var x=bs(h,Hu(qS));_|=D}return ko(d,_,l,h,x)});function KS(l,d,h){d=h?n:d;var _=ko(l,w,n,n,n,n,n,d);return _.placeholder=KS.placeholder,_}function YS(l,d,h){d=h?n:d;var _=ko(l,A,n,n,n,n,n,d);return _.placeholder=YS.placeholder,_}function XS(l,d,h){var _,x,F,H,X,ae,we=0,Ce=!1,Ie=!1,Ye=!0;if(typeof l!="function")throw new Ki(o);d=Ji(d)||0,In(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Zn(Ji(h.maxWait)||0,d):F,Ye="trailing"in h?!!h.trailing:Ye);function st(zn){var Ca=_,Do=x;return _=x=n,we=zn,H=l.apply(Do,Ca),H}function bt(zn){return we=zn,X=Oc(Nt,d),Ce?st(zn):H}function At(zn){var Ca=zn-ae,Do=zn-we,gw=d-Ca;return Ie?Or(gw,F-Do):gw}function Et(zn){var Ca=zn-ae,Do=zn-we;return ae===n||Ca>=d||Ca<0||Ie&&Do>=F}function Nt(){var zn=$f();if(Et(zn))return Ut(zn);X=Oc(Nt,At(zn))}function Ut(zn){return X=n,Ye&&_?st(zn):(_=x=n,H)}function Ci(){X!==n&&oS(X),we=0,_=ae=x=X=n}function Yr(){return X===n?H:Ut($f())}function xi(){var zn=$f(),Ca=Et(zn);if(_=arguments,x=this,ae=zn,Ca){if(X===n)return bt(ae);if(Ie)return oS(X),X=Oc(Nt,d),st(ae)}return X===n&&(X=Oc(Nt,d)),H}return xi.cancel=Ci,xi.flush=Yr,xi}var eH=It(function(l,d){return UT(l,1,d)}),tH=It(function(l,d,h){return UT(l,Ji(d)||0,h)});function nH(l){return ko(l,W)}function zf(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Ki(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var H=l.apply(this,_);return h.cache=F.set(x,H)||F,H};return h.cache=new(zf.Cache||Co),h}zf.Cache=Co;function Hf(l){if(typeof l!="function")throw new Ki(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function rH(l){return WS(2,l)}var iH=GU(function(l,d){d=d.length==1&&Tt(d[0])?wn(d[0],Si(mt())):wn(gr(d,1),Si(mt()));var h=d.length;return It(function(_){for(var x=-1,F=Or(_.length,h);++x=d}),Ll=GT(function(){return arguments}())?GT:function(l){return Ln(l)&&rn.call(l,"callee")&&!RT.call(l,"callee")},Tt=ge.isArray,vH=dT?Si(dT):xU;function oi(l){return l!=null&&jf(l.length)&&!No(l)}function $n(l){return Ln(l)&&oi(l)}function yH(l){return l===!0||l===!1||Ln(l)&&qr(l)==ne}var Ss=LB||x5,_H=pT?Si(pT):kU;function TH(l){return Ln(l)&&l.nodeType===1&&!Dc(l)}function SH(l){if(l==null)return!0;if(oi(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Ss(l)||ju(l)||Ll(l)))return!l.length;var d=Dr(l);if(d==ot||d==ve)return!l.size;if(Nc(l))return!Vm(l).length;for(var h in l)if(rn.call(l,h))return!1;return!0}function wH(l,d){return kc(l,d)}function AH(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?kc(l,d,n,h):!!_}function b5(l){if(!Ln(l))return!1;var d=qr(l);return d==Xe||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Dc(l)}function CH(l){return typeof l=="number"&&OT(l)}function No(l){if(!In(l))return!1;var d=qr(l);return d==Ve||d==dt||d==xe||d==pe}function QS(l){return typeof l=="number"&&l==St(l)}function jf(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=V}function In(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Ln(l){return l!=null&&typeof l=="object"}var JS=fT?Si(fT):RU;function xH(l,d){return l===d||Gm(l,d,s5(d))}function kH(l,d,h){return h=typeof h=="function"?h:n,Gm(l,d,s5(d),h)}function IH(l){return ew(l)&&l!=+l}function RH(l){if(f$(l))throw new _t(a);return VT(l)}function NH(l){return l===null}function OH(l){return l==null}function ew(l){return typeof l=="number"||Ln(l)&&qr(l)==Ge}function Dc(l){if(!Ln(l)||qr(l)!=U)return!1;var d=mf(l);if(d===null)return!0;var h=rn.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&pf.call(h)==kB}var E5=hT?Si(hT):NU;function DH(l){return QS(l)&&l>=-V&&l<=V}var tw=gT?Si(gT):OU;function Gf(l){return typeof l=="string"||!Tt(l)&&Ln(l)&&qr(l)==Se}function Ai(l){return typeof l=="symbol"||Ln(l)&&qr(l)==Me}var ju=mT?Si(mT):DU;function LH(l){return l===n}function MH(l){return Ln(l)&&Dr(l)==Ke}function FH(l){return Ln(l)&&qr(l)==jt}var PH=Lf(Wm),BH=Lf(function(l,d){return l<=d});function nw(l){if(!l)return[];if(oi(l))return Gf(l)?Sa(l):ai(l);if(yc&&l[yc])return mB(l[yc]());var d=Dr(l),h=d==ot?Dm:d==ve?uf:Gu;return h(l)}function Oo(l){if(!l)return l===0?l:0;if(l=Ji(l),l===Z||l===-Z){var d=l<0?-1:1;return d*ce}return l===l?l:0}function St(l){var d=Oo(l),h=d%1;return d===d?h?d-h:d:0}function rw(l){return l?Rl(St(l),0,me):0}function Ji(l){if(typeof l=="number")return l;if(Ai(l))return N;if(In(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=In(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=TT(l);var h=Be.test(l);return h||ln.test(l)?JP(l.slice(2),h?2:8):ee.test(l)?N:+l}function iw(l){return Qa(l,si(l))}function UH(l){return l?Rl(St(l),-V,V):l===0?l:0}function Jt(l){return l==null?"":wi(l)}var $H=$u(function(l,d){if(Nc(d)||oi(d)){Qa(d,or(d),l);return}for(var h in d)rn.call(d,h)&&Ac(l,h,d[h])}),aw=$u(function(l,d){Qa(d,si(d),l)}),Vf=$u(function(l,d,h,_){Qa(d,si(d),l,_)}),zH=$u(function(l,d,h,_){Qa(d,or(d),l,_)}),HH=Io(Um);function jH(l,d){var h=Uu(l);return d==null?h:PT(h,d)}var GH=It(function(l,d){l=dn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Kr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],H=si(F),X=-1,ae=H.length;++X1),F}),Qa(l,a5(l),h),_&&(h=Xi(h,f|m|g,t$));for(var x=d.length;x--;)Zm(h,d[x]);return h});function lj(l,d){return sw(l,Hf(mt(d)))}var uj=Io(function(l,d){return l==null?{}:FU(l,d)});function sw(l,d){if(l==null)return{};var h=wn(a5(l),function(_){return[_]});return d=mt(d),QT(l,h,function(_,x){return d(_,x[0])})}function cj(l,d,h){d=_s(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=DT();return Or(l+x*(d-l+QP("1e-"+((x+"").length-1))),d)}return Km(l,d)}var _j=zu(function(l,d,h){return d=d.toLowerCase(),l+(h?cw(d):d)});function cw(l){return _5(Jt(l).toLowerCase())}function dw(l){return l=Jt(l),l&&l.replace(ar,dB).replace(HP,"")}function Tj(l,d,h){l=Jt(l),d=wi(d);var _=l.length;h=h===n?_:Rl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function Sj(l){return l=Jt(l),l&&Zt.test(l)?l.replace(Ze,pB):l}function wj(l){return l=Jt(l),l&&ii.test(l)?l.replace(Ta,"\\$&"):l}var Aj=zu(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),Cj=zu(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),xj=hS("toLowerCase");function kj(l,d,h){l=Jt(l),d=St(d);var _=d?Lu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Df(yf(x),h)+l+Df(vf(x),h)}function Ij(l,d,h){l=Jt(l),d=St(d);var _=d?Lu(l):0;return d&&_>>0,h?(l=Jt(l),l&&(typeof d=="string"||d!=null&&!E5(d))&&(d=wi(d),!d&&Du(l))?Ts(Sa(l),0,h):l.split(d,h)):[]}var Fj=zu(function(l,d,h){return l+(h?" ":"")+_5(d)});function Pj(l,d,h){return l=Jt(l),h=h==null?0:Rl(St(h),0,l.length),d=wi(d),l.slice(h,h+d.length)==d}function Bj(l,d,h){var _=M.templateSettings;h&&Kr(l,d,h)&&(d=n),l=Jt(l),d=Vf({},d,_,_S);var x=Vf({},d.imports,_.imports,_S),F=or(x),H=Om(x,F),X,ae,we=0,Ce=d.interpolate||Yn,Ie="__p += '",Ye=Lm((d.escape||Yn).source+"|"+Ce.source+"|"+(Ce===Yt?Al:Yn).source+"|"+(d.evaluate||Yn).source+"|$","g"),st="//# sourceURL="+(rn.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qP+"]")+` -`;l.replace(Ye,function(Et,Nt,Ut,Ci,Yr,xi){return Ut||(Ut=Ci),Ie+=l.slice(we,xi).replace(wo,fB),Nt&&(X=!0,Ie+=`' + +`)}function eH(l){return Tt(l)||$l(l)||!!(RS&&l&&l[RS])}function Po(l,d){var h=typeof l;return d=d??W,!!d&&(h=="number"||h!="symbol"&&ar.test(l))&&l>-1&&l%1==0&&l0){if(++d>=$)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Qf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,$w(l,h)});function zw(l){var d=M(l);return d.__chain__=!0,d}function dj(l,d){return d(l),l}function Jf(l,d){return d(l)}var pj=Fo(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return d5(F,l)};return d>1||this.__actions__.length||!(_ instanceof Mt)||!Po(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Jf,args:[x],thisArg:n}),new Qi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function fj(){return zw(this)}function hj(){return new Qi(this.value(),this.__chain__)}function gj(){this.__values__===n&&(this.__values__=tA(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function mj(){return this}function bj(l){for(var d,h=this;h instanceof Bf;){var _=Lw(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function yj(){var l=this.__wrapped__;if(l instanceof Mt){var d=l;return this.__actions__.length&&(d=new Mt(this)),d=d.reverse(),d.__actions__.push({func:Jf,args:[U5],thisArg:n}),new Qi(d,this.__chain__)}return this.thru(U5)}function Ej(){return rw(this.__wrapped__,this.__actions__)}var vj=Vf(function(l,d,h){an.call(l,h)?++l[h]:Lo(l,h,1)});function _j(l,d,h){var _=Tt(l)?mS:dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}function Tj(l,d){var h=Tt(l)?Ts:$S;return h(l,mt(d,3))}var Sj=hw(Mw),wj=hw(Fw);function Aj(l,d){return br(e0(l,d),1)}function Cj(l,d){return br(e0(l,d),H)}function kj(l,d,h){return h=h===n?1:St(h),br(e0(l,d),h)}function Hw(l,d){var h=Tt(l)?Xi:Cs;return h(l,mt(d,3))}function jw(l,d){var h=Tt(l)?WU:US;return h(l,mt(d,3))}var xj=Vf(function(l,d,h){an.call(l,h)?l[h].push(d):Lo(l,h,[d])});function Ij(l,d,h,_){l=ui(l)?l:Zu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Jn(x+h,0)),a0(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Uu(l,d,h)>-1}var Rj=xt(function(l,d,h){var _=-1,x=typeof d=="function",F=ui(l)?he(l.length):[];return Cs(l,function(z){F[++_]=x?wi(d,z,h):Uc(z,d,h)}),F}),Nj=Vf(function(l,d,h){Lo(l,h,d)});function e0(l,d){var h=Tt(l)?An:WS;return h(l,mt(d,3))}function Oj(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),XS(l,d,h))}var Dj=Vf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Lj(l,d,h){var _=Tt(l)?Q2:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,Cs)}function Mj(l,d,h){var _=Tt(l)?qU:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,US)}function Fj(l,d){var h=Tt(l)?Ts:$S;return h(l,r0(mt(d,3)))}function Pj(l){var d=Tt(l)?MS:Iz;return d(l)}function Bj(l,d,h){(h?Zr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?oz:Rz;return _(l,d)}function Uj(l){var d=Tt(l)?sz:Oz;return d(l)}function $j(l){if(l==null)return 0;if(ui(l))return a0(l)?zu(l):l.length;var d=Fr(l);return d==ot||d==ye?l.size:b5(l).length}function zj(l,d,h){var _=Tt(l)?J2:Dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}var Hj=xt(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Zr(l,d[0],d[1])?d=[]:h>2&&Zr(d[0],d[1],d[2])&&(d=[d[0]]),XS(l,br(d,1),[])}),t0=T$||function(){return mr.Date.now()};function jj(l,d){if(typeof d!="function")throw new Zi(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function Gw(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,Mo(l,N,n,n,n,n,d)}function Vw(l,d){var h;if(typeof d!="function")throw new Zi(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var z5=xt(function(l,d,h){var _=T;if(h.length){var x=ws(h,Yu(z5));_|=R}return Mo(l,_,d,h,x)}),Ww=xt(function(l,d,h){var _=T|E;if(h.length){var x=ws(h,Yu(Ww));_|=R}return Mo(d,_,l,h,x)});function qw(l,d,h){d=h?n:d;var _=Mo(l,w,n,n,n,n,n,d);return _.placeholder=qw.placeholder,_}function Kw(l,d,h){d=h?n:d;var _=Mo(l,A,n,n,n,n,n,d);return _.placeholder=Kw.placeholder,_}function Yw(l,d,h){var _,x,F,z,Z,ae,we=0,Ce=!1,Ie=!1,Xe=!0;if(typeof l!="function")throw new Zi(o);d=na(d)||0,Rn(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Jn(na(h.maxWait)||0,d):F,Xe="trailing"in h?!!h.trailing:Xe);function st(Hn){var Ia=_,$o=x;return _=x=n,we=Hn,z=l.apply($o,Ia),z}function bt(Hn){return we=Hn,Z=Gc(Nt,d),Ce?st(Hn):z}function wt(Hn){var Ia=Hn-ae,$o=Hn-we,hA=d-Ia;return Ie?Mr(hA,F-$o):hA}function yt(Hn){var Ia=Hn-ae,$o=Hn-we;return ae===n||Ia>=d||Ia<0||Ie&&$o>=F}function Nt(){var Hn=t0();if(yt(Hn))return Bt(Hn);Z=Gc(Nt,wt(Hn))}function Bt(Hn){return Z=n,Xe&&_?st(Hn):(_=x=n,z)}function xi(){Z!==n&&aw(Z),we=0,_=ae=x=Z=n}function Qr(){return Z===n?z:Bt(t0())}function Ii(){var Hn=t0(),Ia=yt(Hn);if(_=arguments,x=this,ae=Hn,Ia){if(Z===n)return bt(ae);if(Ie)return aw(Z),Z=Gc(Nt,d),st(ae)}return Z===n&&(Z=Gc(Nt,d)),z}return Ii.cancel=xi,Ii.flush=Qr,Ii}var Gj=xt(function(l,d){return BS(l,1,d)}),Vj=xt(function(l,d,h){return BS(l,na(d)||0,h)});function Wj(l){return Mo(l,q)}function n0(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Zi(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var z=l.apply(this,_);return h.cache=F.set(x,z)||F,z};return h.cache=new(n0.Cache||Do),h}n0.Cache=Do;function r0(l){if(typeof l!="function")throw new Zi(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function qj(l){return Vw(2,l)}var Kj=Lz(function(l,d){d=d.length==1&&Tt(d[0])?An(d[0],Ai(mt())):An(br(d,1),Ai(mt()));var h=d.length;return xt(function(_){for(var x=-1,F=Mr(_.length,h);++x=d}),$l=jS(function(){return arguments}())?jS:function(l){return Mn(l)&&an.call(l,"callee")&&!IS.call(l,"callee")},Tt=he.isArray,uG=cS?Ai(cS):bz;function ui(l){return l!=null&&i0(l.length)&&!Bo(l)}function zn(l){return Mn(l)&&ui(l)}function cG(l){return l===!0||l===!1||Mn(l)&&Xr(l)==te}var Rs=w$||J5,dG=dS?Ai(dS):yz;function pG(l){return Mn(l)&&l.nodeType===1&&!Vc(l)}function fG(l){if(l==null)return!0;if(ui(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Rs(l)||Xu(l)||$l(l)))return!l.length;var d=Fr(l);if(d==ot||d==ye)return!l.size;if(jc(l))return!b5(l).length;for(var h in l)if(an.call(l,h))return!1;return!0}function hG(l,d){return $c(l,d)}function gG(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?$c(l,d,n,h):!!_}function j5(l){if(!Mn(l))return!1;var d=Xr(l);return d==Ze||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Vc(l)}function mG(l){return typeof l=="number"&&NS(l)}function Bo(l){if(!Rn(l))return!1;var d=Xr(l);return d==We||d==dt||d==ke||d==de}function Zw(l){return typeof l=="number"&&l==St(l)}function i0(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Rn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Mn(l){return l!=null&&typeof l=="object"}var Qw=pS?Ai(pS):vz;function bG(l,d){return l===d||m5(l,d,D5(d))}function yG(l,d,h){return h=typeof h=="function"?h:n,m5(l,d,D5(d),h)}function EG(l){return Jw(l)&&l!=+l}function vG(l){if(rH(l))throw new _t(a);return GS(l)}function _G(l){return l===null}function TG(l){return l==null}function Jw(l){return typeof l=="number"||Mn(l)&&Xr(l)==je}function Vc(l){if(!Mn(l)||Xr(l)!=U)return!1;var d=Nf(l);if(d===null)return!0;var h=an.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&kf.call(h)==y$}var G5=fS?Ai(fS):_z;function SG(l){return Zw(l)&&l>=-W&&l<=W}var eA=hS?Ai(hS):Tz;function a0(l){return typeof l=="string"||!Tt(l)&&Mn(l)&&Xr(l)==Te}function ki(l){return typeof l=="symbol"||Mn(l)&&Xr(l)==Le}var Xu=gS?Ai(gS):Sz;function wG(l){return l===n}function AG(l){return Mn(l)&&Fr(l)==Ye}function CG(l){return Mn(l)&&Xr(l)==jt}var kG=Yf(y5),xG=Yf(function(l,d){return l<=d});function tA(l){if(!l)return[];if(ui(l))return a0(l)?Ca(l):li(l);if(Oc&&l[Oc])return o$(l[Oc]());var d=Fr(l),h=d==ot?a5:d==ye?wf:Zu;return h(l)}function Uo(l){if(!l)return l===0?l:0;if(l=na(l),l===H||l===-H){var d=l<0?-1:1;return d*se}return l===l?l:0}function St(l){var d=Uo(l),h=d%1;return d===d?h?d-h:d:0}function nA(l){return l?Fl(St(l),0,pe):0}function na(l){if(typeof l=="number")return l;if(ki(l))return D;if(Rn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Rn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=_S(l);var h=Be.test(l);return h||un.test(l)?jU(l.slice(2),h?2:8):J.test(l)?D:+l}function rA(l){return io(l,ci(l))}function IG(l){return l?Fl(St(l),-W,W):l===0?l:0}function en(l){return l==null?"":Ci(l)}var RG=qu(function(l,d){if(jc(d)||ui(d)){io(d,sr(d),l);return}for(var h in d)an.call(d,h)&&Pc(l,h,d[h])}),iA=qu(function(l,d){io(d,ci(d),l)}),o0=qu(function(l,d,h,_){io(d,ci(d),l,_)}),NG=qu(function(l,d,h,_){io(d,sr(d),l,_)}),OG=Fo(d5);function DG(l,d){var h=Wu(l);return d==null?h:FS(h,d)}var LG=xt(function(l,d){l=pn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Zr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],z=ci(F),Z=-1,ae=z.length;++Z1),F}),io(l,N5(l),h),_&&(h=Ji(h,f|m|g,Vz));for(var x=d.length;x--;)S5(h,d[x]);return h});function QG(l,d){return oA(l,r0(mt(d)))}var JG=Fo(function(l,d){return l==null?{}:Cz(l,d)});function oA(l,d){if(l==null)return{};var h=An(N5(l),function(_){return[_]});return d=mt(d),ZS(l,h,function(_,x){return d(_,x[0])})}function eV(l,d,h){d=xs(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=OS();return Mr(l+x*(d-l+HU("1e-"+((x+"").length-1))),d)}return v5(l,d)}var dV=Ku(function(l,d,h){return d=d.toLowerCase(),l+(h?uA(d):d)});function uA(l){return q5(en(l).toLowerCase())}function cA(l){return l=en(l),l&&l.replace(or,t$).replace(OU,"")}function pV(l,d,h){l=en(l),d=Ci(d);var _=l.length;h=h===n?_:Fl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function fV(l){return l=en(l),l&&Qt.test(l)?l.replace(Je,n$):l}function hV(l){return l=en(l),l&&si.test(l)?l.replace(Aa,"\\$&"):l}var gV=Ku(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),mV=Ku(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),bV=fw("toLowerCase");function yV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Kf(Mf(x),h)+l+Kf(Lf(x),h)}function EV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;return d&&_>>0,h?(l=en(l),l&&(typeof d=="string"||d!=null&&!G5(d))&&(d=Ci(d),!d&&$u(l))?Is(Ca(l),0,h):l.split(d,h)):[]}var CV=Ku(function(l,d,h){return l+(h?" ":"")+q5(d)});function kV(l,d,h){return l=en(l),h=h==null?0:Fl(St(h),0,l.length),d=Ci(d),l.slice(h,h+d.length)==d}function xV(l,d,h){var _=M.templateSettings;h&&Zr(l,d,h)&&(d=n),l=en(l),d=o0({},d,_,vw);var x=o0({},d.imports,_.imports,vw),F=sr(x),z=i5(x,F),Z,ae,we=0,Ce=d.interpolate||Zn,Ie="__p += '",Xe=o5((d.escape||Zn).source+"|"+Ce.source+"|"+(Ce===Xt?Nl:Zn).source+"|"+(d.evaluate||Zn).source+"|$","g"),st="//# sourceURL="+(an.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++PU+"]")+` +`;l.replace(Xe,function(yt,Nt,Bt,xi,Qr,Ii){return Bt||(Bt=xi),Ie+=l.slice(we,Ii).replace(No,r$),Nt&&(Z=!0,Ie+=`' + __e(`+Nt+`) + -'`),Yr&&(ae=!0,Ie+=`'; -`+Yr+`; -__p += '`),Ut&&(Ie+=`' + -((__t = (`+Ut+`)) == null ? '' : __t) + -'`),we=xi+Et.length,Et}),Ie+=`'; -`;var bt=rn.call(d,"variable")&&d.variable;if(!bt)Ie=`with (obj) { +'`),Qr&&(ae=!0,Ie+=`'; +`+Qr+`; +__p += '`),Bt&&(Ie+=`' + +((__t = (`+Bt+`)) == null ? '' : __t) + +'`),we=Ii+yt.length,yt}),Ie+=`'; +`;var bt=an.call(d,"variable")&&d.variable;if(!bt)Ie=`with (obj) { `+Ie+` } -`;else if(Rr.test(bt))throw new _t(s);Ie=(ae?Ie.replace(Fe,""):Ie).replace(De,"$1").replace(tt,"$1;"),Ie="function("+(bt||"obj")+`) { +`;else if(Dr.test(bt))throw new _t(s);Ie=(ae?Ie.replace(Qe,""):Ie).replace(Fe,"$1").replace(at,"$1;"),Ie="function("+(bt||"obj")+`) { `+(bt?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(ae?`, __j = Array.prototype.join; +`)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(ae?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Ie+`return __p -}`;var At=fw(function(){return Qt(F,st+"return "+Ie).apply(n,H)});if(At.source=Ie,b5(At))throw At;return At}function Uj(l){return Jt(l).toLowerCase()}function $j(l){return Jt(l).toUpperCase()}function zj(l,d,h){if(l=Jt(l),l&&(h||d===n))return TT(l);if(!l||!(d=wi(d)))return l;var _=Sa(l),x=Sa(d),F=ST(_,x),H=wT(_,x)+1;return Ts(_,F,H).join("")}function Hj(l,d,h){if(l=Jt(l),l&&(h||d===n))return l.slice(0,CT(l)+1);if(!l||!(d=wi(d)))return l;var _=Sa(l),x=wT(_,Sa(d))+1;return Ts(_,0,x).join("")}function jj(l,d,h){if(l=Jt(l),l&&(h||d===n))return l.replace(Ir,"");if(!l||!(d=wi(d)))return l;var _=Sa(l),x=ST(_,Sa(d));return Ts(_,x).join("")}function Gj(l,d){var h=P,_=Q;if(In(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?wi(d.omission):_}l=Jt(l);var F=l.length;if(Du(l)){var H=Sa(l);F=H.length}if(h>=F)return l;var X=h-Lu(_);if(X<1)return _;var ae=H?Ts(H,0,X).join(""):l.slice(0,X);if(x===n)return ae+_;if(H&&(X+=ae.length-X),E5(x)){if(l.slice(X).search(x)){var we,Ce=ae;for(x.global||(x=Lm(x.source,Jt(qe.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?X:Ie)}}else if(l.indexOf(wi(x),X)!=X){var Ye=ae.lastIndexOf(x);Ye>-1&&(ae=ae.slice(0,Ye))}return ae+_}function Vj(l){return l=Jt(l),l&&Rt.test(l)?l.replace(Je,yB):l}var Wj=zu(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),_5=hS("toUpperCase");function pw(l,d,h){return l=Jt(l),d=h?n:d,d===n?gB(l)?SB(l):oB(l):l.match(d)||[]}var fw=It(function(l,d){try{return Ti(l,n,d)}catch(h){return b5(h)?h:new _t(h)}}),qj=Io(function(l,d){return qi(d,function(h){h=Ja(h),xo(l,h,g5(l[h],l))}),l});function Kj(l){var d=l==null?0:l.length,h=mt();return l=d?wn(l,function(_){if(typeof _[1]!="function")throw new Ki(o);return[h(_[0]),_[1]]}):[],It(function(_){for(var x=-1;++xV)return[];var h=me,_=Or(l,me);d=mt(d),l-=me;for(var x=Nm(_,d);++h0||d<0)?new Ft(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Ft.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Ft.prototype.toArray=function(){return this.take(me)},Za(Ft.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var H=this.__wrapped__,X=_?[1]:arguments,ae=H instanceof Ft,we=X[0],Ce=ae||Tt(H),Ie=function(Nt){var Ut=x.apply(M,ms([Nt],X));return _&&Ye?Ut[0]:Ut};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Ye=this.__chain__,st=!!this.__actions__.length,bt=F&&!Ye,At=ae&&!st;if(!F&&Ce){H=At?H:new Ft(this);var Et=l.apply(H,X);return Et.__actions__.push({func:Bf,args:[Ie],thisArg:n}),new Yi(Et,Ye)}return bt&&At?l.apply(this,X):(Et=this.thru(Ie),bt?_?Et.value()[0]:Et.value():Et)})}),qi(["pop","push","shift","sort","splice","unshift"],function(l){var d=cf[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(H){return d.apply(Tt(H)?H:[],x)})}}),Za(Ft.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";rn.call(Bu,_)||(Bu[_]=[]),Bu[_].push({name:d,func:h})}}),Bu[Nf(n,v).name]=[{name:"wrapper",func:n}],Ft.prototype.clone=VB,Ft.prototype.reverse=WB,Ft.prototype.value=qB,M.prototype.at=Tz,M.prototype.chain=Sz,M.prototype.commit=wz,M.prototype.next=Az,M.prototype.plant=xz,M.prototype.reverse=kz,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Iz,M.prototype.first=M.prototype.head,yc&&(M.prototype[yc]=Cz),M},Mu=wB();Cl?((Cl.exports=Mu)._=Mu,Sm._=Mu):hr._=Mu}).call(ql)})(Lg,Lg.exports);var Qme=Lg.exports;const qs=Hi(Qme);function ro(e,t){const n=qs.cloneDeep(e);for(const r in t)typeof t[r]=="function"?qs.updateWith(n,r,t[r]):qs.updateWith(n,r,i=>t[r]);return n}const Ec={};Ec["Requires API Key"]="#FF0000";Ec.Local="#00bb00";Ec["Open-Source"]="#0033FF";Ec.Free="#ffff00";const Jme={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},e5e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},t5e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},n5e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},r5e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},i5e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Ra=[Jme,e5e,n5e,t5e,r5e,i5e],fR={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},T9={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},S9={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},w9={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},wP={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},A9={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},AP={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},a5e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},Ju=[T9,S9,w9,wP,AP,A9,a5e],hR={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},gR={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},o5e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function mR(e){return o5e[e]||e}const CP={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[hR,gR],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Ra]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Ra],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: +}`;var wt=pA(function(){return Jt(F,st+"return "+Ie).apply(n,z)});if(wt.source=Ie,j5(wt))throw wt;return wt}function IV(l){return en(l).toLowerCase()}function RV(l){return en(l).toUpperCase()}function NV(l,d,h){if(l=en(l),l&&(h||d===n))return _S(l);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=Ca(d),F=TS(_,x),z=SS(_,x)+1;return Is(_,F,z).join("")}function OV(l,d,h){if(l=en(l),l&&(h||d===n))return l.slice(0,AS(l)+1);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=SS(_,Ca(d))+1;return Is(_,0,x).join("")}function DV(l,d,h){if(l=en(l),l&&(h||d===n))return l.replace(Or,"");if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=TS(_,Ca(d));return Is(_,x).join("")}function LV(l,d){var h=P,_=Q;if(Rn(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?Ci(d.omission):_}l=en(l);var F=l.length;if($u(l)){var z=Ca(l);F=z.length}if(h>=F)return l;var Z=h-zu(_);if(Z<1)return _;var ae=z?Is(z,0,Z).join(""):l.slice(0,Z);if(x===n)return ae+_;if(z&&(Z+=ae.length-Z),G5(x)){if(l.slice(Z).search(x)){var we,Ce=ae;for(x.global||(x=o5(x.source,en(Ke.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?Z:Ie)}}else if(l.indexOf(Ci(x),Z)!=Z){var Xe=ae.lastIndexOf(x);Xe>-1&&(ae=ae.slice(0,Xe))}return ae+_}function MV(l){return l=en(l),l&&Rt.test(l)?l.replace(rt,c$):l}var FV=Ku(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),q5=fw("toUpperCase");function dA(l,d,h){return l=en(l),d=h?n:d,d===n?a$(l)?f$(l):XU(l):l.match(d)||[]}var pA=xt(function(l,d){try{return wi(l,n,d)}catch(h){return j5(h)?h:new _t(h)}}),PV=Fo(function(l,d){return Xi(d,function(h){h=ao(h),Lo(l,h,z5(l[h],l))}),l});function BV(l){var d=l==null?0:l.length,h=mt();return l=d?An(l,function(_){if(typeof _[1]!="function")throw new Zi(o);return[h(_[0]),_[1]]}):[],xt(function(_){for(var x=-1;++xW)return[];var h=pe,_=Mr(l,pe);d=mt(d),l-=pe;for(var x=r5(_,d);++h0||d<0)?new Mt(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Mt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Mt.prototype.toArray=function(){return this.take(pe)},ro(Mt.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var z=this.__wrapped__,Z=_?[1]:arguments,ae=z instanceof Mt,we=Z[0],Ce=ae||Tt(z),Ie=function(Nt){var Bt=x.apply(M,Ss([Nt],Z));return _&&Xe?Bt[0]:Bt};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Xe=this.__chain__,st=!!this.__actions__.length,bt=F&&!Xe,wt=ae&&!st;if(!F&&Ce){z=wt?z:new Mt(this);var yt=l.apply(z,Z);return yt.__actions__.push({func:Jf,args:[Ie],thisArg:n}),new Qi(yt,Xe)}return bt&&wt?l.apply(this,Z):(yt=this.thru(Ie),bt?_?yt.value()[0]:yt.value():yt)})}),Xi(["pop","push","shift","sort","splice","unshift"],function(l){var d=Af[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(z){return d.apply(Tt(z)?z:[],x)})}}),ro(Mt.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";an.call(Vu,_)||(Vu[_]=[]),Vu[_].push({name:d,func:h})}}),Vu[Wf(n,E).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=M$,Mt.prototype.reverse=F$,Mt.prototype.value=P$,M.prototype.at=pj,M.prototype.chain=fj,M.prototype.commit=hj,M.prototype.next=gj,M.prototype.plant=bj,M.prototype.reverse=yj,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Ej,M.prototype.first=M.prototype.head,Oc&&(M.prototype[Oc]=mj),M},Hu=h$();Ol?((Ol.exports=Hu)._=Hu,Y2._=Hu):mr._=Hu}).call(Jl)})(sm,sm.exports);var v4e=sm.exports;const el=Vi(v4e);function uo(e,t){const n=el.cloneDeep(e);for(const r in t)typeof t[r]=="function"?el.updateWith(n,r,t[r]):el.updateWith(n,r,i=>t[r]);return n}const Rc={};Rc["Requires API Key"]="#FF0000";Rc.Local="#00bb00";Rc["Open-Source"]="#0033FF";Rc.Free="#ffff00";const _4e={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},T4e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},S4e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},w4e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},A4e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},C4e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Da=[_4e,T4e,w4e,S4e,A4e,C4e],SN={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},sE={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},lE={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},uE={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},rU={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},cE={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},iU={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},k4e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},o1=[sE,lE,uE,rU,iU,cE,k4e],wN={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},AN={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},x4e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function CN(e){return x4e[e]||e}const aU={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[wN,AN],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Da]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Da],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: 1. Obtain an API key from [here](https://together.ai) 2. Paste below -3. Select a model preset`,tags:["Requires API Key","Open-Source"],params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your TogetherAI API key",required:!0},...Ra],packages:[ro(S9,{"dimensions[0].options":e=>qs.mapValues(e,t=>qs.assign({},t,{model:"togethercomputer/"+t.model.replace("llama2","llama-2").replace(":","-")}))}),ro(T9,{"dimensions[0].options":e=>qs.mapValues(e,t=>qs.assign({},t,{model:"togethercomputer/"+t.model.replace("codellama","CodeLlama").replace(":","-").replace("instruct","Instruct")}))}),ro(w9,{"params.model":"WizardLM/WizardCoder-15B-V1.0","params.title":"WizardCoder-15b","dimensions[0].options":{"15b":{model:"WizardLM/WizardCoder-15B-V1.0",title:"WizardCoder-15b"},"34b (Python)":{model:"WizardLM/WizardCoder-Python-34B-V1.0",title:"WizardCoder-34b-Python"}}}),ro(wP,{"params.model":"Phind/Phind-CodeLlama-34B-Python-v1"}),ro(A9,{"params.model":"mistralai/Mistral-7B-Instruct-v0.1"})].map(e=>(e.params.context_length=4096,e))},lmstudio:{title:"LM Studio",class:"GGML",description:"One of the fastest ways to get started with local models on Mac or Windows",longDescription:`LMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started: +3. Select a model preset`,tags:["Requires API Key","Open-Source"],params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your TogetherAI API key",required:!0},...Da],packages:[uo(lE,{"dimensions[0].options":e=>el.mapValues(e,t=>el.assign({},t,{model:"togethercomputer/"+t.model.replace("llama2","llama-2").replace(":","-")}))}),uo(sE,{"dimensions[0].options":e=>el.mapValues(e,t=>el.assign({},t,{model:"togethercomputer/"+t.model.replace("codellama","CodeLlama").replace(":","-").replace("instruct","Instruct")}))}),uo(uE,{"params.model":"WizardLM/WizardCoder-15B-V1.0","params.title":"WizardCoder-15b","dimensions[0].options":{"15b":{model:"WizardLM/WizardCoder-15B-V1.0",title:"WizardCoder-15b"},"34b (Python)":{model:"WizardLM/WizardCoder-Python-34B-V1.0",title:"WizardCoder-34b-Python"}}}),uo(rU,{"params.model":"Phind/Phind-CodeLlama-34B-Python-v1"}),uo(cE,{"params.model":"mistralai/Mistral-7B-Instruct-v0.1"})].map(e=>(e.params.context_length=4096,e))},lmstudio:{title:"LM Studio",class:"GGML",description:"One of the fastest ways to get started with local models on Mac or Windows",longDescription:`LMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started: 1. Download from [lmstudio.ai](https://lmstudio.ai/) and open the application 2. Search for and download the desired model from the home screen of LMStudio. 3. In the left-bar, click the '<->' icon to open the Local Inference Server and press 'Start Server'. -4. Once your model is loaded and the server has started, you can begin using Continue.`,icon:"lmstudio.png",tags:["Local","Open-Source"],params:{server_url:"http://localhost:1234"},packages:Ju,collectInputFor:[...Ra]},replicate:{title:"Replicate",class:"ReplicateLLM",description:"Use the Replicate API to run open-source models",longDescription:`Replicate is a hosted service that makes it easy to run ML models. To get started with Replicate: +4. Once your model is loaded and the server has started, you can begin using Continue.`,icon:"lmstudio.png",tags:["Local","Open-Source"],params:{server_url:"http://localhost:1234"},packages:o1,collectInputFor:[...Da]},replicate:{title:"Replicate",class:"ReplicateLLM",description:"Use the Replicate API to run open-source models",longDescription:`Replicate is a hosted service that makes it easy to run ML models. To get started with Replicate: 1. Obtain an API key from [here](https://replicate.com) 2. Paste below -3. Select a model preset`,params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Replicate API key",required:!0},...Ra],icon:"replicate.png",tags:["Requires API Key","Open-Source"],packages:[...[T9,S9].map(e=>e.title==="Llama2 Chat"?ro(e,{"dimensions[0].options.34b":void 0,"dimensions[0].options.70b":{model:"meta/llama-2-70b-chat:02e509c789964a7ea8736978a43525956ef40397be9033abf9fd2badfe68c9e3",title:"Llama2-70b-Chat"}}):e).map(e=>ro(e,{"params.model":t=>mR(t),"dimensions[0].options":t=>{var r;const n={};for(const i in t)n[i]={...t[i],model:mR((r=t[i])==null?void 0:r.model)};return n}})),ro(w9,{title:"WizardCoder (15b)","params.model":"andreasjansson/wizardcoder-python-34b-v1-gguf:67eed332a5389263b8ede41be3ee7dc119fa984e2bde287814c4abed19a45e54",dimensions:void 0}),ro(AP,{dimensions:void 0,title:"SQLCoder (15b)","params.model":"gregwdata/defog-sqlcoder-q8:0a9abc0d143072fd5d8920ad90b8fbaafaf16b10ffdad24bd897b5bffacfce0b"}),ro(A9,{"params.model":"a16z-infra/mistral-7b-instruct-v0.1:83b6a56e7c828e667f21fd596c338fd4f0039b46bcfa18d973e8e70e455fda70"})]},llamacpp:{title:"llama.cpp",class:"LlamaCpp",description:"If you are running the llama.cpp server from source",longDescription:"llama.cpp comes with a [built-in server](https://github.com/ggerganov/llama.cpp/tree/master/examples/server#llamacppexampleserver) that can be run from source. To do this:\n \n1. Clone the repository with `git clone https://github.com/ggerganov/llama.cpp`.\n2. `cd llama.cpp`\n3. Download the model you'd like to use and place it in the `llama.cpp/models` directory (the best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke))\n4. Run the llama.cpp server with the command below (replacing with the model you downloaded):\n\n```shell\n.\\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models/codellama-7b-instruct.Q8_0.gguf\n```\n\nAfter it's up and running, you can start using Continue.",icon:"llamacpp.png",tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra]},textgenwebui:{title:"text-generation-webui",class:"TextGenWebUI",description:"A popular open-source front-end for serving LLMs locally",longDescription:'text-generation-webui is a comprehensive, open-source language model UI and local server. You can also set it up with an [OpenAI-compatible server extension](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#an-openedai-api-openai-like), but this model provider is made to interface with the built-in server, which has a different format. To setup the text-generation-webui server, take the following steps:\n\n1. Clone the repository: `git clone https://github.com/oobabooga/text-generation-webui/tree/main`\n2. Change into the directory: `cd text-generation-webui`\n3. Run the one-click installer script for your operating system, using the --api flag:\n - Mac: `sh start_macos.sh --api`\n - Linux: `sh start_linux.sh --api`\n - Windows: `. start_windows.bat --api`\n - WSL: `. start_wsl.bat --api`\n4. Find a model to run and download its weights into the folder `text-generation-webui/models`. The best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke)\n5. Navigate to [the UI](http://127.0.0.1:7860), click the "Model" tab, and load the model you\'ve downloaded\n6. Once the model is loaded, you can start using Continue',icon:void 0,tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra]},palm:{title:"Google PaLM API",class:"GooglePaLMAPI",description:"Try out the Google PaLM API, which is currently in public preview, using an API key from Google Makersuite",longDescription:`To get started with Google Makersuite, obtain your API key from [here](https://developers.generativeai.google/products/makersuite) and paste it below. -> Note: Google's PaLM language models do not support streaming, so the response will appear all at once after a few seconds.`,icon:"google-palm.png",tags:["Requires API Key"],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your MakerSpace API key",required:!0}],packages:[{title:"chat-bison-001",description:"Google PaLM's chat-bison-001 model, fine-tuned for chatting about code",params:{model:"chat-bison-001",context_length:8e3}}]},hftgi:{title:"HuggingFace TGI",class:"HuggingFaceTGI",description:"HuggingFace Text Generation Inference is an advanced, highly-performant option for serving open-source models to multiple people",longDescription:"HuggingFace Text Generation Inference is an advanced, highly-performant option for serving open-source models to multiple people. To get started, follow the [Quick Tour](https://huggingface.co/docs/text-generation-inference/quicktour) on their website to set up the Docker container. Make sure to enter the server URL below that corresponds to the host and port you set up for the Docker container.",icon:"hf.png",tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra,{...fR,defaultValue:"http://localhost:8080"}]},ggml:{title:"Other OpenAI-compatible API",class:"GGML",description:"If you are using any other OpenAI-compatible API, for example text-gen-webui, FastChat, LocalAI, or llama-cpp-python, you can simply enter your server URL",longDescription:`If you are using any other OpenAI-compatible API, you can simply enter your server URL. If you still need to set up your model server, you can follow a guide below: +3. Select a model preset`,params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Replicate API key",required:!0},...Da],icon:"replicate.png",tags:["Requires API Key","Open-Source"],packages:[...[sE,lE].map(e=>e.title==="Llama2 Chat"?uo(e,{"dimensions[0].options.34b":void 0,"dimensions[0].options.70b":{model:"meta/llama-2-70b-chat:02e509c789964a7ea8736978a43525956ef40397be9033abf9fd2badfe68c9e3",title:"Llama2-70b-Chat"}}):e).map(e=>uo(e,{"params.model":t=>CN(t),"dimensions[0].options":t=>{var r;const n={};for(const i in t)n[i]={...t[i],model:CN((r=t[i])==null?void 0:r.model)};return n}})),uo(uE,{title:"WizardCoder (15b)","params.model":"andreasjansson/wizardcoder-python-34b-v1-gguf:67eed332a5389263b8ede41be3ee7dc119fa984e2bde287814c4abed19a45e54",dimensions:void 0}),uo(iU,{dimensions:void 0,title:"SQLCoder (15b)","params.model":"gregwdata/defog-sqlcoder-q8:0a9abc0d143072fd5d8920ad90b8fbaafaf16b10ffdad24bd897b5bffacfce0b"}),uo(cE,{"params.model":"a16z-infra/mistral-7b-instruct-v0.1:83b6a56e7c828e667f21fd596c338fd4f0039b46bcfa18d973e8e70e455fda70"})]},llamacpp:{title:"llama.cpp",class:"LlamaCpp",description:"If you are running the llama.cpp server from source",longDescription:"llama.cpp comes with a [built-in server](https://github.com/ggerganov/llama.cpp/tree/master/examples/server#llamacppexampleserver) that can be run from source. To do this:\n \n1. Clone the repository with `git clone https://github.com/ggerganov/llama.cpp`.\n2. `cd llama.cpp`\n3. Download the model you'd like to use and place it in the `llama.cpp/models` directory (the best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke))\n4. Run the llama.cpp server with the command below (replacing with the model you downloaded):\n\n```shell\n.\\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models/codellama-7b-instruct.Q8_0.gguf\n```\n\nAfter it's up and running, you can start using Continue.",icon:"llamacpp.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},textgenwebui:{title:"text-generation-webui",class:"TextGenWebUI",description:"A popular open-source front-end for serving LLMs locally",longDescription:'text-generation-webui is a comprehensive, open-source language model UI and local server. You can also set it up with an [OpenAI-compatible server extension](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#an-openedai-api-openai-like), but this model provider is made to interface with the built-in server, which has a different format. To setup the text-generation-webui server, take the following steps:\n\n1. Clone the repository: `git clone https://github.com/oobabooga/text-generation-webui/tree/main`\n2. Change into the directory: `cd text-generation-webui`\n3. Run the one-click installer script for your operating system, using the --api flag:\n - Mac: `sh start_macos.sh --api`\n - Linux: `sh start_linux.sh --api`\n - Windows: `. start_windows.bat --api`\n - WSL: `. start_wsl.bat --api`\n4. Find a model to run and download its weights into the folder `text-generation-webui/models`. The best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke)\n5. Navigate to [the UI](http://127.0.0.1:7860), click the "Model" tab, and load the model you\'ve downloaded\n6. Once the model is loaded, you can start using Continue',icon:void 0,tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},palm:{title:"Google PaLM API",class:"GooglePaLMAPI",description:"Try out the Google PaLM API, which is currently in public preview, using an API key from Google Makersuite",longDescription:`To get started with Google Makersuite, obtain your API key from [here](https://developers.generativeai.google/products/makersuite) and paste it below. +> Note: Google's PaLM language models do not support streaming, so the response will appear all at once after a few seconds.`,icon:"google-palm.png",tags:["Requires API Key"],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your MakerSpace API key",required:!0}],packages:[{title:"chat-bison-001",description:"Google PaLM's chat-bison-001 model, fine-tuned for chatting about code",params:{model:"chat-bison-001",context_length:8e3}}]},hftgi:{title:"HuggingFace TGI",class:"HuggingFaceTGI",description:"HuggingFace Text Generation Inference is an advanced, highly-performant option for serving open-source models to multiple people",longDescription:"HuggingFace Text Generation Inference is an advanced, highly-performant option for serving open-source models to multiple people. To get started, follow the [Quick Tour](https://huggingface.co/docs/text-generation-inference/quicktour) on their website to set up the Docker container. Make sure to enter the server URL below that corresponds to the host and port you set up for the Docker container.",icon:"hf.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da,{...SN,defaultValue:"http://localhost:8080"}]},ggml:{title:"Other OpenAI-compatible API",class:"GGML",description:"If you are using any other OpenAI-compatible API, for example text-gen-webui, FastChat, LocalAI, or llama-cpp-python, you can simply enter your server URL",longDescription:`If you are using any other OpenAI-compatible API, you can simply enter your server URL. If you still need to set up your model server, you can follow a guide below: - [text-gen-webui](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#setup--installation) - [LocalAI](https://localai.io/basics/getting_started/) - [llama-cpp-python](https://github.com/continuedev/ggml-server-example) -- [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)`,params:{server_url:""},collectInputFor:[{...fR,defaultValue:"http://localhost:8000"},...Ra],icon:"openai.png",tags:["Local","Open-Source"],packages:Ju},freetrial:{title:"GPT-4 limited free trial",class:"OpenAIFreeTrial",description:"New users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key",longDescription:'New users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key. If you are ready to use your own API key or have used all 250 free uses, you can enter your API key in config.py where it says `api_key=""` or select another model provider.',icon:"openai.png",tags:["Free"],packages:[hR,gR],collectInputFor:[...Ra]}},s5e=He.div` - border: 1px solid ${vt}; - border-radius: ${wt}; +- [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)`,params:{server_url:""},collectInputFor:[{...SN,defaultValue:"http://localhost:8000"},...Da],icon:"openai.png",tags:["Local","Open-Source"],packages:o1},freetrial:{title:"GPT-4 limited free trial",class:"OpenAIFreeTrial",description:"New users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key",longDescription:'New users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key. If you are ready to use your own API key or have used all 250 free uses, you can enter your API key in config.py where it says `api_key=""` or select another model provider.',icon:"openai.png",tags:["Free"],packages:[wN,AN],collectInputFor:[...Da]}},I4e=Ge.div` + border: 1px solid ${Et}; + border-radius: ${It}; position: relative; width: 100%; transition: all 0.5s; @@ -1204,50 +1180,50 @@ function print() { __p += __j.call(arguments, '') } border: 1px solid ${e.color}; background-color: ${e.color}22; cursor: pointer;`:""} -`,l5e=He.div` +`,R4e=Ge.div` display: flex; justify-content: flex-end; margin-left: auto; padding: 4px; /* width: fit-content; */ - border-top: 1px solid ${vt}; -`,u5e=He.div` + border-top: 1px solid ${Et}; +`,N4e=Ge.div` display: flex; flex-direction: column; align-items: center; margin-right: 8px; - background-color: ${vt}; + background-color: ${Et}; padding: 4px; - border-radius: ${wt}; - outline: 0.5px solid ${vt}; + border-radius: ${It}; + outline: 0.5px solid ${Et}; ${e=>e.selected&&` - background-color: ${da}; + background-color: ${ha}; color: white; `} &:hover { cursor: pointer; - outline: 1px solid ${da}; + outline: 1px solid ${ha}; } -`;function xP(e){var o,s,u,c;const t=zt(p=>p.config.vscMediaUrl),[n,r]=C.useState(((o=e.dimensions)==null?void 0:o.map(p=>Object.keys(p.options)[0]))||[]),[i,a]=C.useState(!1);return I.jsxs(s5e,{disabled:e.disabled||!1,color:da,hovered:i,children:[I.jsxs("div",{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),className:"px-2 py-1",onClick:e.disabled?void 0:p=>{p.target.closest("a")||e.onClick(p,n)},children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[t&&e.icon&&I.jsx("img",{src:`${t}/logos/${e.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h3",{children:e.title})]}),(s=e.tags)==null?void 0:s.map(p=>I.jsx("span",{style:{backgroundColor:`${Ec[p]}55`,color:"white",padding:"2px 4px",borderRadius:wt,marginRight:"4px"},children:p})),I.jsx("p",{children:e.description}),e.refUrl&&I.jsx("a",{style:{position:"absolute",right:"8px",top:"8px"},href:e.refUrl,target:"_blank",children:I.jsx(vi,{text:"Read the docs",children:I.jsx(hY,{width:"1.6em",height:"1.6em"})})})]}),((u=e.dimensions)==null?void 0:u.length)&&I.jsx(l5e,{children:(c=e.dimensions)==null?void 0:c.map((p,f)=>I.jsxs("div",{className:"flex items-center",children:[I.jsx(y9,{msg:p.description}),I.jsx("p",{className:"mx-2 text-sm my-0 py-0",children:p.name}),Object.keys(p.options).map(m=>I.jsx(u5e,{onClick:g=>{g.stopPropagation();const E=[...n];E[f]=m,r(E)},selected:n[f]===m,children:m}))]}))})]})}const c5e=He.div` +`;function oU(e){var o,s,u,c;const t=window.vscMediaUrl,[n,r]=C.useState(((o=e.dimensions)==null?void 0:o.map(p=>Object.keys(p.options)[0]))||[]),[i,a]=C.useState(!1);return I.jsxs(I4e,{disabled:e.disabled||!1,color:ha,hovered:i,children:[I.jsxs("div",{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),className:"px-2 py-1",onClick:e.disabled?void 0:p=>{p.target.closest("a")||e.onClick(p,n)},children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[t&&e.icon&&I.jsx("img",{src:`${t}/logos/${e.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h3",{children:e.title})]}),(s=e.tags)==null?void 0:s.map(p=>I.jsx("span",{style:{backgroundColor:`${Rc[p]}55`,color:"white",padding:"2px 4px",borderRadius:It,marginRight:"4px"},children:p})),I.jsx("p",{children:e.description}),e.refUrl&&I.jsx("a",{style:{position:"absolute",right:"8px",top:"8px"},href:e.refUrl,target:"_blank",children:I.jsx(zi,{text:"Read the docs",children:I.jsx(sZ,{width:"1.6em",height:"1.6em"})})})]}),((u=e.dimensions)==null?void 0:u.length)&&I.jsx(R4e,{children:(c=e.dimensions)==null?void 0:c.map((p,f)=>I.jsxs("div",{className:"flex items-center",children:[I.jsx(aE,{msg:p.description}),I.jsx("p",{className:"mx-2 text-sm my-0 py-0",children:p.name}),Object.keys(p.options).map(m=>I.jsx(N4e,{onClick:g=>{g.stopPropagation();const b=[...n];b[f]=m,r(b)},selected:n[f]===m,children:m}))]}))})]})}const O4e=Ge.div` display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-gap: 2rem; padding: 1rem; justify-items: center; align-items: center; -`;function d5e(){const e=cs();return C.useContext(Ya),us(),I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt,zIndex:2},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Select LLM Provider"})]}),I.jsx(c5e,{children:Object.entries(CP).map(([t,n])=>I.jsx(xP,{title:n.title,description:n.description,tags:n.tags,icon:n.icon,refUrl:`https://continue.dev/docs/reference/Models/${n.class.toLowerCase()}`,onClick:r=>{e(`/modelconfig/${t}`)}}))})]})}const p5e=He.div` +`;function D4e(){const e=bs();return C.useContext(to),eo(),I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht,zIndex:2},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Select LLM Provider"})]}),I.jsx(O4e,{children:Object.entries(aU).map(([t,n])=>I.jsx(oU,{title:n.title,description:n.description,tags:n.tags,icon:n.icon,refUrl:`https://continue.dev/docs/reference/Models/${n.class.toLowerCase()}`,onClick:r=>{e(`/modelconfig/${t}`)}}))})]})}const L4e=Ge.div` display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-gap: 2rem; padding: 1rem; justify-items: center; align-items: center; -`,f5e=He.div` - border: 1px solid ${vt}; - border-radius: ${wt}; +`,M4e=Ge.div` + border: 1px solid ${Et}; + border-radius: ${It}; padding: 4px 8px; display: flex; justify-content: center; @@ -1264,4 +1240,4 @@ function print() { __p += __j.call(arguments, '') } cursor: pointer; } `} -`;function h5e(){var u,c,p,f,m;const e=SP(),{modelName:t}=Whe(),[n,r]=C.useState(void 0);C.useEffect(()=>{t&&r(CP[t])},[t]);const i=C.useContext(Ya);us();const a=cs(),o=zt(g=>g.config.vscMediaUrl),s=C.useCallback(()=>{var g;return((g=n==null?void 0:n.collectInputFor)==null?void 0:g.some(E=>{if(!E.required)return!1;const b=e.watch(E.key);return typeof b>"u"||typeof b=="string"&&b===""}))||!1},[n,e]);return I.jsx(gP,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt,zIndex:2},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>a("/models"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Configure Model"})]}),I.jsxs("div",{className:"px-2",children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o&&(n==null?void 0:n.icon)&&I.jsx("img",{src:`${o}/logos/${n==null?void 0:n.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h2",{children:n==null?void 0:n.title})]}),(u=n==null?void 0:n.tags)==null?void 0:u.map(g=>I.jsx("span",{style:{backgroundColor:`${Ec[g]}55`,color:"white",padding:"2px 4px",borderRadius:wt,marginRight:"4px"},children:g})),I.jsx(pg,{className:"mt-2",source:(n==null?void 0:n.longDescription)||(n==null?void 0:n.description),maxHeight:200}),I.jsx("br",{}),(((c=n==null?void 0:n.collectInputFor)==null?void 0:c.filter(g=>g.required).length)||0)>0&&I.jsxs(I.Fragment,{children:[I.jsx("h3",{className:"mb-2",children:"Enter required parameters"}),(p=n==null?void 0:n.collectInputFor)==null?void 0:p.filter(g=>g.required).map(g=>I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(ng,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!0})})]}))]}),(((f=n==null?void 0:n.collectInputFor)==null?void 0:f.filter(g=>!g.required).length)||0)>0&&I.jsxs("details",{children:[I.jsx("summary",{className:"mb-2",children:I.jsx("b",{children:"Advanced (optional)"})}),(m=n==null?void 0:n.collectInputFor)==null?void 0:m.map(g=>g.required?null:I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(ng,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!1})})]}))]}),I.jsx("h3",{className:"mb-2",children:"Select a model preset"})]}),I.jsxs(p5e,{children:[n==null?void 0:n.packages.map(g=>I.jsx(xP,{disabled:s(),title:g.title,description:g.description,tags:g.tags,refUrl:g.refUrl,icon:g.icon||n.icon,dimensions:g.dimensions,onClick:(E,b)=>{var v;if(s())return;const T={};for(const y of n.collectInputFor||[])T[y.key]=y.inputType==="text"?e.watch(y.key):parseFloat(e.watch(y.key));i==null||i.addModelForRole("*",n.class,{...g.params,...n.params,...qs.merge({},...((v=g.dimensions)==null?void 0:v.map((y,w)=>b!=null&&b[w]?{...y.options[b[w]]}:{}))||[]),...T}),a("/")}})),I.jsx(f5e,{disabled:s(),onClick:g=>{var b;if(!n||s())return;const E={};for(const T of n.collectInputFor||[])E[T.key]=T.inputType==="text"?e.watch(T.key):parseFloat(e.watch(T.key));i==null||i.addModelForRole("*",n.class,{...(b=n.packages[0])==null?void 0:b.params,...n.params,...E}),a("/")},children:I.jsx("h3",{className:"text-center my-2",children:"Configure Model in config.py"})})]})]})})}const g5e=uge([{path:"/",element:I.jsx(pme,{}),errorElement:I.jsx(Ame,{}),children:[{path:"/index.html",element:I.jsx(qI,{})},{path:"/",element:I.jsx(qI,{})},{path:"/history",element:I.jsx(Cge,{})},{path:"/help",element:I.jsx(YI,{})},{path:"/settings",element:I.jsx(Zme,{})},{path:"/models",element:I.jsx(d5e,{})},{path:"/help",element:I.jsx(YI,{})},{path:"/modelconfig/:modelName",element:I.jsx(h5e,{})}]}]),Ya=C.createContext(void 0);function m5e(){const e=bme(!1),t=R7(),n=us();return C.useEffect(()=>{const r=i=>{switch(i.data.type){case"onLoad":n(vme(i.data.apiUrl)),n(Eme(i.data.vscMachineId)),n(_me(i.data.sessionId)),n(Tme(i.data.vscMediaUrl)),n(Sme(i.data.dataSwitchOn)),i.data.uniqueId&&(t==null||t.identify(i.data.vscMachineId)),n(yme(i.data.workspacePaths));break;case"highlightedCode":n(rfe(i.data.rangeInFile));break;case"serverStatus":n(ife(i.data.message));break}};return window.addEventListener("message",r),rl("onLoad",{}),()=>window.removeEventListener("message",r)},[]),C.useEffect(()=>{document.body.style.getPropertyValue("--vscode-editor-foreground")&&localStorage.setItem("--vscode-editor-foreground",document.body.style.getPropertyValue("--vscode-editor-foreground")),document.body.style.getPropertyValue("--vscode-editor-background")&&localStorage.setItem("--vscode-editor-background",document.body.style.getPropertyValue("--vscode-editor-background")),document.body.style.getPropertyValue("--vscode-list-hoverBackground")&&localStorage.setItem("--vscode-list-hoverBackground",document.body.style.getPropertyValue("--vscode-list-hoverBackground"))},[]),I.jsx(Ya.Provider,{value:e,children:I.jsx(ige,{router:g5e})})}const b5e=Zp({name:"chat",initialState:{messages:[],isStreaming:!1},reducers:{addMessage:(e,t)=>({...e,messages:[...e.messages,t.payload]}),setIsStreaming:(e,t)=>({...e,isStreaming:t.payload}),streamUpdate:(e,t)=>{if(e.isStreaming){let n=e.messages[e.messages.length-1];return n.role!=="assistant"?{...e,messages:[...e.messages,{role:"assistant",content:t.payload}],isStreaming:!0}:{...e,messages:[...e.messages.slice(0,e.messages.length-1),{...n,content:n.content+t.payload}],isStreaming:!0}}else return{...e,messages:[...e.messages,{role:"assistant",content:t.payload}],isStreaming:!0}},closeStream:e=>({...e,isStreaming:!1}),clearChat:e=>({...e,messages:[],isStreaming:!1})}}),E5e=b5e.reducer,v5e=rpe({reducer:{chat:E5e,config:wme,misc:afe,uiState:gpe,serverState:nfe}});const y5e=({children:e})=>{const t=zt(i=>{var a,o;return(o=(a=i==null?void 0:i.serverState)==null?void 0:a.config)==null?void 0:o.allow_anonymous_telemetry}),[n,r]=ut.useState(void 0);return C.useEffect(()=>{t?(Bd.init("phc_JS6XFROuNbhJtVCEdTSYk6gl5ArRrTNMpCcguAXlSPs",{api_host:"https://app.posthog.com",disable_session_recording:!0}),r(n)):r(void 0)},[t]),t?I.jsx(W0e,{client:n,children:e}):I.jsx(I.Fragment,{children:e})};y4.createRoot(document.getElementById("root")).render(I.jsx(ut.StrictMode,{children:I.jsx(qpe,{store:v5e,children:I.jsx(y5e,{children:I.jsx(m5e,{})})})})); +`;function F4e(){var u,c,p,f,m;const e=nU(),{modelName:t}=Bme(),[n,r]=C.useState(void 0);C.useEffect(()=>{t&&r(aU[t])},[t]);const i=C.useContext(to);eo();const a=bs(),o=window.vscMediaUrl,s=C.useCallback(()=>{var g;return((g=n==null?void 0:n.collectInputFor)==null?void 0:g.some(b=>{if(!b.required)return!1;const y=e.watch(b.key);return typeof y>"u"||typeof y=="string"&&y===""}))||!1},[n,e]);return I.jsx(KB,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht,zIndex:2},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>a("/models"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Configure Model"})]}),I.jsxs("div",{className:"px-2",children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o&&(n==null?void 0:n.icon)&&I.jsx("img",{src:`${o}/logos/${n==null?void 0:n.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h2",{children:n==null?void 0:n.title})]}),(u=n==null?void 0:n.tags)==null?void 0:u.map(g=>I.jsx("span",{style:{backgroundColor:`${Rc[g]}55`,color:"white",padding:"2px 4px",borderRadius:It,marginRight:"4px"},children:g})),I.jsx(Ug,{className:"mt-2",source:(n==null?void 0:n.longDescription)||(n==null?void 0:n.description),maxHeight:200}),I.jsx("br",{}),(((c=n==null?void 0:n.collectInputFor)==null?void 0:c.filter(g=>g.required).length)||0)>0&&I.jsxs(I.Fragment,{children:[I.jsx("h3",{className:"mb-2",children:"Enter required parameters"}),(p=n==null?void 0:n.collectInputFor)==null?void 0:p.filter(g=>g.required).map(g=>I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(Ig,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!0})})]}))]}),(((f=n==null?void 0:n.collectInputFor)==null?void 0:f.filter(g=>!g.required).length)||0)>0&&I.jsxs("details",{children:[I.jsx("summary",{className:"mb-2",children:I.jsx("b",{children:"Advanced (optional)"})}),(m=n==null?void 0:n.collectInputFor)==null?void 0:m.map(g=>g.required?null:I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(Ig,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!1})})]}))]}),I.jsx("h3",{className:"mb-2",children:"Select a model preset"})]}),I.jsxs(L4e,{children:[n==null?void 0:n.packages.map(g=>I.jsx(oU,{disabled:s(),title:g.title,description:g.description,tags:g.tags,refUrl:g.refUrl,icon:g.icon||n.icon,dimensions:g.dimensions,onClick:(b,y)=>{var E;if(s())return;const T={};for(const v of n.collectInputFor||[])T[v.key]=v.inputType==="text"?e.watch(v.key):parseFloat(e.watch(v.key));i==null||i.addModelForRole("*",n.class,{...g.params,...n.params,...el.merge({},...((E=g.dimensions)==null?void 0:E.map((v,w)=>y!=null&&y[w]?{...v.options[y[w]]}:{}))||[]),...T}),a("/")}})),I.jsx(M4e,{disabled:s(),onClick:g=>{var y;if(!n||s())return;const b={};for(const T of n.collectInputFor||[])b[T.key]=T.inputType==="text"?e.watch(T.key):parseFloat(e.watch(T.key));i==null||i.addModelForRole("*",n.class,{...(y=n.packages[0])==null?void 0:y.params,...n.params,...b}),a("/")},children:I.jsx("h3",{className:"text-center my-2",children:"Configure Model in config.py"})})]})]})})}const P4e={meilisearchUrl:void 0,slashCommands:[],selectedContextItems:[],config:{system_message:"",temperature:.5},contextProviders:[],savedContextGroups:[]},sU=pf({name:"serverState",initialState:P4e,reducers:{setSlashCommands:(e,t)=>({...e,slashCommands:t.payload}),setContextProviders:(e,t)=>({...e,contextProviders:t.payload}),setConfig:(e,t)=>({...e,config:t.payload})}}),{setContextProviders:B4e,setSlashCommands:U4e,setConfig:kN}=sU.actions,$4e=sU.reducer,X4=window,lU=pf({name:"config",initialState:{apiUrl:X4.serverUrl||"http://localhost:8000",workspacePaths:X4.workspacePaths||[],vscMachineId:X4.vscMachineId||void 0},reducers:{setWorkspacePaths:(e,t)=>({...e,workspacePaths:t.payload}),setApiUrl:(e,t)=>({...e,apiUrl:t.payload}),setVscMachineId:(e,t)=>({...e,vscMachineId:t.payload}),setSessionId:(e,t)=>({...e,sessionId:t.payload}),setDataSwitchOn:(e,t)=>({...e,dataSwitchOn:t.payload})}}),{setVscMachineId:z4e,setApiUrl:H4e,setWorkspacePaths:j4e,setSessionId:Wbe,setDataSwitchOn:qbe}=lU.actions,G4e=lU.reducer;function V4e(e,t){const n=zt(u=>u.config.apiUrl),r=zt(u=>u.sessionState.active),i=zt(u=>u.sessionState.title),a=zt(u=>u.sessionState.history),[o,s]=C.useState(!1);C.useEffect(()=>{t(Zd(!1)),qa("onLoad",{})},[]),C.useEffect(()=>{(async()=>{if(e&&!o&&!r&&i==="New Session"&&a&&a.filter(u=>!(u!=null&&u.hide)).length>=2){s(!0);const u=await e.getSessionTitle(a);t(wP(u))}})()},[r,a,i,e,o]),C.useEffect(()=>{e&&(e.onSessionUpdate(u=>{t(g0e(u))}),e.onAddContextItem(u=>{t(TP(u))}),e.onConfigUpdate(u=>{t(kN(u))}),fetch(`${n}/slash_commands`).then(async u=>{const c=await u.json();t(U4e(c))}),fetch(`${n}/context_providers`).then(async u=>{const c=await u.json();t(B4e(c))}),e.getConfig().then(u=>{t(kN(u))}))},[e]),C.useEffect(()=>{const u=c=>{switch(c.data.type){case"onLoad":window.windowId=c.data.windowId,window.serverUrl=c.data.serverUrl,window.workspacePaths=c.data.workspacePaths,window.vscMachineId=c.data.vscMachineId,window.vscMediaUrl=c.data.vscMediaUrl,t(H4e(c.data.serverUrl)),t(j4e(c.data.workspacePaths)),t(z4e(c.data.vscMachineId));break;case"highlightedCode":t(m0e({rangeInFileWithContents:c.data.rangeInFileWithContents,edit:c.data.edit}));break;case"serverStatus":t(Y0e(c.data.message));break;case"stopSession":e==null||e.stopSession();break}};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)},[e]),C.useEffect(()=>{document.body.style.getPropertyValue("--vscode-editor-foreground")&&localStorage.setItem("--vscode-editor-foreground",document.body.style.getPropertyValue("--vscode-editor-foreground")),document.body.style.getPropertyValue("--vscode-editor-background")&&localStorage.setItem("--vscode-editor-background",document.body.style.getPropertyValue("--vscode-editor-background")),document.body.style.getPropertyValue("--vscode-list-hoverBackground")&&localStorage.setItem("--vscode-list-hoverBackground",document.body.style.getPropertyValue("--vscode-list-hoverBackground"))},[])}const W4e=t2e([{path:"/",element:I.jsx(J5e,{}),errorElement:I.jsx(q3e,{}),children:[{path:"/index.html",element:I.jsx(qR,{})},{path:"/",element:I.jsx(qR,{})},{path:"/history",element:I.jsx(f2e,{})},{path:"/help",element:I.jsx(YR,{})},{path:"/settings",element:I.jsx(E4e,{})},{path:"/models",element:I.jsx(D4e,{})},{path:"/help",element:I.jsx(YR,{})},{path:"/modelconfig/:modelName",element:I.jsx(F4e,{})}]}]),to=C.createContext(void 0);function q4e(){const e=VB(!1),t=eo();return V4e(e,t),I.jsx(to.Provider,{value:e,children:I.jsx(Xme,{router:W4e})})}var $T={},zT={};zT.__esModule=!0;zT.default=X4e;function Kh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kh=function(n){return typeof n}:Kh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kh(e)}function Z4(){}var K4e={getItem:Z4,setItem:Z4,removeItem:Z4};function Y4e(e){if((typeof self>"u"?"undefined":Kh(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function X4e(e){var t="".concat(e,"Storage");return Y4e(t)?self[t]:K4e}$T.__esModule=!0;$T.default=J4e;var Z4e=Q4e(zT);function Q4e(e){return e&&e.__esModule?e:{default:e}}function J4e(e){var t=(0,Z4e.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,o){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var uU=void 0,ebe=tbe($T);function tbe(e){return e&&e.__esModule?e:{default:e}}var nbe=(0,ebe.default)("local");uU=nbe;var HT="persist:",cU="persist/FLUSH",jT="persist/REHYDRATE",dU="persist/PAUSE",pU="persist/PERSIST",fU="persist/PURGE",hU="persist/REGISTER",rbe=-1;function Yh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yh=function(n){return typeof n}:Yh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yh(e)}function xN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ibe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gbe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var mbe=5e3;function bbe(e,t){var n=e.version!==void 0?e.version:rbe;e.debug;var r=e.stateReconciler===void 0?obe:e.stateReconciler,i=e.getStoredState||ube,a=e.timeout!==void 0?e.timeout:mbe,o=null,s=!1,u=!0,c=function(f){return f._persist.rehydrated&&o&&!u&&o.update(f),f};return function(p,f){var m=p||{},g=m._persist,b=hbe(m,["_persist"]),y=b;if(f.type===pU){var T=!1,E=function(B,q){T||(f.rehydrate(e.key,B,q),T=!0)};if(a&&setTimeout(function(){!T&&E(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),u=!1,o||(o=sbe(e)),g)return Yo({},t(y,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(N){var B=e.migrate||function(q,P){return Promise.resolve(q)};B(N,n).then(function(q){E(q)},function(q){E(void 0,q)})},function(N){E(void 0,N)}),Yo({},t(y,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===fU)return s=!0,f.result(dbe(e)),Yo({},t(y,f),{_persist:g});if(f.type===cU)return f.result(o&&o.flush()),Yo({},t(y,f),{_persist:g});if(f.type===dU)u=!0;else if(f.type===jT){if(s)return Yo({},y,{_persist:Yo({},g,{rehydrated:!0})});if(f.key===e.key){var v=t(y,f),w=f.payload,A=r!==!1&&w!==void 0?r(w,p,v,e):v,R=Yo({},A,{_persist:Yo({},g,{rehydrated:!0})});return c(R)}}}if(!g)return t(p,f);var k=t(y,f);return k===y?p:c(Yo({},k,{_persist:g}))}}function RN(e){return vbe(e)||Ebe(e)||ybe()}function ybe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Ebe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function vbe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:gU,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case hU:return dE({},t,{registry:[].concat(RN(t.registry),[n.key])});case jT:var r=t.registry.indexOf(n.key),i=RN(t.registry);return i.splice(r,1),dE({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Sbe(e,t,n){var r=n||!1,i=oT(Tbe,gU,t&&t.enhancer?t.enhancer:void 0),a=function(c){i.dispatch({type:hU,key:c})},o=function(c,p,f){var m={type:jT,payload:p,err:f,key:c};e.dispatch(m),i.dispatch(m),r&&s.getState().bootstrapped&&(r(),r=!1)},s=dE({},i,{purge:function(){var c=[];return e.dispatch({type:fU,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:cU,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){e.dispatch({type:dU})},persist:function(){e.dispatch({type:pU,register:a,rehydrate:o})}});return t&&t.manualPersist||s.persist(),s}const wbe=mP({config:G4e,misc:X0e,uiState:q0e,sessionState:y0e,serverState:$4e}),Abe={key:"root",storage:uU},Cbe=bbe(Abe,wbe),mU=t0e({reducer:Cbe,middleware:e=>e({serializableCheck:!1})}),kbe=Sbe(mU);function Xh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xh=function(n){return typeof n}:Xh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xh(e)}function xbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ON(e,t){for(var n=0;n{const t=zt(i=>{var a,o;return(o=(a=i==null?void 0:i.serverState)==null?void 0:a.config)==null?void 0:o.allow_anonymous_telemetry}),[n,r]=ut.useState(void 0);return C.useEffect(()=>{t?(ep.init("phc_JS6XFROuNbhJtVCEdTSYk6gl5ArRrTNMpCcguAXlSPs",{api_host:"https://app.posthog.com",disable_session_recording:!0}),r(n)):r(void 0)},[t]),t?I.jsx(Pge,{client:n,children:e}):I.jsx(I.Fragment,{children:e})};J4.createRoot(document.getElementById("root")).render(I.jsx(ut.StrictMode,{children:I.jsx(_fe,{store:mU,children:I.jsx(bU,{loading:null,persistor:kbe,children:I.jsx(Obe,{children:I.jsx(q4e,{})})})})})); diff --git a/extensions/vscode/continue_tutorial.py b/extensions/vscode/continue_tutorial.py index 164bf3025..b9d0d2416 100644 --- a/extensions/vscode/continue_tutorial.py +++ b/extensions/vscode/continue_tutorial.py @@ -1,6 +1,12 @@ """ Welcome to Continue! +_________ _____ _____ +__ ____/______ _______ __ /____(_)_______ ____ _______ +_ / _ __ \__ __ \_ __/__ / __ __ \_ / / /_ _ \ +/ /___ / /_/ /_ / / // /_ _ / _ / / // /_/ / / __/ +\____/ \____/ /_/ /_/ \__/ /_/ /_/ /_/ \__,_/ \___/ + This is a 2 minute tutorial. It will walk you through the basic features: diff --git a/extensions/vscode/gui/assets/index.css b/extensions/vscode/gui/assets/index.css index 74dd66fa4..d7d1646df 100644 --- a/extensions/vscode/gui/assets/index.css +++ b/extensions/vscode/gui/assets/index.css @@ -1 +1 @@ -@media (prefers-color-scheme: dark){.wmde-markdown,.wmde-markdown-var{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149}}@media (prefers-color-scheme: light){.wmde-markdown,.wmde-markdown-var{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}}[data-color-mode*=dark] .wmde-markdown,[data-color-mode*=dark] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=dark],.wmde-markdown[data-color-mode*=dark],body[data-color-mode*=dark]{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149}[data-color-mode*=light] .wmde-markdown,[data-color-mode*=light] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=light],.wmde-markdown[data-color-mode*=light],body[data-color-mode*=light]{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}.wmde-markdown{-webkit-text-size-adjust:100%;font-family:-apple-system,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word;color:var(--color-fg-default);background-color:var(--color-canvas-default)}.wmde-markdown details,.wmde-markdown figcaption,.wmde-markdown figure{display:block}.wmde-markdown summary{display:list-item}.wmde-markdown [hidden]{display:none!important}.wmde-markdown a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.wmde-markdown a:active,.wmde-markdown a:hover{outline-width:0}.wmde-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wmde-markdown b,.wmde-markdown strong{font-weight:600}.wmde-markdown dfn{font-style:italic}.wmde-markdown h1{margin:.67em 0;font-weight:600;padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown mark{background-color:var(--color-attention-subtle);color:var(--color-text-primary)}.wmde-markdown small{font-size:90%}.wmde-markdown sub,.wmde-markdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.wmde-markdown sub{bottom:-.25em}.wmde-markdown sup{top:-.5em}.wmde-markdown img{display:inline-block;border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.wmde-markdown code,.wmde-markdown kbd,.wmde-markdown pre,.wmde-markdown samp{font-family:monospace,monospace;font-size:1em}.wmde-markdown figure{margin:1em 40px}.wmde-markdown hr{box-sizing:content-box;overflow:hidden;background:transparent;border:0;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default)}.wmde-markdown input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.wmde-markdown [type=button],.wmde-markdown [type=reset],.wmde-markdown [type=submit]{-webkit-appearance:button}.wmde-markdown [type=button]::-moz-focus-inner,.wmde-markdown [type=reset]::-moz-focus-inner,.wmde-markdown [type=submit]::-moz-focus-inner{border-style:none;padding:0}.wmde-markdown [type=button]:-moz-focusring,.wmde-markdown [type=reset]:-moz-focusring,.wmde-markdown [type=submit]:-moz-focusring{outline:1px dotted ButtonText}.wmde-markdown [type=checkbox],.wmde-markdown [type=radio]{box-sizing:border-box;padding:0}.wmde-markdown [type=number]::-webkit-inner-spin-button,.wmde-markdown [type=number]::-webkit-outer-spin-button{height:auto}.wmde-markdown [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.wmde-markdown [type=search]::-webkit-search-cancel-button,.wmde-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none}.wmde-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}.wmde-markdown ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.wmde-markdown a:hover{text-decoration:underline}.wmde-markdown hr:before{display:table;content:""}.wmde-markdown hr:after{display:table;clear:both;content:""}.wmde-markdown table{border-spacing:0;border-collapse:collapse;display:block;width:-moz-max-content;width:max-content;max-width:100%}.wmde-markdown td,.wmde-markdown th{padding:0}.wmde-markdown details summary{cursor:pointer}.wmde-markdown details:not([open])>*:not(summary){display:none!important}.wmde-markdown kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.wmde-markdown h1,.wmde-markdown h2,.wmde-markdown h3,.wmde-markdown h4,.wmde-markdown h5,.wmde-markdown h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.wmde-markdown h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown h3{font-weight:600;font-size:1.25em}.wmde-markdown h4{font-weight:600;font-size:1em}.wmde-markdown h5{font-weight:600;font-size:.875em}.wmde-markdown h6{font-weight:600;font-size:.85em;color:var(--color-fg-muted)}.wmde-markdown p{margin-top:0;margin-bottom:10px}.wmde-markdown blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.wmde-markdown ul,.wmde-markdown ol{margin-top:0;margin-bottom:0;padding-left:2em}.wmde-markdown ol ol,.wmde-markdown ul ol{list-style-type:lower-roman}.wmde-markdown ul ul ol,.wmde-markdown ul ol ol,.wmde-markdown ol ul ol,.wmde-markdown ol ol ol{list-style-type:lower-alpha}.wmde-markdown dd{margin-left:0}.wmde-markdown tt,.wmde-markdown code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.wmde-markdown pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.wmde-markdown .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.wmde-markdown ::-moz-placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown ::placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown input::-webkit-outer-spin-button,.wmde-markdown input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.wmde-markdown [data-catalyst]{display:block}.wmde-markdown:before{display:table;content:""}.wmde-markdown:after{display:table;clear:both;content:""}.wmde-markdown>*:first-child{margin-top:0!important}.wmde-markdown>*:last-child{margin-bottom:0!important}.wmde-markdown a:not([href]){color:inherit;text-decoration:none}.wmde-markdown .absent{color:var(--color-danger-fg)}.wmde-markdown a.anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.wmde-markdown .anchor:focus{outline:none}.wmde-markdown p,.wmde-markdown blockquote,.wmde-markdown ul,.wmde-markdown ol,.wmde-markdown dl,.wmde-markdown table,.wmde-markdown pre,.wmde-markdown details{margin-top:0;margin-bottom:16px}.wmde-markdown blockquote>:first-child{margin-top:0}.wmde-markdown blockquote>:last-child{margin-bottom:0}.wmde-markdown sup>a:before{content:"["}.wmde-markdown sup>a:after{content:"]"}.wmde-markdown h1 .octicon-link,.wmde-markdown h2 .octicon-link,.wmde-markdown h3 .octicon-link,.wmde-markdown h4 .octicon-link,.wmde-markdown h5 .octicon-link,.wmde-markdown h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.wmde-markdown h1:hover .anchor,.wmde-markdown h2:hover .anchor,.wmde-markdown h3:hover .anchor,.wmde-markdown h4:hover .anchor,.wmde-markdown h5:hover .anchor,.wmde-markdown h6:hover .anchor{text-decoration:none}.wmde-markdown h1:hover .anchor .octicon-link,.wmde-markdown h2:hover .anchor .octicon-link,.wmde-markdown h3:hover .anchor .octicon-link,.wmde-markdown h4:hover .anchor .octicon-link,.wmde-markdown h5:hover .anchor .octicon-link,.wmde-markdown h6:hover .anchor .octicon-link{visibility:visible}.wmde-markdown h1 tt,.wmde-markdown h1 code,.wmde-markdown h2 tt,.wmde-markdown h2 code,.wmde-markdown h3 tt,.wmde-markdown h3 code,.wmde-markdown h4 tt,.wmde-markdown h4 code,.wmde-markdown h5 tt,.wmde-markdown h5 code,.wmde-markdown h6 tt,.wmde-markdown h6 code{padding:0 .2em;font-size:inherit}.wmde-markdown ul.no-list,.wmde-markdown ol.no-list{padding:0;list-style-type:none}.wmde-markdown ol[type="1"]{list-style-type:decimal}.wmde-markdown ol[type=a]{list-style-type:lower-alpha}.wmde-markdown ol[type=i]{list-style-type:lower-roman}.wmde-markdown div>ol:not([type]){list-style-type:decimal}.wmde-markdown ul ul,.wmde-markdown ul ol,.wmde-markdown ol ol,.wmde-markdown ol ul{margin-top:0;margin-bottom:0}.wmde-markdown li>p{margin-top:16px}.wmde-markdown li+li{margin-top:.25em}.wmde-markdown dl{padding:0}.wmde-markdown dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.wmde-markdown dl dd{padding:0 16px;margin-bottom:16px}.wmde-markdown table th{font-weight:600}.wmde-markdown table th,.wmde-markdown table td{padding:6px 13px;border:1px solid var(--color-border-default)}.wmde-markdown table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.wmde-markdown table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.wmde-markdown table img{background-color:transparent}.wmde-markdown img[align=right]{padding-left:20px}.wmde-markdown img[align=left]{padding-right:20px}.wmde-markdown .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.wmde-markdown span.frame{display:block;overflow:hidden}.wmde-markdown span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.wmde-markdown span.frame span img{display:block;float:left}.wmde-markdown span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.wmde-markdown span.align-center{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.wmde-markdown span.align-center span img{margin:0 auto;text-align:center}.wmde-markdown span.align-right{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.wmde-markdown span.align-right span img{margin:0;text-align:right}.wmde-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.wmde-markdown span.float-left span{margin:13px 0 0}.wmde-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.wmde-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.wmde-markdown code,.wmde-markdown tt{padding:.2em .4em;margin:0;font-size:85%;background-color:var(--color-neutral-muted);border-radius:6px}.wmde-markdown code br,.wmde-markdown tt br{display:none}.wmde-markdown del code{text-decoration:inherit}.wmde-markdown pre code{font-size:100%}.wmde-markdown pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.wmde-markdown pre{font-size:85%;line-height:1.45;background-color:var(--color-canvas-subtle);border-radius:6px}.wmde-markdown pre code,.wmde-markdown pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.wmde-markdown pre>code{padding:16px;overflow:auto;display:block}.wmde-markdown .csv-data td,.wmde-markdown .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.wmde-markdown .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.wmde-markdown .csv-data tr{border-top:0}.wmde-markdown .csv-data th{font-weight:600;background:var(--color-canvas-subtle);border-top:0}.wmde-markdown .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.wmde-markdown .footnotes ol{padding-left:16px}.wmde-markdown .footnotes li{position:relative}.wmde-markdown .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.wmde-markdown .footnotes li:target{color:var(--color-fg-default)}.wmde-markdown .footnotes .data-footnote-backref g-emoji{font-family:monospace}.wmde-markdown .task-list-item{list-style-type:none}.wmde-markdown .task-list-item label{font-weight:400}.wmde-markdown .task-list-item.enabled label{cursor:pointer}.wmde-markdown .task-list-item+.wmde-markdown .task-list-item{margin-top:3px}.wmde-markdown .task-list-item .handle{display:none}.wmde-markdown .task-list-item-checkbox,.wmde-markdown .contains-task-list input[type=checkbox]{margin:0 .2em .25em -1.6em;vertical-align:middle}.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,.wmde-markdown .contains-task-list:dir(rtl) input[type=checkbox]{margin:0 -1.6em .25em .2em}.wmde-markdown ::-webkit-calendar-picker-indicator{filter:invert(50%)}.wmde-markdown pre{position:relative}.wmde-markdown pre .copied{visibility:hidden;display:flex;position:absolute;cursor:pointer;color:var(--color-fg-defaul);top:6px;right:6px;border-radius:5px;background:var(--color-border-default);padding:6px;font-size:12px;transition:all .3s}.wmde-markdown pre .copied .octicon-copy{display:block}.wmde-markdown pre .copied .octicon-check{display:none}.wmde-markdown pre:hover .copied{visibility:visible}.wmde-markdown pre:hover .copied:hover{background:var(--color-prettylights-syntax-entity-tag);color:var(--color-canvas-default)}.wmde-markdown pre:hover .copied:active,.wmde-markdown pre .copied.active{background:#2e9b33;color:var(--color-canvas-default)}.wmde-markdown pre .active .octicon-copy{display:none}.wmde-markdown pre .active .octicon-check{display:block}.highlight-line{background-color:var(--color-neutral-muted)}.code-line.line-number:before{display:inline-block;width:1rem;text-align:right;margin-right:16px;color:var(--color-fg-subtle);content:attr(line);white-space:nowrap}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--color-prettylights-syntax-comment)}.token.namespace{opacity:.7}.token.property,.token.tag,.token.selector,.token.constant,.token.symbol,.token.deleted{color:var(--color-prettylights-syntax-entity-tag)}.token.maybe-class-name{color:var(--color-prettylights-syntax-variable)}.token.property-access,.token.operator,.token.boolean,.token.number,.token.selector .token.class,.token.attr-name,.token.string,.token.char,.token.builtin{color:var(--color-prettylights-syntax-constant)}.token.deleted{color:var(--color-prettylights-syntax-markup-deleted-text)}.code-line .token.deleted{background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.token.inserted{color:var(--color-prettylights-syntax-markup-inserted-text)}.code-line .token.inserted{background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.token.variable{color:var(--color-prettylights-syntax-constant)}.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.color,.token.atrule,.token.attr-value,.token.function,.token.class-name{color:var(--color-prettylights-syntax-string)}.token.rule,.token.regex,.token.important,.token.keyword{color:var(--color-prettylights-syntax-keyword)}.token.coord{color:var(--color-prettylights-syntax-meta-diff-range)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.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}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.right-1{right:.25rem}.top-0{top:0}.top-1{top:.25rem}.z-10{z-index:10}.float-right{float:right}.m-0{margin:0}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.mx-16{margin-left:4rem;margin-right:4rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-6{margin-right:1.5rem}.mr-auto{margin-right:auto}.mt-2{margin-top:.5rem}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-2{height:.5rem}.h-5{height:1.25rem}.h-full{height:100%}.w-5{width:1.25rem}.w-full{width:100%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.border-spacing-0{--tw-border-spacing-x: 0px;--tw-border-spacing-y: 0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-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))}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.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)))}.overflow-scroll{overflow:scroll}.overflow-y-scroll{overflow-y:scroll}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.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)}.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}.duration-100{transition-duration:.1s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:root{--secondary-dark: rgb(37, 37, 38);--vsc-background: rgb(30, 30, 30);--button-color: rgb(113, 28, 59);--button-color-hover: rgba(113, 28, 59, .667);--def-border-radius: 5px;--vscode-editor-background: rgb(30, 30, 30);--vscode-editor-foreground: rgb(197, 200, 198);--vscode-textBlockQuote-background: rgba(255, 255, 255, 1)}html,body,#root{height:100%;background-color:var(--vscode-editor-background);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}body{color:var(--vscode-editor-foreground);padding:0;margin:0;height:100%}.press-start-2p{font-family:"Press Start 2P",sans-serif}a:focus{outline:none}.hover\:underline:hover{text-decoration-line:underline} +@media (prefers-color-scheme: dark){.wmde-markdown,.wmde-markdown-var{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149}}@media (prefers-color-scheme: light){.wmde-markdown,.wmde-markdown-var{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}}[data-color-mode*=dark] .wmde-markdown,[data-color-mode*=dark] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=dark],.wmde-markdown[data-color-mode*=dark],body[data-color-mode*=dark]{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149}[data-color-mode*=light] .wmde-markdown,[data-color-mode*=light] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=light],.wmde-markdown[data-color-mode*=light],body[data-color-mode*=light]{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}.wmde-markdown{-webkit-text-size-adjust:100%;font-family:-apple-system,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word;color:var(--color-fg-default);background-color:var(--color-canvas-default)}.wmde-markdown details,.wmde-markdown figcaption,.wmde-markdown figure{display:block}.wmde-markdown summary{display:list-item}.wmde-markdown [hidden]{display:none!important}.wmde-markdown a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.wmde-markdown a:active,.wmde-markdown a:hover{outline-width:0}.wmde-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wmde-markdown b,.wmde-markdown strong{font-weight:600}.wmde-markdown dfn{font-style:italic}.wmde-markdown h1{margin:.67em 0;font-weight:600;padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown mark{background-color:var(--color-attention-subtle);color:var(--color-text-primary)}.wmde-markdown small{font-size:90%}.wmde-markdown sub,.wmde-markdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.wmde-markdown sub{bottom:-.25em}.wmde-markdown sup{top:-.5em}.wmde-markdown img{display:inline-block;border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.wmde-markdown code,.wmde-markdown kbd,.wmde-markdown pre,.wmde-markdown samp{font-family:monospace,monospace;font-size:1em}.wmde-markdown figure{margin:1em 40px}.wmde-markdown hr{box-sizing:content-box;overflow:hidden;background:transparent;border:0;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default)}.wmde-markdown input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.wmde-markdown [type=button],.wmde-markdown [type=reset],.wmde-markdown [type=submit]{-webkit-appearance:button}.wmde-markdown [type=button]::-moz-focus-inner,.wmde-markdown [type=reset]::-moz-focus-inner,.wmde-markdown [type=submit]::-moz-focus-inner{border-style:none;padding:0}.wmde-markdown [type=button]:-moz-focusring,.wmde-markdown [type=reset]:-moz-focusring,.wmde-markdown [type=submit]:-moz-focusring{outline:1px dotted ButtonText}.wmde-markdown [type=checkbox],.wmde-markdown [type=radio]{box-sizing:border-box;padding:0}.wmde-markdown [type=number]::-webkit-inner-spin-button,.wmde-markdown [type=number]::-webkit-outer-spin-button{height:auto}.wmde-markdown [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.wmde-markdown [type=search]::-webkit-search-cancel-button,.wmde-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none}.wmde-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}.wmde-markdown ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.wmde-markdown a:hover{text-decoration:underline}.wmde-markdown hr:before{display:table;content:""}.wmde-markdown hr:after{display:table;clear:both;content:""}.wmde-markdown table{border-spacing:0;border-collapse:collapse;display:block;width:-moz-max-content;width:max-content;max-width:100%}.wmde-markdown td,.wmde-markdown th{padding:0}.wmde-markdown details summary{cursor:pointer}.wmde-markdown details:not([open])>*:not(summary){display:none!important}.wmde-markdown kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.wmde-markdown h1,.wmde-markdown h2,.wmde-markdown h3,.wmde-markdown h4,.wmde-markdown h5,.wmde-markdown h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.wmde-markdown h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown h3{font-weight:600;font-size:1.25em}.wmde-markdown h4{font-weight:600;font-size:1em}.wmde-markdown h5{font-weight:600;font-size:.875em}.wmde-markdown h6{font-weight:600;font-size:.85em;color:var(--color-fg-muted)}.wmde-markdown p{margin-top:0;margin-bottom:10px}.wmde-markdown blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.wmde-markdown ul,.wmde-markdown ol{margin-top:0;margin-bottom:0;padding-left:2em}.wmde-markdown ol ol,.wmde-markdown ul ol{list-style-type:lower-roman}.wmde-markdown ul ul ol,.wmde-markdown ul ol ol,.wmde-markdown ol ul ol,.wmde-markdown ol ol ol{list-style-type:lower-alpha}.wmde-markdown dd{margin-left:0}.wmde-markdown tt,.wmde-markdown code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.wmde-markdown pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.wmde-markdown .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.wmde-markdown ::-moz-placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown ::placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown input::-webkit-outer-spin-button,.wmde-markdown input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.wmde-markdown [data-catalyst]{display:block}.wmde-markdown:before{display:table;content:""}.wmde-markdown:after{display:table;clear:both;content:""}.wmde-markdown>*:first-child{margin-top:0!important}.wmde-markdown>*:last-child{margin-bottom:0!important}.wmde-markdown a:not([href]){color:inherit;text-decoration:none}.wmde-markdown .absent{color:var(--color-danger-fg)}.wmde-markdown a.anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.wmde-markdown .anchor:focus{outline:none}.wmde-markdown p,.wmde-markdown blockquote,.wmde-markdown ul,.wmde-markdown ol,.wmde-markdown dl,.wmde-markdown table,.wmde-markdown pre,.wmde-markdown details{margin-top:0;margin-bottom:16px}.wmde-markdown blockquote>:first-child{margin-top:0}.wmde-markdown blockquote>:last-child{margin-bottom:0}.wmde-markdown sup>a:before{content:"["}.wmde-markdown sup>a:after{content:"]"}.wmde-markdown h1 .octicon-link,.wmde-markdown h2 .octicon-link,.wmde-markdown h3 .octicon-link,.wmde-markdown h4 .octicon-link,.wmde-markdown h5 .octicon-link,.wmde-markdown h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.wmde-markdown h1:hover .anchor,.wmde-markdown h2:hover .anchor,.wmde-markdown h3:hover .anchor,.wmde-markdown h4:hover .anchor,.wmde-markdown h5:hover .anchor,.wmde-markdown h6:hover .anchor{text-decoration:none}.wmde-markdown h1:hover .anchor .octicon-link,.wmde-markdown h2:hover .anchor .octicon-link,.wmde-markdown h3:hover .anchor .octicon-link,.wmde-markdown h4:hover .anchor .octicon-link,.wmde-markdown h5:hover .anchor .octicon-link,.wmde-markdown h6:hover .anchor .octicon-link{visibility:visible}.wmde-markdown h1 tt,.wmde-markdown h1 code,.wmde-markdown h2 tt,.wmde-markdown h2 code,.wmde-markdown h3 tt,.wmde-markdown h3 code,.wmde-markdown h4 tt,.wmde-markdown h4 code,.wmde-markdown h5 tt,.wmde-markdown h5 code,.wmde-markdown h6 tt,.wmde-markdown h6 code{padding:0 .2em;font-size:inherit}.wmde-markdown ul.no-list,.wmde-markdown ol.no-list{padding:0;list-style-type:none}.wmde-markdown ol[type="1"]{list-style-type:decimal}.wmde-markdown ol[type=a]{list-style-type:lower-alpha}.wmde-markdown ol[type=i]{list-style-type:lower-roman}.wmde-markdown div>ol:not([type]){list-style-type:decimal}.wmde-markdown ul ul,.wmde-markdown ul ol,.wmde-markdown ol ol,.wmde-markdown ol ul{margin-top:0;margin-bottom:0}.wmde-markdown li>p{margin-top:16px}.wmde-markdown li+li{margin-top:.25em}.wmde-markdown dl{padding:0}.wmde-markdown dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.wmde-markdown dl dd{padding:0 16px;margin-bottom:16px}.wmde-markdown table th{font-weight:600}.wmde-markdown table th,.wmde-markdown table td{padding:6px 13px;border:1px solid var(--color-border-default)}.wmde-markdown table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.wmde-markdown table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.wmde-markdown table img{background-color:transparent}.wmde-markdown img[align=right]{padding-left:20px}.wmde-markdown img[align=left]{padding-right:20px}.wmde-markdown .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.wmde-markdown span.frame{display:block;overflow:hidden}.wmde-markdown span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.wmde-markdown span.frame span img{display:block;float:left}.wmde-markdown span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.wmde-markdown span.align-center{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.wmde-markdown span.align-center span img{margin:0 auto;text-align:center}.wmde-markdown span.align-right{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.wmde-markdown span.align-right span img{margin:0;text-align:right}.wmde-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.wmde-markdown span.float-left span{margin:13px 0 0}.wmde-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.wmde-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.wmde-markdown code,.wmde-markdown tt{padding:.2em .4em;margin:0;font-size:85%;background-color:var(--color-neutral-muted);border-radius:6px}.wmde-markdown code br,.wmde-markdown tt br{display:none}.wmde-markdown del code{text-decoration:inherit}.wmde-markdown pre code{font-size:100%}.wmde-markdown pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.wmde-markdown pre{font-size:85%;line-height:1.45;background-color:var(--color-canvas-subtle);border-radius:6px}.wmde-markdown pre code,.wmde-markdown pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.wmde-markdown pre>code{padding:16px;overflow:auto;display:block}.wmde-markdown .csv-data td,.wmde-markdown .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.wmde-markdown .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.wmde-markdown .csv-data tr{border-top:0}.wmde-markdown .csv-data th{font-weight:600;background:var(--color-canvas-subtle);border-top:0}.wmde-markdown .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.wmde-markdown .footnotes ol{padding-left:16px}.wmde-markdown .footnotes li{position:relative}.wmde-markdown .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.wmde-markdown .footnotes li:target{color:var(--color-fg-default)}.wmde-markdown .footnotes .data-footnote-backref g-emoji{font-family:monospace}.wmde-markdown .task-list-item{list-style-type:none}.wmde-markdown .task-list-item label{font-weight:400}.wmde-markdown .task-list-item.enabled label{cursor:pointer}.wmde-markdown .task-list-item+.wmde-markdown .task-list-item{margin-top:3px}.wmde-markdown .task-list-item .handle{display:none}.wmde-markdown .task-list-item-checkbox,.wmde-markdown .contains-task-list input[type=checkbox]{margin:0 .2em .25em -1.6em;vertical-align:middle}.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,.wmde-markdown .contains-task-list:dir(rtl) input[type=checkbox]{margin:0 -1.6em .25em .2em}.wmde-markdown ::-webkit-calendar-picker-indicator{filter:invert(50%)}.wmde-markdown pre{position:relative}.wmde-markdown pre .copied{visibility:hidden;display:flex;position:absolute;cursor:pointer;color:var(--color-fg-defaul);top:6px;right:6px;border-radius:5px;background:var(--color-border-default);padding:6px;font-size:12px;transition:all .3s}.wmde-markdown pre .copied .octicon-copy{display:block}.wmde-markdown pre .copied .octicon-check{display:none}.wmde-markdown pre:hover .copied{visibility:visible}.wmde-markdown pre:hover .copied:hover{background:var(--color-prettylights-syntax-entity-tag);color:var(--color-canvas-default)}.wmde-markdown pre:hover .copied:active,.wmde-markdown pre .copied.active{background:#2e9b33;color:var(--color-canvas-default)}.wmde-markdown pre .active .octicon-copy{display:none}.wmde-markdown pre .active .octicon-check{display:block}.highlight-line{background-color:var(--color-neutral-muted)}.code-line.line-number:before{display:inline-block;width:1rem;text-align:right;margin-right:16px;color:var(--color-fg-subtle);content:attr(line);white-space:nowrap}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--color-prettylights-syntax-comment)}.token.namespace{opacity:.7}.token.property,.token.tag,.token.selector,.token.constant,.token.symbol,.token.deleted{color:var(--color-prettylights-syntax-entity-tag)}.token.maybe-class-name{color:var(--color-prettylights-syntax-variable)}.token.property-access,.token.operator,.token.boolean,.token.number,.token.selector .token.class,.token.attr-name,.token.string,.token.char,.token.builtin{color:var(--color-prettylights-syntax-constant)}.token.deleted{color:var(--color-prettylights-syntax-markup-deleted-text)}.code-line .token.deleted{background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.token.inserted{color:var(--color-prettylights-syntax-markup-inserted-text)}.code-line .token.inserted{background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.token.variable{color:var(--color-prettylights-syntax-constant)}.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.color,.token.atrule,.token.attr-value,.token.function,.token.class-name{color:var(--color-prettylights-syntax-string)}.token.rule,.token.regex,.token.important,.token.keyword{color:var(--color-prettylights-syntax-keyword)}.token.coord{color:var(--color-prettylights-syntax-meta-diff-range)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.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}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.right-1{right:.25rem}.top-0{top:0}.top-1{top:.25rem}.z-10{z-index:10}.float-right{float:right}.m-0{margin:0}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.mx-16{margin-left:4rem;margin-right:4rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.mt-2{margin-top:.5rem}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-2{height:.5rem}.h-5{height:1.25rem}.h-full{height:100%}.w-5{width:1.25rem}.w-full{width:100%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.border-spacing-0{--tw-border-spacing-x: 0px;--tw-border-spacing-y: 0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-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))}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.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)))}.overflow-scroll{overflow:scroll}.overflow-y-scroll{overflow-y:scroll}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.opacity-100{opacity:1}.outline{outline-style:solid}.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)}.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}.duration-100{transition-duration:.1s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:root{--secondary-dark: rgb(37, 37, 38);--vsc-background: rgb(30, 30, 30);--button-color: rgb(113, 28, 59);--button-color-hover: rgba(113, 28, 59, .667);--def-border-radius: 5px;--vscode-editor-background: rgb(30, 30, 30);--vscode-editor-foreground: rgb(197, 200, 198);--vscode-textBlockQuote-background: rgba(255, 255, 255, 1)}html,body,#root{height:100%;background-color:var(--vscode-editor-background);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}body{color:var(--vscode-editor-foreground);padding:0;margin:0;height:100%}.press-start-2p{font-family:"Press Start 2P",sans-serif}a:focus{outline:none}.hover\:underline:hover{text-decoration-line:underline} diff --git a/extensions/vscode/gui/assets/index.js b/extensions/vscode/gui/assets/index.js index 6e1370660..5148d27da 100644 --- a/extensions/vscode/gui/assets/index.js +++ b/extensions/vscode/gui/assets/index.js @@ -1,4 +1,4 @@ -var OG=Object.defineProperty;var DG=(e,t,n)=>t in e?OG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ea=(e,t,n)=>(DG(e,typeof t!="symbol"?t+"":t,n),n);function LG(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var ql=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bR={exports:{}},Mg={},ER={exports:{}},Bt={};/** +var TW=Object.defineProperty;var SW=(e,t,n)=>t in e?TW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ns=(e,t,n)=>(SW(e,typeof t!="symbol"?t+"":t,n),n);function wW(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Jl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var DN={exports:{}},lm={},LN={exports:{}},Pt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var OG=Object.defineProperty;var DG=(e,t,n)=>t in e?OG(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ep=Symbol.for("react.element"),MG=Symbol.for("react.portal"),FG=Symbol.for("react.fragment"),PG=Symbol.for("react.strict_mode"),BG=Symbol.for("react.profiler"),UG=Symbol.for("react.provider"),$G=Symbol.for("react.context"),zG=Symbol.for("react.forward_ref"),HG=Symbol.for("react.suspense"),jG=Symbol.for("react.memo"),GG=Symbol.for("react.lazy"),mw=Symbol.iterator;function VG(e){return e===null||typeof e!="object"?null:(e=mw&&e[mw]||e["@@iterator"],typeof e=="function"?e:null)}var vR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yR=Object.assign,_R={};function nc(e,t,n){this.props=e,this.context=t,this.refs=_R,this.updater=n||vR}nc.prototype.isReactComponent={};nc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};nc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function TR(){}TR.prototype=nc.prototype;function C9(e,t,n){this.props=e,this.context=t,this.refs=_R,this.updater=n||vR}var x9=C9.prototype=new TR;x9.constructor=C9;yR(x9,nc.prototype);x9.isPureReactComponent=!0;var bw=Array.isArray,SR=Object.prototype.hasOwnProperty,k9={current:null},wR={key:!0,ref:!0,__self:!0,__source:!0};function AR(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)SR.call(t,r)&&!wR.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1t in e?OG(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var XG=C,ZG=Symbol.for("react.element"),QG=Symbol.for("react.fragment"),JG=Object.prototype.hasOwnProperty,eV=XG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tV={key:!0,ref:!0,__self:!0,__source:!0};function CR(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)JG.call(t,r)&&!tV.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:ZG,type:e,key:a,ref:o,props:i,_owner:eV.current}}Mg.Fragment=QG;Mg.jsx=CR;Mg.jsxs=CR;bR.exports=Mg;var I=bR.exports,y4={},xR={exports:{}},ji={},kR={exports:{}},IR={};/** + */var $W=C,zW=Symbol.for("react.element"),HW=Symbol.for("react.fragment"),jW=Object.prototype.hasOwnProperty,GW=$W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,VW={key:!0,ref:!0,__self:!0,__source:!0};function HN(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)jW.call(t,r)&&!VW.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:zW,type:e,key:a,ref:o,props:i,_owner:GW.current}}lm.Fragment=HW;lm.jsx=HN;lm.jsxs=HN;DN.exports=lm;var I=DN.exports,J4={},jN={exports:{}},Wi={},GN={exports:{}},VN={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var OG=Object.defineProperty;var DG=(e,t,n)=>t in e?OG(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(V,ce){var N=V.length;V.push(ce);e:for(;0>>1,oe=V[me];if(0>>1;mei(Te,N))Ki(xe,Te)?(V[me]=xe,V[K]=N,me=K):(V[me]=Te,V[re]=N,me=re);else if(Ki(xe,N))V[me]=xe,V[K]=N,me=K;else break e}}return ce}function i(V,ce){var N=V.sortIndex-ce.sortIndex;return N!==0?N:V.id-ce.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],c=[],p=1,f=null,m=3,g=!1,E=!1,b=!1,T=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(V){for(var ce=n(c);ce!==null;){if(ce.callback===null)r(c);else if(ce.startTime<=V)r(c),ce.sortIndex=ce.expirationTime,t(u,ce);else break;ce=n(c)}}function A(V){if(b=!1,w(V),!E)if(n(u)!==null)E=!0,fe(D);else{var ce=n(c);ce!==null&&Z(A,ce.startTime-V)}}function D(V,ce){E=!1,b&&(b=!1,v(B),B=-1),g=!0;var N=m;try{for(w(ce),f=n(u);f!==null&&(!(f.expirationTime>ce)||V&&!Q());){var me=f.callback;if(typeof me=="function"){f.callback=null,m=f.priorityLevel;var oe=me(f.expirationTime<=ce);ce=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===n(u)&&r(u),w(ce)}else r(u);f=n(u)}if(f!==null)var O=!0;else{var re=n(c);re!==null&&Z(A,re.startTime-ce),O=!1}return O}finally{f=null,m=N,g=!1}}var k=!1,R=null,B=-1,W=5,P=-1;function Q(){return!(e.unstable_now()-PV||125me?(V.sortIndex=N,t(c,V),n(u)===null&&V===n(c)&&(b?(v(B),B=-1):b=!0,Z(A,N-me))):(V.sortIndex=oe,t(u,V),E||g||(E=!0,fe(D))),V},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(V){var ce=m;return function(){var N=m;m=ce;try{return V.apply(this,arguments)}finally{m=N}}}})(IR);kR.exports=IR;var nV=kR.exports;/** + */(function(e){function t(W,se){var D=W.length;W.push(se);e:for(;0>>1,le=W[pe];if(0>>1;pei(Se,D))Xi(ke,Se)?(W[pe]=ke,W[X]=D,pe=X):(W[pe]=Se,W[ie]=D,pe=ie);else if(Xi(ke,D))W[pe]=ke,W[X]=D,pe=X;else break e}}return se}function i(W,se){var D=W.sortIndex-se.sortIndex;return D!==0?D:W.id-se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],c=[],p=1,f=null,m=3,g=!1,b=!1,y=!1,T=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(W){for(var se=n(c);se!==null;){if(se.callback===null)r(c);else if(se.startTime<=W)r(c),se.sortIndex=se.expirationTime,t(u,se);else break;se=n(c)}}function A(W){if(y=!1,w(W),!b)if(n(u)!==null)b=!0,De(R);else{var se=n(c);se!==null&&H(A,se.startTime-W)}}function R(W,se){b=!1,y&&(y=!1,E(B),B=-1),g=!0;var D=m;try{for(w(se),f=n(u);f!==null&&(!(f.expirationTime>se)||W&&!Q());){var pe=f.callback;if(typeof pe=="function"){f.callback=null,m=f.priorityLevel;var le=pe(f.expirationTime<=se);se=e.unstable_now(),typeof le=="function"?f.callback=le:f===n(u)&&r(u),w(se)}else r(u);f=n(u)}if(f!==null)var L=!0;else{var ie=n(c);ie!==null&&H(A,ie.startTime-se),L=!1}return L}finally{f=null,m=D,g=!1}}var k=!1,N=null,B=-1,q=5,P=-1;function Q(){return!(e.unstable_now()-PW||125pe?(W.sortIndex=D,t(c,W),n(u)===null&&W===n(c)&&(y?(E(B),B=-1):y=!0,H(A,D-pe))):(W.sortIndex=le,t(u,W),b||g||(b=!0,De(R))),W},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(W){var se=m;return function(){var D=m;m=se;try{return W.apply(this,arguments)}finally{m=D}}}})(VN);GN.exports=VN;var WW=GN.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var OG=Object.defineProperty;var DG=(e,t,n)=>t in e?OG(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var RR=C,Bi=nV;function Pe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_4=Object.prototype.hasOwnProperty,rV=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vw={},yw={};function iV(e){return _4.call(yw,e)?!0:_4.call(vw,e)?!1:rV.test(e)?yw[e]=!0:(vw[e]=!0,!1)}function aV(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oV(e,t,n,r){if(t===null||typeof t>"u"||aV(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ri(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Cr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Cr[e]=new ri(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Cr[t]=new ri(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Cr[e]=new ri(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Cr[e]=new ri(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Cr[e]=new ri(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Cr[e]=new ri(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Cr[e]=new ri(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Cr[e]=new ri(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Cr[e]=new ri(e,5,!1,e.toLowerCase(),null,!1,!1)});var R9=/[\-:]([a-z])/g;function N9(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(R9,N9);Cr[t]=new ri(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(R9,N9);Cr[t]=new ri(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(R9,N9);Cr[t]=new ri(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Cr[e]=new ri(e,1,!1,e.toLowerCase(),null,!1,!1)});Cr.xlinkHref=new ri("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Cr[e]=new ri(e,1,!1,e.toLowerCase(),null,!0,!0)});function O9(e,t,n,r){var i=Cr.hasOwnProperty(t)?Cr[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eb=Object.prototype.hasOwnProperty,qW=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yA={},EA={};function KW(e){return eb.call(EA,e)?!0:eb.call(yA,e)?!1:qW.test(e)?EA[e]=!0:(yA[e]=!0,!1)}function YW(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XW(e,t,n,r){if(t===null||typeof t>"u"||YW(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function oi(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ir[e]=new oi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ir[t]=new oi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ir[e]=new oi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ir[e]=new oi(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ir[e]=new oi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ir[e]=new oi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ir[e]=new oi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ir[e]=new oi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ir[e]=new oi(e,5,!1,e.toLowerCase(),null,!1,!1)});var yE=/[\-:]([a-z])/g;function EE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ir[e]=new oi(e,1,!1,e.toLowerCase(),null,!1,!1)});Ir.xlinkHref=new oi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ir[e]=new oi(e,1,!1,e.toLowerCase(),null,!0,!0)});function vE(e,t,n,r){var i=Ir.hasOwnProperty(t)?Ir[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var u=` -`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{R5=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?od(e):""}function sV(e){switch(e.tag){case 5:return od(e.type);case 16:return od("Lazy");case 13:return od("Suspense");case 19:return od("SuspenseList");case 0:case 2:case 15:return e=N5(e.type,!1),e;case 11:return e=N5(e.type.render,!1),e;case 1:return e=N5(e.type,!0),e;default:return""}}function A4(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o1:return"Fragment";case a1:return"Portal";case T4:return"Profiler";case D9:return"StrictMode";case S4:return"Suspense";case w4:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case DR:return(e.displayName||"Context")+".Consumer";case OR:return(e._context.displayName||"Context")+".Provider";case L9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M9:return t=e.displayName||null,t!==null?t:A4(e.type)||"Memo";case Ls:t=e._payload,e=e._init;try{return A4(e(t))}catch{}}return null}function lV(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return A4(t);case 8:return t===D9?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ll(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function MR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function uV(e){var t=MR(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kf(e){e._valueTracker||(e._valueTracker=uV(e))}function FR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=MR(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ch(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function C4(e,t){var n=t.checked;return Dn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Tw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ll(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function PR(e,t){t=t.checked,t!=null&&O9(e,"checked",t,!1)}function x4(e,t){PR(e,t);var n=ll(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?k4(e,t.type,n):t.hasOwnProperty("defaultValue")&&k4(e,t.type,ll(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function k4(e,t,n){(t!=="number"||Ch(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sd=Array.isArray;function I1(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Yf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cV=["Webkit","ms","Moz","O"];Object.keys(hd).forEach(function(e){cV.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hd[t]=hd[e]})});function zR(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hd.hasOwnProperty(e)&&hd[e]?(""+t).trim():t+"px"}function HR(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=zR(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var dV=Dn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function N4(e,t){if(t){if(dV[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pe(62))}}function O4(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var D4=null;function F9(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var L4=null,R1=null,N1=null;function Cw(e){if(e=_p(e)){if(typeof L4!="function")throw Error(Pe(280));var t=e.stateNode;t&&(t=$g(t),L4(e.stateNode,e.type,t))}}function jR(e){R1?N1?N1.push(e):N1=[e]:R1=e}function GR(){if(R1){var e=R1,t=N1;if(N1=R1=null,Cw(e),t)for(e=0;e>>=0,e===0?32:31-(TV(e)/SV|0)|0}var Xf=64,Zf=4194304;function ld(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=ld(s):(a&=o,a!==0&&(r=ld(a)))}else o=n&~i,o!==0?r=ld(o):a!==0&&(r=ld(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$a(t),e[t]=n}function xV(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=md),Mw=String.fromCharCode(32),Fw=!1;function cN(e,t){switch(e){case"keyup":return tW.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dN(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var s1=!1;function rW(e,t){switch(e){case"compositionend":return dN(t);case"keypress":return t.which!==32?null:(Fw=!0,Mw);case"textInput":return e=t.data,e===Mw&&Fw?null:e;default:return null}}function iW(e,t){if(s1)return e==="compositionend"||!G9&&cN(e,t)?(e=lN(),Q0=z9=Hs=null,s1=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$w(n)}}function gN(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gN(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mN(){for(var e=window,t=Ch();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ch(e.document)}return t}function V9(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fW(e){var t=mN(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gN(n.ownerDocument.documentElement,n)){if(r!==null&&V9(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=zw(n,a);var o=zw(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,l1=null,$4=null,Ed=null,z4=!1;function Hw(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;z4||l1==null||l1!==Ch(r)||(r=l1,"selectionStart"in r&&V9(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ed&&qd(Ed,r)||(Ed=r,r=Dh($4,"onSelect"),0d1||(e.current=q4[d1],q4[d1]=null,d1--)}function mn(e,t){d1++,q4[d1]=e.current,e.current=t}var ul={},zr=ml(ul),mi=ml(!1),lu=ul;function H1(e,t){var n=e.type.contextTypes;if(!n)return ul;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function bi(e){return e=e.childContextTypes,e!=null}function Mh(){Sn(mi),Sn(zr)}function Yw(e,t,n){if(zr.current!==ul)throw Error(Pe(168));mn(zr,t),mn(mi,n)}function AN(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Pe(108,lV(e)||"Unknown",i));return Dn({},n,r)}function Fh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ul,lu=zr.current,mn(zr,e),mn(mi,mi.current),!0}function Xw(e,t,n){var r=e.stateNode;if(!r)throw Error(Pe(169));n?(e=AN(e,t,lu),r.__reactInternalMemoizedMergedChildContext=e,Sn(mi),Sn(zr),mn(zr,e)):Sn(mi),mn(mi,n)}var Vo=null,zg=!1,V5=!1;function CN(e){Vo===null?Vo=[e]:Vo.push(e)}function AW(e){zg=!0,CN(e)}function bl(){if(!V5&&Vo!==null){V5=!0;var e=0,t=an;try{var n=Vo;for(an=1;e>=o,i-=o,qo=1<<32-$a(t)+i|n<B?(W=R,R=null):W=R.sibling;var P=m(v,R,w[B],A);if(P===null){R===null&&(R=W);break}e&&R&&P.alternate===null&&t(v,R),y=a(P,y,B),k===null?D=P:k.sibling=P,k=P,R=W}if(B===w.length)return n(v,R),xn&&Hl(v,B),D;if(R===null){for(;BB?(W=R,R=null):W=R.sibling;var Q=m(v,R,P.value,A);if(Q===null){R===null&&(R=W);break}e&&R&&Q.alternate===null&&t(v,R),y=a(Q,y,B),k===null?D=Q:k.sibling=Q,k=Q,R=W}if(P.done)return n(v,R),xn&&Hl(v,B),D;if(R===null){for(;!P.done;B++,P=w.next())P=f(v,P.value,A),P!==null&&(y=a(P,y,B),k===null?D=P:k.sibling=P,k=P);return xn&&Hl(v,B),D}for(R=r(v,R);!P.done;B++,P=w.next())P=g(R,v,B,P.value,A),P!==null&&(e&&P.alternate!==null&&R.delete(P.key===null?B:P.key),y=a(P,y,B),k===null?D=P:k.sibling=P,k=P);return e&&R.forEach(function(z){return t(v,z)}),xn&&Hl(v,B),D}function T(v,y,w,A){if(typeof w=="object"&&w!==null&&w.type===o1&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case qf:e:{for(var D=w.key,k=y;k!==null;){if(k.key===D){if(D=w.type,D===o1){if(k.tag===7){n(v,k.sibling),y=i(k,w.props.children),y.return=v,v=y;break e}}else if(k.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Ls&&rA(D)===k.type){n(v,k.sibling),y=i(k,w.props),y.ref=Uc(v,k,w),y.return=v,v=y;break e}n(v,k);break}else t(v,k);k=k.sibling}w.type===o1?(y=iu(w.props.children,v.mode,A,w.key),y.return=v,v=y):(A=oh(w.type,w.key,w.props,null,v.mode,A),A.ref=Uc(v,y,w),A.return=v,v=A)}return o(v);case a1:e:{for(k=w.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(v,y.sibling),y=i(y,w.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=J5(w,v.mode,A),y.return=v,v=y}return o(v);case Ls:return k=w._init,T(v,y,k(w._payload),A)}if(sd(w))return E(v,y,w,A);if(Lc(w))return b(v,y,w,A);i0(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(v,y.sibling),y=i(y,w),y.return=v,v=y):(n(v,y),y=Q5(w,v.mode,A),y.return=v,v=y),o(v)):n(v,y)}return T}var G1=LN(!0),MN=LN(!1),Tp={},go=ml(Tp),Zd=ml(Tp),Qd=ml(Tp);function Ql(e){if(e===Tp)throw Error(Pe(174));return e}function eE(e,t){switch(mn(Qd,t),mn(Zd,e),mn(go,Tp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:R4(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=R4(t,e)}Sn(go),mn(go,t)}function V1(){Sn(go),Sn(Zd),Sn(Qd)}function FN(e){Ql(Qd.current);var t=Ql(go.current),n=R4(t,e.type);t!==n&&(mn(Zd,e),mn(go,n))}function tE(e){Zd.current===e&&(Sn(go),Sn(Zd))}var Nn=ml(0);function Hh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var W5=[];function nE(){for(var e=0;en?n:4,e(!0);var r=q5.transition;q5.transition={};try{e(!1),t()}finally{an=n,q5.transition=r}}function QN(){return ga().memoizedState}function IW(e,t,n){var r=el(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},JN(e))eO(t,n);else if(n=RN(e,t,n,r),n!==null){var i=ei();za(n,e,r,i),tO(n,t,r)}}function RW(e,t,n){var r=el(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(JN(e))eO(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,ja(s,o)){var u=t.interleaved;u===null?(i.next=i,Q9(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=RN(e,t,i,r),n!==null&&(i=ei(),za(n,e,r,i),tO(n,t,r))}}function JN(e){var t=e.alternate;return e===On||t!==null&&t===On}function eO(e,t){vd=jh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tO(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,B9(e,n)}}var Gh={readContext:ha,useCallback:Lr,useContext:Lr,useEffect:Lr,useImperativeHandle:Lr,useInsertionEffect:Lr,useLayoutEffect:Lr,useMemo:Lr,useReducer:Lr,useRef:Lr,useState:Lr,useDebugValue:Lr,useDeferredValue:Lr,useTransition:Lr,useMutableSource:Lr,useSyncExternalStore:Lr,useId:Lr,unstable_isNewReconciler:!1},NW={readContext:ha,useCallback:function(e,t){return io().memoizedState=[e,t===void 0?null:t],e},useContext:ha,useEffect:aA,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nh(4194308,4,qN.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nh(4194308,4,e,t)},useInsertionEffect:function(e,t){return nh(4,2,e,t)},useMemo:function(e,t){var n=io();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=io();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=IW.bind(null,On,e),[r.memoizedState,e]},useRef:function(e){var t=io();return e={current:e},t.memoizedState=e},useState:iA,useDebugValue:sE,useDeferredValue:function(e){return io().memoizedState=e},useTransition:function(){var e=iA(!1),t=e[0];return e=kW.bind(null,e[1]),io().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=On,i=io();if(xn){if(n===void 0)throw Error(Pe(407));n=n()}else{if(n=t(),dr===null)throw Error(Pe(349));cu&30||UN(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,aA(zN.bind(null,r,a,e),[e]),r.flags|=2048,tp(9,$N.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=io(),t=dr.identifierPrefix;if(xn){var n=Ko,r=qo;n=(r&~(1<<32-$a(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jd++,0")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{n3=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ed(e):""}function ZW(e){switch(e.tag){case 5:return Ed(e.type);case 16:return Ed("Lazy");case 13:return Ed("Suspense");case 19:return Ed("SuspenseList");case 0:case 2:case 15:return e=r3(e.type,!1),e;case 11:return e=r3(e.type.render,!1),e;case 1:return e=r3(e.type,!0),e;default:return""}}function ib(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case h1:return"Fragment";case f1:return"Portal";case tb:return"Profiler";case _E:return"StrictMode";case nb:return"Suspense";case rb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case YN:return(e.displayName||"Context")+".Consumer";case KN:return(e._context.displayName||"Context")+".Provider";case TE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case SE:return t=e.displayName||null,t!==null?t:ib(e.type)||"Memo";case Hs:t=e._payload,e=e._init;try{return ib(e(t))}catch{}}return null}function QW(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ib(t);case 8:return t===_E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ZN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function JW(e){var t=ZN(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function u0(e){e._valueTracker||(e._valueTracker=JW(e))}function QN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ZN(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ab(e,t){var n=t.checked;return Ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _A(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function JN(e,t){t=t.checked,t!=null&&vE(e,"checked",t,!1)}function ob(e,t){JN(e,t);var n=hl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sb(e,t.type,n):t.hasOwnProperty("defaultValue")&&sb(e,t.type,hl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function TA(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sb(e,t,n){(t!=="number"||Jh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vd=Array.isArray;function P1(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=c0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eq=["Webkit","ms","Moz","O"];Object.keys(xd).forEach(function(e){eq.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xd[t]=xd[e]})});function rO(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xd.hasOwnProperty(e)&&xd[e]?(""+t).trim():t+"px"}function iO(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=rO(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var tq=Ln({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cb(e,t){if(t){if(tq[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pe(62))}}function db(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pb=null;function wE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fb=null,B1=null,U1=null;function AA(e){if(e=Fp(e)){if(typeof fb!="function")throw Error(Pe(280));var t=e.stateNode;t&&(t=fm(t),fb(e.stateNode,e.type,t))}}function aO(e){B1?U1?U1.push(e):U1=[e]:B1=e}function oO(){if(B1){var e=B1,t=U1;if(U1=B1=null,AA(e),t)for(e=0;e>>=0,e===0?32:31-(pq(e)/fq|0)|0}var d0=64,p0=4194304;function _d(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function rg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=_d(s):(a&=o,a!==0&&(r=_d(a)))}else o=n&~i,o!==0?r=_d(o):a!==0&&(r=_d(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Lp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ga(t),e[t]=n}function bq(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Rd),LA=String.fromCharCode(32),MA=!1;function CO(e,t){switch(e){case"keyup":return Vq.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var g1=!1;function qq(e,t){switch(e){case"compositionend":return kO(t);case"keypress":return t.which!==32?null:(MA=!0,LA);case"textInput":return e=t.data,e===LA&&MA?null:e;default:return null}}function Kq(e,t){if(g1)return e==="compositionend"||!OE&&CO(e,t)?(e=wO(),bh=IE=Xs=null,g1=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=UA(n)}}function NO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?NO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function OO(){for(var e=window,t=Jh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jh(e.document)}return t}function DE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function rK(e){var t=OO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&NO(n.ownerDocument.documentElement,n)){if(r!==null&&DE(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=$A(n,a);var o=$A(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,m1=null,Eb=null,Od=null,vb=!1;function zA(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vb||m1==null||m1!==Jh(r)||(r=m1,"selectionStart"in r&&DE(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Od&&up(Od,r)||(Od=r,r=og(Eb,"onSelect"),0E1||(e.current=Cb[E1],Cb[E1]=null,E1--)}function bn(e,t){E1++,Cb[E1]=e.current,e.current=t}var gl={},Gr=Tl(gl),Ei=Tl(!1),gu=gl;function Z1(e,t){var n=e.type.contextTypes;if(!n)return gl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vi(e){return e=e.childContextTypes,e!=null}function lg(){wn(Ei),wn(Gr)}function KA(e,t,n){if(Gr.current!==gl)throw Error(Pe(168));bn(Gr,t),bn(Ei,n)}function zO(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Pe(108,QW(e)||"Unknown",i));return Ln({},n,r)}function ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gl,gu=Gr.current,bn(Gr,e),bn(Ei,Ei.current),!0}function YA(e,t,n){var r=e.stateNode;if(!r)throw Error(Pe(169));n?(e=zO(e,t,gu),r.__reactInternalMemoizedMergedChildContext=e,wn(Ei),wn(Gr),bn(Gr,e)):wn(Ei),bn(Ei,n)}var Jo=null,hm=!1,b3=!1;function HO(e){Jo===null?Jo=[e]:Jo.push(e)}function gK(e){hm=!0,HO(e)}function Sl(){if(!b3&&Jo!==null){b3=!0;var e=0,t=on;try{var n=Jo;for(on=1;e>=o,i-=o,ts=1<<32-Ga(t)+i|n<B?(q=N,N=null):q=N.sibling;var P=m(E,N,w[B],A);if(P===null){N===null&&(N=q);break}e&&N&&P.alternate===null&&t(E,N),v=a(P,v,B),k===null?R=P:k.sibling=P,k=P,N=q}if(B===w.length)return n(E,N),xn&&Kl(E,B),R;if(N===null){for(;BB?(q=N,N=null):q=N.sibling;var Q=m(E,N,P.value,A);if(Q===null){N===null&&(N=q);break}e&&N&&Q.alternate===null&&t(E,N),v=a(Q,v,B),k===null?R=Q:k.sibling=Q,k=Q,N=q}if(P.done)return n(E,N),xn&&Kl(E,B),R;if(N===null){for(;!P.done;B++,P=w.next())P=f(E,P.value,A),P!==null&&(v=a(P,v,B),k===null?R=P:k.sibling=P,k=P);return xn&&Kl(E,B),R}for(N=r(E,N);!P.done;B++,P=w.next())P=g(N,E,B,P.value,A),P!==null&&(e&&P.alternate!==null&&N.delete(P.key===null?B:P.key),v=a(P,v,B),k===null?R=P:k.sibling=P,k=P);return e&&N.forEach(function($){return t(E,$)}),xn&&Kl(E,B),R}function T(E,v,w,A){if(typeof w=="object"&&w!==null&&w.type===h1&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case l0:e:{for(var R=w.key,k=v;k!==null;){if(k.key===R){if(R=w.type,R===h1){if(k.tag===7){n(E,k.sibling),v=i(k,w.props.children),v.return=E,E=v;break e}}else if(k.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Hs&&nC(R)===k.type){n(E,k.sibling),v=i(k,w.props),v.ref=Zc(E,k,w),v.return=E,E=v;break e}n(E,k);break}else t(E,k);k=k.sibling}w.type===h1?(v=du(w.props.children,E.mode,A,w.key),v.return=E,E=v):(A=Ah(w.type,w.key,w.props,null,E.mode,A),A.ref=Zc(E,v,w),A.return=E,E=A)}return o(E);case f1:e:{for(k=w.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(E,v.sibling),v=i(v,w.children||[]),v.return=E,E=v;break e}else{n(E,v);break}else t(E,v);v=v.sibling}v=A3(w,E.mode,A),v.return=E,E=v}return o(E);case Hs:return k=w._init,T(E,v,k(w._payload),A)}if(vd(w))return b(E,v,w,A);if(Wc(w))return y(E,v,w,A);E0(E,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(E,v.sibling),v=i(v,w),v.return=E,E=v):(n(E,v),v=w3(w,E.mode,A),v.return=E,E=v),o(E)):n(E,v)}return T}var J1=XO(!0),ZO=XO(!1),Pp={},_o=Tl(Pp),fp=Tl(Pp),hp=Tl(Pp);function iu(e){if(e===Pp)throw Error(Pe(174));return e}function HE(e,t){switch(bn(hp,t),bn(fp,e),bn(_o,Pp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ub(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ub(t,e)}wn(_o),bn(_o,t)}function ec(){wn(_o),wn(fp),wn(hp)}function QO(e){iu(hp.current);var t=iu(_o.current),n=ub(t,e.type);t!==n&&(bn(fp,e),bn(_o,n))}function jE(e){fp.current===e&&(wn(_o),wn(fp))}var On=Tl(0);function gg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var y3=[];function GE(){for(var e=0;en?n:4,e(!0);var r=E3.transition;E3.transition={};try{e(!1),t()}finally{on=n,E3.transition=r}}function hD(){return ya().memoizedState}function EK(e,t,n){var r=sl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gD(e))mD(t,n);else if(n=WO(e,t,n,r),n!==null){var i=ri();Va(n,e,r,i),bD(n,t,r)}}function vK(e,t,n){var r=sl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gD(e))mD(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ka(s,o)){var u=t.interleaved;u===null?(i.next=i,$E(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=WO(e,t,i,r),n!==null&&(i=ri(),Va(n,e,r,i),bD(n,t,r))}}function gD(e){var t=e.alternate;return e===Dn||t!==null&&t===Dn}function mD(e,t){Dd=mg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bD(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,CE(e,n)}}var bg={readContext:ba,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useMutableSource:Pr,useSyncExternalStore:Pr,useId:Pr,unstable_isNewReconciler:!1},_K={readContext:ba,useCallback:function(e,t){return co().memoizedState=[e,t===void 0?null:t],e},useContext:ba,useEffect:iC,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_h(4194308,4,uD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _h(4194308,4,e,t)},useInsertionEffect:function(e,t){return _h(4,2,e,t)},useMemo:function(e,t){var n=co();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=co();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=EK.bind(null,Dn,e),[r.memoizedState,e]},useRef:function(e){var t=co();return e={current:e},t.memoizedState=e},useState:rC,useDebugValue:YE,useDeferredValue:function(e){return co().memoizedState=e},useTransition:function(){var e=rC(!1),t=e[0];return e=yK.bind(null,e[1]),co().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Dn,i=co();if(xn){if(n===void 0)throw Error(Pe(407));n=n()}else{if(n=t(),fr===null)throw Error(Pe(349));bu&30||tD(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,iC(rD.bind(null,r,a,e),[e]),r.flags|=2048,bp(9,nD.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=co(),t=fr.identifierPrefix;if(xn){var n=ns,r=ts;n=(r&~(1<<32-Ga(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[lo]=t,e[Xd]=r,cO(e,t,!1,!1),t.stateNode=e;e:{switch(o=O4(n,r),n){case"dialog":yn("cancel",e),yn("close",e),i=r;break;case"iframe":case"object":case"embed":yn("load",e),i=r;break;case"video":case"audio":for(i=0;iq1&&(t.flags|=128,r=!0,$c(a,!1),t.lanes=4194304)}else{if(!r)if(e=Hh(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$c(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!xn)return Mr(t),null}else 2*jn()-a.renderingStartTime>q1&&n!==1073741824&&(t.flags|=128,r=!0,$c(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=jn(),t.sibling=null,n=Nn.current,mn(Nn,r?n&1|2:n&1),t):(Mr(t),null);case 22:case 23:return fE(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ni&1073741824&&(Mr(t),t.subtreeFlags&6&&(t.flags|=8192)):Mr(t),null;case 24:return null;case 25:return null}throw Error(Pe(156,t.tag))}function UW(e,t){switch(q9(t),t.tag){case 1:return bi(t.type)&&Mh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return V1(),Sn(mi),Sn(zr),nE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tE(t),null;case 13:if(Sn(Nn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pe(340));j1()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Sn(Nn),null;case 4:return V1(),null;case 10:return Z9(t.type._context),null;case 22:case 23:return fE(),null;case 24:return null;default:return null}}var o0=!1,Br=!1,$W=typeof WeakSet=="function"?WeakSet:Set,nt=null;function g1(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pn(e,t,r)}else n.current=null}function ab(e,t,n){try{n()}catch(r){Pn(e,t,r)}}var hA=!1;function zW(e,t){if(H4=Nh,e=mN(),V9(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,c=0,p=0,f=e,m=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++c===i&&(s=o),m===a&&++p===r&&(u=o),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(j4={focusedElem:e,selectionRange:n},Nh=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){t=nt;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var b=E.memoizedProps,T=E.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?b:Da(t.type,b),T);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pe(163))}}catch(A){Pn(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}return E=hA,hA=!1,E}function yd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&ab(t,n,a)}i=i.next}while(i!==r)}}function Gg(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ob(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function fO(e){var t=e.alternate;t!==null&&(e.alternate=null,fO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lo],delete t[Xd],delete t[W4],delete t[SW],delete t[wW])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hO(e){return e.tag===5||e.tag===3||e.tag===4}function gA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hO(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Lh));else if(r!==4&&(e=e.child,e!==null))for(sb(e,t,n),e=e.sibling;e!==null;)sb(e,t,n),e=e.sibling}function lb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lb(e,t,n),e=e.sibling;e!==null;)lb(e,t,n),e=e.sibling}var Er=null,La=!1;function ws(e,t,n){for(n=n.child;n!==null;)gO(e,t,n),n=n.sibling}function gO(e,t,n){if(ho&&typeof ho.onCommitFiberUnmount=="function")try{ho.onCommitFiberUnmount(Fg,n)}catch{}switch(n.tag){case 5:Br||g1(n,t);case 6:var r=Er,i=La;Er=null,ws(e,t,n),Er=r,La=i,Er!==null&&(La?(e=Er,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Er.removeChild(n.stateNode));break;case 18:Er!==null&&(La?(e=Er,n=n.stateNode,e.nodeType===8?G5(e.parentNode,n):e.nodeType===1&&G5(e,n),Vd(e)):G5(Er,n.stateNode));break;case 4:r=Er,i=La,Er=n.stateNode.containerInfo,La=!0,ws(e,t,n),Er=r,La=i;break;case 0:case 11:case 14:case 15:if(!Br&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&ab(n,t,o),i=i.next}while(i!==r)}ws(e,t,n);break;case 1:if(!Br&&(g1(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Pn(n,t,s)}ws(e,t,n);break;case 21:ws(e,t,n);break;case 22:n.mode&1?(Br=(r=Br)||n.memoizedState!==null,ws(e,t,n),Br=r):ws(e,t,n);break;default:ws(e,t,n)}}function mA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $W),t.forEach(function(r){var i=XW.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=jn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jW(r/1960))-r,10e?16:e,js===null)var r=!1;else{if(e=js,js=null,qh=0,qt&6)throw Error(Pe(331));var i=qt;for(qt|=4,nt=e.current;nt!==null;){var a=nt,o=a.child;if(nt.flags&16){var s=a.deletions;if(s!==null){for(var u=0;ujn()-dE?ru(e,0):cE|=n),Ei(e,t)}function SO(e,t){t===0&&(e.mode&1?(t=Zf,Zf<<=1,!(Zf&130023424)&&(Zf=4194304)):t=1);var n=ei();e=es(e,t),e!==null&&(vp(e,t,n),Ei(e,n))}function YW(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),SO(e,n)}function XW(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Pe(314))}r!==null&&r.delete(t),SO(e,n)}var wO;wO=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mi.current)hi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return hi=!1,PW(e,t,n);hi=!!(e.flags&131072)}else hi=!1,xn&&t.flags&1048576&&xN(t,Bh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rh(e,t),e=t.pendingProps;var i=H1(t,zr.current);D1(t,n),i=iE(null,t,r,e,i,n);var a=aE();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bi(r)?(a=!0,Fh(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,J9(t),i.updater=Hg,t.stateNode=i,i._reactInternals=t,Q4(t,r,e,n),t=tb(null,t,r,!0,a,n)):(t.tag=0,xn&&a&&W9(t),Xr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rh(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=QW(r),e=Da(r,e),i){case 0:t=eb(null,t,r,e,n);break e;case 1:t=dA(null,t,r,e,n);break e;case 11:t=uA(null,t,r,e,n);break e;case 14:t=cA(null,t,r,Da(r.type,e),n);break e}throw Error(Pe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),eb(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),dA(e,t,r,i,n);case 3:e:{if(sO(t),e===null)throw Error(Pe(387));r=t.pendingProps,a=t.memoizedState,i=a.element,NN(e,t),zh(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=W1(Error(Pe(423)),t),t=pA(e,t,r,n,i);break e}else if(r!==i){i=W1(Error(Pe(424)),t),t=pA(e,t,r,n,i);break e}else for(Di=Zs(t.stateNode.containerInfo.firstChild),Li=t,xn=!0,Fa=null,n=MN(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(j1(),r===i){t=ts(e,t,n);break e}Xr(e,t,r,n)}t=t.child}return t;case 5:return FN(t),e===null&&Y4(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,G4(r,i)?o=null:a!==null&&G4(r,a)&&(t.flags|=32),oO(e,t),Xr(e,t,o,n),t.child;case 6:return e===null&&Y4(t),null;case 13:return lO(e,t,n);case 4:return eE(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=G1(t,null,r,n):Xr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),uA(e,t,r,i,n);case 7:return Xr(e,t,t.pendingProps,n),t.child;case 8:return Xr(e,t,t.pendingProps.children,n),t.child;case 12:return Xr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,mn(Uh,r._currentValue),r._currentValue=o,a!==null)if(ja(a.value,o)){if(a.children===i.children&&!mi.current){t=ts(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(a.tag===1){u=Xo(-1,n&-n),u.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),X4(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Pe(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),X4(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Xr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,D1(t,n),i=ha(i),r=r(i),t.flags|=1,Xr(e,t,r,n),t.child;case 14:return r=t.type,i=Da(r,t.pendingProps),i=Da(r.type,i),cA(e,t,r,i,n);case 15:return iO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),rh(e,t),t.tag=1,bi(r)?(e=!0,Fh(t)):e=!1,D1(t,n),DN(t,r,i),Q4(t,r,i,n),tb(null,t,r,!0,e,n);case 19:return uO(e,t,n);case 22:return aO(e,t,n)}throw Error(Pe(156,t.tag))};function AO(e,t){return ZR(e,t)}function ZW(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ua(e,t,n,r){return new ZW(e,t,n,r)}function gE(e){return e=e.prototype,!(!e||!e.isReactComponent)}function QW(e){if(typeof e=="function")return gE(e)?1:0;if(e!=null){if(e=e.$$typeof,e===L9)return 11;if(e===M9)return 14}return 2}function tl(e,t){var n=e.alternate;return n===null?(n=ua(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function oh(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")gE(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case o1:return iu(n.children,i,a,t);case D9:o=8,i|=8;break;case T4:return e=ua(12,n,t,i|2),e.elementType=T4,e.lanes=a,e;case S4:return e=ua(13,n,t,i),e.elementType=S4,e.lanes=a,e;case w4:return e=ua(19,n,t,i),e.elementType=w4,e.lanes=a,e;case LR:return Wg(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case OR:o=10;break e;case DR:o=9;break e;case L9:o=11;break e;case M9:o=14;break e;case Ls:o=16,r=null;break e}throw Error(Pe(130,e==null?e:typeof e,""))}return t=ua(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function iu(e,t,n,r){return e=ua(7,e,r,t),e.lanes=n,e}function Wg(e,t,n,r){return e=ua(22,e,r,t),e.elementType=LR,e.lanes=n,e.stateNode={isHidden:!1},e}function Q5(e,t,n){return e=ua(6,e,null,t),e.lanes=n,e}function J5(e,t,n){return t=ua(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function JW(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=D5(0),this.expirationTimes=D5(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=D5(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function mE(e,t,n,r,i,a,o,s,u){return e=new JW(e,t,n,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ua(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},J9(a),e}function eq(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(IO)}catch(e){console.error(e)}}IO(),xR.exports=ji;var yE=xR.exports;const _E=Hi(yE);var wA=yE;y4.createRoot=wA.createRoot,y4.hydrateRoot=wA.hydrateRoot;var RO={exports:{}},on={};/** +`+a.stack}return{value:e,source:t,stack:i,digest:null}}function T3(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ob(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wK=typeof WeakMap=="function"?WeakMap:Map;function yD(e,t,n){n=is(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Eg||(Eg=!0,Hb=r),Ob(e,t)},n}function ED(e,t,n){n=is(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ob(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Ob(e,t),typeof r!="function"&&(ol===null?ol=new Set([this]):ol.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function aC(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wK;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=BK.bind(null,e,t,n),t.then(e,e))}function oC(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function sC(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=is(-1,1),t.tag=2,al(n,t,1))),n.lanes|=1),e)}var AK=hs.ReactCurrentOwner,bi=!1;function Jr(e,t,n,r){t.child=e===null?ZO(t,null,n,r):J1(t,e.child,n,r)}function lC(e,t,n,r,i){n=n.render;var a=t.ref;return z1(t,i),r=WE(e,t,n,r,a,i),n=qE(),e!==null&&!bi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,us(e,t,i)):(xn&&n&&LE(t),t.flags|=1,Jr(e,t,r,i),t.child)}function uC(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!r9(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,vD(e,t,a,r,i)):(e=Ah(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:up,n(o,r)&&e.ref===t.ref)return us(e,t,i)}return t.flags|=1,e=ll(a,r),e.ref=t.ref,e.return=t,t.child=e}function vD(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(up(a,r)&&e.ref===t.ref)if(bi=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(bi=!0);else return t.lanes=e.lanes,us(e,t,i)}return Db(e,t,n,r,i)}function _D(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},bn(w1,Di),Di|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,bn(w1,Di),Di|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,bn(w1,Di),Di|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,bn(w1,Di),Di|=r;return Jr(e,t,i,n),t.child}function TD(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Db(e,t,n,r,i){var a=vi(n)?gu:Gr.current;return a=Z1(t,a),z1(t,i),n=WE(e,t,n,r,a,i),r=qE(),e!==null&&!bi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,us(e,t,i)):(xn&&r&&LE(t),t.flags|=1,Jr(e,t,n,i),t.child)}function cC(e,t,n,r,i){if(vi(n)){var a=!0;ug(t)}else a=!1;if(z1(t,i),t.stateNode===null)Th(e,t),YO(t,n,r),Nb(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=ba(c):(c=vi(n)?gu:Gr.current,c=Z1(t,c));var p=n.getDerivedStateFromProps,f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==c)&&tC(t,o,r,c),js=!1;var m=t.memoizedState;o.state=m,hg(t,r,o,i),u=t.memoizedState,s!==r||m!==u||Ei.current||js?(typeof p=="function"&&(Rb(t,n,p,r),u=t.memoizedState),(s=js||eC(t,n,s,r,m,u,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,qO(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Fa(t.type,s),o.props=c,f=t.pendingProps,m=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=ba(u):(u=vi(n)?gu:Gr.current,u=Z1(t,u));var g=n.getDerivedStateFromProps;(p=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||m!==u)&&tC(t,o,r,u),js=!1,m=t.memoizedState,o.state=m,hg(t,r,o,i);var b=t.memoizedState;s!==f||m!==b||Ei.current||js?(typeof g=="function"&&(Rb(t,n,g,r),b=t.memoizedState),(c=js||eC(t,n,c,r,m,b,u)||!1)?(p||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,b,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,b,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),o.props=r,o.state=b,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Lb(e,t,n,r,a,i)}function Lb(e,t,n,r,i,a){TD(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&YA(t,n,!1),us(e,t,a);r=t.stateNode,AK.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=J1(t,e.child,null,a),t.child=J1(t,null,s,a)):Jr(e,t,s,a),t.memoizedState=r.state,i&&YA(t,n,!0),t.child}function SD(e){var t=e.stateNode;t.pendingContext?KA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&KA(e,t.context,!1),HE(e,t.containerInfo)}function dC(e,t,n,r,i){return Q1(),FE(i),t.flags|=256,Jr(e,t,n,r),t.child}var Mb={dehydrated:null,treeContext:null,retryLane:0};function Fb(e){return{baseLanes:e,cachePool:null,transitions:null}}function wD(e,t,n){var r=t.pendingProps,i=On.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),bn(On,i&1),e===null)return xb(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Em(o,r,0,null),e=du(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Fb(n),t.memoizedState=Mb,e):XE(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return CK(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ll(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=ll(s,a):(a=du(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Fb(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Mb,r}return a=e.child,e=a.sibling,r=ll(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function XE(e,t){return t=Em({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function v0(e,t,n,r){return r!==null&&FE(r),J1(t,e.child,null,n),e=XE(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function CK(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=T3(Error(Pe(422))),v0(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Em({mode:"visible",children:r.children},i,0,null),a=du(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&J1(t,e.child,null,o),t.child.memoizedState=Fb(o),t.memoizedState=Mb,a);if(!(t.mode&1))return v0(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(Pe(419)),r=T3(a,r,void 0),v0(e,t,o,r)}if(s=(o&e.childLanes)!==0,bi||s){if(r=fr,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,ls(e,i),Va(r,e,i,-1))}return n9(),r=T3(Error(Pe(421))),v0(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=UK.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Mi=il(i.nextSibling),Fi=t,xn=!0,$a=null,e!==null&&(la[ua++]=ts,la[ua++]=ns,la[ua++]=mu,ts=e.id,ns=e.overflow,mu=t),t=XE(t,r.children),t.flags|=4096,t)}function pC(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ib(e.return,t,n)}function S3(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function AD(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Jr(e,t,r.children,n),r=On.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pC(e,n,t);else if(e.tag===19)pC(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(bn(On,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&gg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),S3(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&gg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}S3(t,!0,n,null,a);break;case"together":S3(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Th(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function us(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yu|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Pe(153));if(t.child!==null){for(e=t.child,n=ll(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ll(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kK(e,t,n){switch(t.tag){case 3:SD(t),Q1();break;case 5:QO(t);break;case 1:vi(t.type)&&ug(t);break;case 4:HE(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;bn(pg,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(bn(On,On.current&1),t.flags|=128,null):n&t.child.childLanes?wD(e,t,n):(bn(On,On.current&1),e=us(e,t,n),e!==null?e.sibling:null);bn(On,On.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return AD(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),bn(On,On.current),r)break;return null;case 22:case 23:return t.lanes=0,_D(e,t,n)}return us(e,t,n)}var CD,Pb,kD,xD;CD=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Pb=function(){};kD=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,iu(_o.current);var a=null;switch(n){case"input":i=ab(e,i),r=ab(e,r),a=[];break;case"select":i=Ln({},i,{value:void 0}),r=Ln({},r,{value:void 0}),a=[];break;case"textarea":i=lb(e,i),r=lb(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=sg)}cb(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(np.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(u!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(a=a||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(a=a||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(np.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&_n("scroll",e),a||s===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};xD=function(e,t,n,r){n!==r&&(t.flags|=4)};function Qc(e,t){if(!xn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Br(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xK(e,t,n){var r=t.pendingProps;switch(ME(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Br(t),null;case 1:return vi(t.type)&&lg(),Br(t),null;case 3:return r=t.stateNode,ec(),wn(Ei),wn(Gr),GE(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(y0(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$a!==null&&(Vb($a),$a=null))),Pb(e,t),Br(t),null;case 5:jE(t);var i=iu(hp.current);if(n=t.type,e!==null&&t.stateNode!=null)kD(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Pe(166));return Br(t),null}if(e=iu(_o.current),y0(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[go]=t,r[pp]=a,e=(t.mode&1)!==0,n){case"dialog":_n("cancel",r),_n("close",r);break;case"iframe":case"object":case"embed":_n("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[go]=t,e[pp]=r,CD(e,t,!1,!1),t.stateNode=e;e:{switch(o=db(n,r),n){case"dialog":_n("cancel",e),_n("close",e),i=r;break;case"iframe":case"object":case"embed":_n("load",e),i=r;break;case"video":case"audio":for(i=0;inc&&(t.flags|=128,r=!0,Qc(a,!1),t.lanes=4194304)}else{if(!r)if(e=gg(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qc(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!xn)return Br(t),null}else 2*Gn()-a.renderingStartTime>nc&&n!==1073741824&&(t.flags|=128,r=!0,Qc(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Gn(),t.sibling=null,n=On.current,bn(On,r?n&1|2:n&1),t):(Br(t),null);case 22:case 23:return t9(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Di&1073741824&&(Br(t),t.subtreeFlags&6&&(t.flags|=8192)):Br(t),null;case 24:return null;case 25:return null}throw Error(Pe(156,t.tag))}function IK(e,t){switch(ME(t),t.tag){case 1:return vi(t.type)&&lg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ec(),wn(Ei),wn(Gr),GE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jE(t),null;case 13:if(wn(On),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pe(340));Q1()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wn(On),null;case 4:return ec(),null;case 10:return UE(t.type._context),null;case 22:case 23:return t9(),null;case 24:return null;default:return null}}var _0=!1,zr=!1,RK=typeof WeakSet=="function"?WeakSet:Set,tt=null;function S1(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Bn(e,t,r)}else n.current=null}function Bb(e,t,n){try{n()}catch(r){Bn(e,t,r)}}var fC=!1;function NK(e,t){if(_b=ig,e=OO(),DE(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,c=0,p=0,f=e,m=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++c===i&&(s=o),m===a&&++p===r&&(u=o),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tb={focusedElem:e,selectionRange:n},ig=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){t=tt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var y=b.memoizedProps,T=b.memoizedState,E=t.stateNode,v=E.getSnapshotBeforeUpdate(t.elementType===t.type?y:Fa(t.type,y),T);E.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pe(163))}}catch(A){Bn(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}return b=fC,fC=!1,b}function Ld(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Bb(t,n,a)}i=i.next}while(i!==r)}}function bm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ub(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ID(e){var t=e.alternate;t!==null&&(e.alternate=null,ID(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[go],delete t[pp],delete t[Ab],delete t[fK],delete t[hK])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function RD(e){return e.tag===5||e.tag===3||e.tag===4}function hC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||RD(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $b(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sg));else if(r!==4&&(e=e.child,e!==null))for($b(e,t,n),e=e.sibling;e!==null;)$b(e,t,n),e=e.sibling}function zb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(zb(e,t,n),e=e.sibling;e!==null;)zb(e,t,n),e=e.sibling}var _r=null,Pa=!1;function Os(e,t,n){for(n=n.child;n!==null;)ND(e,t,n),n=n.sibling}function ND(e,t,n){if(vo&&typeof vo.onCommitFiberUnmount=="function")try{vo.onCommitFiberUnmount(um,n)}catch{}switch(n.tag){case 5:zr||S1(n,t);case 6:var r=_r,i=Pa;_r=null,Os(e,t,n),_r=r,Pa=i,_r!==null&&(Pa?(e=_r,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_r.removeChild(n.stateNode));break;case 18:_r!==null&&(Pa?(e=_r,n=n.stateNode,e.nodeType===8?m3(e.parentNode,n):e.nodeType===1&&m3(e,n),sp(e)):m3(_r,n.stateNode));break;case 4:r=_r,i=Pa,_r=n.stateNode.containerInfo,Pa=!0,Os(e,t,n),_r=r,Pa=i;break;case 0:case 11:case 14:case 15:if(!zr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Bb(n,t,o),i=i.next}while(i!==r)}Os(e,t,n);break;case 1:if(!zr&&(S1(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Bn(n,t,s)}Os(e,t,n);break;case 21:Os(e,t,n);break;case 22:n.mode&1?(zr=(r=zr)||n.memoizedState!==null,Os(e,t,n),zr=r):Os(e,t,n);break;default:Os(e,t,n)}}function gC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new RK),t.forEach(function(r){var i=$K.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ra(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=Gn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DK(r/1960))-r,10e?16:e,Zs===null)var r=!1;else{if(e=Zs,Zs=null,vg=0,Kt&6)throw Error(Pe(331));var i=Kt;for(Kt|=4,tt=e.current;tt!==null;){var a=tt,o=a.child;if(tt.flags&16){var s=a.deletions;if(s!==null){for(var u=0;uGn()-JE?cu(e,0):QE|=n),_i(e,t)}function UD(e,t){t===0&&(e.mode&1?(t=p0,p0<<=1,!(p0&130023424)&&(p0=4194304)):t=1);var n=ri();e=ls(e,t),e!==null&&(Lp(e,t,n),_i(e,n))}function UK(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),UD(e,n)}function $K(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Pe(314))}r!==null&&r.delete(t),UD(e,n)}var $D;$D=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ei.current)bi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bi=!1,kK(e,t,n);bi=!!(e.flags&131072)}else bi=!1,xn&&t.flags&1048576&&jO(t,dg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Th(e,t),e=t.pendingProps;var i=Z1(t,Gr.current);z1(t,n),i=WE(null,t,r,e,i,n);var a=qE();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)?(a=!0,ug(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zE(t),i.updater=gm,t.stateNode=i,i._reactInternals=t,Nb(t,r,e,n),t=Lb(null,t,r,!0,a,n)):(t.tag=0,xn&&a&&LE(t),Jr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Th(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=HK(r),e=Fa(r,e),i){case 0:t=Db(null,t,r,e,n);break e;case 1:t=cC(null,t,r,e,n);break e;case 11:t=lC(null,t,r,e,n);break e;case 14:t=uC(null,t,r,Fa(r.type,e),n);break e}throw Error(Pe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),Db(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),cC(e,t,r,i,n);case 3:e:{if(SD(t),e===null)throw Error(Pe(387));r=t.pendingProps,a=t.memoizedState,i=a.element,qO(e,t),hg(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=tc(Error(Pe(423)),t),t=dC(e,t,r,n,i);break e}else if(r!==i){i=tc(Error(Pe(424)),t),t=dC(e,t,r,n,i);break e}else for(Mi=il(t.stateNode.containerInfo.firstChild),Fi=t,xn=!0,$a=null,n=ZO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Q1(),r===i){t=us(e,t,n);break e}Jr(e,t,r,n)}t=t.child}return t;case 5:return QO(t),e===null&&xb(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Sb(r,i)?o=null:a!==null&&Sb(r,a)&&(t.flags|=32),TD(e,t),Jr(e,t,o,n),t.child;case 6:return e===null&&xb(t),null;case 13:return wD(e,t,n);case 4:return HE(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=J1(t,null,r,n):Jr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),lC(e,t,r,i,n);case 7:return Jr(e,t,t.pendingProps,n),t.child;case 8:return Jr(e,t,t.pendingProps.children,n),t.child;case 12:return Jr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,bn(pg,r._currentValue),r._currentValue=o,a!==null)if(Ka(a.value,o)){if(a.children===i.children&&!Ei.current){t=us(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(a.tag===1){u=is(-1,n&-n),u.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Ib(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Pe(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ib(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Jr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,z1(t,n),i=ba(i),r=r(i),t.flags|=1,Jr(e,t,r,n),t.child;case 14:return r=t.type,i=Fa(r,t.pendingProps),i=Fa(r.type,i),uC(e,t,r,i,n);case 15:return vD(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),Th(e,t),t.tag=1,vi(r)?(e=!0,ug(t)):e=!1,z1(t,n),YO(t,r,i),Nb(t,r,i,n),Lb(null,t,r,!0,e,n);case 19:return AD(e,t,n);case 22:return _D(e,t,n)}throw Error(Pe(156,t.tag))};function zD(e,t){return fO(e,t)}function zK(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pa(e,t,n,r){return new zK(e,t,n,r)}function r9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HK(e){if(typeof e=="function")return r9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===TE)return 11;if(e===SE)return 14}return 2}function ll(e,t){var n=e.alternate;return n===null?(n=pa(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ah(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")r9(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case h1:return du(n.children,i,a,t);case _E:o=8,i|=8;break;case tb:return e=pa(12,n,t,i|2),e.elementType=tb,e.lanes=a,e;case nb:return e=pa(13,n,t,i),e.elementType=nb,e.lanes=a,e;case rb:return e=pa(19,n,t,i),e.elementType=rb,e.lanes=a,e;case XN:return Em(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case KN:o=10;break e;case YN:o=9;break e;case TE:o=11;break e;case SE:o=14;break e;case Hs:o=16,r=null;break e}throw Error(Pe(130,e==null?e:typeof e,""))}return t=pa(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function du(e,t,n,r){return e=pa(7,e,r,t),e.lanes=n,e}function Em(e,t,n,r){return e=pa(22,e,r,t),e.elementType=XN,e.lanes=n,e.stateNode={isHidden:!1},e}function w3(e,t,n){return e=pa(6,e,null,t),e.lanes=n,e}function A3(e,t,n){return t=pa(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jK(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=a3(0),this.expirationTimes=a3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=a3(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function i9(e,t,n,r,i,a,o,s,u){return e=new jK(e,t,n,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pa(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zE(a),e}function GK(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(VD)}catch(e){console.error(e)}}VD(),jN.exports=Wi;var l9=jN.exports;const u9=Vi(l9);var SC=l9;J4.createRoot=SC.createRoot,J4.hydrateRoot=SC.hydrateRoot;var WD={exports:{}},sn={};/** * @license React * react-is.production.min.js * @@ -45,34 +45,34 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var TE=Symbol.for("react.element"),SE=Symbol.for("react.portal"),Zg=Symbol.for("react.fragment"),Qg=Symbol.for("react.strict_mode"),Jg=Symbol.for("react.profiler"),e2=Symbol.for("react.provider"),t2=Symbol.for("react.context"),aq=Symbol.for("react.server_context"),n2=Symbol.for("react.forward_ref"),r2=Symbol.for("react.suspense"),i2=Symbol.for("react.suspense_list"),a2=Symbol.for("react.memo"),o2=Symbol.for("react.lazy"),oq=Symbol.for("react.offscreen"),NO;NO=Symbol.for("react.module.reference");function Ea(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case TE:switch(e=e.type,e){case Zg:case Jg:case Qg:case r2:case i2:return e;default:switch(e=e&&e.$$typeof,e){case aq:case t2:case n2:case o2:case a2:case e2:return e;default:return t}}case SE:return t}}}on.ContextConsumer=t2;on.ContextProvider=e2;on.Element=TE;on.ForwardRef=n2;on.Fragment=Zg;on.Lazy=o2;on.Memo=a2;on.Portal=SE;on.Profiler=Jg;on.StrictMode=Qg;on.Suspense=r2;on.SuspenseList=i2;on.isAsyncMode=function(){return!1};on.isConcurrentMode=function(){return!1};on.isContextConsumer=function(e){return Ea(e)===t2};on.isContextProvider=function(e){return Ea(e)===e2};on.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===TE};on.isForwardRef=function(e){return Ea(e)===n2};on.isFragment=function(e){return Ea(e)===Zg};on.isLazy=function(e){return Ea(e)===o2};on.isMemo=function(e){return Ea(e)===a2};on.isPortal=function(e){return Ea(e)===SE};on.isProfiler=function(e){return Ea(e)===Jg};on.isStrictMode=function(e){return Ea(e)===Qg};on.isSuspense=function(e){return Ea(e)===r2};on.isSuspenseList=function(e){return Ea(e)===i2};on.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zg||e===Jg||e===Qg||e===r2||e===i2||e===oq||typeof e=="object"&&e!==null&&(e.$$typeof===o2||e.$$typeof===a2||e.$$typeof===e2||e.$$typeof===t2||e.$$typeof===n2||e.$$typeof===NO||e.getModuleId!==void 0)};on.typeOf=Ea;RO.exports=on;var wE=RO.exports;const sq=Hi(wE);function lq(e){function t(oe,O,re,Te,K){for(var xe=0,ne=0,Le=0,Re=0,Xe,Ve,dt=0,ot=0,Ge,pt=Ge=Xe=0,U=0,ie=0,pe=0,ke=0,ve=re.length,Se=ve-1,Me,ze="",Ke="",jt="",ue="",ye;UXe)&&(ke=(ze=ze.replace(" ",":")).length),0Te&&(Te=(O=O.trim()).charCodeAt(0)),Te){case 38:return O.replace(v,"$1"+oe.trim());case 58:return oe.trim()+O.replace(v,"$1"+oe.trim());default:if(0<1*re&&0ne.charCodeAt(8))break;case 115:K=K.replace(ne,"-webkit-"+ne)+";"+K;break;case 207:case 102:K=K.replace(ne,"-webkit-"+(102re.charCodeAt(0)&&(re=re.trim()),me=re,re=[me],0Ze)&&(xe=(ze=ze.replace(" ",":")).length),0Se&&(Se=(L=L.trim()).charCodeAt(0)),Se){case 38:return L.replace(E,"$1"+le.trim());case 58:return le.trim()+L.replace(E,"$1"+le.trim());default:if(0<1*ie&&0te.charCodeAt(8))break;case 115:X=X.replace(te,"-webkit-"+te)+";"+X;break;case 207:case 102:X=X.replace(te,"-webkit-"+(102ie.charCodeAt(0)&&(ie=ie.trim()),pe=ie,ie=[pe],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var kq=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Sp(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=Sd&&(Sd=t+1),sh.set(e,t),Zh.set(t,e)},Nq="style["+K1+'][data-styled-version="5.3.11"]',Oq=new RegExp("^"+K1+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Dq=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;c--){var p=u[c];if(p&&p.nodeType===1&&p.hasAttribute(K1))return p}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(K1,"active"),r.setAttribute("data-styled-version","5.3.11");var o=Mq();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},Fq=function(){function e(n){var r=this.element=FO(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=m+",")}),a+=""+c+p+'{content:"'+f+`"}/*!sc*/ -`}}}return a}(this)},e}(),$q=/(a)(d)/gi,OA=function(e){return String.fromCharCode(e+(e>25?39:97))};function hb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=OA(t%52)+n;return(OA(t%52)+n).replace($q,"$1-$2")}var b1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},BO=function(e){return b1(5381,e)};function zq(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=b1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var v=r(f,"."+T,void 0,i);n.insertRules(i,T,v)}a.push(T)}}return a.join(" ")},e}(),Gq=/^\s*\/\/.*$/gm,Vq=[":","[",".","#"];function Wq(e){var t,n,r,i,a=e===void 0?nl:e,o=a.options,s=o===void 0?nl:o,u=a.plugins,c=u===void 0?Xh:u,p=new lq(s),f=[],m=function(b){function T(v){if(v)try{b(v+"}")}catch{}}return function(v,y,w,A,D,k,R,B,W,P){switch(v){case 1:if(W===0&&y.charCodeAt(0)===64)return b(y+";"),"";break;case 2:if(B===0)return y+"/*|*/";break;case 3:switch(B){case 102:case 112:return b(w[0]+y),"";default:return y+(P===0?"/*|*/":"")}case-2:y.split("/*|*/}").forEach(T)}}}(function(b){f.push(b)}),g=function(b,T,v){return T===0&&Vq.indexOf(v[n.length])!==-1||v.match(i)?b:"."+t};function E(b,T,v,y){y===void 0&&(y="&");var w=b.replace(Gq,""),A=T&&v?v+" "+T+" { "+w+" }":w;return t=y,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(v||!T?"":T,A)}return p.use([].concat(c,[function(b,T,v){b===2&&v.length&&v[0].lastIndexOf(n)>0&&(v[0]=v[0].replace(r,g))},m,function(b){if(b===-2){var T=f;return f=[],T}}])),E.hash=c.length?c.reduce(function(b,T){return T.name||Sp(15),b1(b,T.name)},5381).toString():"",E}var UO=ut.createContext();UO.Consumer;var $O=ut.createContext(),qq=($O.Consumer,new PO),gb=Wq();function Kq(){return C.useContext(UO)||qq}function Yq(){return C.useContext($O)||gb}var zO=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=gb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Sp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=gb),this.name+t.hash},e}(),Xq=/([A-Z])/,Zq=/([A-Z])/g,Qq=/^ms-/,Jq=function(e){return"-"+e.toLowerCase()};function DA(e){return Xq.test(e)?e.replace(Zq,Jq).replace(Qq,"-ms-"):e}var LA=function(e){return e==null||e===!1||e===""};function Y1(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,nK=/(^-|-$)/g;function e3(e){return e.replace(tK,"-").replace(nK,"")}var jO=function(e){return hb(BO(e)>>>0)};function c0(e){return typeof e=="string"&&!0}var mb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},rK=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function iK(e,t,n){var r=e[n];mb(t)&&mb(r)?GO(r,t):e[n]=t}function GO(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),D=w&&w+"-"+(c0(y)?y:e3(RA(y)));return WO(y,Yo({},A,{attrs:m,componentId:D}),n)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(y){this._foldedDefaultProps=r?GO({},e.defaultProps,y):y}}),Object.defineProperty(E,"toString",{value:function(){return"."+E.styledComponentId}}),i&&Cq(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),E}var bb=function(e){return function t(n,r,i){if(i===void 0&&(i=nl),!wE.isValidElementType(r))return Sp(1,String(r));var a=function(){return n(r,i,HO.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,Yo({},i,{},o))},a.attrs=function(o){return t(n,r,Yo({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(WO,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){bb[e]=bb(e)});function b2(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var yY=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Bp(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=Pd&&(Pd=t+1),Ch.set(e,t),wg.set(t,e)},_Y="style["+rc+'][data-styled-version="5.3.11"]',TY=new RegExp("^"+rc+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),SY=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;c--){var p=u[c];if(p&&p.nodeType===1&&p.hasAttribute(rc))return p}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(rc,"active"),r.setAttribute("data-styled-version","5.3.11");var o=AY();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},CY=function(){function e(n){var r=this.element=QD(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=m+",")}),a+=""+c+p+'{content:"'+f+`"}/*!sc*/ +`}}}return a}(this)},e}(),RY=/(a)(d)/gi,NC=function(e){return String.fromCharCode(e+(e>25?39:97))};function qb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=NC(t%52)+n;return(NC(t%52)+n).replace(RY,"$1-$2")}var A1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eL=function(e){return A1(5381,e)};function NY(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=A1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var E=r(f,"."+T,void 0,i);n.insertRules(i,T,E)}a.push(T)}}return a.join(" ")},e}(),LY=/^\s*\/\/.*$/gm,MY=[":","[",".","#"];function FY(e){var t,n,r,i,a=e===void 0?ul:e,o=a.options,s=o===void 0?ul:o,u=a.plugins,c=u===void 0?Sg:u,p=new QK(s),f=[],m=function(y){function T(E){if(E)try{y(E+"}")}catch{}}return function(E,v,w,A,R,k,N,B,q,P){switch(E){case 1:if(q===0&&v.charCodeAt(0)===64)return y(v+";"),"";break;case 2:if(B===0)return v+"/*|*/";break;case 3:switch(B){case 102:case 112:return y(w[0]+v),"";default:return v+(P===0?"/*|*/":"")}case-2:v.split("/*|*/}").forEach(T)}}}(function(y){f.push(y)}),g=function(y,T,E){return T===0&&MY.indexOf(E[n.length])!==-1||E.match(i)?y:"."+t};function b(y,T,E,v){v===void 0&&(v="&");var w=y.replace(LY,""),A=T&&E?E+" "+T+" { "+w+" }":w;return t=v,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(E||!T?"":T,A)}return p.use([].concat(c,[function(y,T,E){y===2&&E.length&&E[0].lastIndexOf(n)>0&&(E[0]=E[0].replace(r,g))},m,function(y){if(y===-2){var T=f;return f=[],T}}])),b.hash=c.length?c.reduce(function(y,T){return T.name||Bp(15),A1(y,T.name)},5381).toString():"",b}var tL=ut.createContext();tL.Consumer;var nL=ut.createContext(),PY=(nL.Consumer,new JD),Kb=FY();function BY(){return C.useContext(tL)||PY}function UY(){return C.useContext(nL)||Kb}var rL=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Kb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Bp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Kb),this.name+t.hash},e}(),$Y=/([A-Z])/,zY=/([A-Z])/g,HY=/^ms-/,jY=function(e){return"-"+e.toLowerCase()};function OC(e){return $Y.test(e)?e.replace(zY,jY).replace(HY,"-ms-"):e}var DC=function(e){return e==null||e===!1||e===""};function ic(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,WY=/(^-|-$)/g;function C3(e){return e.replace(VY,"-").replace(WY,"")}var aL=function(e){return qb(eL(e)>>>0)};function A0(e){return typeof e=="string"&&!0}var Yb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},qY=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function KY(e,t,n){var r=e[n];Yb(t)&&Yb(r)?oL(r,t):e[n]=t}function oL(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),R=w&&w+"-"+(A0(v)?v:C3(IC(v)));return lL(v,rs({},A,{attrs:m,componentId:R}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(v){this._foldedDefaultProps=r?oL({},e.defaultProps,v):v}}),Object.defineProperty(b,"toString",{value:function(){return"."+b.styledComponentId}}),i&&mY(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Xb=function(e){return function t(n,r,i){if(i===void 0&&(i=ul),!p9.isValidElementType(r))return Bp(1,String(r));var a=function(){return n(r,i,iL.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,rs({},i,{},o))},a.attrs=function(o){return t(n,r,rs({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(lL,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Xb[e]=Xb(e)});function Gm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r({x:e,y:e}),oK={left:"right",right:"left",bottom:"top",top:"bottom"},sK={start:"end",end:"start"};function Eb(e,t,n){return M1(e,ip(t,n))}function wp(e,t){return typeof e=="function"?e(t):e}function fu(e){return e.split("-")[0]}function Ap(e){return e.split("-")[1]}function KO(e){return e==="x"?"y":"x"}function OE(e){return e==="y"?"height":"width"}function E2(e){return["top","bottom"].includes(fu(e))?"y":"x"}function DE(e){return KO(E2(e))}function lK(e,t,n){n===void 0&&(n=!1);const r=Ap(e),i=DE(e),a=OE(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Jh(o)),[o,Jh(o)]}function uK(e){const t=Jh(e);return[vb(e),t,vb(t)]}function vb(e){return e.replace(/start|end/g,t=>sK[t])}function cK(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function dK(e,t,n,r){const i=Ap(e);let a=cK(fu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(vb)))),a}function Jh(e){return e.replace(/left|right|bottom|top/g,t=>oK[t])}function pK(e){return{top:0,right:0,bottom:0,left:0,...e}}function YO(e){return typeof e!="number"?pK(e):{top:e,right:e,bottom:e,left:e}}function eg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function PA(e,t,n){let{reference:r,floating:i}=e;const a=E2(t),o=DE(t),s=OE(o),u=fu(t),c=a==="y",p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let g;switch(u){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-i.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Ap(t)){case"start":g[o]-=m*(n&&c?-1:1);break;case"end":g[o]+=m*(n&&c?-1:1);break}return g}const fK=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:f}=PA(c,r,u),m=r,g={},E=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s}=t,{element:u,padding:c=0}=wp(e,t)||{};if(u==null)return{};const p=YO(c),f={x:n,y:r},m=DE(i),g=OE(m),E=await o.getDimensions(u),b=m==="y",T=b?"top":"left",v=b?"bottom":"right",y=b?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[m]-f[m]-a.floating[g],A=f[m]-a.reference[m],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=D?D[y]:0;(!k||!await(o.isElement==null?void 0:o.isElement(D)))&&(k=s.floating[y]||a.floating[g]);const R=w/2-A/2,B=k/2-E[g]/2-1,W=ip(p[T],B),P=ip(p[v],B),Q=W,z=k-E[g]-P,le=k/2-E[g]/2+R,he=Eb(Q,le,z),fe=Ap(i)!=null&&le!=he&&a.reference[g]/2-(leQ<=0)){var B,W;const Q=(((B=i.flip)==null?void 0:B.index)||0)+1,z=A[Q];if(z)return{data:{index:Q,overflows:R},reset:{placement:z}};let le=(W=R.filter(he=>he.overflows[0]<=0).sort((he,de)=>he.overflows[1]-de.overflows[1])[0])==null?void 0:W.placement;if(!le)switch(m){case"bestFit":{var P;const he=(P=R.map(de=>[de.placement,de.overflows.filter(fe=>fe>0).reduce((fe,Z)=>fe+Z,0)]).sort((de,fe)=>de[1]-fe[1])[0])==null?void 0:P[0];he&&(le=he);break}case"initialPlacement":le=o;break}if(r!==le)return{reset:{placement:le}}}return{}}}};async function mK(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=fu(n),s=Ap(n),u=E2(n)==="y",c=["left","top"].includes(o)?-1:1,p=a&&u?-1:1,f=wp(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:E}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof E=="number"&&(g=s==="end"?E*-1:E),u?{x:g*p,y:m*c}:{x:m*c,y:g*p}}const bK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await mK(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},EK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:T=>{let{x:v,y}=T;return{x:v,y}}},...u}=wp(e,t),c={x:n,y:r},p=await XO(t,u),f=E2(fu(i)),m=KO(f);let g=c[m],E=c[f];if(a){const T=m==="y"?"top":"left",v=m==="y"?"bottom":"right",y=g+p[T],w=g-p[v];g=Eb(y,g,w)}if(o){const T=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=E+p[T],w=E-p[v];E=Eb(y,E,w)}const b=s.fn({...t,[m]:g,[f]:E});return{...b,data:{x:b.x-n,y:b.y-r}}}}};function dl(e){return ZO(e)?(e.nodeName||"").toLowerCase():"#document"}function Mi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function El(e){var t;return(t=(ZO(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ZO(e){return e instanceof Node||e instanceof Mi(e).Node}function ns(e){return e instanceof Element||e instanceof Mi(e).Element}function vo(e){return e instanceof HTMLElement||e instanceof Mi(e).HTMLElement}function BA(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mi(e).ShadowRoot}function Cp(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function vK(e){return["table","td","th"].includes(dl(e))}function LE(e){const t=ME(),n=ma(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function yK(e){let t=X1(e);for(;vo(t)&&!v2(t);){if(LE(t))return t;t=X1(t)}return null}function ME(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function v2(e){return["html","body","#document"].includes(dl(e))}function ma(e){return Mi(e).getComputedStyle(e)}function y2(e){return ns(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function X1(e){if(dl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||BA(e)&&e.host||El(e);return BA(t)?t.host:t}function QO(e){const t=X1(e);return v2(t)?e.ownerDocument?e.ownerDocument.body:e.body:vo(t)&&Cp(t)?t:QO(t)}function JO(e,t){var n;t===void 0&&(t=[]);const r=QO(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Mi(r);return i?t.concat(a,a.visualViewport||[],Cp(r)?r:[]):t.concat(r,JO(r))}function eD(e){const t=ma(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vo(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Qh(n)!==a||Qh(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function tD(e){return ns(e)?e:e.contextElement}function F1(e){const t=tD(e);if(!vo(t))return cl(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=eD(t);let o=(a?Qh(n.width):n.width)/r,s=(a?Qh(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const _K=cl(0);function nD(e){const t=Mi(e);return!ME()||!t.visualViewport?_K:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mi(e)?!1:t}function ap(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=tD(e);let o=cl(1);t&&(r?ns(r)&&(o=F1(r)):o=F1(e));const s=TK(a,n,r)?nD(a):cl(0);let u=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,p=i.width/o.x,f=i.height/o.y;if(a){const m=Mi(a),g=r&&ns(r)?Mi(r):r;let E=m.frameElement;for(;E&&r&&g!==m;){const b=F1(E),T=E.getBoundingClientRect(),v=ma(E),y=T.left+(E.clientLeft+parseFloat(v.paddingLeft))*b.x,w=T.top+(E.clientTop+parseFloat(v.paddingTop))*b.y;u*=b.x,c*=b.y,p*=b.x,f*=b.y,u+=y,c+=w,E=Mi(E).frameElement}}return eg({width:p,height:f,x:u,y:c})}function SK(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=vo(n),a=El(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s=cl(1);const u=cl(0);if((i||!i&&r!=="fixed")&&((dl(n)!=="body"||Cp(a))&&(o=y2(n)),vo(n))){const c=ap(n);s=F1(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+u.x,y:t.y*s.y-o.scrollTop*s.y+u.y}}function wK(e){return Array.from(e.getClientRects())}function rD(e){return ap(El(e)).left+y2(e).scrollLeft}function AK(e){const t=El(e),n=y2(e),r=e.ownerDocument.body,i=M1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=M1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+rD(e);const s=-n.scrollTop;return ma(r).direction==="rtl"&&(o+=M1(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function CK(e,t){const n=Mi(e),r=El(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const c=ME();(!c||c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}function xK(e,t){const n=ap(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=vo(e)?F1(e):cl(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=i*a.x,c=r*a.y;return{width:o,height:s,x:u,y:c}}function UA(e,t,n){let r;if(t==="viewport")r=CK(e,n);else if(t==="document")r=AK(El(e));else if(ns(t))r=xK(t,n);else{const i=nD(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return eg(r)}function iD(e,t){const n=X1(e);return n===t||!ns(n)||v2(n)?!1:ma(n).position==="fixed"||iD(n,t)}function kK(e,t){const n=t.get(e);if(n)return n;let r=JO(e).filter(s=>ns(s)&&dl(s)!=="body"),i=null;const a=ma(e).position==="fixed";let o=a?X1(e):e;for(;ns(o)&&!v2(o);){const s=ma(o),u=LE(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Cp(o)&&!u&&iD(e,o))?r=r.filter(p=>p!==o):i=s,o=X1(o)}return t.set(e,r),r}function IK(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?kK(t,this._c):[].concat(n),r],s=o[0],u=o.reduce((c,p)=>{const f=UA(t,p,i);return c.top=M1(f.top,c.top),c.right=ip(f.right,c.right),c.bottom=ip(f.bottom,c.bottom),c.left=M1(f.left,c.left),c},UA(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function RK(e){return eD(e)}function NK(e,t,n){const r=vo(t),i=El(t),a=n==="fixed",o=ap(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=cl(0);if(r||!r&&!a)if((dl(t)!=="body"||Cp(i))&&(s=y2(t)),r){const c=ap(t,!0,a,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else i&&(u.x=rD(i));return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function $A(e,t){return!vo(e)||ma(e).position==="fixed"?null:t?t(e):e.offsetParent}function aD(e,t){const n=Mi(e);if(!vo(e))return n;let r=$A(e,t);for(;r&&vK(r)&&ma(r).position==="static";)r=$A(r,t);return r&&(dl(r)==="html"||dl(r)==="body"&&ma(r).position==="static"&&!LE(r))?n:r||yK(e)||n}const OK=async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||aD,a=this.getDimensions;return{reference:NK(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}};function DK(e){return ma(e).direction==="rtl"}const LK={convertOffsetParentRelativeRectToViewportRelativeRect:SK,getDocumentElement:El,getClippingRect:IK,getOffsetParent:aD,getElementRects:OK,getClientRects:wK,getDimensions:RK,getScale:F1,isElement:ns,isRTL:DK},zA=(e,t,n)=>{const r=new Map,i={platform:LK,...n},a={...i.platform,_c:r};return fK(e,t,{...i,platform:a})};/* +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i({x:e,y:e}),XY={left:"right",right:"left",bottom:"top",top:"bottom"},ZY={start:"end",end:"start"};function Zb(e,t,n){return j1(e,vp(t,n))}function Up(e,t){return typeof e=="function"?e(t):e}function vu(e){return e.split("-")[0]}function $p(e){return e.split("-")[1]}function cL(e){return e==="x"?"y":"x"}function v9(e){return e==="y"?"height":"width"}function Vm(e){return["top","bottom"].includes(vu(e))?"y":"x"}function _9(e){return cL(Vm(e))}function QY(e,t,n){n===void 0&&(n=!1);const r=$p(e),i=_9(e),a=v9(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Cg(o)),[o,Cg(o)]}function JY(e){const t=Cg(e);return[Qb(e),t,Qb(t)]}function Qb(e){return e.replace(/start|end/g,t=>ZY[t])}function eX(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function tX(e,t,n,r){const i=$p(e);let a=eX(vu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Qb)))),a}function Cg(e){return e.replace(/left|right|bottom|top/g,t=>XY[t])}function nX(e){return{top:0,right:0,bottom:0,left:0,...e}}function dL(e){return typeof e!="number"?nX(e):{top:e,right:e,bottom:e,left:e}}function kg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function FC(e,t,n){let{reference:r,floating:i}=e;const a=Vm(t),o=_9(t),s=v9(o),u=vu(t),c=a==="y",p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let g;switch(u){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-i.width,y:f};break;default:g={x:r.x,y:r.y}}switch($p(t)){case"start":g[o]-=m*(n&&c?-1:1);break;case"end":g[o]+=m*(n&&c?-1:1);break}return g}const rX=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:f}=FC(c,r,u),m=r,g={},b=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s}=t,{element:u,padding:c=0}=Up(e,t)||{};if(u==null)return{};const p=dL(c),f={x:n,y:r},m=_9(i),g=v9(m),b=await o.getDimensions(u),y=m==="y",T=y?"top":"left",E=y?"bottom":"right",v=y?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[m]-f[m]-a.floating[g],A=f[m]-a.reference[m],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=R?R[v]:0;(!k||!await(o.isElement==null?void 0:o.isElement(R)))&&(k=s.floating[v]||a.floating[g]);const N=w/2-A/2,B=k/2-b[g]/2-1,q=vp(p[T],B),P=vp(p[E],B),Q=q,$=k-b[g]-P,oe=k/2-b[g]/2+N,fe=Zb(Q,oe,$),De=$p(i)!=null&&oe!=fe&&a.reference[g]/2-(oeQ<=0)){var B,q;const Q=(((B=i.flip)==null?void 0:B.index)||0)+1,$=A[Q];if($)return{data:{index:Q,overflows:N},reset:{placement:$}};let oe=(q=N.filter(fe=>fe.overflows[0]<=0).sort((fe,ce)=>fe.overflows[1]-ce.overflows[1])[0])==null?void 0:q.placement;if(!oe)switch(m){case"bestFit":{var P;const fe=(P=N.map(ce=>[ce.placement,ce.overflows.filter(De=>De>0).reduce((De,H)=>De+H,0)]).sort((ce,De)=>ce[1]-De[1])[0])==null?void 0:P[0];fe&&(oe=fe);break}case"initialPlacement":oe=o;break}if(r!==oe)return{reset:{placement:oe}}}return{}}}};async function oX(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=vu(n),s=$p(n),u=Vm(n)==="y",c=["left","top"].includes(o)?-1:1,p=a&&u?-1:1,f=Up(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),u?{x:g*p,y:m*c}:{x:m*c,y:g*p}}const sX=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await oX(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},lX=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:T=>{let{x:E,y:v}=T;return{x:E,y:v}}},...u}=Up(e,t),c={x:n,y:r},p=await pL(t,u),f=Vm(vu(i)),m=cL(f);let g=c[m],b=c[f];if(a){const T=m==="y"?"top":"left",E=m==="y"?"bottom":"right",v=g+p[T],w=g-p[E];g=Zb(v,g,w)}if(o){const T=f==="y"?"top":"left",E=f==="y"?"bottom":"right",v=b+p[T],w=b-p[E];b=Zb(v,b,w)}const y=s.fn({...t,[m]:g,[f]:b});return{...y,data:{x:y.x-n,y:y.y-r}}}}};function bl(e){return fL(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wl(e){var t;return(t=(fL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fL(e){return e instanceof Node||e instanceof Pi(e).Node}function cs(e){return e instanceof Element||e instanceof Pi(e).Element}function Ao(e){return e instanceof HTMLElement||e instanceof Pi(e).HTMLElement}function PC(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function zp(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ea(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function uX(e){return["table","td","th"].includes(bl(e))}function T9(e){const t=S9(),n=Ea(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function cX(e){let t=ac(e);for(;Ao(t)&&!Wm(t);){if(T9(t))return t;t=ac(t)}return null}function S9(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wm(e){return["html","body","#document"].includes(bl(e))}function Ea(e){return Pi(e).getComputedStyle(e)}function qm(e){return cs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ac(e){if(bl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||PC(e)&&e.host||wl(e);return PC(t)?t.host:t}function hL(e){const t=ac(e);return Wm(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ao(t)&&zp(t)?t:hL(t)}function gL(e,t){var n;t===void 0&&(t=[]);const r=hL(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(r);return i?t.concat(a,a.visualViewport||[],zp(r)?r:[]):t.concat(r,gL(r))}function mL(e){const t=Ea(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ao(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ag(n)!==a||Ag(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function bL(e){return cs(e)?e:e.contextElement}function G1(e){const t=bL(e);if(!Ao(t))return ml(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=mL(t);let o=(a?Ag(n.width):n.width)/r,s=(a?Ag(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const dX=ml(0);function yL(e){const t=Pi(e);return!S9()||!t.visualViewport?dX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pX(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pi(e)?!1:t}function _p(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=bL(e);let o=ml(1);t&&(r?cs(r)&&(o=G1(r)):o=G1(e));const s=pX(a,n,r)?yL(a):ml(0);let u=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,p=i.width/o.x,f=i.height/o.y;if(a){const m=Pi(a),g=r&&cs(r)?Pi(r):r;let b=m.frameElement;for(;b&&r&&g!==m;){const y=G1(b),T=b.getBoundingClientRect(),E=Ea(b),v=T.left+(b.clientLeft+parseFloat(E.paddingLeft))*y.x,w=T.top+(b.clientTop+parseFloat(E.paddingTop))*y.y;u*=y.x,c*=y.y,p*=y.x,f*=y.y,u+=v,c+=w,b=Pi(b).frameElement}}return kg({width:p,height:f,x:u,y:c})}function fX(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Ao(n),a=wl(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s=ml(1);const u=ml(0);if((i||!i&&r!=="fixed")&&((bl(n)!=="body"||zp(a))&&(o=qm(n)),Ao(n))){const c=_p(n);s=G1(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+u.x,y:t.y*s.y-o.scrollTop*s.y+u.y}}function hX(e){return Array.from(e.getClientRects())}function EL(e){return _p(wl(e)).left+qm(e).scrollLeft}function gX(e){const t=wl(e),n=qm(e),r=e.ownerDocument.body,i=j1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=j1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+EL(e);const s=-n.scrollTop;return Ea(r).direction==="rtl"&&(o+=j1(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function mX(e,t){const n=Pi(e),r=wl(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const c=S9();(!c||c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}function bX(e,t){const n=_p(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ao(e)?G1(e):ml(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=i*a.x,c=r*a.y;return{width:o,height:s,x:u,y:c}}function BC(e,t,n){let r;if(t==="viewport")r=mX(e,n);else if(t==="document")r=gX(wl(e));else if(cs(t))r=bX(t,n);else{const i=yL(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return kg(r)}function vL(e,t){const n=ac(e);return n===t||!cs(n)||Wm(n)?!1:Ea(n).position==="fixed"||vL(n,t)}function yX(e,t){const n=t.get(e);if(n)return n;let r=gL(e).filter(s=>cs(s)&&bl(s)!=="body"),i=null;const a=Ea(e).position==="fixed";let o=a?ac(e):e;for(;cs(o)&&!Wm(o);){const s=Ea(o),u=T9(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||zp(o)&&!u&&vL(e,o))?r=r.filter(p=>p!==o):i=s,o=ac(o)}return t.set(e,r),r}function EX(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?yX(t,this._c):[].concat(n),r],s=o[0],u=o.reduce((c,p)=>{const f=BC(t,p,i);return c.top=j1(f.top,c.top),c.right=vp(f.right,c.right),c.bottom=vp(f.bottom,c.bottom),c.left=j1(f.left,c.left),c},BC(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function vX(e){return mL(e)}function _X(e,t,n){const r=Ao(t),i=wl(t),a=n==="fixed",o=_p(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=ml(0);if(r||!r&&!a)if((bl(t)!=="body"||zp(i))&&(s=qm(t)),r){const c=_p(t,!0,a,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else i&&(u.x=EL(i));return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function UC(e,t){return!Ao(e)||Ea(e).position==="fixed"?null:t?t(e):e.offsetParent}function _L(e,t){const n=Pi(e);if(!Ao(e))return n;let r=UC(e,t);for(;r&&uX(r)&&Ea(r).position==="static";)r=UC(r,t);return r&&(bl(r)==="html"||bl(r)==="body"&&Ea(r).position==="static"&&!T9(r))?n:r||cX(e)||n}const TX=async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||_L,a=this.getDimensions;return{reference:_X(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}};function SX(e){return Ea(e).direction==="rtl"}const wX={convertOffsetParentRelativeRectToViewportRelativeRect:fX,getDocumentElement:wl,getClippingRect:EX,getOffsetParent:_L,getElementRects:TX,getClientRects:hX,getDimensions:vX,getScale:G1,isElement:cs,isRTL:SX},$C=(e,t,n)=>{const r=new Map,i={platform:wX,...n},a={...i.platform,_c:r};return rX(e,t,{...i,platform:a})};/* * React Tooltip * {@link https://github.com/ReactTooltip/react-tooltip} * @copyright ReactTooltip Team * @license MIT -*/const MK="react-tooltip-core-styles",FK="react-tooltip-base-styles",HA={core:!1,base:!1};function jA({css:e,id:t=FK,type:n="base",ref:r}){var i,a;if(!e||typeof document>"u"||HA[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=MK),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),HA[n]=!0}const GA=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},PK="DEFAULT_TOOLTIP_ID",BK={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},UK=C.createContext({getTooltipData:()=>BK});function oD(e=PK){return C.useContext(UK).getTooltipData(e)}const $K=typeof window<"u"?C.useLayoutEffect:C.useEffect,zK=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},VA=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(zK(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},WA=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[bK(Number(i)),gK(),EK({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(hK({element:n,padding:5})),zA(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,E;const b={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:v}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},y=(E={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&E!==void 0?E:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const D=`${s}`.match(/(\d+)px/);A=D!=null&&D[1]?Number(D[1]):1}return{tooltipStyles:b,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:v!=null?`${v}px`:"",right:"",bottom:"",...w,[y]:`-${4+A}px`},place:f}})):zA(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var HK="core-styles-module_tooltip__3vRRp",jK="core-styles-module_fixed__pcSol",GK="core-styles-module_arrow__cvMwQ",VK="core-styles-module_noArrow__xock6",WK="core-styles-module_clickable__ZuTTB",qK="core-styles-module_show__Nt9eE",n3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const KK=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:E=0,float:b=!1,hidden:T=!1,noArrow:v=!1,clickable:y=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:D=!1,style:k,position:R,afterShow:B,afterHide:W,content:P,contentWrapperRef:Q,isOpen:z,setIsOpen:le,activeAnchor:he,setActiveAnchor:de,border:fe,opacity:Z})=>{const V=C.useRef(null),ce=C.useRef(null),N=C.useRef(null),me=C.useRef(null),[oe,O]=C.useState(o),[re,Te]=C.useState({}),[K,xe]=C.useState({}),[ne,Le]=C.useState(!1),[Re,Xe]=C.useState(!1),Ve=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:Ge}=oD(e),pt=C.useRef(!1),[U,ie]=C.useState([]),pe=C.useRef(!1),ke=c||u.includes("click");$K(()=>(pe.current=!0,()=>{pe.current=!1}),[]),C.useEffect(()=>{if(!ne){const se=setTimeout(()=>{Xe(!1)},150);return()=>{clearTimeout(se)}}return()=>null},[ne]);const ve=se=>{pe.current&&(se&&Xe(!0),setTimeout(()=>{pe.current&&(le==null||le(se),z===void 0&&Le(se))},10))};C.useEffect(()=>{if(z===void 0)return()=>null;z&&Xe(!0);const se=setTimeout(()=>{Le(z)},10);return()=>{clearTimeout(se)}},[z]),C.useEffect(()=>{ne!==Ve.current&&(Ve.current=ne,ne?B==null||B():W==null||W())},[ne]);const Se=(se=E)=>{me.current&&clearTimeout(me.current),me.current=setTimeout(()=>{pt.current||ve(!1)},se)},Me=se=>{var j;if(!se)return;const $=(j=se.currentTarget)!==null&&j!==void 0?j:se.target;if(!($!=null&&$.isConnected))return de(null),void Ge({current:null});g?(N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{ve(!0)},g)):ve(!0),de($),Ge({current:$}),me.current&&clearTimeout(me.current)},ze=()=>{y?Se(E||100):E?Se():ve(!1),N.current&&clearTimeout(N.current)},Ke=({x:se,y:j})=>{WA({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:se,y:j,width:0,height:0,top:j,left:se,right:se,bottom:j})},tooltipReference:V.current,tooltipArrowReference:ce.current,strategy:p,middlewares:f,border:fe}).then($=>{Object.keys($.tooltipStyles).length&&Te($.tooltipStyles),Object.keys($.tooltipArrowStyles).length&&xe($.tooltipArrowStyles),O($.place)})},jt=se=>{if(!se)return;const j=se,$={x:j.clientX,y:j.clientY};Ke($),dt.current=$},ue=se=>{Me(se),E&&Se()},ye=se=>{var j;[document.querySelector(`[id='${i}']`),...U].some($=>$==null?void 0:$.contains(se.target))||!((j=V.current)===null||j===void 0)&&j.contains(se.target)||(ve(!1),N.current&&clearTimeout(N.current))},We=GA(Me,50,!0),at=GA(ze,50,!0);C.useEffect(()=>{var se,j;const $=new Set(ot);U.forEach(Zt=>{$.add({current:Zt})});const J=document.querySelector(`[id='${i}']`);J&&$.add({current:J});const be=()=>{ve(!1)},Fe=VA(he),De=VA(V.current);A&&(window.addEventListener("scroll",be),Fe==null||Fe.addEventListener("scroll",be),De==null||De.addEventListener("scroll",be)),D&&window.addEventListener("resize",be);const tt=Zt=>{Zt.key==="Escape"&&ve(!1)};w&&window.addEventListener("keydown",tt);const Je=[];ke?(window.addEventListener("click",ye),Je.push({event:"click",listener:ue})):(Je.push({event:"mouseenter",listener:We},{event:"mouseleave",listener:at},{event:"focus",listener:We},{event:"blur",listener:at}),b&&Je.push({event:"mousemove",listener:jt}));const Ze=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return y&&!ke&&((se=V.current)===null||se===void 0||se.addEventListener("mouseenter",Ze),(j=V.current)===null||j===void 0||j.addEventListener("mouseleave",Rt)),Je.forEach(({event:Zt,listener:kt})=>{$.forEach(nn=>{var Yt;(Yt=nn.current)===null||Yt===void 0||Yt.addEventListener(Zt,kt)})}),()=>{var Zt,kt;A&&(window.removeEventListener("scroll",be),Fe==null||Fe.removeEventListener("scroll",be),De==null||De.removeEventListener("scroll",be)),D&&window.removeEventListener("resize",be),ke&&window.removeEventListener("click",ye),w&&window.removeEventListener("keydown",tt),y&&!ke&&((Zt=V.current)===null||Zt===void 0||Zt.removeEventListener("mouseenter",Ze),(kt=V.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),Je.forEach(({event:nn,listener:Yt})=>{$.forEach(jr=>{var Gr;(Gr=jr.current)===null||Gr===void 0||Gr.removeEventListener(nn,Yt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let se=a??"";!se&&e&&(se=`[data-tooltip-id='${e}']`);const j=new MutationObserver($=>{const J=[];$.forEach(be=>{if(be.type==="attributes"&&be.attributeName==="data-tooltip-id"&&be.target.getAttribute("data-tooltip-id")===e&&J.push(be.target),be.type==="childList"&&(he&&[...be.removedNodes].some(Fe=>{var De;return!!(!((De=Fe==null?void 0:Fe.contains)===null||De===void 0)&&De.call(Fe,he))&&(Xe(!1),ve(!1),de(null),N.current&&clearTimeout(N.current),me.current&&clearTimeout(me.current),!0)}),se))try{const Fe=[...be.addedNodes].filter(De=>De.nodeType===1);J.push(...Fe.filter(De=>De.matches(se))),J.push(...Fe.flatMap(De=>[...De.querySelectorAll(se)]))}catch{}}),J.length&&ie(be=>[...be,...J])});return j.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{j.disconnect()}},[e,a,he]);const Qe=()=>{R?Ke(R):b?dt.current&&Ke(dt.current):WA({place:o,offset:s,elementReference:he,tooltipReference:V.current,tooltipArrowReference:ce.current,strategy:p,middlewares:f,border:fe}).then(se=>{pe.current&&(Object.keys(se.tooltipStyles).length&&Te(se.tooltipStyles),Object.keys(se.tooltipArrowStyles).length&&xe(se.tooltipArrowStyles),O(se.place))})};C.useEffect(()=>{Qe()},[ne,he,P,k,o,s,p,R]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const se=new ResizeObserver(()=>{Qe()});return se.observe(Q.current),()=>{se.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var se;const j=document.querySelector(`[id='${i}']`),$=[...U,j];he&&$.includes(he)||de((se=U[0])!==null&&se!==void 0?se:j)},[i,U,he]),C.useEffect(()=>()=>{N.current&&clearTimeout(N.current),me.current&&clearTimeout(me.current)},[]),C.useEffect(()=>{let se=a;if(!se&&e&&(se=`[data-tooltip-id='${e}']`),se)try{const j=Array.from(document.querySelectorAll(se));ie(j)}catch{ie([])}},[e,a]);const Y=!T&&P&&ne&&Object.keys(re).length>0;return Re?ut.createElement(m,{id:e,role:"tooltip",className:FA("react-tooltip",HK,n3.tooltip,n3[r],t,`react-tooltip__place-${oe}`,{[qK]:Y,[jK]:p==="fixed",[WK]:y}),style:{...k,...re,opacity:Z!==void 0&&Y?Z:void 0},ref:V},P,ut.createElement(m,{className:FA("react-tooltip-arrow",GK,n3.arrow,n,{[VK]:v}),style:K,ref:ce})):null},YK=({content:e})=>ut.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),XK=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:E=!1,positionStrategy:b="absolute",middlewares:T,delayShow:v=0,delayHide:y=0,float:w=!1,hidden:A=!1,noArrow:D=!1,clickable:k=!1,closeOnEsc:R=!1,closeOnScroll:B=!1,closeOnResize:W=!1,style:P,position:Q,isOpen:z,disableStyleInjection:le=!1,border:he,opacity:de,setIsOpen:fe,afterShow:Z,afterHide:V})=>{const[ce,N]=C.useState(r),[me,oe]=C.useState(i),[O,re]=C.useState(c),[Te,K]=C.useState(u),[xe,ne]=C.useState(p),[Le,Re]=C.useState(v),[Xe,Ve]=C.useState(y),[dt,ot]=C.useState(w),[Ge,pt]=C.useState(A),[U,ie]=C.useState(f),[pe,ke]=C.useState(g),[ve,Se]=C.useState(b),[Me,ze]=C.useState(null),Ke=C.useRef(le),{anchorRefs:jt,activeAnchor:ue}=oD(e),ye=se=>se==null?void 0:se.getAttributeNames().reduce((j,$)=>{var J;return $.startsWith("data-tooltip-")&&(j[$.replace(/^data-tooltip-/,"")]=(J=se==null?void 0:se.getAttribute($))!==null&&J!==void 0?J:null),j},{}),We=se=>{const j={place:$=>{var J;re((J=$)!==null&&J!==void 0?J:c)},content:$=>{N($??r)},html:$=>{oe($??i)},variant:$=>{var J;K((J=$)!==null&&J!==void 0?J:u)},offset:$=>{ne($===null?p:Number($))},wrapper:$=>{var J;ie((J=$)!==null&&J!==void 0?J:f)},events:$=>{const J=$==null?void 0:$.split(" ");ke(J??g)},"position-strategy":$=>{var J;Se((J=$)!==null&&J!==void 0?J:b)},"delay-show":$=>{Re($===null?v:Number($))},"delay-hide":$=>{Ve($===null?y:Number($))},float:$=>{ot($===null?w:$==="true")},hidden:$=>{pt($===null?A:$==="true")}};Object.values(j).forEach($=>$(null)),Object.entries(se).forEach(([$,J])=>{var be;(be=j[$])===null||be===void 0||be.call(j,J)})};C.useEffect(()=>{N(r)},[r]),C.useEffect(()=>{oe(i)},[i]),C.useEffect(()=>{re(c)},[c]),C.useEffect(()=>{K(u)},[u]),C.useEffect(()=>{ne(p)},[p]),C.useEffect(()=>{Re(v)},[v]),C.useEffect(()=>{Ve(y)},[y]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Se(b)},[b]),C.useEffect(()=>{Ke.current!==le&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[le]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:le==="core",disableBase:le}}))},[]),C.useEffect(()=>{var se;const j=new Set(jt);let $=n;if(!$&&e&&($=`[data-tooltip-id='${e}']`),$)try{document.querySelectorAll($).forEach(tt=>{j.add({current:tt})})}catch{console.warn(`[react-tooltip] "${$}" is not a valid CSS selector`)}const J=document.querySelector(`[id='${t}']`);if(J&&j.add({current:J}),!j.size)return()=>null;const be=(se=Me??J)!==null&&se!==void 0?se:ue.current,Fe=new MutationObserver(tt=>{tt.forEach(Je=>{var Ze;if(!be||Je.type!=="attributes"||!(!((Ze=Je.attributeName)===null||Ze===void 0)&&Ze.startsWith("data-tooltip-")))return;const Rt=ye(be);We(Rt)})}),De={attributes:!0,childList:!1,subtree:!1};if(be){const tt=ye(be);We(tt),Fe.observe(be,De)}return()=>{Fe.disconnect()}},[jt,ue,Me,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),he&&!CSS.supports("border",`${he}`)&&console.warn(`[react-tooltip] "${he}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),de&&!CSS.supports("opacity",`${de}`)&&console.warn(`[react-tooltip] "${de}" is not a valid \`opacity\`.`)},[]);let at=m;const Qe=C.useRef(null);if(a){const se=a({content:ce??null,activeAnchor:Me});at=se?ut.createElement("div",{ref:Qe,className:"react-tooltip-content-wrapper"},se):null}else ce&&(at=ce);me&&(at=ut.createElement(YK,{content:me}));const Y={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:at,contentWrapperRef:Qe,place:O,variant:Te,offset:xe,wrapper:U,events:pe,openOnClick:E,positionStrategy:ve,middlewares:T,delayShow:Le,delayHide:Xe,float:dt,hidden:Ge,noArrow:D,clickable:k,closeOnEsc:R,closeOnScroll:B,closeOnResize:W,style:P,position:Q,isOpen:z,border:he,opacity:de,setIsOpen:fe,afterShow:Z,afterHide:V,activeAnchor:Me,setActiveAnchor:se=>ze(se)};return ut.createElement(KK,{...Y})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||jA({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||jA({css:` -.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px;transform:rotate(45deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function _2(){const e=window.navigator.platform.toUpperCase();return e.indexOf("MAC")>=0?"mac":e.indexOf("LINUX")>=0?"linux":e.indexOf("WIN")>=0?"windows":"unknown"}function tg(e){switch(_2()){case"mac":return e.metaKey;case"linux":case"windows":return e.ctrlKey;default:return e.metaKey}}function ZK(){switch(_2()){case"mac":return"⌘";case"linux":case"windows":return"^";default:return"⌘"}}function nr(){const e=localStorage.getItem("fontSize");return e?parseInt(e):14}function qA(e){switch(e.split(".").pop()){case"py":return"python";case"js":return"javascript";case"ts":return"typescript";case"java":return"java";case"go":return"go";case"rb":return"ruby";case"rs":return"rust";case"c":return"c";case"cpp":return"cpp";case"cs":return"csharp";case"php":return"php";case"scala":return"scala";case"swift":return"swift";case"kt":return"kotlin";case"md":return"markdown";case"json":return"json";case"html":return"html";case"css":return"css";case"sh":return"shell";case"yaml":return"yaml";case"toml":return"toml";case"tex":return"latex";case"sql":return"sql";default:return""}}const wt="5px",vt="#646464",da="#1bbe84",Lt="var(--vscode-list-hoverBackground, rgb(45 45 45))",Kt="var(--vscode-editor-background, rgb(30 30 30))",Ht="var(--vscode-editor-foreground, #fff)";if(typeof document<"u"){const e=localStorage.getItem("--vscode-editor-foreground"),t=localStorage.getItem("--vscode-editor-background"),n=localStorage.getItem("--vscode-list-hoverBackground");e&&document.body.style.setProperty("--vscode-editor-foreground",e),t&&document.body.style.setProperty("--vscode-editor-background",t),n&&document.body.style.setProperty("--vscode-list-hoverBackground",n)}const op=He.button` +*/const AX="react-tooltip-core-styles",CX="react-tooltip-base-styles",zC={core:!1,base:!1};function HC({css:e,id:t=CX,type:n="base",ref:r}){var i,a;if(!e||typeof document>"u"||zC[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=AX),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),zC[n]=!0}const jC=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},kX="DEFAULT_TOOLTIP_ID",xX={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},IX=C.createContext({getTooltipData:()=>xX});function TL(e=kX){return C.useContext(IX).getTooltipData(e)}const RX=typeof window<"u"?C.useLayoutEffect:C.useEffect,NX=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},GC=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(NX(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},VC=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[sX(Number(i)),aX(),lX({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(iX({element:n,padding:5})),$C(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,b;const y={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:E}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},v=(b={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&b!==void 0?b:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const R=`${s}`.match(/(\d+)px/);A=R!=null&&R[1]?Number(R[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:E!=null?`${E}px`:"",right:"",bottom:"",...w,[v]:`-${4+A}px`},place:f}})):$C(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var OX="core-styles-module_tooltip__3vRRp",DX="core-styles-module_fixed__pcSol",LX="core-styles-module_arrow__cvMwQ",MX="core-styles-module_noArrow__xock6",FX="core-styles-module_clickable__ZuTTB",PX="core-styles-module_show__Nt9eE",x3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const BX=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:b=0,float:y=!1,hidden:T=!1,noArrow:E=!1,clickable:v=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:R=!1,style:k,position:N,afterShow:B,afterHide:q,content:P,contentWrapperRef:Q,isOpen:$,setIsOpen:oe,activeAnchor:fe,setActiveAnchor:ce,border:De,opacity:H})=>{const W=C.useRef(null),se=C.useRef(null),D=C.useRef(null),pe=C.useRef(null),[le,L]=C.useState(o),[ie,Se]=C.useState({}),[X,ke]=C.useState({}),[te,Me]=C.useState(!1),[Re,Ze]=C.useState(!1),We=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:je}=TL(e),pt=C.useRef(!1),[U,re]=C.useState([]),de=C.useRef(!1),xe=c||u.includes("click");RX(()=>(de.current=!0,()=>{de.current=!1}),[]),C.useEffect(()=>{if(!te){const ge=setTimeout(()=>{Ze(!1)},150);return()=>{clearTimeout(ge)}}return()=>null},[te]);const ye=ge=>{de.current&&(ge&&Ze(!0),setTimeout(()=>{de.current&&(oe==null||oe(ge),$===void 0&&Me(ge))},10))};C.useEffect(()=>{if($===void 0)return()=>null;$&&Ze(!0);const ge=setTimeout(()=>{Me($)},10);return()=>{clearTimeout(ge)}},[$]),C.useEffect(()=>{te!==We.current&&(We.current=te,te?B==null||B():q==null||q())},[te]);const Te=(ge=b)=>{pe.current&&clearTimeout(pe.current),pe.current=setTimeout(()=>{pt.current||ye(!1)},ge)},Le=ge=>{var G;if(!ge)return;const K=(G=ge.currentTarget)!==null&&G!==void 0?G:ge.target;if(!(K!=null&&K.isConnected))return ce(null),void je({current:null});g?(D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{ye(!0)},g)):ye(!0),ce(K),je({current:K}),pe.current&&clearTimeout(pe.current)},ze=()=>{v?Te(b||100):b?Te():ye(!1),D.current&&clearTimeout(D.current)},Ye=({x:ge,y:G})=>{VC({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:ge,y:G,width:0,height:0,top:G,left:ge,right:ge,bottom:G})},tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(K=>{Object.keys(K.tooltipStyles).length&&Se(K.tooltipStyles),Object.keys(K.tooltipArrowStyles).length&&ke(K.tooltipArrowStyles),L(K.place)})},jt=ge=>{if(!ge)return;const G=ge,K={x:G.clientX,y:G.clientY};Ye(K),dt.current=K},ue=ge=>{Le(ge),b&&Te()},Ee=ge=>{var G;[document.querySelector(`[id='${i}']`),...U].some(K=>K==null?void 0:K.contains(ge.target))||!((G=W.current)===null||G===void 0)&&G.contains(ge.target)||(ye(!1),D.current&&clearTimeout(D.current))},qe=jC(Le,50,!0),j=jC(ze,50,!0);C.useEffect(()=>{var ge,G;const K=new Set(ot);U.forEach(Qt=>{K.add({current:Qt})});const ne=document.querySelector(`[id='${i}']`);ne&&K.add({current:ne});const ve=()=>{ye(!1)},Qe=GC(fe),Fe=GC(W.current);A&&(window.addEventListener("scroll",ve),Qe==null||Qe.addEventListener("scroll",ve),Fe==null||Fe.addEventListener("scroll",ve)),R&&window.addEventListener("resize",ve);const at=Qt=>{Qt.key==="Escape"&&ye(!1)};w&&window.addEventListener("keydown",at);const rt=[];xe?(window.addEventListener("click",Ee),rt.push({event:"click",listener:ue})):(rt.push({event:"mouseenter",listener:qe},{event:"mouseleave",listener:j},{event:"focus",listener:qe},{event:"blur",listener:j}),y&&rt.push({event:"mousemove",listener:jt}));const Je=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return v&&!xe&&((ge=W.current)===null||ge===void 0||ge.addEventListener("mouseenter",Je),(G=W.current)===null||G===void 0||G.addEventListener("mouseleave",Rt)),rt.forEach(({event:Qt,listener:kt})=>{K.forEach(rn=>{var Xt;(Xt=rn.current)===null||Xt===void 0||Xt.addEventListener(Qt,kt)})}),()=>{var Qt,kt;A&&(window.removeEventListener("scroll",ve),Qe==null||Qe.removeEventListener("scroll",ve),Fe==null||Fe.removeEventListener("scroll",ve)),R&&window.removeEventListener("resize",ve),xe&&window.removeEventListener("click",Ee),w&&window.removeEventListener("keydown",at),v&&!xe&&((Qt=W.current)===null||Qt===void 0||Qt.removeEventListener("mouseenter",Je),(kt=W.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),rt.forEach(({event:rn,listener:Xt})=>{K.forEach(Wr=>{var qr;(qr=Wr.current)===null||qr===void 0||qr.removeEventListener(rn,Xt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let ge=a??"";!ge&&e&&(ge=`[data-tooltip-id='${e}']`);const G=new MutationObserver(K=>{const ne=[];K.forEach(ve=>{if(ve.type==="attributes"&&ve.attributeName==="data-tooltip-id"&&ve.target.getAttribute("data-tooltip-id")===e&&ne.push(ve.target),ve.type==="childList"&&(fe&&[...ve.removedNodes].some(Qe=>{var Fe;return!!(!((Fe=Qe==null?void 0:Qe.contains)===null||Fe===void 0)&&Fe.call(Qe,fe))&&(Ze(!1),ye(!1),ce(null),D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current),!0)}),ge))try{const Qe=[...ve.addedNodes].filter(Fe=>Fe.nodeType===1);ne.push(...Qe.filter(Fe=>Fe.matches(ge))),ne.push(...Qe.flatMap(Fe=>[...Fe.querySelectorAll(ge)]))}catch{}}),ne.length&&re(ve=>[...ve,...ne])});return G.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{G.disconnect()}},[e,a,fe]);const me=()=>{N?Ye(N):y?dt.current&&Ye(dt.current):VC({place:o,offset:s,elementReference:fe,tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(ge=>{de.current&&(Object.keys(ge.tooltipStyles).length&&Se(ge.tooltipStyles),Object.keys(ge.tooltipArrowStyles).length&&ke(ge.tooltipArrowStyles),L(ge.place))})};C.useEffect(()=>{me()},[te,fe,P,k,o,s,p,N]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const ge=new ResizeObserver(()=>{me()});return ge.observe(Q.current),()=>{ge.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var ge;const G=document.querySelector(`[id='${i}']`),K=[...U,G];fe&&K.includes(fe)||ce((ge=U[0])!==null&&ge!==void 0?ge:G)},[i,U,fe]),C.useEffect(()=>()=>{D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current)},[]),C.useEffect(()=>{let ge=a;if(!ge&&e&&(ge=`[data-tooltip-id='${e}']`),ge)try{const G=Array.from(document.querySelectorAll(ge));re(G)}catch{re([])}},[e,a]);const Ve=!T&&P&&te&&Object.keys(ie).length>0;return Re?ut.createElement(m,{id:e,role:"tooltip",className:MC("react-tooltip",OX,x3.tooltip,x3[r],t,`react-tooltip__place-${le}`,{[PX]:Ve,[DX]:p==="fixed",[FX]:v}),style:{...k,...ie,opacity:H!==void 0&&Ve?H:void 0},ref:W},P,ut.createElement(m,{className:MC("react-tooltip-arrow",LX,x3.arrow,n,{[MX]:E}),style:X,ref:se})):null},UX=({content:e})=>ut.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),$X=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:b=!1,positionStrategy:y="absolute",middlewares:T,delayShow:E=0,delayHide:v=0,float:w=!1,hidden:A=!1,noArrow:R=!1,clickable:k=!1,closeOnEsc:N=!1,closeOnScroll:B=!1,closeOnResize:q=!1,style:P,position:Q,isOpen:$,disableStyleInjection:oe=!1,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W})=>{const[se,D]=C.useState(r),[pe,le]=C.useState(i),[L,ie]=C.useState(c),[Se,X]=C.useState(u),[ke,te]=C.useState(p),[Me,Re]=C.useState(E),[Ze,We]=C.useState(v),[dt,ot]=C.useState(w),[je,pt]=C.useState(A),[U,re]=C.useState(f),[de,xe]=C.useState(g),[ye,Te]=C.useState(y),[Le,ze]=C.useState(null),Ye=C.useRef(oe),{anchorRefs:jt,activeAnchor:ue}=TL(e),Ee=ge=>ge==null?void 0:ge.getAttributeNames().reduce((G,K)=>{var ne;return K.startsWith("data-tooltip-")&&(G[K.replace(/^data-tooltip-/,"")]=(ne=ge==null?void 0:ge.getAttribute(K))!==null&&ne!==void 0?ne:null),G},{}),qe=ge=>{const G={place:K=>{var ne;ie((ne=K)!==null&&ne!==void 0?ne:c)},content:K=>{D(K??r)},html:K=>{le(K??i)},variant:K=>{var ne;X((ne=K)!==null&&ne!==void 0?ne:u)},offset:K=>{te(K===null?p:Number(K))},wrapper:K=>{var ne;re((ne=K)!==null&&ne!==void 0?ne:f)},events:K=>{const ne=K==null?void 0:K.split(" ");xe(ne??g)},"position-strategy":K=>{var ne;Te((ne=K)!==null&&ne!==void 0?ne:y)},"delay-show":K=>{Re(K===null?E:Number(K))},"delay-hide":K=>{We(K===null?v:Number(K))},float:K=>{ot(K===null?w:K==="true")},hidden:K=>{pt(K===null?A:K==="true")}};Object.values(G).forEach(K=>K(null)),Object.entries(ge).forEach(([K,ne])=>{var ve;(ve=G[K])===null||ve===void 0||ve.call(G,ne)})};C.useEffect(()=>{D(r)},[r]),C.useEffect(()=>{le(i)},[i]),C.useEffect(()=>{ie(c)},[c]),C.useEffect(()=>{X(u)},[u]),C.useEffect(()=>{te(p)},[p]),C.useEffect(()=>{Re(E)},[E]),C.useEffect(()=>{We(v)},[v]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Te(y)},[y]),C.useEffect(()=>{Ye.current!==oe&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[oe]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:oe==="core",disableBase:oe}}))},[]),C.useEffect(()=>{var ge;const G=new Set(jt);let K=n;if(!K&&e&&(K=`[data-tooltip-id='${e}']`),K)try{document.querySelectorAll(K).forEach(at=>{G.add({current:at})})}catch{console.warn(`[react-tooltip] "${K}" is not a valid CSS selector`)}const ne=document.querySelector(`[id='${t}']`);if(ne&&G.add({current:ne}),!G.size)return()=>null;const ve=(ge=Le??ne)!==null&&ge!==void 0?ge:ue.current,Qe=new MutationObserver(at=>{at.forEach(rt=>{var Je;if(!ve||rt.type!=="attributes"||!(!((Je=rt.attributeName)===null||Je===void 0)&&Je.startsWith("data-tooltip-")))return;const Rt=Ee(ve);qe(Rt)})}),Fe={attributes:!0,childList:!1,subtree:!1};if(ve){const at=Ee(ve);qe(at),Qe.observe(ve,Fe)}return()=>{Qe.disconnect()}},[jt,ue,Le,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),fe&&!CSS.supports("border",`${fe}`)&&console.warn(`[react-tooltip] "${fe}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),ce&&!CSS.supports("opacity",`${ce}`)&&console.warn(`[react-tooltip] "${ce}" is not a valid \`opacity\`.`)},[]);let j=m;const me=C.useRef(null);if(a){const ge=a({content:se??null,activeAnchor:Le});j=ge?ut.createElement("div",{ref:me,className:"react-tooltip-content-wrapper"},ge):null}else se&&(j=se);pe&&(j=ut.createElement(UX,{content:pe}));const Ve={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:j,contentWrapperRef:me,place:L,variant:Se,offset:ke,wrapper:U,events:de,openOnClick:b,positionStrategy:ye,middlewares:T,delayShow:Me,delayHide:Ze,float:dt,hidden:je,noArrow:R,clickable:k,closeOnEsc:N,closeOnScroll:B,closeOnResize:q,style:P,position:Q,isOpen:$,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W,activeAnchor:Le,setActiveAnchor:ge=>ze(ge)};return ut.createElement(BX,{...Ve})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||HC({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||HC({css:` +.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px;transform:rotate(45deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function Km(){const e=window.navigator.platform.toUpperCase();return e.indexOf("MAC")>=0?"mac":e.indexOf("LINUX")>=0?"linux":e.indexOf("WIN")>=0?"windows":"unknown"}function xg(e){switch(Km()){case"mac":return e.metaKey;case"linux":case"windows":return e.ctrlKey;default:return e.metaKey}}function zX(){switch(Km()){case"mac":return"⌘";case"linux":case"windows":return"^";default:return"⌘"}}function pr(){const e=localStorage.getItem("fontSize");return e?parseInt(e):14}function WC(e){switch(e.split(".").pop()){case"py":return"python";case"js":return"javascript";case"ts":return"typescript";case"java":return"java";case"go":return"go";case"rb":return"ruby";case"rs":return"rust";case"c":return"c";case"cpp":return"cpp";case"cs":return"csharp";case"php":return"php";case"scala":return"scala";case"swift":return"swift";case"kt":return"kotlin";case"md":return"markdown";case"json":return"json";case"html":return"html";case"css":return"css";case"sh":return"shell";case"yaml":return"yaml";case"toml":return"toml";case"tex":return"latex";case"sql":return"sql";default:return""}}const It="5px",Et="#646464",ha="#1bbe84",Vt="var(--vscode-list-hoverBackground, rgb(45 45 45))",Ht="var(--vscode-editor-background, rgb(30 30 30))",Yt="var(--vscode-editor-foreground, #fff)";if(typeof document<"u"){const e=localStorage.getItem("--vscode-editor-foreground"),t=localStorage.getItem("--vscode-editor-background"),n=localStorage.getItem("--vscode-list-hoverBackground");e&&document.body.style.setProperty("--vscode-editor-foreground",e),t&&document.body.style.setProperty("--vscode-editor-background",t),n&&document.body.style.setProperty("--vscode-list-hoverBackground",n)}const oc=Ge.button` padding: 10px 12px; margin: 8px 0; - border-radius: ${wt}; + border-radius: ${It}; border: none; color: white; - background-color: ${da}; + background-color: ${ha}; &:disabled { color: gray; @@ -81,45 +81,45 @@ Error generating stack: `+a.message+` &:hover:enabled { cursor: pointer; } -`,Gs=He(XK)` +`,au=Ge($X)` font-size: 12px; background-color: rgb(60 60 60); - border-radius: ${wt}; + border-radius: ${It}; padding: 6px; padding-left: 12px; padding-right: 12px; z-index: 1000; max-width: 80vw; -`,QK=He.textarea` +`,HX=Ge.textarea` padding: 8px; font-family: inherit; - border-radius: ${wt}; + border-radius: ${It}; margin: 16px auto; height: auto; width: calc(100% - 32px); - background-color: ${Lt}; - color: ${Ht}; + background-color: ${Vt}; + color: ${Yt}; z-index: 1; border: 1px solid transparent; resize: vertical; &:focus { - outline: 1px solid ${vt}; + outline: 1px solid ${Et}; border: 1px solid transparent; } &::placeholder { - color: ${vt}80; + color: ${Et}80; } -`;He.pre` - border-radius: ${wt}; +`;Ge.pre` + border-radius: ${It}; padding: 8px; max-height: 150px; overflow-y: scroll; margin: 0; - background-color: ${Kt}; + background-color: ${Ht}; border: none; /* text wrapping */ @@ -128,84 +128,84 @@ Error generating stack: `+a.message+` white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* Internet Explorer 5.5+ */ -`;He.h3` - background-color: ${Lt}; - border-radius: ${wt}; +`;Ge.h3` + background-color: ${Vt}; + border-radius: ${It}; padding: 4px 8px; width: fit-content; -`;const ng=He.input` +`;const Ig=Ge.input` width: 100%; padding: 8px 12px; margin: 8px 0; box-sizing: border-box; - border-radius: ${wt}; - outline: 1px solid ${vt}; + border-radius: ${It}; + outline: 1px solid ${Et}; border: none; - background-color: ${Kt}; - color: ${Ht}; + background-color: ${Ht}; + color: ${Yt}; &:focus { - background: ${Lt}; + background: ${Vt}; } &:invalid { outline: 1px solid red; } -`,JK=He.input.attrs({type:"number"})` +`,jX=Ge.input.attrs({type:"number"})` padding: 8px 12px; margin: 8px 4px; box-sizing: border-box; - border-radius: ${wt}; - outline: 1px solid ${vt}; + border-radius: ${It}; + outline: 1px solid ${Et}; border: none; - background-color: ${Kt}; - color: ${Ht}; + background-color: ${Ht}; + color: ${Yt}; &:focus { - background: ${Lt}; + background: ${Vt}; } -`;He.select` +`;Ge.select` padding: 8px 12px; margin: 8px 0; box-sizing: border-box; - border-radius: ${wt}; - outline: 1px solid ${vt}; + border-radius: ${It}; + outline: 1px solid ${Et}; border: none; - background-color: ${Kt}; - color: ${Ht}; -`;He.label` - font-size: ${e=>e.fontSize||nr()}px; -`;const KA=b2` + background-color: ${Ht}; + color: ${Yt}; +`;Ge.label` + font-size: ${e=>e.fontSize||pr()}px; +`;const qC=Gm` from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } -`;He.div` +`;Ge.div` border: 4px solid transparent; border-radius: 50%; border-top: 4px solid white; width: 36px; height: 36px; - -webkit-animation: ${KA} 1s ease-in-out infinite; - animation: ${KA} 1s ease-in-out infinite; + -webkit-animation: ${qC} 1s ease-in-out infinite; + animation: ${qC} 1s ease-in-out infinite; margin: auto; -`;He.div` - border-radius: ${wt}; +`;Ge.div` + border-radius: ${It}; padding: ${e=>e.borderWidth||"1px"}; background-color: white; -`;He.textarea` +`;Ge.textarea` padding: 8px; font-size: 16px; - border-radius: ${wt}; + border-radius: ${It}; border: 1px solid #ccc; margin: 8px 8px; - background-color: ${Kt}; - color: ${Ht}; + background-color: ${Ht}; + color: ${Yt}; outline: 1px solid orange; resize: none; -`;b2` +`;Gm` from { opacity: 0; transform: translateY(-10px); @@ -214,12 +214,12 @@ Error generating stack: `+a.message+` opacity: 1; transform: translateY(0px); } -`;const eY=He.button` - background-color: ${({inverted:e})=>e?Ht:"transparent"}; - color: ${({inverted:e})=>e?Kt:Ht}; +`;const GX=Ge.button` + background-color: ${({inverted:e})=>e?Yt:"transparent"}; + color: ${({inverted:e})=>e?Ht:Yt}; border: none; - border-radius: ${wt}; + border-radius: ${It}; cursor: ${({disabled:e})=>e?"default":"pointer"}; &:focus { @@ -228,61 +228,61 @@ Error generating stack: `+a.message+` } &:hover { - background-color: ${({inverted:e})=>typeof e>"u"||e?Lt:"transparent"}; + background-color: ${({inverted:e})=>typeof e>"u"||e?Vt:"transparent"}; } display: flex; align-items: center; justify-content: center; gap: 4px; padding: 2px; -`;function tY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))}const nY=C.forwardRef(tY),ac=nY;function rY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"}))}const iY=C.forwardRef(rY),aY=iY;function oY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"}))}const sY=C.forwardRef(oY),lY=sY;function uY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 19.5l-15-15m0 0v11.25m0-11.25h11.25"}))}const cY=C.forwardRef(uY),dY=cY;function pY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))}const fY=C.forwardRef(pY),hY=fY;function gY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"}))}const mY=C.forwardRef(gY),sD=mY;function bY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}const EY=C.forwardRef(bY),vY=EY;function yY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}const _Y=C.forwardRef(yY),TY=_Y;function SY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))}const wY=C.forwardRef(SY),AY=wY;function CY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"}))}const xY=C.forwardRef(CY),kY=xY;function IY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75L16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0020.25 18V6A2.25 2.25 0 0018 3.75H6A2.25 2.25 0 003.75 6v12A2.25 2.25 0 006 20.25z"}))}const RY=C.forwardRef(IY),NY=RY;function OY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const DY=C.forwardRef(OY),LY=DY;function MY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}const FY=C.forwardRef(MY),lD=FY;function PY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"}))}const BY=C.forwardRef(PY),UY=BY;function $Y({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const zY=C.forwardRef($Y),HY=zY;function jY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}const GY=C.forwardRef(jY),VY=GY;function WY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42"}))}const qY=C.forwardRef(WY),KY=qY;function YY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"}))}const XY=C.forwardRef(YY),ZY=XY;function QY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"}))}const JY=C.forwardRef(QY),uD=JY;function eX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const tX=C.forwardRef(eX),cD=tX;function nX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"}))}const rX=C.forwardRef(nX),iX=rX;function aX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"}))}const oX=C.forwardRef(aX),dD=oX;function sX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"}))}const lX=C.forwardRef(sX),uX=lX;function cX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}const dX=C.forwardRef(cX),pD=dX;function pX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const fX=C.forwardRef(pX),T2=fX,vi=ut.forwardRef((e,t)=>{const[n,r]=C.useState(!1),i=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(eY,{"data-tooltip-id":`header_button_${e.text}`,inverted:e.inverted,disabled:e.disabled,onMouseEnter:()=>{e.disabled||r(!0)},onMouseLeave:()=>{r(!1)},onClick:e.onClick,onKeyDown:e.onKeyDown,className:e.className,ref:t,tabIndex:e.tabIndex,children:e.children}),i&&_E.createPortal(I.jsx(Gs,{id:`header_button_${e.text}`,place:"bottom",children:e.text}),i)]})});function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}const YA=["http","https","mailto","tel"];function hX(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! +`,VX=C.createContext(null),I3={didCatch:!1,error:null};class WX extends C.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=I3}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,i=arguments.length,a=new Array(i),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function KX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))}const YX=C.forwardRef(KX),mc=YX;function XX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"}))}const ZX=C.forwardRef(XX),QX=ZX;function JX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"}))}const eZ=C.forwardRef(JX),tZ=eZ;function nZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 19.5l-15-15m0 0v11.25m0-11.25h11.25"}))}const rZ=C.forwardRef(nZ),iZ=rZ;function aZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))}const oZ=C.forwardRef(aZ),sZ=oZ;function lZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"}))}const uZ=C.forwardRef(lZ),SL=uZ;function cZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}const dZ=C.forwardRef(cZ),pZ=dZ;function fZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}const hZ=C.forwardRef(fZ),gZ=hZ;function mZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))}const bZ=C.forwardRef(mZ),yZ=bZ;function EZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"}))}const vZ=C.forwardRef(EZ),_Z=vZ;function TZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75L16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0020.25 18V6A2.25 2.25 0 0018 3.75H6A2.25 2.25 0 003.75 6v12A2.25 2.25 0 006 20.25z"}))}const SZ=C.forwardRef(TZ),wZ=SZ;function AZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const CZ=C.forwardRef(AZ),kZ=CZ;function xZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}const IZ=C.forwardRef(xZ),wL=IZ;function RZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"}))}const NZ=C.forwardRef(RZ),OZ=NZ;function DZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const LZ=C.forwardRef(DZ),MZ=LZ;function FZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}const PZ=C.forwardRef(FZ),BZ=PZ;function UZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42"}))}const $Z=C.forwardRef(UZ),zZ=$Z;function HZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"}))}const jZ=C.forwardRef(HZ),AL=jZ;function GZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const VZ=C.forwardRef(GZ),CL=VZ;function WZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"}))}const qZ=C.forwardRef(WZ),KZ=qZ;function YZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"}))}const XZ=C.forwardRef(YZ),ZZ=XZ;function QZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"}))}const JZ=C.forwardRef(QZ),eQ=JZ;function tQ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}const nQ=C.forwardRef(tQ),kL=nQ;function rQ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const iQ=C.forwardRef(rQ),w9=iQ,zi=ut.forwardRef((e,t)=>{const[n,r]=C.useState(!1),i=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(GX,{"data-tooltip-id":`header_button_${e.text}`,inverted:e.inverted,disabled:e.disabled,onMouseEnter:()=>{e.disabled||r(!0)},onMouseLeave:()=>{r(!1)},onClick:e.onClick,onKeyDown:e.onKeyDown,className:e.className,ref:t,tabIndex:e.tabIndex,children:e.children}),i&&u9.createPortal(I.jsx(au,{id:`header_button_${e.text}`,place:"bottom",children:e.text}),i)]})});function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}const KC=["http","https","mailto","tel"];function aQ(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT - */var gX=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const fD=Hi(gX);function wd(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?XA(e.position):"start"in e||"end"in e?XA(e):"line"in e||"column"in e?yb(e):""}function yb(e){return ZA(e&&e.line)+":"+ZA(e&&e.column)}function XA(e){return yb(e&&e.start)+"-"+yb(e&&e.end)}function ZA(e){return e&&typeof e=="number"?e:1}class va extends Error{constructor(t,n,r){const i=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}n&&("type"in n||"position"in n?n.position&&(a=n.position):"start"in n||"end"in n?a=n:("line"in n||"column"in n)&&(a.start=n)),this.name=wd(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}va.prototype.file="";va.prototype.name="";va.prototype.reason="";va.prototype.message="";va.prototype.stack="";va.prototype.fatal=null;va.prototype.column=null;va.prototype.line=null;va.prototype.source=null;va.prototype.ruleId=null;va.prototype.position=null;const ao={basename:mX,dirname:bX,extname:EX,join:vX,sep:"/"};function mX(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xp(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function bX(e){if(xp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function EX(e){xp(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function vX(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function _X(e,t){let n="",r=0,i=-1,a=0,o=-1,s,u;for(;++o<=e.length;){if(o2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function xp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const TX={cwd:SX};function SX(){return"/"}function _b(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function wX(e){if(typeof e=="string")e=new URL(e);else if(!_b(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return AX(e)}function AX(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||lh.call(t,i)},iC=function(t,n){eC&&n.name==="__proto__"?eC(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},aC=function(t,n){if(n==="__proto__")if(lh.call(t,n)){if(tC)return tC(t,n).value}else return;return t[n]},xX=function e(){var t,n,r,i,a,o,s=arguments[0],u=1,c=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});uo.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(c){const p=c;if(s&&n)throw p;return i(p)}s||(u instanceof Promise?u.then(a,i):u instanceof Error?i(u):a(u))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const RX=bD().freeze(),mD={}.hasOwnProperty;function bD(){const e=kX(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=u,a.parse=c,a.stringify=p,a.run=f,a.runSync=m,a.process=g,a.processSync=E,a;function a(){const b=bD();let T=-1;for(;++T{if(k||!R||!B)D(k);else{const W=a.stringify(R,B);W==null||(DX(W)?B.value=W:B.result=W),D(k,B)}});function D(k,R){k||!R?w(k):y?y(R):T(null,R)}}}function E(b){let T;a.freeze(),o3("processSync",a.Parser),s3("processSync",a.Compiler);const v=Hc(b);return a.process(v,y),lC("processSync","process",T),v;function y(w){T=!0,JA(w)}}}function oC(e,t){return typeof e=="function"&&e.prototype&&(NX(e.prototype)||t in e.prototype)}function NX(e){let t;for(t in e)if(mD.call(e,t))return!0;return!1}function o3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function s3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function l3(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function sC(e){if(!Tb(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function lC(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Hc(e){return OX(e)?e:new hD(e)}function OX(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function DX(e){return typeof e=="string"||fD(e)}const LX={};function MX(e,t){const n=t||LX,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ED(e,r,i)}function ED(e,t,n){if(FX(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return uC(e.children,t,n)}return Array.isArray(e)?uC(e,t,n):""}function uC(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Fi(e,e.length,0,t),e):t}const cC={}.hasOwnProperty;function vD(e){const t={};let n=-1;for(;++no))return;const R=t.events.length;let B=R,W,P;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(W){P=t.events[B][1].end;break}W=!0}for(v(r),k=R;kw;){const D=n[A];t.containerState=D[1],D[0].exit.call(t,e)}n.length=w}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function qX(e,t,n){return Gt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ig(e){if(e===null||hn(e)||hu(e))return 1;if(S2(e))return 2}function w2(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);pC(f,-u),pC(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=la(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=la(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=la(c,w2(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=la(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=la(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Fi(e,r-1,n-r+3,c),n=r+c.length-p-2;break}}for(n=-1;++n0&&Dt(k)?Gt(e,y,"linePrefix",a+1)(k):y(k)}function y(k){return k===null||gt(k)?e.check(hC,b,A)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||gt(k)?(e.exit("codeFlowValue"),y(k)):(e.consume(k),w)}function A(k){return e.exit("codeFenced"),t(k)}function D(k,R,B){let W=0;return P;function P(de){return k.enter("lineEnding"),k.consume(de),k.exit("lineEnding"),Q}function Q(de){return k.enter("codeFencedFence"),Dt(de)?Gt(k,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(de):z(de)}function z(de){return de===s?(k.enter("codeFencedFenceSequence"),le(de)):B(de)}function le(de){return de===s?(W++,k.consume(de),le):W>=o?(k.exit("codeFencedFenceSequence"),Dt(de)?Gt(k,he,"whitespace")(de):he(de)):B(de)}function he(de){return de===null||gt(de)?(k.exit("codeFencedFence"),R(de)):B(de)}}}function aZ(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const u3={name:"codeIndented",tokenize:sZ},oZ={tokenize:lZ,partial:!0};function sZ(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Gt(e,a,"linePrefix",4+1)(c)}function a(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):gt(c)?e.attempt(oZ,o,u)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||gt(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function u(c){return e.exit("codeIndented"),t(c)}}function lZ(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Gt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):gt(o)?i(o):n(o)}}const uZ={name:"codeText",tokenize:pZ,resolve:cZ,previous:dZ};function cZ(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function wD(e,t,n,r,i,a,o,s,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return f;function f(v){return v===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(v),e.exit(a),m):v===null||v===32||v===41||rg(v)?n(v):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(v))}function m(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===62?(e.exit("chunkString"),e.exit(s),m(v)):v===null||v===60||gt(v)?n(v):(e.consume(v),v===92?E:g)}function E(v){return v===60||v===62||v===92?(e.consume(v),g):g(v)}function b(v){return!p&&(v===null||v===41||hn(v))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(v)):p999||g===null||g===91||g===93&&!u||g===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):gt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||gt(g)||s++>999?(e.exit("chunkString"),p(g)):(e.consume(g),u||(u=!Dt(g)),g===92?m:f)}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,f):f(g)}}function CD(e,t,n,r,i,a){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,u):n(m)}function u(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),c(m))}function c(m){return m===o?(e.exit(a),u(o)):m===null?n(m):gt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Gt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===o||m===null||gt(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:p)}function f(m){return m===o||m===92?(e.consume(m),p):p(m)}}function Ad(e,t){let n;return r;function r(i){return gt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Dt(i)?Gt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Ha(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vZ={name:"definition",tokenize:_Z},yZ={tokenize:TZ,partial:!0};function _Z(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return AD.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return i=Ha(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return hn(g)?Ad(e,c)(g):c(g)}function c(g){return wD(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(yZ,f,f)(g)}function f(g){return Dt(g)?Gt(e,m,"whitespace")(g):m(g)}function m(g){return g===null||gt(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function TZ(e,t,n){return r;function r(s){return hn(s)?Ad(e,i)(s):n(s)}function i(s){return CD(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Dt(s)?Gt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||gt(s)?t(s):n(s)}}const SZ={name:"hardBreakEscape",tokenize:wZ};function wZ(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return gt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const AZ={name:"headingAtx",tokenize:xZ,resolve:CZ};function CZ(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Fi(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function xZ(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||hn(p)?(e.exit("atxHeadingSequence"),s(p)):n(p)}function s(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||gt(p)?(e.exit("atxHeading"),t(p)):Dt(p)?Gt(e,s,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),s(p))}function c(p){return p===null||p===35||hn(p)?(e.exit("atxHeadingText"),s(p)):(e.consume(p),c)}}const kZ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],mC=["pre","script","style","textarea"],IZ={name:"htmlFlow",tokenize:DZ,resolveTo:OZ,concrete:!0},RZ={tokenize:MZ,partial:!0},NZ={tokenize:LZ,partial:!0};function OZ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function DZ(e,t,n){const r=this;let i,a,o,s,u;return c;function c(O){return p(O)}function p(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),f}function f(O){return O===33?(e.consume(O),m):O===47?(e.consume(O),a=!0,b):O===63?(e.consume(O),i=3,r.interrupt?t:N):Qr(O)?(e.consume(O),o=String.fromCharCode(O),T):n(O)}function m(O){return O===45?(e.consume(O),i=2,g):O===91?(e.consume(O),i=5,s=0,E):Qr(O)?(e.consume(O),i=4,r.interrupt?t:N):n(O)}function g(O){return O===45?(e.consume(O),r.interrupt?t:N):n(O)}function E(O){const re="CDATA[";return O===re.charCodeAt(s++)?(e.consume(O),s===re.length?r.interrupt?t:z:E):n(O)}function b(O){return Qr(O)?(e.consume(O),o=String.fromCharCode(O),T):n(O)}function T(O){if(O===null||O===47||O===62||hn(O)){const re=O===47,Te=o.toLowerCase();return!re&&!a&&mC.includes(Te)?(i=1,r.interrupt?t(O):z(O)):kZ.includes(o.toLowerCase())?(i=6,re?(e.consume(O),v):r.interrupt?t(O):z(O)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(O):a?y(O):w(O))}return O===45||$r(O)?(e.consume(O),o+=String.fromCharCode(O),T):n(O)}function v(O){return O===62?(e.consume(O),r.interrupt?t:z):n(O)}function y(O){return Dt(O)?(e.consume(O),y):P(O)}function w(O){return O===47?(e.consume(O),P):O===58||O===95||Qr(O)?(e.consume(O),A):Dt(O)?(e.consume(O),w):P(O)}function A(O){return O===45||O===46||O===58||O===95||$r(O)?(e.consume(O),A):D(O)}function D(O){return O===61?(e.consume(O),k):Dt(O)?(e.consume(O),D):w(O)}function k(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),u=O,R):Dt(O)?(e.consume(O),k):B(O)}function R(O){return O===u?(e.consume(O),u=null,W):O===null||gt(O)?n(O):(e.consume(O),R)}function B(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||hn(O)?D(O):(e.consume(O),B)}function W(O){return O===47||O===62||Dt(O)?w(O):n(O)}function P(O){return O===62?(e.consume(O),Q):n(O)}function Q(O){return O===null||gt(O)?z(O):Dt(O)?(e.consume(O),Q):n(O)}function z(O){return O===45&&i===2?(e.consume(O),fe):O===60&&i===1?(e.consume(O),Z):O===62&&i===4?(e.consume(O),me):O===63&&i===3?(e.consume(O),N):O===93&&i===5?(e.consume(O),ce):gt(O)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(RZ,oe,le)(O)):O===null||gt(O)?(e.exit("htmlFlowData"),le(O)):(e.consume(O),z)}function le(O){return e.check(NZ,he,oe)(O)}function he(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),de}function de(O){return O===null||gt(O)?le(O):(e.enter("htmlFlowData"),z(O))}function fe(O){return O===45?(e.consume(O),N):z(O)}function Z(O){return O===47?(e.consume(O),o="",V):z(O)}function V(O){if(O===62){const re=o.toLowerCase();return mC.includes(re)?(e.consume(O),me):z(O)}return Qr(O)&&o.length<8?(e.consume(O),o+=String.fromCharCode(O),V):z(O)}function ce(O){return O===93?(e.consume(O),N):z(O)}function N(O){return O===62?(e.consume(O),me):O===45&&i===2?(e.consume(O),N):z(O)}function me(O){return O===null||gt(O)?(e.exit("htmlFlowData"),oe(O)):(e.consume(O),me)}function oe(O){return e.exit("htmlFlow"),t(O)}}function LZ(e,t,n){const r=this;return i;function i(o){return gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function MZ(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(kp,t,n)}}const FZ={name:"htmlText",tokenize:PZ};function PZ(e,t,n){const r=this;let i,a,o;return s;function s(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),u}function u(N){return N===33?(e.consume(N),c):N===47?(e.consume(N),D):N===63?(e.consume(N),w):Qr(N)?(e.consume(N),B):n(N)}function c(N){return N===45?(e.consume(N),p):N===91?(e.consume(N),a=0,E):Qr(N)?(e.consume(N),y):n(N)}function p(N){return N===45?(e.consume(N),g):n(N)}function f(N){return N===null?n(N):N===45?(e.consume(N),m):gt(N)?(o=f,Z(N)):(e.consume(N),f)}function m(N){return N===45?(e.consume(N),g):f(N)}function g(N){return N===62?fe(N):N===45?m(N):f(N)}function E(N){const me="CDATA[";return N===me.charCodeAt(a++)?(e.consume(N),a===me.length?b:E):n(N)}function b(N){return N===null?n(N):N===93?(e.consume(N),T):gt(N)?(o=b,Z(N)):(e.consume(N),b)}function T(N){return N===93?(e.consume(N),v):b(N)}function v(N){return N===62?fe(N):N===93?(e.consume(N),v):b(N)}function y(N){return N===null||N===62?fe(N):gt(N)?(o=y,Z(N)):(e.consume(N),y)}function w(N){return N===null?n(N):N===63?(e.consume(N),A):gt(N)?(o=w,Z(N)):(e.consume(N),w)}function A(N){return N===62?fe(N):w(N)}function D(N){return Qr(N)?(e.consume(N),k):n(N)}function k(N){return N===45||$r(N)?(e.consume(N),k):R(N)}function R(N){return gt(N)?(o=R,Z(N)):Dt(N)?(e.consume(N),R):fe(N)}function B(N){return N===45||$r(N)?(e.consume(N),B):N===47||N===62||hn(N)?W(N):n(N)}function W(N){return N===47?(e.consume(N),fe):N===58||N===95||Qr(N)?(e.consume(N),P):gt(N)?(o=W,Z(N)):Dt(N)?(e.consume(N),W):fe(N)}function P(N){return N===45||N===46||N===58||N===95||$r(N)?(e.consume(N),P):Q(N)}function Q(N){return N===61?(e.consume(N),z):gt(N)?(o=Q,Z(N)):Dt(N)?(e.consume(N),Q):W(N)}function z(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),i=N,le):gt(N)?(o=z,Z(N)):Dt(N)?(e.consume(N),z):(e.consume(N),he)}function le(N){return N===i?(e.consume(N),i=void 0,de):N===null?n(N):gt(N)?(o=le,Z(N)):(e.consume(N),le)}function he(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||hn(N)?W(N):(e.consume(N),he)}function de(N){return N===47||N===62||hn(N)?W(N):n(N)}function fe(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function Z(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),V}function V(N){return Dt(N)?Gt(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):ce(N)}function ce(N){return e.enter("htmlTextData"),o(N)}}const FE={name:"labelEnd",tokenize:jZ,resolveTo:HZ,resolveAll:zZ},BZ={tokenize:GZ},UZ={tokenize:VZ},$Z={tokenize:WZ};function zZ(e){let t=-1;for(;++t=3&&(c===null||gt(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),Dt(c)?Gt(e,s,"whitespace")(c):s(c))}}const ui={name:"list",tokenize:tQ,continuation:{tokenize:nQ},exit:iQ},JZ={tokenize:aQ,partial:!0},eQ={tokenize:rQ,partial:!0};function tQ(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(g){const E=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:Sb(g)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(uh,n,c)(g):c(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return Sb(g)&&++o<10?(e.consume(g),u):(!r.interrupt||o<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(kp,r.interrupt?n:p,e.attempt(JZ,m,f))}function p(g){return r.containerState.initialBlankLine=!0,a++,m(g)}function f(g){return Dt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function nQ(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(kp,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Gt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Dt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eQ,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Gt(e,e.attempt(ui,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function rQ(e,t,n){const r=this;return Gt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function iQ(e){e.exit(this.containerState.type)}function aQ(e,t,n){const r=this;return Gt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!Dt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const bC={name:"setextUnderline",tokenize:sQ,resolveTo:oQ};function oQ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function sQ(e,t,n){const r=this;let i;return a;function a(c){let p=r.events.length,f;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){f=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Dt(c)?Gt(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||gt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const lQ={tokenize:uQ};function uQ(e){const t=this,n=e.attempt(kp,r,e.attempt(this.parser.constructs.flowInitial,i,Gt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(hZ,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const cQ={resolveAll:kD()},dQ=xD("string"),pQ=xD("text");function xD(e){return{tokenize:t,resolveAll:kD(e==="text"?fQ:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(p){return c(p)?a(p):s(p)}function s(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return c(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function c(p){if(p===null)return!0;const f=i[p];let m=-1;if(f)for(;++m-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function mQ(e,t){let n=-1;const r=[];let i;for(;++ne.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function lQ(e){if(Hp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function uQ(e){Hp(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function cQ(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function pQ(e,t){let n="",r=0,i=-1,a=0,o=-1,s,u;for(;++o<=e.length;){if(o2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Hp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const fQ={cwd:hQ};function hQ(){return"/"}function ey(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function gQ(e){if(typeof e=="string")e=new URL(e);else if(!ey(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mQ(e)}function mQ(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||kh.call(t,i)},rk=function(t,n){JC&&n.name==="__proto__"?JC(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ik=function(t,n){if(n==="__proto__")if(kh.call(t,n)){if(ek)return ek(t,n).value}else return;return t[n]},yQ=function e(){var t,n,r,i,a,o,s=arguments[0],u=1,c=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});uo.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(c){const p=c;if(s&&n)throw p;return i(p)}s||(u instanceof Promise?u.then(a,i):u instanceof Error?i(u):a(u))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const _Q=OL().freeze(),NL={}.hasOwnProperty;function OL(){const e=EQ(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=u,a.parse=c,a.stringify=p,a.run=f,a.runSync=m,a.process=g,a.processSync=b,a;function a(){const y=OL();let T=-1;for(;++T{if(k||!N||!B)R(k);else{const q=a.stringify(N,B);q==null||(wQ(q)?B.value=q:B.result=q),R(k,B)}});function R(k,N){k||!N?w(k):v?v(N):T(null,N)}}}function b(y){let T;a.freeze(),D3("processSync",a.Parser),L3("processSync",a.Compiler);const E=ed(y);return a.process(E,v),sk("processSync","process",T),E;function v(w){T=!0,QC(w)}}}function ak(e,t){return typeof e=="function"&&e.prototype&&(TQ(e.prototype)||t in e.prototype)}function TQ(e){let t;for(t in e)if(NL.call(e,t))return!0;return!1}function D3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function L3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function M3(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ok(e){if(!ty(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sk(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ed(e){return SQ(e)?e:new IL(e)}function SQ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wQ(e){return typeof e=="string"||xL(e)}const AQ={};function CQ(e,t){const n=t||AQ,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return DL(e,r,i)}function DL(e,t,n){if(kQ(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lk(e.children,t,n)}return Array.isArray(e)?lk(e,t,n):""}function lk(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Bi(e,e.length,0,t),e):t}const uk={}.hasOwnProperty;function LL(e){const t={};let n=-1;for(;++no))return;const N=t.events.length;let B=N,q,P;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(q){P=t.events[B][1].end;break}q=!0}for(E(r),k=N;kw;){const R=n[A];t.containerState=R[1],R[0].exit.call(t,e)}n.length=w}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function BQ(e,t,n){return Gt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ng(e){if(e===null||gn(e)||_u(e))return 1;if(Ym(e))return 2}function Xm(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);dk(f,-u),dk(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ca(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ca(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=ca(c,Xm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ca(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=ca(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Bi(e,r-1,n-r+3,c),n=r+c.length-p-2;break}}for(n=-1;++n0&&Dt(k)?Gt(e,v,"linePrefix",a+1)(k):v(k)}function v(k){return k===null||gt(k)?e.check(fk,y,A)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||gt(k)?(e.exit("codeFlowValue"),v(k)):(e.consume(k),w)}function A(k){return e.exit("codeFenced"),t(k)}function R(k,N,B){let q=0;return P;function P(ce){return k.enter("lineEnding"),k.consume(ce),k.exit("lineEnding"),Q}function Q(ce){return k.enter("codeFencedFence"),Dt(ce)?Gt(k,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ce):$(ce)}function $(ce){return ce===s?(k.enter("codeFencedFenceSequence"),oe(ce)):B(ce)}function oe(ce){return ce===s?(q++,k.consume(ce),oe):q>=o?(k.exit("codeFencedFenceSequence"),Dt(ce)?Gt(k,fe,"whitespace")(ce):fe(ce)):B(ce)}function fe(ce){return ce===null||gt(ce)?(k.exit("codeFencedFence"),N(ce)):B(ce)}}}function XQ(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const F3={name:"codeIndented",tokenize:QQ},ZQ={tokenize:JQ,partial:!0};function QQ(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Gt(e,a,"linePrefix",4+1)(c)}function a(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):gt(c)?e.attempt(ZQ,o,u)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||gt(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function u(c){return e.exit("codeIndented"),t(c)}}function JQ(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Gt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):gt(o)?i(o):n(o)}}const eJ={name:"codeText",tokenize:rJ,resolve:tJ,previous:nJ};function tJ(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function UL(e,t,n,r,i,a,o,s,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return f;function f(E){return E===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(E),e.exit(a),m):E===null||E===32||E===41||Rg(E)?n(E):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(E))}function m(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===62?(e.exit("chunkString"),e.exit(s),m(E)):E===null||E===60||gt(E)?n(E):(e.consume(E),E===92?b:g)}function b(E){return E===60||E===62||E===92?(e.consume(E),g):g(E)}function y(E){return!p&&(E===null||E===41||gn(E))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(E)):p999||g===null||g===91||g===93&&!u||g===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):gt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||gt(g)||s++>999?(e.exit("chunkString"),p(g)):(e.consume(g),u||(u=!Dt(g)),g===92?m:f)}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,f):f(g)}}function zL(e,t,n,r,i,a){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,u):n(m)}function u(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),c(m))}function c(m){return m===o?(e.exit(a),u(o)):m===null?n(m):gt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Gt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===o||m===null||gt(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:p)}function f(m){return m===o||m===92?(e.consume(m),p):p(m)}}function Ud(e,t){let n;return r;function r(i){return gt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Dt(i)?Gt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Wa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const cJ={name:"definition",tokenize:pJ},dJ={tokenize:fJ,partial:!0};function pJ(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return $L.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return i=Wa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return gn(g)?Ud(e,c)(g):c(g)}function c(g){return UL(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(dJ,f,f)(g)}function f(g){return Dt(g)?Gt(e,m,"whitespace")(g):m(g)}function m(g){return g===null||gt(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function fJ(e,t,n){return r;function r(s){return gn(s)?Ud(e,i)(s):n(s)}function i(s){return zL(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Dt(s)?Gt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||gt(s)?t(s):n(s)}}const hJ={name:"hardBreakEscape",tokenize:gJ};function gJ(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return gt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const mJ={name:"headingAtx",tokenize:yJ,resolve:bJ};function bJ(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Bi(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function yJ(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||gn(p)?(e.exit("atxHeadingSequence"),s(p)):n(p)}function s(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||gt(p)?(e.exit("atxHeading"),t(p)):Dt(p)?Gt(e,s,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),s(p))}function c(p){return p===null||p===35||gn(p)?(e.exit("atxHeadingText"),s(p)):(e.consume(p),c)}}const EJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gk=["pre","script","style","textarea"],vJ={name:"htmlFlow",tokenize:wJ,resolveTo:SJ,concrete:!0},_J={tokenize:CJ,partial:!0},TJ={tokenize:AJ,partial:!0};function SJ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function wJ(e,t,n){const r=this;let i,a,o,s,u;return c;function c(L){return p(L)}function p(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),f}function f(L){return L===33?(e.consume(L),m):L===47?(e.consume(L),a=!0,y):L===63?(e.consume(L),i=3,r.interrupt?t:D):ti(L)?(e.consume(L),o=String.fromCharCode(L),T):n(L)}function m(L){return L===45?(e.consume(L),i=2,g):L===91?(e.consume(L),i=5,s=0,b):ti(L)?(e.consume(L),i=4,r.interrupt?t:D):n(L)}function g(L){return L===45?(e.consume(L),r.interrupt?t:D):n(L)}function b(L){const ie="CDATA[";return L===ie.charCodeAt(s++)?(e.consume(L),s===ie.length?r.interrupt?t:$:b):n(L)}function y(L){return ti(L)?(e.consume(L),o=String.fromCharCode(L),T):n(L)}function T(L){if(L===null||L===47||L===62||gn(L)){const ie=L===47,Se=o.toLowerCase();return!ie&&!a&&gk.includes(Se)?(i=1,r.interrupt?t(L):$(L)):EJ.includes(o.toLowerCase())?(i=6,ie?(e.consume(L),E):r.interrupt?t(L):$(L)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):a?v(L):w(L))}return L===45||jr(L)?(e.consume(L),o+=String.fromCharCode(L),T):n(L)}function E(L){return L===62?(e.consume(L),r.interrupt?t:$):n(L)}function v(L){return Dt(L)?(e.consume(L),v):P(L)}function w(L){return L===47?(e.consume(L),P):L===58||L===95||ti(L)?(e.consume(L),A):Dt(L)?(e.consume(L),w):P(L)}function A(L){return L===45||L===46||L===58||L===95||jr(L)?(e.consume(L),A):R(L)}function R(L){return L===61?(e.consume(L),k):Dt(L)?(e.consume(L),R):w(L)}function k(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),u=L,N):Dt(L)?(e.consume(L),k):B(L)}function N(L){return L===u?(e.consume(L),u=null,q):L===null||gt(L)?n(L):(e.consume(L),N)}function B(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||gn(L)?R(L):(e.consume(L),B)}function q(L){return L===47||L===62||Dt(L)?w(L):n(L)}function P(L){return L===62?(e.consume(L),Q):n(L)}function Q(L){return L===null||gt(L)?$(L):Dt(L)?(e.consume(L),Q):n(L)}function $(L){return L===45&&i===2?(e.consume(L),De):L===60&&i===1?(e.consume(L),H):L===62&&i===4?(e.consume(L),pe):L===63&&i===3?(e.consume(L),D):L===93&&i===5?(e.consume(L),se):gt(L)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(_J,le,oe)(L)):L===null||gt(L)?(e.exit("htmlFlowData"),oe(L)):(e.consume(L),$)}function oe(L){return e.check(TJ,fe,le)(L)}function fe(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ce}function ce(L){return L===null||gt(L)?oe(L):(e.enter("htmlFlowData"),$(L))}function De(L){return L===45?(e.consume(L),D):$(L)}function H(L){return L===47?(e.consume(L),o="",W):$(L)}function W(L){if(L===62){const ie=o.toLowerCase();return gk.includes(ie)?(e.consume(L),pe):$(L)}return ti(L)&&o.length<8?(e.consume(L),o+=String.fromCharCode(L),W):$(L)}function se(L){return L===93?(e.consume(L),D):$(L)}function D(L){return L===62?(e.consume(L),pe):L===45&&i===2?(e.consume(L),D):$(L)}function pe(L){return L===null||gt(L)?(e.exit("htmlFlowData"),le(L)):(e.consume(L),pe)}function le(L){return e.exit("htmlFlow"),t(L)}}function AJ(e,t,n){const r=this;return i;function i(o){return gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function CJ(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(jp,t,n)}}const kJ={name:"htmlText",tokenize:xJ};function xJ(e,t,n){const r=this;let i,a,o;return s;function s(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),u}function u(D){return D===33?(e.consume(D),c):D===47?(e.consume(D),R):D===63?(e.consume(D),w):ti(D)?(e.consume(D),B):n(D)}function c(D){return D===45?(e.consume(D),p):D===91?(e.consume(D),a=0,b):ti(D)?(e.consume(D),v):n(D)}function p(D){return D===45?(e.consume(D),g):n(D)}function f(D){return D===null?n(D):D===45?(e.consume(D),m):gt(D)?(o=f,H(D)):(e.consume(D),f)}function m(D){return D===45?(e.consume(D),g):f(D)}function g(D){return D===62?De(D):D===45?m(D):f(D)}function b(D){const pe="CDATA[";return D===pe.charCodeAt(a++)?(e.consume(D),a===pe.length?y:b):n(D)}function y(D){return D===null?n(D):D===93?(e.consume(D),T):gt(D)?(o=y,H(D)):(e.consume(D),y)}function T(D){return D===93?(e.consume(D),E):y(D)}function E(D){return D===62?De(D):D===93?(e.consume(D),E):y(D)}function v(D){return D===null||D===62?De(D):gt(D)?(o=v,H(D)):(e.consume(D),v)}function w(D){return D===null?n(D):D===63?(e.consume(D),A):gt(D)?(o=w,H(D)):(e.consume(D),w)}function A(D){return D===62?De(D):w(D)}function R(D){return ti(D)?(e.consume(D),k):n(D)}function k(D){return D===45||jr(D)?(e.consume(D),k):N(D)}function N(D){return gt(D)?(o=N,H(D)):Dt(D)?(e.consume(D),N):De(D)}function B(D){return D===45||jr(D)?(e.consume(D),B):D===47||D===62||gn(D)?q(D):n(D)}function q(D){return D===47?(e.consume(D),De):D===58||D===95||ti(D)?(e.consume(D),P):gt(D)?(o=q,H(D)):Dt(D)?(e.consume(D),q):De(D)}function P(D){return D===45||D===46||D===58||D===95||jr(D)?(e.consume(D),P):Q(D)}function Q(D){return D===61?(e.consume(D),$):gt(D)?(o=Q,H(D)):Dt(D)?(e.consume(D),Q):q(D)}function $(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),i=D,oe):gt(D)?(o=$,H(D)):Dt(D)?(e.consume(D),$):(e.consume(D),fe)}function oe(D){return D===i?(e.consume(D),i=void 0,ce):D===null?n(D):gt(D)?(o=oe,H(D)):(e.consume(D),oe)}function fe(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||gn(D)?q(D):(e.consume(D),fe)}function ce(D){return D===47||D===62||gn(D)?q(D):n(D)}function De(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function H(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),W}function W(D){return Dt(D)?Gt(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):se(D)}function se(D){return e.enter("htmlTextData"),o(D)}}const A9={name:"labelEnd",tokenize:LJ,resolveTo:DJ,resolveAll:OJ},IJ={tokenize:MJ},RJ={tokenize:FJ},NJ={tokenize:PJ};function OJ(e){let t=-1;for(;++t=3&&(c===null||gt(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),Dt(c)?Gt(e,s,"whitespace")(c):s(c))}}const pi={name:"list",tokenize:WJ,continuation:{tokenize:qJ},exit:YJ},GJ={tokenize:XJ,partial:!0},VJ={tokenize:KJ,partial:!0};function WJ(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:ny(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(xh,n,c)(g):c(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return ny(g)&&++o<10?(e.consume(g),u):(!r.interrupt||o<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(jp,r.interrupt?n:p,e.attempt(GJ,m,f))}function p(g){return r.containerState.initialBlankLine=!0,a++,m(g)}function f(g){return Dt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function qJ(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(jp,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Gt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Dt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(VJ,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Gt(e,e.attempt(pi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function KJ(e,t,n){const r=this;return Gt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function YJ(e){e.exit(this.containerState.type)}function XJ(e,t,n){const r=this;return Gt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!Dt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const mk={name:"setextUnderline",tokenize:QJ,resolveTo:ZJ};function ZJ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function QJ(e,t,n){const r=this;let i;return a;function a(c){let p=r.events.length,f;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){f=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Dt(c)?Gt(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||gt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const JJ={tokenize:eee};function eee(e){const t=this,n=e.attempt(jp,r,e.attempt(this.parser.constructs.flowInitial,i,Gt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aJ,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tee={resolveAll:jL()},nee=HL("string"),ree=HL("text");function HL(e){return{tokenize:t,resolveAll:jL(e==="text"?iee:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(p){return c(p)?a(p):s(p)}function s(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return c(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function c(p){if(p===null)return!0;const f=i[p];let m=-1;if(f)for(;++m-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function see(e,t){let n=-1;const r=[];let i;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const RQ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function RD(e){return e.replace(RQ,NQ)}function NQ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return ID(n.slice(a?2:1),a?16:10)}return sp(n)||e}const ND={}.hasOwnProperty,OQ=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),DQ(n)(IQ(xQ(n).document().write(kQ()(e,t,!0))))};function DQ(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ke),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(pt),blockQuote:s(Xe),characterEscape:Q,characterReference:Q,codeFenced:s(Ve),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(Ve,u),codeText:s(dt,u),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(ot),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(Ge),hardBreakEscape:s(U),hardBreakTrailing:s(U),htmlFlow:s(ie,u),htmlFlowData:Q,htmlText:s(ie,u),htmlTextData:Q,image:s(pe),label:u,link:s(ke),listItem:s(Se),listItemValue:E,listOrdered:s(ve,g),listUnordered:s(ve),paragraph:s(Me),reference:Te,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(pt),strong:s(ze),thematicBreak:s(jt)},exit:{atxHeading:p(),atxHeadingSequence:R,autolink:p(),autolinkEmail:Re,autolinkProtocol:Le,blockQuote:p(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:ne,codeFenced:p(y),codeFencedFence:v,codeFencedFenceInfo:b,codeFencedFenceMeta:T,codeFlowValue:z,codeIndented:p(w),codeText:p(Z),codeTextData:z,data:z,definition:p(),definitionDestinationString:k,definitionLabelString:A,definitionTitleString:D,emphasis:p(),hardBreakEscape:p(he),hardBreakTrailing:p(he),htmlFlow:p(de),htmlFlowData:z,htmlText:p(fe),htmlTextData:z,image:p(ce),label:me,labelText:N,lineEnding:le,link:p(V),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:K,resourceDestinationString:oe,resourceTitleString:O,resource:re,setextHeading:p(P),setextHeadingLineSequence:W,setextHeadingText:B,strong:p(),thematicBreak:p()}};OD(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let ye={type:"root",children:[]};const We={stack:[ye],tokenStack:[],config:t,enter:c,exit:f,buffer:u,resume:m,setData:a,getData:o},at=[];let Qe=-1;for(;++Qe0){const Y=We.tokenStack[We.tokenStack.length-1];(Y[1]||vC).call(We,void 0,Y[0])}for(ye.position={start:As(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:As(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Qe=-1;++Qe{const r=this.data("settings");return OQ(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function FQ(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function PQ(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` -`}]}function BQ(e,t){const n=t.value?t.value+` -`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function UQ(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $Q(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oc(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function DD(e,t){const n=String(t.identifier).toUpperCase(),r=oc(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=i+1);const o=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function zQ(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},DD(e,{type:"footnoteReference",identifier:i,position:t.position})}function HQ(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jQ(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function LD(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function GQ(e,t){const n=e.definition(t.identifier);if(!n)return LD(e,t);const r={src:oc(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function VQ(e,t){const n={src:oc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function WQ(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function qQ(e,t){const n=e.definition(t.identifier);if(!n)return LD(e,t);const r={href:oc(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function KQ(e,t){const n={href:oc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function YQ(e,t,n){const r=e.all(t),i=n?XQ(n):MD(t),a={},o=[];if(typeof t.checked=="boolean"){const p=r[0];let f;p&&p.type==="element"&&p.tagName==="p"?f=p:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const _ee=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function VL(e){return e.replace(_ee,Tee)}function Tee(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return GL(n.slice(a?2:1),a?16:10)}return Tp(n)||e}const WL={}.hasOwnProperty,See=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),wee(n)(vee(yee(n).document().write(Eee()(e,t,!0))))};function wee(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xe),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(pt),blockQuote:s(Ze),characterEscape:Q,characterReference:Q,codeFenced:s(We),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(We,u),codeText:s(dt,u),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(ot),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(je),hardBreakEscape:s(U),hardBreakTrailing:s(U),htmlFlow:s(re,u),htmlFlowData:Q,htmlText:s(re,u),htmlTextData:Q,image:s(de),label:u,link:s(xe),listItem:s(Te),listItemValue:b,listOrdered:s(ye,g),listUnordered:s(ye),paragraph:s(Le),reference:Se,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(pt),strong:s(ze),thematicBreak:s(jt)},exit:{atxHeading:p(),atxHeadingSequence:N,autolink:p(),autolinkEmail:Re,autolinkProtocol:Me,blockQuote:p(),characterEscapeValue:$,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:te,codeFenced:p(v),codeFencedFence:E,codeFencedFenceInfo:y,codeFencedFenceMeta:T,codeFlowValue:$,codeIndented:p(w),codeText:p(H),codeTextData:$,data:$,definition:p(),definitionDestinationString:k,definitionLabelString:A,definitionTitleString:R,emphasis:p(),hardBreakEscape:p(fe),hardBreakTrailing:p(fe),htmlFlow:p(ce),htmlFlowData:$,htmlText:p(De),htmlTextData:$,image:p(se),label:pe,labelText:D,lineEnding:oe,link:p(W),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:X,resourceDestinationString:le,resourceTitleString:L,resource:ie,setextHeading:p(P),setextHeadingLineSequence:q,setextHeadingText:B,strong:p(),thematicBreak:p()}};qL(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let Ee={type:"root",children:[]};const qe={stack:[Ee],tokenStack:[],config:t,enter:c,exit:f,buffer:u,resume:m,setData:a,getData:o},j=[];let me=-1;for(;++me0){const Ve=qe.tokenStack[qe.tokenStack.length-1];(Ve[1]||yk).call(qe,void 0,Ve[0])}for(Ee.position={start:Ds(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Ds(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me{const r=this.data("settings");return See(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function kee(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function xee(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` +`}]}function Iee(e,t){const n=t.value?t.value+` +`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Ree(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nee(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bc(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function KL(e,t){const n=String(t.identifier).toUpperCase(),r=bc(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=i+1);const o=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function Oee(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},KL(e,{type:"footnoteReference",identifier:i,position:t.position})}function Dee(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lee(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function YL(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Mee(e,t){const n=e.definition(t.identifier);if(!n)return YL(e,t);const r={src:bc(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function Fee(e,t){const n={src:bc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Pee(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Bee(e,t){const n=e.definition(t.identifier);if(!n)return YL(e,t);const r={href:bc(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Uee(e,t){const n={href:bc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $ee(e,t,n){const r=e.all(t),i=n?zee(n):XL(t),a={},o=[];if(typeof t.checked=="boolean"){const p=r[0];let f;p&&p.type==="element"&&p.tagName==="p"?f=p:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function ZQ(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i-1?r.offset:null}}}function nJ(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Ip(t.children[1]),u=A2(t.children[t.children.length-1]);s.line&&u.line&&(o.position={start:s,end:u}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function rJ(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let u=-1;const c=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(TC(t.slice(i),i>0,!1)),a.join("")}function TC(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===yC||a===_C;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===yC||a===_C;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function oJ(e,t){const n={type:"text",value:aJ(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function sJ(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const lJ={blockquote:FQ,break:PQ,code:BQ,delete:UQ,emphasis:$Q,footnoteReference:DD,footnote:zQ,heading:HQ,html:jQ,imageReference:GQ,image:VQ,inlineCode:WQ,linkReference:qQ,link:KQ,listItem:YQ,list:ZQ,paragraph:QQ,root:JQ,strong:eJ,table:nJ,tableCell:iJ,tableRow:rJ,text:oJ,thematicBreak:sJ,toml:d0,yaml:d0,definition:d0,footnoteDefinition:d0};function d0(){return null}const C2=function(e){if(e==null)return pJ;if(typeof e=="string")return dJ(e);if(typeof e=="object")return Array.isArray(e)?uJ(e):cJ(e);if(typeof e=="function")return x2(e);throw new Error("Expected function, string, or object as test")};function uJ(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let m=[],g,E,b;if((!t||i(s,u,c[c.length-1]||null))&&(m=hJ(n(s,c)),m[0]===Ab))return m;if(s.children&&m[0]!==Cd)for(E=(r?s.children.length:-1)+a,b=c.concat(s);E>-1&&E{const i=wC(r.identifier);i&&!SC.call(t,i)&&(t[i]=r)}),n;function n(r){const i=wC(r);return i&&SC.call(t,i)?t[i]:null}}function wC(e){return String(e||"").toUpperCase()}const ag={}.hasOwnProperty;function bJ(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteLabelTagName=n.footnoteLabelTagName||"h2",o.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,o.handlers={...lJ,...n.handlers},o.definition=mJ(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=EJ,o.applyData=vJ,o.one=s,o.all=u,o.wrap=_J,o.augment=a,Ui(e,"footnoteDefinition",c=>{const p=String(c.identifier).toUpperCase();ag.call(i,p)||(i[p]=c)}),o;function a(c,p){if(c&&"data"in c&&c.data){const f=c.data;f.hName&&(p.type!=="element"&&(p={type:"element",tagName:"",properties:{},children:[]}),p.tagName=f.hName),p.type==="element"&&f.hProperties&&(p.properties={...p.properties,...f.hProperties}),"children"in p&&p.children&&f.hChildren&&(p.children=f.hChildren)}if(c){const f="type"in c?c:{position:c};gJ(f)||(p.position={start:Ip(f),end:A2(f)})}return p}function o(c,p,f,m){return Array.isArray(f)&&(m=f,f={}),a(c,{type:"element",tagName:p,properties:f||{},children:m||[]})}function s(c,p){return BD(o,c,p)}function u(c){return PE(o,c)}}function EJ(e,t){e.position&&(t.position=tJ(e))}function vJ(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&a&&(n.properties={...n.properties,...a}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function BD(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return ag.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:PE(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):yJ(e,t)}function PE(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i1}function Hee(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i-1?r.offset:null}}}function qee(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Gp(t.children[1]),u=Zm(t.children[t.children.length-1]);s.line&&u.line&&(o.position={start:s,end:u}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Kee(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let u=-1;const c=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(_k(t.slice(i),i>0,!1)),a.join("")}function _k(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Ek||a===vk;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Ek||a===vk;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Zee(e,t){const n={type:"text",value:Xee(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Qee(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Jee={blockquote:kee,break:xee,code:Iee,delete:Ree,emphasis:Nee,footnoteReference:KL,footnote:Oee,heading:Dee,html:Lee,imageReference:Mee,image:Fee,inlineCode:Pee,linkReference:Bee,link:Uee,listItem:$ee,list:Hee,paragraph:jee,root:Gee,strong:Vee,table:qee,tableCell:Yee,tableRow:Kee,text:Zee,thematicBreak:Qee,toml:C0,yaml:C0,definition:C0,footnoteDefinition:C0};function C0(){return null}const Qm=function(e){if(e==null)return rte;if(typeof e=="string")return nte(e);if(typeof e=="object")return Array.isArray(e)?ete(e):tte(e);if(typeof e=="function")return Jm(e);throw new Error("Expected function, string, or object as test")};function ete(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let m=[],g,b,y;if((!t||i(s,u,c[c.length-1]||null))&&(m=ate(n(s,c)),m[0]===iy))return m;if(s.children&&m[0]!==$d)for(b=(r?s.children.length:-1)+a,y=c.concat(s);b>-1&&b{const i=Sk(r.identifier);i&&!Tk.call(t,i)&&(t[i]=r)}),n;function n(r){const i=Sk(r);return i&&Tk.call(t,i)?t[i]:null}}function Sk(e){return String(e||"").toUpperCase()}const Og={}.hasOwnProperty;function lte(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteLabelTagName=n.footnoteLabelTagName||"h2",o.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,o.handlers={...Jee,...n.handlers},o.definition=ste(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=ute,o.applyData=cte,o.one=s,o.all=u,o.wrap=pte,o.augment=a,Hi(e,"footnoteDefinition",c=>{const p=String(c.identifier).toUpperCase();Og.call(i,p)||(i[p]=c)}),o;function a(c,p){if(c&&"data"in c&&c.data){const f=c.data;f.hName&&(p.type!=="element"&&(p={type:"element",tagName:"",properties:{},children:[]}),p.tagName=f.hName),p.type==="element"&&f.hProperties&&(p.properties={...p.properties,...f.hProperties}),"children"in p&&p.children&&f.hChildren&&(p.children=f.hChildren)}if(c){const f="type"in c?c:{position:c};ote(f)||(p.position={start:Gp(f),end:Zm(f)})}return p}function o(c,p,f,m){return Array.isArray(f)&&(m=f,f={}),a(c,{type:"element",tagName:p,properties:f||{},children:m||[]})}function s(c,p){return JL(o,c,p)}function u(c){return C9(o,c)}}function ute(e,t){e.position&&(t.position=Wee(e))}function cte(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&a&&(n.properties={...n.properties,...a}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function JL(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Og.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:C9(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):dte(e,t)}function C9(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i0&&n.push({type:"text",value:` -`}),n}function TJ(e){const t=[];let n=-1;for(;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&f.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(f)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const f=c.children[c.children.length-1];f&&f.type==="text"?f.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...u)}else i.push(...u);const p={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,p),t.push(p)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` +`}),n}function fte(e){const t=[];let n=-1;for(;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&f.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(f)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const f=c.children[c.children.length-1];f&&f.type==="text"?f.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...u)}else i.push(...u);const p={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,p),t.push(p)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:` -`}]}}function UD(e,t){const n=bJ(e,t),r=n.one(e,null),i=TJ(n);return i&&r.children.push({type:"text",value:` -`},i),Array.isArray(r)?{type:"root",children:r}:r}const SJ=function(e,t){return e&&"run"in e?AJ(e,t):CJ(e||t)},wJ=SJ;function AJ(e,t){return(n,r,i)=>{e.run(UD(n,t),r,a=>{i(a)})}}function CJ(e){return t=>UD(t,e)}var $D={exports:{}},xJ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kJ=xJ,IJ=kJ;function zD(){}function HD(){}HD.resetWarningCache=zD;var RJ=function(){function e(r,i,a,o,s,u){if(u!==IJ){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:HD,resetWarningCache:zD};return n.PropTypes=n,n};$D.exports=RJ();var NJ=$D.exports;const Ee=Hi(NJ);class Rp{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Rp.prototype.property={};Rp.prototype.normal={};Rp.prototype.space=null;function jD(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&FJ.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(CC,UJ);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!CC.test(a)){let o=a.replace(PJ,BJ);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=BE}return new i(r,t)}function BJ(e){return"-"+e.toLowerCase()}function UJ(e){return e.charAt(1).toUpperCase()}const xC={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"},Tu=jD([WD,VD,YD,XD,LJ],"html"),yl=jD([WD,VD,YD,XD,MJ],"svg");function $J(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Ui(t,"element",(n,r,i)=>{const a=i;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(n,r,a)),o&&typeof r=="number")return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}function ZD(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function og(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function UE(e){return e.join(" ").trim()}function lp(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function $E(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var zE={exports:{}},kC=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zJ=/\n/g,HJ=/^\s*/,jJ=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,GJ=/^:\s*/,VJ=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,WJ=/^[;\s]*/,qJ=/^\s+|\s+$/g,KJ=` -`,IC="/",RC="*",Kl="",YJ="comment",XJ="declaration",ZJ=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(E){var b=E.match(zJ);b&&(n+=b.length);var T=E.lastIndexOf(KJ);r=~T?E.length-T:r+E.length}function a(){var E={line:n,column:r};return function(b){return b.position=new o(E),c(),b}}function o(E){this.start=E,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(E){var b=new Error(t.source+":"+n+":"+r+": "+E);if(b.reason=E,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function u(E){var b=E.exec(e);if(b){var T=b[0];return i(T),e=e.slice(T.length),b}}function c(){u(HJ)}function p(E){var b;for(E=E||[];b=f();)b!==!1&&E.push(b);return E}function f(){var E=a();if(!(IC!=e.charAt(0)||RC!=e.charAt(1))){for(var b=2;Kl!=e.charAt(b)&&(RC!=e.charAt(b)||IC!=e.charAt(b+1));)++b;if(b+=2,Kl===e.charAt(b-1))return s("End of comment missing");var T=e.slice(2,b-2);return r+=2,i(T),e=e.slice(b),r+=2,E({type:YJ,comment:T})}}function m(){var E=a(),b=u(jJ);if(b){if(f(),!u(GJ))return s("property missing ':'");var T=u(VJ),v=E({type:XJ,property:NC(b[0].replace(kC,Kl)),value:T?NC(T[0].replace(kC,Kl)):Kl});return u(WJ),v}}function g(){var E=[];p(E);for(var b;b=m();)b!==!1&&(E.push(b),p(E));return E}return c(),g()};function NC(e){return e?e.replace(qJ,Kl):Kl}var QJ=ZJ;function QD(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=QJ(e),a=typeof t=="function",o,s,u=0,c=i.length;u0?ut.createElement(g,u,f):ut.createElement(g,u)}function ree(e){let t=-1;for(;++t for more info)`),delete p0[a]}const t=RX().use(MQ).use(e.remarkPlugins||[]).use(wJ,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use($J,e),n=new hD;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=ut.createElement(ut.Fragment,{},JD({options:e,schema:Tu,listDepth:0},r));return e.className&&(i=ut.createElement("div",{className:e.className},i)),i}HE.propTypes={children:Ee.string,className:Ee.string,allowElement:Ee.func,allowedElements:Ee.arrayOf(Ee.string),disallowedElements:Ee.arrayOf(Ee.string),unwrapDisallowed:Ee.bool,remarkPlugins:Ee.arrayOf(Ee.oneOfType([Ee.object,Ee.func,Ee.arrayOf(Ee.oneOfType([Ee.bool,Ee.string,Ee.object,Ee.func,Ee.arrayOf(Ee.any)]))])),rehypePlugins:Ee.arrayOf(Ee.oneOfType([Ee.object,Ee.func,Ee.arrayOf(Ee.oneOfType([Ee.bool,Ee.string,Ee.object,Ee.func,Ee.arrayOf(Ee.any)]))])),sourcePos:Ee.bool,rawSourcePos:Ee.bool,skipHtml:Ee.bool,includeElementIndex:Ee.bool,transformLinkUri:Ee.oneOfType([Ee.func,Ee.bool]),linkTarget:Ee.oneOfType([Ee.func,Ee.string]),transformImageUri:Ee.func,components:Ee.object};const uee={tokenize:gee,partial:!0},eL={tokenize:mee,partial:!0},tL={tokenize:bee,partial:!0},nL={tokenize:Eee,partial:!0},cee={tokenize:vee,partial:!0},rL={tokenize:fee,previous:aL},iL={tokenize:hee,previous:oL},ss={tokenize:pee,previous:sL},_o={},dee={text:_o};let Ml=48;for(;Ml<123;)_o[Ml]=ss,Ml++,Ml===58?Ml=65:Ml===91&&(Ml=97);_o[43]=ss;_o[45]=ss;_o[46]=ss;_o[95]=ss;_o[72]=[ss,iL];_o[104]=[ss,iL];_o[87]=[ss,rL];_o[119]=[ss,rL];function pee(e,t,n){const r=this;let i,a;return o;function o(f){return!kb(f)||!sL.call(r,r.previous)||jE(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return kb(f)?(e.consume(f),s):f===64?(e.consume(f),u):n(f)}function u(f){return f===46?e.check(cee,p,c)(f):f===45||f===95||$r(f)?(a=!0,e.consume(f),u):p(f)}function c(f){return e.consume(f),i=!0,u}function p(f){return a&&i&&Qr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function fee(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!aL.call(r,r.previous)||jE(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(uee,e.attempt(eL,e.attempt(tL,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function hee(e,t,n){const r=this;let i="",a=!1;return o;function o(f){return(f===72||f===104)&&oL.call(r,r.previous)&&!jE(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(Qr(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(f),u}return n(f)}function u(f){return f===47?(e.consume(f),a?c:(a=!0,u)):n(f)}function c(f){return f===null||rg(f)||hn(f)||hu(f)||S2(f)?n(f):e.attempt(eL,e.attempt(tL,p),n)(f)}function p(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function gee(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function mee(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(nL,u,s)(c):c===null||hn(c)||hu(c)||c!==45&&S2(c)?u(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function u(c){return i||r||!a?n(c):t(c)}}function bee(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const yee={tokenize:kee,partial:!0};function _ee(){return{document:{91:{tokenize:Aee,continuation:{tokenize:Cee},exit:xee}},text:{91:{tokenize:wee},93:{add:"after",tokenize:Tee,resolveTo:See}}}}function Tee(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const c=Ha(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function See(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function wee(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(a>999||f===93&&!o||f===null||f===91||hn(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Ha(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return hn(f)||(o=!0),a++,e.consume(f),f===92?p:c}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function Aee(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return u;function u(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(E)}function p(E){if(o>999||E===93&&!s||E===null||E===91||hn(E))return n(E);if(E===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Ha(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return hn(E)||(s=!0),o++,e.consume(E),E===92?f:p}function f(E){return E===91||E===92||E===93?(e.consume(E),o++,p):p(E)}function m(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),i.includes(a)||i.push(a),Gt(e,g,"gfmFootnoteDefinitionWhitespace")):n(E)}function g(E){return t(E)}}function Cee(e,t,n){return e.check(kp,t,e.attempt(yee,t,n))}function xee(e){e.exit("gfmFootnoteDefinition")}function kee(e,t,n){const r=this;return Gt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function Iee(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u1?u(E):(o.consume(E),f++,g);if(f<2&&!n)return u(E);const T=o.exit("strikethroughSequenceTemporary"),v=ig(E);return T._open=!v||v===2&&!!b,T._close=!b||b===2&&!!v,s(E)}}}class Ree{constructor(){this.map=[]}add(t,n,r){Nee(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Nee(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const he=r.events[Q][1].type;if(he==="lineEnding"||he==="linePrefix")Q--;else break}const z=Q>-1?r.events[Q][1].type:null,le=z==="tableHead"||z==="tableRow"?k:u;return le===k&&r.parser.lazy[r.now().line]?n(P):le(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(o=!0,a+=1),p(P)}function p(P){return P===null?n(P):gt(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),g):n(P):Dt(P)?Gt(e,p,"whitespace")(P):(a+=1,o&&(o=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||hn(P)?(e.exit("data"),p(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function g(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),o=!1,Dt(P)?Gt(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):E(P))}function E(P){return P===45||P===58?T(P):P===124?(o=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),b):D(P)}function b(P){return Dt(P)?Gt(e,T,"whitespace")(P):T(P)}function T(P){return P===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),v):P===45?(a+=1,v(P)):P===null||gt(P)?A(P):D(P)}function v(P){return P===45?(e.enter("tableDelimiterFiller"),y(P)):D(P)}function y(P){return P===45?(e.consume(P),y):P===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(P))}function w(P){return Dt(P)?Gt(e,A,"whitespace")(P):A(P)}function A(P){return P===124?E(P):P===null||gt(P)?!o||i!==a?D(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):D(P)}function D(P){return n(P)}function k(P){return e.enter("tableRow"),R(P)}function R(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),R):P===null||gt(P)?(e.exit("tableRow"),t(P)):Dt(P)?Gt(e,R,"whitespace")(P):(e.enter("data"),B(P))}function B(P){return P===null||P===124||hn(P)?(e.exit("data"),R(P)):(e.consume(P),P===92?W:B)}function W(P){return P===92||P===124?(e.consume(P),B):B(P)}}function Mee(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,c,p,f;const m=new Ree;for(;++nn[2]+1){const E=n[2]+1,b=n[3]-n[2]-1;e.add(E,b,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},e1(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function DC(e,t,n,r,i){const a=[],o=e1(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function e1(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Fee={tokenize:Bee},Pee={text:{91:Fee}};function Bee(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return hn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return gt(u)?t(u):Dt(u)?e.check({tokenize:Uee},t,n)(u):n(u)}}function Uee(e,t,n){return Gt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function $ee(e){return vD([dee,_ee(),Iee(e),Dee,Pee])}function LC(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function zee(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Hee={}.hasOwnProperty,jee=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=C2(i.ignore||[]),s=Gee(a);let u=-1;for(;++u0?{type:"text",value:R}:void 0),R!==!1&&(T!==D&&w.push({type:"text",value:f.value.slice(T,D)}),Array.isArray(R)?w.push(...R):R&&w.push(R),T=D+A[0].length,y=!0),!E.global)break;A=E.exec(f.value)}return y?(Te}const f3="phrasing",h3=["autolink","link","image","label"],Vee={transforms:[Qee],enter:{literalAutolink:qee,literalAutolinkEmail:g3,literalAutolinkHttp:g3,literalAutolinkWww:g3},exit:{literalAutolink:Zee,literalAutolinkEmail:Xee,literalAutolinkHttp:Kee,literalAutolinkWww:Yee}},Wee={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:f3,notInConstruct:h3},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:f3,notInConstruct:h3},{character:":",before:"[ps]",after:"\\/",inConstruct:f3,notInConstruct:h3}]};function qee(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function g3(e){this.config.enter.autolinkProtocol.call(this,e)}function Kee(e){this.config.exit.autolinkProtocol.call(this,e)}function Yee(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function Xee(e){this.config.exit.autolinkEmail.call(this,e)}function Zee(e){this.exit(e)}function Qee(e){jee(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Jee],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,ete]],{ignore:["link","linkReference"]})}function Jee(e,t,n,r,i){let a="";if(!lL(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!tte(n)))return!1;const o=nte(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function ete(e,t,n,r){return!lL(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function tte(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function nte(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=LC(e,"(");let a=LC(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function lL(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||hu(n)||S2(n))&&(!t||n!==47)}function uL(e){return e.label||!e.identifier?e.label||"":RD(e.identifier)}function rte(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s{e.run(eM(n,t),r,a=>{i(a)})}}function bte(e){return t=>eM(t,e)}var tM={exports:{}},yte="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ete=yte,vte=Ete;function nM(){}function rM(){}rM.resetWarningCache=nM;var _te=function(){function e(r,i,a,o,s,u){if(u!==vte){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rM,resetWarningCache:nM};return n.PropTypes=n,n};tM.exports=_te();var Tte=tM.exports;const be=Vi(Tte);class Vp{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Vp.prototype.property={};Vp.prototype.normal={};Vp.prototype.space=null;function iM(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&kte.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ak,Rte);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ak.test(a)){let o=a.replace(xte,Ite);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=k9}return new i(r,t)}function Ite(e){return"-"+e.toLowerCase()}function Rte(e){return e.charAt(1).toUpperCase()}const Ck={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"},Iu=iM([sM,oM,cM,dM,Ate],"html"),Cl=iM([sM,oM,cM,dM,Cte],"svg");function Nte(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Hi(t,"element",(n,r,i)=>{const a=i;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(n,r,a)),o&&typeof r=="number")return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}function pM(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function Dg(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function x9(e){return e.join(" ").trim()}function Sp(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function I9(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var R9={exports:{}},kk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ote=/\n/g,Dte=/^\s*/,Lte=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Mte=/^:\s*/,Fte=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Pte=/^[;\s]*/,Bte=/^\s+|\s+$/g,Ute=` +`,xk="/",Ik="*",eu="",$te="comment",zte="declaration",Hte=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(b){var y=b.match(Ote);y&&(n+=y.length);var T=b.lastIndexOf(Ute);r=~T?b.length-T:r+b.length}function a(){var b={line:n,column:r};return function(y){return y.position=new o(b),c(),y}}function o(b){this.start=b,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(b){var y=new Error(t.source+":"+n+":"+r+": "+b);if(y.reason=b,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function u(b){var y=b.exec(e);if(y){var T=y[0];return i(T),e=e.slice(T.length),y}}function c(){u(Dte)}function p(b){var y;for(b=b||[];y=f();)y!==!1&&b.push(y);return b}function f(){var b=a();if(!(xk!=e.charAt(0)||Ik!=e.charAt(1))){for(var y=2;eu!=e.charAt(y)&&(Ik!=e.charAt(y)||xk!=e.charAt(y+1));)++y;if(y+=2,eu===e.charAt(y-1))return s("End of comment missing");var T=e.slice(2,y-2);return r+=2,i(T),e=e.slice(y),r+=2,b({type:$te,comment:T})}}function m(){var b=a(),y=u(Lte);if(y){if(f(),!u(Mte))return s("property missing ':'");var T=u(Fte),E=b({type:zte,property:Rk(y[0].replace(kk,eu)),value:T?Rk(T[0].replace(kk,eu)):eu});return u(Pte),E}}function g(){var b=[];p(b);for(var y;y=m();)y!==!1&&(b.push(y),p(b));return b}return c(),g()};function Rk(e){return e?e.replace(Bte,eu):eu}var jte=Hte;function fM(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=jte(e),a=typeof t=="function",o,s,u=0,c=i.length;u0?ut.createElement(g,u,f):ut.createElement(g,u)}function Kte(e){let t=-1;for(;++t for more info)`),delete k0[a]}const t=_Q().use(Cee).use(e.remarkPlugins||[]).use(gte,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Nte,e),n=new IL;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=ut.createElement(ut.Fragment,{},hM({options:e,schema:Iu,listDepth:0},r));return e.className&&(i=ut.createElement("div",{className:e.className},i)),i}N9.propTypes={children:be.string,className:be.string,allowElement:be.func,allowedElements:be.arrayOf(be.string),disallowedElements:be.arrayOf(be.string),unwrapDisallowed:be.bool,remarkPlugins:be.arrayOf(be.oneOfType([be.object,be.func,be.arrayOf(be.oneOfType([be.bool,be.string,be.object,be.func,be.arrayOf(be.any)]))])),rehypePlugins:be.arrayOf(be.oneOfType([be.object,be.func,be.arrayOf(be.oneOfType([be.bool,be.string,be.object,be.func,be.arrayOf(be.any)]))])),sourcePos:be.bool,rawSourcePos:be.bool,skipHtml:be.bool,includeElementIndex:be.bool,transformLinkUri:be.oneOfType([be.func,be.bool]),linkTarget:be.oneOfType([be.func,be.string]),transformImageUri:be.func,components:be.object};const ene={tokenize:one,partial:!0},gM={tokenize:sne,partial:!0},mM={tokenize:lne,partial:!0},bM={tokenize:une,partial:!0},tne={tokenize:cne,partial:!0},yM={tokenize:ine,previous:vM},EM={tokenize:ane,previous:_M},gs={tokenize:rne,previous:TM},xo={},nne={text:xo};let zl=48;for(;zl<123;)xo[zl]=gs,zl++,zl===58?zl=65:zl===91&&(zl=97);xo[43]=gs;xo[45]=gs;xo[46]=gs;xo[95]=gs;xo[72]=[gs,EM];xo[104]=[gs,EM];xo[87]=[gs,yM];xo[119]=[gs,yM];function rne(e,t,n){const r=this;let i,a;return o;function o(f){return!sy(f)||!TM.call(r,r.previous)||O9(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return sy(f)?(e.consume(f),s):f===64?(e.consume(f),u):n(f)}function u(f){return f===46?e.check(tne,p,c)(f):f===45||f===95||jr(f)?(a=!0,e.consume(f),u):p(f)}function c(f){return e.consume(f),i=!0,u}function p(f){return a&&i&&ti(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function ine(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!vM.call(r,r.previous)||O9(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ene,e.attempt(gM,e.attempt(mM,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function ane(e,t,n){const r=this;let i="",a=!1;return o;function o(f){return(f===72||f===104)&&_M.call(r,r.previous)&&!O9(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(ti(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(f),u}return n(f)}function u(f){return f===47?(e.consume(f),a?c:(a=!0,u)):n(f)}function c(f){return f===null||Rg(f)||gn(f)||_u(f)||Ym(f)?n(f):e.attempt(gM,e.attempt(mM,p),n)(f)}function p(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function one(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function sne(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(bM,u,s)(c):c===null||gn(c)||_u(c)||c!==45&&Ym(c)?u(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function u(c){return i||r||!a?n(c):t(c)}}function lne(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const dne={tokenize:Ene,partial:!0};function pne(){return{document:{91:{tokenize:mne,continuation:{tokenize:bne},exit:yne}},text:{91:{tokenize:gne},93:{add:"after",tokenize:fne,resolveTo:hne}}}}function fne(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const c=Wa(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function hne(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function gne(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(a>999||f===93&&!o||f===null||f===91||gn(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Wa(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return gn(f)||(o=!0),a++,e.consume(f),f===92?p:c}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function mne(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(o>999||b===93&&!s||b===null||b===91||gn(b))return n(b);if(b===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=Wa(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return gn(b)||(s=!0),o++,e.consume(b),b===92?f:p}function f(b){return b===91||b===92||b===93?(e.consume(b),o++,p):p(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Gt(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function bne(e,t,n){return e.check(jp,t,e.attempt(dne,t,n))}function yne(e){e.exit("gfmFootnoteDefinition")}function Ene(e,t,n){const r=this;return Gt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function vne(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u1?u(b):(o.consume(b),f++,g);if(f<2&&!n)return u(b);const T=o.exit("strikethroughSequenceTemporary"),E=Ng(b);return T._open=!E||E===2&&!!y,T._close=!y||y===2&&!!E,s(b)}}}class _ne{constructor(){this.map=[]}add(t,n,r){Tne(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Tne(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const fe=r.events[Q][1].type;if(fe==="lineEnding"||fe==="linePrefix")Q--;else break}const $=Q>-1?r.events[Q][1].type:null,oe=$==="tableHead"||$==="tableRow"?k:u;return oe===k&&r.parser.lazy[r.now().line]?n(P):oe(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(o=!0,a+=1),p(P)}function p(P){return P===null?n(P):gt(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),g):n(P):Dt(P)?Gt(e,p,"whitespace")(P):(a+=1,o&&(o=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||gn(P)?(e.exit("data"),p(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function g(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),o=!1,Dt(P)?Gt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?T(P):P===124?(o=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),y):R(P)}function y(P){return Dt(P)?Gt(e,T,"whitespace")(P):T(P)}function T(P){return P===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),E):P===45?(a+=1,E(P)):P===null||gt(P)?A(P):R(P)}function E(P){return P===45?(e.enter("tableDelimiterFiller"),v(P)):R(P)}function v(P){return P===45?(e.consume(P),v):P===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(P))}function w(P){return Dt(P)?Gt(e,A,"whitespace")(P):A(P)}function A(P){return P===124?b(P):P===null||gt(P)?!o||i!==a?R(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):R(P)}function R(P){return n(P)}function k(P){return e.enter("tableRow"),N(P)}function N(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),N):P===null||gt(P)?(e.exit("tableRow"),t(P)):Dt(P)?Gt(e,N,"whitespace")(P):(e.enter("data"),B(P))}function B(P){return P===null||P===124||gn(P)?(e.exit("data"),N(P)):(e.consume(P),P===92?q:B)}function q(P){return P===92||P===124?(e.consume(P),B):B(P)}}function Cne(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,c,p,f;const m=new _ne;for(;++nn[2]+1){const b=n[2]+1,y=n[3]-n[2]-1;e.add(b,y,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},s1(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Ok(e,t,n,r,i){const a=[],o=s1(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function s1(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const kne={tokenize:Ine},xne={text:{91:kne}};function Ine(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return gn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return gt(u)?t(u):Dt(u)?e.check({tokenize:Rne},t,n)(u):n(u)}}function Rne(e,t,n){return Gt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Nne(e){return LL([nne,pne(),vne(e),wne,xne])}function Dk(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function One(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Dne={}.hasOwnProperty,Lne=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=Qm(i.ignore||[]),s=Mne(a);let u=-1;for(;++u0?{type:"text",value:N}:void 0),N!==!1&&(T!==R&&w.push({type:"text",value:f.value.slice(T,R)}),Array.isArray(N)?w.push(...N):N&&w.push(N),T=R+A[0].length,v=!0),!b.global)break;A=b.exec(f.value)}return v?(Te}const $3="phrasing",z3=["autolink","link","image","label"],Fne={transforms:[jne],enter:{literalAutolink:Bne,literalAutolinkEmail:H3,literalAutolinkHttp:H3,literalAutolinkWww:H3},exit:{literalAutolink:Hne,literalAutolinkEmail:zne,literalAutolinkHttp:Une,literalAutolinkWww:$ne}},Pne={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$3,notInConstruct:z3},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$3,notInConstruct:z3},{character:":",before:"[ps]",after:"\\/",inConstruct:$3,notInConstruct:z3}]};function Bne(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function H3(e){this.config.enter.autolinkProtocol.call(this,e)}function Une(e){this.config.exit.autolinkProtocol.call(this,e)}function $ne(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function zne(e){this.config.exit.autolinkEmail.call(this,e)}function Hne(e){this.exit(e)}function jne(e){Lne(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Gne],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Vne]],{ignore:["link","linkReference"]})}function Gne(e,t,n,r,i){let a="";if(!SM(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Wne(n)))return!1;const o=qne(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Vne(e,t,n,r){return!SM(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Wne(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function qne(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Dk(e,"(");let a=Dk(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function SM(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||_u(n)||Ym(n))&&(!t||n!==47)}function wM(e){return e.label||!e.identifier?e.label||"":VL(e.identifier)}function Kne(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s `}return` -`}const ate=/\r?\n|\r/g;function ote(e,t){const n=[];let r=0,i=0,a;for(;a=ate.exec(e);)o(e.slice(r,a.index)),n.push(a[0]),r=a.index+a[0].length,i++;return o(e.slice(r)),n.join("");function o(s){n.push(t(s,i,!s))}}function cL(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function ste(e,t){return PC(e,t.inConstruct,!0)&&!PC(e,t.notInConstruct,!1)}function PC(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r=c||p+10?" ":"")),i.shift(4),a+=i.move(ote(rte(e,n,i.current()),_te)),o(),a}function _te(e,t,n){return t===0?e:(n?"":" ")+e}function fL(e,t,n){const r=t.indexStack,i=e.children||[],a=[];let o=-1,s=n.before;r.push(-1);let u=t.createTracker(n);for(;++o0&&(s==="\r"||s===` -`)&&c.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",u=t.createTracker(n),u.move(a.join(""))),a.push(u.move(t.handle(c,e,t,{...u.current(),before:s,after:p}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}const Tte=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];hL.peek=xte;const Ste={canContainEols:["delete"],enter:{strikethrough:Ate},exit:{strikethrough:Cte}},wte={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Tte}],handlers:{delete:hL}};function Ate(e){this.enter({type:"delete",children:[]},e)}function Cte(e){this.exit(e)}function hL(e,t,n,r){const i=k2(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=fL(e,n,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function xte(){return"~"}gL.peek=kte;function gL(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++au&&(u=e[c].length);++Ts[T])&&(s[T]=y)}E.push(v)}a[c]=E,o[c]=b}let p=-1;if(typeof n=="object"&&"length"in n)for(;++ps[p]&&(s[p]=v),m[p]=v),f[p]=y}a.splice(1,0,f),o.splice(1,0,m),c=-1;const g=[];for(;++cn==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function Lte(e){this.exit(e),this.setData("inTable")}function Mte(e){this.enter({type:"tableRow",children:[]},e)}function m3(e){this.exit(e)}function $C(e){this.enter({type:"tableCell",children:[]},e)}function Fte(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Pte));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function Pte(e,t){return t==="|"?t:e}function Bte(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";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:o,tableRow:s,tableCell:u,inlineCode:m}};function o(g,E,b,T){return c(p(g,b,T),g.align)}function s(g,E,b,T){const v=f(g,b,T),y=c([v]);return y.slice(0,y.indexOf(` -`))}function u(g,E,b,T){const v=b.enter("tableCell"),y=b.enter("phrasing"),w=fL(g,b,{...T,before:a,after:a});return y(),v(),w}function c(g,E){return Ite(g,{align:E,alignDelimiters:r,padding:n,stringLength:i})}function p(g,E,b){const T=g.children;let v=-1;const y=[],w=E.enter("table");for(;++v-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),p);return u(),c;function p(f,m,g){return m?(g?"":" ".repeat(o))+f:(g?a:a+" ".repeat(o-a.length))+f}}const Hte={exit:{taskListCheckValueChecked:zC,taskListCheckValueUnchecked:zC,paragraph:Gte}},jte={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Vte}};function zC(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Gte(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a=55296&&e<=57343};Va.isSurrogatePair=function(e){return e>=56320&&e<=57343};Va.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Va.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Va.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||Yte.indexOf(e)>-1};var GE={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"};const t1=Va,b3=GE,Fl=t1.CODE_POINTS,Xte=65536;let Zte=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=Xte}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(t1.isSurrogatePair(n))return this.pos++,this._addGap(),t1.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Fl.EOF;return this._err(b3.surrogateInInputStream),t}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(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+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,Fl.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Fl.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Fl.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Fl.LINE_FEED):(this.skipNextNewLine=!1,t1.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Fl.LINE_FEED||t===Fl.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){t1.isControlCodePoint(t)?this._err(b3.controlCharacterInInputStream):t1.isUndefinedCodePoint(t)&&this._err(b3.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var Qte=Zte,Jte=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]);const ene=Qte,un=Va,Jl=Jte,Ae=GE,G=un.CODE_POINTS,Pl=un.CODE_POINT_SEQUENCES,tne={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},mL=1,bL=2,EL=4,nne=mL|bL|EL,Ot="DATA_STATE",n1="RCDATA_STATE",cd="RAWTEXT_STATE",Ho="SCRIPT_DATA_STATE",vL="PLAINTEXT_STATE",HC="TAG_OPEN_STATE",jC="END_TAG_OPEN_STATE",E3="TAG_NAME_STATE",GC="RCDATA_LESS_THAN_SIGN_STATE",VC="RCDATA_END_TAG_OPEN_STATE",WC="RCDATA_END_TAG_NAME_STATE",qC="RAWTEXT_LESS_THAN_SIGN_STATE",KC="RAWTEXT_END_TAG_OPEN_STATE",YC="RAWTEXT_END_TAG_NAME_STATE",XC="SCRIPT_DATA_LESS_THAN_SIGN_STATE",ZC="SCRIPT_DATA_END_TAG_OPEN_STATE",QC="SCRIPT_DATA_END_TAG_NAME_STATE",JC="SCRIPT_DATA_ESCAPE_START_STATE",ex="SCRIPT_DATA_ESCAPE_START_DASH_STATE",ka="SCRIPT_DATA_ESCAPED_STATE",tx="SCRIPT_DATA_ESCAPED_DASH_STATE",v3="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",h0="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",nx="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",rx="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",ix="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Lo="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",ax="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",ox="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",g0="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",sx="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",to="BEFORE_ATTRIBUTE_NAME_STATE",m0="ATTRIBUTE_NAME_STATE",y3="AFTER_ATTRIBUTE_NAME_STATE",_3="BEFORE_ATTRIBUTE_VALUE_STATE",b0="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",E0="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",v0="ATTRIBUTE_VALUE_UNQUOTED_STATE",T3="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Cs="SELF_CLOSING_START_TAG_STATE",jc="BOGUS_COMMENT_STATE",lx="MARKUP_DECLARATION_OPEN_STATE",ux="COMMENT_START_STATE",cx="COMMENT_START_DASH_STATE",xs="COMMENT_STATE",dx="COMMENT_LESS_THAN_SIGN_STATE",px="COMMENT_LESS_THAN_SIGN_BANG_STATE",fx="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",hx="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",y0="COMMENT_END_DASH_STATE",_0="COMMENT_END_STATE",gx="COMMENT_END_BANG_STATE",mx="DOCTYPE_STATE",T0="BEFORE_DOCTYPE_NAME_STATE",S0="DOCTYPE_NAME_STATE",bx="AFTER_DOCTYPE_NAME_STATE",Ex="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",vx="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",S3="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",w3="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",A3="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",yx="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",_x="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Tx="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Gc="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Vc="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",C3="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Mo="BOGUS_DOCTYPE_STATE",w0="CDATA_SECTION_STATE",Sx="CDATA_SECTION_BRACKET_STATE",wx="CDATA_SECTION_END_STATE",Wu="CHARACTER_REFERENCE_STATE",Ax="NAMED_CHARACTER_REFERENCE_STATE",Cx="AMBIGUOS_AMPERSAND_STATE",xx="NUMERIC_CHARACTER_REFERENCE_STATE",kx="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Ix="DECIMAL_CHARACTER_REFERENCE_START_STATE",Rx="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Nx="DECIMAL_CHARACTER_REFERENCE_STATE",Wc="NUMERIC_CHARACTER_REFERENCE_END_STATE";function vn(e){return e===G.SPACE||e===G.LINE_FEED||e===G.TABULATION||e===G.FORM_FEED}function xd(e){return e>=G.DIGIT_0&&e<=G.DIGIT_9}function Na(e){return e>=G.LATIN_CAPITAL_A&&e<=G.LATIN_CAPITAL_Z}function Gl(e){return e>=G.LATIN_SMALL_A&&e<=G.LATIN_SMALL_Z}function Ns(e){return Gl(e)||Na(e)}function x3(e){return Ns(e)||xd(e)}function yL(e){return e>=G.LATIN_CAPITAL_A&&e<=G.LATIN_CAPITAL_F}function _L(e){return e>=G.LATIN_SMALL_A&&e<=G.LATIN_SMALL_F}function rne(e){return xd(e)||yL(e)||_L(e)}function ch(e){return e+32}function Mn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function ks(e){return String.fromCharCode(ch(e))}function Ox(e,t){const n=Jl[++e];let r=++e,i=r+n-1;for(;r<=i;){const a=r+i>>>1,o=Jl[a];if(ot)i=a-1;else return Jl[a+n]}return-1}let _a=class ci{constructor(){this.preprocessor=new ene,this.tokenQueue=[],this.allowCDATA=!1,this.state=Ot,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(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:ci.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,a=!0;const o=t.length;let s=0,u=n,c;for(;s0&&(u=this._consume(),i++),u===G.EOF){a=!1;break}if(c=t[s],u!==c&&(r||u!==ch(c))){a=!1;break}}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Pl.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(Ae.endTagWithAttributes),t.selfClosing&&this._err(Ae.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=ci.CHARACTER_TOKEN;vn(t)?n=ci.WHITESPACE_CHARACTER_TOKEN:t===G.NULL&&(n=ci.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Mn(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const a=Jl[i],o=a")):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=ka,this._emitChars(un.REPLACEMENT_CHARACTER)):t===G.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ka,this._emitCodePoint(t))}[h0](t){t===G.SOLIDUS?(this.tempBuff=[],this.state=nx):Ns(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(ix)):(this._emitChars("<"),this._reconsumeInState(ka))}[nx](t){Ns(t)?(this._createEndTagToken(),this._reconsumeInState(rx)):(this._emitChars("")):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=Lo,this._emitChars(un.REPLACEMENT_CHARACTER)):t===G.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Lo,this._emitCodePoint(t))}[g0](t){t===G.SOLIDUS?(this.tempBuff=[],this.state=sx,this._emitChars("/")):this._reconsumeInState(Lo)}[sx](t){vn(t)||t===G.SOLIDUS||t===G.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?ka:Lo,this._emitCodePoint(t)):Na(t)?(this.tempBuff.push(ch(t)),this._emitCodePoint(t)):Gl(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Lo)}[to](t){vn(t)||(t===G.SOLIDUS||t===G.GREATER_THAN_SIGN||t===G.EOF?this._reconsumeInState(y3):t===G.EQUALS_SIGN?(this._err(Ae.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=m0):(this._createAttr(""),this._reconsumeInState(m0)))}[m0](t){vn(t)||t===G.SOLIDUS||t===G.GREATER_THAN_SIGN||t===G.EOF?(this._leaveAttrName(y3),this._unconsume()):t===G.EQUALS_SIGN?this._leaveAttrName(_3):Na(t)?this.currentAttr.name+=ks(t):t===G.QUOTATION_MARK||t===G.APOSTROPHE||t===G.LESS_THAN_SIGN?(this._err(Ae.unexpectedCharacterInAttributeName),this.currentAttr.name+=Mn(t)):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.name+=un.REPLACEMENT_CHARACTER):this.currentAttr.name+=Mn(t)}[y3](t){vn(t)||(t===G.SOLIDUS?this.state=Cs:t===G.EQUALS_SIGN?this.state=_3:t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(m0)))}[_3](t){vn(t)||(t===G.QUOTATION_MARK?this.state=b0:t===G.APOSTROPHE?this.state=E0:t===G.GREATER_THAN_SIGN?(this._err(Ae.missingAttributeValue),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(v0))}[b0](t){t===G.QUOTATION_MARK?this.state=T3:t===G.AMPERSAND?(this.returnState=b0,this.state=Wu):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Mn(t)}[E0](t){t===G.APOSTROPHE?this.state=T3:t===G.AMPERSAND?(this.returnState=E0,this.state=Wu):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Mn(t)}[v0](t){vn(t)?this._leaveAttrValue(to):t===G.AMPERSAND?(this.returnState=v0,this.state=Wu):t===G.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=un.REPLACEMENT_CHARACTER):t===G.QUOTATION_MARK||t===G.APOSTROPHE||t===G.LESS_THAN_SIGN||t===G.EQUALS_SIGN||t===G.GRAVE_ACCENT?(this._err(Ae.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Mn(t)):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Mn(t)}[T3](t){vn(t)?this._leaveAttrValue(to):t===G.SOLIDUS?this._leaveAttrValue(Cs):t===G.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBetweenAttributes),this._reconsumeInState(to))}[Cs](t){t===G.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.unexpectedSolidusInTag),this._reconsumeInState(to))}[jc](t){t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=un.REPLACEMENT_CHARACTER):this.currentToken.data+=Mn(t)}[lx](t){this._consumeSequenceIfMatch(Pl.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=ux):this._consumeSequenceIfMatch(Pl.DOCTYPE_STRING,t,!1)?this.state=mx:this._consumeSequenceIfMatch(Pl.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=w0:(this._err(Ae.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=jc):this._ensureHibernation()||(this._err(Ae.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(jc))}[ux](t){t===G.HYPHEN_MINUS?this.state=cx:t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(xs)}[cx](t){t===G.HYPHEN_MINUS?this.state=_0:t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(xs))}[xs](t){t===G.HYPHEN_MINUS?this.state=y0:t===G.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=dx):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Mn(t)}[dx](t){t===G.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=px):t===G.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(xs)}[px](t){t===G.HYPHEN_MINUS?this.state=fx:this._reconsumeInState(xs)}[fx](t){t===G.HYPHEN_MINUS?this.state=hx:this._reconsumeInState(y0)}[hx](t){t!==G.GREATER_THAN_SIGN&&t!==G.EOF&&this._err(Ae.nestedComment),this._reconsumeInState(_0)}[y0](t){t===G.HYPHEN_MINUS?this.state=_0:t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(xs))}[_0](t){t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EXCLAMATION_MARK?this.state=gx:t===G.HYPHEN_MINUS?this.currentToken.data+="-":t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(xs))}[gx](t){t===G.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=y0):t===G.GREATER_THAN_SIGN?(this._err(Ae.incorrectlyClosedComment),this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(xs))}[mx](t){vn(t)?this.state=T0:t===G.GREATER_THAN_SIGN?this._reconsumeInState(T0):t===G.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(T0))}[T0](t){vn(t)||(Na(t)?(this._createDoctypeToken(ks(t)),this.state=S0):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this._createDoctypeToken(un.REPLACEMENT_CHARACTER),this.state=S0):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Mn(t)),this.state=S0))}[S0](t){vn(t)?this.state=bx:t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):Na(t)?this.currentToken.name+=ks(t):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.name+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Mn(t)}[bx](t){vn(t)||(t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Pl.PUBLIC_STRING,t,!1)?this.state=Ex:this._consumeSequenceIfMatch(Pl.SYSTEM_STRING,t,!1)?this.state=_x:this._ensureHibernation()||(this._err(Ae.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[Ex](t){vn(t)?this.state=vx:t===G.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=S3):t===G.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=w3):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo))}[vx](t){vn(t)||(t===G.QUOTATION_MARK?(this.currentToken.publicId="",this.state=S3):t===G.APOSTROPHE?(this.currentToken.publicId="",this.state=w3):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[S3](t){t===G.QUOTATION_MARK?this.state=A3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Mn(t)}[w3](t){t===G.APOSTROPHE?this.state=A3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Mn(t)}[A3](t){vn(t)?this.state=yx:t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.QUOTATION_MARK?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Vc):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo))}[yx](t){vn(t)||(t===G.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===G.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this.currentToken.systemId="",this.state=Vc):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[_x](t){vn(t)?this.state=Tx:t===G.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Vc):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo))}[Tx](t){vn(t)||(t===G.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this.currentToken.systemId="",this.state=Vc):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[Gc](t){t===G.QUOTATION_MARK?this.state=C3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Mn(t)}[Vc](t){t===G.APOSTROPHE?this.state=C3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Mn(t)}[C3](t){vn(t)||(t===G.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Mo)))}[Mo](t){t===G.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===G.NULL?this._err(Ae.unexpectedNullCharacter):t===G.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[w0](t){t===G.RIGHT_SQUARE_BRACKET?this.state=Sx:t===G.EOF?(this._err(Ae.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Sx](t){t===G.RIGHT_SQUARE_BRACKET?this.state=wx:(this._emitChars("]"),this._reconsumeInState(w0))}[wx](t){t===G.GREATER_THAN_SIGN?this.state=Ot:t===G.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(w0))}[Wu](t){this.tempBuff=[G.AMPERSAND],t===G.NUMBER_SIGN?(this.tempBuff.push(t),this.state=xx):x3(t)?this._reconsumeInState(Ax):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ax](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[G.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===G.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Ae.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Cx}[Cx](t){x3(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Mn(t):this._emitCodePoint(t):(t===G.SEMICOLON&&this._err(Ae.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[xx](t){this.charRefCode=0,t===G.LATIN_SMALL_X||t===G.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=kx):this._reconsumeInState(Ix)}[kx](t){rne(t)?this._reconsumeInState(Rx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ix](t){xd(t)?this._reconsumeInState(Nx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Rx](t){yL(t)?this.charRefCode=this.charRefCode*16+t-55:_L(t)?this.charRefCode=this.charRefCode*16+t-87:xd(t)?this.charRefCode=this.charRefCode*16+t-48:t===G.SEMICOLON?this.state=Wc:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(Wc))}[Nx](t){xd(t)?this.charRefCode=this.charRefCode*10+t-48:t===G.SEMICOLON?this.state=Wc:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(Wc))}[Wc](){if(this.charRefCode===G.NULL)this._err(Ae.nullCharacterReference),this.charRefCode=G.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Ae.characterReferenceOutsideUnicodeRange),this.charRefCode=G.REPLACEMENT_CHARACTER;else if(un.isSurrogate(this.charRefCode))this._err(Ae.surrogateCharacterReference),this.charRefCode=G.REPLACEMENT_CHARACTER;else if(un.isUndefinedCodePoint(this.charRefCode))this._err(Ae.noncharacterCharacterReference);else if(un.isControlCodePoint(this.charRefCode)||this.charRefCode===G.CARRIAGE_RETURN){this._err(Ae.controlCharacterReference);const t=tne[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};_a.CHARACTER_TOKEN="CHARACTER_TOKEN";_a.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";_a.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";_a.START_TAG_TOKEN="START_TAG_TOKEN";_a.END_TAG_TOKEN="END_TAG_TOKEN";_a.COMMENT_TOKEN="COMMENT_TOKEN";_a.DOCTYPE_TOKEN="DOCTYPE_TOKEN";_a.EOF_TOKEN="EOF_TOKEN";_a.HIBERNATION_TOKEN="HIBERNATION_TOKEN";_a.MODE={DATA:Ot,RCDATA:n1,RAWTEXT:cd,SCRIPT_DATA:Ho,PLAINTEXT:vL};_a.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var I2=_a,Wa={};const k3=Wa.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/"};Wa.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Wa.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const $e=Wa.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"};Wa.SPECIAL_ELEMENTS={[k3.HTML]:{[$e.ADDRESS]:!0,[$e.APPLET]:!0,[$e.AREA]:!0,[$e.ARTICLE]:!0,[$e.ASIDE]:!0,[$e.BASE]:!0,[$e.BASEFONT]:!0,[$e.BGSOUND]:!0,[$e.BLOCKQUOTE]:!0,[$e.BODY]:!0,[$e.BR]:!0,[$e.BUTTON]:!0,[$e.CAPTION]:!0,[$e.CENTER]:!0,[$e.COL]:!0,[$e.COLGROUP]:!0,[$e.DD]:!0,[$e.DETAILS]:!0,[$e.DIR]:!0,[$e.DIV]:!0,[$e.DL]:!0,[$e.DT]:!0,[$e.EMBED]:!0,[$e.FIELDSET]:!0,[$e.FIGCAPTION]:!0,[$e.FIGURE]:!0,[$e.FOOTER]:!0,[$e.FORM]:!0,[$e.FRAME]:!0,[$e.FRAMESET]:!0,[$e.H1]:!0,[$e.H2]:!0,[$e.H3]:!0,[$e.H4]:!0,[$e.H5]:!0,[$e.H6]:!0,[$e.HEAD]:!0,[$e.HEADER]:!0,[$e.HGROUP]:!0,[$e.HR]:!0,[$e.HTML]:!0,[$e.IFRAME]:!0,[$e.IMG]:!0,[$e.INPUT]:!0,[$e.LI]:!0,[$e.LINK]:!0,[$e.LISTING]:!0,[$e.MAIN]:!0,[$e.MARQUEE]:!0,[$e.MENU]:!0,[$e.META]:!0,[$e.NAV]:!0,[$e.NOEMBED]:!0,[$e.NOFRAMES]:!0,[$e.NOSCRIPT]:!0,[$e.OBJECT]:!0,[$e.OL]:!0,[$e.P]:!0,[$e.PARAM]:!0,[$e.PLAINTEXT]:!0,[$e.PRE]:!0,[$e.SCRIPT]:!0,[$e.SECTION]:!0,[$e.SELECT]:!0,[$e.SOURCE]:!0,[$e.STYLE]:!0,[$e.SUMMARY]:!0,[$e.TABLE]:!0,[$e.TBODY]:!0,[$e.TD]:!0,[$e.TEMPLATE]:!0,[$e.TEXTAREA]:!0,[$e.TFOOT]:!0,[$e.TH]:!0,[$e.THEAD]:!0,[$e.TITLE]:!0,[$e.TR]:!0,[$e.TRACK]:!0,[$e.UL]:!0,[$e.WBR]:!0,[$e.XMP]:!0},[k3.MATHML]:{[$e.MI]:!0,[$e.MO]:!0,[$e.MN]:!0,[$e.MS]:!0,[$e.MTEXT]:!0,[$e.ANNOTATION_XML]:!0},[k3.SVG]:{[$e.TITLE]:!0,[$e.FOREIGN_OBJECT]:!0,[$e.DESC]:!0}};const TL=Wa,je=TL.TAG_NAMES,cn=TL.NAMESPACES;function Dx(e){switch(e.length){case 1:return e===je.P;case 2:return e===je.RB||e===je.RP||e===je.RT||e===je.DD||e===je.DT||e===je.LI;case 3:return e===je.RTC;case 6:return e===je.OPTION;case 8:return e===je.OPTGROUP}return!1}function ine(e){switch(e.length){case 1:return e===je.P;case 2:return e===je.RB||e===je.RP||e===je.RT||e===je.DD||e===je.DT||e===je.LI||e===je.TD||e===je.TH||e===je.TR;case 3:return e===je.RTC;case 5:return e===je.TBODY||e===je.TFOOT||e===je.THEAD;case 6:return e===je.OPTION;case 7:return e===je.CAPTION;case 8:return e===je.OPTGROUP||e===je.COLGROUP}return!1}function A0(e,t){switch(e.length){case 2:if(e===je.TD||e===je.TH)return t===cn.HTML;if(e===je.MI||e===je.MO||e===je.MN||e===je.MS)return t===cn.MATHML;break;case 4:if(e===je.HTML)return t===cn.HTML;if(e===je.DESC)return t===cn.SVG;break;case 5:if(e===je.TABLE)return t===cn.HTML;if(e===je.MTEXT)return t===cn.MATHML;if(e===je.TITLE)return t===cn.SVG;break;case 6:return(e===je.APPLET||e===je.OBJECT)&&t===cn.HTML;case 7:return(e===je.CAPTION||e===je.MARQUEE)&&t===cn.HTML;case 8:return e===je.TEMPLATE&&t===cn.HTML;case 13:return e===je.FOREIGN_OBJECT&&t===cn.SVG;case 14:return e===je.ANNOTATION_XML&&t===cn.MATHML}return!1}let ane=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===je.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===cn.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(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===cn.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===je.H1||t===je.H2||t===je.H3||t===je.H4||t===je.H5||t===je.H6&&n===cn.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===je.TD||t===je.TH&&n===cn.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==je.TABLE&&this.currentTagName!==je.TEMPLATE&&this.currentTagName!==je.HTML||this.treeAdapter.getNamespaceURI(this.current)!==cn.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==je.TBODY&&this.currentTagName!==je.TFOOT&&this.currentTagName!==je.THEAD&&this.currentTagName!==je.TEMPLATE&&this.currentTagName!==je.HTML||this.treeAdapter.getNamespaceURI(this.current)!==cn.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==je.TR&&this.currentTagName!==je.TEMPLATE&&this.currentTagName!==je.HTML||this.treeAdapter.getNamespaceURI(this.current)!==cn.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===je.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===je.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===cn.HTML)return!0;if(A0(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===je.H1||n===je.H2||n===je.H3||n===je.H4||n===je.H5||n===je.H6)&&r===cn.HTML)return!0;if(A0(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===cn.HTML)return!0;if((r===je.UL||r===je.OL)&&i===cn.HTML||A0(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===cn.HTML)return!0;if(r===je.BUTTON&&i===cn.HTML||A0(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===cn.HTML){if(r===t)return!0;if(r===je.TABLE||r===je.TEMPLATE||r===je.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===cn.HTML){if(n===je.TBODY||n===je.THEAD||n===je.TFOOT)return!0;if(n===je.TABLE||n===je.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===cn.HTML){if(r===t)return!0;if(r!==je.OPTION&&r!==je.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Dx(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ine(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Dx(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var one=ane;const C0=3;let VE=class Os{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=C0){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===Os.MARKER_ENTRY)break;const u=s.element,c=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===a&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length=C0-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:Os.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:Os.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Os.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Os.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Os.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Os.ELEMENT_ENTRY&&r.element===t)return r}return null}};VE.MARKER_ENTRY="MARKER_ENTRY";VE.ELEMENT_ENTRY="ELEMENT_ENTRY";var sne=VE;let SL=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};SL.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i=c||p+10?" ":"")),i.shift(4),a+=i.move(Zne(Kne(e,n,i.current()),pre)),o(),a}function pre(e,t,n){return t===0?e:(n?"":" ")+e}function xM(e,t,n){const r=t.indexStack,i=e.children||[],a=[];let o=-1,s=n.before;r.push(-1);let u=t.createTracker(n);for(;++o0&&(s==="\r"||s===` +`)&&c.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",u=t.createTracker(n),u.move(a.join(""))),a.push(u.move(t.handle(c,e,t,{...u.current(),before:s,after:p}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}const fre=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];IM.peek=yre;const hre={canContainEols:["delete"],enter:{strikethrough:mre},exit:{strikethrough:bre}},gre={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:fre}],handlers:{delete:IM}};function mre(e){this.enter({type:"delete",children:[]},e)}function bre(e){this.exit(e)}function IM(e,t,n,r){const i=e2(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=xM(e,n,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function yre(){return"~"}RM.peek=Ere;function RM(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++au&&(u=e[c].length);++Ts[T])&&(s[T]=v)}b.push(E)}a[c]=b,o[c]=y}let p=-1;if(typeof n=="object"&&"length"in n)for(;++ps[p]&&(s[p]=E),m[p]=E),f[p]=v}a.splice(1,0,f),o.splice(1,0,m),c=-1;const g=[];for(;++cn==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function Are(e){this.exit(e),this.setData("inTable")}function Cre(e){this.enter({type:"tableRow",children:[]},e)}function j3(e){this.exit(e)}function Uk(e){this.enter({type:"tableCell",children:[]},e)}function kre(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,xre));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function xre(e,t){return t==="|"?t:e}function Ire(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";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:o,tableRow:s,tableCell:u,inlineCode:m}};function o(g,b,y,T){return c(p(g,y,T),g.align)}function s(g,b,y,T){const E=f(g,y,T),v=c([E]);return v.slice(0,v.indexOf(` +`))}function u(g,b,y,T){const E=y.enter("tableCell"),v=y.enter("phrasing"),w=xM(g,y,{...T,before:a,after:a});return v(),E(),w}function c(g,b){return vre(g,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function p(g,b,y){const T=g.children;let E=-1;const v=[],w=b.enter("table");for(;++E-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),p);return u(),c;function p(f,m,g){return m?(g?"":" ".repeat(o))+f:(g?a:a+" ".repeat(o-a.length))+f}}const Dre={exit:{taskListCheckValueChecked:$k,taskListCheckValueUnchecked:$k,paragraph:Mre}},Lre={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Fre}};function $k(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Mre(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a=55296&&e<=57343};Xa.isSurrogatePair=function(e){return e>=56320&&e<=57343};Xa.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Xa.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Xa.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||$re.indexOf(e)>-1};var D9={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"};const l1=Xa,G3=D9,Hl=l1.CODE_POINTS,zre=65536;let Hre=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=zre}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(l1.isSurrogatePair(n))return this.pos++,this._addGap(),l1.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Hl.EOF;return this._err(G3.surrogateInInputStream),t}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(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+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,Hl.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Hl.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Hl.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Hl.LINE_FEED):(this.skipNextNewLine=!1,l1.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Hl.LINE_FEED||t===Hl.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){l1.isControlCodePoint(t)?this._err(G3.controlCharacterInInputStream):l1.isUndefinedCodePoint(t)&&this._err(G3.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var jre=Hre,Gre=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]);const Vre=jre,cn=Xa,ou=Gre,Ae=D9,V=cn.CODE_POINTS,jl=cn.CODE_POINT_SEQUENCES,Wre={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},NM=1,OM=2,DM=4,qre=NM|OM|DM,Ot="DATA_STATE",u1="RCDATA_STATE",Sd="RAWTEXT_STATE",Xo="SCRIPT_DATA_STATE",LM="PLAINTEXT_STATE",zk="TAG_OPEN_STATE",Hk="END_TAG_OPEN_STATE",V3="TAG_NAME_STATE",jk="RCDATA_LESS_THAN_SIGN_STATE",Gk="RCDATA_END_TAG_OPEN_STATE",Vk="RCDATA_END_TAG_NAME_STATE",Wk="RAWTEXT_LESS_THAN_SIGN_STATE",qk="RAWTEXT_END_TAG_OPEN_STATE",Kk="RAWTEXT_END_TAG_NAME_STATE",Yk="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Xk="SCRIPT_DATA_END_TAG_OPEN_STATE",Zk="SCRIPT_DATA_END_TAG_NAME_STATE",Qk="SCRIPT_DATA_ESCAPE_START_STATE",Jk="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Na="SCRIPT_DATA_ESCAPED_STATE",ex="SCRIPT_DATA_ESCAPED_DASH_STATE",W3="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",I0="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",tx="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",nx="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",rx="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",zo="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",ix="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",ax="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",R0="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",ox="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",so="BEFORE_ATTRIBUTE_NAME_STATE",N0="ATTRIBUTE_NAME_STATE",q3="AFTER_ATTRIBUTE_NAME_STATE",K3="BEFORE_ATTRIBUTE_VALUE_STATE",O0="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",D0="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",L0="ATTRIBUTE_VALUE_UNQUOTED_STATE",Y3="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Ls="SELF_CLOSING_START_TAG_STATE",td="BOGUS_COMMENT_STATE",sx="MARKUP_DECLARATION_OPEN_STATE",lx="COMMENT_START_STATE",ux="COMMENT_START_DASH_STATE",Ms="COMMENT_STATE",cx="COMMENT_LESS_THAN_SIGN_STATE",dx="COMMENT_LESS_THAN_SIGN_BANG_STATE",px="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",fx="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",M0="COMMENT_END_DASH_STATE",F0="COMMENT_END_STATE",hx="COMMENT_END_BANG_STATE",gx="DOCTYPE_STATE",P0="BEFORE_DOCTYPE_NAME_STATE",B0="DOCTYPE_NAME_STATE",mx="AFTER_DOCTYPE_NAME_STATE",bx="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",yx="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",X3="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Z3="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Q3="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Ex="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",vx="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",_x="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",nd="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",rd="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",J3="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ho="BOGUS_DOCTYPE_STATE",U0="CDATA_SECTION_STATE",Tx="CDATA_SECTION_BRACKET_STATE",Sx="CDATA_SECTION_END_STATE",Ju="CHARACTER_REFERENCE_STATE",wx="NAMED_CHARACTER_REFERENCE_STATE",Ax="AMBIGUOS_AMPERSAND_STATE",Cx="NUMERIC_CHARACTER_REFERENCE_STATE",kx="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",xx="DECIMAL_CHARACTER_REFERENCE_START_STATE",Ix="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Rx="DECIMAL_CHARACTER_REFERENCE_STATE",id="NUMERIC_CHARACTER_REFERENCE_END_STATE";function vn(e){return e===V.SPACE||e===V.LINE_FEED||e===V.TABULATION||e===V.FORM_FEED}function zd(e){return e>=V.DIGIT_0&&e<=V.DIGIT_9}function La(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_Z}function Xl(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_Z}function Us(e){return Xl(e)||La(e)}function e4(e){return Us(e)||zd(e)}function MM(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_F}function FM(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_F}function Kre(e){return zd(e)||MM(e)||FM(e)}function Ih(e){return e+32}function Fn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Fs(e){return String.fromCharCode(Ih(e))}function Nx(e,t){const n=ou[++e];let r=++e,i=r+n-1;for(;r<=i;){const a=r+i>>>1,o=ou[a];if(ot)i=a-1;else return ou[a+n]}return-1}let wa=class fi{constructor(){this.preprocessor=new Vre,this.tokenQueue=[],this.allowCDATA=!1,this.state=Ot,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(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:fi.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,a=!0;const o=t.length;let s=0,u=n,c;for(;s0&&(u=this._consume(),i++),u===V.EOF){a=!1;break}if(c=t[s],u!==c&&(r||u!==Ih(c))){a=!1;break}}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==jl.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(Ae.endTagWithAttributes),t.selfClosing&&this._err(Ae.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=fi.CHARACTER_TOKEN;vn(t)?n=fi.WHITESPACE_CHARACTER_TOKEN:t===V.NULL&&(n=fi.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Fn(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const a=ou[i],o=a")):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=Na,this._emitChars(cn.REPLACEMENT_CHARACTER)):t===V.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Na,this._emitCodePoint(t))}[I0](t){t===V.SOLIDUS?(this.tempBuff=[],this.state=tx):Us(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(rx)):(this._emitChars("<"),this._reconsumeInState(Na))}[tx](t){Us(t)?(this._createEndTagToken(),this._reconsumeInState(nx)):(this._emitChars("")):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=zo,this._emitChars(cn.REPLACEMENT_CHARACTER)):t===V.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=zo,this._emitCodePoint(t))}[R0](t){t===V.SOLIDUS?(this.tempBuff=[],this.state=ox,this._emitChars("/")):this._reconsumeInState(zo)}[ox](t){vn(t)||t===V.SOLIDUS||t===V.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Na:zo,this._emitCodePoint(t)):La(t)?(this.tempBuff.push(Ih(t)),this._emitCodePoint(t)):Xl(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(zo)}[so](t){vn(t)||(t===V.SOLIDUS||t===V.GREATER_THAN_SIGN||t===V.EOF?this._reconsumeInState(q3):t===V.EQUALS_SIGN?(this._err(Ae.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=N0):(this._createAttr(""),this._reconsumeInState(N0)))}[N0](t){vn(t)||t===V.SOLIDUS||t===V.GREATER_THAN_SIGN||t===V.EOF?(this._leaveAttrName(q3),this._unconsume()):t===V.EQUALS_SIGN?this._leaveAttrName(K3):La(t)?this.currentAttr.name+=Fs(t):t===V.QUOTATION_MARK||t===V.APOSTROPHE||t===V.LESS_THAN_SIGN?(this._err(Ae.unexpectedCharacterInAttributeName),this.currentAttr.name+=Fn(t)):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.name+=cn.REPLACEMENT_CHARACTER):this.currentAttr.name+=Fn(t)}[q3](t){vn(t)||(t===V.SOLIDUS?this.state=Ls:t===V.EQUALS_SIGN?this.state=K3:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(N0)))}[K3](t){vn(t)||(t===V.QUOTATION_MARK?this.state=O0:t===V.APOSTROPHE?this.state=D0:t===V.GREATER_THAN_SIGN?(this._err(Ae.missingAttributeValue),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(L0))}[O0](t){t===V.QUOTATION_MARK?this.state=Y3:t===V.AMPERSAND?(this.returnState=O0,this.state=Ju):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[D0](t){t===V.APOSTROPHE?this.state=Y3:t===V.AMPERSAND?(this.returnState=D0,this.state=Ju):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[L0](t){vn(t)?this._leaveAttrValue(so):t===V.AMPERSAND?(this.returnState=L0,this.state=Ju):t===V.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.QUOTATION_MARK||t===V.APOSTROPHE||t===V.LESS_THAN_SIGN||t===V.EQUALS_SIGN||t===V.GRAVE_ACCENT?(this._err(Ae.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Fn(t)):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[Y3](t){vn(t)?this._leaveAttrValue(so):t===V.SOLIDUS?this._leaveAttrValue(Ls):t===V.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBetweenAttributes),this._reconsumeInState(so))}[Ls](t){t===V.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.unexpectedSolidusInTag),this._reconsumeInState(so))}[td](t){t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=cn.REPLACEMENT_CHARACTER):this.currentToken.data+=Fn(t)}[sx](t){this._consumeSequenceIfMatch(jl.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=lx):this._consumeSequenceIfMatch(jl.DOCTYPE_STRING,t,!1)?this.state=gx:this._consumeSequenceIfMatch(jl.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=U0:(this._err(Ae.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=td):this._ensureHibernation()||(this._err(Ae.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(td))}[lx](t){t===V.HYPHEN_MINUS?this.state=ux:t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(Ms)}[ux](t){t===V.HYPHEN_MINUS?this.state=F0:t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ms))}[Ms](t){t===V.HYPHEN_MINUS?this.state=M0:t===V.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=cx):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Fn(t)}[cx](t){t===V.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=dx):t===V.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Ms)}[dx](t){t===V.HYPHEN_MINUS?this.state=px:this._reconsumeInState(Ms)}[px](t){t===V.HYPHEN_MINUS?this.state=fx:this._reconsumeInState(M0)}[fx](t){t!==V.GREATER_THAN_SIGN&&t!==V.EOF&&this._err(Ae.nestedComment),this._reconsumeInState(F0)}[M0](t){t===V.HYPHEN_MINUS?this.state=F0:t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ms))}[F0](t){t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EXCLAMATION_MARK?this.state=hx:t===V.HYPHEN_MINUS?this.currentToken.data+="-":t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Ms))}[hx](t){t===V.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=M0):t===V.GREATER_THAN_SIGN?(this._err(Ae.incorrectlyClosedComment),this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Ms))}[gx](t){vn(t)?this.state=P0:t===V.GREATER_THAN_SIGN?this._reconsumeInState(P0):t===V.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(P0))}[P0](t){vn(t)||(La(t)?(this._createDoctypeToken(Fs(t)),this.state=B0):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this._createDoctypeToken(cn.REPLACEMENT_CHARACTER),this.state=B0):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Fn(t)),this.state=B0))}[B0](t){vn(t)?this.state=mx:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):La(t)?this.currentToken.name+=Fs(t):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.name+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Fn(t)}[mx](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(jl.PUBLIC_STRING,t,!1)?this.state=bx:this._consumeSequenceIfMatch(jl.SYSTEM_STRING,t,!1)?this.state=vx:this._ensureHibernation()||(this._err(Ae.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[bx](t){vn(t)?this.state=yx:t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=X3):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Z3):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho))}[yx](t){vn(t)||(t===V.QUOTATION_MARK?(this.currentToken.publicId="",this.state=X3):t===V.APOSTROPHE?(this.currentToken.publicId="",this.state=Z3):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[X3](t){t===V.QUOTATION_MARK?this.state=Q3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fn(t)}[Z3](t){t===V.APOSTROPHE?this.state=Q3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fn(t)}[Q3](t){vn(t)?this.state=Ex:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=rd):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho))}[Ex](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.QUOTATION_MARK?(this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this.currentToken.systemId="",this.state=rd):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[vx](t){vn(t)?this.state=_x:t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=rd):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho))}[_x](t){vn(t)||(t===V.QUOTATION_MARK?(this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this.currentToken.systemId="",this.state=rd):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[nd](t){t===V.QUOTATION_MARK?this.state=J3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fn(t)}[rd](t){t===V.APOSTROPHE?this.state=J3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fn(t)}[J3](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Ho)))}[Ho](t){t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.NULL?this._err(Ae.unexpectedNullCharacter):t===V.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[U0](t){t===V.RIGHT_SQUARE_BRACKET?this.state=Tx:t===V.EOF?(this._err(Ae.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Tx](t){t===V.RIGHT_SQUARE_BRACKET?this.state=Sx:(this._emitChars("]"),this._reconsumeInState(U0))}[Sx](t){t===V.GREATER_THAN_SIGN?this.state=Ot:t===V.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(U0))}[Ju](t){this.tempBuff=[V.AMPERSAND],t===V.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Cx):e4(t)?this._reconsumeInState(wx):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[wx](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[V.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===V.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Ae.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Ax}[Ax](t){e4(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Fn(t):this._emitCodePoint(t):(t===V.SEMICOLON&&this._err(Ae.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Cx](t){this.charRefCode=0,t===V.LATIN_SMALL_X||t===V.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=kx):this._reconsumeInState(xx)}[kx](t){Kre(t)?this._reconsumeInState(Ix):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[xx](t){zd(t)?this._reconsumeInState(Rx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ix](t){MM(t)?this.charRefCode=this.charRefCode*16+t-55:FM(t)?this.charRefCode=this.charRefCode*16+t-87:zd(t)?this.charRefCode=this.charRefCode*16+t-48:t===V.SEMICOLON?this.state=id:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(id))}[Rx](t){zd(t)?this.charRefCode=this.charRefCode*10+t-48:t===V.SEMICOLON?this.state=id:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(id))}[id](){if(this.charRefCode===V.NULL)this._err(Ae.nullCharacterReference),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Ae.characterReferenceOutsideUnicodeRange),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(cn.isSurrogate(this.charRefCode))this._err(Ae.surrogateCharacterReference),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(cn.isUndefinedCodePoint(this.charRefCode))this._err(Ae.noncharacterCharacterReference);else if(cn.isControlCodePoint(this.charRefCode)||this.charRefCode===V.CARRIAGE_RETURN){this._err(Ae.controlCharacterReference);const t=Wre[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};wa.CHARACTER_TOKEN="CHARACTER_TOKEN";wa.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";wa.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";wa.START_TAG_TOKEN="START_TAG_TOKEN";wa.END_TAG_TOKEN="END_TAG_TOKEN";wa.COMMENT_TOKEN="COMMENT_TOKEN";wa.DOCTYPE_TOKEN="DOCTYPE_TOKEN";wa.EOF_TOKEN="EOF_TOKEN";wa.HIBERNATION_TOKEN="HIBERNATION_TOKEN";wa.MODE={DATA:Ot,RCDATA:u1,RAWTEXT:Sd,SCRIPT_DATA:Xo,PLAINTEXT:LM};wa.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var t2=wa,Za={};const t4=Za.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/"};Za.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Za.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const $e=Za.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"};Za.SPECIAL_ELEMENTS={[t4.HTML]:{[$e.ADDRESS]:!0,[$e.APPLET]:!0,[$e.AREA]:!0,[$e.ARTICLE]:!0,[$e.ASIDE]:!0,[$e.BASE]:!0,[$e.BASEFONT]:!0,[$e.BGSOUND]:!0,[$e.BLOCKQUOTE]:!0,[$e.BODY]:!0,[$e.BR]:!0,[$e.BUTTON]:!0,[$e.CAPTION]:!0,[$e.CENTER]:!0,[$e.COL]:!0,[$e.COLGROUP]:!0,[$e.DD]:!0,[$e.DETAILS]:!0,[$e.DIR]:!0,[$e.DIV]:!0,[$e.DL]:!0,[$e.DT]:!0,[$e.EMBED]:!0,[$e.FIELDSET]:!0,[$e.FIGCAPTION]:!0,[$e.FIGURE]:!0,[$e.FOOTER]:!0,[$e.FORM]:!0,[$e.FRAME]:!0,[$e.FRAMESET]:!0,[$e.H1]:!0,[$e.H2]:!0,[$e.H3]:!0,[$e.H4]:!0,[$e.H5]:!0,[$e.H6]:!0,[$e.HEAD]:!0,[$e.HEADER]:!0,[$e.HGROUP]:!0,[$e.HR]:!0,[$e.HTML]:!0,[$e.IFRAME]:!0,[$e.IMG]:!0,[$e.INPUT]:!0,[$e.LI]:!0,[$e.LINK]:!0,[$e.LISTING]:!0,[$e.MAIN]:!0,[$e.MARQUEE]:!0,[$e.MENU]:!0,[$e.META]:!0,[$e.NAV]:!0,[$e.NOEMBED]:!0,[$e.NOFRAMES]:!0,[$e.NOSCRIPT]:!0,[$e.OBJECT]:!0,[$e.OL]:!0,[$e.P]:!0,[$e.PARAM]:!0,[$e.PLAINTEXT]:!0,[$e.PRE]:!0,[$e.SCRIPT]:!0,[$e.SECTION]:!0,[$e.SELECT]:!0,[$e.SOURCE]:!0,[$e.STYLE]:!0,[$e.SUMMARY]:!0,[$e.TABLE]:!0,[$e.TBODY]:!0,[$e.TD]:!0,[$e.TEMPLATE]:!0,[$e.TEXTAREA]:!0,[$e.TFOOT]:!0,[$e.TH]:!0,[$e.THEAD]:!0,[$e.TITLE]:!0,[$e.TR]:!0,[$e.TRACK]:!0,[$e.UL]:!0,[$e.WBR]:!0,[$e.XMP]:!0},[t4.MATHML]:{[$e.MI]:!0,[$e.MO]:!0,[$e.MN]:!0,[$e.MS]:!0,[$e.MTEXT]:!0,[$e.ANNOTATION_XML]:!0},[t4.SVG]:{[$e.TITLE]:!0,[$e.FOREIGN_OBJECT]:!0,[$e.DESC]:!0}};const PM=Za,He=PM.TAG_NAMES,dn=PM.NAMESPACES;function Ox(e){switch(e.length){case 1:return e===He.P;case 2:return e===He.RB||e===He.RP||e===He.RT||e===He.DD||e===He.DT||e===He.LI;case 3:return e===He.RTC;case 6:return e===He.OPTION;case 8:return e===He.OPTGROUP}return!1}function Yre(e){switch(e.length){case 1:return e===He.P;case 2:return e===He.RB||e===He.RP||e===He.RT||e===He.DD||e===He.DT||e===He.LI||e===He.TD||e===He.TH||e===He.TR;case 3:return e===He.RTC;case 5:return e===He.TBODY||e===He.TFOOT||e===He.THEAD;case 6:return e===He.OPTION;case 7:return e===He.CAPTION;case 8:return e===He.OPTGROUP||e===He.COLGROUP}return!1}function $0(e,t){switch(e.length){case 2:if(e===He.TD||e===He.TH)return t===dn.HTML;if(e===He.MI||e===He.MO||e===He.MN||e===He.MS)return t===dn.MATHML;break;case 4:if(e===He.HTML)return t===dn.HTML;if(e===He.DESC)return t===dn.SVG;break;case 5:if(e===He.TABLE)return t===dn.HTML;if(e===He.MTEXT)return t===dn.MATHML;if(e===He.TITLE)return t===dn.SVG;break;case 6:return(e===He.APPLET||e===He.OBJECT)&&t===dn.HTML;case 7:return(e===He.CAPTION||e===He.MARQUEE)&&t===dn.HTML;case 8:return e===He.TEMPLATE&&t===dn.HTML;case 13:return e===He.FOREIGN_OBJECT&&t===dn.SVG;case 14:return e===He.ANNOTATION_XML&&t===dn.MATHML}return!1}let Xre=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===He.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===dn.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(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===dn.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===He.H1||t===He.H2||t===He.H3||t===He.H4||t===He.H5||t===He.H6&&n===dn.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===He.TD||t===He.TH&&n===dn.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==He.TABLE&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==He.TBODY&&this.currentTagName!==He.TFOOT&&this.currentTagName!==He.THEAD&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==He.TR&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===He.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===He.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if($0(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===He.H1||n===He.H2||n===He.H3||n===He.H4||n===He.H5||n===He.H6)&&r===dn.HTML)return!0;if($0(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if((r===He.UL||r===He.OL)&&i===dn.HTML||$0(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if(r===He.BUTTON&&i===dn.HTML||$0(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===dn.HTML){if(r===t)return!0;if(r===He.TABLE||r===He.TEMPLATE||r===He.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===dn.HTML){if(n===He.TBODY||n===He.THEAD||n===He.TFOOT)return!0;if(n===He.TABLE||n===He.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===dn.HTML){if(r===t)return!0;if(r!==He.OPTION&&r!==He.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Ox(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Yre(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Ox(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var Zre=Xre;const z0=3;let L9=class $s{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=z0){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===$s.MARKER_ENTRY)break;const u=s.element,c=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===a&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length=z0-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:$s.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:$s.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:$s.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===$s.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===$s.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===$s.ELEMENT_ENTRY&&r.element===t)return r}return null}};L9.MARKER_ENTRY="MARKER_ENTRY";L9.ELEMENT_ENTRY="ELEMENT_ENTRY";var Qre=L9;let BM=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};BM.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i{const a=I3.MODE[i];r[a]=function(o){t.ctLoc=t._getCurrentLocation(),n[a].call(this,o)}}),r}};var AL=dne;const pne=ls;let fne=class extends pne{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var hne=fne;const R3=ls,Mx=I2,gne=AL,mne=hne,bne=Wa,N3=bne.TAG_NAMES;let Ene=class extends R3{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===Mx.END_TAG_TOKEN&&a===n.tagName,s={};o?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const a=R3.install(this.tokenizer,gne);t.posTracker=a.posTracker,R3.install(this.openElements,mne,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===Mx.END_TAG_TOKEN&&(r.tagName===N3.HTML||r.tagName===N3.BODY&&this.openElements.hasInScope(N3.BODY)))for(let a=this.openElements.stackTop;a>=0;a--){const o=this.openElements.items[a];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),a=i.length;for(let o=0;o(Object.keys(i).forEach(a=>{r[a]=i[a]}),r),Object.create(null))},R2={};const{DOCUMENT_MODE:qu}=Wa,kL="html",$ne="about:legacy-compat",zne="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",IL=["+//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//"],Hne=IL.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),jne=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],RL=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Gne=RL.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Px(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Bx(e,t){for(let n=0;n-1)return qu.QUIRKS;let r=t===null?Hne:IL;if(Bx(n,r))return qu.QUIRKS;if(r=t===null?RL:Gne,Bx(n,r))return qu.LIMITED_QUIRKS}return qu.NO_QUIRKS};R2.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Px(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Px(n)),r};var _l={};const O3=I2,qE=Wa,ft=qE.TAG_NAMES,vr=qE.NAMESPACES,dh=qE.ATTRS,Ux={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Vne="definitionurl",Wne="definitionURL",qne={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"},Kne={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:vr.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:vr.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:vr.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:vr.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:vr.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:vr.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:vr.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:vr.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:vr.XML},"xml:space":{prefix:"xml",name:"space",namespace:vr.XML},xmlns:{prefix:"",name:"xmlns",namespace:vr.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:vr.XMLNS}},Yne=_l.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"},Xne={[ft.B]:!0,[ft.BIG]:!0,[ft.BLOCKQUOTE]:!0,[ft.BODY]:!0,[ft.BR]:!0,[ft.CENTER]:!0,[ft.CODE]:!0,[ft.DD]:!0,[ft.DIV]:!0,[ft.DL]:!0,[ft.DT]:!0,[ft.EM]:!0,[ft.EMBED]:!0,[ft.H1]:!0,[ft.H2]:!0,[ft.H3]:!0,[ft.H4]:!0,[ft.H5]:!0,[ft.H6]:!0,[ft.HEAD]:!0,[ft.HR]:!0,[ft.I]:!0,[ft.IMG]:!0,[ft.LI]:!0,[ft.LISTING]:!0,[ft.MENU]:!0,[ft.META]:!0,[ft.NOBR]:!0,[ft.OL]:!0,[ft.P]:!0,[ft.PRE]:!0,[ft.RUBY]:!0,[ft.S]:!0,[ft.SMALL]:!0,[ft.SPAN]:!0,[ft.STRONG]:!0,[ft.STRIKE]:!0,[ft.SUB]:!0,[ft.SUP]:!0,[ft.TABLE]:!0,[ft.TT]:!0,[ft.U]:!0,[ft.UL]:!0,[ft.VAR]:!0};_l.causesExit=function(e){const t=e.tagName;return t===ft.FONT&&(O3.getTokenAttr(e,dh.COLOR)!==null||O3.getTokenAttr(e,dh.SIZE)!==null||O3.getTokenAttr(e,dh.FACE)!==null)?!0:Xne[t]};_l.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),a=lre[i];if(a){this.insertionMode=a;break}else if(!n&&(i===S.TD||i===S.TH)){this.insertionMode=L2;break}else if(!n&&i===S.HEAD){this.insertionMode=uc;break}else if(i===S.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===S.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===S.HTML){this.insertionMode=this.headElement?O2:N2;break}else if(n){this.insertionMode=mo;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===S.TEMPLATE)break;if(i===S.TABLE){this.insertionMode=XE;return}}this.insertionMode=YE}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);if(i===S.TEMPLATE&&a===rt.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===S.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Su.SPECIAL_ELEMENTS[r][n]}}var dre=cre;function pre(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Oa(e,t),n}function fre(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function hre(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),u=s&&a>=sre;!s||u?(u&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=gre(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function gre(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function mre(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===S.TEMPLATE&&i===rt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function bre(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Fs(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==S.TEMPLATE&&e._err(Ar.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Ar.endTagWithoutMatchingOpenElement)}function Rd(e,t){e.openElements.pop(),e.insertionMode=O2,e._processToken(t)}function wre(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.BASEFONT||n===S.BGSOUND||n===S.HEAD||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.STYLE?cr(e,t):n===S.NOSCRIPT?e._err(Ar.nestedNoscriptInHead):Nd(e,t)}function Are(e,t){const n=t.tagName;n===S.NOSCRIPT?(e.openElements.pop(),e.insertionMode=uc):n===S.BR?Nd(e,t):e._err(Ar.endTagWithoutMatchingOpenElement)}function Nd(e,t){const n=t.type===q.EOF_TOKEN?Ar.openElementsLeftAfterEof:Ar.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=uc,e._processToken(t)}function Cre(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.BODY?(e._insertElement(t,rt.HTML),e.framesetOk=!1,e.insertionMode=mo):n===S.FRAMESET?(e._insertElement(t,rt.HTML),e.insertionMode=M2):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.SCRIPT||n===S.STYLE||n===S.TEMPLATE||n===S.TITLE?(e._err(Ar.abandonedHeadElementChild),e.openElements.push(e.headElement),cr(e,t),e.openElements.remove(e.headElement)):n===S.HEAD?e._err(Ar.misplacedStartTagForHeadElement):Od(e,t)}function xre(e,t){const n=t.tagName;n===S.BODY||n===S.HTML||n===S.BR?Od(e,t):n===S.TEMPLATE?wu(e,t):e._err(Ar.endTagWithoutMatchingOpenElement)}function Od(e,t){e._insertFakeElement(S.BODY),e.insertionMode=mo,e._processToken(t)}function Bl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function k0(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function kre(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Ire(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Rre(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,rt.HTML),e.insertionMode=M2)}function Fo(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML)}function Nre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6)&&e.openElements.pop(),e._insertElement(t,rt.HTML)}function Vx(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Ore(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),n||(e.formElement=e.openElements.current))}function Dre(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],a=e.treeAdapter.getTagName(i);let o=null;if(n===S.LI&&a===S.LI?o=S.LI:(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)&&(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML)}function Lre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),e.tokenizer.state=q.MODE.PLAINTEXT}function Mre(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.framesetOk=!1}function Fre(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);n&&(Fs(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ku(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Pre(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(Fs(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Wx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Bre(e,t){e.treeAdapter.getDocumentMode(e.document)!==Su.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),e.framesetOk=!1,e.insertionMode=Ur}function r1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,rt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ure(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,rt.HTML);const n=q.getTokenAttr(t,NL.TYPE);(!n||n.toLowerCase()!==OL)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function qx(e,t){e._appendElement(t,rt.HTML),t.ackSelfClosing=!0}function $re(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,rt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function zre(e,t){t.tagName=S.IMG,r1(e,t)}function Hre(e,t){e._insertElement(t,rt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=q.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=sg}function jre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,q.MODE.RAWTEXT)}function Gre(e,t){e.framesetOk=!1,e._switchToTextParsing(t,q.MODE.RAWTEXT)}function Kx(e,t){e._switchToTextParsing(t,q.MODE.RAWTEXT)}function Vre(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.framesetOk=!1,e.insertionMode===Ur||e.insertionMode===D2||e.insertionMode===pa||e.insertionMode===rs||e.insertionMode===L2?e.insertionMode=XE:e.insertionMode=YE}function Yx(e,t){e.openElements.currentTagName===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML)}function Xx(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,rt.HTML)}function Wre(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,rt.HTML)}function qre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML)}function Kre(e,t){e._reconstructActiveFormattingElements(),uo.adjustTokenMathMLAttrs(t),uo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,rt.MATHML):e._insertElement(t,rt.MATHML),t.ackSelfClosing=!0}function Yre(e,t){e._reconstructActiveFormattingElements(),uo.adjustTokenSVGAttrs(t),uo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,rt.SVG):e._insertElement(t,rt.SVG),t.ackSelfClosing=!0}function ta(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML)}function yi(e,t){const n=t.tagName;switch(n.length){case 1:n===S.I||n===S.S||n===S.B||n===S.U?Ku(e,t):n===S.P?Fo(e,t):n===S.A?Fre(e,t):ta(e,t);break;case 2:n===S.DL||n===S.OL||n===S.UL?Fo(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?Nre(e,t):n===S.LI||n===S.DD||n===S.DT?Dre(e,t):n===S.EM||n===S.TT?Ku(e,t):n===S.BR?r1(e,t):n===S.HR?$re(e,t):n===S.RB?Xx(e,t):n===S.RT||n===S.RP?Wre(e,t):n!==S.TH&&n!==S.TD&&n!==S.TR&&ta(e,t);break;case 3:n===S.DIV||n===S.DIR||n===S.NAV?Fo(e,t):n===S.PRE?Vx(e,t):n===S.BIG?Ku(e,t):n===S.IMG||n===S.WBR?r1(e,t):n===S.XMP?jre(e,t):n===S.SVG?Yre(e,t):n===S.RTC?Xx(e,t):n!==S.COL&&ta(e,t);break;case 4:n===S.HTML?kre(e,t):n===S.BASE||n===S.LINK||n===S.META?cr(e,t):n===S.BODY?Ire(e,t):n===S.MAIN||n===S.MENU?Fo(e,t):n===S.FORM?Ore(e,t):n===S.CODE||n===S.FONT?Ku(e,t):n===S.NOBR?Pre(e,t):n===S.AREA?r1(e,t):n===S.MATH?Kre(e,t):n===S.MENU?qre(e,t):n!==S.HEAD&&ta(e,t);break;case 5:n===S.STYLE||n===S.TITLE?cr(e,t):n===S.ASIDE?Fo(e,t):n===S.SMALL?Ku(e,t):n===S.TABLE?Bre(e,t):n===S.EMBED?r1(e,t):n===S.INPUT?Ure(e,t):n===S.PARAM||n===S.TRACK?qx(e,t):n===S.IMAGE?zre(e,t):n!==S.FRAME&&n!==S.TBODY&&n!==S.TFOOT&&n!==S.THEAD&&ta(e,t);break;case 6:n===S.SCRIPT?cr(e,t):n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Fo(e,t):n===S.BUTTON?Mre(e,t):n===S.STRIKE||n===S.STRONG?Ku(e,t):n===S.APPLET||n===S.OBJECT?Wx(e,t):n===S.KEYGEN?r1(e,t):n===S.SOURCE?qx(e,t):n===S.IFRAME?Gre(e,t):n===S.SELECT?Vre(e,t):n===S.OPTION?Yx(e,t):ta(e,t);break;case 7:n===S.BGSOUND?cr(e,t):n===S.DETAILS||n===S.ADDRESS||n===S.ARTICLE||n===S.SECTION||n===S.SUMMARY?Fo(e,t):n===S.LISTING?Vx(e,t):n===S.MARQUEE?Wx(e,t):n===S.NOEMBED?Kx(e,t):n!==S.CAPTION&&ta(e,t);break;case 8:n===S.BASEFONT?cr(e,t):n===S.FRAMESET?Rre(e,t):n===S.FIELDSET?Fo(e,t):n===S.TEXTAREA?Hre(e,t):n===S.TEMPLATE?cr(e,t):n===S.NOSCRIPT?e.options.scriptingEnabled?Kx(e,t):ta(e,t):n===S.OPTGROUP?Yx(e,t):n!==S.COLGROUP&&ta(e,t);break;case 9:n===S.PLAINTEXT?Lre(e,t):ta(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Fo(e,t):ta(e,t);break;default:ta(e,t)}}function Xre(e){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=ZE)}function Zre(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=ZE,e._processToken(t))}function Is(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Qre(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):e.openElements.remove(n))}function Jre(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(S.P),e._closePElement()}function eie(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function tie(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function nie(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Zx(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function rie(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(S.BR),e.openElements.pop(),e.framesetOk=!1}function Oa(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function QE(e,t){const n=t.tagName;switch(n.length){case 1:n===S.A||n===S.B||n===S.I||n===S.S||n===S.U?Fs(e,t):n===S.P?Jre(e):Oa(e,t);break;case 2:n===S.DL||n===S.UL||n===S.OL?Is(e,t):n===S.LI?eie(e):n===S.DD||n===S.DT?tie(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?nie(e):n===S.BR?rie(e):n===S.EM||n===S.TT?Fs(e,t):Oa(e,t);break;case 3:n===S.BIG?Fs(e,t):n===S.DIR||n===S.DIV||n===S.NAV||n===S.PRE?Is(e,t):Oa(e,t);break;case 4:n===S.BODY?Xre(e):n===S.HTML?Zre(e,t):n===S.FORM?Qre(e):n===S.CODE||n===S.FONT||n===S.NOBR?Fs(e,t):n===S.MAIN||n===S.MENU?Is(e,t):Oa(e,t);break;case 5:n===S.ASIDE?Is(e,t):n===S.SMALL?Fs(e,t):Oa(e,t);break;case 6:n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Is(e,t):n===S.APPLET||n===S.OBJECT?Zx(e,t):n===S.STRIKE||n===S.STRONG?Fs(e,t):Oa(e,t);break;case 7:n===S.ADDRESS||n===S.ARTICLE||n===S.DETAILS||n===S.SECTION||n===S.SUMMARY||n===S.LISTING?Is(e,t):n===S.MARQUEE?Zx(e,t):Oa(e,t);break;case 8:n===S.FIELDSET?Is(e,t):n===S.TEMPLATE?wu(e,t):Oa(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Is(e,t):Oa(e,t);break;default:Oa(e,t)}}function Po(e,t){e.tmplInsertionModeStackTop>-1?zL(e,t):e.stopped=!0}function iie(e,t){t.tagName===S.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function aie(e,t){e._err(Ar.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Bo(e,t){const n=e.openElements.currentTagName;n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ML,e._processToken(t)):na(e,t)}function oie(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,rt.HTML),e.insertionMode=D2}function sie(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,rt.HTML),e.insertionMode=Np}function lie(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.COLGROUP),e.insertionMode=Np,e._processToken(t)}function uie(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,rt.HTML),e.insertionMode=pa}function cie(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.TBODY),e.insertionMode=pa,e._processToken(t)}function die(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processToken(t))}function pie(e,t){const n=q.getTokenAttr(t,NL.TYPE);n&&n.toLowerCase()===OL?e._appendElement(t,rt.HTML):na(e,t),t.ackSelfClosing=!0}function fie(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,rt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function JE(e,t){const n=t.tagName;switch(n.length){case 2:n===S.TD||n===S.TH||n===S.TR?cie(e,t):na(e,t);break;case 3:n===S.COL?lie(e,t):na(e,t);break;case 4:n===S.FORM?fie(e,t):na(e,t);break;case 5:n===S.TABLE?die(e,t):n===S.STYLE?cr(e,t):n===S.TBODY||n===S.TFOOT||n===S.THEAD?uie(e,t):n===S.INPUT?pie(e,t):na(e,t);break;case 6:n===S.SCRIPT?cr(e,t):na(e,t);break;case 7:n===S.CAPTION?oie(e,t):na(e,t);break;case 8:n===S.COLGROUP?sie(e,t):n===S.TEMPLATE?cr(e,t):na(e,t);break;default:na(e,t)}}function ev(e,t){const n=t.tagName;n===S.TABLE?e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode()):n===S.TEMPLATE?wu(e,t):n!==S.BODY&&n!==S.CAPTION&&n!==S.COL&&n!==S.COLGROUP&&n!==S.HTML&&n!==S.TBODY&&n!==S.TD&&n!==S.TFOOT&&n!==S.TH&&n!==S.THEAD&&n!==S.TR&&na(e,t)}function na(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function hie(e,t){e.pendingCharacterTokens.push(t)}function gie(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Yc(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Rie(e,t){t.tagName===S.HTML?yi(e,t):cg(e,t)}function Nie(e,t){t.tagName===S.HTML?e.fragmentContext||(e.insertionMode=PL):cg(e,t)}function cg(e,t){e.insertionMode=mo,e._processToken(t)}function Oie(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.FRAMESET?e._insertElement(t,rt.HTML):n===S.FRAME?(e._appendElement(t,rt.HTML),t.ackSelfClosing=!0):n===S.NOFRAMES&&cr(e,t)}function Die(e,t){t.tagName===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==S.FRAMESET&&(e.insertionMode=FL))}function Lie(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.NOFRAMES&&cr(e,t)}function Mie(e,t){t.tagName===S.HTML&&(e.insertionMode=BL)}function Fie(e,t){t.tagName===S.HTML?yi(e,t):ph(e,t)}function ph(e,t){e.insertionMode=mo,e._processToken(t)}function Pie(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.NOFRAMES&&cr(e,t)}function Bie(e,t){t.chars=ire.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Uie(e,t){e._insertCharacters(t),e.framesetOk=!1}function $ie(e,t){if(uo.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==rt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===rt.MATHML?uo.adjustTokenMathMLAttrs(t):r===rt.SVG&&(uo.adjustTokenSVGTagName(t),uo.adjustTokenSVGAttrs(t)),uo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function zie(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===rt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Hie=Hi(dre),Qx=/[#.]/g;function jie(e,t){const n=e||"",r={};let i=0,a,o;for(;i-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function a(o){const s=o&&o.line,u=o&&o.column;if(typeof s=="number"&&typeof u=="number"&&!Number.isNaN(s)&&!Number.isNaN(u)&&s-1 in n){const c=(n[s-2]||0)+u-1||0;if(c>-1&&c{const P=R;if(P.value.stitch&&W!==null&&B!==null)return W.children[B]=P.value.stitch,B}),e.type!=="root"&&f.type==="root"&&f.children.length===1)return f.children[0];return f;function m(){const R={nodeName:"template",tagName:"template",attrs:[],namespaceURI:up.html,childNodes:[]},B={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:up.html,childNodes:[]},W={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(B,R),i._pushTmplInsertionMode(hae),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),i._adoptNodes(B.childNodes[0],W),W}function g(){const R=i.treeAdapter.createDocument();if(i._bootstrap(R,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),R}function E(R){let B=-1;if(R)for(;++BWL(t,n,e)}const Iae=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Rae=Object.hasOwnProperty;class Nae{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Oae(t,n===!0);const a=i;for(;Rae.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Oae(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Iae,"").replace(/ /g,"-"))}const Dae={}.hasOwnProperty;function Hr(e,t){const n=typeof t=="string"&&Lae(e)&&e.type==="element"&&e.properties&&Dae.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}function Lae(e){return!!(e&&typeof e=="object"&&"type"in e)}function qL(e){const t=e&&e.type==="element"&&e.tagName.toLowerCase()||"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}function T1(e){return"children"in e?KL(e):"value"in e?e.value:""}function Mae(e){return e.type==="text"?e.value:"children"in e?KL(e):""}function KL(e){let t=-1;const n=[];for(;++t{nk.reset(),Ui(n,"element",r=>{qL(r)&&r.properties&&!Hr(r,"id")&&(r.properties.id=t+nk.slug(T1(r)))})}}const YL=function(e){if(e==null)return rv;if(typeof e=="string")return Bae(e);if(typeof e=="object")return Pae(e);if(typeof e=="function")return XL(e);throw new Error("Expected function, string, or array as test")};function Pae(e){const t=[];let n=-1;for(;++n{Ui(g,"element",(E,b,T)=>{if(qL(E)&&Hr(E,"id")&&a(E,b,T))return o(E,b,T)})};function s(g){return g.children[n==="prepend"?"unshift":"push"](m(g,v1(!0,{},t),p(r,g))),[Cd]}function u(g,E,b){if(typeof E!="number"||!b)return;const T=m(g,v1(!0,{},t),p(r,g));let v=n==="before"?[T,g]:[g,T];if(i){const y=f(i,g);y&&!Array.isArray(y)&&y.type==="element"&&(y.children=v,v=[y])}return b.children.splice(E,1,...v),[Cd,E+v.length]}function c(g){return g.children=[m(g,v1(!0,{},t),g.children)],[Cd]}function p(g,E){const b=f(g,E);return Array.isArray(b)?b:[b]}function f(g,E){return typeof g=="function"?g(E):v1(!0,Array.isArray(g)?[]:{},g)}function m(g,E,b){return{type:"element",tagName:"a",properties:Object.assign({},E,{href:"#"+(g.properties||{}).id}),children:b}}}const zae=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Hae=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},ZL=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?ZL(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},rk=({value:e=""})=>{const t=zae(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},ik=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},jae=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Ui(r,"element",(i,a,o)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&o&&Array.isArray(o.children)&&o.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof a=="number"){const u=Hae(o.children,a);if(u){const c=rk(u);Object.keys(c).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=ik(s.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&o&&Array.isArray(o.children)&&typeof a=="number"){const s=ZL(o.children,a,"",n);if(s){const u=rk(s);Object.keys(u).length>0&&(i.properties=ik(i.properties,u,t))}}})}},Gae=jae,Vae=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Ui(r,(i,a,o)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let c=(u.value||"").trim();if(c=c.replace(/^/,"$1"),c===t)return s=!0,!1;if(c===n)return s=!1,!1}return!s})}})}},Wae=Vae,qae={}.hasOwnProperty,Kae=function(e,t,n){const r=C2(n||t),i=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,a=i??!0;return o(e);function o(s,u,c){const p=[];if(!r(s,u,c))return null;if(s.children){let g=-1;for(;++g0&&p.length===0)return null}const f={};let m;for(m in s)qae.call(s,m)&&(f[m]=m==="children"?p:s[m]);return f}};var Nb={exports:{}};(function(e,t){function n(r){let i=[],a;for(let o of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(o))i.push(parseInt(o,10));else if(a=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,u,c,p]=a;if(u&&p){u=parseInt(u),p=parseInt(p);const f=u]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}qa.displayName="c";qa.aliases=[];function qa(e){e.register(Mt),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Au.displayName="cpp";Au.aliases=[];function Au(e){e.register(qa),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}P2.displayName="arduino";P2.aliases=["ino"];function P2(e){e.register(Au),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}Op.displayName="bash";Op.aliases=["sh","shell"];function Op(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=i.variable[1].inside,s=0;s>/g,function(oe,O){return"(?:"+me[+O]+")"})}function r(N,me,oe){return RegExp(n(N,me),oe||"")}function i(N,me){for(var oe=0;oe>/g,function(){return"(?:"+N+")"});return N.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(N){return"\\b(?:"+N.trim().replace(/ /g,"|")+")\\b"}var s=o(a.typeDeclaration),u=RegExp(o(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=o(a.typeDeclaration+" "+a.contextual+" "+a.other),p=o(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,E=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),b=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,E]),T=/\[\s*(?:,\s*)*\]/.source,v=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,T]),y=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,m,T]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[y]),A=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,b,T]),D={keyword:u,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:D},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,A]),lookbehind:!0,inside:D},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,E]),lookbehind:!0,inside:D},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:D},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[A,p,g]),inside:D}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[A,b]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[A]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:D}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,E,g,A,u.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[E,m]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(A),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var W=R+"|"+k,P=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[W]),Q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),z=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,le=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,Q]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[z,le]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[z]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[Q]),inside:t.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var he=/:[^}\r\n]+/.source,de=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),fe=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[de,he]),Z=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[W]),2),V=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Z,he]);function ce(N,me){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[N]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[me,he]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[fe]),lookbehind:!0,greedy:!0,inside:ce(fe,de)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[V]),lookbehind:!0,greedy:!0,inside:ce(V,Z)}],char:{pattern:RegExp(k),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}fr.displayName="markup";fr.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function fr(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Tl.displayName="css";Tl.aliases=[];function Tl(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}B2.displayName="diff";B2.aliases=[];function B2(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r +`)&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}};var UM=eie;const Dx=ms,n4=t2,tie=UM;let nie=class extends Dx{constructor(t){super(t),this.tokenizer=t,this.posTracker=Dx.install(t.preprocessor,tie),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;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,a){n._createCharacterToken.call(this,i,a),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===n4.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(n4.MODE).forEach(i=>{const a=n4.MODE[i];r[a]=function(o){t.ctLoc=t._getCurrentLocation(),n[a].call(this,o)}}),r}};var $M=nie;const rie=ms;let iie=class extends rie{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var aie=iie;const r4=ms,Lx=t2,oie=$M,sie=aie,lie=Za,i4=lie.TAG_NAMES;let uie=class extends r4{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===Lx.END_TAG_TOKEN&&a===n.tagName,s={};o?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const a=r4.install(this.tokenizer,oie);t.posTracker=a.posTracker,r4.install(this.openElements,sie,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===Lx.END_TAG_TOKEN&&(r.tagName===i4.HTML||r.tagName===i4.BODY&&this.openElements.hasInScope(i4.BODY)))for(let a=this.openElements.stackTop;a>=0;a--){const o=this.openElements.items[a];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),a=i.length;for(let o=0;o(Object.keys(i).forEach(a=>{r[a]=i[a]}),r),Object.create(null))},n2={};const{DOCUMENT_MODE:e1}=Za,jM="html",Nie="about:legacy-compat",Oie="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",GM=["+//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//"],Die=GM.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),Lie=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],VM=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Mie=VM.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Fx(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Px(e,t){for(let n=0;n-1)return e1.QUIRKS;let r=t===null?Die:GM;if(Px(n,r))return e1.QUIRKS;if(r=t===null?VM:Mie,Px(n,r))return e1.LIMITED_QUIRKS}return e1.NO_QUIRKS};n2.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Fx(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Fx(n)),r};var kl={};const a4=t2,F9=Za,ft=F9.TAG_NAMES,Tr=F9.NAMESPACES,Rh=F9.ATTRS,Bx={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Fie="definitionurl",Pie="definitionURL",Bie={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"},Uie={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Tr.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Tr.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Tr.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Tr.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Tr.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Tr.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Tr.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Tr.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Tr.XML},"xml:space":{prefix:"xml",name:"space",namespace:Tr.XML},xmlns:{prefix:"",name:"xmlns",namespace:Tr.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Tr.XMLNS}},$ie=kl.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"},zie={[ft.B]:!0,[ft.BIG]:!0,[ft.BLOCKQUOTE]:!0,[ft.BODY]:!0,[ft.BR]:!0,[ft.CENTER]:!0,[ft.CODE]:!0,[ft.DD]:!0,[ft.DIV]:!0,[ft.DL]:!0,[ft.DT]:!0,[ft.EM]:!0,[ft.EMBED]:!0,[ft.H1]:!0,[ft.H2]:!0,[ft.H3]:!0,[ft.H4]:!0,[ft.H5]:!0,[ft.H6]:!0,[ft.HEAD]:!0,[ft.HR]:!0,[ft.I]:!0,[ft.IMG]:!0,[ft.LI]:!0,[ft.LISTING]:!0,[ft.MENU]:!0,[ft.META]:!0,[ft.NOBR]:!0,[ft.OL]:!0,[ft.P]:!0,[ft.PRE]:!0,[ft.RUBY]:!0,[ft.S]:!0,[ft.SMALL]:!0,[ft.SPAN]:!0,[ft.STRONG]:!0,[ft.STRIKE]:!0,[ft.SUB]:!0,[ft.SUP]:!0,[ft.TABLE]:!0,[ft.TT]:!0,[ft.U]:!0,[ft.UL]:!0,[ft.VAR]:!0};kl.causesExit=function(e){const t=e.tagName;return t===ft.FONT&&(a4.getTokenAttr(e,Rh.COLOR)!==null||a4.getTokenAttr(e,Rh.SIZE)!==null||a4.getTokenAttr(e,Rh.FACE)!==null)?!0:zie[t]};kl.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),a=Jie[i];if(a){this.insertionMode=a;break}else if(!n&&(i===S.TD||i===S.TH)){this.insertionMode=o2;break}else if(!n&&i===S.HEAD){this.insertionMode=vc;break}else if(i===S.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===S.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===S.HTML){this.insertionMode=this.headElement?i2:r2;break}else if(n){this.insertionMode=To;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===S.TEMPLATE)break;if(i===S.TABLE){this.insertionMode=U9;return}}this.insertionMode=B9}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);if(i===S.TEMPLATE&&a===nt.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===S.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Ru.SPECIAL_ELEMENTS[r][n]}}var nae=tae;function rae(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ma(e,t),n}function iae(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function aae(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),u=s&&a>=Qie;!s||u?(u&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=oae(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function oae(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function sae(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===S.TEMPLATE&&i===nt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function lae(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Gs(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==S.TEMPLATE&&e._err(xr.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(xr.endTagWithoutMatchingOpenElement)}function Gd(e,t){e.openElements.pop(),e.insertionMode=i2,e._processToken(t)}function gae(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.BASEFONT||n===S.BGSOUND||n===S.HEAD||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.STYLE?dr(e,t):n===S.NOSCRIPT?e._err(xr.nestedNoscriptInHead):Vd(e,t)}function mae(e,t){const n=t.tagName;n===S.NOSCRIPT?(e.openElements.pop(),e.insertionMode=vc):n===S.BR?Vd(e,t):e._err(xr.endTagWithoutMatchingOpenElement)}function Vd(e,t){const n=t.type===Y.EOF_TOKEN?xr.openElementsLeftAfterEof:xr.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=vc,e._processToken(t)}function bae(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.BODY?(e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=To):n===S.FRAMESET?(e._insertElement(t,nt.HTML),e.insertionMode=s2):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.SCRIPT||n===S.STYLE||n===S.TEMPLATE||n===S.TITLE?(e._err(xr.abandonedHeadElementChild),e.openElements.push(e.headElement),dr(e,t),e.openElements.remove(e.headElement)):n===S.HEAD?e._err(xr.misplacedStartTagForHeadElement):Wd(e,t)}function yae(e,t){const n=t.tagName;n===S.BODY||n===S.HTML||n===S.BR?Wd(e,t):n===S.TEMPLATE?Nu(e,t):e._err(xr.endTagWithoutMatchingOpenElement)}function Wd(e,t){e._insertFakeElement(S.BODY),e.insertionMode=To,e._processToken(t)}function Gl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function j0(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Eae(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function vae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function _ae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,nt.HTML),e.insertionMode=s2)}function jo(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Tae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6)&&e.openElements.pop(),e._insertElement(t,nt.HTML)}function Gx(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Sae(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),n||(e.formElement=e.openElements.current))}function wae(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],a=e.treeAdapter.getTagName(i);let o=null;if(n===S.LI&&a===S.LI?o=S.LI:(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)&&(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Aae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.tokenizer.state=Y.MODE.PLAINTEXT}function Cae(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1}function kae(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);n&&(Gs(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function t1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xae(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(Gs(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Vx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Iae(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ru.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=Hr}function c1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Rae(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML);const n=Y.getTokenAttr(t,WM.TYPE);(!n||n.toLowerCase()!==qM)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Wx(e,t){e._appendElement(t,nt.HTML),t.ackSelfClosing=!0}function Nae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Oae(e,t){t.tagName=S.IMG,c1(e,t)}function Dae(e,t){e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Y.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Lg}function Lae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function Mae(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function qx(e,t){e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function Fae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode===Hr||e.insertionMode===a2||e.insertionMode===ga||e.insertionMode===ds||e.insertionMode===o2?e.insertionMode=U9:e.insertionMode=B9}function Kx(e,t){e.openElements.currentTagName===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function Yx(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,nt.HTML)}function Pae(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,nt.HTML)}function Bae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Uae(e,t){e._reconstructActiveFormattingElements(),mo.adjustTokenMathMLAttrs(t),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,nt.MATHML):e._insertElement(t,nt.MATHML),t.ackSelfClosing=!0}function $ae(e,t){e._reconstructActiveFormattingElements(),mo.adjustTokenSVGAttrs(t),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,nt.SVG):e._insertElement(t,nt.SVG),t.ackSelfClosing=!0}function ra(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function Ti(e,t){const n=t.tagName;switch(n.length){case 1:n===S.I||n===S.S||n===S.B||n===S.U?t1(e,t):n===S.P?jo(e,t):n===S.A?kae(e,t):ra(e,t);break;case 2:n===S.DL||n===S.OL||n===S.UL?jo(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?Tae(e,t):n===S.LI||n===S.DD||n===S.DT?wae(e,t):n===S.EM||n===S.TT?t1(e,t):n===S.BR?c1(e,t):n===S.HR?Nae(e,t):n===S.RB?Yx(e,t):n===S.RT||n===S.RP?Pae(e,t):n!==S.TH&&n!==S.TD&&n!==S.TR&&ra(e,t);break;case 3:n===S.DIV||n===S.DIR||n===S.NAV?jo(e,t):n===S.PRE?Gx(e,t):n===S.BIG?t1(e,t):n===S.IMG||n===S.WBR?c1(e,t):n===S.XMP?Lae(e,t):n===S.SVG?$ae(e,t):n===S.RTC?Yx(e,t):n!==S.COL&&ra(e,t);break;case 4:n===S.HTML?Eae(e,t):n===S.BASE||n===S.LINK||n===S.META?dr(e,t):n===S.BODY?vae(e,t):n===S.MAIN||n===S.MENU?jo(e,t):n===S.FORM?Sae(e,t):n===S.CODE||n===S.FONT?t1(e,t):n===S.NOBR?xae(e,t):n===S.AREA?c1(e,t):n===S.MATH?Uae(e,t):n===S.MENU?Bae(e,t):n!==S.HEAD&&ra(e,t);break;case 5:n===S.STYLE||n===S.TITLE?dr(e,t):n===S.ASIDE?jo(e,t):n===S.SMALL?t1(e,t):n===S.TABLE?Iae(e,t):n===S.EMBED?c1(e,t):n===S.INPUT?Rae(e,t):n===S.PARAM||n===S.TRACK?Wx(e,t):n===S.IMAGE?Oae(e,t):n!==S.FRAME&&n!==S.TBODY&&n!==S.TFOOT&&n!==S.THEAD&&ra(e,t);break;case 6:n===S.SCRIPT?dr(e,t):n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?jo(e,t):n===S.BUTTON?Cae(e,t):n===S.STRIKE||n===S.STRONG?t1(e,t):n===S.APPLET||n===S.OBJECT?Vx(e,t):n===S.KEYGEN?c1(e,t):n===S.SOURCE?Wx(e,t):n===S.IFRAME?Mae(e,t):n===S.SELECT?Fae(e,t):n===S.OPTION?Kx(e,t):ra(e,t);break;case 7:n===S.BGSOUND?dr(e,t):n===S.DETAILS||n===S.ADDRESS||n===S.ARTICLE||n===S.SECTION||n===S.SUMMARY?jo(e,t):n===S.LISTING?Gx(e,t):n===S.MARQUEE?Vx(e,t):n===S.NOEMBED?qx(e,t):n!==S.CAPTION&&ra(e,t);break;case 8:n===S.BASEFONT?dr(e,t):n===S.FRAMESET?_ae(e,t):n===S.FIELDSET?jo(e,t):n===S.TEXTAREA?Dae(e,t):n===S.TEMPLATE?dr(e,t):n===S.NOSCRIPT?e.options.scriptingEnabled?qx(e,t):ra(e,t):n===S.OPTGROUP?Kx(e,t):n!==S.COLGROUP&&ra(e,t);break;case 9:n===S.PLAINTEXT?Aae(e,t):ra(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?jo(e,t):ra(e,t);break;default:ra(e,t)}}function zae(e){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=$9)}function Hae(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=$9,e._processToken(t))}function Ps(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function jae(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):e.openElements.remove(n))}function Gae(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(S.P),e._closePElement()}function Vae(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function Wae(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function qae(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Xx(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Kae(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(S.BR),e.openElements.pop(),e.framesetOk=!1}function Ma(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function z9(e,t){const n=t.tagName;switch(n.length){case 1:n===S.A||n===S.B||n===S.I||n===S.S||n===S.U?Gs(e,t):n===S.P?Gae(e):Ma(e,t);break;case 2:n===S.DL||n===S.UL||n===S.OL?Ps(e,t):n===S.LI?Vae(e):n===S.DD||n===S.DT?Wae(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?qae(e):n===S.BR?Kae(e):n===S.EM||n===S.TT?Gs(e,t):Ma(e,t);break;case 3:n===S.BIG?Gs(e,t):n===S.DIR||n===S.DIV||n===S.NAV||n===S.PRE?Ps(e,t):Ma(e,t);break;case 4:n===S.BODY?zae(e):n===S.HTML?Hae(e,t):n===S.FORM?jae(e):n===S.CODE||n===S.FONT||n===S.NOBR?Gs(e,t):n===S.MAIN||n===S.MENU?Ps(e,t):Ma(e,t);break;case 5:n===S.ASIDE?Ps(e,t):n===S.SMALL?Gs(e,t):Ma(e,t);break;case 6:n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Ps(e,t):n===S.APPLET||n===S.OBJECT?Xx(e,t):n===S.STRIKE||n===S.STRONG?Gs(e,t):Ma(e,t);break;case 7:n===S.ADDRESS||n===S.ARTICLE||n===S.DETAILS||n===S.SECTION||n===S.SUMMARY||n===S.LISTING?Ps(e,t):n===S.MARQUEE?Xx(e,t):Ma(e,t);break;case 8:n===S.FIELDSET?Ps(e,t):n===S.TEMPLATE?Nu(e,t):Ma(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Ps(e,t):Ma(e,t);break;default:Ma(e,t)}}function Go(e,t){e.tmplInsertionModeStackTop>-1?nF(e,t):e.stopped=!0}function Yae(e,t){t.tagName===S.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Xae(e,t){e._err(xr.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Vo(e,t){const n=e.openElements.currentTagName;n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=XM,e._processToken(t)):ia(e,t)}function Zae(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,nt.HTML),e.insertionMode=a2}function Qae(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=Wp}function Jae(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.COLGROUP),e.insertionMode=Wp,e._processToken(t)}function eoe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=ga}function toe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.TBODY),e.insertionMode=ga,e._processToken(t)}function noe(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processToken(t))}function roe(e,t){const n=Y.getTokenAttr(t,WM.TYPE);n&&n.toLowerCase()===qM?e._appendElement(t,nt.HTML):ia(e,t),t.ackSelfClosing=!0}function ioe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,nt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function H9(e,t){const n=t.tagName;switch(n.length){case 2:n===S.TD||n===S.TH||n===S.TR?toe(e,t):ia(e,t);break;case 3:n===S.COL?Jae(e,t):ia(e,t);break;case 4:n===S.FORM?ioe(e,t):ia(e,t);break;case 5:n===S.TABLE?noe(e,t):n===S.STYLE?dr(e,t):n===S.TBODY||n===S.TFOOT||n===S.THEAD?eoe(e,t):n===S.INPUT?roe(e,t):ia(e,t);break;case 6:n===S.SCRIPT?dr(e,t):ia(e,t);break;case 7:n===S.CAPTION?Zae(e,t):ia(e,t);break;case 8:n===S.COLGROUP?Qae(e,t):n===S.TEMPLATE?dr(e,t):ia(e,t);break;default:ia(e,t)}}function j9(e,t){const n=t.tagName;n===S.TABLE?e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode()):n===S.TEMPLATE?Nu(e,t):n!==S.BODY&&n!==S.CAPTION&&n!==S.COL&&n!==S.COLGROUP&&n!==S.HTML&&n!==S.TBODY&&n!==S.TD&&n!==S.TFOOT&&n!==S.TH&&n!==S.THEAD&&n!==S.TR&&ia(e,t)}function ia(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function aoe(e,t){e.pendingCharacterTokens.push(t)}function ooe(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function sd(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function _oe(e,t){t.tagName===S.HTML?Ti(e,t):Pg(e,t)}function Toe(e,t){t.tagName===S.HTML?e.fragmentContext||(e.insertionMode=QM):Pg(e,t)}function Pg(e,t){e.insertionMode=To,e._processToken(t)}function Soe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.FRAMESET?e._insertElement(t,nt.HTML):n===S.FRAME?(e._appendElement(t,nt.HTML),t.ackSelfClosing=!0):n===S.NOFRAMES&&dr(e,t)}function woe(e,t){t.tagName===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==S.FRAMESET&&(e.insertionMode=ZM))}function Aoe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.NOFRAMES&&dr(e,t)}function Coe(e,t){t.tagName===S.HTML&&(e.insertionMode=JM)}function koe(e,t){t.tagName===S.HTML?Ti(e,t):Nh(e,t)}function Nh(e,t){e.insertionMode=To,e._processToken(t)}function xoe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.NOFRAMES&&dr(e,t)}function Ioe(e,t){t.chars=Yie.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Roe(e,t){e._insertCharacters(t),e.framesetOk=!1}function Noe(e,t){if(mo.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==nt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===nt.MATHML?mo.adjustTokenMathMLAttrs(t):r===nt.SVG&&(mo.adjustTokenSVGTagName(t),mo.adjustTokenSVGAttrs(t)),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Ooe(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===nt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Doe=Vi(nae),Zx=/[#.]/g;function Loe(e,t){const n=e||"",r={};let i=0,a,o;for(;i-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function a(o){const s=o&&o.line,u=o&&o.column;if(typeof s=="number"&&typeof u=="number"&&!Number.isNaN(s)&&!Number.isNaN(u)&&s-1 in n){const c=(n[s-2]||0)+u-1||0;if(c>-1&&c{const P=N;if(P.value.stitch&&q!==null&&B!==null)return q.children[B]=P.value.stitch,B}),e.type!=="root"&&f.type==="root"&&f.children.length===1)return f.children[0];return f;function m(){const N={nodeName:"template",tagName:"template",attrs:[],namespaceURI:wp.html,childNodes:[]},B={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:wp.html,childNodes:[]},q={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(B,N),i._pushTmplInsertionMode(ase),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),i._adoptNodes(B.childNodes[0],q),q}function g(){const N=i.treeAdapter.createDocument();if(i._bootstrap(N,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),N}function b(N){let B=-1;if(N)for(;++BsF(t,n,e)}const vse=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,_se=Object.hasOwnProperty;class Tse{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Sse(t,n===!0);const a=i;for(;_se.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Sse(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(vse,"").replace(/ /g,"-"))}const wse={}.hasOwnProperty;function Vr(e,t){const n=typeof t=="string"&&Ase(e)&&e.type==="element"&&e.properties&&wse.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}function Ase(e){return!!(e&&typeof e=="object"&&"type"in e)}function lF(e){const t=e&&e.type==="element"&&e.tagName.toLowerCase()||"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}function R1(e){return"children"in e?uF(e):"value"in e?e.value:""}function Cse(e){return e.type==="text"?e.value:"children"in e?uF(e):""}function uF(e){let t=-1;const n=[];for(;++t{tI.reset(),Hi(n,"element",r=>{lF(r)&&r.properties&&!Vr(r,"id")&&(r.properties.id=t+tI.slug(R1(r)))})}}const cF=function(e){if(e==null)return W9;if(typeof e=="string")return Ise(e);if(typeof e=="object")return xse(e);if(typeof e=="function")return dF(e);throw new Error("Expected function, string, or array as test")};function xse(e){const t=[];let n=-1;for(;++n{Hi(g,"element",(b,y,T)=>{if(lF(b)&&Vr(b,"id")&&a(b,y,T))return o(b,y,T)})};function s(g){return g.children[n==="prepend"?"unshift":"push"](m(g,k1(!0,{},t),p(r,g))),[$d]}function u(g,b,y){if(typeof b!="number"||!y)return;const T=m(g,k1(!0,{},t),p(r,g));let E=n==="before"?[T,g]:[g,T];if(i){const v=f(i,g);v&&!Array.isArray(v)&&v.type==="element"&&(v.children=E,E=[v])}return y.children.splice(b,1,...E),[$d,b+E.length]}function c(g){return g.children=[m(g,k1(!0,{},t),g.children)],[$d]}function p(g,b){const y=f(g,b);return Array.isArray(y)?y:[y]}function f(g,b){return typeof g=="function"?g(b):k1(!0,Array.isArray(g)?[]:{},g)}function m(g,b,y){return{type:"element",tagName:"a",properties:Object.assign({},b,{href:"#"+(g.properties||{}).id}),children:y}}}const Ose=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Dse=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},pF=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?pF(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},nI=({value:e=""})=>{const t=Ose(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},rI=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Lse=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Hi(r,"element",(i,a,o)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&o&&Array.isArray(o.children)&&o.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof a=="number"){const u=Dse(o.children,a);if(u){const c=nI(u);Object.keys(c).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=rI(s.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&o&&Array.isArray(o.children)&&typeof a=="number"){const s=pF(o.children,a,"",n);if(s){const u=nI(s);Object.keys(u).length>0&&(i.properties=rI(i.properties,u,t))}}})}},Mse=Lse,Fse=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Hi(r,(i,a,o)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let c=(u.value||"").trim();if(c=c.replace(/^/,"$1"),c===t)return s=!0,!1;if(c===n)return s=!1,!1}return!s})}})}},Pse=Fse,Bse={}.hasOwnProperty,Use=function(e,t,n){const r=Qm(n||t),i=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,a=i??!0;return o(e);function o(s,u,c){const p=[];if(!r(s,u,c))return null;if(s.children){let g=-1;for(;++g0&&p.length===0)return null}const f={};let m;for(m in s)Bse.call(s,m)&&(f[m]=m==="children"?p:s[m]);return f}};var cy={exports:{}};(function(e,t){function n(r){let i=[],a;for(let o of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(o))i.push(parseInt(o,10));else if(a=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,u,c,p]=a;if(u&&p){u=parseInt(u),p=parseInt(p);const f=u]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Qa.displayName="c";Qa.aliases=[];function Qa(e){e.register(Lt),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Ou.displayName="cpp";Ou.aliases=[];function Ou(e){e.register(Qa),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}u2.displayName="arduino";u2.aliases=["ino"];function u2(e){e.register(Ou),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}qp.displayName="bash";qp.aliases=["sh","shell"];function qp(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=i.variable[1].inside,s=0;s>/g,function(le,L){return"(?:"+pe[+L]+")"})}function r(D,pe,le){return RegExp(n(D,pe),le||"")}function i(D,pe){for(var le=0;le>/g,function(){return"(?:"+D+")"});return D.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(D){return"\\b(?:"+D.trim().replace(/ /g,"|")+")\\b"}var s=o(a.typeDeclaration),u=RegExp(o(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=o(a.typeDeclaration+" "+a.contextual+" "+a.other),p=o(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,b=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),y=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,b]),T=/\[\s*(?:,\s*)*\]/.source,E=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,T]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,m,T]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),A=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,T]),R={keyword:u,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,N=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,A]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,b]),lookbehind:!0,inside:R},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:R},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[E]),lookbehind:!0,inside:R},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[A,p,g]),inside:R}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:R},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[A,y]),inside:R,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[A]),lookbehind:!0,inside:R,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:R}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,b,g,A,u.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,m]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(A),greedy:!0,inside:R},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var q=N+"|"+k,P=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[q]),Q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),$=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,oe=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,Q]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[$,oe]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[$]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[Q]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var fe=/:[^}\r\n]+/.source,ce=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),De=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ce,fe]),H=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[q]),2),W=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,fe]);function se(D,pe){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[D]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[pe,fe]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[De]),lookbehind:!0,greedy:!0,inside:se(De,ce)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[W]),lookbehind:!0,greedy:!0,inside:se(W,H)}],char:{pattern:RegExp(k),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}gr.displayName="markup";gr.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function gr(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}xl.displayName="css";xl.aliases=[];function xl(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}c2.displayName="diff";c2.aliases=[];function c2(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}U2.displayName="go";U2.aliases=[];function U2(e){e.register(Mt),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}$2.displayName="ini";$2.aliases=[];function $2(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}xu.displayName="java";xu.aliases=[];function xu(e){e.register(Mt),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}z2.displayName="regex";z2.aliases=[];function z2(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",s=RegExp(o+"-"+o),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}dc.displayName="json";dc.aliases=["webmanifest"];function dc(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}H2.displayName="kotlin";H2.aliases=["kt","kts"];function H2(e){e.register(Mt),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}j2.displayName="less";j2.aliases=[];function j2(e){e.register(Tl),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Dp.displayName="lua";Dp.aliases=[];function Dp(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}G2.displayName="makefile";G2.aliases=[];function G2(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}Lp.displayName="yaml";Lp.aliases=["yml"];function Lp(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return u});return RegExp(p,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}V2.displayName="markdown";V2.aliases=["md"];function V2(e){e.register(fr),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(u){s!==u&&(t.languages.markdown[s].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function u(c){if(!(!c||typeof c=="string"))for(var p=0,f=c.length;p]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}q2.displayName="perl";q2.aliases=[];function q2(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}kr.displayName="markup-templating";kr.aliases=[];function kr(e){e.register(fr),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,o){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(a,function(u){if(typeof o=="function"&&!o(u))return u;for(var c=s.length,p;r.code.indexOf(p=n(i,c))!==-1;)++c;return s[c]=u,p}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,o=Object.keys(r.tokenStack);function s(u){for(var c=0;c=o.length);c++){var p=u[c];if(typeof p=="string"||p.content&&typeof p.content=="string"){var f=o[a],m=r.tokenStack[f],g=typeof p=="string"?p:p.content,E=n(i,f),b=g.indexOf(E);if(b>-1){++a;var T=g.substring(0,b),v=new t.Token(i,t.tokenize(m,r.grammar),"language-"+i,m),y=g.substring(b+E.length),w=[];T&&w.push.apply(w,s([T])),w.push(v),y&&w.push.apply(w,s([y])),typeof p=="string"?u.splice.apply(u,[c,1].concat(w)):p.content=w}}else p.content&&s(p.content)}return u}s(r.tokens)}}})}(e)}ku.displayName="php";ku.aliases=[];function ku(e){e.register(kr),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",p)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(e)}Mp.displayName="python";Mp.aliases=["py"];function Mp(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}K2.displayName="r";K2.aliases=[];function K2(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}Iu.displayName="ruby";Iu.aliases=["rb"];function Iu(e){e.register(Mt),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}Y2.displayName="rust";Y2.aliases=[];function Y2(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}X2.displayName="sass";X2.aliases=[];function X2(e){e.register(Tl),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}Z2.displayName="scss";Z2.aliases=[];function Z2(e){e.register(Tl),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}pc.displayName="sql";pc.aliases=[];function pc(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}Q2.displayName="swift";Q2.aliases=[];function Q2(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}fc.displayName="typescript";fc.aliases=["ts"];function fc(e){e.register(xr),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}Fp.displayName="basic";Fp.aliases=[];function Fp(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Pp.displayName="vbnet";Pp.aliases=[];function Pp(e){e.register(Fp),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const ak=/[#.]/g;function Zae(e,t){const n=e||"",r={};let i=0,a,o;for(;i=48&&t<=57}function ooe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function soe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function lk(e){return soe(e)||QL(e)}const Yu=String.fromCharCode,loe=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function uoe(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,o="",s,u;t.position&&("start"in t.position||"indent"in t.position?(u=t.position.indent,s=t.position.start):s=t.position);let c=(s?s.line:0)||1,p=(s?s.column:0)||1,f=g(),m;for(i--;++i<=e.length;)if(m===10&&(p=(u?u[a]:0)||1),m=e.charCodeAt(i),m===38){const T=e.charCodeAt(i+1);if(T===9||T===10||T===12||T===32||T===38||T===60||Number.isNaN(T)||n&&T===n){o+=Yu(m),p++;continue}const v=i+1;let y=v,w=v,A;if(T===35){w=++y;const z=e.charCodeAt(w);z===88||z===120?(A="hexadecimal",w=++y):A="decimal"}else A="named";let D="",k="",R="";const B=A==="named"?lk:A==="decimal"?QL:ooe;for(w--;++w<=e.length;){const z=e.charCodeAt(w);if(!B(z))break;R+=Yu(z),A==="named"&&aoe.includes(R)&&(D=R,k=sp(R))}let W=e.charCodeAt(w)===59;if(W){w++;const z=A==="named"?sp(R):!1;z&&(D=R,k=z)}let P=1+w-v,Q="";if(!(!W&&t.nonTerminated===!1))if(!R)A!=="named"&&E(4,P);else if(A==="named"){if(W&&!k)E(5,1);else if(D!==R&&(w=y+D.length,P=1+w-y,W=!1),!W){const z=D?1:3;if(t.attribute){const le=e.charCodeAt(w);le===61?(E(z,P),k=""):lk(le)?k="":E(z,P)}else E(z,P)}Q=k}else{W||E(2,P);let z=Number.parseInt(R,A==="hexadecimal"?16:10);if(coe(z))E(7,P),Q=Yu(65533);else if(z in sk)E(6,P),Q=sk[z];else{let le="";doe(z)&&E(6,P),z>65535&&(z-=65536,le+=Yu(z>>>10|55296),z=56320|z&1023),Q=le+Yu(z)}}if(Q){b(),f=g(),i=w-1,p+=w-v+1,r.push(Q);const z=g();z.offset++,t.reference&&t.reference.call(t.referenceContext,Q,{start:f,end:z},e.slice(v-1,w)),f=z}else R=e.slice(v-1,w),o+=R,p+=R.length,i=w-1}else m===10&&(c++,a++,p=0),Number.isNaN(m)?b():(o+=Yu(m),p++);return r.join("");function g(){return{line:c,column:p,offset:i+((s?s.offset:0)||0)}}function E(T,v){let y;t.warning&&(y=g(),y.column+=v,y.offset+=v,t.warning.call(t.warningContext,loe[T],y,T))}function b(){o&&(r.push(o),t.text&&t.text.call(t.textContext,o,{start:f,end:g()}),o="")}}function coe(e){return e>=55296&&e<=57343||e>1114111}function doe(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var poe=0,I0={},sr={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++poe}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(sr.util.type(t)){case"Object":if(i=sr.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=sr.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(o,s){r[s]=e(o,n)}),r);default:return t}}},languages:{plain:I0,plaintext:I0,text:I0,txt:I0,extend:function(e,t){var n=sr.util.clone(sr.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||sr.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var u=r[e];return r[e]=a,sr.languages.DFS(sr.languages,function(c,p){p===u&&c!=e&&(this[c]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=sr.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],u=sr.util.type(s);u==="Object"&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):u==="Array"&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(sr.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=sr.tokenize(r.code,r.grammar),sr.hooks.run("after-tokenize",r),Dd.stringify(sr.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new foe;return hh(i,i.head,e),JL(e,i,t,i.head,0),goe(i)},hooks:{all:{},add:function(e,t){var n=sr.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=sr.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:Dd};function Dd(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function uk(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function JL(e,t,n,r,i,a){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var u=0;u=a.reach);v+=T.value.length,T=T.next){var y=T.value;if(t.length>e.length)return;if(!(y instanceof Dd)){var w=1,A;if(m){if(A=uk(b,v,e,f),!A||A.index>=e.length)break;var B=A.index,D=A.index+A[0].length,k=v;for(k+=T.value.length;B>=k;)T=T.next,k+=T.value.length;if(k-=T.value.length,v=k,T.value instanceof Dd)continue;for(var R=T;R!==t.tail&&(ka.reach&&(a.reach=z);var le=T.prev;P&&(le=hh(t,le,P),v+=P.length),hoe(t,le,w);var he=new Dd(o,p?sr.tokenize(W,p):W,g,W);if(T=hh(t,le,he),Q&&hh(t,T,Q),w>1){var de={cause:o+","+u,reach:z};JL(e,t,n,T.prev,v,de),a&&de.reach>a.reach&&(a.reach=de.reach)}}}}}}function foe(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function hh(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function hoe(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}av.displayName="abnf";av.aliases=[];function av(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}ov.displayName="actionscript";ov.aliases=[];function ov(e){e.register(xr),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}sv.displayName="ada";sv.aliases=[];function sv(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}lv.displayName="agda";lv.aliases=[];function lv(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}uv.displayName="al";uv.aliases=[];function uv(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}cv.displayName="antlr4";cv.aliases=["g4"];function cv(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}dv.displayName="apacheconf";dv.aliases=[];function dv(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}pv.displayName="apex";pv.aliases=[];function pv(e){e.register(Mt),e.register(pc),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(o){return RegExp(o.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}fv.displayName="apl";fv.aliases=[];function fv(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}hv.displayName="applescript";hv.aliases=[];function hv(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}gv.displayName="aql";gv.aliases=[];function gv(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}mv.displayName="arff";mv.aliases=[];function mv(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}bv.displayName="armasm";bv.aliases=["arm-asm"];function bv(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}Ev.displayName="arturo";Ev.aliases=["art"];function Ev(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}vv.displayName="asciidoc";vv.aliases=["adoc"];function vv(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var o={},s=0,u=a.length;s/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}_v.displayName="asm6502";_v.aliases=[];function _v(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}Tv.displayName="asmatmel";Tv.aliases=[];function Tv(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}Sv.displayName="autohotkey";Sv.aliases=[];function Sv(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}wv.displayName="autoit";wv.aliases=[];function wv(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}Av.displayName="avisynth";Av.aliases=["avs"];function Av(e){(function(t){function n(c,p){return c.replace(/<<(\d+)>>/g,function(f,m){return p[+m]})}function r(c,p,f){return RegExp(n(c,p),f||"")}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),o=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),s=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[a,o,s].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}Cv.displayName="avro-idl";Cv.aliases=["avdl"];function Cv(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}xv.displayName="awk";xv.aliases=["gawk"];function xv(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}kv.displayName="batch";kv.aliases=[];function kv(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}Iv.displayName="bbcode";Iv.aliases=["shortcode"];function Iv(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}Rv.displayName="bbj";Rv.aliases=[];function Rv(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}Nv.displayName="bicep";Nv.aliases=[];function Nv(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}Ov.displayName="birb";Ov.aliases=[];function Ov(e){e.register(Mt),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}Dv.displayName="bison";Dv.aliases=[];function Dv(e){e.register(qa),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Lv.displayName="bnf";Lv.aliases=["rbnf"];function Lv(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}Mv.displayName="bqn";Mv.aliases=[];function Mv(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}Fv.displayName="brainfuck";Fv.aliases=[];function Fv(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}Pv.displayName="brightscript";Pv.aliases=[];function Pv(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}Bv.displayName="bro";Bv.aliases=[];function Bv(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}Uv.displayName="bsl";Uv.aliases=["oscript"];function Uv(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}$v.displayName="cfscript";$v.aliases=["cfc"];function $v(e){e.register(Mt),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}zv.displayName="chaiscript";zv.aliases=[];function zv(e){e.register(Mt),e.register(Au),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Hv.displayName="cil";Hv.aliases=[];function Hv(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}jv.displayName="cilkc";jv.aliases=["cilk-c"];function jv(e){e.register(qa),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}Gv.displayName="cilkcpp";Gv.aliases=["cilk","cilk-cpp"];function Gv(e){e.register(Au),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}Vv.displayName="clojure";Vv.aliases=[];function Vv(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}Wv.displayName="cmake";Wv.aliases=[];function Wv(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}qv.displayName="cobol";qv.aliases=[];function qv(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}Kv.displayName="coffeescript";Kv.aliases=["coffee"];function Kv(e){e.register(xr),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}Yv.displayName="concurnas";Yv.aliases=["conc"];function Yv(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}Xv.displayName="csp";Xv.aliases=[];function Xv(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}Zv.displayName="cooklang";Zv.aliases=[];function Zv(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,o=/(?:h|hours|hrs|m|min|minutes)/.source,s={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+o+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}Qv.displayName="coq";Qv.aliases=[];function Qv(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Jv.displayName="crystal";Jv.aliases=[];function Jv(e){e.register(Iu),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}ey.displayName="css-extras";ey.aliases=[];function ey(e){e.register(Tl),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}ty.displayName="csv";ty.aliases=[];function ty(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}ny.displayName="cue";ny.aliases=[];function ny(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}ry.displayName="cypher";ry.aliases=[];function ry(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}iy.displayName="d";iy.aliases=[];function iy(e){e.register(Mt),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}ay.displayName="dart";ay.aliases=[];function ay(e){e.register(Mt),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}oy.displayName="dataweave";oy.aliases=[];function oy(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}sy.displayName="dax";sy.aliases=[];function sy(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}ly.displayName="dhall";ly.aliases=[];function ly(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}uy.displayName="django";uy.aliases=["jinja2"];function uy(e){e.register(kr),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}cy.displayName="dns-zone-file";cy.aliases=["dns-zone"];function cy(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}dy.displayName="docker";dy.aliases=["dockerfile"];function dy(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),o={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(c,p){return c=c.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(c,p)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}py.displayName="dot";py.aliases=["gv"];function py(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,o){return RegExp(a.replace(//g,function(){return n}),o)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}fy.displayName="ebnf";fy.aliases=[];function fy(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}hy.displayName="editorconfig";hy.aliases=[];function hy(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}gy.displayName="eiffel";gy.aliases=[];function gy(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}my.displayName="ejs";my.aliases=["eta"];function my(e){e.register(xr),e.register(kr),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}by.displayName="elixir";by.aliases=[];function by(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}Ey.displayName="elm";Ey.aliases=[];function Ey(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}vy.displayName="etlua";vy.aliases=[];function vy(e){e.register(Dp),e.register(kr),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}yy.displayName="erb";yy.aliases=[];function yy(e){e.register(kr),e.register(Iu),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}_y.displayName="erlang";_y.aliases=[];function _y(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}Ty.displayName="excel-formula";Ty.aliases=["xls","xlsx"];function Ty(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}Sy.displayName="fsharp";Sy.aliases=[];function Sy(e){e.register(Mt),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}wy.displayName="factor";wy.aliases=[];function wy(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(c){return new RegExp("(^|\\s)(?:"+c.map(a).join("|")+")(?=\\s|$)")},s={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(s).forEach(function(c){i[c].pattern=o(s[c])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=o(u),t.languages.factor=i})(e)}Ay.displayName="false";Ay.aliases=[];function Ay(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}xy.displayName="flow";xy.aliases=[];function xy(e){e.register(xr),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}ky.displayName="fortran";ky.aliases=[];function ky(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}Iy.displayName="ftl";Iy.aliases=[];function Iy(e){e.register(kr),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",o)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}Ry.displayName="gml";Ry.aliases=["gamemakerlanguage"];function Ry(e){e.register(Mt),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}Ny.displayName="gap";Ny.aliases=[];function Ny(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}Oy.displayName="gcode";Oy.aliases=[];function Oy(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}Dy.displayName="gdscript";Dy.aliases=[];function Dy(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}Ly.displayName="gedcom";Ly.aliases=[];function Ly(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}My.displayName="gettext";My.aliases=["po"];function My(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}Fy.displayName="gherkin";Fy.aliases=[];function Fy(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}Py.displayName="git";Py.aliases=[];function Py(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}By.displayName="glsl";By.aliases=[];function By(e){e.register(qa),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}Uy.displayName="gn";Uy.aliases=["gni"];function Uy(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}$y.displayName="linker-script";$y.aliases=["ld"];function $y(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}zy.displayName="go-module";zy.aliases=["go-mod"];function zy(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}Hy.displayName="gradle";Hy.aliases=[];function Hy(e){e.register(Mt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}jy.displayName="graphql";jy.aliases=[];function jy(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function a(T){return r[i+T]}function o(T,v){v=v||0;for(var y=0;y0)){var g=s(/^\{$/,/^\}$/);if(g===-1)continue;for(var E=i;E=0&&u(b,"variable-input")}}}}})}Gy.displayName="groovy";Gy.aliases=[];function Gy(e){e.register(Mt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}Vy.displayName="textile";Vy.aliases=[];function Vy(e){e.register(fr),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,m){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),m||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),s=o.phrase.inside,u={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=s.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=s.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark}(e)}Wy.displayName="haml";Wy.aliases=[];function Wy(e){e.register(Iu),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,o=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}Bp.displayName="haskell";Bp.aliases=["hs"];function Bp(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}Ky.displayName="haxe";Ky.aliases=[];function Ky(e){e.register(Mt),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}Yy.displayName="hcl";Yy.aliases=[];function Yy(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}Xy.displayName="hlsl";Xy.aliases=[];function Xy(e){e.register(qa),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}Zy.displayName="hoon";Zy.aliases=[];function Zy(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}Qy.displayName="hpkp";Qy.aliases=[];function Qy(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Jy.displayName="hsts";Jy.aliases=[];function Jy(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e6.displayName="uri";e6.aliases=["url"];function e6(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}t6.displayName="http";t6.aliases=[];function t6(e){(function(t){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function o(p){var f=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var s;for(var u in i)if(i[u]){s=s||{};var c=a[u]?o(u):u;s[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}s&&t.languages.insertBefore("http","header",s)})(e)}n6.displayName="ichigojam";n6.aliases=[];function n6(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}r6.displayName="icon";r6.aliases=[];function r6(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}i6.displayName="icu-message-format";i6.aliases=[];function i6(e){(function(t){function n(u,c){return c<=0?/[]/.source:u.replace(//g,function(){return n(u,c-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},o=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(o),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":s,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":s,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},s.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}a6.displayName="idris";a6.aliases=["idr"];function a6(e){e.register(Bp),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}o6.displayName="ignore";o6.aliases=["gitignore","hgignore","npmignore"];function o6(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}s6.displayName="inform7";s6.aliases=[];function s6(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}l6.displayName="io";l6.aliases=[];function l6(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}gc.displayName="javadoclike";gc.aliases=[];function gc(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,o){var s="doc-comment",u=t.languages[a];if(u){var c=u[s];if(!c){var p={};p[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=t.languages.insertBefore(a,"comment",p),c=u[s]}if(c instanceof RegExp&&(c=u[s]={pattern:c}),Array.isArray(c))for(var f=0,m=c.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}d6.displayName="javadoc";d6.aliases=[];function d6(e){e.register(xu),e.register(gc),e.register(fr),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}p6.displayName="javastacktrace";p6.aliases=[];function p6(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}f6.displayName="jexl";f6.aliases=[];function f6(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}h6.displayName="jolie";h6.aliases=[];function h6(e){e.register(Mt),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}g6.displayName="jq";g6.aliases=[];function g6(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}m6.displayName="js-templates";m6.aliases=[];function m6(e){e.register(xr),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],o=i.pattern.source;function s(E,b){if(t.languages[E])return{pattern:RegExp("((?:"+b+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:E}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function u(E,b){return"___"+b.toUpperCase()+"_"+E+"___"}function c(E,b,T){var v={code:E,grammar:b,language:T};return t.hooks.run("before-tokenize",v),v.tokens=t.tokenize(v.code,v.grammar),t.hooks.run("after-tokenize",v),v.tokens}function p(E){var b={};b["interpolation-punctuation"]=a;var T=t.tokenize(E,b);if(T.length===3){var v=[1,1];v.push.apply(v,c(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,v)}return new t.Token("interpolation",T,i.alias,E)}function f(E,b,T){var v=t.tokenize(E,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),y=0,w={},A=v.map(function(B){if(typeof B=="string")return B;for(var W=B.content,P;E.indexOf(P=u(y++,T))!==-1;);return w[P]=W,P}).join(""),D=c(A,b,T),k=Object.keys(w);y=0;function R(B){for(var W=0;W=k.length)return;var P=B[W];if(typeof P=="string"||typeof P.content=="string"){var Q=k[y],z=typeof P=="string"?P:P.content,le=z.indexOf(Q);if(le!==-1){++y;var he=z.substring(0,le),de=p(w[Q]),fe=z.substring(le+Q.length),Z=[];if(he&&Z.push(he),Z.push(de),fe){var V=[fe];R(V),Z.push.apply(Z,V)}typeof P=="string"?(B.splice.apply(B,[W,1].concat(Z)),W+=Z.length-1):P.content=Z}}else{var ce=P.content;Array.isArray(ce)?R(ce):R([ce])}}}return R(D),new t.Token(T,D,"language-"+T,E)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(E){if(!(E.language in m))return;function b(T){for(var v=0,y=T.length;v\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}E6.displayName="n4js";E6.aliases=["n4jsd"];function E6(e){e.register(xr),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}v6.displayName="js-extras";v6.aliases=[];function v6(e){e.register(xr),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(u,c){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}S6.displayName="julia";S6.aliases=[];function S6(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}w6.displayName="keepalived";w6.aliases=[];function w6(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}A6.displayName="keyman";A6.aliases=[];function A6(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}C6.displayName="kumir";C6.aliases=["kum"];function C6(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}x6.displayName="kusto";x6.aliases=[];function x6(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}k6.displayName="latex";k6.aliases=["context","tex"];function k6(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}I6.displayName="latte";I6.aliases=[];function I6(e){e.register(Mt),e.register(kr),e.register(ku),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}Up.displayName="scheme";Up.aliases=[];function Up(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}R6.displayName="lilypond";R6.aliases=["ly"];function R6(e){e.register(Up),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}N6.displayName="liquid";N6.aliases=[];function N6(e){e.register(kr),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var o=a[1];if(o==="raw"&&!r)return r=!0,!0;if(o==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}O6.displayName="lisp";O6.aliases=["elisp","emacs","emacs-lisp"];function O6(e){(function(t){function n(E){return RegExp(/(\()/.source+"(?:"+E+")"+/(?=[\s\)])/.source)}function r(E){return RegExp(/([\s([])/.source+"(?:"+E+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,o="(\\()",s="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(o+c+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:f},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=g,p.defun.inside.arguments=t.util.clone(g),p.defun.inside.arguments.inside.sublist=g,t.languages.lisp=p,t.languages.elisp=p,t.languages.emacs=p,t.languages["emacs-lisp"]=p})(e)}D6.displayName="livescript";D6.aliases=[];function D6(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}L6.displayName="llvm";L6.aliases=[];function L6(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}M6.displayName="log";M6.aliases=[];function M6(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}F6.displayName="lolcode";F6.aliases=[];function F6(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}P6.displayName="magma";P6.aliases=[];function P6(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}J2.displayName="mata";J2.aliases=[];function J2(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}B6.displayName="matlab";B6.aliases=[];function B6(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}U6.displayName="maxscript";U6.aliases=[];function U6(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}$6.displayName="mel";$6.aliases=[];function $6(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}z6.displayName="mermaid";z6.aliases=[];function z6(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}H6.displayName="metafont";H6.aliases=[];function H6(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}j6.displayName="mizar";j6.aliases=[];function j6(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}G6.displayName="mongodb";G6.aliases=[];function G6(e){e.register(xr),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}V6.displayName="monkey";V6.aliases=[];function V6(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}W6.displayName="moonscript";W6.aliases=["moon"];function W6(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}q6.displayName="n1ql";q6.aliases=[];function q6(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}K6.displayName="nand2tetris-hdl";K6.aliases=[];function K6(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}Y6.displayName="naniscript";Y6.aliases=["nani"];function Y6(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(o){var s=o.tokens;s.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=a(u);i(c)||(u.type="bad-line",u.content=c)}})});function i(o){for(var s="[]{}",u=[],c=0;c=&|$!]/}}Z6.displayName="neon";Z6.aliases=[];function Z6(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}Q6.displayName="nevod";Q6.aliases=[];function Q6(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}J6.displayName="nginx";J6.aliases=[];function J6(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}e8.displayName="nim";e8.aliases=[];function e8(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}t8.displayName="nix";t8.aliases=[];function t8(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}n8.displayName="nsis";n8.aliases=[];function n8(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}r8.displayName="ocaml";r8.aliases=[];function r8(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}i8.displayName="odin";i8.aliases=[];function i8(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}a8.displayName="opencl";a8.aliases=[];function a8(e){e.register(qa),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}o8.displayName="openqasm";o8.aliases=["qasm"];function o8(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}s8.displayName="oz";s8.aliases=[];function s8(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}l8.displayName="parigp";l8.aliases=[];function l8(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}u8.displayName="parser";u8.aliases=[];function u8(e){e.register(fr),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}c8.displayName="pascal";c8.aliases=["objectpascal"];function c8(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}d8.displayName="pascaligo";d8.aliases=[];function d8(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,s){return o[s]=i[s],o},{});i["class-name"].forEach(function(o){o.inside=a})})(e)}p8.displayName="psl";p8.aliases=[];function p8(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}f8.displayName="pcaxis";f8.aliases=["px"];function f8(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}h8.displayName="peoplecode";h8.aliases=["pcode"];function h8(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}g8.displayName="phpdoc";g8.aliases=[];function g8(e){e.register(gc),e.register(ku),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}m8.displayName="php-extras";m8.aliases=[];function m8(e){e.register(ku),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}b8.displayName="plant-uml";b8.aliases=["plantuml"];function b8(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",o=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,u=/[[?]?[ox]?/.source,c=/[ox]?[\]?]?/.source,p=u+"(?:"+a+s+"|"+o+a+"(?:"+s+")?)"+c;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+p+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}E8.displayName="plsql";E8.aliases=[];function E8(e){e.register(pc),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}v8.displayName="powerquery";v8.aliases=["mscript","pq"];function v8(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}y8.displayName="powershell";y8.aliases=[];function y8(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}_8.displayName="processing";_8.aliases=[];function _8(e){e.register(Mt),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}T8.displayName="prolog";T8.aliases=[];function T8(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}S8.displayName="promql";S8.aliases=[];function S8(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}w8.displayName="properties";w8.aliases=[];function w8(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}A8.displayName="protobuf";A8.aliases=[];function A8(e){e.register(Mt),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}C8.displayName="stylus";C8.aliases=[];function C8(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}x8.displayName="twig";x8.aliases=[];function x8(e){e.register(kr),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}k8.displayName="pug";k8.aliases=[];function k8(e){e.register(xr),e.register(fr),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,o=r.length;a",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}I8.displayName="puppet";I8.aliases=[];function I8(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}R8.displayName="pure";R8.aliases=[];function R8(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var o={};o["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},o["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",o)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}N8.displayName="purebasic";N8.aliases=["pbfasm"];function N8(e){e.register(Mt),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}O8.displayName="purescript";O8.aliases=["purs"];function O8(e){e.register(Bp),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}D8.displayName="qsharp";D8.aliases=["qs"];function D8(e){e.register(Mt),function(t){function n(g,E){return g.replace(/<<(\d+)>>/g,function(b,T){return"(?:"+E[+T]+")"})}function r(g,E,b){return RegExp(n(g,E),b||"")}function i(g,E){for(var b=0;b>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function o(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(o(a.type+" "+a.other)),u=/\b[A-Za-z_]\w*\b/.source,c=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:s,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:p},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:p}],keyword:s,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}L8.displayName="q";L8.aliases=[];function L8(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}M8.displayName="qml";M8.aliases=[];function M8(e){e.register(xr),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}F8.displayName="qore";F8.aliases=[];function F8(e){e.register(Mt),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}P8.displayName="racket";P8.aliases=["rkt"];function P8(e){e.register(Up),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}B8.displayName="cshtml";B8.aliases=["razor"];function B8(e){e.register(Cu),e.register(fr),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(y,w){for(var A=0;A/g,function(){return"(?:"+y+")"});return y.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),o=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),u=i(/<(?:[^<>'"@/]||)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+u+")?"+a+"|"+o+")*"+/(?![?!\.(\[]|<(?!\/))/.source,p=/@(?![\w()])/.source+"|"+c,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+p+`)[^"'@]*)+["'])`,m=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+m+/\s*\/?>/.source,E=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function o(c,p){return c=c.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(c,p)}a=o(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(s).join(""):""},u=function(c){for(var p=[],f=0;f0&&p[p.length-1].tagName===s(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:s(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:g=!0),(g||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var E=s(m);f0&&(typeof c[f-1]=="string"||c[f-1].type==="plain-text")&&(E=s(c[f-1])+E,c.splice(f-1,1),f--),c[f]=new t.Token("plain-text",E,null,E)}m.content&&typeof m.content!="string"&&u(m.content)}};t.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})}(e)}U8.displayName="tsx";U8.aliases=[];function U8(e){e.register(em),e.register(fc),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}$8.displayName="reason";$8.aliases=[];function $8(e){e.register(Mt),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}z8.displayName="rego";z8.aliases=[];function z8(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}H8.displayName="renpy";H8.aliases=["rpy"];function H8(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}j8.displayName="rescript";j8.aliases=["res"];function j8(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}G8.displayName="rest";G8.aliases=[];function G8(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}V8.displayName="rip";V8.aliases=[];function V8(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}W8.displayName="roboconf";W8.aliases=[];function W8(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}q8.displayName="robotframework";q8.aliases=["robot"];function q8(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,c){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in c)p[f]=c[f];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=r,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:p}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":o,documentation:a,property:s}),keywords:i("Keywords",{"keyword-name":o,documentation:a,property:s}),tasks:i("Tasks",{"task-name":o,documentation:a,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}K8.displayName="sas";K8.aliases=[];function K8(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},E={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},b={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},v=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,y={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return v}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return v}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:f,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:r,"numeric-constant":i,punctuation:p,string:c}},w={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":b,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:w,"submit-statement":T,"global-statements":b,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:w,"submit-statement":T,"global-statements":b,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":y,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:s,keyword:w,function:f,format:g,altformat:E,"global-statements":b,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:m},"macro-keyword":o,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":y,comment:u,function:f,format:g,altformat:E,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:c,step:s,keyword:w,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(e)}Y8.displayName="shell-session";Y8.aliases=["sh-session","shellsession"];function Y8(e){e.register(Op),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}X8.displayName="smali";X8.aliases=[];function X8(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}Z8.displayName="smalltalk";Z8.aliases=[];function Z8(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}Q8.displayName="smarty";Q8.aliases=[];function Q8(e){e.register(kr),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",o="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(u){return u===o&&(s=!1),s?!1:(u===a&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}J8.displayName="sml";J8.aliases=["smlnj"];function J8(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}e_.displayName="solidity";e_.aliases=["sol"];function e_(e){e.register(Mt),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}t_.displayName="solution-file";t_.aliases=["sln"];function t_(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}n_.displayName="soy";n_.aliases=[];function n_(e){e.register(kr),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",s="{/literal}",u=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(c){return c===s&&(u=!1),u?!1:(c===o&&(u=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}tm.displayName="turtle";tm.aliases=["trig"];function tm(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}r_.displayName="sparql";r_.aliases=["rq"];function r_(e){e.register(tm),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}i_.displayName="splunk-spl";i_.aliases=[];function i_(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}a_.displayName="sqf";a_.aliases=[];function a_(e){e.register(Mt),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}o_.displayName="squirrel";o_.aliases=[];function o_(e){e.register(Mt),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}s_.displayName="stan";s_.aliases=[];function s_(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}l_.displayName="stata";l_.aliases=[];function l_(e){e.register(xu),e.register(J2),e.register(Mp),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}u_.displayName="iecst";u_.aliases=[];function u_(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}c_.displayName="supercollider";c_.aliases=["sclang"];function c_(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}d_.displayName="systemd";d_.aliases=[];function d_(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}$p.displayName="t4-templating";$p.aliases=[];function $p(e){(function(t){function n(i,a,o){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:o}}}}function r(i){var a=t.languages[i],o="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,o),"class-feature":n("\\+",a,o),standard:n("",a,o)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}p_.displayName="t4-cs";p_.aliases=["t4"];function p_(e){e.register(Cu),e.register($p),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}f_.displayName="t4-vb";f_.aliases=[];function f_(e){e.register($p),e.register(Pp),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}h_.displayName="tap";h_.aliases=[];function h_(e){e.register(Lp),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}g_.displayName="tcl";g_.aliases=[];function g_(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}m_.displayName="tt2";m_.aliases=[];function m_(e){e.register(Mt),e.register(kr),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}b_.displayName="toml";b_.aliases=[];function b_(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}E_.displayName="tremor";E_.aliases=["trickle","troy"];function E_(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}v_.displayName="typoscript";v_.aliases=["tsconfig"];function v_(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}y_.displayName="unrealscript";y_.aliases=["uc","uscript"];function y_(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}__.displayName="uorazor";__.aliases=[];function __(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}T_.displayName="v";T_.aliases=[];function T_(e){e.register(Mt),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}S_.displayName="vala";S_.aliases=[];function S_(e){e.register(Mt),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}w_.displayName="velocity";w_.aliases=[];function w_(e){e.register(fr),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}A_.displayName="verilog";A_.aliases=[];function A_(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}C_.displayName="vhdl";C_.aliases=[];function C_(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}x_.displayName="vim";x_.aliases=[];function x_(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}k_.displayName="visual-basic";k_.aliases=["vb","vba"];function k_(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}I_.displayName="warpscript";I_.aliases=[];function I_(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}R_.displayName="wasm";R_.aliases=[];function R_(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}N_.displayName="web-idl";N_.aliases=["webidl"];function N_(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}O_.displayName="wgsl";O_.aliases=[];function O_(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}D_.displayName="wiki";D_.aliases=[];function D_(e){e.register(fr),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}L_.displayName="wolfram";L_.aliases=["mathematica","nb","wl"];function L_(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}M_.displayName="wren";M_.aliases=[];function M_(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}F_.displayName="xeora";F_.aliases=["xeoracube"];function F_(e){e.register(fr),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}P_.displayName="xml-doc";P_.aliases=[];function P_(e){e.register(fr),function(t){function n(o,s){t.languages[o]&&t.languages.insertBefore(o,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}B_.displayName="xojo";B_.aliases=[];function B_(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}U_.displayName="xquery";U_.aliases=[];function U_(e){e.register(fr),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],o=0;o0&&a[a.length-1].tagName===n(s.content[0].content[1])&&a.pop():s.content[s.content.length-1].content==="/>"||a.push({tagName:n(s.content[0].content[1]),openedBraces:0}):a.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[o+1]||i[o+1].type!=="punctuation"||i[o+1].content!=="{")&&(!i[o-1]||i[o-1].type!=="plain-text"||i[o-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?a[a.length-1].openedBraces--:s.type!=="comment"&&(u=!0)),(u||typeof s=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var c=n(s);o0&&(typeof i[o-1]=="string"||i[o-1].type==="plain-text")&&(c=n(i[o-1])+c,i.splice(o-1,1),o--),/^\s+$/.test(c)?i[o]=c:i[o]=new t.Token("plain-text",c,null,c)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}$_.displayName="yang";$_.aliases=[];function $_(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}z_.displayName="zig";z_.aliases=[];function z_(e){(function(t){function n(c){return function(){return c}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),u="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+s+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=t.languages.zig)})})(e)}L.register(fr);L.register(Tl);L.register(Mt);L.register(z2);L.register(xr);L.register(iv);L.register(av);L.register(ov);L.register(sv);L.register(lv);L.register(uv);L.register(cv);L.register(dv);L.register(pc);L.register(pv);L.register(fv);L.register(hv);L.register(gv);L.register(qa);L.register(Au);L.register(P2);L.register(mv);L.register(bv);L.register(Op);L.register(Lp);L.register(V2);L.register(Ev);L.register(vv);L.register(Cu);L.register(yv);L.register(_v);L.register(Tv);L.register(Sv);L.register(wv);L.register(Av);L.register(Cv);L.register(xv);L.register(Fp);L.register(kv);L.register(Iv);L.register(Rv);L.register(Nv);L.register(Ov);L.register(Dv);L.register(Lv);L.register(Mv);L.register(Fv);L.register(Pv);L.register(Bv);L.register(Uv);L.register($v);L.register(zv);L.register(Hv);L.register(jv);L.register(Gv);L.register(Vv);L.register(Wv);L.register(qv);L.register(Kv);L.register(Yv);L.register(Xv);L.register(Zv);L.register(Qv);L.register(Iu);L.register(Jv);L.register(ey);L.register(ty);L.register(ny);L.register(ry);L.register(iy);L.register(ay);L.register(oy);L.register(sy);L.register(ly);L.register(B2);L.register(kr);L.register(uy);L.register(cy);L.register(dy);L.register(py);L.register(fy);L.register(hy);L.register(gy);L.register(my);L.register(by);L.register(Ey);L.register(Dp);L.register(vy);L.register(yy);L.register(_y);L.register(Ty);L.register(Sy);L.register(wy);L.register(Ay);L.register(Cy);L.register(xy);L.register(ky);L.register(Iy);L.register(Ry);L.register(Ny);L.register(Oy);L.register(Dy);L.register(Ly);L.register(My);L.register(Fy);L.register(Py);L.register(By);L.register(Uy);L.register($y);L.register(U2);L.register(zy);L.register(Hy);L.register(jy);L.register(Gy);L.register(j2);L.register(Z2);L.register(Vy);L.register(Wy);L.register(qy);L.register(Bp);L.register(Ky);L.register(Yy);L.register(Xy);L.register(Zy);L.register(Qy);L.register(Jy);L.register(dc);L.register(e6);L.register(t6);L.register(n6);L.register(r6);L.register(i6);L.register(a6);L.register(o6);L.register(s6);L.register($2);L.register(l6);L.register(u6);L.register(xu);L.register(ku);L.register(gc);L.register(c6);L.register(d6);L.register(p6);L.register(f6);L.register(h6);L.register(g6);L.register(m6);L.register(fc);L.register(b6);L.register(E6);L.register(v6);L.register(y6);L.register(_6);L.register(T6);L.register(S6);L.register(w6);L.register(A6);L.register(H2);L.register(C6);L.register(x6);L.register(k6);L.register(I6);L.register(Up);L.register(R6);L.register(N6);L.register(O6);L.register(D6);L.register(L6);L.register(M6);L.register(F6);L.register(P6);L.register(G2);L.register(J2);L.register(B6);L.register(U6);L.register($6);L.register(z6);L.register(H6);L.register(j6);L.register(G6);L.register(V6);L.register(W6);L.register(q6);L.register(K6);L.register(Y6);L.register(X6);L.register(Z6);L.register(Q6);L.register(J6);L.register(e8);L.register(t8);L.register(n8);L.register(W2);L.register(r8);L.register(i8);L.register(a8);L.register(o8);L.register(s8);L.register(l8);L.register(u8);L.register(c8);L.register(d8);L.register(p8);L.register(f8);L.register(h8);L.register(q2);L.register(g8);L.register(m8);L.register(b8);L.register(E8);L.register(v8);L.register(y8);L.register(_8);L.register(T8);L.register(S8);L.register(w8);L.register(A8);L.register(C8);L.register(x8);L.register(k8);L.register(I8);L.register(R8);L.register(N8);L.register(O8);L.register(Mp);L.register(D8);L.register(L8);L.register(M8);L.register(F8);L.register(K2);L.register(P8);L.register(B8);L.register(em);L.register(U8);L.register($8);L.register(z8);L.register(H8);L.register(j8);L.register(G8);L.register(V8);L.register(W8);L.register(q8);L.register(Y2);L.register(K8);L.register(X2);L.register(Y8);L.register(X8);L.register(Z8);L.register(Q8);L.register(J8);L.register(e_);L.register(t_);L.register(n_);L.register(tm);L.register(r_);L.register(i_);L.register(a_);L.register(o_);L.register(s_);L.register(l_);L.register(u_);L.register(c_);L.register(Q2);L.register(d_);L.register($p);L.register(p_);L.register(Pp);L.register(f_);L.register(h_);L.register(g_);L.register(m_);L.register(b_);L.register(E_);L.register(v_);L.register(y_);L.register(__);L.register(T_);L.register(S_);L.register(w_);L.register(A_);L.register(C_);L.register(x_);L.register(k_);L.register(I_);L.register(R_);L.register(N_);L.register(O_);L.register(D_);L.register(L_);L.register(M_);L.register(F_);L.register(P_);L.register(B_);L.register(U_);L.register($_);L.register(z_);function Mb(){Mb=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,o){var s=new RegExp(i,a);return t.set(s,o||t.get(i)),dg(s,n.prototype)}function r(i,a){var o=t.get(a);return Object.keys(o).reduce(function(s,u){return s[u]=i[o[u]],s},Object.create(null))}return Soe(n,RegExp),n.prototype.exec=function(i){var a=e.exec.call(this,i);return a&&(a.groups=r(a,this)),a},n.prototype[Symbol.replace]=function(i,a){if(typeof a=="string"){var o=t.get(this);return e[Symbol.replace].call(this,i,a.replace(/\$<([^>]+)>/g,function(u,c){return"$"+o[c]}))}if(typeof a=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(r(u,s)),a.apply(this,u)})}return e[Symbol.replace].call(this,i,a)},Mb.apply(this,arguments)}function Soe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dg(e,t)}function dg(e,t){return dg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},dg(e,t)}function ck(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var woe=function(e){return function(t){return t===void 0&&(t={}),function(r){Ui(r,"element",n)};function n(r,i,a){var o,s;if(a&&a.tagName==="pre"&&r.tagName==="code"){var u=(r==null||(o=r.data)==null?void 0:o.meta)||(r==null||(s=r.properties)==null?void 0:s.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[],r.properties.className.push("code-highlight");var c,p,f=function(A){for(var D,k=D3(A.properties.className);!(D=k()).done;){var R=D.value;if(R.slice(0,9)==="language-")return R.slice(9).toLowerCase()}return null}(r);if(f)try{var m;m=f!=null&&f.includes("diff-")?f.split("-")[1]:f,c=e.highlight(T1(r),m),a.properties.className=(a.properties.className||[]).concat("language-"+m)}catch(A){if(!t.ignoreMissing||!/Unknown language/.test(A.message))throw A;c=r}else c=r;c.children=(p=1,function A(D){return D.reduce(function(k,R){if(R.type==="text"){var B=R.value,W=(B.match(/\n/g)||"").length;if(W===0)R.position={start:{line:p,column:1},end:{line:p,column:1}},k.push(R);else for(var P,Q=B.split(` -`),z=D3(Q.entries());!(P=z()).done;){var le=P.value,he=le[0],de=le[1];k.push({type:"text",value:he===Q.length-1?de:de+` -`,position:{start:{line:p+he,column:1},end:{line:p+he,column:1}}})}return p+=W,k}if(Object.prototype.hasOwnProperty.call(R,"children")){var fe=p;return R.children=A(R.children),k.push(R),R.position={start:{line:fe,column:1},end:{line:p,column:1}},k}return k.push(R),k},[])})(c.children),c.position=c.children.length>0?{start:{line:c.children[0].position.start.line,column:0},end:{line:c.children[c.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var g,E=function(A){var D=/{([\d,-]+)}/,k=A.split(",").map(function(W){return W.trim()}).join();if(D.test(k)){var R=D.exec(k)[1],B=Xae(R);return function(W){return B.includes(W+1)}}return function(){return!1}}(u),b=function(A){var D=Mb(/showLineNumbers=([0-9]+)/i,{lines:1});if(D.test(A)){var k=D.exec(A);return Number(k.groups.lines)}return 1}(u),T=function(A){for(var D=new Array(A),k=0;k=D+1});k.children=R.children,!u.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||v.some(function(B){return u.toLowerCase().includes(B)})||(k.properties.line=[(D+b).toString()],k.properties.className.push("line-number")),E(D)&&k.properties.className.push("highlight-line"),(f==="diff"||f!=null&&f.includes("diff-"))&&T1(k).substring(0,1)==="-"?k.properties.className.push("deleted"):(f==="diff"||f!=null&&f.includes("diff-"))&&T1(k).substring(0,1)==="+"&&k.properties.className.push("inserted")},w=D3(T.entries());!(g=w()).done;)y();T.length>0&&T1(T[T.length-1]).trim()===""&&T.pop(),r.children=T}}}},Aoe=woe(L);const nM="֑-߿יִ-﷽ﹰ-ﻼ",rM="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",Coe=new RegExp("^[^"+rM+"]*["+nM+"]"),xoe=new RegExp("^[^"+nM+"]*["+rM+"]");function koe(e){const t=String(e||"");return Coe.test(t)?"rtl":xoe.test(t)?"ltr":"neutral"}function Ioe(e,t){const n=e.schema,r=e.language,i=e.direction,a=e.editableOrEditingHost;let o;if(t.type==="element"&&t.properties){const c=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",f=dk(t);c!=null&&(e.language=String(c)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=yl),f==="rtl"?o=f:f==="ltr"||f!=="auto"&&t.tagName==="html"||f!=="auto"&&t.tagName==="input"&&p==="tel"?o="ltr":(f==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?o=L3(T1(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?o=t.properties.value?L3(t.properties.value):"ltr":Ui(t,u)),o&&(e.direction=o)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return s;function s(){e.schema=n,e.language=r,e.direction=i,e.editableOrEditingHost=a}function u(c){if(c.type==="text")return o=L3(c.value),o?Ab:void 0;if(c!==t&&c.type==="element"&&(c.tagName==="bdi"||c.tagName==="script"||c.tagName==="style"||c.tagName==="textare"||dk(c)))return Cd}}function L3(e){const t=koe(e);return t==="neutral"?void 0:t}function dk(e){const t=e.type==="element"&&e.properties&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}const Roe=F2("operator",{unknown:Uoe,invalid:Ooe,handlers:{"=":Doe,"~=":Loe,"|=":Moe,"^=":Foe,"$=":Poe,"*=":Boe}});function Noe(e,t,n){const r=e.attrs;let i=-1;for(;++i=fk&&e.charCodeAt(t)<=Woe;)c=c*10+(e.charCodeAt(t)-fk),t++;return t===u?null:c}function s(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?hk.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function gk(e){return Yoe(qoe(e))}const Xoe=gk.default||gk,Zoe=F2("name",{unknown:Tse,invalid:_se,handlers:{any:Fb,"any-link":Qoe,blank:Joe,checked:ese,dir:tse,disabled:aM,empty:nse,enabled:rse,"first-child":ise,"first-of-type":ase,has:ose,lang:sse,"last-child":lse,"last-of-type":use,matches:Fb,not:cse,"nth-child":dse,"nth-last-child":pse,"nth-of-type":hse,"nth-last-of-type":fse,"only-child":gse,"only-of-type":mse,optional:bse,"read-only":Ese,"read-write":oM,required:sM,root:vse,scope:yse}});iM.needsIndex=["any","first-child","first-of-type","last-child","last-of-type","matches","not","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];function iM(e,t,n,r,i){const a=e.pseudos;let o=-1;for(;++o0}function sse(e,t,n,r,i){return i.language!==""&&i.language!==void 0&&Goe(i.language,lp(e.value)).length>0}function lse(e,t,n,r,i){return To(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function use(e,t,n,r,i){return To(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function Fb(e,t,n,r,i){const a={...i,found:!1,shallow:!1,one:!0,scopeElements:[t],results:[],rootQuery:H_(e.value)};return j_(a,t),a.results[0]===t}function cse(e,t,n,r,i){return!Fb(e,t,n,r,i)}function dse(e,t,n,r,i){const a=nm(e);return To(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function pse(e,t,n,r,i){const a=nm(e);return To(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function fse(e,t,n,r,i){const a=nm(e);return To(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function hse(e,t,n,r,i){const a=nm(e);return To(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function gse(e,t,n,r,i){return To(i,e),i.elementCount===1}function mse(e,t,n,r,i){return To(i,e),i.typeCount===1}function bse(e,t){return!sM(e,t)}function Ese(e,t,n,r,i){return!oM(e,t,n,r,i)}function oM(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Hr(t,"readOnly")&&!Hr(t,"disabled"):!!i.editableOrEditingHost}function sM(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Hr(t,"required")}function vse(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function yse(e,t,n,r,i){return i.scopeElements.includes(t)}function _se(){throw new Error("Invalid pseudo-selector")}function Tse(e){throw e.name?new Error("Unknown pseudo-selector `"+e.name+"`"):new Error("Unexpected pseudo-element or empty pseudo-class")}function lM(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";M3(a,p,c)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.rule.nestingOperator===null?M3(a,"descendant",s):s.rule.nestingOperator==="~"&&M3(a,"generalSibling",s)}return a}function gh(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:wse}function M3(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function mk(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}var cM={},G_={},V_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o==="-"||o==="_"}e.isIdentStart=t;function n(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o>="0"&&o<="9"||o==="-"||o==="_"}e.isIdent=n;function r(o){return o>="a"&&o<="f"||o>="A"&&o<="F"||o>="0"&&o<="9"}e.isHex=r;function i(o){for(var s=o.length,u="",c=0;c="A"&&p<="Z"||p>="a"&&p<="z"||c!==0&&p>="0"&&p<="9")u+=p;else{var f=p.charCodeAt(0);if((f&63488)===55296){var m=o.charCodeAt(c++);if((f&64512)!==55296||(m&64512)!==56320)throw Error("UCS-2(decode): illegal sequence");f=((f&1023)<<10)+(m&1023)+65536}u+="\\"+f.toString(16)+" "}c++}return u}e.escapeIdentifier=i;function a(o){for(var s=o.length,u="",c=0,p;c":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},e.strReplacementsRev={"\n":"\\n","\r":"\\r"," ":"\\t","\f":"\\f","\v":"\\v"},e.singleQuoteEscapeChars={n:` +|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}d2.displayName="go";d2.aliases=[];function d2(e){e.register(Lt),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}p2.displayName="ini";p2.aliases=[];function p2(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}Lu.displayName="java";Lu.aliases=[];function Lu(e){e.register(Lt),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}f2.displayName="regex";f2.aliases=[];function f2(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",s=RegExp(o+"-"+o),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}Tc.displayName="json";Tc.aliases=["webmanifest"];function Tc(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}h2.displayName="kotlin";h2.aliases=["kt","kts"];function h2(e){e.register(Lt),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}g2.displayName="less";g2.aliases=[];function g2(e){e.register(xl),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Kp.displayName="lua";Kp.aliases=[];function Kp(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}m2.displayName="makefile";m2.aliases=[];function m2(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}Yp.displayName="yaml";Yp.aliases=["yml"];function Yp(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return u});return RegExp(p,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}b2.displayName="markdown";b2.aliases=["md"];function b2(e){e.register(gr),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(u){s!==u&&(t.languages.markdown[s].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function u(c){if(!(!c||typeof c=="string"))for(var p=0,f=c.length;p]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}E2.displayName="perl";E2.aliases=[];function E2(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Nr.displayName="markup-templating";Nr.aliases=[];function Nr(e){e.register(gr),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,o){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(a,function(u){if(typeof o=="function"&&!o(u))return u;for(var c=s.length,p;r.code.indexOf(p=n(i,c))!==-1;)++c;return s[c]=u,p}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,o=Object.keys(r.tokenStack);function s(u){for(var c=0;c=o.length);c++){var p=u[c];if(typeof p=="string"||p.content&&typeof p.content=="string"){var f=o[a],m=r.tokenStack[f],g=typeof p=="string"?p:p.content,b=n(i,f),y=g.indexOf(b);if(y>-1){++a;var T=g.substring(0,y),E=new t.Token(i,t.tokenize(m,r.grammar),"language-"+i,m),v=g.substring(y+b.length),w=[];T&&w.push.apply(w,s([T])),w.push(E),v&&w.push.apply(w,s([v])),typeof p=="string"?u.splice.apply(u,[c,1].concat(w)):p.content=w}}else p.content&&s(p.content)}return u}s(r.tokens)}}})}(e)}Mu.displayName="php";Mu.aliases=[];function Mu(e){e.register(Nr),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",p)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(e)}Xp.displayName="python";Xp.aliases=["py"];function Xp(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}v2.displayName="r";v2.aliases=[];function v2(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}Fu.displayName="ruby";Fu.aliases=["rb"];function Fu(e){e.register(Lt),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}_2.displayName="rust";_2.aliases=[];function _2(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}T2.displayName="sass";T2.aliases=[];function T2(e){e.register(xl),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}S2.displayName="scss";S2.aliases=[];function S2(e){e.register(xl),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}Sc.displayName="sql";Sc.aliases=[];function Sc(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}w2.displayName="swift";w2.aliases=[];function w2(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}wc.displayName="typescript";wc.aliases=["ts"];function wc(e){e.register(Rr),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}Zp.displayName="basic";Zp.aliases=[];function Zp(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Qp.displayName="vbnet";Qp.aliases=[];function Qp(e){e.register(Zp),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const iI=/[#.]/g;function Hse(e,t){const n=e||"",r={};let i=0,a,o;for(;i=48&&t<=57}function Zse(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Qse(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function sI(e){return Qse(e)||fF(e)}const n1=String.fromCharCode,Jse=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function ele(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,o="",s,u;t.position&&("start"in t.position||"indent"in t.position?(u=t.position.indent,s=t.position.start):s=t.position);let c=(s?s.line:0)||1,p=(s?s.column:0)||1,f=g(),m;for(i--;++i<=e.length;)if(m===10&&(p=(u?u[a]:0)||1),m=e.charCodeAt(i),m===38){const T=e.charCodeAt(i+1);if(T===9||T===10||T===12||T===32||T===38||T===60||Number.isNaN(T)||n&&T===n){o+=n1(m),p++;continue}const E=i+1;let v=E,w=E,A;if(T===35){w=++v;const $=e.charCodeAt(w);$===88||$===120?(A="hexadecimal",w=++v):A="decimal"}else A="named";let R="",k="",N="";const B=A==="named"?sI:A==="decimal"?fF:Zse;for(w--;++w<=e.length;){const $=e.charCodeAt(w);if(!B($))break;N+=n1($),A==="named"&&Xse.includes(N)&&(R=N,k=Tp(N))}let q=e.charCodeAt(w)===59;if(q){w++;const $=A==="named"?Tp(N):!1;$&&(R=N,k=$)}let P=1+w-E,Q="";if(!(!q&&t.nonTerminated===!1))if(!N)A!=="named"&&b(4,P);else if(A==="named"){if(q&&!k)b(5,1);else if(R!==N&&(w=v+R.length,P=1+w-v,q=!1),!q){const $=R?1:3;if(t.attribute){const oe=e.charCodeAt(w);oe===61?(b($,P),k=""):sI(oe)?k="":b($,P)}else b($,P)}Q=k}else{q||b(2,P);let $=Number.parseInt(N,A==="hexadecimal"?16:10);if(tle($))b(7,P),Q=n1(65533);else if($ in oI)b(6,P),Q=oI[$];else{let oe="";nle($)&&b(6,P),$>65535&&($-=65536,oe+=n1($>>>10|55296),$=56320|$&1023),Q=oe+n1($)}}if(Q){y(),f=g(),i=w-1,p+=w-E+1,r.push(Q);const $=g();$.offset++,t.reference&&t.reference.call(t.referenceContext,Q,{start:f,end:$},e.slice(E-1,w)),f=$}else N=e.slice(E-1,w),o+=N,p+=N.length,i=w-1}else m===10&&(c++,a++,p=0),Number.isNaN(m)?y():(o+=n1(m),p++);return r.join("");function g(){return{line:c,column:p,offset:i+((s?s.offset:0)||0)}}function b(T,E){let v;t.warning&&(v=g(),v.column+=E,v.offset+=E,t.warning.call(t.warningContext,Jse[T],v,T))}function y(){o&&(r.push(o),t.text&&t.text.call(t.textContext,o,{start:f,end:g()}),o="")}}function tle(e){return e>=55296&&e<=57343||e>1114111}function nle(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var rle=0,G0={},lr={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++rle}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(lr.util.type(t)){case"Object":if(i=lr.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=lr.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(o,s){r[s]=e(o,n)}),r);default:return t}}},languages:{plain:G0,plaintext:G0,text:G0,txt:G0,extend:function(e,t){var n=lr.util.clone(lr.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||lr.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var u=r[e];return r[e]=a,lr.languages.DFS(lr.languages,function(c,p){p===u&&c!=e&&(this[c]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=lr.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],u=lr.util.type(s);u==="Object"&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):u==="Array"&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(lr.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=lr.tokenize(r.code,r.grammar),lr.hooks.run("after-tokenize",r),qd.stringify(lr.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new ile;return Dh(i,i.head,e),hF(e,i,t,i.head,0),ole(i)},hooks:{all:{},add:function(e,t){var n=lr.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=lr.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:qd};function qd(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function lI(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function hF(e,t,n,r,i,a){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var u=0;u=a.reach);E+=T.value.length,T=T.next){var v=T.value;if(t.length>e.length)return;if(!(v instanceof qd)){var w=1,A;if(m){if(A=lI(y,E,e,f),!A||A.index>=e.length)break;var B=A.index,R=A.index+A[0].length,k=E;for(k+=T.value.length;B>=k;)T=T.next,k+=T.value.length;if(k-=T.value.length,E=k,T.value instanceof qd)continue;for(var N=T;N!==t.tail&&(ka.reach&&(a.reach=$);var oe=T.prev;P&&(oe=Dh(t,oe,P),E+=P.length),ale(t,oe,w);var fe=new qd(o,p?lr.tokenize(q,p):q,g,q);if(T=Dh(t,oe,fe),Q&&Dh(t,T,Q),w>1){var ce={cause:o+","+u,reach:$};hF(e,t,n,T.prev,E,ce),a&&ce.reach>a.reach&&(a.reach=ce.reach)}}}}}}function ile(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Dh(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function ale(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}K9.displayName="abnf";K9.aliases=[];function K9(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}Y9.displayName="actionscript";Y9.aliases=[];function Y9(e){e.register(Rr),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}X9.displayName="ada";X9.aliases=[];function X9(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}Z9.displayName="agda";Z9.aliases=[];function Z9(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}Q9.displayName="al";Q9.aliases=[];function Q9(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}J9.displayName="antlr4";J9.aliases=["g4"];function J9(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}ev.displayName="apacheconf";ev.aliases=[];function ev(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}tv.displayName="apex";tv.aliases=[];function tv(e){e.register(Lt),e.register(Sc),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(o){return RegExp(o.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}nv.displayName="apl";nv.aliases=[];function nv(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}rv.displayName="applescript";rv.aliases=[];function rv(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}iv.displayName="aql";iv.aliases=[];function iv(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}av.displayName="arff";av.aliases=[];function av(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}ov.displayName="armasm";ov.aliases=["arm-asm"];function ov(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}sv.displayName="arturo";sv.aliases=["art"];function sv(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}lv.displayName="asciidoc";lv.aliases=["adoc"];function lv(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var o={},s=0,u=a.length;s/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}cv.displayName="asm6502";cv.aliases=[];function cv(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}dv.displayName="asmatmel";dv.aliases=[];function dv(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}pv.displayName="autohotkey";pv.aliases=[];function pv(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}fv.displayName="autoit";fv.aliases=[];function fv(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}hv.displayName="avisynth";hv.aliases=["avs"];function hv(e){(function(t){function n(c,p){return c.replace(/<<(\d+)>>/g,function(f,m){return p[+m]})}function r(c,p,f){return RegExp(n(c,p),f||"")}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),o=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),s=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[a,o,s].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}gv.displayName="avro-idl";gv.aliases=["avdl"];function gv(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}mv.displayName="awk";mv.aliases=["gawk"];function mv(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}bv.displayName="batch";bv.aliases=[];function bv(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}yv.displayName="bbcode";yv.aliases=["shortcode"];function yv(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}Ev.displayName="bbj";Ev.aliases=[];function Ev(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}vv.displayName="bicep";vv.aliases=[];function vv(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}_v.displayName="birb";_v.aliases=[];function _v(e){e.register(Lt),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}Tv.displayName="bison";Tv.aliases=[];function Tv(e){e.register(Qa),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Sv.displayName="bnf";Sv.aliases=["rbnf"];function Sv(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}wv.displayName="bqn";wv.aliases=[];function wv(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}Av.displayName="brainfuck";Av.aliases=[];function Av(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}Cv.displayName="brightscript";Cv.aliases=[];function Cv(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}kv.displayName="bro";kv.aliases=[];function kv(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}xv.displayName="bsl";xv.aliases=["oscript"];function xv(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}Iv.displayName="cfscript";Iv.aliases=["cfc"];function Iv(e){e.register(Lt),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}Rv.displayName="chaiscript";Rv.aliases=[];function Rv(e){e.register(Lt),e.register(Ou),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Nv.displayName="cil";Nv.aliases=[];function Nv(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}Ov.displayName="cilkc";Ov.aliases=["cilk-c"];function Ov(e){e.register(Qa),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}Dv.displayName="cilkcpp";Dv.aliases=["cilk","cilk-cpp"];function Dv(e){e.register(Ou),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}Lv.displayName="clojure";Lv.aliases=[];function Lv(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}Mv.displayName="cmake";Mv.aliases=[];function Mv(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}Fv.displayName="cobol";Fv.aliases=[];function Fv(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}Pv.displayName="coffeescript";Pv.aliases=["coffee"];function Pv(e){e.register(Rr),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}Bv.displayName="concurnas";Bv.aliases=["conc"];function Bv(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}Uv.displayName="csp";Uv.aliases=[];function Uv(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}$v.displayName="cooklang";$v.aliases=[];function $v(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,o=/(?:h|hours|hrs|m|min|minutes)/.source,s={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+o+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}zv.displayName="coq";zv.aliases=[];function zv(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Hv.displayName="crystal";Hv.aliases=[];function Hv(e){e.register(Fu),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}jv.displayName="css-extras";jv.aliases=[];function jv(e){e.register(xl),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}Gv.displayName="csv";Gv.aliases=[];function Gv(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}Vv.displayName="cue";Vv.aliases=[];function Vv(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}Wv.displayName="cypher";Wv.aliases=[];function Wv(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}qv.displayName="d";qv.aliases=[];function qv(e){e.register(Lt),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}Kv.displayName="dart";Kv.aliases=[];function Kv(e){e.register(Lt),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}Yv.displayName="dataweave";Yv.aliases=[];function Yv(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}Xv.displayName="dax";Xv.aliases=[];function Xv(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}Zv.displayName="dhall";Zv.aliases=[];function Zv(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}Qv.displayName="django";Qv.aliases=["jinja2"];function Qv(e){e.register(Nr),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}Jv.displayName="dns-zone-file";Jv.aliases=["dns-zone"];function Jv(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}e6.displayName="docker";e6.aliases=["dockerfile"];function e6(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),o={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(c,p){return c=c.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(c,p)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}t6.displayName="dot";t6.aliases=["gv"];function t6(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,o){return RegExp(a.replace(//g,function(){return n}),o)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}n6.displayName="ebnf";n6.aliases=[];function n6(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}r6.displayName="editorconfig";r6.aliases=[];function r6(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}i6.displayName="eiffel";i6.aliases=[];function i6(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}a6.displayName="ejs";a6.aliases=["eta"];function a6(e){e.register(Rr),e.register(Nr),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}o6.displayName="elixir";o6.aliases=[];function o6(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}s6.displayName="elm";s6.aliases=[];function s6(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}l6.displayName="etlua";l6.aliases=[];function l6(e){e.register(Kp),e.register(Nr),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}u6.displayName="erb";u6.aliases=[];function u6(e){e.register(Nr),e.register(Fu),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}c6.displayName="erlang";c6.aliases=[];function c6(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}d6.displayName="excel-formula";d6.aliases=["xls","xlsx"];function d6(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}p6.displayName="fsharp";p6.aliases=[];function p6(e){e.register(Lt),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}f6.displayName="factor";f6.aliases=[];function f6(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(c){return new RegExp("(^|\\s)(?:"+c.map(a).join("|")+")(?=\\s|$)")},s={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(s).forEach(function(c){i[c].pattern=o(s[c])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=o(u),t.languages.factor=i})(e)}h6.displayName="false";h6.aliases=[];function h6(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}m6.displayName="flow";m6.aliases=[];function m6(e){e.register(Rr),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}b6.displayName="fortran";b6.aliases=[];function b6(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}y6.displayName="ftl";y6.aliases=[];function y6(e){e.register(Nr),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",o)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}E6.displayName="gml";E6.aliases=["gamemakerlanguage"];function E6(e){e.register(Lt),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}v6.displayName="gap";v6.aliases=[];function v6(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}_6.displayName="gcode";_6.aliases=[];function _6(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}T6.displayName="gdscript";T6.aliases=[];function T6(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}S6.displayName="gedcom";S6.aliases=[];function S6(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}w6.displayName="gettext";w6.aliases=["po"];function w6(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}A6.displayName="gherkin";A6.aliases=[];function A6(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}C6.displayName="git";C6.aliases=[];function C6(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}k6.displayName="glsl";k6.aliases=[];function k6(e){e.register(Qa),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}x6.displayName="gn";x6.aliases=["gni"];function x6(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}I6.displayName="linker-script";I6.aliases=["ld"];function I6(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}R6.displayName="go-module";R6.aliases=["go-mod"];function R6(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}N6.displayName="gradle";N6.aliases=[];function N6(e){e.register(Lt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}O6.displayName="graphql";O6.aliases=[];function O6(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function a(T){return r[i+T]}function o(T,E){E=E||0;for(var v=0;v0)){var g=s(/^\{$/,/^\}$/);if(g===-1)continue;for(var b=i;b=0&&u(y,"variable-input")}}}}})}D6.displayName="groovy";D6.aliases=[];function D6(e){e.register(Lt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}L6.displayName="textile";L6.aliases=[];function L6(e){e.register(gr),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,m){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),m||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),s=o.phrase.inside,u={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=s.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=s.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark}(e)}M6.displayName="haml";M6.aliases=[];function M6(e){e.register(Fu),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,o=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}Jp.displayName="haskell";Jp.aliases=["hs"];function Jp(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}P6.displayName="haxe";P6.aliases=[];function P6(e){e.register(Lt),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}B6.displayName="hcl";B6.aliases=[];function B6(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}U6.displayName="hlsl";U6.aliases=[];function U6(e){e.register(Qa),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}$6.displayName="hoon";$6.aliases=[];function $6(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}z6.displayName="hpkp";z6.aliases=[];function z6(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}H6.displayName="hsts";H6.aliases=[];function H6(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}j6.displayName="uri";j6.aliases=["url"];function j6(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}G6.displayName="http";G6.aliases=[];function G6(e){(function(t){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function o(p){var f=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var s;for(var u in i)if(i[u]){s=s||{};var c=a[u]?o(u):u;s[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}s&&t.languages.insertBefore("http","header",s)})(e)}V6.displayName="ichigojam";V6.aliases=[];function V6(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}W6.displayName="icon";W6.aliases=[];function W6(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}q6.displayName="icu-message-format";q6.aliases=[];function q6(e){(function(t){function n(u,c){return c<=0?/[]/.source:u.replace(//g,function(){return n(u,c-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},o=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(o),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":s,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":s,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},s.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}K6.displayName="idris";K6.aliases=["idr"];function K6(e){e.register(Jp),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}Y6.displayName="ignore";Y6.aliases=["gitignore","hgignore","npmignore"];function Y6(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}X6.displayName="inform7";X6.aliases=[];function X6(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}Z6.displayName="io";Z6.aliases=[];function Z6(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}Cc.displayName="javadoclike";Cc.aliases=[];function Cc(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,o){var s="doc-comment",u=t.languages[a];if(u){var c=u[s];if(!c){var p={};p[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=t.languages.insertBefore(a,"comment",p),c=u[s]}if(c instanceof RegExp&&(c=u[s]={pattern:c}),Array.isArray(c))for(var f=0,m=c.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}e8.displayName="javadoc";e8.aliases=[];function e8(e){e.register(Lu),e.register(Cc),e.register(gr),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}t8.displayName="javastacktrace";t8.aliases=[];function t8(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}n8.displayName="jexl";n8.aliases=[];function n8(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}r8.displayName="jolie";r8.aliases=[];function r8(e){e.register(Lt),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}i8.displayName="jq";i8.aliases=[];function i8(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}a8.displayName="js-templates";a8.aliases=[];function a8(e){e.register(Rr),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],o=i.pattern.source;function s(b,y){if(t.languages[b])return{pattern:RegExp("((?:"+y+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function u(b,y){return"___"+y.toUpperCase()+"_"+b+"___"}function c(b,y,T){var E={code:b,grammar:y,language:T};return t.hooks.run("before-tokenize",E),E.tokens=t.tokenize(E.code,E.grammar),t.hooks.run("after-tokenize",E),E.tokens}function p(b){var y={};y["interpolation-punctuation"]=a;var T=t.tokenize(b,y);if(T.length===3){var E=[1,1];E.push.apply(E,c(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,E)}return new t.Token("interpolation",T,i.alias,b)}function f(b,y,T){var E=t.tokenize(b,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),v=0,w={},A=E.map(function(B){if(typeof B=="string")return B;for(var q=B.content,P;b.indexOf(P=u(v++,T))!==-1;);return w[P]=q,P}).join(""),R=c(A,y,T),k=Object.keys(w);v=0;function N(B){for(var q=0;q=k.length)return;var P=B[q];if(typeof P=="string"||typeof P.content=="string"){var Q=k[v],$=typeof P=="string"?P:P.content,oe=$.indexOf(Q);if(oe!==-1){++v;var fe=$.substring(0,oe),ce=p(w[Q]),De=$.substring(oe+Q.length),H=[];if(fe&&H.push(fe),H.push(ce),De){var W=[De];N(W),H.push.apply(H,W)}typeof P=="string"?(B.splice.apply(B,[q,1].concat(H)),q+=H.length-1):P.content=H}}else{var se=P.content;Array.isArray(se)?N(se):N([se])}}}return N(R),new t.Token(T,R,"language-"+T,b)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(b){if(!(b.language in m))return;function y(T){for(var E=0,v=T.length;E\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}s8.displayName="n4js";s8.aliases=["n4jsd"];function s8(e){e.register(Rr),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}l8.displayName="js-extras";l8.aliases=[];function l8(e){e.register(Rr),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(u,c){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}p8.displayName="julia";p8.aliases=[];function p8(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}f8.displayName="keepalived";f8.aliases=[];function f8(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}h8.displayName="keyman";h8.aliases=[];function h8(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}g8.displayName="kumir";g8.aliases=["kum"];function g8(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}m8.displayName="kusto";m8.aliases=[];function m8(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}b8.displayName="latex";b8.aliases=["context","tex"];function b8(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}y8.displayName="latte";y8.aliases=[];function y8(e){e.register(Lt),e.register(Nr),e.register(Mu),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}ef.displayName="scheme";ef.aliases=[];function ef(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}E8.displayName="lilypond";E8.aliases=["ly"];function E8(e){e.register(ef),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}v8.displayName="liquid";v8.aliases=[];function v8(e){e.register(Nr),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var o=a[1];if(o==="raw"&&!r)return r=!0,!0;if(o==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}_8.displayName="lisp";_8.aliases=["elisp","emacs","emacs-lisp"];function _8(e){(function(t){function n(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function r(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,o="(\\()",s="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(o+c+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:f},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=g,p.defun.inside.arguments=t.util.clone(g),p.defun.inside.arguments.inside.sublist=g,t.languages.lisp=p,t.languages.elisp=p,t.languages.emacs=p,t.languages["emacs-lisp"]=p})(e)}T8.displayName="livescript";T8.aliases=[];function T8(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}S8.displayName="llvm";S8.aliases=[];function S8(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}w8.displayName="log";w8.aliases=[];function w8(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}A8.displayName="lolcode";A8.aliases=[];function A8(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}C8.displayName="magma";C8.aliases=[];function C8(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}A2.displayName="mata";A2.aliases=[];function A2(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}k8.displayName="matlab";k8.aliases=[];function k8(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}x8.displayName="maxscript";x8.aliases=[];function x8(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}I8.displayName="mel";I8.aliases=[];function I8(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}R8.displayName="mermaid";R8.aliases=[];function R8(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}N8.displayName="metafont";N8.aliases=[];function N8(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}O8.displayName="mizar";O8.aliases=[];function O8(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}D8.displayName="mongodb";D8.aliases=[];function D8(e){e.register(Rr),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}L8.displayName="monkey";L8.aliases=[];function L8(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}M8.displayName="moonscript";M8.aliases=["moon"];function M8(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}F8.displayName="n1ql";F8.aliases=[];function F8(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}P8.displayName="nand2tetris-hdl";P8.aliases=[];function P8(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}B8.displayName="naniscript";B8.aliases=["nani"];function B8(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(o){var s=o.tokens;s.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=a(u);i(c)||(u.type="bad-line",u.content=c)}})});function i(o){for(var s="[]{}",u=[],c=0;c=&|$!]/}}$8.displayName="neon";$8.aliases=[];function $8(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}z8.displayName="nevod";z8.aliases=[];function z8(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}H8.displayName="nginx";H8.aliases=[];function H8(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}j8.displayName="nim";j8.aliases=[];function j8(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}G8.displayName="nix";G8.aliases=[];function G8(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}V8.displayName="nsis";V8.aliases=[];function V8(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}W8.displayName="ocaml";W8.aliases=[];function W8(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}q8.displayName="odin";q8.aliases=[];function q8(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}K8.displayName="opencl";K8.aliases=[];function K8(e){e.register(Qa),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}Y8.displayName="openqasm";Y8.aliases=["qasm"];function Y8(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}X8.displayName="oz";X8.aliases=[];function X8(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}Z8.displayName="parigp";Z8.aliases=[];function Z8(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}Q8.displayName="parser";Q8.aliases=[];function Q8(e){e.register(gr),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}J8.displayName="pascal";J8.aliases=["objectpascal"];function J8(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}e_.displayName="pascaligo";e_.aliases=[];function e_(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,s){return o[s]=i[s],o},{});i["class-name"].forEach(function(o){o.inside=a})})(e)}t_.displayName="psl";t_.aliases=[];function t_(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}n_.displayName="pcaxis";n_.aliases=["px"];function n_(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}r_.displayName="peoplecode";r_.aliases=["pcode"];function r_(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}i_.displayName="phpdoc";i_.aliases=[];function i_(e){e.register(Cc),e.register(Mu),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}a_.displayName="php-extras";a_.aliases=[];function a_(e){e.register(Mu),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}o_.displayName="plant-uml";o_.aliases=["plantuml"];function o_(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",o=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,u=/[[?]?[ox]?/.source,c=/[ox]?[\]?]?/.source,p=u+"(?:"+a+s+"|"+o+a+"(?:"+s+")?)"+c;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+p+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}s_.displayName="plsql";s_.aliases=[];function s_(e){e.register(Sc),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}l_.displayName="powerquery";l_.aliases=["mscript","pq"];function l_(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}u_.displayName="powershell";u_.aliases=[];function u_(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}c_.displayName="processing";c_.aliases=[];function c_(e){e.register(Lt),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}d_.displayName="prolog";d_.aliases=[];function d_(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}p_.displayName="promql";p_.aliases=[];function p_(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}f_.displayName="properties";f_.aliases=[];function f_(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}h_.displayName="protobuf";h_.aliases=[];function h_(e){e.register(Lt),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}g_.displayName="stylus";g_.aliases=[];function g_(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}m_.displayName="twig";m_.aliases=[];function m_(e){e.register(Nr),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}b_.displayName="pug";b_.aliases=[];function b_(e){e.register(Rr),e.register(gr),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,o=r.length;a",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}y_.displayName="puppet";y_.aliases=[];function y_(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}E_.displayName="pure";E_.aliases=[];function E_(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var o={};o["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},o["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",o)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}v_.displayName="purebasic";v_.aliases=["pbfasm"];function v_(e){e.register(Lt),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}__.displayName="purescript";__.aliases=["purs"];function __(e){e.register(Jp),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}T_.displayName="qsharp";T_.aliases=["qs"];function T_(e){e.register(Lt),function(t){function n(g,b){return g.replace(/<<(\d+)>>/g,function(y,T){return"(?:"+b[+T]+")"})}function r(g,b,y){return RegExp(n(g,b),y||"")}function i(g,b){for(var y=0;y>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function o(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(o(a.type+" "+a.other)),u=/\b[A-Za-z_]\w*\b/.source,c=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:s,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:p},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:p}],keyword:s,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}S_.displayName="q";S_.aliases=[];function S_(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}w_.displayName="qml";w_.aliases=[];function w_(e){e.register(Rr),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}A_.displayName="qore";A_.aliases=[];function A_(e){e.register(Lt),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}C_.displayName="racket";C_.aliases=["rkt"];function C_(e){e.register(ef),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}k_.displayName="cshtml";k_.aliases=["razor"];function k_(e){e.register(Du),e.register(gr),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(v,w){for(var A=0;A/g,function(){return"(?:"+v+")"});return v.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),o=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),u=i(/<(?:[^<>'"@/]||)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+u+")?"+a+"|"+o+")*"+/(?![?!\.(\[]|<(?!\/))/.source,p=/@(?![\w()])/.source+"|"+c,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+p+`)[^"'@]*)+["'])`,m=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+m+/\s*\/?>/.source,b=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function o(c,p){return c=c.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(c,p)}a=o(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(s).join(""):""},u=function(c){for(var p=[],f=0;f0&&p[p.length-1].tagName===s(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:s(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:g=!0),(g||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var b=s(m);f0&&(typeof c[f-1]=="string"||c[f-1].type==="plain-text")&&(b=s(c[f-1])+b,c.splice(f-1,1),f--),c[f]=new t.Token("plain-text",b,null,b)}m.content&&typeof m.content!="string"&&u(m.content)}};t.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})}(e)}x_.displayName="tsx";x_.aliases=[];function x_(e){e.register(C2),e.register(wc),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}I_.displayName="reason";I_.aliases=[];function I_(e){e.register(Lt),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}R_.displayName="rego";R_.aliases=[];function R_(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}N_.displayName="renpy";N_.aliases=["rpy"];function N_(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}O_.displayName="rescript";O_.aliases=["res"];function O_(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}D_.displayName="rest";D_.aliases=[];function D_(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}L_.displayName="rip";L_.aliases=[];function L_(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}M_.displayName="roboconf";M_.aliases=[];function M_(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}F_.displayName="robotframework";F_.aliases=["robot"];function F_(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,c){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in c)p[f]=c[f];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=r,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:p}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":o,documentation:a,property:s}),keywords:i("Keywords",{"keyword-name":o,documentation:a,property:s}),tasks:i("Tasks",{"task-name":o,documentation:a,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}P_.displayName="sas";P_.aliases=[];function P_(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},y={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},E=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,v={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return E}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return E}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:f,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:r,"numeric-constant":i,punctuation:p,string:c}},w={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":y,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:w,"submit-statement":T,"global-statements":y,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:w,"submit-statement":T,"global-statements":y,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":v,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:s,keyword:w,function:f,format:g,altformat:b,"global-statements":y,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:m},"macro-keyword":o,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":v,comment:u,function:f,format:g,altformat:b,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:c,step:s,keyword:w,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(e)}B_.displayName="shell-session";B_.aliases=["sh-session","shellsession"];function B_(e){e.register(qp),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}U_.displayName="smali";U_.aliases=[];function U_(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}$_.displayName="smalltalk";$_.aliases=[];function $_(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}z_.displayName="smarty";z_.aliases=[];function z_(e){e.register(Nr),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",o="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(u){return u===o&&(s=!1),s?!1:(u===a&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}H_.displayName="sml";H_.aliases=["smlnj"];function H_(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}j_.displayName="solidity";j_.aliases=["sol"];function j_(e){e.register(Lt),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}G_.displayName="solution-file";G_.aliases=["sln"];function G_(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}V_.displayName="soy";V_.aliases=[];function V_(e){e.register(Nr),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",s="{/literal}",u=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(c){return c===s&&(u=!1),u?!1:(c===o&&(u=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}k2.displayName="turtle";k2.aliases=["trig"];function k2(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}W_.displayName="sparql";W_.aliases=["rq"];function W_(e){e.register(k2),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}q_.displayName="splunk-spl";q_.aliases=[];function q_(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}K_.displayName="sqf";K_.aliases=[];function K_(e){e.register(Lt),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}Y_.displayName="squirrel";Y_.aliases=[];function Y_(e){e.register(Lt),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}X_.displayName="stan";X_.aliases=[];function X_(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}Z_.displayName="stata";Z_.aliases=[];function Z_(e){e.register(Lu),e.register(A2),e.register(Xp),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}Q_.displayName="iecst";Q_.aliases=[];function Q_(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}J_.displayName="supercollider";J_.aliases=["sclang"];function J_(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}e7.displayName="systemd";e7.aliases=[];function e7(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}tf.displayName="t4-templating";tf.aliases=[];function tf(e){(function(t){function n(i,a,o){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:o}}}}function r(i){var a=t.languages[i],o="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,o),"class-feature":n("\\+",a,o),standard:n("",a,o)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}t7.displayName="t4-cs";t7.aliases=["t4"];function t7(e){e.register(Du),e.register(tf),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}n7.displayName="t4-vb";n7.aliases=[];function n7(e){e.register(tf),e.register(Qp),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}r7.displayName="tap";r7.aliases=[];function r7(e){e.register(Yp),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}i7.displayName="tcl";i7.aliases=[];function i7(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}a7.displayName="tt2";a7.aliases=[];function a7(e){e.register(Lt),e.register(Nr),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}o7.displayName="toml";o7.aliases=[];function o7(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}s7.displayName="tremor";s7.aliases=["trickle","troy"];function s7(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}l7.displayName="typoscript";l7.aliases=["tsconfig"];function l7(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}u7.displayName="unrealscript";u7.aliases=["uc","uscript"];function u7(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}c7.displayName="uorazor";c7.aliases=[];function c7(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}d7.displayName="v";d7.aliases=[];function d7(e){e.register(Lt),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}p7.displayName="vala";p7.aliases=[];function p7(e){e.register(Lt),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}f7.displayName="velocity";f7.aliases=[];function f7(e){e.register(gr),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}h7.displayName="verilog";h7.aliases=[];function h7(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}g7.displayName="vhdl";g7.aliases=[];function g7(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}m7.displayName="vim";m7.aliases=[];function m7(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}b7.displayName="visual-basic";b7.aliases=["vb","vba"];function b7(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}y7.displayName="warpscript";y7.aliases=[];function y7(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}E7.displayName="wasm";E7.aliases=[];function E7(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}v7.displayName="web-idl";v7.aliases=["webidl"];function v7(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}_7.displayName="wgsl";_7.aliases=[];function _7(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}T7.displayName="wiki";T7.aliases=[];function T7(e){e.register(gr),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}S7.displayName="wolfram";S7.aliases=["mathematica","nb","wl"];function S7(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}w7.displayName="wren";w7.aliases=[];function w7(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}A7.displayName="xeora";A7.aliases=["xeoracube"];function A7(e){e.register(gr),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}C7.displayName="xml-doc";C7.aliases=[];function C7(e){e.register(gr),function(t){function n(o,s){t.languages[o]&&t.languages.insertBefore(o,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}k7.displayName="xojo";k7.aliases=[];function k7(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}x7.displayName="xquery";x7.aliases=[];function x7(e){e.register(gr),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],o=0;o0&&a[a.length-1].tagName===n(s.content[0].content[1])&&a.pop():s.content[s.content.length-1].content==="/>"||a.push({tagName:n(s.content[0].content[1]),openedBraces:0}):a.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[o+1]||i[o+1].type!=="punctuation"||i[o+1].content!=="{")&&(!i[o-1]||i[o-1].type!=="plain-text"||i[o-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?a[a.length-1].openedBraces--:s.type!=="comment"&&(u=!0)),(u||typeof s=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var c=n(s);o0&&(typeof i[o-1]=="string"||i[o-1].type==="plain-text")&&(c=n(i[o-1])+c,i.splice(o-1,1),o--),/^\s+$/.test(c)?i[o]=c:i[o]=new t.Token("plain-text",c,null,c)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}I7.displayName="yang";I7.aliases=[];function I7(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}R7.displayName="zig";R7.aliases=[];function R7(e){(function(t){function n(c){return function(){return c}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),u="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+s+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=t.languages.zig)})})(e)}O.register(gr);O.register(xl);O.register(Lt);O.register(f2);O.register(Rr);O.register(q9);O.register(K9);O.register(Y9);O.register(X9);O.register(Z9);O.register(Q9);O.register(J9);O.register(ev);O.register(Sc);O.register(tv);O.register(nv);O.register(rv);O.register(iv);O.register(Qa);O.register(Ou);O.register(u2);O.register(av);O.register(ov);O.register(qp);O.register(Yp);O.register(b2);O.register(sv);O.register(lv);O.register(Du);O.register(uv);O.register(cv);O.register(dv);O.register(pv);O.register(fv);O.register(hv);O.register(gv);O.register(mv);O.register(Zp);O.register(bv);O.register(yv);O.register(Ev);O.register(vv);O.register(_v);O.register(Tv);O.register(Sv);O.register(wv);O.register(Av);O.register(Cv);O.register(kv);O.register(xv);O.register(Iv);O.register(Rv);O.register(Nv);O.register(Ov);O.register(Dv);O.register(Lv);O.register(Mv);O.register(Fv);O.register(Pv);O.register(Bv);O.register(Uv);O.register($v);O.register(zv);O.register(Fu);O.register(Hv);O.register(jv);O.register(Gv);O.register(Vv);O.register(Wv);O.register(qv);O.register(Kv);O.register(Yv);O.register(Xv);O.register(Zv);O.register(c2);O.register(Nr);O.register(Qv);O.register(Jv);O.register(e6);O.register(t6);O.register(n6);O.register(r6);O.register(i6);O.register(a6);O.register(o6);O.register(s6);O.register(Kp);O.register(l6);O.register(u6);O.register(c6);O.register(d6);O.register(p6);O.register(f6);O.register(h6);O.register(g6);O.register(m6);O.register(b6);O.register(y6);O.register(E6);O.register(v6);O.register(_6);O.register(T6);O.register(S6);O.register(w6);O.register(A6);O.register(C6);O.register(k6);O.register(x6);O.register(I6);O.register(d2);O.register(R6);O.register(N6);O.register(O6);O.register(D6);O.register(g2);O.register(S2);O.register(L6);O.register(M6);O.register(F6);O.register(Jp);O.register(P6);O.register(B6);O.register(U6);O.register($6);O.register(z6);O.register(H6);O.register(Tc);O.register(j6);O.register(G6);O.register(V6);O.register(W6);O.register(q6);O.register(K6);O.register(Y6);O.register(X6);O.register(p2);O.register(Z6);O.register(Q6);O.register(Lu);O.register(Mu);O.register(Cc);O.register(J6);O.register(e8);O.register(t8);O.register(n8);O.register(r8);O.register(i8);O.register(a8);O.register(wc);O.register(o8);O.register(s8);O.register(l8);O.register(u8);O.register(c8);O.register(d8);O.register(p8);O.register(f8);O.register(h8);O.register(h2);O.register(g8);O.register(m8);O.register(b8);O.register(y8);O.register(ef);O.register(E8);O.register(v8);O.register(_8);O.register(T8);O.register(S8);O.register(w8);O.register(A8);O.register(C8);O.register(m2);O.register(A2);O.register(k8);O.register(x8);O.register(I8);O.register(R8);O.register(N8);O.register(O8);O.register(D8);O.register(L8);O.register(M8);O.register(F8);O.register(P8);O.register(B8);O.register(U8);O.register($8);O.register(z8);O.register(H8);O.register(j8);O.register(G8);O.register(V8);O.register(y2);O.register(W8);O.register(q8);O.register(K8);O.register(Y8);O.register(X8);O.register(Z8);O.register(Q8);O.register(J8);O.register(e_);O.register(t_);O.register(n_);O.register(r_);O.register(E2);O.register(i_);O.register(a_);O.register(o_);O.register(s_);O.register(l_);O.register(u_);O.register(c_);O.register(d_);O.register(p_);O.register(f_);O.register(h_);O.register(g_);O.register(m_);O.register(b_);O.register(y_);O.register(E_);O.register(v_);O.register(__);O.register(Xp);O.register(T_);O.register(S_);O.register(w_);O.register(A_);O.register(v2);O.register(C_);O.register(k_);O.register(C2);O.register(x_);O.register(I_);O.register(R_);O.register(N_);O.register(O_);O.register(D_);O.register(L_);O.register(M_);O.register(F_);O.register(_2);O.register(P_);O.register(T2);O.register(B_);O.register(U_);O.register($_);O.register(z_);O.register(H_);O.register(j_);O.register(G_);O.register(V_);O.register(k2);O.register(W_);O.register(q_);O.register(K_);O.register(Y_);O.register(X_);O.register(Z_);O.register(Q_);O.register(J_);O.register(w2);O.register(e7);O.register(tf);O.register(t7);O.register(Qp);O.register(n7);O.register(r7);O.register(i7);O.register(a7);O.register(o7);O.register(s7);O.register(l7);O.register(u7);O.register(c7);O.register(d7);O.register(p7);O.register(f7);O.register(h7);O.register(g7);O.register(m7);O.register(b7);O.register(y7);O.register(E7);O.register(v7);O.register(_7);O.register(T7);O.register(S7);O.register(w7);O.register(A7);O.register(C7);O.register(k7);O.register(x7);O.register(I7);O.register(R7);function hy(){hy=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,o){var s=new RegExp(i,a);return t.set(s,o||t.get(i)),Bg(s,n.prototype)}function r(i,a){var o=t.get(a);return Object.keys(o).reduce(function(s,u){return s[u]=i[o[u]],s},Object.create(null))}return hle(n,RegExp),n.prototype.exec=function(i){var a=e.exec.call(this,i);return a&&(a.groups=r(a,this)),a},n.prototype[Symbol.replace]=function(i,a){if(typeof a=="string"){var o=t.get(this);return e[Symbol.replace].call(this,i,a.replace(/\$<([^>]+)>/g,function(u,c){return"$"+o[c]}))}if(typeof a=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(r(u,s)),a.apply(this,u)})}return e[Symbol.replace].call(this,i,a)},hy.apply(this,arguments)}function hle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bg(e,t)}function Bg(e,t){return Bg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Bg(e,t)}function uI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var gle=function(e){return function(t){return t===void 0&&(t={}),function(r){Hi(r,"element",n)};function n(r,i,a){var o,s;if(a&&a.tagName==="pre"&&r.tagName==="code"){var u=(r==null||(o=r.data)==null?void 0:o.meta)||(r==null||(s=r.properties)==null?void 0:s.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[],r.properties.className.push("code-highlight");var c,p,f=function(A){for(var R,k=o4(A.properties.className);!(R=k()).done;){var N=R.value;if(N.slice(0,9)==="language-")return N.slice(9).toLowerCase()}return null}(r);if(f)try{var m;m=f!=null&&f.includes("diff-")?f.split("-")[1]:f,c=e.highlight(R1(r),m),a.properties.className=(a.properties.className||[]).concat("language-"+m)}catch(A){if(!t.ignoreMissing||!/Unknown language/.test(A.message))throw A;c=r}else c=r;c.children=(p=1,function A(R){return R.reduce(function(k,N){if(N.type==="text"){var B=N.value,q=(B.match(/\n/g)||"").length;if(q===0)N.position={start:{line:p,column:1},end:{line:p,column:1}},k.push(N);else for(var P,Q=B.split(` +`),$=o4(Q.entries());!(P=$()).done;){var oe=P.value,fe=oe[0],ce=oe[1];k.push({type:"text",value:fe===Q.length-1?ce:ce+` +`,position:{start:{line:p+fe,column:1},end:{line:p+fe,column:1}}})}return p+=q,k}if(Object.prototype.hasOwnProperty.call(N,"children")){var De=p;return N.children=A(N.children),k.push(N),N.position={start:{line:De,column:1},end:{line:p,column:1}},k}return k.push(N),k},[])})(c.children),c.position=c.children.length>0?{start:{line:c.children[0].position.start.line,column:0},end:{line:c.children[c.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var g,b=function(A){var R=/{([\d,-]+)}/,k=A.split(",").map(function(q){return q.trim()}).join();if(R.test(k)){var N=R.exec(k)[1],B=zse(N);return function(q){return B.includes(q+1)}}return function(){return!1}}(u),y=function(A){var R=hy(/showLineNumbers=([0-9]+)/i,{lines:1});if(R.test(A)){var k=R.exec(A);return Number(k.groups.lines)}return 1}(u),T=function(A){for(var R=new Array(A),k=0;k=R+1});k.children=N.children,!u.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||E.some(function(B){return u.toLowerCase().includes(B)})||(k.properties.line=[(R+y).toString()],k.properties.className.push("line-number")),b(R)&&k.properties.className.push("highlight-line"),(f==="diff"||f!=null&&f.includes("diff-"))&&R1(k).substring(0,1)==="-"?k.properties.className.push("deleted"):(f==="diff"||f!=null&&f.includes("diff-"))&&R1(k).substring(0,1)==="+"&&k.properties.className.push("inserted")},w=o4(T.entries());!(g=w()).done;)v();T.length>0&&R1(T[T.length-1]).trim()===""&&T.pop(),r.children=T}}}},mle=gle(O);const bF="֑-߿יִ-﷽ﹰ-ﻼ",yF="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",ble=new RegExp("^[^"+yF+"]*["+bF+"]"),yle=new RegExp("^[^"+bF+"]*["+yF+"]");function Ele(e){const t=String(e||"");return ble.test(t)?"rtl":yle.test(t)?"ltr":"neutral"}function vle(e,t){const n=e.schema,r=e.language,i=e.direction,a=e.editableOrEditingHost;let o;if(t.type==="element"&&t.properties){const c=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",f=cI(t);c!=null&&(e.language=String(c)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Cl),f==="rtl"?o=f:f==="ltr"||f!=="auto"&&t.tagName==="html"||f!=="auto"&&t.tagName==="input"&&p==="tel"?o="ltr":(f==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?o=s4(R1(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?o=t.properties.value?s4(t.properties.value):"ltr":Hi(t,u)),o&&(e.direction=o)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return s;function s(){e.schema=n,e.language=r,e.direction=i,e.editableOrEditingHost=a}function u(c){if(c.type==="text")return o=s4(c.value),o?iy:void 0;if(c!==t&&c.type==="element"&&(c.tagName==="bdi"||c.tagName==="script"||c.tagName==="style"||c.tagName==="textare"||cI(c)))return $d}}function s4(e){const t=Ele(e);return t==="neutral"?void 0:t}function cI(e){const t=e.type==="element"&&e.properties&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}const _le=l2("operator",{unknown:Rle,invalid:Sle,handlers:{"=":wle,"~=":Ale,"|=":Cle,"^=":kle,"$=":xle,"*=":Ile}});function Tle(e,t,n){const r=e.attrs;let i=-1;for(;++i=pI&&e.charCodeAt(t)<=Ple;)c=c*10+(e.charCodeAt(t)-pI),t++;return t===u?null:c}function s(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?fI.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function hI(e){return $le(Ble(e))}const zle=hI.default||hI,Hle=l2("name",{unknown:fue,invalid:pue,handlers:{any:gy,"any-link":jle,blank:Gle,checked:Vle,dir:Wle,disabled:vF,empty:qle,enabled:Kle,"first-child":Yle,"first-of-type":Xle,has:Zle,lang:Qle,"last-child":Jle,"last-of-type":eue,matches:gy,not:tue,"nth-child":nue,"nth-last-child":rue,"nth-of-type":aue,"nth-last-of-type":iue,"only-child":oue,"only-of-type":sue,optional:lue,"read-only":uue,"read-write":_F,required:TF,root:cue,scope:due}});EF.needsIndex=["any","first-child","first-of-type","last-child","last-of-type","matches","not","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];function EF(e,t,n,r,i){const a=e.pseudos;let o=-1;for(;++o0}function Qle(e,t,n,r,i){return i.language!==""&&i.language!==void 0&&Mle(i.language,Sp(e.value)).length>0}function Jle(e,t,n,r,i){return Io(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function eue(e,t,n,r,i){return Io(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function gy(e,t,n,r,i){const a={...i,found:!1,shallow:!1,one:!0,scopeElements:[t],results:[],rootQuery:N7(e.value)};return O7(a,t),a.results[0]===t}function tue(e,t,n,r,i){return!gy(e,t,n,r,i)}function nue(e,t,n,r,i){const a=x2(e);return Io(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function rue(e,t,n,r,i){const a=x2(e);return Io(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function iue(e,t,n,r,i){const a=x2(e);return Io(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function aue(e,t,n,r,i){const a=x2(e);return Io(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function oue(e,t,n,r,i){return Io(i,e),i.elementCount===1}function sue(e,t,n,r,i){return Io(i,e),i.typeCount===1}function lue(e,t){return!TF(e,t)}function uue(e,t,n,r,i){return!_F(e,t,n,r,i)}function _F(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Vr(t,"readOnly")&&!Vr(t,"disabled"):!!i.editableOrEditingHost}function TF(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Vr(t,"required")}function cue(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function due(e,t,n,r,i){return i.scopeElements.includes(t)}function pue(){throw new Error("Invalid pseudo-selector")}function fue(e){throw e.name?new Error("Unknown pseudo-selector `"+e.name+"`"):new Error("Unexpected pseudo-element or empty pseudo-class")}function SF(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";l4(a,p,c)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.rule.nestingOperator===null?l4(a,"descendant",s):s.rule.nestingOperator==="~"&&l4(a,"generalSibling",s)}return a}function Lh(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:gue}function l4(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function gI(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}var AF={},D7={},L7={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o==="-"||o==="_"}e.isIdentStart=t;function n(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o>="0"&&o<="9"||o==="-"||o==="_"}e.isIdent=n;function r(o){return o>="a"&&o<="f"||o>="A"&&o<="F"||o>="0"&&o<="9"}e.isHex=r;function i(o){for(var s=o.length,u="",c=0;c="A"&&p<="Z"||p>="a"&&p<="z"||c!==0&&p>="0"&&p<="9")u+=p;else{var f=p.charCodeAt(0);if((f&63488)===55296){var m=o.charCodeAt(c++);if((f&64512)!==55296||(m&64512)!==56320)throw Error("UCS-2(decode): illegal sequence");f=((f&1023)<<10)+(m&1023)+65536}u+="\\"+f.toString(16)+" "}c++}return u}e.escapeIdentifier=i;function a(o){for(var s=o.length,u="",c=0,p;c":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},e.strReplacementsRev={"\n":"\\n","\r":"\\r"," ":"\\t","\f":"\\f","\v":"\\v"},e.singleQuoteEscapeChars={n:` `,r:"\r",t:" ",f:"\f","\\":"\\","'":"'"},e.doubleQuotesEscapeChars={n:` -`,r:"\r",t:" ",f:"\f","\\":"\\",'"':'"'}})(V_);Object.defineProperty(G_,"__esModule",{value:!0});var Ia=V_;function xse(e,t,n,r,i,a){var o=e.length,s="";function u(b,T){var v="";for(t++,s=e.charAt(t);t=o)throw Error("Expected symbol but end of file reached.");if(s=e.charAt(t),Ia.identSpecialChars[s])b+=s;else if(Ia.isHex(s)){var T=s;for(t++,s=e.charAt(t);Ia.isHex(s);)T+=s,t++,s=e.charAt(t);s===" "&&(t++,s=e.charAt(t)),b+=String.fromCharCode(parseInt(T,16));continue}else b+=s}else return b;t++,s=e.charAt(t)}return b}function p(){s=e.charAt(t);for(var b=!1;s===" "||s===" "||s===` -`||s==="\r"||s==="\f";)b=!0,t++,s=e.charAt(t);return b}function f(){var b=m();if(t=o||s===","||s===")"));)if(i[s]){var y=s;if(t++,p(),T=E(),!T)throw Error('Rule expected after "'+y+'".');T.nestingOperator=y}else T=E(),T&&(T.nestingOperator=null);return b}function E(){for(var b=null;t=o)throw Error('Expected "=" but end of file reached.');if(s!=="=")throw Error('Expected "=" but "'+s+'" found.');T.operator=v+"=",t++,p();var y="";if(T.valueType="string",s==='"')y=u('"',Ia.doubleQuotesEscapeChars);else if(s==="'")y=u("'",Ia.singleQuoteEscapeChars);else if(a&&s==="$")t++,y=c(),T.valueType="substitute";else{for(;t=o)throw Error('Expected "]" but end of file reached.');if(s!=="]")throw Error('Expected "]" but "'+s+'" found.');t++,T.value=y}b=b||{},(b.attrs=b.attrs||[]).push(T)}else if(s===":"){t++;var w=c(),A={name:w};if(s==="("){t++;var D="";if(p(),n[w]==="selector")A.valueType="selector",D=m();else{if(A.valueType=n[w]||"string",s==='"')D=u('"',Ia.doubleQuotesEscapeChars);else if(s==="'")D=u("'",Ia.singleQuoteEscapeChars);else if(a&&s==="$")t++,D=c(),A.valueType="substitute";else{for(;t=o)throw Error('Expected ")" but end of file reached.');if(s!==")")throw Error('Expected ")" but "'+s+'" found.');t++,A.value=D}b=b||{},(b.pseudos=b.pseudos||[]).push(A)}else break;return b}return f()}G_.parseCssSelector=xse;var W_={};Object.defineProperty(W_,"__esModule",{value:!0});var ki=V_;function mh(e){var t="";switch(e.type){case"ruleSet":for(var n=e.rule,r=[];n;)n.nestingOperator&&r.push(n.nestingOperator),r.push(mh(n)),n=n.rule;t=r.join(" ");break;case"selectors":t=e.selectors.map(mh).join(", ");break;case"rule":e.tagName&&(e.tagName==="*"?t="*":t=ki.escapeIdentifier(e.tagName)),e.id&&(t+="#"+ki.escapeIdentifier(e.id)),e.classNames&&(t+=e.classNames.map(function(i){return"."+ki.escapeIdentifier(i)}).join("")),e.attrs&&(t+=e.attrs.map(function(i){return"operator"in i?i.valueType==="substitute"?"["+ki.escapeIdentifier(i.name)+i.operator+"$"+i.value+"]":"["+ki.escapeIdentifier(i.name)+i.operator+ki.escapeStr(i.value)+"]":"["+ki.escapeIdentifier(i.name)+"]"}).join("")),e.pseudos&&(t+=e.pseudos.map(function(i){return i.valueType?i.valueType==="selector"?":"+ki.escapeIdentifier(i.name)+"("+mh(i.value)+")":i.valueType==="substitute"?":"+ki.escapeIdentifier(i.name)+"($"+i.value+")":i.valueType==="numeric"?":"+ki.escapeIdentifier(i.name)+"("+i.value+")":":"+ki.escapeIdentifier(i.name)+"("+ki.escapeIdentifier(i.value)+")":":"+ki.escapeIdentifier(i.name)}).join(""));break;default:throw Error('Unknown entity type: "'+e.type+'".')}return t}W_.renderEntity=mh;Object.defineProperty(cM,"__esModule",{value:!0});var kse=G_,Ise=W_,Rse=function(){function e(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return e.prototype.registerSelectorPseudos=function(){for(var t=[],n=0;n","+","~");function Ose(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return rm.parse(e)}function Dse(e,t,n){const r=Lse(e,t,n);return j_(r,t||void 0),r.results}function Lse(e,t,n){return{rootQuery:H_(Ose(e)),results:[],scopeElements:t?t.type==="root"?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:n==="svg"?yl:Tu,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}const dM=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=dM(n.children))}),t),Mse=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=Dse(t,r);i&&i.length>0&&Ui(r,i,(a,o,s)=>{n(a,o,s)});return}Ui(r,(i,a,o)=>{n(i,a,o)})}}},Fse=Mse;var Pse={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Bse(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}function Use(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function pM(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?pM(t.parentElement):null}function $se(e){var t=n=>{var r=pM(n.target);r&&(r.classList.add("active"),Use(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};C.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var zse=function(t){return n=>{Ui(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=tn({},r.properties,{"data-meta":String(r.data.meta)}))})}},Hse=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"];const jse=ut.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:o=!1,skipHtml:s=!0,onScroll:u,onMouseOver:c,pluginsFilter:p,rehypeRewrite:f,wrapperElement:m={},warpperElement:g={}}=e,E=E1(e,Hse),b=ut.useRef(null);C.useImperativeHandle(t,()=>tn({},e,{mdp:b}),[b,e]);var T=(n||"")+" "+(r||"");$se(b);var v=(k,R,B)=>{if(k.type==="element"&&B&&B.type==="root"&&/h(1|2|3|4|5|6)/.test(k.tagName)){var W=k.children&&k.children[0];W&&W.properties&&W.properties.ariaHidden==="true"&&(W.properties=tn({class:"anchor"},W.properties),W.children=[Pse])}if(k.type==="element"&&k.tagName==="pre"&&!o){var P=dM(k.children);k.children.push(Bse(P))}f&&f(k,R,B)},y=[zse,[Aoe,{ignoreMissing:!0}],Fae,$ae,Wae,[Fse,{rewrite:v}],[Gae,{properties:"attr"}],...E.rehypePlugins||[]],w={allowElement:(k,R,B)=>E.allowElement?E.allowElement(k,R,B):/^[A-Za-z0-9]+$/.test(k.tagName)};s&&y.push(kae);var A=[...E.remarkPlugins||[],Kte],D=tn({},g,m);return I.jsx("div",tn({ref:b,onScroll:u,onMouseOver:c},D,{className:T,style:a,children:I.jsx(HE,tn({},w,E,{skipHtml:s,rehypePlugins:p?p("rehype",y):y,remarkPlugins:p?p("remark",A):A,children:i||""}))}))}),Gse=He(jse)` +`,r:"\r",t:" ",f:"\f","\\":"\\",'"':'"'}})(L7);Object.defineProperty(D7,"__esModule",{value:!0});var Oa=L7;function yue(e,t,n,r,i,a){var o=e.length,s="";function u(y,T){var E="";for(t++,s=e.charAt(t);t=o)throw Error("Expected symbol but end of file reached.");if(s=e.charAt(t),Oa.identSpecialChars[s])y+=s;else if(Oa.isHex(s)){var T=s;for(t++,s=e.charAt(t);Oa.isHex(s);)T+=s,t++,s=e.charAt(t);s===" "&&(t++,s=e.charAt(t)),y+=String.fromCharCode(parseInt(T,16));continue}else y+=s}else return y;t++,s=e.charAt(t)}return y}function p(){s=e.charAt(t);for(var y=!1;s===" "||s===" "||s===` +`||s==="\r"||s==="\f";)y=!0,t++,s=e.charAt(t);return y}function f(){var y=m();if(t=o||s===","||s===")"));)if(i[s]){var v=s;if(t++,p(),T=b(),!T)throw Error('Rule expected after "'+v+'".');T.nestingOperator=v}else T=b(),T&&(T.nestingOperator=null);return y}function b(){for(var y=null;t=o)throw Error('Expected "=" but end of file reached.');if(s!=="=")throw Error('Expected "=" but "'+s+'" found.');T.operator=E+"=",t++,p();var v="";if(T.valueType="string",s==='"')v=u('"',Oa.doubleQuotesEscapeChars);else if(s==="'")v=u("'",Oa.singleQuoteEscapeChars);else if(a&&s==="$")t++,v=c(),T.valueType="substitute";else{for(;t=o)throw Error('Expected "]" but end of file reached.');if(s!=="]")throw Error('Expected "]" but "'+s+'" found.');t++,T.value=v}y=y||{},(y.attrs=y.attrs||[]).push(T)}else if(s===":"){t++;var w=c(),A={name:w};if(s==="("){t++;var R="";if(p(),n[w]==="selector")A.valueType="selector",R=m();else{if(A.valueType=n[w]||"string",s==='"')R=u('"',Oa.doubleQuotesEscapeChars);else if(s==="'")R=u("'",Oa.singleQuoteEscapeChars);else if(a&&s==="$")t++,R=c(),A.valueType="substitute";else{for(;t=o)throw Error('Expected ")" but end of file reached.');if(s!==")")throw Error('Expected ")" but "'+s+'" found.');t++,A.value=R}y=y||{},(y.pseudos=y.pseudos||[]).push(A)}else break;return y}return f()}D7.parseCssSelector=yue;var M7={};Object.defineProperty(M7,"__esModule",{value:!0});var Ri=L7;function Mh(e){var t="";switch(e.type){case"ruleSet":for(var n=e.rule,r=[];n;)n.nestingOperator&&r.push(n.nestingOperator),r.push(Mh(n)),n=n.rule;t=r.join(" ");break;case"selectors":t=e.selectors.map(Mh).join(", ");break;case"rule":e.tagName&&(e.tagName==="*"?t="*":t=Ri.escapeIdentifier(e.tagName)),e.id&&(t+="#"+Ri.escapeIdentifier(e.id)),e.classNames&&(t+=e.classNames.map(function(i){return"."+Ri.escapeIdentifier(i)}).join("")),e.attrs&&(t+=e.attrs.map(function(i){return"operator"in i?i.valueType==="substitute"?"["+Ri.escapeIdentifier(i.name)+i.operator+"$"+i.value+"]":"["+Ri.escapeIdentifier(i.name)+i.operator+Ri.escapeStr(i.value)+"]":"["+Ri.escapeIdentifier(i.name)+"]"}).join("")),e.pseudos&&(t+=e.pseudos.map(function(i){return i.valueType?i.valueType==="selector"?":"+Ri.escapeIdentifier(i.name)+"("+Mh(i.value)+")":i.valueType==="substitute"?":"+Ri.escapeIdentifier(i.name)+"($"+i.value+")":i.valueType==="numeric"?":"+Ri.escapeIdentifier(i.name)+"("+i.value+")":":"+Ri.escapeIdentifier(i.name)+"("+Ri.escapeIdentifier(i.value)+")":":"+Ri.escapeIdentifier(i.name)}).join(""));break;default:throw Error('Unknown entity type: "'+e.type+'".')}return t}M7.renderEntity=Mh;Object.defineProperty(AF,"__esModule",{value:!0});var Eue=D7,vue=M7,_ue=function(){function e(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return e.prototype.registerSelectorPseudos=function(){for(var t=[],n=0;n","+","~");function Sue(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return I2.parse(e)}function wue(e,t,n){const r=Aue(e,t,n);return O7(r,t||void 0),r.results}function Aue(e,t,n){return{rootQuery:N7(Sue(e)),results:[],scopeElements:t?t.type==="root"?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:n==="svg"?Cl:Iu,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}const CF=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=CF(n.children))}),t),Cue=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=wue(t,r);i&&i.length>0&&Hi(r,i,(a,o,s)=>{n(a,o,s)});return}Hi(r,(i,a,o)=>{n(i,a,o)})}}},kue=Cue;var xue={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Iue(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}function Rue(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function kF(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?kF(t.parentElement):null}function Nue(e){var t=n=>{var r=kF(n.target);r&&(r.classList.add("active"),Rue(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};C.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var Oue=function(t){return n=>{Hi(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=nn({},r.properties,{"data-meta":String(r.data.meta)}))})}},Due=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"];const Lue=ut.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:o=!1,skipHtml:s=!0,onScroll:u,onMouseOver:c,pluginsFilter:p,rehypeRewrite:f,wrapperElement:m={},warpperElement:g={}}=e,b=C1(e,Due),y=ut.useRef(null);C.useImperativeHandle(t,()=>nn({},e,{mdp:y}),[y,e]);var T=(n||"")+" "+(r||"");Nue(y);var E=(k,N,B)=>{if(k.type==="element"&&B&&B.type==="root"&&/h(1|2|3|4|5|6)/.test(k.tagName)){var q=k.children&&k.children[0];q&&q.properties&&q.properties.ariaHidden==="true"&&(q.properties=nn({class:"anchor"},q.properties),q.children=[xue])}if(k.type==="element"&&k.tagName==="pre"&&!o){var P=CF(k.children);k.children.push(Iue(P))}f&&f(k,N,B)},v=[Oue,[mle,{ignoreMissing:!0}],kse,Nse,Pse,[kue,{rewrite:E}],[Mse,{properties:"attr"}],...b.rehypePlugins||[]],w={allowElement:(k,N,B)=>b.allowElement?b.allowElement(k,N,B):/^[A-Za-z0-9]+$/.test(k.tagName)};s&&v.push(Ese);var A=[...b.remarkPlugins||[],Ure],R=nn({},g,m);return I.jsx("div",nn({ref:y,onScroll:u,onMouseOver:c},R,{className:T,style:a,children:I.jsx(N9,nn({},w,b,{skipHtml:s,rehypePlugins:p?p("rehype",v):v,remarkPlugins:p?p("remark",A):A,children:i||""}))}))}),Mue=Ge(Lue)` pre { - background-color: ${e=>e.light?Kt:Lt}; - border-radius: ${wt}; - /* border: 0.5px solid ${vt}; */ + background-color: ${e=>e.light?Ht:Vt}; + border-radius: ${It}; + /* border: 0.5px solid ${Et}; */ max-width: calc(100vw - 24px); } @@ -290,13 +290,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho code { color: #f78383; word-wrap: break-word; - border-radius: ${wt}; - background-color: ${Lt}; + border-radius: ${It}; + background-color: ${Vt}; } pre > code { - background-color: ${e=>e.light?Kt:Lt}; - color: ${Ht}; + background-color: ${e=>e.light?Ht:Vt}; + color: ${Yt}; padding: 12px; ${e=>{if(e.maxHeight)return` @@ -305,52 +305,68 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `}} } - background-color: ${e=>e.light?"transparent":Kt}; + background-color: ${e=>e.light?"transparent":Ht}; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; - font-size: ${e=>e.fontSize||nr()}px; + font-size: ${e=>e.fontSize||pr()}px; padding: 8px; - color: ${Ht}; -`;function pg(e){return I.jsx(Gse,{components:{a:({node:t,...n})=>I.jsx("a",{...n,target:"_blank",children:n.children})},className:e.className,maxHeight:e.maxHeight,fontSize:nr(),source:e.source||"",wrapperElement:{"data-color-mode":"dark"}})}const Vse=He.div``,Wse=He.div` + color: ${Yt}; +`;function Ug(e){return I.jsx(Mue,{components:{a:({node:t,...n})=>I.jsx("a",{...n,target:"_blank",children:n.children})},className:e.className,maxHeight:e.maxHeight,fontSize:pr(),source:e.source||"",wrapperElement:{"data-color-mode":"dark"}})}const Fue=Ge.div``,Pue=Ge.div` display: flex; gap: 2px; align-items: center; - background-color: ${Kt}; - box-shadow: 1px 1px 10px ${Kt}; - border-radius: ${wt}; + background-color: ${Ht}; + box-shadow: 1px 1px 10px ${Ht}; + border-radius: ${It}; z-index: 100; position: absolute; right: 8px; top: 16px; height: 0; -`,qse=He.div` +`,Bue=Ge.div` padding: 2px; padding-right: 0px; - background-color: ${e=>e.isUserInput?Lt:Kt}; - font-size: ${e=>e.fontSize||nr()}px; - border-radius: ${wt}; + background-color: ${e=>e.isUserInput?Vt:Ht}; + font-size: ${e=>e.fontSize||pr()}px; + border-radius: ${It}; overflow: hidden; -`;function Kse(e){var o,s;const[t,n]=C.useState(!1),r=C.useRef(null),i=C.useRef(null),a=e.historyNode.step.name==="UserInputStep";return C.useEffect(()=>{i!=null&&i.current&&i.current.focus()},[i]),C.useEffect(()=>{var u;t&&((u=r.current)==null||u.focus())},[t]),I.jsx(Vse,{stepDepth:e.historyNode.depth||0,inFuture:e.inFuture,onMouseEnter:()=>{n(!0)},onMouseLeave:()=>{n(!1)},hidden:e.historyNode.step.hide,children:I.jsxs("div",{children:[t&&(((o=e.historyNode.observation)==null?void 0:o.error)||e.noUserInputParent)&&I.jsxs(Wse,{children:[((s=e.historyNode.observation)==null?void 0:s.error)&&I.jsx(vi,{text:"Retry",onClick:u=>{u.stopPropagation(),e.onRetry()},children:I.jsx(aY,{width:"1.4em",height:"1.4em",onClick:e.onRetry})}),e.noUserInputParent&&I.jsx(vi,{text:"Delete",onClick:u=>{u.stopPropagation(),e.onDelete()},children:I.jsx(T2,{width:"1.4em",height:"1.4em",onClick:e.onRetry})})]}),I.jsx(qse,{hidden:!e.open,isUserInput:a,fontSize:nr(),children:I.jsx(pg,{source:e.historyNode.step.description})})]})})}var bn={};/** @license React v17.0.2 +`;function Uue(e){const[t,n]=C.useState(!1),r=C.useRef(null),i=C.useRef(null),a=e.step.name==="UserInputStep";return C.useEffect(()=>{i!=null&&i.current&&i.current.focus()},[i]),C.useEffect(()=>{var o;t&&((o=r.current)==null||o.focus())},[t]),I.jsx(Fue,{stepDepth:e.step.depth||0,onMouseEnter:()=>{n(!0)},onMouseLeave:()=>{n(!1)},hidden:e.step.hide,children:I.jsxs("div",{children:[t&&(e.step.error||e.noUserInputParent)&&I.jsxs(Pue,{children:[e.step.error&&I.jsx(zi,{text:"Retry",onClick:o=>{o.stopPropagation(),e.onRetry()},children:I.jsx(QX,{width:"1.4em",height:"1.4em",onClick:e.onRetry})}),e.noUserInputParent&&I.jsx(zi,{text:"Delete",onClick:o=>{o.stopPropagation(),e.onDelete()},children:I.jsx(w9,{width:"1.4em",height:"1.4em",onClick:e.onRetry})})]}),I.jsx(Bue,{hidden:!e.open,isUserInput:a,fontSize:pr(),children:I.jsx(Ug,{source:e.step.description})})]})})}var yn={};/** @license React v17.0.2 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var im=60103,am=60106,zp=60107,Hp=60108,jp=60114,Gp=60109,Vp=60110,Wp=60112,qp=60113,q_=60120,Kp=60115,Yp=60116,fM=60121,hM=60122,gM=60117,mM=60129,bM=60131;if(typeof Symbol=="function"&&Symbol.for){var mr=Symbol.for;im=mr("react.element"),am=mr("react.portal"),zp=mr("react.fragment"),Hp=mr("react.strict_mode"),jp=mr("react.profiler"),Gp=mr("react.provider"),Vp=mr("react.context"),Wp=mr("react.forward_ref"),qp=mr("react.suspense"),q_=mr("react.suspense_list"),Kp=mr("react.memo"),Yp=mr("react.lazy"),fM=mr("react.block"),hM=mr("react.server.block"),gM=mr("react.fundamental"),mM=mr("react.debug_trace_mode"),bM=mr("react.legacy_hidden")}function Ka(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case im:switch(e=e.type,e){case zp:case jp:case Hp:case qp:case q_:return e;default:switch(e=e&&e.$$typeof,e){case Vp:case Wp:case Yp:case Kp:case Gp:return e;default:return t}}case am:return t}}}var Yse=Gp,Xse=im,Zse=Wp,Qse=zp,Jse=Yp,ele=Kp,tle=am,nle=jp,rle=Hp,ile=qp;bn.ContextConsumer=Vp;bn.ContextProvider=Yse;bn.Element=Xse;bn.ForwardRef=Zse;bn.Fragment=Qse;bn.Lazy=Jse;bn.Memo=ele;bn.Portal=tle;bn.Profiler=nle;bn.StrictMode=rle;bn.Suspense=ile;bn.isAsyncMode=function(){return!1};bn.isConcurrentMode=function(){return!1};bn.isContextConsumer=function(e){return Ka(e)===Vp};bn.isContextProvider=function(e){return Ka(e)===Gp};bn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===im};bn.isForwardRef=function(e){return Ka(e)===Wp};bn.isFragment=function(e){return Ka(e)===zp};bn.isLazy=function(e){return Ka(e)===Yp};bn.isMemo=function(e){return Ka(e)===Kp};bn.isPortal=function(e){return Ka(e)===am};bn.isProfiler=function(e){return Ka(e)===jp};bn.isStrictMode=function(e){return Ka(e)===Hp};bn.isSuspense=function(e){return Ka(e)===qp};bn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zp||e===jp||e===mM||e===Hp||e===qp||e===q_||e===bM||typeof e=="object"&&e!==null&&(e.$$typeof===Yp||e.$$typeof===Kp||e.$$typeof===Gp||e.$$typeof===Vp||e.$$typeof===Wp||e.$$typeof===gM||e.$$typeof===fM||e[0]===hM)};bn.typeOf=Ka;let bk=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ek=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",F3=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,ale=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var ole=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:he=>he!==f;if(!bk(e))throw new TypeError("Invalid target");let E=document.scrollingElement||document.documentElement,b=[],T=e;for(;bk(T)&&g(T);){if(T=ale(T),T===E){b.push(T);break}T!=null&&T===document.body&&F3(T)&&!F3(document.documentElement)||T!=null&&F3(T,m)&&b.push(T)}let v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:D,width:k,top:R,right:B,bottom:W,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?R:c==="end"?W:R+D/2,z=p==="center"?P+k/2:p==="end"?B:P,le=[];for(let he=0;he=0&&P>=0&&W<=y&&B<=v&&R>=V&&W<=N&&P>=me&&B<=ce)return le;let oe=getComputedStyle(de),O=parseInt(oe.borderLeftWidth,10),re=parseInt(oe.borderTopWidth,10),Te=parseInt(oe.borderRightWidth,10),K=parseInt(oe.borderBottomWidth,10),xe=0,ne=0,Le="offsetWidth"in de?de.offsetWidth-de.clientWidth-O-Te:0,Re="offsetHeight"in de?de.offsetHeight-de.clientHeight-re-K:0,Xe="offsetWidth"in de?de.offsetWidth===0?0:Z/de.offsetWidth:0,Ve="offsetHeight"in de?de.offsetHeight===0?0:fe/de.offsetHeight:0;if(E===de)xe=c==="start"?Q:c==="end"?Q-y:c==="nearest"?R0(A,A+y,y,re,K,A+Q,A+Q+D,D):Q-y/2,ne=p==="start"?z:p==="center"?z-v/2:p==="end"?z-v:R0(w,w+v,v,O,Te,w+z,w+z+k,k),xe=Math.max(0,xe+A),ne=Math.max(0,ne+w);else{xe=c==="start"?Q-V-re:c==="end"?Q-N+K+Re:c==="nearest"?R0(V,N,fe,re,K+Re,Q,Q+D,D):Q-(V+fe/2)+Re/2,ne=p==="start"?z-me-O:p==="center"?z-(me+Z/2)+Le/2:p==="end"?z-ce+Te+Le:R0(me,ce,Z,O,Te+Le,z,z+k,k);let{scrollLeft:dt,scrollTop:ot}=de;xe=Math.max(0,Math.min(ot+xe/Ve,de.scrollHeight-fe/Ve+Re)),ne=Math.max(0,Math.min(dt+ne/Xe,de.scrollWidth-Z/Xe+Le)),Q+=ot-xe,z+=dt-ne}le.push({el:de,top:xe,left:ne})}return le},fg=function(){return fg=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function O0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=cp(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function cp(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?cp(1,0,n,r,!1):cp(-1,n-1,n,r,!1):-1}function yk(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(vk(i,e,n)||r&&vk(i,n.document.activeElement,n))})}var ple=vM(function(e){_M(e).textContent=""},500);function fle(e,t){var n=_M(t);e&&(n.textContent=e,ple(t))}function _M(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var hle=["isInitialMount","highlightedIndex","items","environment"],TM={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function gle(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){mle(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(tn({type:i},a))}function mle(e,t,n,r){var i=t.props,a=t.type,o="on"+K_(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](tn({type:a},r))}function ble(e,t){return t.changes}function Ele(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var vle=vM(function(e,t){fle(e(),t)},200),yle=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function _le(e){var t=e.id,n=t===void 0?"downshift-"+ule():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function Tle(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function Sle(e){return e?String(e):""}function K_(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function SM(e){var t=C.useRef(e);return t.current=e,t}function wle(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=Pb(m,g.props);var E=e(m,g),b=g.props.stateReducer(m,tn({},g,{changes:E}));return b},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=SM(n),p=C.useCallback(function(m){return u(tn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&gle(f,Pb(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Ld={itemToString:Sle,stateReducer:ble,getA11ySelectionMessage:Ele,scrollIntoView:lle,environment:typeof window>"u"?{}:window};function co(e,t,n){n===void 0&&(n=TM);var r=e["default"+K_(t)];return r!==void 0?r:n[t]}function D0(e,t,n){n===void 0&&(n=TM);var r=e[t];if(r!==void 0)return r;var i=e["initial"+K_(t)];return i!==void 0?i:co(e,t,n)}function Ale(e){var t=D0(e,"selectedItem"),n=D0(e,"isOpen"),r=D0(e,"highlightedIndex"),i=D0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Md(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function Cle(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!yk(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!yk(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var xle=function(){return EM};function _k(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=E1(n,hle);C.useEffect(function(){r||vle(function(){return e(tn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function kle(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return yle(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var Ile=EM;function Tk(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return tn({isOpen:!1,highlightedIndex:-1},i&&tn({selectedItem:e.items[t],isOpen:co(e,"isOpen"),highlightedIndex:co(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Rle(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Md(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Md(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:co(i,"highlightedIndex"),isOpen:co(i,"isOpen"),selectedItem:co(i,"selectedItem"),inputValue:co(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return tn({},e,a)}Ee.array.isRequired,Ee.func,Ee.func,Ee.func,Ee.number,Ee.number,Ee.number,Ee.bool,Ee.bool,Ee.bool,Ee.any,Ee.any,Ee.any,Ee.string,Ee.string,Ee.string,Ee.func,Ee.string,Ee.func,Ee.func,Ee.func,Ee.func,Ee.func,Ee.shape({addEventListener:Ee.func,removeEventListener:Ee.func,document:Ee.shape({getElementById:Ee.func,activeElement:Ee.any,body:Ee.any})});function Nle(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}fg(fg({},Ld),{getA11yStatusMessage:Nle});var Y_=0,X_=1,Z_=2,Q_=3,J_=4,e7=5,t7=6,n7=7,r7=8,hg=9,i7=10,wM=11,AM=12,a7=13,CM=14,xM=15,kM=16,IM=17,RM=18,o7=19,NM=20,OM=21,s7=22,DM=Object.freeze({__proto__:null,InputKeyDownArrowDown:Y_,InputKeyDownArrowUp:X_,InputKeyDownEscape:Z_,InputKeyDownHome:Q_,InputKeyDownEnd:J_,InputKeyDownPageUp:e7,InputKeyDownPageDown:t7,InputKeyDownEnter:n7,InputChange:r7,InputBlur:hg,InputFocus:i7,MenuMouseLeave:wM,ItemMouseMove:AM,ItemClick:a7,ToggleButtonClick:CM,FunctionToggleMenu:xM,FunctionOpenMenu:kM,FunctionCloseMenu:IM,FunctionSetHighlightedIndex:RM,FunctionSelectItem:o7,FunctionSetInputValue:NM,FunctionReset:OM,ControlledPropUpdatedSelectedItem:s7});function Ole(e){var t=Ale(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),tn({},t,{inputValue:r})}Ee.array.isRequired,Ee.func,Ee.func,Ee.func,Ee.func,Ee.number,Ee.number,Ee.number,Ee.bool,Ee.bool,Ee.bool,Ee.any,Ee.any,Ee.any,Ee.string,Ee.string,Ee.string,Ee.string,Ee.string,Ee.string,Ee.func,Ee.string,Ee.string,Ee.func,Ee.func,Ee.func,Ee.func,Ee.func,Ee.func,Ee.shape({addEventListener:Ee.func,removeEventListener:Ee.func,document:Ee.shape({getElementById:Ee.func,activeElement:Ee.any,body:Ee.any})});function Dle(e,t,n){var r=C.useRef(),i=wle(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){yM(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:s7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[Pb(a,n),o]}var Lle=tn({},Ld,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:cle});function Mle(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case a7:o={isOpen:co(i,"isOpen"),highlightedIndex:co(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case Y_:e.isOpen?o={highlightedIndex:O0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Md(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case X_:e.isOpen?a?o=Tk(i,e.highlightedIndex):o={highlightedIndex:O0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Md(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case n7:o=Tk(i,e.highlightedIndex);break;case Z_:o=tn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case e7:o={highlightedIndex:O0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case t7:o={highlightedIndex:O0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case Q_:o={highlightedIndex:cp(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case J_:o={highlightedIndex:cp(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case hg:o=tn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case r7:o={isOpen:!0,highlightedIndex:co(i,"highlightedIndex"),inputValue:t.inputValue};break;case i7:o={isOpen:!0,highlightedIndex:Md(i,e,0)};break;case o7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case s7:o={inputValue:t.inputValue};break;default:return Rle(e,t,DM)}return tn({},e,o)}var Fle=["onMouseLeave","refKey","ref"],Ple=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],Ble=["onClick","onPress","refKey","ref"],Ule=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];LM.stateChangeTypes=DM;function LM(e){e===void 0&&(e={});var t=tn({},Lle,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=Ole(t),f=Dle(Mle,p,t),m=f[0],g=f[1],E=m.isOpen,b=m.highlightedIndex,T=m.selectedItem,v=m.inputValue,y=C.useRef(null),w=C.useRef({}),A=C.useRef(null),D=C.useRef(null),k=C.useRef(!0),R=_le(t),B=C.useRef(),W=SM({state:m,props:t}),P=C.useCallback(function(xe){return w.current[R.getItemId(xe)]},[R]);_k(s,[E,b,v,i],tn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),_k(u,[T],tn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=kle({menuElement:y.current,highlightedIndex:b,isOpen:E,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});Ile({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var xe=n||r||E;xe&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var z=Cle(E,[A,y,D],o,function(){g({type:hg,selectItem:!1})}),le=xle();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var xe;if(!E)w.current={};else if(((xe=o.document)==null?void 0:xe.activeElement)!==A.current){var ne;A==null||(ne=A.current)==null||ne.focus()}},[E,o]);var he=C.useMemo(function(){return{ArrowDown:function(ne){ne.preventDefault(),g({type:Y_,altKey:ne.altKey,getItemNodeFromIndex:P})},ArrowUp:function(ne){ne.preventDefault(),g({type:X_,altKey:ne.altKey,getItemNodeFromIndex:P})},Home:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:Q_,getItemNodeFromIndex:P}))},End:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:J_,getItemNodeFromIndex:P}))},Escape:function(ne){var Le=W.current.state;(Le.isOpen||Le.inputValue||Le.selectedItem||Le.highlightedIndex>-1)&&(ne.preventDefault(),g({type:Z_}))},Enter:function(ne){var Le=W.current.state;!Le.isOpen||ne.which===229||(ne.preventDefault(),g({type:n7,getItemNodeFromIndex:P}))},PageUp:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:e7,getItemNodeFromIndex:P}))},PageDown:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:t7,getItemNodeFromIndex:P}))}}},[g,W,P]),de=C.useCallback(function(xe){return tn({id:R.labelId,htmlFor:R.inputId},xe)},[R]),fe=C.useCallback(function(xe,ne){var Le,Re=xe===void 0?{}:xe,Xe=Re.onMouseLeave,Ve=Re.refKey,dt=Ve===void 0?"ref":Ve,ot=Re.ref,Ge=E1(Re,Fle),pt=ne===void 0?{}:ne;return pt.suppressRefError,tn((Le={},Le[dt]=N0(ot,function(U){y.current=U}),Le.id=R.menuId,Le.role="listbox",Le["aria-labelledby"]=Ge&&Ge["aria-label"]?void 0:""+R.labelId,Le.onMouseLeave=Uo(Xe,function(){g({type:wM})}),Le),Ge)},[g,le,R]),Z=C.useCallback(function(xe){var ne,Le,Re=xe===void 0?{}:xe,Xe=Re.item,Ve=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,Ge=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,ie=Re.onClick;Re.onPress;var pe=Re.disabled,ke=E1(Re,Ple),ve=W.current,Se=ve.props,Me=ve.state,ze=Tle(Xe,Ve,Se.items,"Pass either item or index to getItemProps!"),Ke=ze[1],jt="onClick",ue=ie,ye=function(){Ke!==Me.highlightedIndex&&(Q.current=!1,g({type:AM,index:Ke,disabled:pe}))},We=function(){g({type:a7,index:Ke})},at=function(Y){return Y.preventDefault()};return tn((ne={},ne[ot]=N0(Ge,function(Qe){Qe&&(w.current[R.getItemId(Ke)]=Qe)}),ne.disabled=pe,ne.role="option",ne["aria-selected"]=""+(Ke===Me.highlightedIndex),ne.id=R.getItemId(Ke),ne),!pe&&(Le={},Le[jt]=Uo(ue,We),Le),{onMouseMove:Uo(pt,ye),onMouseDown:Uo(U,at)},ke)},[g,W,Q,R]),V=C.useCallback(function(xe){var ne,Le=xe===void 0?{}:xe,Re=Le.onClick;Le.onPress;var Xe=Le.refKey,Ve=Xe===void 0?"ref":Xe,dt=Le.ref,ot=E1(Le,Ble),Ge=W.current.state,pt=function(){g({type:CM})};return tn((ne={},ne[Ve]=N0(dt,function(U){D.current=U}),ne["aria-controls"]=R.menuId,ne["aria-expanded"]=Ge.isOpen,ne.id=R.toggleButtonId,ne.tabIndex=-1,ne),!ot.disabled&&tn({},{onClick:Uo(Re,pt)}),ot)},[g,W,R]),ce=C.useCallback(function(xe,ne){var Le,Re=xe===void 0?{}:xe,Xe=Re.onKeyDown,Ve=Re.onChange,dt=Re.onInput,ot=Re.onFocus,Ge=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,ie=Re.ref,pe=E1(Re,Ule),ke=ne===void 0?{}:ne;ke.suppressRefError;var ve=W.current.state,Se=function(at){var Qe=dle(at);Qe&&he[Qe]&&he[Qe](at)},Me=function(at){g({type:r7,inputValue:at.target.value})},ze=function(at){if(ve.isOpen&&!z.current.isMouseDown){var Qe=at.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:hg,selectItem:!Qe})}},Ke=function(){ve.isOpen||g({type:i7})},jt="onChange",ue={};if(!pe.disabled){var ye;ue=(ye={},ye[jt]=Uo(Ve,dt,Me),ye.onKeyDown=Uo(Xe,Se),ye.onBlur=Uo(Ge,ze),ye.onFocus=Uo(ot,Ke),ye)}return tn((Le={},Le[U]=N0(ie,function(We){A.current=We}),Le["aria-activedescendant"]=ve.isOpen&&ve.highlightedIndex>-1?R.getItemId(ve.highlightedIndex):"",Le["aria-autocomplete"]="list",Le["aria-controls"]=R.menuId,Le["aria-expanded"]=ve.isOpen,Le["aria-labelledby"]=pe&&pe["aria-label"]?void 0:""+R.labelId,Le.autoComplete="off",Le.id=R.inputId,Le.role="combobox",Le.value=ve.inputValue,Le),ue,pe)},[le,W,R,he,g,z,o]),N=C.useCallback(function(){g({type:xM})},[g]),me=C.useCallback(function(){g({type:IM})},[g]),oe=C.useCallback(function(){g({type:kM})},[g]),O=C.useCallback(function(xe){g({type:RM,highlightedIndex:xe})},[g]),re=C.useCallback(function(xe){g({type:o7,selectedItem:xe})},[g]),Te=C.useCallback(function(xe){g({type:NM,inputValue:xe})},[g]),K=C.useCallback(function(){g({type:OM})},[g]);return{getItemProps:Z,getLabelProps:de,getMenuProps:fe,getInputProps:ce,getToggleButtonProps:V,toggleMenu:N,openMenu:oe,closeMenu:me,setHighlightedIndex:O,setInputValue:Te,selectItem:re,reset:K,highlightedIndex:b,isOpen:E,selectedItem:T,inputValue:v}}function $le(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}Ee.array,Ee.array,Ee.array,Ee.func,Ee.func,Ee.func,Ee.number,Ee.number,Ee.number,Ee.func,Ee.func,Ee.string,Ee.string,Ee.shape({addEventListener:Ee.func,removeEventListener:Ee.func,document:Ee.shape({getElementById:Ee.func,activeElement:Ee.any,body:Ee.any})});Ld.itemToString,Ld.stateReducer,Ld.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:MM,setPrototypeOf:Sk,isFrozen:zle,getPrototypeOf:Hle,getOwnPropertyDescriptor:FM}=Object;let{freeze:ti,seal:Ga,create:PM}=Object,{apply:Bb,construct:Ub}=typeof Reflect<"u"&&Reflect;ti||(ti=function(t){return t});Ga||(Ga=function(t){return t});Bb||(Bb=function(t,n,r){return t.apply(n,r)});Ub||(Ub=function(t,n){return new t(...n)});const L0=ba(Array.prototype.forEach),wk=ba(Array.prototype.pop),Xc=ba(Array.prototype.push),bh=ba(String.prototype.toLowerCase),P3=ba(String.prototype.toString),jle=ba(String.prototype.match),Zc=ba(String.prototype.replace),Gle=ba(String.prototype.indexOf),Vle=ba(String.prototype.trim),Ii=ba(RegExp.prototype.test),Qc=Wle(TypeError);function ba(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:bh;Sk&&Sk(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(zle(t)||(t[r]=a),i=a)}e[i]=!0}return e}function Xu(e){const t=PM(null);for(const[n,r]of MM(e))FM(e,n)!==void 0&&(t[n]=r);return t}function M0(e,t){for(;e!==null;){const r=FM(e,t);if(r){if(r.get)return ba(r.get);if(typeof r.value=="function")return ba(r.value)}e=Hle(e)}function n(r){return console.warn("fallback value for",r),null}return n}const Ak=ti(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),B3=ti(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),U3=ti(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),qle=ti(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$3=ti(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Kle=ti(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ck=ti(["#text"]),xk=ti(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z3=ti(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kk=ti(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F0=ti(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Yle=Ga(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xle=Ga(/<%[\w\W]*|[\w\W]*%>/gm),Zle=Ga(/\${[\w\W]*}/gm),Qle=Ga(/^data-[\-\w.\u00B7-\uFFFF]/),Jle=Ga(/^aria-[\-\w]+$/),BM=Ga(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eue=Ga(/^(?:\w+script|data):/i),tue=Ga(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),UM=Ga(/^html$/i);var Ik=Object.freeze({__proto__:null,MUSTACHE_EXPR:Yle,ERB_EXPR:Xle,TMPLIT_EXPR:Zle,DATA_ATTR:Qle,ARIA_ATTR:Jle,IS_ALLOWED_URI:BM,IS_SCRIPT_OR_DATA:eue,ATTR_WHITESPACE:tue,DOCTYPE_NAME:UM});const nue=function(){return typeof window>"u"?null:window},rue=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function $M(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nue();const t=qe=>$M(qe);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,E=u.prototype,b=M0(E,"cloneNode"),T=M0(E,"nextSibling"),v=M0(E,"childNodes"),y=M0(E,"parentNode");if(typeof o=="function"){const qe=n.createElement("template");qe.content&&qe.content.ownerDocument&&(n=qe.content.ownerDocument)}let w,A="";const{implementation:D,createNodeIterator:k,createDocumentFragment:R,getElementsByTagName:B}=n,{importNode:W}=r;let P={};t.isSupported=typeof MM=="function"&&typeof y=="function"&&D&&D.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:z,TMPLIT_EXPR:le,DATA_ATTR:he,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:Z}=Ik;let{IS_ALLOWED_URI:V}=Ik,ce=null;const N=Ct({},[...Ak,...B3,...U3,...$3,...Ck]);let me=null;const oe=Ct({},[...xk,...z3,...kk,...F0]);let O=Object.seal(PM(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,Te=null,K=!0,xe=!0,ne=!1,Le=!0,Re=!1,Xe=!1,Ve=!1,dt=!1,ot=!1,Ge=!1,pt=!1,U=!0,ie=!1;const pe="user-content-";let ke=!0,ve=!1,Se={},Me=null;const ze=Ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ke=null;const jt=Ct({},["audio","video","img","source","image","track"]);let ue=null;const ye=Ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Y=Qe,se=!1,j=null;const $=Ct({},[We,at,Qe],P3);let J=null;const be=["application/xhtml+xml","text/html"],Fe="text/html";let De=null,tt=null;const Je=n.createElement("form"),Ze=function(ee){return ee instanceof RegExp||ee instanceof Function},Rt=function(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(tt&&tt===ee)){if((!ee||typeof ee!="object")&&(ee={}),ee=Xu(ee),J=be.indexOf(ee.PARSER_MEDIA_TYPE)===-1?J=Fe:J=ee.PARSER_MEDIA_TYPE,De=J==="application/xhtml+xml"?P3:bh,ce="ALLOWED_TAGS"in ee?Ct({},ee.ALLOWED_TAGS,De):N,me="ALLOWED_ATTR"in ee?Ct({},ee.ALLOWED_ATTR,De):oe,j="ALLOWED_NAMESPACES"in ee?Ct({},ee.ALLOWED_NAMESPACES,P3):$,ue="ADD_URI_SAFE_ATTR"in ee?Ct(Xu(ye),ee.ADD_URI_SAFE_ATTR,De):ye,Ke="ADD_DATA_URI_TAGS"in ee?Ct(Xu(jt),ee.ADD_DATA_URI_TAGS,De):jt,Me="FORBID_CONTENTS"in ee?Ct({},ee.FORBID_CONTENTS,De):ze,re="FORBID_TAGS"in ee?Ct({},ee.FORBID_TAGS,De):{},Te="FORBID_ATTR"in ee?Ct({},ee.FORBID_ATTR,De):{},Se="USE_PROFILES"in ee?ee.USE_PROFILES:!1,K=ee.ALLOW_ARIA_ATTR!==!1,xe=ee.ALLOW_DATA_ATTR!==!1,ne=ee.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=ee.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=ee.SAFE_FOR_TEMPLATES||!1,Xe=ee.WHOLE_DOCUMENT||!1,ot=ee.RETURN_DOM||!1,Ge=ee.RETURN_DOM_FRAGMENT||!1,pt=ee.RETURN_TRUSTED_TYPE||!1,dt=ee.FORCE_BODY||!1,U=ee.SANITIZE_DOM!==!1,ie=ee.SANITIZE_NAMED_PROPS||!1,ke=ee.KEEP_CONTENT!==!1,ve=ee.IN_PLACE||!1,V=ee.ALLOWED_URI_REGEXP||BM,Y=ee.NAMESPACE||Qe,O=ee.CUSTOM_ELEMENT_HANDLING||{},ee.CUSTOM_ELEMENT_HANDLING&&Ze(ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(O.tagNameCheck=ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&Ze(ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(O.attributeNameCheck=ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&typeof ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(O.allowCustomizedBuiltInElements=ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(xe=!1),Ge&&(ot=!0),Se&&(ce=Ct({},[...Ck]),me=[],Se.html===!0&&(Ct(ce,Ak),Ct(me,xk)),Se.svg===!0&&(Ct(ce,B3),Ct(me,z3),Ct(me,F0)),Se.svgFilters===!0&&(Ct(ce,U3),Ct(me,z3),Ct(me,F0)),Se.mathMl===!0&&(Ct(ce,$3),Ct(me,kk),Ct(me,F0))),ee.ADD_TAGS&&(ce===N&&(ce=Xu(ce)),Ct(ce,ee.ADD_TAGS,De)),ee.ADD_ATTR&&(me===oe&&(me=Xu(me)),Ct(me,ee.ADD_ATTR,De)),ee.ADD_URI_SAFE_ATTR&&Ct(ue,ee.ADD_URI_SAFE_ATTR,De),ee.FORBID_CONTENTS&&(Me===ze&&(Me=Xu(Me)),Ct(Me,ee.FORBID_CONTENTS,De)),ke&&(ce["#text"]=!0),Xe&&Ct(ce,["html","head","body"]),ce.table&&(Ct(ce,["tbody"]),delete re.tbody),ee.TRUSTED_TYPES_POLICY){if(typeof ee.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ee.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=ee.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=rue(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ti&&ti(ee),tt=ee}},Zt=Ct({},["mi","mo","mn","ms","mtext"]),kt=Ct({},["foreignobject","desc","title","annotation-xml"]),nn=Ct({},["title","style","font","a","script"]),Yt=Ct({},B3);Ct(Yt,U3),Ct(Yt,qle);const jr=Ct({},$3);Ct(jr,Kle);const Gr=function(ee){let Be=y(ee);(!Be||!Be.tagName)&&(Be={namespaceURI:Y,tagName:"template"});const it=bh(ee.tagName),ln=bh(Be.tagName);return j[ee.namespaceURI]?ee.namespaceURI===at?Be.namespaceURI===Qe?it==="svg":Be.namespaceURI===We?it==="svg"&&(ln==="annotation-xml"||Zt[ln]):!!Yt[it]:ee.namespaceURI===We?Be.namespaceURI===Qe?it==="math":Be.namespaceURI===at?it==="math"&&kt[ln]:!!jr[it]:ee.namespaceURI===Qe?Be.namespaceURI===at&&!kt[ln]||Be.namespaceURI===We&&!Zt[ln]?!1:!jr[it]&&(nn[it]||!Yt[it]):!!(J==="application/xhtml+xml"&&j[ee.namespaceURI]):!1},Vr=function(ee){Xc(t.removed,{element:ee});try{ee.parentNode.removeChild(ee)}catch{ee.remove()}},Ta=function(ee,Be){try{Xc(t.removed,{attribute:Be.getAttributeNode(ee),from:Be})}catch{Xc(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(ee),ee==="is"&&!me[ee])if(ot||Ge)try{Vr(Be)}catch{}else try{Be.setAttribute(ee,"")}catch{}},ii=function(ee){let Be=null,it=null;if(dt)ee=""+ee;else{const ar=jle(ee,/^[\r\n\t ]+/);it=ar&&ar[0]}J==="application/xhtml+xml"&&Y===Qe&&(ee=''+ee+"");const ln=w?w.createHTML(ee):ee;if(Y===Qe)try{Be=new m().parseFromString(ln,J)}catch{}if(!Be||!Be.documentElement){Be=D.createDocument(Y,"template",null);try{Be.documentElement.innerHTML=se?A:ln}catch{}}const ir=Be.body||Be.documentElement;return ee&&it&&ir.insertBefore(n.createTextNode(it),ir.childNodes[0]||null),Y===Qe?B.call(Be,Xe?"html":"body")[0]:Xe?Be.documentElement:ir},Ir=function(ee){return k.call(ee.ownerDocument||ee,ee,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},ps=function(ee){return ee instanceof f&&(typeof ee.nodeName!="string"||typeof ee.textContent!="string"||typeof ee.removeChild!="function"||!(ee.attributes instanceof p)||typeof ee.removeAttribute!="function"||typeof ee.setAttribute!="function"||typeof ee.namespaceURI!="string"||typeof ee.insertBefore!="function"||typeof ee.hasChildNodes!="function")},fs=function(ee){return typeof s=="function"&&ee instanceof s},Wr=function(ee,Be,it){P[ee]&&L0(P[ee],ln=>{ln.call(t,Be,it,tt)})},hs=function(ee){let Be=null;if(Wr("beforeSanitizeElements",ee,null),ps(ee))return Vr(ee),!0;const it=De(ee.nodeName);if(Wr("uponSanitizeElement",ee,{tagName:it,allowedTags:ce}),ee.hasChildNodes()&&!fs(ee.firstElementChild)&&Ii(/<[/\w]/g,ee.innerHTML)&&Ii(/<[/\w]/g,ee.textContent))return Vr(ee),!0;if(!ce[it]||re[it]){if(!re[it]&&Rr(it)&&(O.tagNameCheck instanceof RegExp&&Ii(O.tagNameCheck,it)||O.tagNameCheck instanceof Function&&O.tagNameCheck(it)))return!1;if(ke&&!Me[it]){const ln=y(ee)||ee.parentNode,ir=v(ee)||ee.childNodes;if(ir&&ln){const ar=ir.length;for(let Yn=ar-1;Yn>=0;--Yn)ln.insertBefore(b(ir[Yn],!0),T(ee))}}return Vr(ee),!0}return ee instanceof u&&!Gr(ee)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ii(/<\/no(script|embed|frames)/i,ee.innerHTML)?(Vr(ee),!0):(Re&&ee.nodeType===3&&(Be=ee.textContent,L0([Q,z,le],ln=>{Be=Zc(Be,ln," ")}),ee.textContent!==Be&&(Xc(t.removed,{element:ee.cloneNode()}),ee.textContent=Be)),Wr("afterSanitizeElements",ee,null),!1)},Wt=function(ee,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in Je))return!1;if(!(xe&&!Te[Be]&&Ii(he,Be))){if(!(K&&Ii(de,Be))){if(!me[Be]||Te[Be]){if(!(Rr(ee)&&(O.tagNameCheck instanceof RegExp&&Ii(O.tagNameCheck,ee)||O.tagNameCheck instanceof Function&&O.tagNameCheck(ee))&&(O.attributeNameCheck instanceof RegExp&&Ii(O.attributeNameCheck,Be)||O.attributeNameCheck instanceof Function&&O.attributeNameCheck(Be))||Be==="is"&&O.allowCustomizedBuiltInElements&&(O.tagNameCheck instanceof RegExp&&Ii(O.tagNameCheck,it)||O.tagNameCheck instanceof Function&&O.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ii(V,Zc(it,Z,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&ee!=="script"&&Gle(it,"data:")===0&&Ke[ee])){if(!(ne&&!Ii(fe,Zc(it,Z,"")))){if(it)return!1}}}}}}return!0},Rr=function(ee){return ee.indexOf("-")>0},_i=function(ee){Wr("beforeSanitizeAttributes",ee,null);const{attributes:Be}=ee;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};let ln=Be.length;for(;ln--;){const ir=Be[ln],{name:ar,namespaceURI:Yn,value:wo}=ir,Xa=De(ar);let Nr=ar==="value"?wo:Vle(wo);if(it.attrName=Xa,it.attrValue=Nr,it.keepAttr=!0,it.forceKeepAttr=void 0,Wr("uponSanitizeAttribute",ee,it),Nr=it.attrValue,it.forceKeepAttr||(Ta(ar,ee),!it.keepAttr))continue;if(!Le&&Ii(/\/>/i,Nr)){Ta(ar,ee);continue}Re&&L0([Q,z,le],af=>{Nr=Zc(Nr,af," ")});const rf=De(ee.nodeName);if(Wt(rf,Xa,Nr)){if(ie&&(Xa==="id"||Xa==="name")&&(Ta(ar,ee),Nr=pe+Nr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Yn)switch(g.getAttributeType(rf,Xa)){case"TrustedHTML":{Nr=w.createHTML(Nr);break}case"TrustedScriptURL":{Nr=w.createScriptURL(Nr);break}}try{Yn?ee.setAttributeNS(Yn,ar,Nr):ee.setAttribute(ar,Nr),wk(t.removed)}catch{}}}Wr("afterSanitizeAttributes",ee,null)},Al=function qe(ee){let Be=null;const it=Ir(ee);for(Wr("beforeSanitizeShadowDOM",ee,null);Be=it.nextNode();)Wr("uponSanitizeShadowNode",Be,null),!hs(Be)&&(Be.content instanceof a&&qe(Be.content),_i(Be));Wr("afterSanitizeShadowDOM",ee,null)};return t.sanitize=function(qe){let ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,ln=null,ir=null;if(se=!qe,se&&(qe=""),typeof qe!="string"&&!fs(qe))if(typeof qe.toString=="function"){if(qe=qe.toString(),typeof qe!="string")throw Qc("dirty is not a string, aborting")}else throw Qc("toString is not a function");if(!t.isSupported)return qe;if(Ve||Rt(ee),t.removed=[],typeof qe=="string"&&(ve=!1),ve){if(qe.nodeName){const wo=De(qe.nodeName);if(!ce[wo]||re[wo])throw Qc("root node is forbidden and cannot be sanitized in-place")}}else if(qe instanceof s)Be=ii(""),it=Be.ownerDocument.importNode(qe,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Xe&&qe.indexOf("<")===-1)return w&&pt?w.createHTML(qe):qe;if(Be=ii(qe),!Be)return ot?null:pt?A:""}Be&&dt&&Vr(Be.firstChild);const ar=Ir(ve?qe:Be);for(;ln=ar.nextNode();)hs(ln)||(ln.content instanceof a&&Al(ln.content),_i(ln));if(ve)return qe;if(ot){if(Ge)for(ir=R.call(Be.ownerDocument);Be.firstChild;)ir.appendChild(Be.firstChild);else ir=Be;return(me.shadowroot||me.shadowrootmode)&&(ir=W.call(r,ir,!0)),ir}let Yn=Xe?Be.outerHTML:Be.innerHTML;return Xe&&ce["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ii(UM,Be.ownerDocument.doctype.name)&&(Yn=" -`+Yn),Re&&L0([Q,z,le],wo=>{Yn=Zc(Yn,wo," ")}),w&&pt?w.createHTML(Yn):Yn},t.setConfig=function(){let qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rt(qe),Ve=!0},t.clearConfig=function(){tt=null,Ve=!1},t.isValidAttribute=function(qe,ee,Be){tt||Rt({});const it=De(qe),ln=De(ee);return Wt(it,ln,Be)},t.addHook=function(qe,ee){typeof ee=="function"&&(P[qe]=P[qe]||[],Xc(P[qe],ee))},t.removeHook=function(qe){if(P[qe])return wk(P[qe])},t.removeHooks=function(qe){P[qe]&&(P[qe]=[])},t.removeAllHooks=function(){P={}},t}var iue=$M(),l7={};const aue={folder:["folder","white"],"karma.conf.js":["karma","green"],"karma.conf.coffee":["karma","green"],"README.md":["info","blue"],"CHANGELOG.md":["clock","blue"],CHANGELOG:["clock","blue"],"CHANGES.md":["clock","blue"],"VERSION.md":["clock","blue"],VERSION:["clock","blue"],mvnw:["maven","red"],"tsconfig.json":["tsconfig","blue"],"swagger.json":["json","green"],"swagger.yml":["json","green"],"swagger.yaml":["json","green"],"mime.types":["config","grey-light"],Jenkinsfile:["jenkins","red"],"babel.config.js":["babel","yellow"],"babel.config.json":["babel","yellow"],"babel.config.cjs":["babel","yellow"],"bower.json":["bower","orange"],"Bower.json":["bower","orange"],"firebase.json":["firebase","orange"],geckodriver:["firefox","orange"],"Gruntfile.js":["grunt","orange"],"gruntfile.babel.js":["grunt","orange"],"Gruntfile.babel.js":["grunt","orange"],"gruntfile.js":["grunt","orange"],"Gruntfile.coffee":["grunt","orange"],"gruntfile.coffee":["grunt","orange"],"ionic.config.json":["ionic","blue"],"Ionic.config.json":["ionic","blue"],"ionic.project":["ionic","blue"],"Ionic.project":["ionic","blue"],"platformio.ini":["platformio","orange"],"rollup.config.js":["rollup","red"],"sass-lint.yml":["sass","pink"],"stylelint.config.js":["stylelint","white"],"stylelint.config.cjs":["stylelint","white"],"yarn.clean":["yarn","blue"],"yarn.lock":["yarn","blue"],"webpack.config.js":["webpack","blue"],"webpack.config.build.js":["webpack","blue"],"webpack.common.js":["webpack","blue"],"webpack.dev.js":["webpack","blue"],"webpack.prod.js":["webpack","blue"],"npm-debug.log":["npm_ignored","ignore"]},oue={".bsl":["bsl","red"],".mdo":["mdo","red"],".cls":["salesforce","blue"],".apex":["salesforce","blue"],".asm":["asm","red"],".s":["asm","red"],".bicep":["bicep","blue"],".c":["c","blue"],".h":["c","purple"],".m":["c","yellow"],".cs":["c-sharp","blue"],".cshtml":["html","blue"],".aspx":["html","blue"],".ascx":["html","green"],".asax":["html","yellow"],".master":["html","yellow"],".cc":["cpp","blue"],".cpp":["cpp","blue"],".cxx":["cpp","blue"],".c++":["cpp","blue"],".hh":["cpp","purple"],".hpp":["cpp","purple"],".hxx":["cpp","purple"],".h++":["cpp","purple"],".mm":["cpp","yellow"],".clj":["clojure","green"],".cljs":["clojure","green"],".cljc":["clojure","green"],".edn":["clojure","blue"],".cfc":["coldfusion","blue"],".cfm":["coldfusion","blue"],".coffee":["coffee","yellow"],".litcoffee":["coffee","yellow"],".config":["config","grey-light"],".cfg":["config","grey-light"],".conf":["config","grey-light"],".cr":["crystal","white"],".ecr":["crystal_embedded","white"],".slang":["crystal_embedded","white"],".cson":["json","yellow"],".css":["css","blue"],".css.map":["css","blue"],".sss":["css","blue"],".csv":["csv","green"],".xls":["xls","green"],".xlsx":["xls","green"],".cu":["cu","green"],".cuh":["cu","purple"],".hu":["cu","purple"],".cake":["cake","red"],".ctp":["cake_php","red"],".d":["d","red"],".doc":["word","blue"],".docx":["word","blue"],".ejs":["ejs","yellow"],".ex":["elixir","purple"],".exs":["elixir_script","purple"],".elm":["elm","blue"],".ico":["favicon","yellow"],".fs":["f-sharp","blue"],".fsx":["f-sharp","blue"],".gitignore":["git","ignore"],".gitconfig":["git","ignore"],".gitkeep":["git","ignore"],".gitattributes":["git","ignore"],".gitmodules":["git","ignore"],".go":["go2","blue"],".slide":["go","blue"],".article":["go","blue"],".gd":["godot","blue"],".godot":["godot","red"],".tres":["godot","yellow"],".tscn":["godot","purple"],".gradle":["gradle","blue"],".groovy":["grails","green"],".gsp":["grails","green"],".gql":["graphql","pink"],".graphql":["graphql","pink"],".graphqls":["graphql","pink"],".hack":["hacklang","orange"],".haml":["haml","red"],".handlebars":["mustache","orange"],".hbs":["mustache","orange"],".hjs":["mustache","orange"],".hs":["haskell","purple"],".lhs":["haskell","purple"],".hx":["haxe","orange"],".hxs":["haxe","yellow"],".hxp":["haxe","blue"],".hxml":["haxe","purple"],".html":["html","orange"],".jade":["jade","red"],".java":["java","red"],".class":["java","red"],".classpath":["java","red"],".properties":["java","red"],".js":["javascript","yellow"],".js.map":["javascript","yellow"],".spec.js":["javascript","orange"],".test.js":["javascript","orange"],".es":["javascript","yellow"],".es5":["javascript","yellow"],".es6":["javascript","yellow"],".es7":["javascript","yellow"],".jinja":["jinja","red"],".jinja2":["jinja","red"],".json":["json","yellow"],".jl":["julia","purple"],".kt":["kotlin","orange"],".kts":["kotlin","orange"],".dart":["dart","blue"],".less":["less","blue"],".liquid":["liquid","green"],".ls":["livescript","blue"],".lua":["lua","blue"],".markdown":["markdown","blue"],".md":["markdown","blue"],".argdown":["argdown","blue"],".ad":["argdown","blue"],".mustache":["mustache","orange"],".stache":["mustache","orange"],".nim":["nim","yellow"],".nims":["nim","yellow"],".github-issues":["github","white"],".ipynb":["notebook","blue"],".njk":["nunjucks","green"],".nunjucks":["nunjucks","green"],".nunjs":["nunjucks","green"],".nunj":["nunjucks","green"],".njs":["nunjucks","green"],".nj":["nunjucks","green"],".npm-debug.log":["npm","ignore"],".npmignore":["npm","red"],".npmrc":["npm","red"],".ml":["ocaml","orange"],".mli":["ocaml","orange"],".cmx":["ocaml","orange"],".cmxa":["ocaml","orange"],".odata":["odata","orange"],".pl":["perl","blue"],".php":["php","purple"],".php.inc":["php","purple"],".pipeline":["pipeline","orange"],".pddl":["pddl","purple"],".plan":["plan","green"],".happenings":["happenings","blue"],".ps1":["powershell","blue"],".psd1":["powershell","blue"],".psm1":["powershell","blue"],".prisma":["prisma","blue"],".pug":["pug","red"],".pp":["puppet","yellow"],".epp":["puppet","yellow"],".purs":["purescript","white"],".py":["python","blue"],".jsx":["react","blue"],".spec.jsx":["react","orange"],".test.jsx":["react","orange"],".cjsx":["react","blue"],".spec.tsx":["react","orange"],".test.tsx":["react","orange"],".re":["reasonml","red"],".res":["rescript","red"],".resi":["rescript","pink"],".R":["R","blue"],".rmd":["R","blue"],".rb":["ruby","red"],".erb":["html_erb","red"],".erb.html":["html_erb","red"],".html.erb":["html_erb","red"],".rs":["rust","grey-light"],".sass":["sass","pink"],".scss":["sass","pink"],".springBeans":["spring","green"],".slim":["slim","orange"],".smarty.tpl":["smarty","yellow"],".tpl":["smarty","yellow"],".sbt":["sbt","blue"],".scala":["scala","red"],".sol":["ethereum","blue"],".styl":["stylus","green"],".svelte":["svelte","red"],".swift":["swift","orange"],".sql":["db","pink"],".soql":["db","blue"],".tf":["terraform","purple"],".tf.json":["terraform","purple"],".tfvars":["terraform","purple"],".tex":["tex","blue"],".sty":["tex","yellow"],".dtx":["tex","orange"],".ins":["tex","white"],".txt":["default","white"],".toml":["config","grey-light"],".twig":["twig","green"],".ts":["typescript","blue"],".tsx":["typescript","blue"],".spec.ts":["typescript","orange"],".test.ts":["typescript","orange"],".vala":["vala","grey-light"],".vapi":["vala","grey-light"],".component":["html","orange"],".vue":["vue","green"],".wasm":["wasm","purple"],".wat":["wat","purple"],".xml":["xml","orange"],".yml":["yml","purple"],".yaml":["yml","purple"],".pro":["prolog","orange"],".jar":["zip","red"],".zip":["zip","grey-light"],".wgt":["wgt","blue"],".ai":["illustrator","yellow"],".psd":["photoshop","blue"],".pdf":["pdf","red"],".eot":["font","red"],".ttf":["font","red"],".woff":["font","red"],".woff2":["font","red"],".gif":["image","purple"],".jpg":["image","purple"],".jpeg":["image","purple"],".png":["image","purple"],".pxm":["image","purple"],".svg":["svg","purple"],".svgx":["image","purple"],".tiff":["image","purple"],".webp":["image","purple"],".sublime-project":["sublime","orange"],".sublime-workspace":["sublime","orange"],".code-search":["code-search","purple"],".sh":["shell","green"],".zsh":["shell","green"],".fish":["shell","green"],".zshrc":["shell","green"],".bashrc":["shell","green"],".mov":["video","pink"],".ogv":["video","pink"],".webm":["video","pink"],".avi":["video","pink"],".mpg":["video","pink"],".mp4":["video","pink"],".mp3":["audio","purple"],".ogg":["audio","purple"],".wav":["audio","purple"],".flac":["audio","purple"],".3ds":["svg","blue"],".3dm":["svg","blue"],".stl":["svg","blue"],".obj":["svg","blue"],".dae":["svg","blue"],".bat":["windows","blue"],".cmd":["windows","blue"],".babelrc":["babel","yellow"],".babelrc.js":["babel","yellow"],".babelrc.cjs":["babel","yellow"],".bowerrc":["bower","orange"],".codeclimate.yml":["code-climate","green"],".eslintrc":["eslint","purple"],".eslintrc.js":["eslint","purple"],".eslintrc.cjs":["eslint","purple"],".eslintrc.yaml":["eslint","purple"],".eslintrc.yml":["eslint","purple"],".eslintrc.json":["eslint","purple"],".eslintignore":["eslint","grey"],".firebaserc":["firebase","orange"],".jshintrc":["javascript","blue"],".jscsrc":["javascript","blue"],".stylelintrc":["stylelint","white"],".stylelintrc.json":["stylelint","white"],".stylelintrc.yaml":["stylelint","white"],".stylelintrc.yml":["stylelint","white"],".stylelintrc.js":["stylelint","white"],".stylelintignore":["stylelint","grey"],".direnv":["config","grey-light"],".env":["config","grey-light"],".static":["config","grey-light"],".editorconfig":["config","grey-light"],".slugignore":["config","grey-light"],".tmp":["clock","grey-light"],".htaccess":["config","grey-light"],".key":["lock","green"],".cert":["lock","green"],".cer":["lock","green"],".crt":["lock","green"],".pem":["lock","green"],".DS_Store":["ignored","ignore"]},sue=[["TODO",["todo","blue"]],["Procfile",["heroku","purple"]],["cmakelists.txt",["makefile","blue"]],["CMakeLists.txt",["makefile","blue"]],["CMAKELISTS.txt",["makefile","blue"]],["CMAKELISTS.TXT",["makefile","blue"]],["omakefile",["makefile","grey-light"]],["OMakefile",["makefile","grey-light"]],["OMAKEFILE",["makefile","grey-light"]],["qmakefile",["makefile","purple"]],["QMakefile",["makefile","purple"]],["QMAKEFILE",["makefile","purple"]],["makefile",["makefile","orange"]],["Makefile",["makefile","orange"]],["MAKEFILE",["makefile","orange"]],["CONTRIBUTING",["license","red"]],["COMPILING",["license","orange"]],["COPYING",["license","yellow"]],["LICENCE.md",["license","yellow"]],["LICENSE.md",["license","yellow"]],["LICENCE",["license","yellow"]],["LICENSE",["license","yellow"]],["gulpfile.js",["gulp","red"]],["gulpfile",["gulp","red"]],["Gulpfile",["gulp","red"]],["GULPFILE",["gulp","red"]],["docker-compose.override.yaml",["docker","pink"]],["docker-compose.override.yml",["docker","pink"]],["docker-compose.yaml",["docker","pink"]],["docker-compose.yml",["docker","pink"]],["docker-healthcheck",["docker","green"]],[".dockerignore",["docker","grey"]],["DOCKERFILE",["docker","blue"]],["Dockerfile",["docker","blue"]],["dockerfile",["docker","blue"]],["gemfile",["ruby","red"]],["Gemfile",["ruby","red"]],["mix",["hex","red"]]],lue={files:aue,extensions:oue,partials:sue,default:["default","white"]},uue='',cue='',due='',pue='',fue='',hue='',gue='',mue='',bue='',Eue='',vue='',yue='',_ue='',Tue='',Sue='',wue='',Aue='',Cue='',xue='',kue='',Iue='',Rue='',Nue='',Oue='',Due='',Lue='',Mue='',Fue='',Pue='',Bue='',Uue='',$ue='',zue='',Hue='',jue='',Gue='',Vue='',Wue='',que='',Kue='',Yue='',Xue='',Zue='',Que='',Jue='',e1e='',t1e='',n1e='',r1e='',i1e='',a1e='',o1e='',s1e='',l1e='',u1e='',c1e='',d1e='',p1e='',f1e='',h1e='',g1e='',m1e='',b1e='',E1e='',v1e='',y1e='',_1e='',T1e='',S1e='',w1e='',A1e='',C1e='',x1e='',k1e='',I1e='',R1e='',N1e='',O1e='',D1e='',L1e='',M1e='',F1e='',P1e='',B1e='',U1e='',$1e='',z1e='',H1e='',j1e='',G1e='',V1e='',W1e='',q1e='',K1e='',Y1e='',X1e='',Z1e='',Q1e='',J1e='',ece='',tce='',nce='',rce='',ice='',ace='',oce='',sce='',lce='',uce='',cce='',dce='',pce='',fce='',hce='',gce='',mce='',bce='',Ece='',vce='',yce='',_ce='',Tce='',Sce='',wce='',Ace='',Cce='',xce='',kce='',Ice='',Rce='',Nce='',Oce='',Dce='',Lce='',Mce='',Fce='',Pce='',Bce='',Uce='',$ce='',zce='',Hce='',jce='',Gce={folder:uue,bsl:cue,mdo:due,salesforce:pue,asm:fue,bicep:hue,c:gue,"c-sharp":'',html:mue,cpp:bue,clojure:Eue,coldfusion:vue,coffee:yue,config:_ue,crystal:Tue,crystal_embedded:Sue,json:wue,css:Aue,csv:Cue,xls:xue,cu:kue,cake:Iue,cake_php:Rue,d:Nue,word:Oue,ejs:Due,elixir:Lue,elixir_script:Mue,hex:Fue,elm:Pue,favicon:Bue,"f-sharp":'',git:Uue,go2:$ue,go:zue,godot:Hue,gradle:jue,grails:Gue,graphql:Vue,hacklang:Wue,haml:que,mustache:Kue,haskell:Yue,haxe:Xue,jade:Zue,java:Que,javascript:Jue,jinja:e1e,julia:t1e,karma:n1e,kotlin:r1e,dart:i1e,less:a1e,liquid:o1e,livescript:s1e,lua:l1e,markdown:u1e,argdown:c1e,info:d1e,clock:p1e,maven:f1e,nim:h1e,github:g1e,notebook:m1e,nunjucks:b1e,npm:E1e,ocaml:v1e,odata:y1e,perl:_1e,php:T1e,pipeline:S1e,pddl:w1e,plan:A1e,happenings:C1e,powershell:x1e,prisma:k1e,pug:I1e,puppet:R1e,purescript:N1e,python:O1e,react:D1e,reasonml:L1e,rescript:M1e,R:F1e,ruby:P1e,html_erb:B1e,rust:U1e,sass:$1e,spring:z1e,slim:H1e,smarty:j1e,sbt:G1e,scala:V1e,ethereum:W1e,stylus:q1e,svelte:K1e,swift:Y1e,db:X1e,terraform:Z1e,tex:Q1e,default:'',twig:J1e,typescript:ece,tsconfig:tce,vala:nce,vue:rce,wasm:ice,wat:ace,xml:oce,yml:sce,prolog:lce,zip:uce,wgt:cce,illustrator:dce,photoshop:pce,pdf:fce,font:hce,image:gce,svg:mce,sublime:bce,"code-search":'',shell:Ece,video:vce,audio:yce,windows:_ce,jenkins:Tce,babel:Sce,bower:wce,docker:Ace,"code-climate":'',eslint:Cce,firebase:xce,firefox:kce,grunt:Ice,gulp:Rce,ionic:Nce,platformio:Oce,rollup:Dce,stylelint:Lce,yarn:Mce,webpack:Fce,lock:Pce,license:Bce,makefile:Uce,heroku:$ce,todo:zce,npm_ignored:Hce,ignored:jce};var gg=ql&&ql.__assign||function(){return gg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return i[1]}return Zu.default},zM=function(e){var t=Kce(e),n=t[0],r=t[1];return{svg:qce[n],color:r}};l7.getIcon=zM;var Yce=function(e){return function(t){var n=zM(t);return gg(gg({},n),{color:e[n.color]})}},Xce=l7.themeIcons=Yce;const $b=({filename:e,height:t,width:n})=>{const r=Xce({blue:"#268bd2",grey:"#657b83","grey-light":"#839496",green:"#859900",orange:"#cb4b16",pink:"#d33682",purple:"#6c71c4",red:"#dc322f",white:"#fdf6e3",yellow:"#b58900",ignore:"#586e75"}),{svg:i,color:a}=r(e),o=iue.sanitize(i);return I.jsx("div",{dangerouslySetInnerHTML:{__html:o},style:{width:n,height:t,fill:a}})},Zce=He.button` + */var R2=60103,N2=60106,nf=60107,rf=60108,af=60114,of=60109,sf=60110,lf=60112,uf=60113,F7=60120,cf=60115,df=60116,xF=60121,IF=60122,RF=60117,NF=60129,OF=60131;if(typeof Symbol=="function"&&Symbol.for){var yr=Symbol.for;R2=yr("react.element"),N2=yr("react.portal"),nf=yr("react.fragment"),rf=yr("react.strict_mode"),af=yr("react.profiler"),of=yr("react.provider"),sf=yr("react.context"),lf=yr("react.forward_ref"),uf=yr("react.suspense"),F7=yr("react.suspense_list"),cf=yr("react.memo"),df=yr("react.lazy"),xF=yr("react.block"),IF=yr("react.server.block"),RF=yr("react.fundamental"),NF=yr("react.debug_trace_mode"),OF=yr("react.legacy_hidden")}function Ja(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R2:switch(e=e.type,e){case nf:case af:case rf:case uf:case F7:return e;default:switch(e=e&&e.$$typeof,e){case sf:case lf:case df:case cf:case of:return e;default:return t}}case N2:return t}}}var $ue=of,zue=R2,Hue=lf,jue=nf,Gue=df,Vue=cf,Wue=N2,que=af,Kue=rf,Yue=uf;yn.ContextConsumer=sf;yn.ContextProvider=$ue;yn.Element=zue;yn.ForwardRef=Hue;yn.Fragment=jue;yn.Lazy=Gue;yn.Memo=Vue;yn.Portal=Wue;yn.Profiler=que;yn.StrictMode=Kue;yn.Suspense=Yue;yn.isAsyncMode=function(){return!1};yn.isConcurrentMode=function(){return!1};yn.isContextConsumer=function(e){return Ja(e)===sf};yn.isContextProvider=function(e){return Ja(e)===of};yn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R2};yn.isForwardRef=function(e){return Ja(e)===lf};yn.isFragment=function(e){return Ja(e)===nf};yn.isLazy=function(e){return Ja(e)===df};yn.isMemo=function(e){return Ja(e)===cf};yn.isPortal=function(e){return Ja(e)===N2};yn.isProfiler=function(e){return Ja(e)===af};yn.isStrictMode=function(e){return Ja(e)===rf};yn.isSuspense=function(e){return Ja(e)===uf};yn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nf||e===af||e===NF||e===rf||e===uf||e===F7||e===OF||typeof e=="object"&&e!==null&&(e.$$typeof===df||e.$$typeof===cf||e.$$typeof===of||e.$$typeof===sf||e.$$typeof===lf||e.$$typeof===RF||e.$$typeof===xF||e[0]===IF)};yn.typeOf=Ja;let mI=e=>typeof e=="object"&&e!=null&&e.nodeType===1,bI=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",u4=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,Xue=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var Zue=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:fe=>fe!==f;if(!mI(e))throw new TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,y=[],T=e;for(;mI(T)&&g(T);){if(T=Xue(T),T===b){y.push(T);break}T!=null&&T===document.body&&u4(T)&&!u4(document.documentElement)||T!=null&&u4(T,m)&&y.push(T)}let E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:R,width:k,top:N,right:B,bottom:q,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?N:c==="end"?q:N+R/2,$=p==="center"?P+k/2:p==="end"?B:P,oe=[];for(let fe=0;fe=0&&P>=0&&q<=v&&B<=E&&N>=W&&q<=D&&P>=pe&&B<=se)return oe;let le=getComputedStyle(ce),L=parseInt(le.borderLeftWidth,10),ie=parseInt(le.borderTopWidth,10),Se=parseInt(le.borderRightWidth,10),X=parseInt(le.borderBottomWidth,10),ke=0,te=0,Me="offsetWidth"in ce?ce.offsetWidth-ce.clientWidth-L-Se:0,Re="offsetHeight"in ce?ce.offsetHeight-ce.clientHeight-ie-X:0,Ze="offsetWidth"in ce?ce.offsetWidth===0?0:H/ce.offsetWidth:0,We="offsetHeight"in ce?ce.offsetHeight===0?0:De/ce.offsetHeight:0;if(b===ce)ke=c==="start"?Q:c==="end"?Q-v:c==="nearest"?V0(A,A+v,v,ie,X,A+Q,A+Q+R,R):Q-v/2,te=p==="start"?$:p==="center"?$-E/2:p==="end"?$-E:V0(w,w+E,E,L,Se,w+$,w+$+k,k),ke=Math.max(0,ke+A),te=Math.max(0,te+w);else{ke=c==="start"?Q-W-ie:c==="end"?Q-D+X+Re:c==="nearest"?V0(W,D,De,ie,X+Re,Q,Q+R,R):Q-(W+De/2)+Re/2,te=p==="start"?$-pe-L:p==="center"?$-(pe+H/2)+Me/2:p==="end"?$-se+Se+Me:V0(pe,se,H,L,Se+Me,$,$+k,k);let{scrollLeft:dt,scrollTop:ot}=ce;ke=Math.max(0,Math.min(ot+ke/We,ce.scrollHeight-De/We+Re)),te=Math.max(0,Math.min(dt+te/Ze,ce.scrollWidth-H/Ze+Me)),Q+=ot-ke,$+=dt-te}oe.push({el:ce,top:ke,left:te})}return oe},$g=function(){return $g=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function q0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=Ap(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function Ap(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?Ap(1,0,n,r,!1):Ap(-1,n-1,n,r,!1):-1}function EI(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(yI(i,e,n)||r&&yI(i,n.document.activeElement,n))})}var r1e=LF(function(e){FF(e).textContent=""},500);function i1e(e,t){var n=FF(t);e&&(n.textContent=e,r1e(t))}function FF(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var a1e=["isInitialMount","highlightedIndex","items","environment"],PF={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function o1e(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){s1e(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(nn({type:i},a))}function s1e(e,t,n,r){var i=t.props,a=t.type,o="on"+P7(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](nn({type:a},r))}function l1e(e,t){return t.changes}function u1e(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var c1e=LF(function(e,t){i1e(e(),t)},200),d1e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function p1e(e){var t=e.id,n=t===void 0?"downshift-"+e1e():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function f1e(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function h1e(e){return e?String(e):""}function P7(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function BF(e){var t=C.useRef(e);return t.current=e,t}function g1e(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=my(m,g.props);var b=e(m,g),y=g.props.stateReducer(m,nn({},g,{changes:b}));return y},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=BF(n),p=C.useCallback(function(m){return u(nn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&o1e(f,my(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Kd={itemToString:h1e,stateReducer:l1e,getA11ySelectionMessage:u1e,scrollIntoView:Jue,environment:typeof window>"u"?{}:window};function bo(e,t,n){n===void 0&&(n=PF);var r=e["default"+P7(t)];return r!==void 0?r:n[t]}function K0(e,t,n){n===void 0&&(n=PF);var r=e[t];if(r!==void 0)return r;var i=e["initial"+P7(t)];return i!==void 0?i:bo(e,t,n)}function m1e(e){var t=K0(e,"selectedItem"),n=K0(e,"isOpen"),r=K0(e,"highlightedIndex"),i=K0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Yd(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function b1e(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!EI(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!EI(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var y1e=function(){return DF};function vI(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=C1(n,a1e);C.useEffect(function(){r||c1e(function(){return e(nn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function E1e(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return d1e(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var v1e=DF;function _I(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return nn({isOpen:!1,highlightedIndex:-1},i&&nn({selectedItem:e.items[t],isOpen:bo(e,"isOpen"),highlightedIndex:bo(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function _1e(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Yd(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:bo(i,"highlightedIndex"),isOpen:bo(i,"isOpen"),selectedItem:bo(i,"selectedItem"),inputValue:bo(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return nn({},e,a)}be.array.isRequired,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.func,be.string,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function T1e(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}$g($g({},Kd),{getA11yStatusMessage:T1e});var B7=0,U7=1,$7=2,z7=3,H7=4,j7=5,G7=6,V7=7,W7=8,zg=9,q7=10,UF=11,$F=12,K7=13,zF=14,HF=15,jF=16,GF=17,VF=18,Y7=19,WF=20,qF=21,X7=22,KF=Object.freeze({__proto__:null,InputKeyDownArrowDown:B7,InputKeyDownArrowUp:U7,InputKeyDownEscape:$7,InputKeyDownHome:z7,InputKeyDownEnd:H7,InputKeyDownPageUp:j7,InputKeyDownPageDown:G7,InputKeyDownEnter:V7,InputChange:W7,InputBlur:zg,InputFocus:q7,MenuMouseLeave:UF,ItemMouseMove:$F,ItemClick:K7,ToggleButtonClick:zF,FunctionToggleMenu:HF,FunctionOpenMenu:jF,FunctionCloseMenu:GF,FunctionSetHighlightedIndex:VF,FunctionSelectItem:Y7,FunctionSetInputValue:WF,FunctionReset:qF,ControlledPropUpdatedSelectedItem:X7});function S1e(e){var t=m1e(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),nn({},t,{inputValue:r})}be.array.isRequired,be.func,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.string,be.string,be.string,be.func,be.string,be.string,be.func,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function w1e(e,t,n){var r=C.useRef(),i=g1e(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){MF(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:X7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[my(a,n),o]}var A1e=nn({},Kd,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:t1e});function C1e(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case K7:o={isOpen:bo(i,"isOpen"),highlightedIndex:bo(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case B7:e.isOpen?o={highlightedIndex:q0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Yd(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case U7:e.isOpen?a?o=_I(i,e.highlightedIndex):o={highlightedIndex:q0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Yd(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case V7:o=_I(i,e.highlightedIndex);break;case $7:o=nn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case j7:o={highlightedIndex:q0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case G7:o={highlightedIndex:q0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case z7:o={highlightedIndex:Ap(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case H7:o={highlightedIndex:Ap(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case zg:o=nn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case W7:o={isOpen:!0,highlightedIndex:bo(i,"highlightedIndex"),inputValue:t.inputValue};break;case q7:o={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case Y7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case X7:o={inputValue:t.inputValue};break;default:return _1e(e,t,KF)}return nn({},e,o)}var k1e=["onMouseLeave","refKey","ref"],x1e=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],I1e=["onClick","onPress","refKey","ref"],R1e=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];YF.stateChangeTypes=KF;function YF(e){e===void 0&&(e={});var t=nn({},A1e,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=S1e(t),f=w1e(C1e,p,t),m=f[0],g=f[1],b=m.isOpen,y=m.highlightedIndex,T=m.selectedItem,E=m.inputValue,v=C.useRef(null),w=C.useRef({}),A=C.useRef(null),R=C.useRef(null),k=C.useRef(!0),N=p1e(t),B=C.useRef(),q=BF({state:m,props:t}),P=C.useCallback(function(ke){return w.current[N.getItemId(ke)]},[N]);vI(s,[b,y,E,i],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),vI(u,[T],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=E1e({menuElement:v.current,highlightedIndex:y,isOpen:b,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});v1e({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var ke=n||r||b;ke&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var $=b1e(b,[A,v,R],o,function(){g({type:zg,selectItem:!1})}),oe=y1e();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var ke;if(!b)w.current={};else if(((ke=o.document)==null?void 0:ke.activeElement)!==A.current){var te;A==null||(te=A.current)==null||te.focus()}},[b,o]);var fe=C.useMemo(function(){return{ArrowDown:function(te){te.preventDefault(),g({type:B7,altKey:te.altKey,getItemNodeFromIndex:P})},ArrowUp:function(te){te.preventDefault(),g({type:U7,altKey:te.altKey,getItemNodeFromIndex:P})},Home:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:z7,getItemNodeFromIndex:P}))},End:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:H7,getItemNodeFromIndex:P}))},Escape:function(te){var Me=q.current.state;(Me.isOpen||Me.inputValue||Me.selectedItem||Me.highlightedIndex>-1)&&(te.preventDefault(),g({type:$7}))},Enter:function(te){var Me=q.current.state;!Me.isOpen||te.which===229||(te.preventDefault(),g({type:V7,getItemNodeFromIndex:P}))},PageUp:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:j7,getItemNodeFromIndex:P}))},PageDown:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:G7,getItemNodeFromIndex:P}))}}},[g,q,P]),ce=C.useCallback(function(ke){return nn({id:N.labelId,htmlFor:N.inputId},ke)},[N]),De=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onMouseLeave,We=Re.refKey,dt=We===void 0?"ref":We,ot=Re.ref,je=C1(Re,k1e),pt=te===void 0?{}:te;return pt.suppressRefError,nn((Me={},Me[dt]=W0(ot,function(U){v.current=U}),Me.id=N.menuId,Me.role="listbox",Me["aria-labelledby"]=je&&je["aria-label"]?void 0:""+N.labelId,Me.onMouseLeave=Wo(Ze,function(){g({type:UF})}),Me),je)},[g,oe,N]),H=C.useCallback(function(ke){var te,Me,Re=ke===void 0?{}:ke,Ze=Re.item,We=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,je=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,re=Re.onClick;Re.onPress;var de=Re.disabled,xe=C1(Re,x1e),ye=q.current,Te=ye.props,Le=ye.state,ze=f1e(Ze,We,Te.items,"Pass either item or index to getItemProps!"),Ye=ze[1],jt="onClick",ue=re,Ee=function(){Ye!==Le.highlightedIndex&&(Q.current=!1,g({type:$F,index:Ye,disabled:de}))},qe=function(){g({type:K7,index:Ye})},j=function(Ve){return Ve.preventDefault()};return nn((te={},te[ot]=W0(je,function(me){me&&(w.current[N.getItemId(Ye)]=me)}),te.disabled=de,te.role="option",te["aria-selected"]=""+(Ye===Le.highlightedIndex),te.id=N.getItemId(Ye),te),!de&&(Me={},Me[jt]=Wo(ue,qe),Me),{onMouseMove:Wo(pt,Ee),onMouseDown:Wo(U,j)},xe)},[g,q,Q,N]),W=C.useCallback(function(ke){var te,Me=ke===void 0?{}:ke,Re=Me.onClick;Me.onPress;var Ze=Me.refKey,We=Ze===void 0?"ref":Ze,dt=Me.ref,ot=C1(Me,I1e),je=q.current.state,pt=function(){g({type:zF})};return nn((te={},te[We]=W0(dt,function(U){R.current=U}),te["aria-controls"]=N.menuId,te["aria-expanded"]=je.isOpen,te.id=N.toggleButtonId,te.tabIndex=-1,te),!ot.disabled&&nn({},{onClick:Wo(Re,pt)}),ot)},[g,q,N]),se=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onKeyDown,We=Re.onChange,dt=Re.onInput,ot=Re.onFocus,je=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,re=Re.ref,de=C1(Re,R1e),xe=te===void 0?{}:te;xe.suppressRefError;var ye=q.current.state,Te=function(j){var me=n1e(j);me&&fe[me]&&fe[me](j)},Le=function(j){g({type:W7,inputValue:j.target.value})},ze=function(j){if(ye.isOpen&&!$.current.isMouseDown){var me=j.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:zg,selectItem:!me})}},Ye=function(){ye.isOpen||g({type:q7})},jt="onChange",ue={};if(!de.disabled){var Ee;ue=(Ee={},Ee[jt]=Wo(We,dt,Le),Ee.onKeyDown=Wo(Ze,Te),Ee.onBlur=Wo(je,ze),Ee.onFocus=Wo(ot,Ye),Ee)}return nn((Me={},Me[U]=W0(re,function(qe){A.current=qe}),Me["aria-activedescendant"]=ye.isOpen&&ye.highlightedIndex>-1?N.getItemId(ye.highlightedIndex):"",Me["aria-autocomplete"]="list",Me["aria-controls"]=N.menuId,Me["aria-expanded"]=ye.isOpen,Me["aria-labelledby"]=de&&de["aria-label"]?void 0:""+N.labelId,Me.autoComplete="off",Me.id=N.inputId,Me.role="combobox",Me.value=ye.inputValue,Me),ue,de)},[oe,q,N,fe,g,$,o]),D=C.useCallback(function(){g({type:HF})},[g]),pe=C.useCallback(function(){g({type:GF})},[g]),le=C.useCallback(function(){g({type:jF})},[g]),L=C.useCallback(function(ke){g({type:VF,highlightedIndex:ke})},[g]),ie=C.useCallback(function(ke){g({type:Y7,selectedItem:ke})},[g]),Se=C.useCallback(function(ke){g({type:WF,inputValue:ke})},[g]),X=C.useCallback(function(){g({type:qF})},[g]);return{getItemProps:H,getLabelProps:ce,getMenuProps:De,getInputProps:se,getToggleButtonProps:W,toggleMenu:D,openMenu:le,closeMenu:pe,setHighlightedIndex:L,setInputValue:Se,selectItem:ie,reset:X,highlightedIndex:y,isOpen:b,selectedItem:T,inputValue:E}}function N1e(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}be.array,be.array,be.array,be.func,be.func,be.func,be.number,be.number,be.number,be.func,be.func,be.string,be.string,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});Kd.itemToString,Kd.stateReducer,Kd.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:XF,setPrototypeOf:TI,isFrozen:O1e,getPrototypeOf:D1e,getOwnPropertyDescriptor:ZF}=Object;let{freeze:ii,seal:Ya,create:QF}=Object,{apply:by,construct:yy}=typeof Reflect<"u"&&Reflect;ii||(ii=function(t){return t});Ya||(Ya=function(t){return t});by||(by=function(t,n,r){return t.apply(n,r)});yy||(yy=function(t,n){return new t(...n)});const Y0=va(Array.prototype.forEach),SI=va(Array.prototype.pop),ld=va(Array.prototype.push),Fh=va(String.prototype.toLowerCase),c4=va(String.prototype.toString),L1e=va(String.prototype.match),ud=va(String.prototype.replace),M1e=va(String.prototype.indexOf),F1e=va(String.prototype.trim),Ni=va(RegExp.prototype.test),cd=P1e(TypeError);function va(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Fh;TI&&TI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(O1e(t)||(t[r]=a),i=a)}e[i]=!0}return e}function r1(e){const t=QF(null);for(const[n,r]of XF(e))ZF(e,n)!==void 0&&(t[n]=r);return t}function X0(e,t){for(;e!==null;){const r=ZF(e,t);if(r){if(r.get)return va(r.get);if(typeof r.value=="function")return va(r.value)}e=D1e(e)}function n(r){return console.warn("fallback value for",r),null}return n}const wI=ii(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),d4=ii(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),p4=ii(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B1e=ii(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),f4=ii(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U1e=ii(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),AI=ii(["#text"]),CI=ii(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),h4=ii(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kI=ii(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z0=ii(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$1e=Ya(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z1e=Ya(/<%[\w\W]*|[\w\W]*%>/gm),H1e=Ya(/\${[\w\W]*}/gm),j1e=Ya(/^data-[\-\w.\u00B7-\uFFFF]/),G1e=Ya(/^aria-[\-\w]+$/),JF=Ya(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V1e=Ya(/^(?:\w+script|data):/i),W1e=Ya(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eP=Ya(/^html$/i);var xI=Object.freeze({__proto__:null,MUSTACHE_EXPR:$1e,ERB_EXPR:z1e,TMPLIT_EXPR:H1e,DATA_ATTR:j1e,ARIA_ATTR:G1e,IS_ALLOWED_URI:JF,IS_SCRIPT_OR_DATA:V1e,ATTR_WHITESPACE:W1e,DOCTYPE_NAME:eP});const q1e=function(){return typeof window>"u"?null:window},K1e=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function tP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q1e();const t=Ke=>tP(Ke);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,b=u.prototype,y=X0(b,"cloneNode"),T=X0(b,"nextSibling"),E=X0(b,"childNodes"),v=X0(b,"parentNode");if(typeof o=="function"){const Ke=n.createElement("template");Ke.content&&Ke.content.ownerDocument&&(n=Ke.content.ownerDocument)}let w,A="";const{implementation:R,createNodeIterator:k,createDocumentFragment:N,getElementsByTagName:B}=n,{importNode:q}=r;let P={};t.isSupported=typeof XF=="function"&&typeof v=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:$,TMPLIT_EXPR:oe,DATA_ATTR:fe,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:H}=xI;let{IS_ALLOWED_URI:W}=xI,se=null;const D=At({},[...wI,...d4,...p4,...f4,...AI]);let pe=null;const le=At({},[...CI,...h4,...kI,...Z0]);let L=Object.seal(QF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Se=null,X=!0,ke=!0,te=!1,Me=!0,Re=!1,Ze=!1,We=!1,dt=!1,ot=!1,je=!1,pt=!1,U=!0,re=!1;const de="user-content-";let xe=!0,ye=!1,Te={},Le=null;const ze=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ye=null;const jt=At({},["audio","video","img","source","image","track"]);let ue=null;const Ee=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",j="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let Ve=me,ge=!1,G=null;const K=At({},[qe,j,me],c4);let ne=null;const ve=["application/xhtml+xml","text/html"],Qe="text/html";let Fe=null,at=null;const rt=n.createElement("form"),Je=function(J){return J instanceof RegExp||J instanceof Function},Rt=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(at&&at===J)){if((!J||typeof J!="object")&&(J={}),J=r1(J),ne=ve.indexOf(J.PARSER_MEDIA_TYPE)===-1?ne=Qe:ne=J.PARSER_MEDIA_TYPE,Fe=ne==="application/xhtml+xml"?c4:Fh,se="ALLOWED_TAGS"in J?At({},J.ALLOWED_TAGS,Fe):D,pe="ALLOWED_ATTR"in J?At({},J.ALLOWED_ATTR,Fe):le,G="ALLOWED_NAMESPACES"in J?At({},J.ALLOWED_NAMESPACES,c4):K,ue="ADD_URI_SAFE_ATTR"in J?At(r1(Ee),J.ADD_URI_SAFE_ATTR,Fe):Ee,Ye="ADD_DATA_URI_TAGS"in J?At(r1(jt),J.ADD_DATA_URI_TAGS,Fe):jt,Le="FORBID_CONTENTS"in J?At({},J.FORBID_CONTENTS,Fe):ze,ie="FORBID_TAGS"in J?At({},J.FORBID_TAGS,Fe):{},Se="FORBID_ATTR"in J?At({},J.FORBID_ATTR,Fe):{},Te="USE_PROFILES"in J?J.USE_PROFILES:!1,X=J.ALLOW_ARIA_ATTR!==!1,ke=J.ALLOW_DATA_ATTR!==!1,te=J.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=J.SAFE_FOR_TEMPLATES||!1,Ze=J.WHOLE_DOCUMENT||!1,ot=J.RETURN_DOM||!1,je=J.RETURN_DOM_FRAGMENT||!1,pt=J.RETURN_TRUSTED_TYPE||!1,dt=J.FORCE_BODY||!1,U=J.SANITIZE_DOM!==!1,re=J.SANITIZE_NAMED_PROPS||!1,xe=J.KEEP_CONTENT!==!1,ye=J.IN_PLACE||!1,W=J.ALLOWED_URI_REGEXP||JF,Ve=J.NAMESPACE||me,L=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(ke=!1),je&&(ot=!0),Te&&(se=At({},[...AI]),pe=[],Te.html===!0&&(At(se,wI),At(pe,CI)),Te.svg===!0&&(At(se,d4),At(pe,h4),At(pe,Z0)),Te.svgFilters===!0&&(At(se,p4),At(pe,h4),At(pe,Z0)),Te.mathMl===!0&&(At(se,f4),At(pe,kI),At(pe,Z0))),J.ADD_TAGS&&(se===D&&(se=r1(se)),At(se,J.ADD_TAGS,Fe)),J.ADD_ATTR&&(pe===le&&(pe=r1(pe)),At(pe,J.ADD_ATTR,Fe)),J.ADD_URI_SAFE_ATTR&&At(ue,J.ADD_URI_SAFE_ATTR,Fe),J.FORBID_CONTENTS&&(Le===ze&&(Le=r1(Le)),At(Le,J.FORBID_CONTENTS,Fe)),xe&&(se["#text"]=!0),Ze&&At(se,["html","head","body"]),se.table&&(At(se,["tbody"]),delete ie.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=J.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=K1e(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ii&&ii(J),at=J}},Qt=At({},["mi","mo","mn","ms","mtext"]),kt=At({},["foreignobject","desc","title","annotation-xml"]),rn=At({},["title","style","font","a","script"]),Xt=At({},d4);At(Xt,p4),At(Xt,B1e);const Wr=At({},f4);At(Wr,U1e);const qr=function(J){let Be=v(J);(!Be||!Be.tagName)&&(Be={namespaceURI:Ve,tagName:"template"});const it=Fh(J.tagName),un=Fh(Be.tagName);return G[J.namespaceURI]?J.namespaceURI===j?Be.namespaceURI===me?it==="svg":Be.namespaceURI===qe?it==="svg"&&(un==="annotation-xml"||Qt[un]):!!Xt[it]:J.namespaceURI===qe?Be.namespaceURI===me?it==="math":Be.namespaceURI===j?it==="math"&&kt[un]:!!Wr[it]:J.namespaceURI===me?Be.namespaceURI===j&&!kt[un]||Be.namespaceURI===qe&&!Qt[un]?!1:!Wr[it]&&(rn[it]||!Xt[it]):!!(ne==="application/xhtml+xml"&&G[J.namespaceURI]):!1},Kr=function(J){ld(t.removed,{element:J});try{J.parentNode.removeChild(J)}catch{J.remove()}},Aa=function(J,Be){try{ld(t.removed,{attribute:Be.getAttributeNode(J),from:Be})}catch{ld(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(J),J==="is"&&!pe[J])if(ot||je)try{Kr(Be)}catch{}else try{Be.setAttribute(J,"")}catch{}},si=function(J){let Be=null,it=null;if(dt)J=""+J;else{const or=L1e(J,/^[\r\n\t ]+/);it=or&&or[0]}ne==="application/xhtml+xml"&&Ve===me&&(J=''+J+"");const un=w?w.createHTML(J):J;if(Ve===me)try{Be=new m().parseFromString(un,ne)}catch{}if(!Be||!Be.documentElement){Be=R.createDocument(Ve,"template",null);try{Be.documentElement.innerHTML=ge?A:un}catch{}}const ar=Be.body||Be.documentElement;return J&&it&&ar.insertBefore(n.createTextNode(it),ar.childNodes[0]||null),Ve===me?B.call(Be,Ze?"html":"body")[0]:Ze?Be.documentElement:ar},Or=function(J){return k.call(J.ownerDocument||J,J,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Es=function(J){return J instanceof f&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof p)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},vs=function(J){return typeof s=="function"&&J instanceof s},Yr=function(J,Be,it){P[J]&&Y0(P[J],un=>{un.call(t,Be,it,at)})},_s=function(J){let Be=null;if(Yr("beforeSanitizeElements",J,null),Es(J))return Kr(J),!0;const it=Fe(J.nodeName);if(Yr("uponSanitizeElement",J,{tagName:it,allowedTags:se}),J.hasChildNodes()&&!vs(J.firstElementChild)&&Ni(/<[/\w]/g,J.innerHTML)&&Ni(/<[/\w]/g,J.textContent))return Kr(J),!0;if(!se[it]||ie[it]){if(!ie[it]&&Dr(it)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it)))return!1;if(xe&&!Le[it]){const un=v(J)||J.parentNode,ar=E(J)||J.childNodes;if(ar&&un){const or=ar.length;for(let Zn=or-1;Zn>=0;--Zn)un.insertBefore(y(ar[Zn],!0),T(J))}}return Kr(J),!0}return J instanceof u&&!qr(J)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ni(/<\/no(script|embed|frames)/i,J.innerHTML)?(Kr(J),!0):(Re&&J.nodeType===3&&(Be=J.textContent,Y0([Q,$,oe],un=>{Be=ud(Be,un," ")}),J.textContent!==Be&&(ld(t.removed,{element:J.cloneNode()}),J.textContent=Be)),Yr("afterSanitizeElements",J,null),!1)},qt=function(J,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in rt))return!1;if(!(ke&&!Se[Be]&&Ni(fe,Be))){if(!(X&&Ni(ce,Be))){if(!pe[Be]||Se[Be]){if(!(Dr(J)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,J)||L.tagNameCheck instanceof Function&&L.tagNameCheck(J))&&(L.attributeNameCheck instanceof RegExp&&Ni(L.attributeNameCheck,Be)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(Be))||Be==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ni(W,ud(it,H,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&J!=="script"&&M1e(it,"data:")===0&&Ye[J])){if(!(te&&!Ni(De,ud(it,H,"")))){if(it)return!1}}}}}}return!0},Dr=function(J){return J.indexOf("-")>0},Si=function(J){Yr("beforeSanitizeAttributes",J,null);const{attributes:Be}=J;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};let un=Be.length;for(;un--;){const ar=Be[un],{name:or,namespaceURI:Zn,value:No}=ar,no=Fe(or);let Lr=or==="value"?No:F1e(No);if(it.attrName=no,it.attrValue=Lr,it.keepAttr=!0,it.forceKeepAttr=void 0,Yr("uponSanitizeAttribute",J,it),Lr=it.attrValue,it.forceKeepAttr||(Aa(or,J),!it.keepAttr))continue;if(!Me&&Ni(/\/>/i,Lr)){Aa(or,J);continue}Re&&Y0([Q,$,oe],vf=>{Lr=ud(Lr,vf," ")});const Ef=Fe(J.nodeName);if(qt(Ef,no,Lr)){if(re&&(no==="id"||no==="name")&&(Aa(or,J),Lr=de+Lr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Zn)switch(g.getAttributeType(Ef,no)){case"TrustedHTML":{Lr=w.createHTML(Lr);break}case"TrustedScriptURL":{Lr=w.createScriptURL(Lr);break}}try{Zn?J.setAttributeNS(Zn,or,Lr):J.setAttribute(or,Lr),SI(t.removed)}catch{}}}Yr("afterSanitizeAttributes",J,null)},Nl=function Ke(J){let Be=null;const it=Or(J);for(Yr("beforeSanitizeShadowDOM",J,null);Be=it.nextNode();)Yr("uponSanitizeShadowNode",Be,null),!_s(Be)&&(Be.content instanceof a&&Ke(Be.content),Si(Be));Yr("afterSanitizeShadowDOM",J,null)};return t.sanitize=function(Ke){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,un=null,ar=null;if(ge=!Ke,ge&&(Ke=""),typeof Ke!="string"&&!vs(Ke))if(typeof Ke.toString=="function"){if(Ke=Ke.toString(),typeof Ke!="string")throw cd("dirty is not a string, aborting")}else throw cd("toString is not a function");if(!t.isSupported)return Ke;if(We||Rt(J),t.removed=[],typeof Ke=="string"&&(ye=!1),ye){if(Ke.nodeName){const No=Fe(Ke.nodeName);if(!se[No]||ie[No])throw cd("root node is forbidden and cannot be sanitized in-place")}}else if(Ke instanceof s)Be=si(""),it=Be.ownerDocument.importNode(Ke,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Ze&&Ke.indexOf("<")===-1)return w&&pt?w.createHTML(Ke):Ke;if(Be=si(Ke),!Be)return ot?null:pt?A:""}Be&&dt&&Kr(Be.firstChild);const or=Or(ye?Ke:Be);for(;un=or.nextNode();)_s(un)||(un.content instanceof a&&Nl(un.content),Si(un));if(ye)return Ke;if(ot){if(je)for(ar=N.call(Be.ownerDocument);Be.firstChild;)ar.appendChild(Be.firstChild);else ar=Be;return(pe.shadowroot||pe.shadowrootmode)&&(ar=q.call(r,ar,!0)),ar}let Zn=Ze?Be.outerHTML:Be.innerHTML;return Ze&&se["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ni(eP,Be.ownerDocument.doctype.name)&&(Zn=" +`+Zn),Re&&Y0([Q,$,oe],No=>{Zn=ud(Zn,No," ")}),w&&pt?w.createHTML(Zn):Zn},t.setConfig=function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rt(Ke),We=!0},t.clearConfig=function(){at=null,We=!1},t.isValidAttribute=function(Ke,J,Be){at||Rt({});const it=Fe(Ke),un=Fe(J);return qt(it,un,Be)},t.addHook=function(Ke,J){typeof J=="function"&&(P[Ke]=P[Ke]||[],ld(P[Ke],J))},t.removeHook=function(Ke){if(P[Ke])return SI(P[Ke])},t.removeHooks=function(Ke){P[Ke]&&(P[Ke]=[])},t.removeAllHooks=function(){P={}},t}var Y1e=tP(),Z7={};const X1e={folder:["folder","white"],"karma.conf.js":["karma","green"],"karma.conf.coffee":["karma","green"],"README.md":["info","blue"],"CHANGELOG.md":["clock","blue"],CHANGELOG:["clock","blue"],"CHANGES.md":["clock","blue"],"VERSION.md":["clock","blue"],VERSION:["clock","blue"],mvnw:["maven","red"],"tsconfig.json":["tsconfig","blue"],"swagger.json":["json","green"],"swagger.yml":["json","green"],"swagger.yaml":["json","green"],"mime.types":["config","grey-light"],Jenkinsfile:["jenkins","red"],"babel.config.js":["babel","yellow"],"babel.config.json":["babel","yellow"],"babel.config.cjs":["babel","yellow"],"bower.json":["bower","orange"],"Bower.json":["bower","orange"],"firebase.json":["firebase","orange"],geckodriver:["firefox","orange"],"Gruntfile.js":["grunt","orange"],"gruntfile.babel.js":["grunt","orange"],"Gruntfile.babel.js":["grunt","orange"],"gruntfile.js":["grunt","orange"],"Gruntfile.coffee":["grunt","orange"],"gruntfile.coffee":["grunt","orange"],"ionic.config.json":["ionic","blue"],"Ionic.config.json":["ionic","blue"],"ionic.project":["ionic","blue"],"Ionic.project":["ionic","blue"],"platformio.ini":["platformio","orange"],"rollup.config.js":["rollup","red"],"sass-lint.yml":["sass","pink"],"stylelint.config.js":["stylelint","white"],"stylelint.config.cjs":["stylelint","white"],"yarn.clean":["yarn","blue"],"yarn.lock":["yarn","blue"],"webpack.config.js":["webpack","blue"],"webpack.config.build.js":["webpack","blue"],"webpack.common.js":["webpack","blue"],"webpack.dev.js":["webpack","blue"],"webpack.prod.js":["webpack","blue"],"npm-debug.log":["npm_ignored","ignore"]},Z1e={".bsl":["bsl","red"],".mdo":["mdo","red"],".cls":["salesforce","blue"],".apex":["salesforce","blue"],".asm":["asm","red"],".s":["asm","red"],".bicep":["bicep","blue"],".c":["c","blue"],".h":["c","purple"],".m":["c","yellow"],".cs":["c-sharp","blue"],".cshtml":["html","blue"],".aspx":["html","blue"],".ascx":["html","green"],".asax":["html","yellow"],".master":["html","yellow"],".cc":["cpp","blue"],".cpp":["cpp","blue"],".cxx":["cpp","blue"],".c++":["cpp","blue"],".hh":["cpp","purple"],".hpp":["cpp","purple"],".hxx":["cpp","purple"],".h++":["cpp","purple"],".mm":["cpp","yellow"],".clj":["clojure","green"],".cljs":["clojure","green"],".cljc":["clojure","green"],".edn":["clojure","blue"],".cfc":["coldfusion","blue"],".cfm":["coldfusion","blue"],".coffee":["coffee","yellow"],".litcoffee":["coffee","yellow"],".config":["config","grey-light"],".cfg":["config","grey-light"],".conf":["config","grey-light"],".cr":["crystal","white"],".ecr":["crystal_embedded","white"],".slang":["crystal_embedded","white"],".cson":["json","yellow"],".css":["css","blue"],".css.map":["css","blue"],".sss":["css","blue"],".csv":["csv","green"],".xls":["xls","green"],".xlsx":["xls","green"],".cu":["cu","green"],".cuh":["cu","purple"],".hu":["cu","purple"],".cake":["cake","red"],".ctp":["cake_php","red"],".d":["d","red"],".doc":["word","blue"],".docx":["word","blue"],".ejs":["ejs","yellow"],".ex":["elixir","purple"],".exs":["elixir_script","purple"],".elm":["elm","blue"],".ico":["favicon","yellow"],".fs":["f-sharp","blue"],".fsx":["f-sharp","blue"],".gitignore":["git","ignore"],".gitconfig":["git","ignore"],".gitkeep":["git","ignore"],".gitattributes":["git","ignore"],".gitmodules":["git","ignore"],".go":["go2","blue"],".slide":["go","blue"],".article":["go","blue"],".gd":["godot","blue"],".godot":["godot","red"],".tres":["godot","yellow"],".tscn":["godot","purple"],".gradle":["gradle","blue"],".groovy":["grails","green"],".gsp":["grails","green"],".gql":["graphql","pink"],".graphql":["graphql","pink"],".graphqls":["graphql","pink"],".hack":["hacklang","orange"],".haml":["haml","red"],".handlebars":["mustache","orange"],".hbs":["mustache","orange"],".hjs":["mustache","orange"],".hs":["haskell","purple"],".lhs":["haskell","purple"],".hx":["haxe","orange"],".hxs":["haxe","yellow"],".hxp":["haxe","blue"],".hxml":["haxe","purple"],".html":["html","orange"],".jade":["jade","red"],".java":["java","red"],".class":["java","red"],".classpath":["java","red"],".properties":["java","red"],".js":["javascript","yellow"],".js.map":["javascript","yellow"],".spec.js":["javascript","orange"],".test.js":["javascript","orange"],".es":["javascript","yellow"],".es5":["javascript","yellow"],".es6":["javascript","yellow"],".es7":["javascript","yellow"],".jinja":["jinja","red"],".jinja2":["jinja","red"],".json":["json","yellow"],".jl":["julia","purple"],".kt":["kotlin","orange"],".kts":["kotlin","orange"],".dart":["dart","blue"],".less":["less","blue"],".liquid":["liquid","green"],".ls":["livescript","blue"],".lua":["lua","blue"],".markdown":["markdown","blue"],".md":["markdown","blue"],".argdown":["argdown","blue"],".ad":["argdown","blue"],".mustache":["mustache","orange"],".stache":["mustache","orange"],".nim":["nim","yellow"],".nims":["nim","yellow"],".github-issues":["github","white"],".ipynb":["notebook","blue"],".njk":["nunjucks","green"],".nunjucks":["nunjucks","green"],".nunjs":["nunjucks","green"],".nunj":["nunjucks","green"],".njs":["nunjucks","green"],".nj":["nunjucks","green"],".npm-debug.log":["npm","ignore"],".npmignore":["npm","red"],".npmrc":["npm","red"],".ml":["ocaml","orange"],".mli":["ocaml","orange"],".cmx":["ocaml","orange"],".cmxa":["ocaml","orange"],".odata":["odata","orange"],".pl":["perl","blue"],".php":["php","purple"],".php.inc":["php","purple"],".pipeline":["pipeline","orange"],".pddl":["pddl","purple"],".plan":["plan","green"],".happenings":["happenings","blue"],".ps1":["powershell","blue"],".psd1":["powershell","blue"],".psm1":["powershell","blue"],".prisma":["prisma","blue"],".pug":["pug","red"],".pp":["puppet","yellow"],".epp":["puppet","yellow"],".purs":["purescript","white"],".py":["python","blue"],".jsx":["react","blue"],".spec.jsx":["react","orange"],".test.jsx":["react","orange"],".cjsx":["react","blue"],".spec.tsx":["react","orange"],".test.tsx":["react","orange"],".re":["reasonml","red"],".res":["rescript","red"],".resi":["rescript","pink"],".R":["R","blue"],".rmd":["R","blue"],".rb":["ruby","red"],".erb":["html_erb","red"],".erb.html":["html_erb","red"],".html.erb":["html_erb","red"],".rs":["rust","grey-light"],".sass":["sass","pink"],".scss":["sass","pink"],".springBeans":["spring","green"],".slim":["slim","orange"],".smarty.tpl":["smarty","yellow"],".tpl":["smarty","yellow"],".sbt":["sbt","blue"],".scala":["scala","red"],".sol":["ethereum","blue"],".styl":["stylus","green"],".svelte":["svelte","red"],".swift":["swift","orange"],".sql":["db","pink"],".soql":["db","blue"],".tf":["terraform","purple"],".tf.json":["terraform","purple"],".tfvars":["terraform","purple"],".tex":["tex","blue"],".sty":["tex","yellow"],".dtx":["tex","orange"],".ins":["tex","white"],".txt":["default","white"],".toml":["config","grey-light"],".twig":["twig","green"],".ts":["typescript","blue"],".tsx":["typescript","blue"],".spec.ts":["typescript","orange"],".test.ts":["typescript","orange"],".vala":["vala","grey-light"],".vapi":["vala","grey-light"],".component":["html","orange"],".vue":["vue","green"],".wasm":["wasm","purple"],".wat":["wat","purple"],".xml":["xml","orange"],".yml":["yml","purple"],".yaml":["yml","purple"],".pro":["prolog","orange"],".jar":["zip","red"],".zip":["zip","grey-light"],".wgt":["wgt","blue"],".ai":["illustrator","yellow"],".psd":["photoshop","blue"],".pdf":["pdf","red"],".eot":["font","red"],".ttf":["font","red"],".woff":["font","red"],".woff2":["font","red"],".gif":["image","purple"],".jpg":["image","purple"],".jpeg":["image","purple"],".png":["image","purple"],".pxm":["image","purple"],".svg":["svg","purple"],".svgx":["image","purple"],".tiff":["image","purple"],".webp":["image","purple"],".sublime-project":["sublime","orange"],".sublime-workspace":["sublime","orange"],".code-search":["code-search","purple"],".sh":["shell","green"],".zsh":["shell","green"],".fish":["shell","green"],".zshrc":["shell","green"],".bashrc":["shell","green"],".mov":["video","pink"],".ogv":["video","pink"],".webm":["video","pink"],".avi":["video","pink"],".mpg":["video","pink"],".mp4":["video","pink"],".mp3":["audio","purple"],".ogg":["audio","purple"],".wav":["audio","purple"],".flac":["audio","purple"],".3ds":["svg","blue"],".3dm":["svg","blue"],".stl":["svg","blue"],".obj":["svg","blue"],".dae":["svg","blue"],".bat":["windows","blue"],".cmd":["windows","blue"],".babelrc":["babel","yellow"],".babelrc.js":["babel","yellow"],".babelrc.cjs":["babel","yellow"],".bowerrc":["bower","orange"],".codeclimate.yml":["code-climate","green"],".eslintrc":["eslint","purple"],".eslintrc.js":["eslint","purple"],".eslintrc.cjs":["eslint","purple"],".eslintrc.yaml":["eslint","purple"],".eslintrc.yml":["eslint","purple"],".eslintrc.json":["eslint","purple"],".eslintignore":["eslint","grey"],".firebaserc":["firebase","orange"],".jshintrc":["javascript","blue"],".jscsrc":["javascript","blue"],".stylelintrc":["stylelint","white"],".stylelintrc.json":["stylelint","white"],".stylelintrc.yaml":["stylelint","white"],".stylelintrc.yml":["stylelint","white"],".stylelintrc.js":["stylelint","white"],".stylelintignore":["stylelint","grey"],".direnv":["config","grey-light"],".env":["config","grey-light"],".static":["config","grey-light"],".editorconfig":["config","grey-light"],".slugignore":["config","grey-light"],".tmp":["clock","grey-light"],".htaccess":["config","grey-light"],".key":["lock","green"],".cert":["lock","green"],".cer":["lock","green"],".crt":["lock","green"],".pem":["lock","green"],".DS_Store":["ignored","ignore"]},Q1e=[["TODO",["todo","blue"]],["Procfile",["heroku","purple"]],["cmakelists.txt",["makefile","blue"]],["CMakeLists.txt",["makefile","blue"]],["CMAKELISTS.txt",["makefile","blue"]],["CMAKELISTS.TXT",["makefile","blue"]],["omakefile",["makefile","grey-light"]],["OMakefile",["makefile","grey-light"]],["OMAKEFILE",["makefile","grey-light"]],["qmakefile",["makefile","purple"]],["QMakefile",["makefile","purple"]],["QMAKEFILE",["makefile","purple"]],["makefile",["makefile","orange"]],["Makefile",["makefile","orange"]],["MAKEFILE",["makefile","orange"]],["CONTRIBUTING",["license","red"]],["COMPILING",["license","orange"]],["COPYING",["license","yellow"]],["LICENCE.md",["license","yellow"]],["LICENSE.md",["license","yellow"]],["LICENCE",["license","yellow"]],["LICENSE",["license","yellow"]],["gulpfile.js",["gulp","red"]],["gulpfile",["gulp","red"]],["Gulpfile",["gulp","red"]],["GULPFILE",["gulp","red"]],["docker-compose.override.yaml",["docker","pink"]],["docker-compose.override.yml",["docker","pink"]],["docker-compose.yaml",["docker","pink"]],["docker-compose.yml",["docker","pink"]],["docker-healthcheck",["docker","green"]],[".dockerignore",["docker","grey"]],["DOCKERFILE",["docker","blue"]],["Dockerfile",["docker","blue"]],["dockerfile",["docker","blue"]],["gemfile",["ruby","red"]],["Gemfile",["ruby","red"]],["mix",["hex","red"]]],J1e={files:X1e,extensions:Z1e,partials:Q1e,default:["default","white"]},ece='',tce='',nce='',rce='',ice='',ace='',oce='',sce='',lce='',uce='',cce='',dce='',pce='',fce='',hce='',gce='',mce='',bce='',yce='',Ece='',vce='',_ce='',Tce='',Sce='',wce='',Ace='',Cce='',kce='',xce='',Ice='',Rce='',Nce='',Oce='',Dce='',Lce='',Mce='',Fce='',Pce='',Bce='',Uce='',$ce='',zce='',Hce='',jce='',Gce='',Vce='',Wce='',qce='',Kce='',Yce='',Xce='',Zce='',Qce='',Jce='',ede='',tde='',nde='',rde='',ide='',ade='',ode='',sde='',lde='',ude='',cde='',dde='',pde='',fde='',hde='',gde='',mde='',bde='',yde='',Ede='',vde='',_de='',Tde='',Sde='',wde='',Ade='',Cde='',kde='',xde='',Ide='',Rde='',Nde='',Ode='',Dde='',Lde='',Mde='',Fde='',Pde='',Bde='',Ude='',$de='',zde='',Hde='',jde='',Gde='',Vde='',Wde='',qde='',Kde='',Yde='',Xde='',Zde='',Qde='',Jde='',epe='',tpe='',npe='',rpe='',ipe='',ape='',ope='',spe='',lpe='',upe='',cpe='',dpe='',ppe='',fpe='',hpe='',gpe='',mpe='',bpe='',ype='',Epe='',vpe='',_pe='',Tpe='',Spe='',wpe='',Ape='',Cpe='',kpe='',xpe='',Ipe='',Rpe='',Npe='',Ope='',Dpe='',Lpe='',Mpe={folder:ece,bsl:tce,mdo:nce,salesforce:rce,asm:ice,bicep:ace,c:oce,"c-sharp":'',html:sce,cpp:lce,clojure:uce,coldfusion:cce,coffee:dce,config:pce,crystal:fce,crystal_embedded:hce,json:gce,css:mce,csv:bce,xls:yce,cu:Ece,cake:vce,cake_php:_ce,d:Tce,word:Sce,ejs:wce,elixir:Ace,elixir_script:Cce,hex:kce,elm:xce,favicon:Ice,"f-sharp":'',git:Rce,go2:Nce,go:Oce,godot:Dce,gradle:Lce,grails:Mce,graphql:Fce,hacklang:Pce,haml:Bce,mustache:Uce,haskell:$ce,haxe:zce,jade:Hce,java:jce,javascript:Gce,jinja:Vce,julia:Wce,karma:qce,kotlin:Kce,dart:Yce,less:Xce,liquid:Zce,livescript:Qce,lua:Jce,markdown:ede,argdown:tde,info:nde,clock:rde,maven:ide,nim:ade,github:ode,notebook:sde,nunjucks:lde,npm:ude,ocaml:cde,odata:dde,perl:pde,php:fde,pipeline:hde,pddl:gde,plan:mde,happenings:bde,powershell:yde,prisma:Ede,pug:vde,puppet:_de,purescript:Tde,python:Sde,react:wde,reasonml:Ade,rescript:Cde,R:kde,ruby:xde,html_erb:Ide,rust:Rde,sass:Nde,spring:Ode,slim:Dde,smarty:Lde,sbt:Mde,scala:Fde,ethereum:Pde,stylus:Bde,svelte:Ude,swift:$de,db:zde,terraform:Hde,tex:jde,default:'',twig:Gde,typescript:Vde,tsconfig:Wde,vala:qde,vue:Kde,wasm:Yde,wat:Xde,xml:Zde,yml:Qde,prolog:Jde,zip:epe,wgt:tpe,illustrator:npe,photoshop:rpe,pdf:ipe,font:ape,image:ope,svg:spe,sublime:lpe,"code-search":'',shell:upe,video:cpe,audio:dpe,windows:ppe,jenkins:fpe,babel:hpe,bower:gpe,docker:mpe,"code-climate":'',eslint:bpe,firebase:ype,firefox:Epe,grunt:vpe,gulp:_pe,ionic:Tpe,platformio:Spe,rollup:wpe,stylelint:Ape,yarn:Cpe,webpack:kpe,lock:xpe,license:Ipe,makefile:Rpe,heroku:Npe,todo:Ope,npm_ignored:Dpe,ignored:Lpe};var Hg=Jl&&Jl.__assign||function(){return Hg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return i[1]}return i1.default},nP=function(e){var t=Upe(e),n=t[0],r=t[1];return{svg:Bpe[n],color:r}};Z7.getIcon=nP;var $pe=function(e){return function(t){var n=nP(t);return Hg(Hg({},n),{color:e[n.color]})}},zpe=Z7.themeIcons=$pe;const Ey=({filename:e,height:t,width:n})=>{const r=zpe({blue:"#268bd2",grey:"#657b83","grey-light":"#839496",green:"#859900",orange:"#cb4b16",pink:"#d33682",purple:"#6c71c4",red:"#dc322f",white:"#fdf6e3",yellow:"#b58900",ignore:"#586e75"}),{svg:i,color:a}=r(e),o=Y1e.sanitize(i);return I.jsx("div",{dangerouslySetInnerHTML:{__html:o},style:{width:n,height:t,fill:a}})};var Q7={};Object.defineProperty(Q7,"__esModule",{value:!0});Q7.testFunc=void 0;var Hpe=function(){console.log("test")};Q7.testFunc=Hpe;function jpe(e,t){var n;if(typeof vscode>"u"){if(localStorage.getItem("ide"),window.postIntellijMessage===void 0)throw console.log("Unable to send message: postIntellijMessage is undefined. ",e,t),new Error("postIntellijMessage is undefined");(n=window.postIntellijMessage)==null||n.call(window,e,t);return}vscode.postMessage({type:e,...t})}function qa(e,t,n=0){try{jpe(e,t)}catch(r){n<5?(console.log(`Attempt ${n} failed. Retrying...`),setTimeout(()=>qa(e,t,n+1),Math.pow(2,n)*1e3)):console.error("Max attempts reached. Message could not be sent.",r)}}var rP={exports:{}},iP={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var sc=C;function Gpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vpe=typeof Object.is=="function"?Object.is:Gpe,Wpe=sc.useState,qpe=sc.useEffect,Kpe=sc.useLayoutEffect,Ype=sc.useDebugValue;function Xpe(e,t){var n=t(),r=Wpe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return Kpe(function(){i.value=n,i.getSnapshot=t,g4(i)&&a({inst:i})},[e,n,t]),qpe(function(){return g4(i)&&a({inst:i}),e(function(){g4(i)&&a({inst:i})})},[e]),Ype(n),n}function g4(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vpe(e,n)}catch{return!0}}function Zpe(e,t){return t()}var Qpe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Zpe:Xpe;iP.useSyncExternalStore=sc.useSyncExternalStore!==void 0?sc.useSyncExternalStore:Qpe;rP.exports=iP;var Jpe=rP.exports,aP={exports:{}},oP={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var O2=C,efe=Jpe;function tfe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nfe=typeof Object.is=="function"?Object.is:tfe,rfe=efe.useSyncExternalStore,ife=O2.useRef,afe=O2.useEffect,ofe=O2.useMemo,sfe=O2.useDebugValue;oP.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=ife(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=ofe(function(){function u(g){if(!c){if(c=!0,p=g,g=r(g),i!==void 0&&o.hasValue){var b=o.value;if(i(b,g))return f=b}return f=g}if(b=f,nfe(p,g))return b;var y=r(g);return i!==void 0&&i(b,y)?b:(p=g,f=y)}var c=!1,p,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,i]);var s=rfe(e,a[0],a[1]);return afe(function(){o.hasValue=!0,o.value=s},[s]),sfe(s),s};aP.exports=oP;var lfe=aP.exports;function ufe(e){e()}let sP=ufe;const cfe=e=>sP=e,dfe=()=>sP,II=Symbol.for("react-redux-context"),RI=typeof globalThis<"u"?globalThis:{};function pfe(){var e;if(!C.createContext)return{};const t=(e=RI[II])!=null?e:RI[II]=new Map;let n=t.get(C.createContext);return n||(n=C.createContext(null),t.set(C.createContext,n)),n}const yl=pfe();function J7(e=yl){return function(){return C.useContext(e)}}const lP=J7(),ffe=()=>{throw new Error("uSES not initialized!")};let uP=ffe;const hfe=e=>{uP=e},gfe=(e,t)=>e===t;function mfe(e=yl){const t=e===yl?lP:J7(e);return function(r,i={}){const{equalityFn:a=gfe,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:p,stabilityCheck:f,noopCheck:m}=t();C.useRef(!0);const g=C.useCallback({[r.name](y){return r(y)}}[r.name],[r,f,o]),b=uP(c.addNestedSub,u.getState,p||u.getState,g,a);return C.useDebugValue(b),b}}const zt=mfe();function bfe(){const e=dfe();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,a=n={callback:r,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const NI={notify(){},get:()=>[]};function yfe(e,t){let n,r=NI;function i(f){return u(),r.subscribe(f)}function a(){r.notify()}function o(){p.onStateChange&&p.onStateChange()}function s(){return!!n}function u(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=bfe())}function c(){n&&(n(),n=void 0,r.clear(),r=NI)}const p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:u,tryUnsubscribe:c,getListeners:()=>r};return p}const Efe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vfe=Efe?C.useLayoutEffect:C.useEffect;function _fe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:a="once"}){const o=C.useMemo(()=>{const c=yfe(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:a}},[e,r,i,a]),s=C.useMemo(()=>e.getState(),[e]);vfe(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,s]);const u=t||yl;return C.createElement(u.Provider,{value:o},n)}function cP(e=yl){const t=e===yl?lP:J7(e);return function(){const{store:r}=t();return r}}const Tfe=cP();function Sfe(e=yl){const t=e===yl?Tfe:cP(e);return function(){return t().dispatch}}const eo=Sfe();hfe(lfe.useSyncExternalStoreWithSelector);cfe(l9.unstable_batchedUpdates);function za(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:eT(e)?2:tT(e)?3:0}function W1(e,t){return xc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function wfe(e,t){return xc(e)===2?e.get(t):e[t]}function dP(e,t,n){var r=xc(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function pP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function eT(e){return Rfe&&e instanceof Map}function tT(e){return Nfe&&e instanceof Set}function Zl(e){return e.o||e.t}function nT(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hP(e);delete t[kn];for(var n=q1(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Afe),Object.freeze(e),t&&Su(e,function(n,r){return rT(r,!0)},!0)),e}function Afe(){za(2)}function iT(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function So(e){var t=Sy[e];return t||za(18,e),t}function Cfe(e,t){Sy[e]||(Sy[e]=t)}function vy(){return Cp}function m4(e,t){t&&(So("Patches"),e.u=[],e.s=[],e.v=t)}function jg(e){_y(e),e.p.forEach(kfe),e.p=null}function _y(e){e===Cp&&(Cp=e.l)}function OI(e){return Cp={p:[],l:Cp,h:e,m:!0,_:0}}function kfe(e){var t=e[kn];t.i===0||t.i===1?t.j():t.g=!0}function b4(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||So("ES5").S(t,e,r),r?(n[kn].P&&(jg(t),za(4)),ps(e)&&(e=Gg(t,e),t.l||Vg(t,e)),t.u&&So("Patches").M(n[kn].t,e,t.u,t.s)):e=Gg(t,n,[]),jg(t),t.u&&t.v(t.u,t.s),e!==fP?e:void 0}function Gg(e,t,n){if(iT(t))return t;var r=t[kn];if(!r)return Su(t,function(s,u){return DI(e,r,t,s,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Vg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=nT(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),Su(a,function(s,u){return DI(e,r,i,s,u,n,o)}),Vg(e,i,!1),n&&e.u&&So("Patches").N(r,n,e.u,e.s)}return r.o}function DI(e,t,n,r,i,a,o){if(El(i)){var s=Gg(e,i,a&&t&&t.i!==3&&!W1(t.R,r)?a.concat(r):void 0);if(dP(n,r,s),!El(s))return;e.m=!1}else o&&n.add(i);if(ps(i)&&!iT(i)){if(!e.h.D&&e._<1)return;Gg(e,i),t&&t.A.l||Vg(e,i)}}function Vg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&rT(t,n)}function y4(e,t){var n=e[kn];return(n?Zl(n):e)[t]}function LI(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ks(e){e.P||(e.P=!0,e.l&&Ks(e.l))}function E4(e){e.o||(e.o=nT(e.t))}function Ty(e,t,n){var r=eT(t)?So("MapSet").F(t,n):tT(t)?So("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:vy(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,c=kp;o&&(u=[s],c=wd);var p=Proxy.revocable(u,c),f=p.revoke,m=p.proxy;return s.k=m,s.j=f,m}(t,n):So("ES5").J(t,n);return(n?n.A:vy()).p.push(r),r}function xfe(e){return El(e)||za(22,e),function t(n){if(!ps(n))return n;var r,i=n[kn],a=xc(n);if(i){if(!i.P&&(i.i<4||!So("ES5").K(i)))return i.t;i.I=!0,r=MI(n,a),i.I=!1}else r=MI(n,a);return Su(r,function(o,s){i&&wfe(i.t,o)===s||dP(r,o,t(s))}),a===3?new Set(r):r}(e)}function MI(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return nT(e)}function Ife(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var u=this[kn];return kp.get(u,a)},set:function(u){var c=this[kn];kp.set(c,a,u)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][kn];if(!s.P)switch(s.i){case 5:r(s)&&Ks(s);break;case 4:n(s)&&Ks(s)}}}function n(a){for(var o=a.t,s=a.k,u=q1(s),c=u.length-1;c>=0;c--){var p=u[c];if(p!==kn){var f=o[p];if(f===void 0&&!W1(o,p))return!0;var m=s[p],g=m&&m[kn];if(g?g.t!==f:!pP(m,f))return!0}}var b=!!o[kn];return u.length!==q1(o).length+(b?0:1)}function r(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var u=0;u1?E-1:0),w=1;w1?p-1:0),m=1;m=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=So("Patches").$;return El(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),ji=new Dfe,gP=ji.produce;ji.produceWithPatches.bind(ji);ji.setAutoFreeze.bind(ji);ji.setUseProxies.bind(ji);ji.applyPatches.bind(ji);ji.createDraft.bind(ji);ji.finishDraft.bind(ji);function xp(e){"@babel/helpers - typeof";return xp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xp(e)}function Lfe(e,t){if(xp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mfe(e){var t=Lfe(e,"string");return xp(t)==="symbol"?t:String(t)}function Ffe(e,t,n){return t=Mfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $I(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ur(1));return n(oT)(e,t)}if(typeof e!="function")throw new Error(Ur(2));var i=e,a=t,o=[],s=o,u=!1;function c(){s===o&&(s=o.slice())}function p(){if(u)throw new Error(Ur(3));return a}function f(y){if(typeof y!="function")throw new Error(Ur(4));if(u)throw new Error(Ur(5));var T=!0;return c(),s.push(y),function(){if(T){if(u)throw new Error(Ur(6));T=!1,c();var v=s.indexOf(y);s.splice(v,1),o=null}}}function m(y){if(!Pfe(y))throw new Error(Ur(7));if(typeof y.type>"u")throw new Error(Ur(8));if(u)throw new Error(Ur(9));try{u=!0,a=i(a,y)}finally{u=!1}for(var T=o=s,E=0;E"u")throw new Error(Ur(12));if(typeof n(void 0,{type:Wg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ur(13))})}function mP(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Ur(14));f[g]=T,p=p||T!==y}return p=p||a.length!==Object.keys(u).length,p?f:u}}function qg(){for(var e=arguments.length,t=new Array(e),n=0;n0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]{let n=e.active;typeof t.stop=="boolean"?n=!t.stop:n=!0;let r;t.index>e.history.length?r={...t.update}:t.delta===!0?(r={...e.history[t.index]},t.update.name&&(r.name=(r.name??"")+t.update.name),t.update.description&&(r.description=(r.description??"")+t.update.description),t.update.observations&&(r.observations=[...r.observations??[],...t.update.observations]),t.update.logs&&(r.logs=[...r.logs??[],...t.update.logs])):t.delta===!1&&(r={...e.history[t.index],...t.update});let i=[...e.history];return r&&(t.index>=i.length?i.push(r):i[t.index]=r),{...e,history:i,active:n}},newSession:(e,{payload:t})=>t?(console.log("NEW SESSION"),{...e,history:t.session_state.history,context_items:t.session_state.context_items,contextItemsAtIndex:{},active:!1,title:t.title,session_id:t.session_id}):{...e,history:[],context_items:[],contextItemsAtIndex:{},active:!1,title:"New Session",session_id:Xd()},setTitle:(e,{payload:t})=>({...e,title:t}),setActive:(e,{payload:t})=>({...e,active:t}),setHistory:(e,{payload:t})=>({...e,history:t}),deleteAtIndex:(e,{payload:t})=>{let n=[...e.history];return n[t]={...n[t],hide:!0},{...e,history:n}},addContextItem:(e,{payload:t})=>(console.log("HERE...",t),{...e,context_items:[...e.context_items,t]}),addContextItemAtIndex:(e,{payload:t})=>({...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:[...e.contextItemsAtIndex[t.index]??[],t.item]}}),addHighlightedCode:(e,{payload:t})=>{let n=[...e.context_items].map(a=>({...a,editing:!1}));const r=t.rangeInFileWithContents.filepath.split(/[\\/]/).pop();for(let a=0;aparseInt(g)-1);if(s>p||u{const n=t.ids.map(r=>`${r.provider_title}-${r.item_id}`);return typeof t.index>"u"?{...e,context_items:e.context_items.filter(r=>!n.includes(`${r.description.id.provider_title}-${r.description.id.item_id}`))}:{...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:(e.contextItemsAtIndex[t.index]??[]).filter(r=>!n.includes(`${r.description.id.provider_title}-${r.description.id.item_id}`))}}},setEditingAtIds:(e,{payload:t})=>{const n=t.ids.map(r=>r.item_id);return typeof t.index>"u"?{...e,context_items:e.context_items.map(r=>({...r,editing:n.includes(r.description.id.item_id)}))}:{...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:(e.contextItemsAtIndex[t.index]??[]).map(r=>({...r,editing:n.includes(r.description.id.item_id)}))}}}}}),{setActive:Zd,setHistory:KI,processSessionUpdate:g0e,newSession:uc,deleteAtIndex:S4,addContextItem:TP,addContextItemAtIndex:SP,addHighlightedCode:m0e,deleteContextWithIds:w4,setTitle:wP,setEditingAtIds:b0e}=_P.actions,y0e=_P.reducer,E0e=Ge.button` border: none; - color: ${Ht}; - background-color: ${Lt}; - border-radius: ${wt}; + color: ${Yt}; + background-color: ${Vt}; + border-radius: ${It}; padding: 4px; padding-left: 8px; padding-right: 8px; overflow: hidden; - font-size: ${e=>e.fontSize||nr()}px; + font-size: ${e=>e.fontSize||pr()}px; cursor: pointer; -`;He.div` +`;Ge.div` position: absolute; left: 0px; top: 0px; @@ -359,11 +375,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho display: grid; grid-gap: 0; align-items: center; - border-radius: ${wt}; + border-radius: ${It}; - background-color: ${Lt}; -`;He.div` - background-color: ${Lt}; + background-color: ${Vt}; +`;Ge.div` + background-color: ${Vt}; height: 100%; display: flex; align-items: center; @@ -371,7 +387,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &:hover { background-color: ${e=>e.backgroundColor}; } -`;const Qce=He.div` +`;const v0e=Ge.div` position: absolute; top: -10px; right: -10px; @@ -384,13 +400,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho align-items: center; justify-content: center; padding: 2px; -`,Jce=He.div` - border-radius: ${wt}; - background-color: ${Lt}; +`,_0e=Ge.div` + border-radius: ${It}; + background-color: ${Vt}; display: flex; align-items: center; justify-content: center; -`,ede=He(Zce)` +`,T0e=Ge(E0e)` position: relative; border-color: ${e=>e.borderColor||"transparent"}; border-width: 1px; @@ -398,14 +414,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &:focus { outline: none; - /* border-color: ${vt}; */ + /* border-color: ${Et}; */ text-decoration: underline; } -`,tde=He(vi)` +`,S0e=Ge(zi)` &:hover { background-color: ${e=>e.color}; } -`,nde=He(vi)` +`,w0e=Ge(zi)` ${e=>e.selected&&` background-color: ${e.color}; @@ -413,26 +429,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho background-color: ${e.color}; } `} -`,rde=e=>{const[t,n]=C.useState(!1),r=C.useContext(Ya),[i,a]=C.useState(void 0);C.useEffect(()=>{e.editing&&e.item.content.length>4e3?a("Editing such a large range may be slow"):a(void 0)},[e.editing,e.item]);const o=C.useRef(null),s=C.useRef(null);return I.jsxs("div",{style:{position:"relative"},children:[I.jsxs(Jce,{previewing:e.previewing,ref:o,children:[I.jsx(ede,{fontSize:nr(),borderColor:e.editing&&i?"red":void 0,ref:s,onMouseEnter:()=>{n(!0),e.onHover&&e.onHover(!0)},onMouseLeave:()=>{n(!1),e.onHover&&e.onHover(!1)},className:`pill-button-${e.stepIndex||"main"}`,onKeyDown:u=>{var c,p;u.key==="Backspace"?(c=e.onDelete)==null||c.call(e,e.stepIndex):u.key==="v"?(p=e.toggleViewContent)==null||p.call(e):u.key==="e"&&(r==null||r.setEditingAtIds([e.item.description.id.item_id]))},onClick:u=>{var c;(c=e.onClick)==null||c.call(e,u),r==null||r.previewContextItem(`${e.item.description.id.provider_title}-${e.item.description.id.item_id}`)},onBlur:u=>{var c,p;(c=o.current)!=null&&c.contains(u.relatedTarget)&&(u.preventDefault(),(p=s.current)==null||p.focus())},children:I.jsxs("span",{className:(t?"underline":"")+" flex",children:[["file","code"].includes(e.item.description.id.provider_title)&&I.jsx($b,{height:"16px",width:"16px",filename:e.item.description.name.split(" ").at(0)}),e.item.description.name]})}),(e.editingAny||e.focusing&&e.item.editable||e.editing&&e.editingAny)&&I.jsxs(I.Fragment,{children:[I.jsx(nde,{"data-tooltip-id":`circle-div-${e.item.description.name}`,text:e.editing?"Editing this range":"Edit this range (e)",onClick:()=>{var u,c;e.editing||r==null||r.setEditingAtIds([e.item.description.id.item_id]),e.editingAny||(u=e.prefixInputWithEdit)==null||u.call(e,!0),e.editingAny&&e.editing&&((c=e.prefixInputWithEdit)==null||c.call(e,!1))},tabIndex:-1,color:"#f0f4",selected:e.editing,children:I.jsx(KY,{width:"1.4em",height:"1.4em"})}),I.jsx(Gs,{id:`circle-div-${e.item.description.name}`,children:"Editing this range"})]}),e.focusing&&I.jsx(tde,{text:"Delete (⌫)",onClick:()=>{var u;return(u=e.onDelete)==null?void 0:u.call(e,e.stepIndex)},tabIndex:-1,color:"#f004",children:I.jsx(pD,{width:"1.4em",height:"1.4em"})})]}),I.jsx(Gs,{id:`edit-${e.index}`,children:e.item.editing?"Editing this section (with entire file as context)":"Edit this section"}),I.jsx(Gs,{id:`delete-${e.index}`,children:"Delete"}),e.editing&&i&&I.jsxs(I.Fragment,{children:[I.jsx(Qce,{"data-tooltip-id":`circle-div-${e.item.description.name}`,className:"z-10",children:I.jsx(lD,{style:{margin:"auto"},width:"1.0em",strokeWidth:2})}),I.jsx(Gs,{id:`circle-div-${e.item.description.name}`,children:i})]})]})};var u7={};Object.defineProperty(u7,"__esModule",{value:!0});u7.testFunc=void 0;var ide=function(){console.log("test")};u7.testFunc=ide;function ade(e,t){var n;if(typeof vscode>"u"){if(localStorage.getItem("ide"),window.postIntellijMessage===void 0)throw console.log("Unable to send message: postIntellijMessage is undefined. ",e,t),new Error("postIntellijMessage is undefined");(n=window.postIntellijMessage)==null||n.call(window,e,t);return}vscode.postMessage({type:e,...t})}function rl(e,t,n=0){try{ade(e,t)}catch(r){n<5?(console.log(`Attempt ${n} failed. Retrying...`),setTimeout(()=>rl(e,t,n+1),Math.pow(2,n)*1e3)):console.error("Max attempts reached. Message could not be sent.",r)}}const ode={};var zb=function(e,t){return zb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},zb(e,t)};function Xp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var en=function(){return en=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]"u"&&require("cross-fetch/polyfill"),c=new URL(i,this.url),a&&(p=new URLSearchParams,Object.keys(a).filter(function(w){return a[w]!==null}).map(function(w){return p.set(w,a[w])}),c.search=p.toString()),!((n=u.headers)===null||n===void 0)&&n["Content-Type"]||(o=JSON.stringify(o)),f=en(en({},this.headers),u.headers),y.label=1;case 1:return y.trys.push([1,6,,7]),m=this.httpClient?this.httpClient:fetch,g=m(c.toString(),en(en(en({},u),this.requestConfig),{method:r,body:o,headers:f})),this.httpClient?[4,g]:[3,3];case 2:return[2,y.sent()];case 3:return[4,g.then(function(w){return sde(w)})];case 4:return E=y.sent(),[4,E.json().catch(function(){})];case 5:return b=y.sent(),[2,b];case 6:return T=y.sent(),v=T.stack,lde(T,v,c.toString()),[3,7];case 7:return[2]}})})},e.prototype.get=function(t,n,r){return Ne(this,void 0,void 0,function(){return Oe(this,function(i){switch(i.label){case 0:return[4,this.request({method:"GET",url:t,params:n,config:r})];case 1:return[2,i.sent()]}})})},e.prototype.post=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"POST",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.put=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"PUT",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.patch=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"PATCH",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.delete=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"DELETE",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e}(),Fn=function(){function e(t){this.taskUid=t.taskUid,this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.enqueuedAt=new Date(t.enqueuedAt)}return e}(),Rk=function(){function e(t){this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.uid=t.uid,this.details=t.details,this.canceledBy=t.canceledBy,this.error=t.error,this.duration=t.duration,this.startedAt=new Date(t.startedAt),this.enqueuedAt=new Date(t.enqueuedAt),this.finishedAt=new Date(t.finishedAt)}return e}(),HM=function(){function e(t){this.httpRequest=new bg(t)}return e.prototype.getTask=function(t){return Ne(this,void 0,void 0,function(){var n,r;return Oe(this,function(i){switch(i.label){case 0:return n="tasks/".concat(t),[4,this.httpRequest.get(n)];case 1:return r=i.sent(),[2,new Rk(r)]}})})},e.prototype.getTasks=function(t){return t===void 0&&(t={}),Ne(this,void 0,void 0,function(){var n,r;return Oe(this,function(i){switch(i.label){case 0:return n="tasks",[4,this.httpRequest.get(n,H3(t))];case 1:return r=i.sent(),[2,en(en({},r),{results:r.results.map(function(a){return new Rk(a)})})]}})})},e.prototype.waitForTask=function(t,n){var r=n===void 0?{}:n,i=r.timeOutMs,a=i===void 0?5e3:i,o=r.intervalMs,s=o===void 0?50:o;return Ne(this,void 0,void 0,function(){var u,c;return Oe(this,function(p){switch(p.label){case 0:u=Date.now(),p.label=1;case 1:return Date.now()-u"u"?this.tokens.generateTenantToken(n,r,i):e.prototype.generateTenantToken.call(this,n,r,i)},t}(Ede);function Pa(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:c7(e)?2:d7(e)?3:0}function B1(e,t){return bc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ade(e,t){return bc(e)===2?e.get(t):e[t]}function GM(e,t,n){var r=bc(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function VM(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function c7(e){return Nde&&e instanceof Map}function d7(e){return Ode&&e instanceof Set}function Vl(e){return e.o||e.t}function p7(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=qM(e);delete t[Cn];for(var n=U1(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Cde),Object.freeze(e),t&&mu(e,function(n,r){return f7(r,!0)},!0)),e}function Cde(){Pa(2)}function h7(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function bo(e){var t=Vb[e];return t||Pa(18,e),t}function xde(e,t){Vb[e]||(Vb[e]=t)}function Hb(){return pp}function j3(e,t){t&&(bo("Patches"),e.u=[],e.s=[],e.v=t)}function Eg(e){jb(e),e.p.forEach(kde),e.p=null}function jb(e){e===pp&&(pp=e.l)}function Nk(e){return pp={p:[],l:pp,h:e,m:!0,_:0}}function kde(e){var t=e[Cn];t.i===0||t.i===1?t.j():t.g=!0}function G3(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||bo("ES5").S(t,e,r),r?(n[Cn].P&&(Eg(t),Pa(4)),is(e)&&(e=vg(t,e),t.l||yg(t,e)),t.u&&bo("Patches").M(n[Cn].t,e,t.u,t.s)):e=vg(t,n,[]),Eg(t),t.u&&t.v(t.u,t.s),e!==WM?e:void 0}function vg(e,t,n){if(h7(t))return t;var r=t[Cn];if(!r)return mu(t,function(s,u){return Ok(e,r,t,s,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return yg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=p7(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),mu(a,function(s,u){return Ok(e,r,i,s,u,n,o)}),yg(e,i,!1),n&&e.u&&bo("Patches").N(r,n,e.u,e.s)}return r.o}function Ok(e,t,n,r,i,a,o){if(pl(i)){var s=vg(e,i,a&&t&&t.i!==3&&!B1(t.R,r)?a.concat(r):void 0);if(GM(n,r,s),!pl(s))return;e.m=!1}else o&&n.add(i);if(is(i)&&!h7(i)){if(!e.h.D&&e._<1)return;vg(e,i),t&&t.A.l||yg(e,i)}}function yg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&f7(t,n)}function V3(e,t){var n=e[Cn];return(n?Vl(n):e)[t]}function Dk(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function $s(e){e.P||(e.P=!0,e.l&&$s(e.l))}function W3(e){e.o||(e.o=p7(e.t))}function Gb(e,t,n){var r=c7(t)?bo("MapSet").F(t,n):d7(t)?bo("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:Hb(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,c=fp;o&&(u=[s],c=dd);var p=Proxy.revocable(u,c),f=p.revoke,m=p.proxy;return s.k=m,s.j=f,m}(t,n):bo("ES5").J(t,n);return(n?n.A:Hb()).p.push(r),r}function Ide(e){return pl(e)||Pa(22,e),function t(n){if(!is(n))return n;var r,i=n[Cn],a=bc(n);if(i){if(!i.P&&(i.i<4||!bo("ES5").K(i)))return i.t;i.I=!0,r=Lk(n,a),i.I=!1}else r=Lk(n,a);return mu(r,function(o,s){i&&Ade(i.t,o)===s||GM(r,o,t(s))}),a===3?new Set(r):r}(e)}function Lk(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return p7(e)}function Rde(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var u=this[Cn];return fp.get(u,a)},set:function(u){var c=this[Cn];fp.set(c,a,u)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Cn];if(!s.P)switch(s.i){case 5:r(s)&&$s(s);break;case 4:n(s)&&$s(s)}}}function n(a){for(var o=a.t,s=a.k,u=U1(s),c=u.length-1;c>=0;c--){var p=u[c];if(p!==Cn){var f=o[p];if(f===void 0&&!B1(o,p))return!0;var m=s[p],g=m&&m[Cn];if(g?g.t!==f:!VM(m,f))return!0}}var E=!!o[Cn];return u.length!==U1(o).length+(E?0:1)}function r(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var u=0;u1?v-1:0),w=1;w1?p-1:0),m=1;m=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=bo("Patches").$;return pl(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),$i=new Lde,KM=$i.produce;$i.produceWithPatches.bind($i);$i.setAutoFreeze.bind($i);$i.setUseProxies.bind($i);$i.applyPatches.bind($i);$i.createDraft.bind($i);$i.finishDraft.bind($i);function hp(e){"@babel/helpers - typeof";return hp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hp(e)}function Mde(e,t){if(hp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fde(e){var t=Mde(e,"string");return hp(t)==="symbol"?t:String(t)}function Pde(e,t,n){return t=Fde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uk(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Fr(1));return n(YM)(e,t)}if(typeof e!="function")throw new Error(Fr(2));var i=e,a=t,o=[],s=o,u=!1;function c(){s===o&&(s=o.slice())}function p(){if(u)throw new Error(Fr(3));return a}function f(b){if(typeof b!="function")throw new Error(Fr(4));if(u)throw new Error(Fr(5));var T=!0;return c(),s.push(b),function(){if(T){if(u)throw new Error(Fr(6));T=!1,c();var y=s.indexOf(b);s.splice(y,1),o=null}}}function m(b){if(!Bde(b))throw new Error(Fr(7));if(typeof b.type>"u")throw new Error(Fr(8));if(u)throw new Error(Fr(9));try{u=!0,a=i(a,b)}finally{u=!1}for(var T=o=s,v=0;v"u")throw new Error(Fr(12));if(typeof n(void 0,{type:_g.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Fr(13))})}function $de(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Fr(14));f[g]=T,p=p||T!==b}return p=p||a.length!==Object.keys(u).length,p?f:u}}function Tg(){for(var e=arguments.length,t=new Array(e),n=0;n0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]{e.bottomMessage=t.payload},setBottomMessageCloseTimeout:(e,t)=>{e.bottomMessageCloseTimeout&&clearTimeout(e.bottomMessageCloseTimeout),e.bottomMessageCloseTimeout=t.payload},setDialogMessage:(e,t)=>{e.dialogMessage=t.payload},setDialogEntryOn:(e,t)=>{e.dialogEntryOn=t.payload},setShowDialog:(e,t)=>{e.showDialog=t.payload},setDisplayBottomMessageOnBottom:(e,t)=>{e.displayBottomMessageOnBottom=t.payload}}}),{setBottomMessage:au,setBottomMessageCloseTimeout:Wk,setDialogMessage:X3,setDialogEntryOn:fpe,setShowDialog:Q1,setDisplayBottomMessageOnBottom:hpe}=eF.actions,gpe=eF.reducer;var tF={exports:{}},nF={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var J1=C;function mpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bpe=typeof Object.is=="function"?Object.is:mpe,Epe=J1.useState,vpe=J1.useEffect,ype=J1.useLayoutEffect,_pe=J1.useDebugValue;function Tpe(e,t){var n=t(),r=Epe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return ype(function(){i.value=n,i.getSnapshot=t,Z3(i)&&a({inst:i})},[e,n,t]),vpe(function(){return Z3(i)&&a({inst:i}),e(function(){Z3(i)&&a({inst:i})})},[e]),_pe(n),n}function Z3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bpe(e,n)}catch{return!0}}function Spe(e,t){return t()}var wpe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Spe:Tpe;nF.useSyncExternalStore=J1.useSyncExternalStore!==void 0?J1.useSyncExternalStore:wpe;tF.exports=nF;var Ape=tF.exports,rF={exports:{}},iF={};/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var om=C,Cpe=Ape;function xpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kpe=typeof Object.is=="function"?Object.is:xpe,Ipe=Cpe.useSyncExternalStore,Rpe=om.useRef,Npe=om.useEffect,Ope=om.useMemo,Dpe=om.useDebugValue;iF.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=Rpe(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=Ope(function(){function u(g){if(!c){if(c=!0,p=g,g=r(g),i!==void 0&&o.hasValue){var E=o.value;if(i(E,g))return f=E}return f=g}if(E=f,kpe(p,g))return E;var b=r(g);return i!==void 0&&i(E,b)?E:(p=g,f=b)}var c=!1,p,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,i]);var s=Ipe(e,a[0],a[1]);return Npe(function(){o.hasValue=!0,o.value=s},[s]),Dpe(s),s};rF.exports=iF;var Lpe=rF.exports;function Mpe(e){e()}let aF=Mpe;const Fpe=e=>aF=e,Ppe=()=>aF,qk=Symbol.for("react-redux-context"),Kk=typeof globalThis<"u"?globalThis:{};function Bpe(){var e;if(!C.createContext)return{};const t=(e=Kk[qk])!=null?e:Kk[qk]=new Map;let n=t.get(C.createContext);return n||(n=C.createContext(null),t.set(C.createContext,n)),n}const fl=Bpe();function b7(e=fl){return function(){return C.useContext(e)}}const oF=b7(),Upe=()=>{throw new Error("uSES not initialized!")};let sF=Upe;const $pe=e=>{sF=e},zpe=(e,t)=>e===t;function Hpe(e=fl){const t=e===fl?oF:b7(e);return function(r,i={}){const{equalityFn:a=zpe,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:p,stabilityCheck:f,noopCheck:m}=t();C.useRef(!0);const g=C.useCallback({[r.name](b){return r(b)}}[r.name],[r,f,o]),E=sF(c.addNestedSub,u.getState,p||u.getState,g,a);return C.useDebugValue(E),E}}const zt=Hpe();function jpe(){const e=Ppe();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,a=n={callback:r,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const Yk={notify(){},get:()=>[]};function Gpe(e,t){let n,r=Yk;function i(f){return u(),r.subscribe(f)}function a(){r.notify()}function o(){p.onStateChange&&p.onStateChange()}function s(){return!!n}function u(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=jpe())}function c(){n&&(n(),n=void 0,r.clear(),r=Yk)}const p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:u,tryUnsubscribe:c,getListeners:()=>r};return p}const Vpe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Wpe=Vpe?C.useLayoutEffect:C.useEffect;function qpe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:a="once"}){const o=C.useMemo(()=>{const c=Gpe(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:a}},[e,r,i,a]),s=C.useMemo(()=>e.getState(),[e]);Wpe(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,s]);const u=t||fl;return C.createElement(u.Provider,{value:o},n)}function lF(e=fl){const t=e===fl?oF:b7(e);return function(){const{store:r}=t();return r}}const Kpe=lF();function Ype(e=fl){const t=e===fl?Kpe:lF(e);return function(){return t().dispatch}}const us=Ype();$pe(Lpe.useSyncExternalStoreWithSelector);Fpe(yE.unstable_batchedUpdates);const Xpe=He(op)` +`,A0e=e=>{const[t,n]=C.useState(!1);C.useContext(to);const r=eo(),[i,a]=C.useState(void 0);C.useEffect(()=>{e.editing&&e.item.content.length>4e3?a("Editing such a large range may be slow"):a(void 0)},[e.editing,e.item]);const o=C.useCallback(()=>{var c,p;e.editing||r(b0e({ids:[e.item.description.id],index:e.inputIndex})),e.editingAny||(c=e.prefixInputWithEdit)==null||c.call(e,!0),e.editingAny&&e.editing&&((p=e.prefixInputWithEdit)==null||p.call(e,!1))},[e.editing,e.editingAny,e.item,e.inputIndex]),s=C.useRef(null),u=C.useRef(null);return zt(c=>c.sessionState.context_items),I.jsxs("div",{style:{position:"relative"},children:[I.jsxs(_0e,{previewing:e.previewing,ref:s,children:[I.jsx(T0e,{fontSize:pr(),borderColor:e.editing&&i?"red":void 0,ref:u,onMouseEnter:()=>{n(!0),e.onHover&&e.onHover(!0)},onMouseLeave:()=>{n(!1),e.onHover&&e.onHover(!1)},className:`pill-button-${e.stepIndex||"main"}`,onKeyDown:c=>{var p,f;c.key==="Backspace"?(p=e.onDelete)==null||p.call(e,e.stepIndex):c.key==="v"?(f=e.toggleViewContent)==null||f.call(e):c.key==="e"&&o()},onClick:c=>{var p;if((p=e.onClick)==null||p.call(e,c),e.item.description.id.provider_title==="file")qa("showFile",{filepath:e.item.description.description});else if(e.item.description.id.provider_title==="code"){const f=e.item.description.name.split("(")[1].split(")")[0].split("-");qa("showLines",{filepath:e.item.description.description,start:parseInt(f[0])-1,end:parseInt(f[1])-1})}else qa("showVirtualFile",{name:e.item.description.name,content:e.item.content})},onBlur:c=>{var p,f;(p=s.current)!=null&&p.contains(c.relatedTarget)&&(c.preventDefault(),(f=u.current)==null||f.focus())},children:I.jsxs("span",{className:(t?"underline":"")+" flex",children:[["file","code"].includes(e.item.description.id.provider_title)&&I.jsx(Ey,{height:"16px",width:"16px",filename:e.item.description.name.split(" ").at(0)}),e.item.description.name]})}),(e.editingAny||e.focusing&&e.item.editable||e.editing&&e.editingAny)&&I.jsxs(I.Fragment,{children:[I.jsx(w0e,{"data-tooltip-id":`circle-div-${e.item.description.name}`,text:e.editing?"Editing this range":"Edit this range (e)",onClick:o,tabIndex:-1,color:"#f0f4",selected:e.editing,children:I.jsx(zZ,{width:"1.4em",height:"1.4em"})}),I.jsx(au,{id:`circle-div-${e.item.description.name}`,children:"Editing this range"})]}),e.focusing&&I.jsx(S0e,{text:"Delete (⌫)",onClick:()=>{var c;return(c=e.onDelete)==null?void 0:c.call(e,e.stepIndex)},tabIndex:-1,color:"#f004",children:I.jsx(kL,{width:"1.4em",height:"1.4em"})})]}),I.jsx(au,{id:`edit-${e.index}`,children:e.item.editing?"Editing this section (with entire file as context)":"Edit this section"}),I.jsx(au,{id:`delete-${e.index}`,children:"Delete"}),e.editing&&i&&I.jsxs(I.Fragment,{children:[I.jsx(v0e,{"data-tooltip-id":`circle-div-${e.item.description.name}`,className:"z-10",children:I.jsx(wL,{style:{margin:"auto"},width:"1.0em",strokeWidth:2})}),I.jsx(au,{id:`circle-div-${e.item.description.name}`,children:i})]})]})},C0e={};var Ay=function(e,t){return Ay=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Ay(e,t)};function ff(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ay(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var tn=function(){return tn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]"u"&&require("cross-fetch/polyfill"),c=new URL(i,this.url),a&&(p=new URLSearchParams,Object.keys(a).filter(function(w){return a[w]!==null}).map(function(w){return p.set(w,a[w])}),c.search=p.toString()),!((n=u.headers)===null||n===void 0)&&n["Content-Type"]||(o=JSON.stringify(o)),f=tn(tn({},this.headers),u.headers),v.label=1;case 1:return v.trys.push([1,6,,7]),m=this.httpClient?this.httpClient:fetch,g=m(c.toString(),tn(tn(tn({},u),this.requestConfig),{method:r,body:o,headers:f})),this.httpClient?[4,g]:[3,3];case 2:return[2,v.sent()];case 3:return[4,g.then(function(w){return k0e(w)})];case 4:return b=v.sent(),[4,b.json().catch(function(){})];case 5:return y=v.sent(),[2,y];case 6:return T=v.sent(),E=T.stack,x0e(T,E,c.toString()),[3,7];case 7:return[2]}})})},e.prototype.get=function(t,n,r){return Ne(this,void 0,void 0,function(){return Oe(this,function(i){switch(i.label){case 0:return[4,this.request({method:"GET",url:t,params:n,config:r})];case 1:return[2,i.sent()]}})})},e.prototype.post=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"POST",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.put=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"PUT",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.patch=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"PATCH",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.delete=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"DELETE",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e}(),Pn=function(){function e(t){this.taskUid=t.taskUid,this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.enqueuedAt=new Date(t.enqueuedAt)}return e}(),YI=function(){function e(t){this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.uid=t.uid,this.details=t.details,this.canceledBy=t.canceledBy,this.error=t.error,this.duration=t.duration,this.startedAt=new Date(t.startedAt),this.enqueuedAt=new Date(t.enqueuedAt),this.finishedAt=new Date(t.finishedAt)}return e}(),AP=function(){function e(t){this.httpRequest=new Yg(t)}return e.prototype.getTask=function(t){return Ne(this,void 0,void 0,function(){var n,r;return Oe(this,function(i){switch(i.label){case 0:return n="tasks/".concat(t),[4,this.httpRequest.get(n)];case 1:return r=i.sent(),[2,new YI(r)]}})})},e.prototype.getTasks=function(t){return t===void 0&&(t={}),Ne(this,void 0,void 0,function(){var n,r;return Oe(this,function(i){switch(i.label){case 0:return n="tasks",[4,this.httpRequest.get(n,A4(t))];case 1:return r=i.sent(),[2,tn(tn({},r),{results:r.results.map(function(a){return new YI(a)})})]}})})},e.prototype.waitForTask=function(t,n){var r=n===void 0?{}:n,i=r.timeOutMs,a=i===void 0?5e3:i,o=r.intervalMs,s=o===void 0?50:o;return Ne(this,void 0,void 0,function(){var u,c;return Oe(this,function(p){switch(p.label){case 0:u=Date.now(),p.label=1;case 1:return Date.now()-u"u"?this.tokens.generateTenantToken(n,r,i):e.prototype.generateTenantToken.call(this,n,r,i)},t}(B0e);const kP=pf({name:"uiState",initialState:{bottomMessage:void 0,bottomMessageCloseTimeout:void 0,showDialog:!1,dialogMessage:"",dialogEntryOn:!1,displayBottomMessageOnBottom:!0},reducers:{setBottomMessage:(e,t)=>{e.bottomMessage=t.payload},setBottomMessageCloseTimeout:(e,t)=>{e.bottomMessageCloseTimeout&&clearTimeout(e.bottomMessageCloseTimeout),e.bottomMessageCloseTimeout=t.payload},setDialogMessage:(e,t)=>{e.dialogMessage=t.payload},setDialogEntryOn:(e,t)=>{e.dialogEntryOn=t.payload},setShowDialog:(e,t)=>{e.showDialog=t.payload},setDisplayBottomMessageOnBottom:(e,t)=>{e.displayBottomMessageOnBottom=t.payload}}}),{setBottomMessage:pu,setBottomMessageCloseTimeout:XI,setDialogMessage:C4,setDialogEntryOn:V0e,setShowDialog:cc,setDisplayBottomMessageOnBottom:W0e}=kP.actions,q0e=kP.reducer,K0e=Ge(oc)` margin: auto; margin-top: 8px; margin-bottom: 16px; @@ -455,17 +455,17 @@ Hint: It might not be working because maybe you're not up to date with the Meili opacity: 0.7; `} } -`;function Zpe(e){const t=zt(i=>i.config.vscMediaUrl),[n,r]=C.useState(localStorage.getItem("continueButtonColor"));return C.useEffect(()=>{const i=a=>{a.key==="continueButtonColor"&&r(a.newValue)};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[]),I.jsx(Xpe,{showStop:e.showStop,color:n,hidden:e.hidden,style:{fontSize:"10px"},className:"m-auto press-start-2p",onClick:e.disabled?void 0:e.onClick,isDisabled:e.disabled,children:e.showStop?I.jsxs(I.Fragment,{children:[I.jsx(uX,{width:"18px",height:"18px"}),"STOP"]}):I.jsxs(I.Fragment,{children:[t?I.jsx("img",{src:`${t}/play_button.png`,height:"18px"}):I.jsx(uD,{width:"18px",height:"18px"}),"CONTINUE"]})})}const Qpe={history:{timeline:[],current_index:3},user_input_queue:[],active:!1,slash_commands:[],adding_highlighted_code:!1,selected_context_items:[],config:{system_message:"",temperature:.5}},uF=Zp({name:"serverState",initialState:Qpe,reducers:{setServerState:(e,t)=>{e.selected_context_items=[],e.user_input_queue=[],e.slash_commands=[],Object.assign(e,t.payload)},temporarilyPushToUserInputQueue:(e,t)=>{e.user_input_queue=[...e.user_input_queue,t.payload]},temporarilyCreateNewUserInput:(e,t)=>{e.history.timeline=[...e.history.timeline,{step:{description:t.payload,name:"User Input",hide:!1},depth:0,active:!1,context_used:e.selected_context_items}]},temporarilyClearSession:(e,t)=>{e.history.timeline=[],e.selected_context_items=[],e.session_info={title:t.payload?"Loading session...":"New Session",session_id:"",date_created:""}}}}),{setServerState:Jpe,temporarilyPushToUserInputQueue:efe,temporarilyClearSession:sm,temporarilyCreateNewUserInput:tfe}=uF.actions,nfe=uF.reducer,cF=Zp({name:"misc",initialState:{highlightedCode:"",takenAction:!1,serverStatusMessage:"Continue Server Starting"},reducers:{setHighlightedCode:(e,t)=>{e.highlightedCode=t.payload},setTakenActionTrue:(e,t)=>{e.takenAction=!0},setServerStatusMessage:(e,t)=>{e.serverStatusMessage=t.payload}}}),{setHighlightedCode:rfe,setTakenActionTrue:pd,setServerStatusMessage:ife}=cF.actions,afe=cF.reducer,ofe=(e,t,n)=>{const r=tg(e);if(r&&e.key==="Backspace"){e.preventDefault();const i=e.target.selectionStart,a=e.target.selectionEnd;if(i!==a){const o=t.slice(0,i)+t.slice(a);n(o),e.target.selectionStart=i,e.target.selectionEnd=i}else{const o=t.lastIndexOf(` +`;function xP(e){const t=window.vscMediaUrl,[n,r]=C.useState(localStorage.getItem("continueButtonColor"));return C.useEffect(()=>{const i=a=>{a.key==="continueButtonColor"&&r(a.newValue)};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[]),I.jsx(K0e,{showStop:e.showStop,color:n,hidden:e.hidden,style:{fontSize:"10px"},className:"m-auto press-start-2p",onClick:e.disabled?void 0:e.onClick,isDisabled:e.disabled,children:e.showStop?I.jsxs(I.Fragment,{children:[I.jsx(eQ,{width:"18px",height:"18px"}),"STOP"]}):I.jsxs(I.Fragment,{children:[t?I.jsx("img",{src:`${t}/play_button.png`,height:"18px"}):I.jsx(AL,{width:"18px",height:"18px"}),"CONTINUE"]})})}const IP=pf({name:"misc",initialState:{takenAction:!1,serverStatusMessage:"Continue Server Starting"},reducers:{setTakenActionTrue:(e,t)=>{e.takenAction=!0},setServerStatusMessage:(e,t)=>{e.serverStatusMessage=t.payload}}}),{setTakenActionTrue:Ad,setServerStatusMessage:Y0e}=IP.actions,X0e=IP.reducer,Z0e=(e,t,n)=>{const r=xg(e);if(r&&e.key==="Backspace"){e.preventDefault();const i=e.target.selectionStart,a=e.target.selectionEnd;if(i!==a){const o=t.slice(0,i)+t.slice(a);n(o),e.target.selectionStart=i,e.target.selectionEnd=i}else{const o=t.lastIndexOf(` `,i-1),s=t.slice(0,o+1)+t.slice(i);n(s),e.target.selectionStart=o+1,e.target.selectionEnd=o+1}}else if(r){const i=e.target.selectionStart,a=e.target.selectionEnd;let o=i,s=a;const u=e.shiftKey;if(e.key==="ArrowLeft"){const c=t.lastIndexOf(` `,i-1);o=c===-1?0:c+1,s=u?a:o}else if(e.key==="ArrowRight"){const c=t.indexOf(` -`,i);s=c===-1?t.length:c,o=u?o:s}e.target.selectionStart=o,e.target.selectionEnd=s,e.preventDefault()}},sfe=(e,t,n)=>{const r=e.target.selectionStart,i=e.target.selectionEnd,a=tg(e);if(a&&e.key==="Backspace")if(e.preventDefault(),r!==i){const o=t.slice(0,r)+t.slice(i);n(o),e.target.selectionStart=r,e.target.selectionEnd=r}else{const o=t.slice(0,r).trimEnd().lastIndexOf(" "),s=t.slice(0,o+1)+t.slice(r);n(s),console.log(o),setTimeout(()=>{e.target.selectionStart=o+1,e.target.selectionEnd=o+1},10)}else if(a&&e.key==="c"){if(e.preventDefault(),e.stopPropagation(),r!==i){const o=t.slice(r,i);navigator.clipboard.writeText(o)}}else a&&e.key==="v"&&(e.preventDefault(),e.stopPropagation(),navigator.clipboard.readText().then(o=>{const s=t.slice(0,r)+o+t.slice(i);n(s);const u=r+o.length;setTimeout(()=>{e.target.selectionStart=u,e.target.selectionEnd=u},10)}))},lfe="continue_context_items",ufe=b2` +`,i);s=c===-1?t.length:c,o=u?o:s}e.target.selectionStart=o,e.target.selectionEnd=s,e.preventDefault()}},Q0e=(e,t,n)=>{const r=e.target.selectionStart,i=e.target.selectionEnd,a=xg(e);if(a&&e.key==="Backspace")if(e.preventDefault(),r!==i){const o=t.slice(0,r)+t.slice(i);n(o),e.target.selectionStart=r,e.target.selectionEnd=r}else{const o=t.slice(0,r).trimEnd().lastIndexOf(" "),s=t.slice(0,o+1)+t.slice(r);n(s),console.log(o),setTimeout(()=>{e.target.selectionStart=o+1,e.target.selectionEnd=o+1},10)}else if(a&&e.key==="c"){if(e.preventDefault(),e.stopPropagation(),r!==i){const o=t.slice(r,i);navigator.clipboard.writeText(o)}}else a&&e.key==="v"&&(e.preventDefault(),e.stopPropagation(),navigator.clipboard.readText().then(o=>{const s=t.slice(0,r)+o+t.slice(i);n(s);const u=r+o.length;setTimeout(()=>{e.target.selectionStart=u,e.target.selectionEnd=u},10)}))},J0e="continue_context_items",ehe=Gm` 0% { background-position: 0px 0; } 100% { background-position: 100em 0; } -`,cfe=He.div` +`,the=Ge.div` border-radius: ${e=>e.borderRadius||"0"}; padding: 1px; background: ${e=>e.borderColor?e.borderColor:`repeating-linear-gradient( @@ -478,19 +478,19 @@ Hint: It might not be working because maybe you're not up to date with the Meili #331BBE 85%, #1BBE84 99% )`}; - animation: ${e=>e.loading?ufe:""} 6s linear infinite; + animation: ${e=>e.loading?ehe:""} 6s linear infinite; background-size: 200% 200%; width: 100%; display: flex; flex-direction: row; align-items: center; margin-top: 8px; -`,dfe=He.button` +`,nhe=Ge.button` opacity: 0; background-color: transparent; border: none; outline: none; - color: ${Ht}; + color: ${Yt}; cursor: pointer; display: flex; align-items: center; @@ -500,94 +500,94 @@ Hint: It might not be working because maybe you're not up to date with the Meili padding: 0; margin-left: -8px; - border-radius: ${wt}; + border-radius: ${It}; &:focus { margin-left: 1px; height: fit-content; padding: 3px; opacity: 1; - outline: 1px solid ${vt}; + outline: 1px solid ${Et}; } -`,qb=nr(),pfe=He.div` +`,Cy=pr(),rhe=Ge.div` padding: 0px; - background-color: ${Lt}; - border-radius: ${wt}; + background-color: ${Vt}; + border-radius: ${It}; margin: 8px; overflow: hidden; & div { - background-color: ${Lt}; + background-color: ${Vt}; } -`,ffe=He.p` +`,ihe=Ge.p` margin: 0; padding: 4px 8px; - border-bottom: 1px solid ${vt}; + border-bottom: 1px solid ${Et}; word-break: break-all; - font-size: ${nr()}px; + font-size: ${pr()}px; display: flex; align-items: center; -`,hfe=He.textarea` +`,ahe=Ge.textarea` resize: none; padding: 8px; - font-size: ${e=>e.fontSize||qb}px; + font-size: ${e=>e.fontSize||Cy}px; font-family: inherit; - border-radius: ${wt}; + border-radius: ${It}; margin: 0; height: auto; width: 100%; - background-color: ${Lt}; - color: ${Ht}; + background-color: ${Vt}; + color: ${Yt}; z-index: 1; border: 0.5px solid - ${e=>e.inQueryForDynamicProvider?da:"transparent"}; + ${e=>e.inQueryForDynamicProvider?ha:"transparent"}; &:focus { outline: 0.5px solid - ${e=>e.inQueryForDynamicProvider?da:vt}; + ${e=>e.inQueryForDynamicProvider?ha:Et}; border: 0.5px solid transparent; - background-color: ${e=>e.inQueryForDynamicProvider?`${da}22`:Lt}; + background-color: ${e=>e.inQueryForDynamicProvider?`${ha}22`:Vt}; } &::placeholder { - color: ${vt}cc; + color: ${Et}cc; } -`,gfe=He.div` +`,ohe=Ge.div` position: absolute; top: 14px; right: 12px; - background-color: ${Lt}; - border-radius: ${wt}; + background-color: ${Vt}; + border-radius: ${It}; z-index: 100; -`,mfe=He.div` +`,she=Ge.div` position: absolute; right: 0px; top: 0px; height: fit-content; padding: 2px 4px; - border-radius: ${wt}; + border-radius: ${It}; z-index: 2; color: white; font-size: 12px; - background-color: ${da}; -`,dF=300,bfe=He.ul` - ${e=>e.showAbove?`transform: translateY(-${e.ulHeightPixels+8}px);`:`transform: translateY(${(e.isMainInput?5:4)*(e.fontSize||qb)-(e.isMainInput?2:4)}px);`} + background-color: ${ha}; +`,RP=300,lhe=Ge.ul` + ${e=>e.showAbove?`transform: translateY(-${e.ulHeightPixels+8}px);`:`transform: translateY(${(e.isMainInput?5:4)*(e.fontSize||Cy)-(e.isMainInput?2:4)-6}px);`} position: absolute; - background: ${Kt}; - color: ${Ht}; - max-height: ${dF}px; + background: ${Ht}; + color: ${Yt}; + max-height: ${RP}px; margin-left: 1px; width: calc(100% - 18px); overflow-y: scroll; overflow-x: hidden; padding: 0; ${({hidden:e})=>e&&"display: none;"} - border-radius: ${wt}; - outline: 0.5px solid ${vt}; + border-radius: ${It}; + outline: 0.5px solid ${Et}; -ms-overflow-style: none; - font-size: ${e=>e.fontSize||qb}px; + font-size: ${e=>e.fontSize||Cy}px; scrollbar-width: none; /* Firefox */ z-index: 500; @@ -596,8 +596,8 @@ Hint: It might not be working because maybe you're not up to date with the Meili &::-webkit-scrollbar { display: none; } -`,Xk=He.li` - background-color: ${({highlighted:e})=>e?da+"66":Lt}; +`,ZI=Ge.li` + background-color: ${({highlighted:e})=>e?ha+"66":Vt}; ${({selected:e})=>e&&"font-weight: bold;"} padding: 0.5rem 0.5rem; display: flex; @@ -606,14 +606,17 @@ Hint: It might not be working because maybe you're not up to date with the Meili ${({isLastItem:e})=>e&&"border-bottom: 1px solid gray;"} cursor: pointer; z-index: 500; -`,Zk=ut.forwardRef((e,t)=>{var Se,Me,ze,Ke,jt,ue,ye,We,at,Qe;const n=zt(Y=>Y.serverState.meilisearch_url||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const Y=new wde({host:n});i(Y)},[n]);const a=C.useContext(Ya),o=us(),s=zt(Y=>Y.config.workspacePaths),u=zt(Y=>Y.serverState.history),[c,p]=ut.useState([]),[f,m]=ut.useState(0),[g,E]=ut.useState([]),b=ut.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Se=b.current)==null?void 0:Se.scrollHeight,(Me=b.current)==null?void 0:Me.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[T,v]=C.useState(!1),[y,w]=C.useState(void 0),[A,D]=C.useState(void 0),k=zt(Y=>Y.serverState.slash_commands).map(Y=>({name:`/${Y.name}`,description:Y.description})),R=zt(Y=>e.index?Y.serverState.history.timeline[e.index].context_used||[]:Y.serverState.selected_context_items),B=zt(Y=>Y.serverState.history.timeline);C.useEffect(()=>{T||(w(void 0),D(void 0))},[T]);const W=zt(Y=>Y.serverState.context_providers),P=()=>{v(!1),w(void 0),D(void 0),fe.setInputValue("@")};C.useEffect(()=>{y||E((W==null?void 0:W.map(Y=>({name:Y.display_title,description:Y.description,id:Y.title})).sort((Y,se)=>Y.id==="file"?-1:1))||[])},[y]);const[Q,z]=C.useState(""),le=C.useCallback(({inputValue:Y,highlightedIndex:se})=>{var j;if(!Y){E([]),w(void 0),v(!1);return}if(Q===""&&(W!=null&&W.some($=>$.display_title===Y))){fe.setInputValue(""),z("");return}if(z(Y),A&&!Y.startsWith(`@${A.title}`)&&D(void 0),(j=e.onInputValueChange)==null||j.call(e,Y),Y.endsWith("@")||T){const $=(Y==null?void 0:Y.split("@"))||[];if($.length>1){v(!0);const J=$[$.length-1]||"";if(y&&!Y.endsWith("@")){const be=J.split(" ");he(y.title,be.length>1?be[1]:"").then(Fe=>{E(Fe)})}else{const be=(W==null?void 0:W.filter(Fe=>`@${Fe.title}`.toLowerCase().startsWith(Y.toLowerCase())||`@${Fe.display_title}`.toLowerCase().startsWith(Y.toLowerCase())).map(Fe=>({name:Fe.display_title,description:Fe.description,id:Fe.title})).sort((Fe,De)=>Fe.id==="file"?-1:1))||[];E(be),v(!0)}return}else v(!1),w(void 0)}w(void 0),E((k==null?void 0:k.filter($=>{const J=$.name.toLowerCase(),be=Y.toLowerCase();return J.startsWith(be)&&J!==be}))||[]),(Y.startsWith("/")||Y.startsWith("@"))&&o(pd(null))},[k,T,y,A]),he=async(Y,se)=>{const j=s&&s.length>0?`workspace_dir IN [ ${s.map($=>`"${$}"`).join(", ")} ] AND provider_name = '${Y}'`:void 0;try{const $=await(r==null?void 0:r.index(lfe).search(se,{filter:j}));return($==null?void 0:$.hits.map(J=>({name:J.name,description:J.description,id:J.id,content:J.content})))||[]}catch($){return console.log("Error searching context items",$),[]}},{getInputProps:de,...fe}=LM({onInputValueChange:le,items:g,itemToString(Y){return Y?Y.name:""}});C.useEffect(()=>{fe.highlightedIndex<0&&fe.setHighlightedIndex(0)},[fe.inputValue]);const Z=ut.useRef(null),V=ut.useRef(null),ce=()=>{var Y;return(((Y=Z.current)==null?void 0:Y.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>dF};C.useImperativeHandle(t,()=>fe,[fe]);const N=ut.useRef(null),me=C.useCallback(()=>{var $;if(ve(!0),!N.current)return;const Y=N.current.querySelectorAll(`.pill-button-${e.index||"main"}`),se=Array.from(Y),j=se.findIndex(J=>J===document.activeElement);if(j===se.length-1)($=b.current)==null||$.focus();else if(j!==-1){const J=se[(j+1)%se.length];J==null||J.focus()}else{const J=se[0];J==null||J.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const Y=se=>{se.key==="Tab"&&(se.preventDefault(),me())};return b.current.addEventListener("keydown",Y),()=>{var se;(se=b.current)==null||se.removeEventListener("keydown",Y)}}},[b.current]),C.useEffect(()=>{e.value&&fe.setInputValue(e.value)},[e.value,fe.setInputValue]);const[oe,O]=C.useState(!1);C.useLayoutEffect(()=>{V.current&&fe.setHighlightedIndex(0)},[g,fe.setHighlightedIndex,V.current]);const[re,Te]=C.useState(!1),[K,xe]=C.useState(!1);C.useEffect(()=>{const Y=j=>{j.key==="Meta"&&Te(!0)},se=j=>{j.key==="Meta"&&Te(!1)};return window.addEventListener("keydown",Y),window.addEventListener("keyup",se),()=>{window.removeEventListener("keydown",Y),window.removeEventListener("keyup",se)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const Y=se=>{var j;se.data.type==="focusContinueInput"?(b.current.focus(),o(pd(null))):se.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(j=b.current)!=null&&j.value.startsWith("/edit")||fe.setInputValue("/edit "),o(pd(null))):se.data.type==="focusContinueInputWithNewSession"&&(o(sm(!1)),a==null||a.loadSession(void 0),o(pd(null)))};return window.addEventListener("message",Y),()=>{window.removeEventListener("message",Y)}},[b.current,e.isMainInput]);const ne=ut.useRef(null),Le=C.useCallback((Y,se)=>{e.isMainInput?a==null||a.selectContextItem(Y,se):e.index&&(a==null||a.selectContextItemAtIndex(Y,se,e.index))},[a,e.index]),Re=C.useCallback(Y=>{const se=g[fe.highlightedIndex],j=se==null?void 0:se.name,$=W.find(J=>J.display_title===j);if($){if($.dynamic&&$.requires_query){D($),fe.setInputValue(`@${$.title} `),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}else if($.dynamic){if(!se.id)return;const J=fe.inputValue.split("@"),be=J[J.length-1];if(Le(se.id,be),fe.inputValue.includes("@")){const Fe=W.find(De=>De.title===se.id);!y&&!(Fe!=null&&Fe.dynamic)?(fe.setInputValue(`@${se.id} `),w(Fe)):fe.setInputValue("")}fe.setInputValue(""),v(!1),w(void 0),D(void 0),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}}else{if(y&&se.id){Le(se.id,""),fe.setInputValue(""),v(!1),w(void 0),D(void 0),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}w($),fe.setInputValue(`@${$.title} `),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault(),he($.title,"").then(J=>E(J))},[g,fe.highlightedIndex,W,y,fe.inputValue,Le]),[Xe,Ve]=C.useState(!1),[dt,ot]=C.useState(!1),[Ge,pt]=C.useState(void 0),[U,ie]=C.useState(void 0),pe=ut.useRef(null),[ke,ve]=C.useState(!1);return C.useEffect(()=>{K||ve(!1)},[K]),I.jsxs("div",{ref:pe,children:[R.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:vt,fontSize:"10px",backgroundColor:Kt,paddingLeft:"12px",paddingTop:nr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var Y;fe.setInputValue("@"),(Y=b.current)==null||Y.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Ke=fe.inputValue)==null?void 0:Ke.startsWith("/edit"))||K&&re&&((jt=fe.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||R.length>0&&ke?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:N,style:{backgroundColor:Kt},children:[R.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:Y=>{ot(se=>!se)},id:"toggle-context-div",children:dt?I.jsx(TY,{width:"14px",height:"14px",color:vt}):I.jsx(AY,{width:"14px",height:"14px",color:vt})}),I.jsx(dfe,{className:R.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var Y;a==null||a.deleteContextWithIds(R.map(se=>se.description.id),e.index),(Y=b.current)==null||Y.focus(),pt(void 0),ie(void 0)},onKeyDown:Y=>{var se;Y.key==="Backspace"&&(a==null||a.deleteContextWithIds(R.map(j=>j.description.id),e.index),(se=b.current)==null||se.focus(),pt(void 0),ie(void 0))},children:I.jsx(pD,{width:"1.4em",height:"1.4em"})}),(e.isMainInput?R:B[e.index].context_used||[]).map((Y,se)=>{var j,$,J,be;return I.jsx(rde,{areMultipleItems:R.length>1,item:Y,editing:Y.editing&&(($=(j=b.current)==null?void 0:j.value)==null?void 0:$.startsWith("/edit")),editingAny:(be=(J=b.current)==null?void 0:J.value)==null?void 0:be.startsWith("/edit"),stepIndex:e.index,index:se,onDelete:()=>{var Fe;a==null||a.deleteContextWithIds([Y.description.id],e.index),(Fe=b.current)==null||Fe.focus(),(Y.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===Y.description.id.provider_name||Y.description.id.item_id===(Ge==null?void 0:Ge.description.id.item_id)&&(Ge==null?void 0:Ge.description.id.provider_name)===Y.description.id.provider_name)&&(pt(void 0),ie(void 0))},onClick:Fe=>{Y.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===Y.description.id.provider_name?ie(void 0):ie(Y)},onBlur:()=>{ie(void 0)},toggleViewContent:()=>{pt(Fe=>{if(!Fe)return Y;if(!(Fe.description.id.item_id===Y.description.id.item_id&&Fe.description.id.provider_name===Y.description.id.provider_name))return Y})},previewing:Y.description.id.item_id===(Ge==null?void 0:Ge.description.id.item_id)&&(Ge==null?void 0:Ge.description.id.provider_name)===Y.description.id.provider_name,focusing:Y.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===Y.description.id.provider_name,prefixInputWithEdit:Fe=>{var De,tt,Je;!Fe&&((De=b.current)!=null&&De.value.startsWith("/edit"))&&fe.setInputValue((tt=b.current)==null?void 0:tt.value.replace("/edit ","")),!fe.inputValue.startsWith("/edit")&&(fe.setInputValue(`/edit ${fe.inputValue}`),(Je=b.current)==null||Je.focus())}},`${Y.description.id.item_id}${se}`)})]}):R.length>0&&I.jsxs("div",{onClick:()=>{var Y;(Y=b.current)==null||Y.focus(),ve(!0)},style:{color:vt,fontSize:"10px",backgroundColor:Kt,paddingLeft:"12px",cursor:"default",paddingTop:nr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",R.length," ","context item",R.length===1?"":"s"]}),Ge&&I.jsx("pre",{className:"m-0",children:I.jsx(pg,{source:`\`\`\`${qA(Ge.description.description)} -${Ge.content} -\`\`\``,maxHeight:200})}),dt&&I.jsx("div",{children:R.map(Y=>I.jsxs(pfe,{children:[I.jsxs(ffe,{children:[I.jsx($b,{height:"20px",width:"20px",filename:Y.description.name}),Y.description.description]}),I.jsx("pre",{className:"m-0",children:I.jsx(pg,{source:`\`\`\`${qA(Y.description.description)} -${Y.content} -\`\`\``,maxHeight:200})})]}))}),I.jsxs("div",{className:"flex px-2 relative",style:{backgroundColor:Kt},ref:Z,children:[I.jsxs(cfe,{loading:e.active||!1,isFirst:!1,isLast:!1,borderColor:e.active?void 0:Kt,borderRadius:wt,children:[I.jsx(hfe,{onClick:()=>{var Y;(Y=b.current)==null||Y.focus()},onMouseEnter:()=>O(!0),onMouseLeave:Y=>{var se;Y.relatedTarget===ne.current||(se=ne.current)!=null&&se.contains(Y.relatedTarget)||O(!1)},rows:e.isMainInput?void 0:1,inQueryForDynamicProvider:typeof A<"u",fontSize:nr(),disabled:e.disabled,placeholder:"Ask a question, '/' for slash commands, '@' to add context",...de({onCompositionStart:()=>Ve(!0),onCompositionEnd:()=>Ve(!1),onChange:Y=>{},onFocus:Y=>{xe(!0),o(au(void 0))},onBlur:Y=>{var se,j;(se=pe.current)!=null&&se.contains(Y.relatedTarget)||(j=document.getElementById("toggle-context-div"))!=null&&j.contains(Y.relatedTarget)||xe(!1)},onKeyDown:Y=>{var se,j;if(o(au(void 0)),Y.key==="Enter"&&Y.shiftKey)Y.nativeEvent.preventDownshiftDefault=!0,v(!1);else if(Y.key==="Enter"&&(!fe.isOpen||g.length===0)&&!Xe){const $=fe.inputValue;if(A){const J=$.split("@");Le(A.title,J[J.length-1]),v(!1),fe.setInputValue("");return}else $!==""&&(m(c.length+1),p([...c,$])),Y.nativeEvent.preventDownshiftDefault=!0,e.onEnter&&e.onEnter(Y,$);v(!1)}else if(Y.key==="Enter"&&T)Re(Y);else if(Y.key==="Tab"&&fe.isOpen&&g.length>0&&((se=g[fe.highlightedIndex])!=null&&se.name.startsWith("/")))fe.setInputValue(g[0].name),Y.preventDefault();else if(Y.key==="Tab")Y.nativeEvent.preventDownshiftDefault=!0;else{if((Y.key==="ArrowUp"||Y.key==="ArrowDown")&&g.length>0)return;if(Y.key==="ArrowUp"){if(f==0||Y.currentTarget.selectionStart!==0){Y.nativeEvent.preventDownshiftDefault=!0;return}else f==c.length&&(c.length===0||c[c.length-1]!==Y.currentTarget.value)&&p([...c,Y.currentTarget.value]);fe.setInputValue(c[f-1]),m($=>$-1),v(!1)}else if(Y.key==="ArrowDown"){if(f===c.length||Y.currentTarget.selectionStart!==Y.currentTarget.value.length){Y.nativeEvent.preventDownshiftDefault=!0;return}fMath.min($+1,c.length)),v(!1)}else if(Y.key==="Escape"){if(y){P(),Y.nativeEvent.preventDownshiftDefault=!0;return}else if(A){P(),Y.nativeEvent.preventDownshiftDefault=!0;return}v(!1),fe.isOpen&&g.length>0?(fe.closeMenu(),Y.nativeEvent.preventDownshiftDefault=!0):(Y.nativeEvent.preventDownshiftDefault=!0,(j=b.current)==null||j.blur(),rl("focusEditor",{}))}else Y.key==="Home"||Y.key==="End"?Y.nativeEvent.preventDownshiftDefault=!0:localStorage.getItem("ide")==="jetbrains"&&(_2()==="mac"?ofe(Y,fe.inputValue,fe.setInputValue):sfe(Y,fe.inputValue,fe.setInputValue))}},onClick:()=>{o(au(void 0))},ref:b})}),e.isMainInput||I.jsx(gfe,{ref:ne,children:oe&&I.jsx("div",{className:"flex",children:I.jsxs(I.Fragment,{children:[B.filter((Y,se)=>{var j;return((j=e.groupIndices)==null?void 0:j.includes(se))&&Y.logs}).some(Y=>Y.logs.length>0)&&I.jsx(vi,{onClick:Y=>{Y.stopPropagation(),e.groupIndices&&(a==null||a.showLogsAtIndex(e.groupIndices[1]))},text:"Inspect Prompt",children:I.jsx(dY,{width:"1.3em",height:"1.3em"})}),I.jsx(vi,{onClick:Y=>{var se;Y.stopPropagation(),e.active&&e.groupIndices?a==null||a.deleteAtIndex(e.groupIndices[1]):(se=e.onDelete)==null||se.call(e)},text:e.active?`Stop (${ZK()}⌫)`:"Delete",children:e.active?null:I.jsx(T2,{width:"1.4em",height:"1.4em"})})]})})})]}),A&&I.jsxs(mfe,{children:["Enter ",A.display_title," Query"]}),I.jsxs(bfe,{...fe.getMenuProps({ref:V}),isMainInput:e.isMainInput,showAbove:ce(),ulHeightPixels:((ue=V.current)==null?void 0:ue.getBoundingClientRect().height)||0,hidden:!fe.isOpen||g.length===0||((ye=b.current)==null?void 0:ye.value)==="",fontSize:nr(),children:[y&&I.jsxs("div",{style:{backgroundColor:Lt,borderBottom:`0.5px solid ${vt}`,display:"flex",gap:"4px",position:"sticky",top:"0px"},className:"py-2 px-4 my-0",children:[I.jsx(ac,{width:"1.4em",height:"1.4em",className:"cursor-pointer",onClick:Y=>{var se;P(),(se=b.current)==null||se.focus()}}),y.display_title," -"," ",y.description]}),fe.isOpen&&g.map((Y,se)=>I.jsxs(Xk,{style:{borderTop:se===0?"none":`0.5px solid ${vt}`},...fe.getItemProps({item:Y,index:se}),highlighted:fe.highlightedIndex===se,selected:fe.selectedItem===Y,onClick:j=>{var $;Re(j),j.stopPropagation(),j.preventDefault(),($=b.current)==null||$.focus()},children:[I.jsxs("span",{className:"flex justify-between w-full items-center",children:[I.jsxs("div",{className:"flex items-center justify-center",children:[y&&I.jsx($b,{height:"20px",width:"20px",filename:Y.name}),Y.name," "]}),I.jsx("span",{style:{color:vt,float:"right",textAlign:"right"},children:Y.description})]}),(W==null?void 0:W.filter(j=>!j.dynamic||j.requires_query).find(j=>j.title===Y.id))&&I.jsx(lY,{width:"1.2em",height:"1.2em",color:vt,className:"ml-2 flex-shrink-0"})]},`${Y.name}${se}`)),fe.isOpen&&g.length===0&&I.jsx(Xk,{highlighted:!1,selected:!1,isLastItem:!1,children:I.jsx("span",{style:{color:vt,float:"right",textAlign:"right",display:"flex",width:"100%",cursor:"default"},children:"No items found"})},"empty-items-li")]})]}),e.isMainInput&&I.jsx(Zpe,{disabled:!((We=b.current)!=null&&We.value)&&!(typeof(u==null?void 0:u.current_index)<"u"&&((at=u.timeline[u.current_index])!=null&&at.active)),onClick:()=>{var Y,se;typeof(u==null?void 0:u.current_index)<"u"&&((Y=u.timeline[u.current_index])!=null&&Y.active)?a==null||a.deleteAtIndex(u.current_index):(se=e.onEnter)==null||se.call(e,void 0)},showStop:typeof(u==null?void 0:u.current_index)<"u"&&((Qe=u.timeline[u.current_index])==null?void 0:Qe.active)||!1})]})});function Qk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t=0||(p[u]=o[u]);return p}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vfe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function fF(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Sg(e);if(t){var i=Sg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return vfe(this,n)}}function yo(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var a,o,s=[],u=!0,c=!1;try{for(i=i.call(n);!(u=(a=i.next()).done)&&(s.push(a.value),!r||s.length!==r);u=!0);}catch(p){c=!0,o=p}finally{try{u||i.return==null||i.return()}finally{if(c)throw o}}return s}}(e,t)||E7(e,t)||function(){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 Yb(e){return function(t){if(Array.isArray(t))return Xb(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||E7(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function E7(e,t){if(e){if(typeof e=="string")return Xb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xb(e,t):void 0}}function Xb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var fa={DEBUG:!1,LIB_VERSION:"1.75.2"};/** +`,QI=ut.forwardRef((e,t)=>{var Te,Le,ze,Ye,jt,ue,Ee,qe;const n=zt(j=>j.serverState.meilisearchUrl||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const j=new G0e({host:n});i(j)},[n]);const a=C.useContext(to),o=eo(),s=zt(j=>j.config.workspacePaths);zt(j=>j.sessionState.history);const[u,c]=ut.useState([]),[p,f]=ut.useState(0),[m,g]=ut.useState([]),b=ut.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Te=b.current)==null?void 0:Te.scrollHeight,(Le=b.current)==null?void 0:Le.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[y,T]=C.useState(!1),[E,v]=C.useState(void 0),[w,A]=C.useState(void 0),R=zt(j=>{var me;return((me=j.serverState.slashCommands)==null?void 0:me.map(Ve=>({name:`/${Ve.name}`,description:Ve.description})))||[]}),k=zt(j=>typeof e.index<"u"?j.sessionState.contextItemsAtIndex[e.index]||[]:j.sessionState.context_items||[]),N=zt(j=>j.sessionState.history),B=zt(j=>j.sessionState.active);C.useEffect(()=>{y||(v(void 0),A(void 0))},[y]);const q=zt(j=>j.serverState.contextProviders),P=()=>{T(!1),v(void 0),A(void 0),H.setInputValue("@")};C.useEffect(()=>{E||g((q==null?void 0:q.map(j=>({name:j.display_title,description:j.description,id:j.title})).sort((j,me)=>j.id==="file"?-1:1))||[])},[E]);const[Q,$]=C.useState(""),oe=C.useCallback(async(j,me)=>{const Ve=await(a==null?void 0:a.getContextItem(j,me));e.isMainInput?o(TP(Ve)):typeof e.index<"u"&&o(SP({item:Ve,index:e.index}))},[a,e.index]),fe=C.useCallback(({inputValue:j,highlightedIndex:me})=>{var Ve;if(!j){g([]),v(void 0),T(!1);return}if(Q===""&&(q!=null&&q.some(ge=>ge.display_title===j))){H.setInputValue(""),$("");return}if($(j),w&&!j.startsWith(`@${w.title}`)&&A(void 0),(Ve=e.onInputValueChange)==null||Ve.call(e,j),j.endsWith("@")||y){const ge=(j==null?void 0:j.split("@"))||[];if(ge.length>1){T(!0);const G=ge[ge.length-1]||"";if(E&&!j.endsWith("@")){const K=G.split(" ");ce(E.title,K.length>1?K[1]:"").then(ne=>{g(ne)})}else{const K=(q==null?void 0:q.filter(ne=>`@${ne.title}`.toLowerCase().startsWith(j.toLowerCase())||`@${ne.display_title}`.toLowerCase().startsWith(j.toLowerCase())).map(ne=>({name:ne.display_title,description:ne.description,id:ne.title})).sort((ne,ve)=>ne.id==="file"?-1:1))||[];g(K),T(!0)}return}else T(!1),v(void 0)}v(void 0),g((R==null?void 0:R.filter(ge=>{const G=ge.name.toLowerCase(),K=j.toLowerCase();return G.startsWith(K)&&G!==K}))||[]),(j.startsWith("/")||j.startsWith("@"))&&o(Ad(null))},[R,y,E,w]),ce=async(j,me)=>{const Ve=s&&s.length>0?`workspace_dir IN [ ${s.map(ge=>`"${ge}"`).join(", ")} ] AND provider_name = '${j}'`:void 0;try{const ge=await(r==null?void 0:r.index(J0e).search(me,{filter:Ve}));return(ge==null?void 0:ge.hits.map(G=>({name:G.name,description:G.description,id:G.id,content:G.content})))||[]}catch(ge){return console.log("Error searching context items",ge),[]}},{getInputProps:De,...H}=YF({onInputValueChange:fe,items:m,itemToString(j){return j?j.name:""}});C.useEffect(()=>{H.highlightedIndex<0&&H.setHighlightedIndex(0)},[H.inputValue]);const W=ut.useRef(null),se=ut.useRef(null),D=()=>{var j;return(((j=W.current)==null?void 0:j.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>RP};C.useImperativeHandle(t,()=>H,[H]);const pe=ut.useRef(null),le=C.useCallback(()=>{var ge;if(ye(!0),!pe.current)return;const j=pe.current.querySelectorAll(`.pill-button-${e.index||"main"}`),me=Array.from(j),Ve=me.findIndex(G=>G===document.activeElement);if(Ve===me.length-1)(ge=b.current)==null||ge.focus();else if(Ve!==-1){const G=me[(Ve+1)%me.length];G==null||G.focus()}else{const G=me[0];G==null||G.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const j=me=>{me.key==="Tab"&&(me.preventDefault(),le())};return b.current.addEventListener("keydown",j),()=>{var me;(me=b.current)==null||me.removeEventListener("keydown",j)}}},[b.current]),C.useEffect(()=>{e.value&&H.setInputValue(e.value)},[e.value,H.setInputValue]);const[L,ie]=C.useState(!1);C.useLayoutEffect(()=>{se.current&&H.setHighlightedIndex(0)},[m,H.setHighlightedIndex,se.current]);const[Se,X]=C.useState(!1),[ke,te]=C.useState(!1);C.useEffect(()=>{const j=Ve=>{Ve.key==="Meta"&&X(!0)},me=Ve=>{Ve.key==="Meta"&&X(!1)};return window.addEventListener("keydown",j),window.addEventListener("keyup",me),()=>{window.removeEventListener("keydown",j),window.removeEventListener("keyup",me)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const j=me=>{var Ve;me.data.type==="focusContinueInput"?(b.current.focus(),o(Ad(null))):me.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(Ve=b.current)!=null&&Ve.value.startsWith("/edit")||H.setInputValue("/edit "),o(Ad(null))):me.data.type==="focusContinueInputWithNewSession"&&(a==null||a.stopSession(),o(uc()),o(Ad(null)))};return window.addEventListener("message",j),()=>{window.removeEventListener("message",j)}},[b.current,e.isMainInput]);const Me=ut.useRef(null),Re=C.useCallback(j=>{const me=m[H.highlightedIndex],Ve=me==null?void 0:me.name,ge=q.find(G=>G.display_title===Ve);if(ge){if(ge.dynamic&&ge.requires_query){A(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}else if(ge.dynamic){if(!me.id)return;const G=H.inputValue.split("@"),K=G[G.length-1];if(oe(me.id,K),H.inputValue.includes("@")){const ne=q.find(ve=>ve.title===me.id);!E&&!(ne!=null&&ne.dynamic)?(H.setInputValue(`@${me.id} `),v(ne)):H.setInputValue("")}H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}}else{if(E&&me.id){oe(me.id,""),H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}v(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault(),ce(ge.title,"").then(G=>g(G))},[m,H.highlightedIndex,q,E,H.inputValue,oe]),[Ze,We]=C.useState(!1),[dt,ot]=C.useState(!1),[je,pt]=C.useState(void 0),[U,re]=C.useState(void 0),de=ut.useRef(null),[xe,ye]=C.useState(!1);return C.useEffect(()=>{ke||ye(!1)},[ke]),I.jsxs("div",{ref:de,style:{paddingTop:"4px",backgroundColor:Ht},children:[k.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",paddingTop:pr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var j;H.setInputValue("@"),(j=b.current)==null||j.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Ye=H.inputValue)==null?void 0:Ye.startsWith("/edit"))||ke&&Se&&((jt=H.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||k.length>0&&xe?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:pe,style:{backgroundColor:Ht},children:[k.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:j=>{ot(me=>!me)},id:"toggle-context-div",children:dt?I.jsx(gZ,{width:"14px",height:"14px",color:Et}):I.jsx(yZ,{width:"14px",height:"14px",color:Et})}),I.jsx(nhe,{className:k.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var j;o(w4({ids:k.map(me=>me.description.id),index:e.index})),(j=b.current)==null||j.focus(),pt(void 0),re(void 0)},onKeyDown:j=>{var me;j.key==="Backspace"&&(o(w4({ids:k.map(Ve=>Ve.description.id),index:e.index})),(me=b.current)==null||me.focus(),pt(void 0),re(void 0))},children:I.jsx(kL,{width:"1.4em",height:"1.4em"})}),k.map((j,me)=>{var Ve,ge,G,K;return I.jsx(A0e,{inputIndex:e.index,areMultipleItems:k.length>1,item:j,editing:j.editing&&((ge=(Ve=b.current)==null?void 0:Ve.value)==null?void 0:ge.startsWith("/edit")),editingAny:(K=(G=b.current)==null?void 0:G.value)==null?void 0:K.startsWith("/edit"),stepIndex:e.index,index:me,onDelete:()=>{var ne;o(w4({ids:[j.description.id],index:e.index})),(ne=b.current)==null||ne.focus(),(j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name||j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name)&&(pt(void 0),re(void 0))},onClick:ne=>{j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name?re(void 0):re(j)},onBlur:()=>{re(void 0)},toggleViewContent:()=>{pt(ne=>{if(!ne)return j;if(!(ne.description.id.item_id===j.description.id.item_id&&ne.description.id.provider_name===j.description.id.provider_name))return j})},previewing:j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name,focusing:j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name,prefixInputWithEdit:ne=>{var ve,Qe,Fe;!ne&&((ve=b.current)!=null&&ve.value.startsWith("/edit"))&&H.setInputValue((Qe=b.current)==null?void 0:Qe.value.replace("/edit ","")),!H.inputValue.startsWith("/edit")&&(H.setInputValue(`/edit ${H.inputValue}`),(Fe=b.current)==null||Fe.focus())}},`${j.description.id.item_id}${me}`)})]}):k.length>0&&I.jsxs("div",{onClick:()=>{var j;(j=b.current)==null||j.focus(),ye(!0)},style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",cursor:"default",paddingTop:pr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",k.length," ","context item",k.length===1?"":"s"]}),je&&I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(je.description.description)} +${je.content} +\`\`\``,maxHeight:200})}),dt&&I.jsx("div",{children:k.map(j=>I.jsxs(rhe,{children:[I.jsxs(ihe,{children:[I.jsx(Ey,{height:"20px",width:"20px",filename:j.description.name}),j.description.name]}),I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(j.description.description)} +${j.content} +\`\`\``,maxHeight:200})})]}))}),I.jsxs("div",{className:"flex px-2 relative",style:{backgroundColor:Ht},ref:W,children:[I.jsxs(the,{loading:e.active||!1,isFirst:!1,isLast:!1,borderColor:e.active?void 0:Ht,borderRadius:It,children:[I.jsx(ahe,{onClick:()=>{var j;(j=b.current)==null||j.focus()},onMouseEnter:()=>ie(!0),onMouseLeave:j=>{var me;j.relatedTarget===Me.current||j.relatedTarget instanceof Node&&((me=Me.current)!=null&&me.contains(j.relatedTarget))||ie(!1)},rows:e.isMainInput?void 0:1,inQueryForDynamicProvider:typeof w<"u",fontSize:pr(),disabled:e.disabled,placeholder:"Ask a question, '/' for slash commands, '@' to add context",...De({onCompositionStart:()=>We(!0),onCompositionEnd:()=>We(!1),onChange:j=>{},onFocus:j=>{te(!0),o(pu(void 0))},onBlur:j=>{var me,Ve;(me=de.current)!=null&&me.contains(j.relatedTarget)||(Ve=document.getElementById("toggle-context-div"))!=null&&Ve.contains(j.relatedTarget)||te(!1)},onKeyDown:j=>{var me,Ve;if(o(pu(void 0)),j.key==="Enter"&&j.shiftKey)j.nativeEvent.preventDownshiftDefault=!0,T(!1);else if(j.key==="Enter"&&(!H.isOpen||m.length===0)&&!Ze){const ge=H.inputValue;if(w){const G=ge.split("@");oe(w.title,G[G.length-1]),T(!1),H.setInputValue("");return}else ge!==""&&(f(u.length+1),c([...u,ge])),j.nativeEvent.preventDownshiftDefault=!0,e.onEnter&&e.onEnter(j,ge);T(!1)}else if(j.key==="Enter"&&y)Re(j);else if(j.key==="Tab"&&H.isOpen&&m.length>0&&((me=m[H.highlightedIndex])!=null&&me.name.startsWith("/")))H.setInputValue(m[0].name),j.preventDefault();else if(j.key==="Tab")j.nativeEvent.preventDownshiftDefault=!0;else{if((j.key==="ArrowUp"||j.key==="ArrowDown")&&m.length>0)return;if(j.key==="ArrowUp"){if(p==0||j.currentTarget.selectionStart!==0){j.nativeEvent.preventDownshiftDefault=!0;return}else p==u.length&&(u.length===0||u[u.length-1]!==j.currentTarget.value)&&c([...u,j.currentTarget.value]);H.setInputValue(u[p-1]),f(ge=>ge-1),T(!1)}else if(j.key==="ArrowDown"){if(p===u.length||j.currentTarget.selectionStart!==j.currentTarget.value.length){j.nativeEvent.preventDownshiftDefault=!0;return}pMath.min(ge+1,u.length)),T(!1)}else if(j.key==="Escape"){if(E){P(),j.nativeEvent.preventDownshiftDefault=!0;return}else if(w){P(),j.nativeEvent.preventDownshiftDefault=!0;return}T(!1),H.isOpen&&m.length>0?(H.closeMenu(),j.nativeEvent.preventDownshiftDefault=!0):(j.nativeEvent.preventDownshiftDefault=!0,(Ve=b.current)==null||Ve.blur(),qa("focusEditor",{}))}else j.key==="Home"||j.key==="End"?j.nativeEvent.preventDownshiftDefault=!0:localStorage.getItem("ide")==="jetbrains"&&(Km()==="mac"?Z0e(j,H.inputValue,H.setInputValue):Q0e(j,H.inputValue,H.setInputValue))}},onClick:()=>{o(pu(void 0))},ref:b})}),e.isMainInput||I.jsx(ohe,{ref:Me,children:L&&I.jsx("div",{className:"flex",children:I.jsxs(I.Fragment,{children:[N.filter((j,me)=>{var Ve;return((Ve=e.groupIndices)==null?void 0:Ve.includes(me))&&j.logs}).some(j=>j.logs.length>0)&&I.jsx(zi,{onClick:j=>{if(j.stopPropagation(),e.groupIndices){const me=`This is the exact prompt sent to the LLM: + +`+N.filter((Ve,ge)=>{var G;return(G=e.groupIndices)==null?void 0:G.includes(ge)}).flatMap(Ve=>Ve.logs||[]).join(` +`);qa("showVirtualFile",{name:"inspect_prompt.md",content:me})}},text:"Inspect Prompt",children:I.jsx(iZ,{width:"1.3em",height:"1.3em"})}),I.jsx(zi,{onClick:j=>{var me;j.stopPropagation(),e.active&&e.groupIndices?a==null||a.stopSession():(me=e.onDelete)==null||me.call(e)},text:e.active?`Stop (${zX()}⌫)`:"Delete",children:e.active?null:I.jsx(w9,{width:"1.4em",height:"1.4em"})})]})})})]}),w&&I.jsxs(she,{children:["Enter ",w.display_title," Query"]}),I.jsxs(lhe,{...H.getMenuProps({ref:se}),isMainInput:e.isMainInput,showAbove:D(),ulHeightPixels:((ue=se.current)==null?void 0:ue.getBoundingClientRect().height)||0,hidden:!H.isOpen||m.length===0||((Ee=b.current)==null?void 0:Ee.value)==="",fontSize:pr(),children:[E&&I.jsxs("div",{style:{backgroundColor:Vt,borderBottom:`0.5px solid ${Et}`,display:"flex",gap:"4px",position:"sticky",top:"0px"},className:"py-2 px-4 my-0",children:[I.jsx(mc,{width:"1.4em",height:"1.4em",className:"cursor-pointer",onClick:j=>{var me;P(),(me=b.current)==null||me.focus()}}),E.display_title," -"," ",E.description]}),H.isOpen&&m.map((j,me)=>I.jsxs(ZI,{style:{borderTop:me===0?"none":`0.5px solid ${Et}`},...H.getItemProps({item:j,index:me}),highlighted:H.highlightedIndex===me,selected:H.selectedItem===j,onClick:Ve=>{var ge;Re(Ve),Ve.stopPropagation(),Ve.preventDefault(),(ge=b.current)==null||ge.focus()},children:[I.jsxs("span",{className:"flex justify-between w-full items-center",children:[I.jsxs("div",{className:"flex items-center justify-center",children:[E&&I.jsx(Ey,{height:"20px",width:"20px",filename:j.name}),j.name," "]}),I.jsx("span",{style:{color:Et,float:"right",textAlign:"right"},children:j.description})]}),(q==null?void 0:q.filter(Ve=>!Ve.dynamic||Ve.requires_query).find(Ve=>Ve.title===j.id))&&I.jsx(tZ,{width:"1.2em",height:"1.2em",color:Et,className:"ml-2 flex-shrink-0"})]},`${j.name}${me}`)),H.isOpen&&m.length===0&&I.jsx(ZI,{highlighted:!1,selected:!1,isLastItem:!1,children:I.jsx("span",{style:{color:Et,float:"right",textAlign:"right",display:"flex",width:"100%",cursor:"default"},children:"No items found"})},"empty-items-li")]})]}),e.isMainInput&&I.jsx(xP,{disabled:!B&&(!((qe=b.current)!=null&&qe.value)||typeof a>"u"),onClick:()=>{var j;B?(a==null||a.stopSession(),o(Zd(!1))):(j=e.onEnter)==null||j.call(e,void 0)},showStop:B})]})});function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t=0||(p[u]=o[u]);return p}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function che(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function OP(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Xg(e);if(t){var i=Xg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return che(this,n)}}function Co(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var a,o,s=[],u=!0,c=!1;try{for(i=i.call(n);!(u=(a=i.next()).done)&&(s.push(a.value),!r||s.length!==r);u=!0);}catch(p){c=!0,o=p}finally{try{u||i.return==null||i.return()}finally{if(c)throw o}}return s}}(e,t)||lT(e,t)||function(){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 xy(e){return function(t){if(Array.isArray(t))return Iy(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||lT(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function lT(e,t){if(e){if(typeof e=="string")return Iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iy(e,t):void 0}}function Iy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var ma={DEBUG:!1,LIB_VERSION:"1.75.2"};/** * uuidv7: An experimental implementation of the proposed UUID Version 7 * * @license Apache-2.0 @@ -621,17 +624,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * @packageDocumentation * * from https://github.com/LiosK/uuidv7/blob/e501462ea3d23241de13192ceae726956f9b3b7d/src/index.ts - */Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e});var eI="0123456789abcdef",yfe=function(){function e(t){if(Bn(this,e),this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}return Un(e,[{key:"toString",value:function(){for(var t="",n=0;n>>4)+eI.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(t){return this.compareTo(t)===0}},{key:"compareTo",value:function(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var a=new Uint8Array(16);return a[0]=t/Math.pow(2,40),a[1]=t/Math.pow(2,32),a[2]=t/Math.pow(2,24),a[3]=t/Math.pow(2,16),a[4]=t/Math.pow(2,8),a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}}]),e}(),_fe=function(){function e(){Bn(this,e),ct(this,"timestamp",0),ct(this,"counter",0),ct(this,"random",new Tfe)}return Un(e,[{key:"generate",value:function(){var t=this.generateOrAbort();if(t!==void 0)return t;this.timestamp=0;var n=this.generateOrAbort();if(n===void 0)throw new Error("Could not generate UUID after timestamp reset");return n}},{key:"generateOrAbort",value:function(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return yfe.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),hF=function(e){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t=this.buffer.length&&(hF(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),Sfe=function(){return(tI||(tI=new _fe)).generate()},gF=Array.prototype,mF=Object.prototype,v7=mF.toString,wfe=mF.hasOwnProperty,ht=typeof window<"u"?window:{},Wl=ht.navigator||{userAgent:""},Hn=ht.document||{},ra=Wl.userAgent,Afe=["localhost","127.0.0.1"],nI=gF.forEach,rI=gF.indexOf,Cfe=Array.isArray,y7={},kn={log:function(){if(fa.DEBUG&&!Ua(window.console)&&window.console){for(var e=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r0&&(t[r]=n)}),t},kfe=["$performance_raw"];function Ife(e,t){return n=e,r=function(a,o){return o&&kfe.indexOf(o)>-1?a:typeof a=="string"&&t!==null?a.slice(0,t):a},i=new Set,function a(o,s){return o!==Object(o)?r?r(o,s):o:i.has(o)?void 0:(i.add(o),Wo(o)?(u=[],Zo(o,function(c){u.push(a(c))})):(u={},fn(o,function(c,p){i.has(c)||(u[p]=a(c,p))})),u);var u}(n);var n,r,i}function _7(e){var t,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",p=[];if(!e)return e;e=Rfe(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,p[u++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s>>4)+tR.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(t){return this.compareTo(t)===0}},{key:"compareTo",value:function(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var a=new Uint8Array(16);return a[0]=t/Math.pow(2,40),a[1]=t/Math.pow(2,32),a[2]=t/Math.pow(2,24),a[3]=t/Math.pow(2,16),a[4]=t/Math.pow(2,8),a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}}]),e}(),phe=function(){function e(){Un(this,e),ct(this,"timestamp",0),ct(this,"counter",0),ct(this,"random",new fhe)}return $n(e,[{key:"generate",value:function(){var t=this.generateOrAbort();if(t!==void 0)return t;this.timestamp=0;var n=this.generateOrAbort();if(n===void 0)throw new Error("Could not generate UUID after timestamp reset");return n}},{key:"generateOrAbort",value:function(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return dhe.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),DP=function(e){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t=this.buffer.length&&(DP(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),hhe=function(){return(nR||(nR=new phe)).generate()},LP=Array.prototype,MP=Object.prototype,uT=MP.toString,ghe=MP.hasOwnProperty,ht=typeof window<"u"?window:{},Ql=ht.navigator||{userAgent:""},jn=ht.document||{},aa=Ql.userAgent,mhe=["localhost","127.0.0.1"],rR=LP.forEach,iR=LP.indexOf,bhe=Array.isArray,cT={},In={log:function(){if(ma.DEBUG&&!ja(window.console)&&window.console){for(var e=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r0&&(t[r]=n)}),t},Ehe=["$performance_raw"];function vhe(e,t){return n=e,r=function(a,o){return o&&Ehe.indexOf(o)>-1?a:typeof a=="string"&&t!==null?a.slice(0,t):a},i=new Set,function a(o,s){return o!==Object(o)?r?r(o,s):o:i.has(o)?void 0:(i.add(o),es(o)?(u=[],as(o,function(c){u.push(a(c))})):(u={},hn(o,function(c,p){i.has(c)||(u[p]=a(c,p))})),u);var u}(n);var n,r,i}function dT(e){var t,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",p=[];if(!e)return e;e=_he(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,p[u++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},iI=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=ra,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return Sfe().toString()}},Nfe=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},aI=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{kn.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},oI=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Fd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;bF(p)&&(m=p(f));var E=c.call(u,f);return m!==!1&&E!==!1||(g=!1),g}}}(t,r,s)}else kn.error("No valid element provided to register_event")}}();function T7(e,t){var n=function(){var r=Hn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=Hn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):Hn.body.appendChild(r)};Hn.body?n():Hn.addEventListener("DOMContentLoaded",n)}var yr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return fn(t,function(r){var i=aI(Hn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=Hn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=yr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=aI(Hn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||pn(e," OPR/")?pn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":pn(e,"IEMobile")||pn(e,"WPDesktop")?"Internet Explorer Mobile":pn(e,"SamsungBrowser/")?"Samsung Internet":pn(e,"Edge")||pn(e,"Edg/")?"Microsoft Edge":pn(e,"FBIOS")?"Facebook Mobile":pn(e,"Chrome")?"Chrome":pn(e,"CriOS")?"Chrome iOS":pn(e,"UCWEB")||pn(e,"UCBrowser")?"UC Browser":pn(e,"FxiOS")?"Firefox iOS":pn(t,"Apple")?pn(e,"Mobile")?"Mobile Safari":"Safari":pn(e,"Android")?"Android Mobile":pn(e,"Konqueror")?"Konqueror":pn(e,"Firefox")?"Firefox":pn(e,"MSIE")||pn(e,"Trident/")?"Internet Explorer":pn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[yr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Wl.language||Wl.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return Hn.referrer||"$direct"},referringDomain:function(){if(!Hn.referrer)return"$direct";var e=Hn.createElement("a");return e.href=Hn.referrer,e.host},properties:function(){var e=yr.os(ra),t=e.os_name,n=e.os_version;return Pr(Jb({$os:t,$os_version:n,$browser:yr.browser(ra,Wl.vendor,ht.opera),$device:yr.device(ra),$device_type:yr.deviceType(ra)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:yr.browserVersion(ra,Wl.vendor,ht.opera),$browser_language:yr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:fa.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:vF()/1e3})},people_properties:function(){var e=yr.os(ra),t=e.os_name,n=e.os_version;return Pr(Jb({$os:t,$os_version:n,$browser:yr.browser(ra,Wl.vendor,ht.opera)}),{$browser_version:yr.browserVersion(ra,Wl.vendor,ht.opera)})}};function wg(e){switch(ol(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Ag(e){var t="";return Eh(e)&&!TF(e)&&e.childNodes&&e.childNodes.length&&fn(e.childNodes,function(n){_F(n)&&n.textContent&&(t+=Zb(n.textContent).split(/(\s+)/).filter(S1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Zb(t)}function sI(e){return!!e&&e.nodeType===1}function ou(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function _F(e){return!!e&&e.nodeType===3}function lI(e){return!!e&&e.nodeType===11}var Q3=["a","button","form","input","select","textarea","label"];function Eh(e){for(var t=e;t.parentNode&&!ou(t,"body");t=t.parentNode){var n=wg(t).split(" ");if(pn(n,"ph-sensitive")||pn(n,"ph-no-capture"))return!1}if(pn(wg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function TF(e){return!!(ou(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||ou(e,"select")||ou(e,"textarea")||e.getAttribute("contenteditable")==="true")}function S1(e){return!(e===null||Ua(e)||typeof e=="string"&&(e=Zb(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function uI(e){var t=Ag(e);return S1(t="".concat(t," ").concat(SF(e)).trim())?t:""}function SF(e){var t="";return e&&e.childNodes&&e.childNodes.length&&fn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Ag(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(SF(n)).trim())}catch(a){console.error(a)}}),t}var Ofe=function(){function e(t){Bn(this,e),this.clicks=[],this.enabled=t}return Un(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),Dfe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,po={is_supported:function(){return!0},error:function(e){kn.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=uI(e):i.$el_text=Ag(e));var a=wg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),fn(e.attributes,function(c){var p;TF(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&S1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return fn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),S1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return fn(this._customProperties,function(r){fn(r.event_selectors,function(i){fn(document.querySelectorAll(i),function(a){pn(e,a)&&Eh(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if(_F(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,E){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||ou(g,"html")||!sI(g))return!1;if(b!=null&&b.url_allowlist){var T=window.location.href,v=b.url_allowlist;if(v&&!v.some(function(z){return T.match(z)}))return!1}if(b!=null&&b.dom_event_allowlist){var y=b.dom_event_allowlist;if(y&&!y.some(function(z){return E.type===z}))return!1}if(b!=null&&b.element_allowlist){var w=b.element_allowlist;if(w&&!w.some(function(z){return g.tagName.toLowerCase()===z}))return!1}if(b!=null&&b.css_selector_allowlist){var A=b.css_selector_allowlist;if(A&&!A.some(function(z){return g.matches(z)}))return!1}for(var D=!1,k=[g],R=!0,B=g;B.parentNode&&!ou(B,"body");)if(lI(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(R=B.parentNode||!1))break;if(Q3.indexOf(R.tagName.toLowerCase())>-1)D=!0;else{var W=window.getComputedStyle(R);W&&W.getPropertyValue("cursor")==="pointer"&&(D=!0)}k.push(R),B=R}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&E.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return E.type==="submit";case"input":case"select":case"textarea":return E.type==="change"||E.type==="click";default:return D?E.type==="click":E.type==="click"&&(Q3.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!ou(s,"body");)lI(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(fn(o,function(g){var E=Eh(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=E&&S1(u)&&u),pn(wg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var b=r._getAugmentPropertiesFromElement(g);Pr(p,b)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=uI(a):c[0].$el_text=Ag(a)),u&&(c[0].attr__href=u),f)return!1;var m=Pr(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Fd(document,"submit",n,!1,!0),Fd(document,"change",n,!1,!0),Fd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new Ofe(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?kn.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},cI,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=Ua(t)?10:t,n=Ua(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Cg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Cg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(r9);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},r9,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(A1)||{};this.instance.register(ct({},A1,yt(yt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(A1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Ps)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=yt(yt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Ps,yt(yt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Ps)||{};this.instance.register(ct({},Ps,yt(yt({},n),{},ct({},t,{}))))}else this.instance.unregister(Ps)}}]),e}(),Bfe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",mI=2,Ufe=4,AF=3,$fe=6,zfe=0,Hfe=5e6,jfe="rrweb/console@1",oo,Gfe=Un(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bn(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,E;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(E=o.adds)===null||E===void 0?void 0:E.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==AF||o.data.source!==zfe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,E=yo(i.getNodeOrRelevantParent(p.id),2),b=E[0],T=E[1];return i.mutationBuckets[b]===0?!1:(i.mutationBuckets[b]=(f=i.mutationBuckets[b])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[b]=Math.max(i.mutationBuckets[b]-1,0),i.mutationBuckets[b]===0&&(i.loggedTracker[b]||(i.loggedTracker[b]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,b,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Vfe="/s/",CF="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(oo||(oo={}));var Wfe=[oo.MouseMove,oo.MouseInteraction,oo.Scroll,oo.ViewportResize,oo.Input,oo.TouchMove,oo.MediaInteraction,oo.Drag],qfe=function(){function e(t){var n=this;Bn(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Vfe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return Un(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(t9),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(dI),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(pI);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},t9,!!t.sessionRecording),ct(o,dI,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,pI,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:vF()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?T7(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(fa.LIB_VERSION),function(r){if(r)return kn.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===AF&&Wfe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[mI,Ufe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return kn.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aHfe){var c,p=as(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Bfe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&ol(u)==="object"&&u.type===$fe&&ol(u.data)==="object"&&u.data.plugin===jfe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:CF,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===mI}})}}]),e}(),no={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Kfe=["first-input","navigation","paint","resource"],Yfe=["/s/","/e/"],Xfe=function(){function e(t){Bn(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return Un(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!Afe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Kfe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else kn.log("PostHog Peformance observer not started because we are on localhost.");else kn.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if(Yfe.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[no.timeOrigin]=s,o[no.timestamp]=Math.floor(s+t.startTime),no)a[u]!==void 0&&(o[no[u]]=a[u]);if(this.capturePerformanceEvent(o),Zfe(t)){var c,p=as(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},no.timeOrigin,s),ct(f,no.timestamp,Math.floor(s+t.startTime)),ct(f,no.name,m.name),ct(f,no.duration,m.duration),ct(f,no.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[no.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Zfe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},Qfe=function(){function e(t){Bn(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return Un(e,[{key:"call",value:function(){var t=this,n=_7(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(A1),group_properties:this.instance.get_property(Ps),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),zs.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=as(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=as(t.siteApps);try{var m=function(){var g=c.value,E=g.id,b=g.url,T=[p,p[p.length-1]==="/"&&b[0]==="/"?b.substring(1):b].join("");window["__$$ph_site_app_".concat(E)]=a.instance,T7(T,function(v){v&&console.error("Error while initializing PostHog app with config id ".concat(E),v)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Jfe=["https://app.posthog.com","https://eu.posthog.com"],e0e=["source"],t0e=function(){function e(t){Bn(this,e),this.instance=t}return Un(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(yt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=oI(t.hash,"__posthog")||oI(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Jfe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=yt(yt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=Efe(s,e0e);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),T7(a,function(c){c?kn.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Fd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),n0e="__ph_opt_in_out_";function r0e(e,t){kF(!0,e,t)}function i0e(e,t){kF(!1,e,t)}function a0e(e,t){return xF(e,t)==="1"}function bI(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return fn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){pn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||xF(e,t)==="0"}function o0e(e,t){S7(t=t||{}).remove(w7(e,t),!!t.crossSubdomainCookie)}function S7(e){return(e=e||{}).persistenceType==="localStorage"?qn:e.persistenceType==="localStorage+cookie"?e9:po}function w7(e,t){return((t=t||{}).persistencePrefix||n0e)+e}function xF(e,t){return S7(t).get(w7(e,t))}function kF(e,t,n){EF(t)&&t.length?(S7(n=n||{}).set(w7(t,n),e?1:0,xfe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var IF=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Bn(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return Un(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),s0e=function(e){pF(n,IF);var t=fF(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Bn(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return Un(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;fn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(Yb(a.filter(function(o){return o.url.indexOf("/e")===0})),Yb(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,yt(yt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return fn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),l0e=function(){function e(t){Bn(this,e),this.enabled=t,this.metrics={}}return Un(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Pi=Uint8Array,Jr=Uint16Array,ec=Uint32Array,A7=new Pi([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),C7=new Pi([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),EI=new Pi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),RF=function(e,t){for(var n=new Jr(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Tn)<<1;zl=(61680&(zl=(52428&zl)>>>2|(13107&zl)<<2))>>>4|(3855&zl)<<4,l9[Tn]=((65280&zl)>>>8|(255&zl)<<8)>>>1}var Pd=function(e,t,n){for(var r=e.length,i=0,a=new Jr(t);i>>u]=c}else for(o=new Jr(r),i=0;i>>15-e[i];return o},bu=new Pi(288);for(Tn=0;Tn<144;++Tn)bu[Tn]=8;for(Tn=144;Tn<256;++Tn)bu[Tn]=9;for(Tn=256;Tn<280;++Tn)bu[Tn]=7;for(Tn=280;Tn<288;++Tn)bu[Tn]=8;var xg=new Pi(32);for(Tn=0;Tn<32;++Tn)xg[Tn]=5;var Yl,c0e=Pd(bu,9,0),d0e=Pd(xg,5,0),OF=function(e){return(e/8>>0)+(7&e&&1)},DF=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof Jr?Jr:e instanceof ec?ec:Pi)(n-t);return r.set(e.subarray(t,n)),r},$o=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},Jc=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},t4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new Jr(m+1),E=p0e(n[p-1],g,0);if(E>t){r=0;var b=0,T=E-t,v=1<t))break;b+=v-(1<>>=T;b>0;){var w=a[r].s;g[w]=0&&b;--r){var A=a[r].s;g[A]==t&&(--g[A],++b)}E=t}return[new Pi(g),E]},p0e=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},yI=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Jr(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},ed=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[EI[z-1]];--z);var le,he,de,fe,Z=c+5<<3,V=ed(i,bu)+ed(a,xg)+o,ce=ed(i,m)+ed(a,b)+o+14+3*z+ed(R,P)+(2*R[16]+3*R[17]+7*R[18]);if(Z<=V&&Z<=ce)return yh(t,p,e.subarray(u,u+c));if($o(t,p,1+(ce15&&($o(t,p,O[B]>>>5&127),p+=O[B]>>>12)}}}else le=c0e,he=bu,de=d0e,fe=xg;for(B=0;B255){re=r[B]>>>18&31,Jc(t,p,le[re+257]),p+=he[re+257],re>7&&($o(t,p,r[B]>>>23&31),p+=A7[re]);var Te=31&r[B];Jc(t,p,de[Te]),p+=fe[Te],Te>3&&(Jc(t,p,r[B]>>>5&8191),p+=C7[Te])}else Jc(t,p,le[r[B]]),p+=he[r[B]];return Jc(t,p,le[256]),p+he[256]},f0e=new ec([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),h0e=new Pi(0),g0e=function(){for(var e=new ec(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),m0e=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},b0e=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Pi(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),E=0;if(!o||f<8)for(var b=0;b<=f;b+=65535){var T=b+65535;T>>13,w=8191&v,A=(1<7e3||de>24576)&&me>423){E=_I(a,g,0,P,Q,z,he,de,Z,b-Z,E),de=le=he=0,Z=b;for(var oe=0;oe<286;++oe)Q[oe]=0;for(oe=0;oe<30;++oe)z[oe]=0}var O=2,re=0,Te=w,K=ce-N&32767;if(me>2&&V==W(b-K))for(var xe=Math.min(y,me)-1,ne=Math.min(32767,b),Le=Math.min(258,me);K<=ne&&--Te&&ce!=N;){if(a[b+O]==a[b+O-K]){for(var Re=0;ReO){if(O=Re,re=K,Re>xe)break;var Xe=Math.min(K,Re-2),Ve=0;for(oe=0;oeVe&&(Ve=ot,N=dt)}}}K+=(ce=N)-(N=D[ce])+32768&32767}if(re){P[de++]=268435456|s9[O]<<18|vI[re];var Ge=31&s9[O],pt=31&vI[re];he+=A7[Ge]+C7[pt],++Q[257+Ge],++z[pt],fe=b+O,++le}else P[de++]=a[b],++Q[a[b]]}}E=_I(a,g,p,P,Q,z,he,de,Z,b-Z,E),p||(E=yh(g,E,h0e))}return DF(m,0,u+OF(E)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},u9=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},E0e=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&u9(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},v0e=function(e){return 10+(e.filename&&e.filename.length+1||0)};function y0e(e,t){t===void 0&&(t={});var n=m0e(),r=e.length;n.p(e);var i=b0e(e,t,v0e(t),8),a=i.length;return E0e(i,t),u9(i,a-8,n.d()),u9(i,a-4,r),i}function _0e(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Pi(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Pi(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return DF(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(Yl||(Yl={}));var T0e=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=fa.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=as(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return fn(c,function(E,b){p=encodeURIComponent(E.toString()),f=encodeURIComponent(b),g[g.length]=f+"="+p}),g.join(m)}(r)},x7=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},LF=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var E=x7(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),fn(r,function(b,T){g.setRequestHeader(T,b)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var b;try{b=JSON.parse(g.responseText)}catch(T){return void kn.error(T)}o(b)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(E)},S0e=18e5,w0e=function(e){pF(n,IF);var t=fF(n);function n(r,i,a){var o;return Bn(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return Un(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(S0e,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=as(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=as(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))fa.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,x7(s,yt(yt({},u),{},{sendBeacon:!0})))}catch(c){fa.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?fa.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):LF({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),z0=1800,TI=60,A0e=864e5,C0e=function(){function e(t,n,r){Bn(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||z0;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=z0):a>z0?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=yo(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>A0e,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),x0e=Un(function e(t,n,r,i){Bn(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],E={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(E.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",E),o})}}),k0e=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},I0e=function(){function e(t){Bn(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return Un(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function SI(e){return typeof Event<"u"&&MF(e,Event)}function MF(e,t){try{return e instanceof t}catch{return!1}}function wI(e){return e===null||ol(e)!=="object"&&typeof e!="function"}function _h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function n4(e){return _h(e,"DOMError")}var AI=/\(error: (.*)\)/,CI=50,Th="?";function r4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var R0e=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,N0e=/\((\S*)(?::(\d+))(?::(\d+))\)/,O0e=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,D0e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,L0e=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,M0e=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` -`),u=a;u1024)){var p=AI.test(c)?c.replace(AI,"$1"):c;if(!p.match(/\S*Error: /)){var f,m=as(r);try{for(m.s();!(f=m.n()).done;){var g=(0,f.value)(p);if(g){o.push(g);break}}}catch(E){m.e(E)}finally{m.f()}if(o.length>=CI)break}}}return function(E){if(!E.length)return[];var b=E.slice(0,CI);return b.reverse(),b.map(function(T){return yt(yt({},T),{},{filename:T.filename||b[b.length-1].filename,function:T.function||"?"})})}(o)}}).apply(void 0,[[30,function(e){var t=R0e.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){var n=N0e.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=yo(xI(t[1]||Th,t[2]),2),i=r[0];return r4(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=O0e.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=D0e.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||Th,a=yo(xI(i,r),2);return i=a[0],r4(r=a[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=L0e.exec(e);return t?r4(t[2],t[1]||Th,+t[3],t[4]?+t[4]:void 0):void 0}]]),xI=function(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Th,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},F0e=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,P0e=/Minified React error #\d+;/i;function B0e(e){var t=e.stacktrace||e.stack||"",n=function(r){if(r){if(typeof r.framesToPop=="number")return r.framesToPop;if(P0e.test(r.message))return 1}return 0}(e);try{return M0e(t,n)}catch{}return[]}function i4(e){var t=B0e(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function U0e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:40,n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:"".concat(i.slice(0,t),"...")}return""}function kI(e){var t=yo(e,5),n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s={};if(o===void 0&&typeof n=="string"){var u="Error",c=n,p=n.match(F0e);p&&(u=p[1],c=p[2]),s={$exception_type:u,$exception_message:c}}var f=o||n;if(n4(f)||function(b){return _h(b,"DOMException")}(f)){var m=f;if(function(b){return"stack"in b}(f))s=i4(f);else{var g=m.name||(n4(m)?"DOMError":"DOMException"),E=m.message?"".concat(g,": ").concat(m.message):g;s=function(b){return{$exception_type:"Error",$exception_message:b}}(E),s.$exception_type=n4(m)?"DOMError":"DOMException",s.$exception_message=s.$exception_message||E}"code"in m&&(s.$exception_DOMException_code="".concat(m.code))}else(function(b){return _h(b,"ErrorEvent")})(f)&&f.error?s=i4(f.error):function(b){switch(Object.prototype.toString.call(b)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return MF(b,Error)}}(f)?s=i4(f):function(b){return _h(b,"Object")}(f)||SI(f)?(s=function(b){return{$exception_type:SI(b)?b.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",U0e(b))}}(f),s.$exception_is_synthetic=!0):(s.$exception_type=s.$exception_type||"Error",s.$exception_message=s.$exception_message||f,s.$exception_is_synthetic=!0);return yt(yt(yt(yt({},s),{},{$exception_type:s.$exception_type||"UnknownErrorType",$exception_message:s.$exception_message||""},r?{$exception_source:r}:{}),i?{$exception_lineno:i}:{}),a?{$exception_colno:a}:{})}var II,RI,$0e=function(){function e(t){Bn(this,e),ct(this,"originalOnErrorHandler",void 0),ct(this,"originalOnUnhandledRejectionHandler",void 0),ct(this,"errorsToIgnore",[]),this.instance=t}return Un(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var t,n=arguments.length,r=new Array(n),i=0;i1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(i9);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.surveys;return n.instance.persistence.register(ct({},i9,o)),t(o)})}},{key:"getActiveMatchingSurveys",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(i){var a=i.filter(function(o){return!(!o.start_date||o.end_date)}).filter(function(o){var s,u;if(!o.conditions)return!0;var c=(s=o.conditions)===null||s===void 0||!s.url||window.location.href.indexOf(o.conditions.url)>-1,p=(u=o.conditions)===null||u===void 0||!u.selector||document.querySelector(o.conditions.selector);return c&&p}).filter(function(o){if(!o.linked_flag_key&&!o.targeting_flag_key)return!0;var s=!o.linked_flag_key||n.instance.featureFlags.isFeatureEnabled(o.linked_flag_key),u=!o.targeting_flag_key||n.instance.featureFlags.isFeatureEnabled(o.targeting_flag_key);return s&&u});return t(a)},r)}}]),e}(),H0e={"X-PostHog-Retry-After-Recordings":CF,"X-PostHog-Retry-After-Events":"events"},j0e=function(){function e(){Bn(this,e),ct(this,"limits",{})}return Un(e,[{key:"isRateLimited",value:function(t){var n=this.limits[t||"events"]||!1;return n!==!1&&new Date().getTime()1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,c={segmentRegister:!1,syncCode:!1},p=function(A){return function(){c[A]||(c[A]=!0,c.segmentRegister&&c.syncCode&&(s==null||s(i)))}};if(this.set_config(Pr({},NI(),a,{name:o,token:t,callback_fn:(o===pi?o:pi+"."+o)+"._jsc"})),this.uuidFn=iI(this.config.uuid_version||"og"),this._jsc=function(){},(ht!=null&&(n=ht.rrweb)!==null&&n!==void 0&&n.record||ht!=null&&ht.rrwebRecord)&&(this.__loaded_recorder_version=ht==null||(u=ht.rrweb)===null||u===void 0?void 0:u.version),this.persistence=new fI(this.config),this._captureMetrics=new l0e(this.get_config("_capture_metrics")),this._requestQueue=new s0e(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new w0e(this._captureMetrics,this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new C0e(this.config,this.persistence,this.uuidFn),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new fI(yt(yt({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(p("segmentRegister"))):p("segmentRegister")(),((r=a.bootstrap)===null||r===void 0?void 0:r.distinctID)!==void 0){var f,m,g=this.get_config("get_device_id")(this.uuidFn()),E=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?g:a.bootstrap.distinctID;this.persistence.set_user_state((m=a.bootstrap)!==null&&m!==void 0&&m.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:E})}if(this._hasBootstrappedFeatureFlags()){var b,T,v=Object.keys(((b=a.bootstrap)===null||b===void 0?void 0:b.featureFlags)||{}).filter(function(A){var D,k;return!((D=a.bootstrap)===null||D===void 0||(k=D.featureFlags)===null||k===void 0||!k[A])}).reduce(function(A,D){var k,R;return A[D]=((k=a.bootstrap)===null||k===void 0||(R=k.featureFlags)===null||R===void 0?void 0:R[D])||!1,A},{}),y=Object.keys(((T=a.bootstrap)===null||T===void 0?void 0:T.featureFlagPayloads)||{}).filter(function(A){return v[A]}).reduce(function(A,D){var k,R,B,W;return(k=a.bootstrap)!==null&&k!==void 0&&(R=k.featureFlagPayloads)!==null&&R!==void 0&&R[D]&&(A[D]=(B=a.bootstrap)===null||B===void 0||(W=B.featureFlagPayloads)===null||W===void 0?void 0:W[D]),A},{});this.featureFlags.receivedFeatureFlags({featureFlags:v,featureFlagPayloads:y})}if(!this.get_distinct_id()){var w=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_user_state("anonymous")}ht.addEventListener&&ht.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),p("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(t){console.error("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:Hn.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new Qfe(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var t=this;this.has_opted_out_capturing()||Zo(this.__request_queue,function(n){t._send_request.apply(t,Yb(n))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(t,n){if(Ua(t))return null;if(Sh)return function(o){t(o,n)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],t(o,n)},a}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(t,n,r){var i=JSON.stringify(n);this.__compress_and_send_json_request(t,i,r||H0,c9)}},{key:"__compress_and_send_json_request",value:function(t,n,r,i){var a=function(c,p,f){return c===Yl.GZipJS?[y0e(_0e(p),{mtime:0}),yt(yt({},f),{},{blob:!0,urlQueryArgs:{compression:Yl.GZipJS}})]:[{data:_7(p)},f]}(this.compression[Yl.GZipJS]?Yl.GZipJS:Yl.Base64,n,r),o=yo(a,2),s=o[0],u=o[1];this._send_request(t,s,u,i)}},{key:"_send_request",value:function(t,n,r,i){if(this.rateLimiter.isRateLimited(r._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(FF)this.__request_queue.push([t,n,r,i]);else{var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=Pr(a,r||{}),Sh||(r.method="GET");var o="sendBeacon"in ht.navigator&&r.transport==="sendBeacon";if(t=T0e(t,r.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{ht.navigator.sendBeacon(t,x7(n,yt(yt({},r),{},{sendBeacon:!0})))}catch{}else if(Sh)try{LF({url:t,data:n,headers:this.get_config("xhr_headers"),options:r,captureMetrics:this._captureMetrics,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(p){console.error(p)}else{var s,u=Hn.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=t;var c=Hn.getElementsByTagName("script")[0];(s=c.parentNode)===null||s===void 0||s.insertBefore(u,c)}}}},{key:"_execute_array",value:function(t){var n,r=this,i=[],a=[],o=[];Zo(t,function(u){u&&(n=u[0],Wo(n)?o.push(u):typeof u=="function"?u.call(r):Wo(u)&&n==="alias"?i.push(u):Wo(u)&&n.indexOf("capture")!==-1&&typeof r[n]=="function"?o.push(u):a.push(u))});var s=function(u,c){Zo(u,function(p){if(Wo(p[0])){var f=c;fn(p,function(m){f=f[m[0]].apply(f,m.slice(1))})}else this[p[0]].apply(this,p.slice(1))},c)};s(i,this),s(a,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var t,n;return((t=this.config.bootstrap)===null||t===void 0?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)===null||n===void 0?void 0:n.featureFlags).length>0||!1}},{key:"push",value:function(t){this._execute_array([t])}},{key:"captureException",value:function(t,n){var r;(r=this.exceptionAutocapture)===null||r===void 0||r.captureException([t.name,void 0,void 0,void 0,t],n)}},{key:"capture",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:H0;if(this.__loaded&&!function(c,p){var f=!1;try{var m=c.get_config("token"),g=c.get_config("respect_dnt"),E=c.get_config("opt_out_capturing_persistence_type"),b=c.get_config("opt_out_capturing_cookie_prefix")||void 0,T=c.get_config("window");m&&(f=bI(m,{respectDnt:g,persistenceType:E,persistencePrefix:b,window:T}))}catch(v){p||console.error("Unexpected error when checking capturing opt-out status: "+v)}return f}(this,!1)){this._captureMetrics.incr("capture"),t==="$snapshot"&&this._captureMetrics.incr("snapshot");var i=(r=r||H0).transport;if(i&&(r.transport=i),Ua(t)||typeof t!="string")console.error("No event name provided to posthog.capture");else if(!Nfe(ra)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var a={uuid:this.uuidFn("v7"),event:t,properties:this._calculate_event_properties(t,n||{})};t==="$identify"&&(a.$set=r.$set,a.$set_once=r.$set_once),(a=Ife(a,r._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=r.timestamp||new Date,this.get_config("debug")&&kn.log("PostHog.js send",a);var o=JSON.stringify(a),s=this.get_config("api_host")+(r.endpoint||"/e/"),u=r!==H0;return!this.get_config("request_batching")||u&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(s,o,r):this._requestQueue.enqueue(s,a,r),this._invokeCaptureHooks(t,a),a}}}},{key:"_addCaptureHook",value:function(t){this.__captureHooks.push(t)}},{key:"_invokeCaptureHooks",value:function(t,n){this.config._onCapture(t,n),fn(this.__captureHooks,function(r){return r(t)})}},{key:"_calculate_event_properties",value:function(t,n){var r,i=this.persistence.remove_event_timer(t),a=yt({},n);if(a.token=this.get_config("token"),t==="$snapshot"){var o=yt(yt({},this.persistence.properties()),this.sessionPersistence.properties());return a.distinct_id=o.distinct_id,a}var s=yr.properties();if(this.sessionManager){var u=this.sessionManager.checkAndGetSessionAndWindowId(),c=u.sessionId,p=u.windowId;a.$session_id=c,a.$window_id=p}if((r=this.webPerformance)!==null&&r!==void 0&&r.isEnabled&&(t==="$pageview"&&this.pageViewIdManager.onPageview(),a=Pr(a,{$pageview_id:this.pageViewIdManager.getPageViewId()})),t==="$pageview"&&(a.title=Hn.title),t==="$performance_event"){var f=this.persistence.properties();return a.distinct_id=f.distinct_id,a.$current_url=s.$current_url,a}if(i!==void 0){var m=new Date().getTime()-i;a.$duration=parseFloat((m/1e3).toFixed(3))}a=Pr({},yr.properties(),this.persistence.properties(),this.sessionPersistence.properties(),a);var g=this.get_config("property_blacklist");Wo(g)?fn(g,function(b){delete a[b]}):console.error("Invalid value for property_blacklist config: "+g);var E=this.get_config("sanitize_properties");return E&&(a=E(a,t)),a}},{key:"register",value:function(t,n){this.persistence.register(t,n)}},{key:"register_once",value:function(t,n,r){this.persistence.register_once(t,n,r)}},{key:"register_for_session",value:function(t){this.sessionPersistence.register(t)}},{key:"unregister",value:function(t){this.persistence.unregister(t)}},{key:"unregister_for_session",value:function(t){this.sessionPersistence.unregister(t)}},{key:"_register_single",value:function(t,n){this.register(ct({},t,n))}},{key:"getFeatureFlag",value:function(t,n){return this.featureFlags.getFeatureFlag(t,n)}},{key:"getFeatureFlagPayload",value:function(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}},{key:"isFeatureEnabled",value:function(t,n){return this.featureFlags.isFeatureEnabled(t,n)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}},{key:"getEarlyAccessFeatures",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,n)}},{key:"onFeatureFlags",value:function(t){return this.featureFlags.onFeatureFlags(t)}},{key:"onSessionId",value:function(t){return this.sessionManager.onSessionId(t)}},{key:"getSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(t,n)}},{key:"getActiveMatchingSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(t,n)}},{key:"identify",value:function(t,n,r){if(t){this._captureMetrics.incr("identify");var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var a=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:a},"")}t!==i&&t!==this.get_property(vh)&&(this.unregister(vh),this.register({distinct_id:t}));var o=this.persistence.get_user_state()==="anonymous";t!==i&&o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(n||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Cg))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(t,n){(t||n)&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:n||{}}))}},{key:"group",value:function(t,n,r){if(t&&n){this._captureMetrics.incr("group");var i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:yt(yt({},i),{},ct({},t,n))}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags(ct({},t,r))),i[t]===n||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,n)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(t,n)}},{key:"resetGroupPropertiesForFlags",value:function(t){this.featureFlags.resetGroupPropertiesForFlags(t)}},{key:"reset",value:function(t){var n=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var r=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:r,$device_id:t?r:n},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(t){var n=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=r.sessionId,a=r.sessionStartTimestamp,o=n+"/replay/"+i;if(t!=null&&t.withTimestamp&&a){var s,u=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!a)return o;var c=Math.max(Math.floor((new Date().getTime()-a)/1e3)-u,0);o+="?t=".concat(c)}return o}},{key:"alias",value:function(t,n){return t===this.get_property(wF)?(kn.critical("Attempting to create alias for existing People user - aborting."),-2):(Ua(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(vh,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(t),-1))}},{key:"set_config",value:function(t){var n=yt({},this.config);Qb(t)&&(Pr(this.config,t),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),qn.is_supported()&&qn.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(fa.DEBUG=!0),this.sessionRecording&&t.disable_session_recording!==void 0&&n.disable_session_recording!==t.disable_session_recording&&(t.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var t;return!((t=this.sessionRecording)===null||t===void 0||!t.started())}},{key:"loadToolbar",value:function(t){return this.toolbar.loadToolbar(t)}},{key:"get_config",value:function(t){var n;return(n=this.config)===null||n===void 0?void 0:n[t]}},{key:"get_property",value:function(t){return this.persistence.props[t]}},{key:"getSessionProperty",value:function(t){return this.sessionPersistence.props[t]}},{key:"toString",value:function(){var t,n=(t=this.get_config("name"))!==null&&t!==void 0?t:pi;return n!==pi&&(n=pi+"."+n),n}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&qn.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!po.get("ph_optout")||(po.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(t){var n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),this.get_config("disable_persistence")||this.sessionPersistence.disabled===n||this.sessionPersistence.set_disabled(n)}},{key:"_gdpr_call_func",value:function(t,n){return n=Pr({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},n||{}),qn.is_supported()||n.persistence_type!=="localStorage"||(n.persistence_type="cookie"),t(this.get_config("token"),{capture:n.capture,captureEventName:n.capture_event_name,captureProperties:n.capture_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieExpiration:n.cookie_expiration,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie})}},{key:"opt_in_capturing",value:function(t){t=Pr({enable_persistence:!0},t||{}),this._gdpr_call_func(r0e,t),this._gdpr_update_persistence(t)}},{key:"opt_out_capturing",value:function(t){var n=Pr({clear_persistence:!0},t||{});this._gdpr_call_func(i0e,n),this._gdpr_update_persistence(n)}},{key:"has_opted_in_capturing",value:function(t){return this._gdpr_call_func(a0e,t)}},{key:"has_opted_out_capturing",value:function(t){return this._gdpr_call_func(bI,t)}},{key:"clear_opt_in_out_capturing",value:function(t){var n=Pr({enable_persistence:!0},t??{});this._gdpr_call_func(o0e,n),this._gdpr_update_persistence(n)}},{key:"debug",value:function(t){t===!1?(ht.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(ht.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();(function(e,t){for(var n=0;n127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},aR=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=aa,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return hhe().toString()}},The=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},oR=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{In.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},sR=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Qd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;FP(p)&&(m=p(f));var b=c.call(u,f);return m!==!1&&b!==!1||(g=!1),g}}}(t,r,s)}else In.error("No valid element provided to register_event")}}();function pT(e,t){var n=function(){var r=jn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=jn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):jn.body.appendChild(r)};jn.body?n():jn.addEventListener("DOMContentLoaded",n)}var Sr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return hn(t,function(r){var i=oR(jn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=jn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=Sr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=oR(jn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||fn(e," OPR/")?fn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":fn(e,"IEMobile")||fn(e,"WPDesktop")?"Internet Explorer Mobile":fn(e,"SamsungBrowser/")?"Samsung Internet":fn(e,"Edge")||fn(e,"Edg/")?"Microsoft Edge":fn(e,"FBIOS")?"Facebook Mobile":fn(e,"Chrome")?"Chrome":fn(e,"CriOS")?"Chrome iOS":fn(e,"UCWEB")||fn(e,"UCBrowser")?"UC Browser":fn(e,"FxiOS")?"Firefox iOS":fn(t,"Apple")?fn(e,"Mobile")?"Mobile Safari":"Safari":fn(e,"Android")?"Android Mobile":fn(e,"Konqueror")?"Konqueror":fn(e,"Firefox")?"Firefox":fn(e,"MSIE")||fn(e,"Trident/")?"Internet Explorer":fn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Sr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Ql.language||Ql.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return jn.referrer||"$direct"},referringDomain:function(){if(!jn.referrer)return"$direct";var e=jn.createElement("a");return e.href=jn.referrer,e.host},properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera),$device:Sr.device(aa),$device_type:Sr.deviceType(aa)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera),$browser_language:Sr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:ma.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:BP()/1e3})},people_properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera)}),{$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera)})}};function Zg(e){switch(pl(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Qg(e){var t="";return Ph(e)&&!zP(e)&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){$P(n)&&n.textContent&&(t+=Ry(n.textContent).split(/(\s+)/).filter(N1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Ry(t)}function lR(e){return!!e&&e.nodeType===1}function fu(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function $P(e){return!!e&&e.nodeType===3}function uR(e){return!!e&&e.nodeType===11}var k4=["a","button","form","input","select","textarea","label"];function Ph(e){for(var t=e;t.parentNode&&!fu(t,"body");t=t.parentNode){var n=Zg(t).split(" ");if(fn(n,"ph-sensitive")||fn(n,"ph-no-capture"))return!1}if(fn(Zg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function zP(e){return!!(fu(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||fu(e,"select")||fu(e,"textarea")||e.getAttribute("contenteditable")==="true")}function N1(e){return!(e===null||ja(e)||typeof e=="string"&&(e=Ry(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function cR(e){var t=Qg(e);return N1(t="".concat(t," ").concat(HP(e)).trim())?t:""}function HP(e){var t="";return e&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Qg(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(HP(n)).trim())}catch(a){console.error(a)}}),t}var She=function(){function e(t){Un(this,e),this.clicks=[],this.enabled=t}return $n(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),whe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,yo={is_supported:function(){return!0},error:function(e){In.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=cR(e):i.$el_text=Qg(e));var a=Zg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),hn(e.attributes,function(c){var p;zP(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&N1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return hn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),N1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return hn(this._customProperties,function(r){hn(r.event_selectors,function(i){hn(document.querySelectorAll(i),function(a){fn(e,a)&&Ph(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if($P(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||fu(g,"html")||!lR(g))return!1;if(y!=null&&y.url_allowlist){var T=window.location.href,E=y.url_allowlist;if(E&&!E.some(function($){return T.match($)}))return!1}if(y!=null&&y.dom_event_allowlist){var v=y.dom_event_allowlist;if(v&&!v.some(function($){return b.type===$}))return!1}if(y!=null&&y.element_allowlist){var w=y.element_allowlist;if(w&&!w.some(function($){return g.tagName.toLowerCase()===$}))return!1}if(y!=null&&y.css_selector_allowlist){var A=y.css_selector_allowlist;if(A&&!A.some(function($){return g.matches($)}))return!1}for(var R=!1,k=[g],N=!0,B=g;B.parentNode&&!fu(B,"body");)if(uR(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(N=B.parentNode||!1))break;if(k4.indexOf(N.tagName.toLowerCase())>-1)R=!0;else{var q=window.getComputedStyle(N);q&&q.getPropertyValue("cursor")==="pointer"&&(R=!0)}k.push(N),B=N}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&b.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return b.type==="submit";case"input":case"select":case"textarea":return b.type==="change"||b.type==="click";default:return R?b.type==="click":b.type==="click"&&(k4.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!fu(s,"body");)uR(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(hn(o,function(g){var b=Ph(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=b&&N1(u)&&u),fn(Zg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var y=r._getAugmentPropertiesFromElement(g);$r(p,y)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=cR(a):c[0].$el_text=Qg(a)),u&&(c[0].attr__href=u),f)return!1;var m=$r(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Qd(document,"submit",n,!1,!0),Qd(document,"change",n,!1,!0),Qd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new She(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?In.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},dR,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=ja(t)?10:t,n=ja(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Jg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Jg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Fy);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},Fy,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(D1)||{};this.instance.register(ct({},D1,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(D1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Vs)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=vt(vt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Vs,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Vs)||{};this.instance.register(ct({},Vs,vt(vt({},n),{},ct({},t,{}))))}else this.instance.unregister(Vs)}}]),e}(),Ihe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",bR=2,Rhe=4,GP=3,Nhe=6,Ohe=0,Dhe=5e6,Lhe="rrweb/console@1",fo,Mhe=$n(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Un(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,b;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(b=o.adds)===null||b===void 0?void 0:b.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==GP||o.data.source!==Ohe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,b=Co(i.getNodeOrRelevantParent(p.id),2),y=b[0],T=b[1];return i.mutationBuckets[y]===0?!1:(i.mutationBuckets[y]=(f=i.mutationBuckets[y])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[y]=Math.max(i.mutationBuckets[y]-1,0),i.mutationBuckets[y]===0&&(i.loggedTracker[y]||(i.loggedTracker[y]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,y,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Fhe="/s/",VP="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(fo||(fo={}));var Phe=[fo.MouseMove,fo.MouseInteraction,fo.Scroll,fo.ViewportResize,fo.Input,fo.TouchMove,fo.MediaInteraction,fo.Drag],Bhe=function(){function e(t){var n=this;Un(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Fhe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return $n(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(Ly),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(pR),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(fR);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},Ly,!!t.sessionRecording),ct(o,pR,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,fR,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:BP()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?pT(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(ma.LIB_VERSION),function(r){if(r)return In.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===GP&&Phe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[bR,Rhe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return In.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aDhe){var c,p=fs(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Ihe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&pl(u)==="object"&&u.type===Nhe&&pl(u.data)==="object"&&u.data.plugin===Lhe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:VP,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===bR}})}}]),e}(),lo={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Uhe=["first-input","navigation","paint","resource"],$he=["/s/","/e/"],zhe=function(){function e(t){Un(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return $n(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!mhe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Uhe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else In.log("PostHog Peformance observer not started because we are on localhost.");else In.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if($he.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[lo.timeOrigin]=s,o[lo.timestamp]=Math.floor(s+t.startTime),lo)a[u]!==void 0&&(o[lo[u]]=a[u]);if(this.capturePerformanceEvent(o),Hhe(t)){var c,p=fs(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},lo.timeOrigin,s),ct(f,lo.timestamp,Math.floor(s+t.startTime)),ct(f,lo.name,m.name),ct(f,lo.duration,m.duration),ct(f,lo.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[lo.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Hhe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},jhe=function(){function e(t){Un(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return $n(e,[{key:"call",value:function(){var t=this,n=dT(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(D1),group_properties:this.instance.get_property(Vs),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),Ys.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=fs(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=fs(t.siteApps);try{var m=function(){var g=c.value,b=g.id,y=g.url,T=[p,p[p.length-1]==="/"&&y[0]==="/"?y.substring(1):y].join("");window["__$$ph_site_app_".concat(b)]=a.instance,pT(T,function(E){E&&console.error("Error while initializing PostHog app with config id ".concat(b),E)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Ghe=["https://app.posthog.com","https://eu.posthog.com"],Vhe=["source"],Whe=function(){function e(t){Un(this,e),this.instance=t}return $n(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(vt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=sR(t.hash,"__posthog")||sR(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Ghe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=vt(vt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=uhe(s,Vhe);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),pT(a,function(c){c?In.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Qd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),qhe="__ph_opt_in_out_";function Khe(e,t){qP(!0,e,t)}function Yhe(e,t){qP(!1,e,t)}function Xhe(e,t){return WP(e,t)==="1"}function yR(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return hn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){fn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||WP(e,t)==="0"}function Zhe(e,t){fT(t=t||{}).remove(hT(e,t),!!t.crossSubdomainCookie)}function fT(e){return(e=e||{}).persistenceType==="localStorage"?Kn:e.persistenceType==="localStorage+cookie"?Dy:yo}function hT(e,t){return((t=t||{}).persistencePrefix||qhe)+e}function WP(e,t){return fT(t).get(hT(e,t))}function qP(e,t,n){PP(t)&&t.length?(fT(n=n||{}).set(hT(t,n),e?1:0,yhe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var KP=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Un(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return $n(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),Qhe=function(e){NP(n,KP);var t=OP(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Un(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return $n(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;hn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(xy(a.filter(function(o){return o.url.indexOf("/e")===0})),xy(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,vt(vt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return hn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),Jhe=function(){function e(t){Un(this,e),this.enabled=t,this.metrics={}}return $n(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Ui=Uint8Array,ni=Uint16Array,dc=Uint32Array,gT=new Ui([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mT=new Ui([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ER=new Ui([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),YP=function(e,t){for(var n=new ni(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Sn)<<1;ql=(61680&(ql=(52428&ql)>>>2|(13107&ql)<<2))>>>4|(3855&ql)<<4,zy[Sn]=((65280&ql)>>>8|(255&ql)<<8)>>>1}var Jd=function(e,t,n){for(var r=e.length,i=0,a=new ni(t);i>>u]=c}else for(o=new ni(r),i=0;i>>15-e[i];return o},wu=new Ui(288);for(Sn=0;Sn<144;++Sn)wu[Sn]=8;for(Sn=144;Sn<256;++Sn)wu[Sn]=9;for(Sn=256;Sn<280;++Sn)wu[Sn]=7;for(Sn=280;Sn<288;++Sn)wu[Sn]=8;var em=new Ui(32);for(Sn=0;Sn<32;++Sn)em[Sn]=5;var tu,tge=Jd(wu,9,0),nge=Jd(em,5,0),ZP=function(e){return(e/8>>0)+(7&e&&1)},QP=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof ni?ni:e instanceof dc?dc:Ui)(n-t);return r.set(e.subarray(t,n)),r},qo=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},dd=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},R4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new ni(m+1),b=rge(n[p-1],g,0);if(b>t){r=0;var y=0,T=b-t,E=1<t))break;y+=E-(1<>>=T;y>0;){var w=a[r].s;g[w]=0&&y;--r){var A=a[r].s;g[A]==t&&(--g[A],++y)}b=t}return[new Ui(g),b]},rge=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},_R=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ni(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},pd=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[ER[$-1]];--$);var oe,fe,ce,De,H=c+5<<3,W=pd(i,wu)+pd(a,em)+o,se=pd(i,m)+pd(a,y)+o+14+3*$+pd(N,P)+(2*N[16]+3*N[17]+7*N[18]);if(H<=W&&H<=se)return Uh(t,p,e.subarray(u,u+c));if(qo(t,p,1+(se15&&(qo(t,p,L[B]>>>5&127),p+=L[B]>>>12)}}}else oe=tge,fe=wu,ce=nge,De=em;for(B=0;B255){ie=r[B]>>>18&31,dd(t,p,oe[ie+257]),p+=fe[ie+257],ie>7&&(qo(t,p,r[B]>>>23&31),p+=gT[ie]);var Se=31&r[B];dd(t,p,ce[Se]),p+=De[Se],Se>3&&(dd(t,p,r[B]>>>5&8191),p+=mT[Se])}else dd(t,p,oe[r[B]]),p+=fe[r[B]];return dd(t,p,oe[256]),p+fe[256]},ige=new dc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),age=new Ui(0),oge=function(){for(var e=new dc(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),sge=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},lge=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Ui(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),b=0;if(!o||f<8)for(var y=0;y<=f;y+=65535){var T=y+65535;T>>13,w=8191&E,A=(1<7e3||ce>24576)&&pe>423){b=TR(a,g,0,P,Q,$,fe,ce,H,y-H,b),ce=oe=fe=0,H=y;for(var le=0;le<286;++le)Q[le]=0;for(le=0;le<30;++le)$[le]=0}var L=2,ie=0,Se=w,X=se-D&32767;if(pe>2&&W==q(y-X))for(var ke=Math.min(v,pe)-1,te=Math.min(32767,y),Me=Math.min(258,pe);X<=te&&--Se&&se!=D;){if(a[y+L]==a[y+L-X]){for(var Re=0;ReL){if(L=Re,ie=X,Re>ke)break;var Ze=Math.min(X,Re-2),We=0;for(le=0;leWe&&(We=ot,D=dt)}}}X+=(se=D)-(D=R[se])+32768&32767}if(ie){P[ce++]=268435456|$y[L]<<18|vR[ie];var je=31&$y[L],pt=31&vR[ie];fe+=gT[je]+mT[pt],++Q[257+je],++$[pt],De=y+L,++oe}else P[ce++]=a[y],++Q[a[y]]}}b=TR(a,g,p,P,Q,$,fe,ce,H,y-H,b),p||(b=Uh(g,b,age))}return QP(m,0,u+ZP(b)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},Hy=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},uge=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&Hy(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},cge=function(e){return 10+(e.filename&&e.filename.length+1||0)};function dge(e,t){t===void 0&&(t={});var n=sge(),r=e.length;n.p(e);var i=lge(e,t,cge(t),8),a=i.length;return uge(i,t),Hy(i,a-8,n.d()),Hy(i,a-4,r),i}function pge(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Ui(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Ui(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return QP(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(tu||(tu={}));var fge=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=ma.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=fs(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return hn(c,function(b,y){p=encodeURIComponent(b.toString()),f=encodeURIComponent(y),g[g.length]=f+"="+p}),g.join(m)}(r)},bT=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},JP=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var b=bT(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),hn(r,function(y,T){g.setRequestHeader(T,y)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var y;try{y=JSON.parse(g.responseText)}catch(T){return void In.error(T)}o(y)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(b)},hge=18e5,gge=function(e){NP(n,KP);var t=OP(n);function n(r,i,a){var o;return Un(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return $n(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(hge,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=fs(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=fs(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))ma.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,bT(s,vt(vt({},u),{},{sendBeacon:!0})))}catch(c){ma.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?ma.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):JP({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),rh=1800,SR=60,mge=864e5,bge=function(){function e(t,n,r){Un(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||rh;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=rh):a>rh?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=Co(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>mge,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),yge=$n(function e(t,n,r,i){Un(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],b={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",b),o})}}),Ege=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},vge=function(){function e(t){Un(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return $n(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function wR(e){return typeof Event<"u"&&eB(e,Event)}function eB(e,t){try{return e instanceof t}catch{return!1}}function AR(e){return e===null||pl(e)!=="object"&&typeof e!="function"}function $h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function N4(e){return $h(e,"DOMError")}var CR=/\(error: (.*)\)/,kR=50,zh="?";function O4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var _ge=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Tge=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Age=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Cge=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` +`),u=a;u1024)){var p=CR.test(c)?c.replace(CR,"$1"):c;if(!p.match(/\S*Error: /)){var f,m=fs(r);try{for(m.s();!(f=m.n()).done;){var g=(0,f.value)(p);if(g){o.push(g);break}}}catch(b){m.e(b)}finally{m.f()}if(o.length>=kR)break}}}return function(b){if(!b.length)return[];var y=b.slice(0,kR);return y.reverse(),y.map(function(T){return vt(vt({},T),{},{filename:T.filename||y[y.length-1].filename,function:T.function||"?"})})}(o)}}).apply(void 0,[[30,function(e){var t=_ge.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){var n=Tge.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=Co(xR(t[1]||zh,t[2]),2),i=r[0];return O4(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=Sge.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=wge.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||zh,a=Co(xR(i,r),2);return i=a[0],O4(r=a[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=Age.exec(e);return t?O4(t[2],t[1]||zh,+t[3],t[4]?+t[4]:void 0):void 0}]]),xR=function(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:zh,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},kge=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,xge=/Minified React error #\d+;/i;function Ige(e){var t=e.stacktrace||e.stack||"",n=function(r){if(r){if(typeof r.framesToPop=="number")return r.framesToPop;if(xge.test(r.message))return 1}return 0}(e);try{return Cge(t,n)}catch{}return[]}function D4(e){var t=Ige(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function Rge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:40,n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:"".concat(i.slice(0,t),"...")}return""}function IR(e){var t=Co(e,5),n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s={};if(o===void 0&&typeof n=="string"){var u="Error",c=n,p=n.match(kge);p&&(u=p[1],c=p[2]),s={$exception_type:u,$exception_message:c}}var f=o||n;if(N4(f)||function(y){return $h(y,"DOMException")}(f)){var m=f;if(function(y){return"stack"in y}(f))s=D4(f);else{var g=m.name||(N4(m)?"DOMError":"DOMException"),b=m.message?"".concat(g,": ").concat(m.message):g;s=function(y){return{$exception_type:"Error",$exception_message:y}}(b),s.$exception_type=N4(m)?"DOMError":"DOMException",s.$exception_message=s.$exception_message||b}"code"in m&&(s.$exception_DOMException_code="".concat(m.code))}else(function(y){return $h(y,"ErrorEvent")})(f)&&f.error?s=D4(f.error):function(y){switch(Object.prototype.toString.call(y)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return eB(y,Error)}}(f)?s=D4(f):function(y){return $h(y,"Object")}(f)||wR(f)?(s=function(y){return{$exception_type:wR(y)?y.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",Rge(y))}}(f),s.$exception_is_synthetic=!0):(s.$exception_type=s.$exception_type||"Error",s.$exception_message=s.$exception_message||f,s.$exception_is_synthetic=!0);return vt(vt(vt(vt({},s),{},{$exception_type:s.$exception_type||"UnknownErrorType",$exception_message:s.$exception_message||""},r?{$exception_source:r}:{}),i?{$exception_lineno:i}:{}),a?{$exception_colno:a}:{})}var RR,NR,Nge=function(){function e(t){Un(this,e),ct(this,"originalOnErrorHandler",void 0),ct(this,"originalOnUnhandledRejectionHandler",void 0),ct(this,"errorsToIgnore",[]),this.instance=t}return $n(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var t,n=arguments.length,r=new Array(n),i=0;i1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Py);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.surveys;return n.instance.persistence.register(ct({},Py,o)),t(o)})}},{key:"getActiveMatchingSurveys",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(i){var a=i.filter(function(o){return!(!o.start_date||o.end_date)}).filter(function(o){var s,u;if(!o.conditions)return!0;var c=(s=o.conditions)===null||s===void 0||!s.url||window.location.href.indexOf(o.conditions.url)>-1,p=(u=o.conditions)===null||u===void 0||!u.selector||document.querySelector(o.conditions.selector);return c&&p}).filter(function(o){if(!o.linked_flag_key&&!o.targeting_flag_key)return!0;var s=!o.linked_flag_key||n.instance.featureFlags.isFeatureEnabled(o.linked_flag_key),u=!o.targeting_flag_key||n.instance.featureFlags.isFeatureEnabled(o.targeting_flag_key);return s&&u});return t(a)},r)}}]),e}(),Dge={"X-PostHog-Retry-After-Recordings":VP,"X-PostHog-Retry-After-Events":"events"},Lge=function(){function e(){Un(this,e),ct(this,"limits",{})}return $n(e,[{key:"isRateLimited",value:function(t){var n=this.limits[t||"events"]||!1;return n!==!1&&new Date().getTime()1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,c={segmentRegister:!1,syncCode:!1},p=function(A){return function(){c[A]||(c[A]=!0,c.segmentRegister&&c.syncCode&&(s==null||s(i)))}};if(this.set_config($r({},OR(),a,{name:o,token:t,callback_fn:(o===gi?o:gi+"."+o)+"._jsc"})),this.uuidFn=aR(this.config.uuid_version||"og"),this._jsc=function(){},(ht!=null&&(n=ht.rrweb)!==null&&n!==void 0&&n.record||ht!=null&&ht.rrwebRecord)&&(this.__loaded_recorder_version=ht==null||(u=ht.rrweb)===null||u===void 0?void 0:u.version),this.persistence=new hR(this.config),this._captureMetrics=new Jhe(this.get_config("_capture_metrics")),this._requestQueue=new Qhe(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new gge(this._captureMetrics,this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new bge(this.config,this.persistence,this.uuidFn),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new hR(vt(vt({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(p("segmentRegister"))):p("segmentRegister")(),((r=a.bootstrap)===null||r===void 0?void 0:r.distinctID)!==void 0){var f,m,g=this.get_config("get_device_id")(this.uuidFn()),b=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?g:a.bootstrap.distinctID;this.persistence.set_user_state((m=a.bootstrap)!==null&&m!==void 0&&m.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:b})}if(this._hasBootstrappedFeatureFlags()){var y,T,E=Object.keys(((y=a.bootstrap)===null||y===void 0?void 0:y.featureFlags)||{}).filter(function(A){var R,k;return!((R=a.bootstrap)===null||R===void 0||(k=R.featureFlags)===null||k===void 0||!k[A])}).reduce(function(A,R){var k,N;return A[R]=((k=a.bootstrap)===null||k===void 0||(N=k.featureFlags)===null||N===void 0?void 0:N[R])||!1,A},{}),v=Object.keys(((T=a.bootstrap)===null||T===void 0?void 0:T.featureFlagPayloads)||{}).filter(function(A){return E[A]}).reduce(function(A,R){var k,N,B,q;return(k=a.bootstrap)!==null&&k!==void 0&&(N=k.featureFlagPayloads)!==null&&N!==void 0&&N[R]&&(A[R]=(B=a.bootstrap)===null||B===void 0||(q=B.featureFlagPayloads)===null||q===void 0?void 0:q[R]),A},{});this.featureFlags.receivedFeatureFlags({featureFlags:E,featureFlagPayloads:v})}if(!this.get_distinct_id()){var w=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_user_state("anonymous")}ht.addEventListener&&ht.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),p("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(t){console.error("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:jn.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new jhe(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var t=this;this.has_opted_out_capturing()||as(this.__request_queue,function(n){t._send_request.apply(t,xy(n))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(t,n){if(ja(t))return null;if(Hh)return function(o){t(o,n)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],t(o,n)},a}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(t,n,r){var i=JSON.stringify(n);this.__compress_and_send_json_request(t,i,r||ih,jy)}},{key:"__compress_and_send_json_request",value:function(t,n,r,i){var a=function(c,p,f){return c===tu.GZipJS?[dge(pge(p),{mtime:0}),vt(vt({},f),{},{blob:!0,urlQueryArgs:{compression:tu.GZipJS}})]:[{data:dT(p)},f]}(this.compression[tu.GZipJS]?tu.GZipJS:tu.Base64,n,r),o=Co(a,2),s=o[0],u=o[1];this._send_request(t,s,u,i)}},{key:"_send_request",value:function(t,n,r,i){if(this.rateLimiter.isRateLimited(r._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(tB)this.__request_queue.push([t,n,r,i]);else{var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=$r(a,r||{}),Hh||(r.method="GET");var o="sendBeacon"in ht.navigator&&r.transport==="sendBeacon";if(t=fge(t,r.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{ht.navigator.sendBeacon(t,bT(n,vt(vt({},r),{},{sendBeacon:!0})))}catch{}else if(Hh)try{JP({url:t,data:n,headers:this.get_config("xhr_headers"),options:r,captureMetrics:this._captureMetrics,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(p){console.error(p)}else{var s,u=jn.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=t;var c=jn.getElementsByTagName("script")[0];(s=c.parentNode)===null||s===void 0||s.insertBefore(u,c)}}}},{key:"_execute_array",value:function(t){var n,r=this,i=[],a=[],o=[];as(t,function(u){u&&(n=u[0],es(n)?o.push(u):typeof u=="function"?u.call(r):es(u)&&n==="alias"?i.push(u):es(u)&&n.indexOf("capture")!==-1&&typeof r[n]=="function"?o.push(u):a.push(u))});var s=function(u,c){as(u,function(p){if(es(p[0])){var f=c;hn(p,function(m){f=f[m[0]].apply(f,m.slice(1))})}else this[p[0]].apply(this,p.slice(1))},c)};s(i,this),s(a,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var t,n;return((t=this.config.bootstrap)===null||t===void 0?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)===null||n===void 0?void 0:n.featureFlags).length>0||!1}},{key:"push",value:function(t){this._execute_array([t])}},{key:"captureException",value:function(t,n){var r;(r=this.exceptionAutocapture)===null||r===void 0||r.captureException([t.name,void 0,void 0,void 0,t],n)}},{key:"capture",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ih;if(this.__loaded&&!function(c,p){var f=!1;try{var m=c.get_config("token"),g=c.get_config("respect_dnt"),b=c.get_config("opt_out_capturing_persistence_type"),y=c.get_config("opt_out_capturing_cookie_prefix")||void 0,T=c.get_config("window");m&&(f=yR(m,{respectDnt:g,persistenceType:b,persistencePrefix:y,window:T}))}catch(E){p||console.error("Unexpected error when checking capturing opt-out status: "+E)}return f}(this,!1)){this._captureMetrics.incr("capture"),t==="$snapshot"&&this._captureMetrics.incr("snapshot");var i=(r=r||ih).transport;if(i&&(r.transport=i),ja(t)||typeof t!="string")console.error("No event name provided to posthog.capture");else if(!The(aa)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var a={uuid:this.uuidFn("v7"),event:t,properties:this._calculate_event_properties(t,n||{})};t==="$identify"&&(a.$set=r.$set,a.$set_once=r.$set_once),(a=vhe(a,r._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=r.timestamp||new Date,this.get_config("debug")&&In.log("PostHog.js send",a);var o=JSON.stringify(a),s=this.get_config("api_host")+(r.endpoint||"/e/"),u=r!==ih;return!this.get_config("request_batching")||u&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(s,o,r):this._requestQueue.enqueue(s,a,r),this._invokeCaptureHooks(t,a),a}}}},{key:"_addCaptureHook",value:function(t){this.__captureHooks.push(t)}},{key:"_invokeCaptureHooks",value:function(t,n){this.config._onCapture(t,n),hn(this.__captureHooks,function(r){return r(t)})}},{key:"_calculate_event_properties",value:function(t,n){var r,i=this.persistence.remove_event_timer(t),a=vt({},n);if(a.token=this.get_config("token"),t==="$snapshot"){var o=vt(vt({},this.persistence.properties()),this.sessionPersistence.properties());return a.distinct_id=o.distinct_id,a}var s=Sr.properties();if(this.sessionManager){var u=this.sessionManager.checkAndGetSessionAndWindowId(),c=u.sessionId,p=u.windowId;a.$session_id=c,a.$window_id=p}if((r=this.webPerformance)!==null&&r!==void 0&&r.isEnabled&&(t==="$pageview"&&this.pageViewIdManager.onPageview(),a=$r(a,{$pageview_id:this.pageViewIdManager.getPageViewId()})),t==="$pageview"&&(a.title=jn.title),t==="$performance_event"){var f=this.persistence.properties();return a.distinct_id=f.distinct_id,a.$current_url=s.$current_url,a}if(i!==void 0){var m=new Date().getTime()-i;a.$duration=parseFloat((m/1e3).toFixed(3))}a=$r({},Sr.properties(),this.persistence.properties(),this.sessionPersistence.properties(),a);var g=this.get_config("property_blacklist");es(g)?hn(g,function(y){delete a[y]}):console.error("Invalid value for property_blacklist config: "+g);var b=this.get_config("sanitize_properties");return b&&(a=b(a,t)),a}},{key:"register",value:function(t,n){this.persistence.register(t,n)}},{key:"register_once",value:function(t,n,r){this.persistence.register_once(t,n,r)}},{key:"register_for_session",value:function(t){this.sessionPersistence.register(t)}},{key:"unregister",value:function(t){this.persistence.unregister(t)}},{key:"unregister_for_session",value:function(t){this.sessionPersistence.unregister(t)}},{key:"_register_single",value:function(t,n){this.register(ct({},t,n))}},{key:"getFeatureFlag",value:function(t,n){return this.featureFlags.getFeatureFlag(t,n)}},{key:"getFeatureFlagPayload",value:function(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}},{key:"isFeatureEnabled",value:function(t,n){return this.featureFlags.isFeatureEnabled(t,n)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}},{key:"getEarlyAccessFeatures",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,n)}},{key:"onFeatureFlags",value:function(t){return this.featureFlags.onFeatureFlags(t)}},{key:"onSessionId",value:function(t){return this.sessionManager.onSessionId(t)}},{key:"getSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(t,n)}},{key:"getActiveMatchingSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(t,n)}},{key:"identify",value:function(t,n,r){if(t){this._captureMetrics.incr("identify");var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var a=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:a},"")}t!==i&&t!==this.get_property(Bh)&&(this.unregister(Bh),this.register({distinct_id:t}));var o=this.persistence.get_user_state()==="anonymous";t!==i&&o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(n||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Jg))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(t,n){(t||n)&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:n||{}}))}},{key:"group",value:function(t,n,r){if(t&&n){this._captureMetrics.incr("group");var i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:vt(vt({},i),{},ct({},t,n))}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags(ct({},t,r))),i[t]===n||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,n)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(t,n)}},{key:"resetGroupPropertiesForFlags",value:function(t){this.featureFlags.resetGroupPropertiesForFlags(t)}},{key:"reset",value:function(t){var n=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var r=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:r,$device_id:t?r:n},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(t){var n=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=r.sessionId,a=r.sessionStartTimestamp,o=n+"/replay/"+i;if(t!=null&&t.withTimestamp&&a){var s,u=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!a)return o;var c=Math.max(Math.floor((new Date().getTime()-a)/1e3)-u,0);o+="?t=".concat(c)}return o}},{key:"alias",value:function(t,n){return t===this.get_property(jP)?(In.critical("Attempting to create alias for existing People user - aborting."),-2):(ja(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(Bh,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(t),-1))}},{key:"set_config",value:function(t){var n=vt({},this.config);Ny(t)&&($r(this.config,t),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),Kn.is_supported()&&Kn.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(ma.DEBUG=!0),this.sessionRecording&&t.disable_session_recording!==void 0&&n.disable_session_recording!==t.disable_session_recording&&(t.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var t;return!((t=this.sessionRecording)===null||t===void 0||!t.started())}},{key:"loadToolbar",value:function(t){return this.toolbar.loadToolbar(t)}},{key:"get_config",value:function(t){var n;return(n=this.config)===null||n===void 0?void 0:n[t]}},{key:"get_property",value:function(t){return this.persistence.props[t]}},{key:"getSessionProperty",value:function(t){return this.sessionPersistence.props[t]}},{key:"toString",value:function(){var t,n=(t=this.get_config("name"))!==null&&t!==void 0?t:gi;return n!==gi&&(n=gi+"."+n),n}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&Kn.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!yo.get("ph_optout")||(yo.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(t){var n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),this.get_config("disable_persistence")||this.sessionPersistence.disabled===n||this.sessionPersistence.set_disabled(n)}},{key:"_gdpr_call_func",value:function(t,n){return n=$r({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},n||{}),Kn.is_supported()||n.persistence_type!=="localStorage"||(n.persistence_type="cookie"),t(this.get_config("token"),{capture:n.capture,captureEventName:n.capture_event_name,captureProperties:n.capture_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieExpiration:n.cookie_expiration,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie})}},{key:"opt_in_capturing",value:function(t){t=$r({enable_persistence:!0},t||{}),this._gdpr_call_func(Khe,t),this._gdpr_update_persistence(t)}},{key:"opt_out_capturing",value:function(t){var n=$r({clear_persistence:!0},t||{});this._gdpr_call_func(Yhe,n),this._gdpr_update_persistence(n)}},{key:"has_opted_in_capturing",value:function(t){return this._gdpr_call_func(Xhe,t)}},{key:"has_opted_out_capturing",value:function(t){return this._gdpr_call_func(yR,t)}},{key:"clear_opt_in_out_capturing",value:function(t){var n=$r({enable_persistence:!0},t??{});this._gdpr_call_func(Zhe,n),this._gdpr_update_persistence(n)}},{key:"debug",value:function(t){t===!1?(ht.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(ht.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();(function(e,t){for(var n=0;nI.jsx("div",{className:"m-auto w-full text-center mt-2",children:I.jsx(K0e,{viewBox:"0 0 32 32",children:I.jsx("circle",{cx:"16",cy:"16",r:"14"})})}),X0e=He.div` - background-color: ${Kt}; +`,zge=()=>I.jsx("div",{className:"m-auto w-full text-center mt-2",children:I.jsx($ge,{viewBox:"0 0 32 32",children:I.jsx("circle",{cx:"16",cy:"16",r:"14"})})}),Hge=Ge.div` + background-color: ${Ht}; display: flex; justify-content: center; align-items: center; @@ -655,22 +658,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho flex-grow: 0; margin-left: 13px; cursor: pointer; -`,Z0e=He.div` +`,jge=Ge.div` margin-top: 8px; margin-bottom: 8px; margin-left: 8px; display: flex; align-items: center; gap: 4px; - font-size: ${e=>e.fontSize||nr()}px; + font-size: ${e=>e.fontSize||pr()}px; min-height: 16px; -`;function Q0e(e){var t,n;return e.open?e.children:I.jsxs(Z0e,{fontSize:nr(),children:[I.jsx(X0e,{onClick:()=>{e.onToggle()},children:e.iconElement||I.jsx(sD,{width:"16px",height:"16px"})}),I.jsx("span",{style:{color:vt},children:(t=e.historyNode.observation)!=null&&t.error?(n=e.historyNode.observation)==null?void 0:n.title:e.historyNode.step.name})]})}const J0e=He.div` +`;function Gge(e){var t,n;return e.open?e.children:I.jsxs(jge,{fontSize:pr(),children:[I.jsx(Hge,{onClick:()=>{e.onToggle()},children:e.iconElement||I.jsx(SL,{width:"16px",height:"16px"})}),I.jsx("span",{style:{color:Et},children:(t=e.historyNode.observation)!=null&&t.error?(n=e.historyNode.observation)==null?void 0:n.title:e.historyNode.step.name})]})}const Vge=Ge.div` padding: 8px; background-color: #ff000011; - border-radius: ${wt}; + border-radius: ${It}; border: 1px solid #cc0000; margin: 8px; -`;function ehe(e){var t;return I.jsxs("div",{style:{backgroundColor:Kt,position:"relative"},children:[I.jsxs("div",{style:{position:"absolute",right:"12px",top:"12px",display:"flex"},children:[I.jsx(vi,{text:"Collapse",onClick:()=>e.onClose(),children:I.jsx(VY,{width:"1.3em",height:"1.3em"})}),I.jsx(vi,{text:"Delete",onClick:()=>e.onDelete(),children:I.jsx(T2,{width:"1.3em",height:"1.3em"})})]}),I.jsx(J0e,{children:I.jsx("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},children:(t=e.historyNode.observation)==null?void 0:t.error})})]})}/** +`;function Wge(e){return I.jsxs("div",{style:{backgroundColor:Ht,position:"relative"},children:[I.jsxs("div",{style:{position:"absolute",right:"12px",top:"12px",display:"flex"},children:[I.jsx(zi,{text:"Collapse",onClick:()=>e.onClose(),children:I.jsx(BZ,{width:"1.3em",height:"1.3em"})}),I.jsx(zi,{text:"Delete",onClick:()=>e.onDelete(),children:I.jsx(w9,{width:"1.3em",height:"1.3em"})})]}),I.jsx(Vge,{children:I.jsx("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},children:e.error.message})})]})}/** * @remix-run/router v1.7.2 * * Copyright (c) Remix Software Inc. @@ -679,8 +682,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;tp(g,typeof g=="string"?null:g.state,E===0?"default":void 0));let a=u(n??i.length-1),o=Vn.Pop,s=null;function u(g){return Math.min(Math.max(g,0),i.length-1)}function c(){return i[a]}function p(g,E,b){E===void 0&&(E=null);let T=p9(i?c().pathname:"/",g,E,b);return Eu(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(g)),T}function f(g){return typeof g=="string"?g:lm(g)}return{get index(){return a},get action(){return o},get location(){return c()},createHref:f,createURL(g){return new URL(f(g),"http://localhost")},encodeLocation(g){let E=typeof g=="string"?So(g):g;return{pathname:E.pathname||"",search:E.search||"",hash:E.hash||""}},push(g,E){o=Vn.Push;let b=p(g,E);a+=1,i.splice(a,i.length,b),r&&s&&s({action:o,location:b,delta:1})},replace(g,E){o=Vn.Replace;let b=p(g,E);i[a]=b,r&&s&&s({action:o,location:b,delta:0})},go(g){o=Vn.Pop;let E=u(a+g),b=i[E];a=E,s&&s({action:o,location:b,delta:g})},listen(g){return s=g,()=>{s=null}}}}function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Eu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nhe(){return Math.random().toString(36).substr(2,8)}function p9(e,t,n,r){return n===void 0&&(n=null),Rn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?So(t):t,{state:n,key:t&&t.key||r||nhe()})}function lm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function So(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var Jn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Jn||(Jn={}));const rhe=new Set(["lazy","caseSensitive","path","id","index","children"]);function ihe(e){return e.index===!0}function f9(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if($t(i.index!==!0||!i.children,"Cannot specify children on an index route"),$t(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),ihe(i)){let u=Rn({},i,t(i),{id:s});return r[s]=u,u}else{let u=Rn({},i,t(i),{id:s,children:void 0});return r[s]=u,i.children&&(u.children=f9(i.children,t,o,r)),u}})}function C1(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?So(t):t,i=Qp(r.pathname||"/",n);if(i==null)return null;let a=BF(e);ahe(a);let o=null;for(let s=0;o==null&&s{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};u.relativePath.startsWith("/")&&($t(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=sl([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&($t(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),BF(a.children,t,p,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:phe(c,a.index),routesMeta:p})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let u of UF(a.path))i(a,o,u)}),t}function UF(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=UF(r.join("/")),s=[];return s.push(...o.map(u=>u===""?a:[a,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function ahe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fhe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ohe=/^:\w+$/,she=3,lhe=2,uhe=1,che=10,dhe=-2,OI=e=>e==="*";function phe(e,t){let n=e.split("/"),r=n.length;return n.some(OI)&&(r+=dhe),t&&(r+=lhe),n.filter(i=>!OI(i)).reduce((i,a)=>i+(ohe.test(a)?she:a===""?uhe:che),r)}function fhe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function hhe(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(p==="*"){let m=s[f]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}return c[p]=Ehe(s[f]||"",p),c},{}),pathname:a,pathnameBase:o,pattern:e}}function mhe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Eu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function bhe(e){try{return decodeURI(e)}catch(t){return Eu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ehe(e,t){try{return decodeURIComponent(e)}catch(n){return Eu(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Qp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function vhe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?So(e):e;return{pathname:n?n.startsWith("/")?n:yhe(n,t):t,search:The(r),hash:She(i)}}function yhe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function a4(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function N7(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $F(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=So(e):(i=Rn({},e),$t(!i.pathname||!i.pathname.includes("?"),a4("?","pathname","search",i)),$t(!i.pathname||!i.pathname.includes("#"),a4("#","pathname","hash",i)),$t(!i.search||!i.search.includes("#"),a4("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let f=t.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let u=vhe(i,s),c=o&&o!=="/"&&o.endsWith("/"),p=(a||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}const sl=e=>e.join("/").replace(/\/\/+/g,"/"),_he=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),The=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,She=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class zF{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function HF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jF=["post","put","patch","delete"],whe=new Set(jF),Ahe=["get",...jF],Che=new Set(Ahe),xhe=new Set([301,302,303,307,308]),khe=new Set([307,308]),o4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ihe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},td={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},GF=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rhe=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Nhe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$t(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let j=e.detectErrorBoundary;i=$=>({hasErrorBoundary:j($)})}else i=Rhe;let a={},o=f9(e.routes,i,void 0,a),s,u=e.basename||"/",c=Rn({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),p=null,f=new Set,m=null,g=null,E=null,b=e.hydrationData!=null,T=C1(o,e.history.location,u),v=null;if(T==null){let j=ia(404,{pathname:e.history.location.pathname}),{matches:$,route:J}=$I(o);T=$,v={[J.id]:j}}let y=!T.some(j=>j.route.lazy)&&(!T.some(j=>j.route.loader)||e.hydrationData!=null),w,A={historyAction:e.history.action,location:e.history.location,matches:T,initialized:y,navigation:o4,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},D=Vn.Pop,k=!1,R,B=!1,W=!1,P=[],Q=[],z=new Map,le=0,he=-1,de=new Map,fe=new Set,Z=new Map,V=new Map,ce=new Map,N=!1;function me(){return p=e.history.listen(j=>{let{action:$,location:J,delta:be}=j;if(N){N=!1;return}Eu(ce.size===0||be!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Fe=ue({currentLocation:A.location,nextLocation:J,historyAction:$});if(Fe&&be!=null){N=!0,e.history.go(be*-1),jt(Fe,{state:"blocked",location:J,proceed(){jt(Fe,{state:"proceeding",proceed:void 0,reset:void 0,location:J}),e.history.go(be)},reset(){let De=new Map(A.blockers);De.set(Fe,td),re({blockers:De})}});return}return ne($,J)}),A.initialized||ne(Vn.Pop,A.location),w}function oe(){p&&p(),f.clear(),R&&R.abort(),A.fetchers.forEach((j,$)=>pe($)),A.blockers.forEach((j,$)=>Ke($))}function O(j){return f.add(j),()=>f.delete(j)}function re(j){A=Rn({},A,j),f.forEach($=>$(A))}function Te(j,$){var J,be;let Fe=A.actionData!=null&&A.navigation.formMethod!=null&&Ma(A.navigation.formMethod)&&A.navigation.state==="loading"&&((J=j.state)==null?void 0:J._isRedirect)!==!0,De;$.actionData?Object.keys($.actionData).length>0?De=$.actionData:De=null:Fe?De=A.actionData:De=null;let tt=$.loaderData?UI(A.loaderData,$.loaderData,$.matches||[],$.errors):A.loaderData,Je=A.blockers;Je.size>0&&(Je=new Map(Je),Je.forEach((Rt,Zt)=>Je.set(Zt,td)));let Ze=k===!0||A.navigation.formMethod!=null&&Ma(A.navigation.formMethod)&&((be=j.state)==null?void 0:be._isRedirect)!==!0;s&&(o=s,s=void 0),B||D===Vn.Pop||(D===Vn.Push?e.history.push(j,j.state):D===Vn.Replace&&e.history.replace(j,j.state)),re(Rn({},$,{actionData:De,loaderData:tt,historyAction:D,location:j,initialized:!0,navigation:o4,revalidation:"idle",restoreScrollPosition:Y(j,$.matches||A.matches),preventScrollReset:Ze,blockers:Je})),D=Vn.Pop,k=!1,B=!1,W=!1,P=[],Q=[]}async function K(j,$){if(typeof j=="number"){e.history.go(j);return}let J=h9(A.location,A.matches,u,c.v7_prependBasename,j,$==null?void 0:$.fromRouteId,$==null?void 0:$.relative),{path:be,submission:Fe,error:De}=DI(c.v7_normalizeFormMethod,!1,J,$),tt=A.location,Je=p9(A.location,be,$&&$.state);Je=Rn({},Je,e.history.encodeLocation(Je));let Ze=$&&$.replace!=null?$.replace:void 0,Rt=Vn.Push;Ze===!0?Rt=Vn.Replace:Ze===!1||Fe!=null&&Ma(Fe.formMethod)&&Fe.formAction===A.location.pathname+A.location.search&&(Rt=Vn.Replace);let Zt=$&&"preventScrollReset"in $?$.preventScrollReset===!0:void 0,kt=ue({currentLocation:tt,nextLocation:Je,historyAction:Rt});if(kt){jt(kt,{state:"blocked",location:Je,proceed(){jt(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:Je}),K(j,$)},reset(){let nn=new Map(A.blockers);nn.set(kt,td),re({blockers:nn})}});return}return await ne(Rt,Je,{submission:Fe,pendingError:De,preventScrollReset:Zt,replace:$&&$.replace})}function xe(){if(U(),re({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){ne(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}ne(D||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function ne(j,$,J){R&&R.abort(),R=null,D=j,B=(J&&J.startUninterruptedRevalidation)===!0,Qe(A.location,A.matches),k=(J&&J.preventScrollReset)===!0;let be=s||o,Fe=J&&J.overrideNavigation,De=C1(be,$,u);if(!De){let nn=ia(404,{pathname:$.pathname}),{matches:Yt,route:jr}=$I(be);ye(),Te($,{matches:Yt,loaderData:{},errors:{[jr.id]:nn}});return}if(A.initialized&&!W&&Fhe(A.location,$)&&!(J&&J.submission&&Ma(J.submission.formMethod))){Te($,{matches:De});return}R=new AbortController;let tt=rd(e.history,$,R.signal,J&&J.submission),Je,Ze;if(J&&J.pendingError)Ze={[x1(De).route.id]:J.pendingError};else if(J&&J.submission&&Ma(J.submission.formMethod)){let nn=await Le(tt,$,J.submission,De,{replace:J.replace});if(nn.shortCircuited)return;Je=nn.pendingActionData,Ze=nn.pendingActionError,Fe=j0($,J.submission),tt=new Request(tt.url,{signal:tt.signal})}let{shortCircuited:Rt,loaderData:Zt,errors:kt}=await Re(tt,$,De,Fe,J&&J.submission,J&&J.fetcherSubmission,J&&J.replace,Je,Ze);Rt||(R=null,Te($,Rn({matches:De},Je?{actionData:Je}:{},{loaderData:Zt,errors:kt})))}async function Le(j,$,J,be,Fe){Fe===void 0&&(Fe={}),U();let De=zhe($,J);re({navigation:De});let tt,Je=m9(be,$);if(!Je.route.action&&!Je.route.lazy)tt={type:Jn.error,error:ia(405,{method:j.method,pathname:$.pathname,routeId:Je.route.id})};else if(tt=await nd("action",j,Je,be,a,i,u),j.signal.aborted)return{shortCircuited:!0};if($1(tt)){let Ze;return Fe&&Fe.replace!=null?Ze=Fe.replace:Ze=tt.location===A.location.pathname+A.location.search,await Ge(A,tt,{submission:J,replace:Ze}),{shortCircuited:!0}}if(Ud(tt)){let Ze=x1(be,Je.route.id);return(Fe&&Fe.replace)!==!0&&(D=Vn.Push),{pendingActionData:{},pendingActionError:{[Ze.route.id]:tt.error}}}if(eu(tt))throw ia(400,{type:"defer-action"});return{pendingActionData:{[Je.route.id]:tt.data}}}async function Re(j,$,J,be,Fe,De,tt,Je,Ze){let Rt=be||j0($,Fe),Zt=Fe||De||jI(Rt),kt=s||o,[nn,Yt]=LI(e.history,A,J,Zt,$,W,P,Q,Z,fe,kt,u,Je,Ze);if(ye(Wt=>!(J&&J.some(Rr=>Rr.route.id===Wt))||nn&&nn.some(Rr=>Rr.route.id===Wt)),he=++le,nn.length===0&&Yt.length===0){let Wt=Se();return Te($,Rn({matches:J,loaderData:{},errors:Ze||null},Je?{actionData:Je}:{},Wt?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!B){Yt.forEach(Rr=>{let _i=A.fetchers.get(Rr.key),Al=id(void 0,_i?_i.data:void 0);A.fetchers.set(Rr.key,Al)});let Wt=Je||A.actionData;re(Rn({navigation:Rt},Wt?Object.keys(Wt).length===0?{actionData:null}:{actionData:Wt}:{},Yt.length>0?{fetchers:new Map(A.fetchers)}:{}))}Yt.forEach(Wt=>{z.has(Wt.key)&&ke(Wt.key),Wt.controller&&z.set(Wt.key,Wt.controller)});let jr=()=>Yt.forEach(Wt=>ke(Wt.key));R&&R.signal.addEventListener("abort",jr);let{results:Gr,loaderResults:Vr,fetcherResults:Ta}=await pt(A.matches,J,nn,Yt,j);if(j.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",jr),Yt.forEach(Wt=>z.delete(Wt.key));let ii=zI(Gr);if(ii){if(ii.idx>=nn.length){let Wt=Yt[ii.idx-nn.length].key;fe.add(Wt)}return await Ge(A,ii.result,{replace:tt}),{shortCircuited:!0}}let{loaderData:Ir,errors:ps}=BI(A,J,nn,Vr,Ze,Yt,Ta,V);V.forEach((Wt,Rr)=>{Wt.subscribe(_i=>{(_i||Wt.done)&&V.delete(Rr)})});let fs=Se(),Wr=Me(he),hs=fs||Wr||Yt.length>0;return Rn({loaderData:Ir,errors:ps},hs?{fetchers:new Map(A.fetchers)}:{})}function Xe(j){return A.fetchers.get(j)||Ihe}function Ve(j,$,J,be){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");z.has(j)&&ke(j);let Fe=s||o,De=h9(A.location,A.matches,u,c.v7_prependBasename,J,$,be==null?void 0:be.relative),tt=C1(Fe,De,u);if(!tt){ie(j,$,ia(404,{pathname:De}));return}let{path:Je,submission:Ze,error:Rt}=DI(c.v7_normalizeFormMethod,!0,De,be);if(Rt){ie(j,$,Rt);return}let Zt=m9(tt,Je);if(k=(be&&be.preventScrollReset)===!0,Ze&&Ma(Ze.formMethod)){dt(j,$,Je,Zt,tt,Ze);return}Z.set(j,{routeId:$,path:Je}),ot(j,$,Je,Zt,tt,Ze)}async function dt(j,$,J,be,Fe,De){if(U(),Z.delete(j),!be.route.action&&!be.route.lazy){let qe=ia(405,{method:De.formMethod,pathname:J,routeId:$});ie(j,$,qe);return}let tt=A.fetchers.get(j),Je=Hhe(De,tt);A.fetchers.set(j,Je),re({fetchers:new Map(A.fetchers)});let Ze=new AbortController,Rt=rd(e.history,J,Ze.signal,De);z.set(j,Ze);let Zt=le,kt=await nd("action",Rt,be,Fe,a,i,u);if(Rt.signal.aborted){z.get(j)===Ze&&z.delete(j);return}if($1(kt))if(z.delete(j),he>Zt){let qe=i1(void 0);A.fetchers.set(j,qe),re({fetchers:new Map(A.fetchers)});return}else{fe.add(j);let qe=id(De);return A.fetchers.set(j,qe),re({fetchers:new Map(A.fetchers)}),Ge(A,kt,{submission:De,isFetchActionRedirect:!0})}if(Ud(kt)){ie(j,$,kt.error);return}if(eu(kt))throw ia(400,{type:"defer-action"});let nn=A.navigation.location||A.location,Yt=rd(e.history,nn,Ze.signal),jr=s||o,Gr=A.navigation.state!=="idle"?C1(jr,A.navigation.location,u):A.matches;$t(Gr,"Didn't find any matches after fetcher action");let Vr=++le;de.set(j,Vr);let Ta=id(De,kt.data);A.fetchers.set(j,Ta);let[ii,Ir]=LI(e.history,A,Gr,De,nn,W,P,Q,Z,fe,jr,u,{[be.route.id]:kt.data},void 0);Ir.filter(qe=>qe.key!==j).forEach(qe=>{let ee=qe.key,Be=A.fetchers.get(ee),it=id(void 0,Be?Be.data:void 0);A.fetchers.set(ee,it),z.has(ee)&&ke(ee),qe.controller&&z.set(ee,qe.controller)}),re({fetchers:new Map(A.fetchers)});let ps=()=>Ir.forEach(qe=>ke(qe.key));Ze.signal.addEventListener("abort",ps);let{results:fs,loaderResults:Wr,fetcherResults:hs}=await pt(A.matches,Gr,ii,Ir,Yt);if(Ze.signal.aborted)return;Ze.signal.removeEventListener("abort",ps),de.delete(j),z.delete(j),Ir.forEach(qe=>z.delete(qe.key));let Wt=zI(fs);if(Wt){if(Wt.idx>=ii.length){let qe=Ir[Wt.idx-ii.length].key;fe.add(qe)}return Ge(A,Wt.result)}let{loaderData:Rr,errors:_i}=BI(A,A.matches,ii,Wr,void 0,Ir,hs,V);if(A.fetchers.has(j)){let qe=i1(kt.data);A.fetchers.set(j,qe)}let Al=Me(Vr);A.navigation.state==="loading"&&Vr>he?($t(D,"Expected pending action"),R&&R.abort(),Te(A.navigation.location,{matches:Gr,loaderData:Rr,errors:_i,fetchers:new Map(A.fetchers)})):(re(Rn({errors:_i,loaderData:UI(A.loaderData,Rr,Gr,_i)},Al||Ir.length>0?{fetchers:new Map(A.fetchers)}:{})),W=!1)}async function ot(j,$,J,be,Fe,De){let tt=A.fetchers.get(j),Je=id(De,tt?tt.data:void 0);A.fetchers.set(j,Je),re({fetchers:new Map(A.fetchers)});let Ze=new AbortController,Rt=rd(e.history,J,Ze.signal);z.set(j,Ze);let Zt=le,kt=await nd("loader",Rt,be,Fe,a,i,u);if(eu(kt)&&(kt=await qF(kt,Rt.signal,!0)||kt),z.get(j)===Ze&&z.delete(j),Rt.signal.aborted)return;if($1(kt))if(he>Zt){let Yt=i1(void 0);A.fetchers.set(j,Yt),re({fetchers:new Map(A.fetchers)});return}else{fe.add(j),await Ge(A,kt);return}if(Ud(kt)){let Yt=x1(A.matches,$);A.fetchers.delete(j),re({fetchers:new Map(A.fetchers),errors:{[Yt.route.id]:kt.error}});return}$t(!eu(kt),"Unhandled fetcher deferred data");let nn=i1(kt.data);A.fetchers.set(j,nn),re({fetchers:new Map(A.fetchers)})}async function Ge(j,$,J){let{submission:be,replace:Fe,isFetchActionRedirect:De}=J===void 0?{}:J;$.revalidate&&(W=!0);let tt=p9(j.location,$.location,Rn({_isRedirect:!0},De?{_isFetchActionRedirect:!0}:{}));if($t(tt,"Expected a location on the redirect navigation"),GF.test($.location)&&n){let Rt=e.history.createURL($.location),Zt=Qp(Rt.pathname,u)==null;if(t.location.origin!==Rt.origin||Zt){Fe?t.location.replace($.location):t.location.assign($.location);return}}R=null;let Je=Fe===!0?Vn.Replace:Vn.Push,Ze=be||jI(j.navigation);if(khe.has($.status)&&Ze&&Ma(Ze.formMethod))await ne(Je,tt,{submission:Rn({},Ze,{formAction:$.location}),preventScrollReset:k});else if(De)await ne(Je,tt,{overrideNavigation:j0(tt),fetcherSubmission:Ze,preventScrollReset:k});else{let Rt=j0(tt,Ze);await ne(Je,tt,{overrideNavigation:Rt,preventScrollReset:k})}}async function pt(j,$,J,be,Fe){let De=await Promise.all([...J.map(Ze=>nd("loader",Fe,Ze,$,a,i,u)),...be.map(Ze=>Ze.matches&&Ze.match&&Ze.controller?nd("loader",rd(e.history,Ze.path,Ze.controller.signal),Ze.match,Ze.matches,a,i,u):{type:Jn.error,error:ia(404,{pathname:Ze.path})})]),tt=De.slice(0,J.length),Je=De.slice(J.length);return await Promise.all([HI(j,J,tt,tt.map(()=>Fe.signal),!1,A.loaderData),HI(j,be.map(Ze=>Ze.match),Je,be.map(Ze=>Ze.controller?Ze.controller.signal:null),!0)]),{results:De,loaderResults:tt,fetcherResults:Je}}function U(){W=!0,P.push(...ye()),Z.forEach((j,$)=>{z.has($)&&(Q.push($),ke($))})}function ie(j,$,J){let be=x1(A.matches,$);pe(j),re({errors:{[be.route.id]:J},fetchers:new Map(A.fetchers)})}function pe(j){let $=A.fetchers.get(j);z.has(j)&&!($&&$.state==="loading"&&de.has(j))&&ke(j),Z.delete(j),de.delete(j),fe.delete(j),A.fetchers.delete(j)}function ke(j){let $=z.get(j);$t($,"Expected fetch controller: "+j),$.abort(),z.delete(j)}function ve(j){for(let $ of j){let J=Xe($),be=i1(J.data);A.fetchers.set($,be)}}function Se(){let j=[],$=!1;for(let J of fe){let be=A.fetchers.get(J);$t(be,"Expected fetcher: "+J),be.state==="loading"&&(fe.delete(J),j.push(J),$=!0)}return ve(j),$}function Me(j){let $=[];for(let[J,be]of de)if(be0}function ze(j,$){let J=A.blockers.get(j)||td;return ce.get(j)!==$&&ce.set(j,$),J}function Ke(j){A.blockers.delete(j),ce.delete(j)}function jt(j,$){let J=A.blockers.get(j)||td;$t(J.state==="unblocked"&&$.state==="blocked"||J.state==="blocked"&&$.state==="blocked"||J.state==="blocked"&&$.state==="proceeding"||J.state==="blocked"&&$.state==="unblocked"||J.state==="proceeding"&&$.state==="unblocked","Invalid blocker state transition: "+J.state+" -> "+$.state);let be=new Map(A.blockers);be.set(j,$),re({blockers:be})}function ue(j){let{currentLocation:$,nextLocation:J,historyAction:be}=j;if(ce.size===0)return;ce.size>1&&Eu(!1,"A router only supports one blocker at a time");let Fe=Array.from(ce.entries()),[De,tt]=Fe[Fe.length-1],Je=A.blockers.get(De);if(!(Je&&Je.state==="proceeding")&&tt({currentLocation:$,nextLocation:J,historyAction:be}))return De}function ye(j){let $=[];return V.forEach((J,be)=>{(!j||j(be))&&(J.cancel(),$.push(be),V.delete(be))}),$}function We(j,$,J){if(m=j,E=$,g=J||null,!b&&A.navigation===o4){b=!0;let be=Y(A.location,A.matches);be!=null&&re({restoreScrollPosition:be})}return()=>{m=null,E=null,g=null}}function at(j,$){return g&&g(j,$.map(be=>$he(be,A.loaderData)))||j.key}function Qe(j,$){if(m&&E){let J=at(j,$);m[J]=E()}}function Y(j,$){if(m){let J=at(j,$),be=m[J];if(typeof be=="number")return be}return null}function se(j){a={},s=f9(j,i,void 0,a)}return w={get basename(){return u},get state(){return A},get routes(){return o},initialize:me,subscribe:O,enableScrollRestoration:We,navigate:K,fetch:Ve,revalidate:xe,createHref:j=>e.history.createHref(j),encodeLocation:j=>e.history.encodeLocation(j),getFetcher:Xe,deleteFetcher:pe,dispose:oe,getBlocker:ze,deleteBlocker:Ke,_internalFetchControllers:z,_internalActiveDeferreds:V,_internalSetRoutes:se},w}function Ohe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function h9(e,t,n,r,i,a,o){let s,u;if(a!=null&&o!=="path"){s=[];for(let p of t)if(s.push(p),p.route.id===a){u=p;break}}else s=t,u=t[t.length-1];let c=$F(i||".",N7(s).map(p=>p.pathnameBase),Qp(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!O7(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:sl([n,c.pathname])),lm(c)}function DI(e,t,n,r){if(!r||!Ohe(r))return{path:n};if(r.formMethod&&!Uhe(r.formMethod))return{path:n,error:ia(405,{method:r.formMethod})};let i=()=>({path:n,error:ia(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=WF(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ma(o))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,E)=>{let[b,T]=E;return""+g+b+"="+T+` -`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ma(o))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}$t(typeof FormData=="function","FormData is not available in this environment");let u,c;if(r.formData)u=g9(r.formData),c=r.formData;else if(r.body instanceof FormData)u=g9(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=PI(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=PI(u)}catch{return i()}let p={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Ma(p.formMethod))return{path:n,submission:p};let f=So(n);return t&&f.search&&O7(f.search)&&u.append("index",""),f.search="?"+u,{path:lm(f),submission:p}}function Dhe(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function LI(e,t,n,r,i,a,o,s,u,c,p,f,m,g){let E=g?Object.values(g)[0]:m?Object.values(m)[0]:void 0,b=e.createURL(t.location),T=e.createURL(i),v=g?Object.keys(g)[0]:void 0,w=Dhe(n,v).filter((D,k)=>{if(D.route.lazy)return!0;if(D.route.loader==null)return!1;if(Lhe(t.loaderData,t.matches[k],D)||o.some(W=>W===D.route.id))return!0;let R=t.matches[k],B=D;return MI(D,Rn({currentUrl:b,currentParams:R.params,nextUrl:T,nextParams:B.params},r,{actionResult:E,defaultShouldRevalidate:a||b.pathname+b.search===T.pathname+T.search||b.search!==T.search||VF(R,B)}))}),A=[];return u.forEach((D,k)=>{if(!n.some(Q=>Q.route.id===D.routeId))return;let R=C1(p,D.path,f);if(!R){A.push({key:k,routeId:D.routeId,path:D.path,matches:null,match:null,controller:null});return}let B=t.fetchers.get(k),W=m9(R,D.path),P=!1;c.has(k)?P=!1:s.includes(k)?P=!0:B&&B.state!=="idle"&&B.data===void 0?P=a:P=MI(W,Rn({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:T,nextParams:n[n.length-1].params},r,{actionResult:E,defaultShouldRevalidate:a})),P&&A.push({key:k,routeId:D.routeId,path:D.path,matches:R,match:W,controller:new AbortController})}),[w,A]}function Lhe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function VF(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function MI(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function FI(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];$t(i,"No route found in manifest");let a={};for(let o in r){let u=i[o]!==void 0&&o!=="hasErrorBoundary";Eu(!u,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!u&&!rhe.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Rn({},t(i),{lazy:void 0}))}async function nd(e,t,n,r,i,a,o,s){s===void 0&&(s={});let u,c,p,f=E=>{let b,T=new Promise((v,y)=>b=y);return p=()=>b(),t.signal.addEventListener("abort",p),Promise.race([E({request:t,params:n.params,context:s.requestContext}),T])};try{let E=n.route[e];if(n.route.lazy)if(E)c=(await Promise.all([f(E),FI(n.route,a,i)]))[0];else if(await FI(n.route,a,i),E=n.route[e],E)c=await f(E);else if(e==="action"){let b=new URL(t.url),T=b.pathname+b.search;throw ia(405,{method:t.method,pathname:T,routeId:n.route.id})}else return{type:Jn.data,data:void 0};else if(E)c=await f(E);else{let b=new URL(t.url),T=b.pathname+b.search;throw ia(404,{pathname:T})}$t(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(E){u=Jn.error,c=E}finally{p&&t.signal.removeEventListener("abort",p)}if(Bhe(c)){let E=c.status;if(xhe.has(E)){let v=c.headers.get("Location");if($t(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!GF.test(v))v=h9(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,v);else if(!s.isStaticRequest){let y=new URL(t.url),w=v.startsWith("//")?new URL(y.protocol+v):new URL(v),A=Qp(w.pathname,o)!=null;w.origin===y.origin&&A&&(v=w.pathname+w.search+w.hash)}if(s.isStaticRequest)throw c.headers.set("Location",v),c;return{type:Jn.redirect,status:E,location:v,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(s.isRouteRequest)throw{type:u||Jn.data,response:c};let b,T=c.headers.get("Content-Type");return T&&/\bapplication\/json\b/.test(T)?b=await c.json():b=await c.text(),u===Jn.error?{type:u,error:new zF(E,c.statusText,b),headers:c.headers}:{type:Jn.data,data:b,statusCode:c.status,headers:c.headers}}if(u===Jn.error)return{type:u,error:c};if(Phe(c)){var m,g;return{type:Jn.deferred,deferredData:c,statusCode:(m=c.init)==null?void 0:m.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:Jn.data,data:c}}function rd(e,t,n,r){let i=e.createURL(WF(t)).toString(),a={signal:n};if(r&&Ma(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=g9(r.formData):a.body=r.formData}return new Request(i,a)}function g9(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function PI(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Mhe(e,t,n,r,i){let a={},o=null,s,u=!1,c={};return n.forEach((p,f)=>{let m=t[f].route.id;if($t(!$1(p),"Cannot handle redirect results in processLoaderData"),Ud(p)){let g=x1(e,m),E=p.error;r&&(E=Object.values(r)[0],r=void 0),o=o||{},o[g.route.id]==null&&(o[g.route.id]=E),a[m]=void 0,u||(u=!0,s=HF(p.error)?p.error.status:500),p.headers&&(c[m]=p.headers)}else eu(p)?(i.set(m,p.deferredData),a[m]=p.deferredData.data):a[m]=p.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(s=p.statusCode),p.headers&&(c[m]=p.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function BI(e,t,n,r,i,a,o,s){let{loaderData:u,errors:c}=Mhe(t,n,r,i,s);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function $I(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ia(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?s="defer() is not supported in actions":a==="invalid-body"&&(s="Unable to encode submission body")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new zF(e||500,o,new Error(s),!0)}function zI(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if($1(n))return{result:n,idx:t}}}function WF(e){let t=typeof e=="string"?So(e):e;return lm(Rn({},t,{hash:""}))}function Fhe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function eu(e){return e.type===Jn.deferred}function Ud(e){return e.type===Jn.error}function $1(e){return(e&&e.type)===Jn.redirect}function Phe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Bhe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Uhe(e){return Che.has(e.toLowerCase())}function Ma(e){return whe.has(e.toLowerCase())}async function HI(e,t,n,r,i,a){for(let o=0;of.route.id===u.route.id),p=c!=null&&!VF(c,u)&&(a&&a[u.route.id])!==void 0;if(eu(s)&&(i||p)){let f=r[o];$t(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await qF(s,f,i).then(m=>{m&&(n[o]=m||n[o])})}}}async function qF(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Jn.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Jn.error,error:i}}return{type:Jn.data,data:e.deferredData.data}}}function O7(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function $he(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function m9(e,t){let n=typeof t=="string"?So(t).search:t.search;if(e[e.length-1].route.index&&O7(n||""))return e[e.length-1];let r=N7(e);return r[r.length-1]}function jI(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function j0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function zhe(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function id(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function Hhe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function i1(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** + */function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var t=1;tp(g,typeof g=="string"?null:g.state,b===0?"default":void 0));let a=u(n??i.length-1),o=Wn.Pop,s=null;function u(g){return Math.min(Math.max(g,0),i.length-1)}function c(){return i[a]}function p(g,b,y){b===void 0&&(b=null);let T=Vy(i?c().pathname:"/",g,b,y);return Au(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(g)),T}function f(g){return typeof g=="string"?g:D2(g)}return{get index(){return a},get action(){return o},get location(){return c()},createHref:f,createURL(g){return new URL(f(g),"http://localhost")},encodeLocation(g){let b=typeof g=="string"?Ro(g):g;return{pathname:b.pathname||"",search:b.search||"",hash:b.hash||""}},push(g,b){o=Wn.Push;let y=p(g,b);a+=1,i.splice(a,i.length,y),r&&s&&s({action:o,location:y,delta:1})},replace(g,b){o=Wn.Replace;let y=p(g,b);i[a]=y,r&&s&&s({action:o,location:y,delta:0})},go(g){o=Wn.Pop;let b=u(a+g),y=i[b];a=b,s&&s({action:o,location:y,delta:g})},listen(g){return s=g,()=>{s=null}}}}function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Au(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Kge(){return Math.random().toString(36).substr(2,8)}function Vy(e,t,n,r){return n===void 0&&(n=null),Nn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ro(t):t,{state:n,key:t&&t.key||r||Kge()})}function D2(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ro(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var tr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tr||(tr={}));const Yge=new Set(["lazy","caseSensitive","path","id","index","children"]);function Xge(e){return e.index===!0}function Wy(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if($t(i.index!==!0||!i.children,"Cannot specify children on an index route"),$t(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Xge(i)){let u=Nn({},i,t(i),{id:s});return r[s]=u,u}else{let u=Nn({},i,t(i),{id:s,children:void 0});return r[s]=u,i.children&&(u.children=Wy(i.children,t,o,r)),u}})}function L1(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ro(t):t,i=hf(r.pathname||"/",n);if(i==null)return null;let a=rB(e);Zge(a);let o=null;for(let s=0;o==null&&s{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};u.relativePath.startsWith("/")&&($t(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=fl([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&($t(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),rB(a.children,t,p,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:ime(c,a.index),routesMeta:p})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let u of iB(a.path))i(a,o,u)}),t}function iB(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=iB(r.join("/")),s=[];return s.push(...o.map(u=>u===""?a:[a,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Zge(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ame(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Qge=/^:\w+$/,Jge=3,eme=2,tme=1,nme=10,rme=-2,DR=e=>e==="*";function ime(e,t){let n=e.split("/"),r=n.length;return n.some(DR)&&(r+=rme),t&&(r+=eme),n.filter(i=>!DR(i)).reduce((i,a)=>i+(Qge.test(a)?Jge:a===""?tme:nme),r)}function ame(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function ome(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(p==="*"){let m=s[f]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}return c[p]=cme(s[f]||"",p),c},{}),pathname:a,pathnameBase:o,pattern:e}}function lme(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Au(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function ume(e){try{return decodeURI(e)}catch(t){return Au(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function cme(e,t){try{return decodeURIComponent(e)}catch(n){return Au(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function hf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function dme(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ro(e):e;return{pathname:n?n.startsWith("/")?n:pme(n,t):t,search:hme(r),hash:gme(i)}}function pme(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function L4(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function vT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function aB(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ro(e):(i=Nn({},e),$t(!i.pathname||!i.pathname.includes("?"),L4("?","pathname","search",i)),$t(!i.pathname||!i.pathname.includes("#"),L4("#","pathname","hash",i)),$t(!i.search||!i.search.includes("#"),L4("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let f=t.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let u=dme(i,s),c=o&&o!=="/"&&o.endsWith("/"),p=(a||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}const fl=e=>e.join("/").replace(/\/\/+/g,"/"),fme=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hme=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gme=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class oB{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function sB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lB=["post","put","patch","delete"],mme=new Set(lB),bme=["get",...lB],yme=new Set(bme),Eme=new Set([301,302,303,307,308]),vme=new Set([307,308]),M4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_me={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},uB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tme=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Sme(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$t(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let G=e.detectErrorBoundary;i=K=>({hasErrorBoundary:G(K)})}else i=Tme;let a={},o=Wy(e.routes,i,void 0,a),s,u=e.basename||"/",c=Nn({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),p=null,f=new Set,m=null,g=null,b=null,y=e.hydrationData!=null,T=L1(o,e.history.location,u),E=null;if(T==null){let G=oa(404,{pathname:e.history.location.pathname}),{matches:K,route:ne}=zR(o);T=K,E={[ne.id]:G}}let v=!T.some(G=>G.route.lazy)&&(!T.some(G=>G.route.loader)||e.hydrationData!=null),w,A={historyAction:e.history.action,location:e.history.location,matches:T,initialized:v,navigation:M4,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},R=Wn.Pop,k=!1,N,B=!1,q=!1,P=[],Q=[],$=new Map,oe=0,fe=-1,ce=new Map,De=new Set,H=new Map,W=new Map,se=new Map,D=!1;function pe(){return p=e.history.listen(G=>{let{action:K,location:ne,delta:ve}=G;if(D){D=!1;return}Au(se.size===0||ve!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Qe=ue({currentLocation:A.location,nextLocation:ne,historyAction:K});if(Qe&&ve!=null){D=!0,e.history.go(ve*-1),jt(Qe,{state:"blocked",location:ne,proceed(){jt(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),e.history.go(ve)},reset(){let Fe=new Map(A.blockers);Fe.set(Qe,fd),ie({blockers:Fe})}});return}return te(K,ne)}),A.initialized||te(Wn.Pop,A.location),w}function le(){p&&p(),f.clear(),N&&N.abort(),A.fetchers.forEach((G,K)=>de(K)),A.blockers.forEach((G,K)=>Ye(K))}function L(G){return f.add(G),()=>f.delete(G)}function ie(G){A=Nn({},A,G),f.forEach(K=>K(A))}function Se(G,K){var ne,ve;let Qe=A.actionData!=null&&A.navigation.formMethod!=null&&Ba(A.navigation.formMethod)&&A.navigation.state==="loading"&&((ne=G.state)==null?void 0:ne._isRedirect)!==!0,Fe;K.actionData?Object.keys(K.actionData).length>0?Fe=K.actionData:Fe=null:Qe?Fe=A.actionData:Fe=null;let at=K.loaderData?$R(A.loaderData,K.loaderData,K.matches||[],K.errors):A.loaderData,rt=A.blockers;rt.size>0&&(rt=new Map(rt),rt.forEach((Rt,Qt)=>rt.set(Qt,fd)));let Je=k===!0||A.navigation.formMethod!=null&&Ba(A.navigation.formMethod)&&((ve=G.state)==null?void 0:ve._isRedirect)!==!0;s&&(o=s,s=void 0),B||R===Wn.Pop||(R===Wn.Push?e.history.push(G,G.state):R===Wn.Replace&&e.history.replace(G,G.state)),ie(Nn({},K,{actionData:Fe,loaderData:at,historyAction:R,location:G,initialized:!0,navigation:M4,revalidation:"idle",restoreScrollPosition:Ve(G,K.matches||A.matches),preventScrollReset:Je,blockers:rt})),R=Wn.Pop,k=!1,B=!1,q=!1,P=[],Q=[]}async function X(G,K){if(typeof G=="number"){e.history.go(G);return}let ne=qy(A.location,A.matches,u,c.v7_prependBasename,G,K==null?void 0:K.fromRouteId,K==null?void 0:K.relative),{path:ve,submission:Qe,error:Fe}=LR(c.v7_normalizeFormMethod,!1,ne,K),at=A.location,rt=Vy(A.location,ve,K&&K.state);rt=Nn({},rt,e.history.encodeLocation(rt));let Je=K&&K.replace!=null?K.replace:void 0,Rt=Wn.Push;Je===!0?Rt=Wn.Replace:Je===!1||Qe!=null&&Ba(Qe.formMethod)&&Qe.formAction===A.location.pathname+A.location.search&&(Rt=Wn.Replace);let Qt=K&&"preventScrollReset"in K?K.preventScrollReset===!0:void 0,kt=ue({currentLocation:at,nextLocation:rt,historyAction:Rt});if(kt){jt(kt,{state:"blocked",location:rt,proceed(){jt(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:rt}),X(G,K)},reset(){let rn=new Map(A.blockers);rn.set(kt,fd),ie({blockers:rn})}});return}return await te(Rt,rt,{submission:Qe,pendingError:Fe,preventScrollReset:Qt,replace:K&&K.replace})}function ke(){if(U(),ie({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){te(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}te(R||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function te(G,K,ne){N&&N.abort(),N=null,R=G,B=(ne&&ne.startUninterruptedRevalidation)===!0,me(A.location,A.matches),k=(ne&&ne.preventScrollReset)===!0;let ve=s||o,Qe=ne&&ne.overrideNavigation,Fe=L1(ve,K,u);if(!Fe){let rn=oa(404,{pathname:K.pathname}),{matches:Xt,route:Wr}=zR(ve);Ee(),Se(K,{matches:Xt,loaderData:{},errors:{[Wr.id]:rn}});return}if(A.initialized&&!q&&xme(A.location,K)&&!(ne&&ne.submission&&Ba(ne.submission.formMethod))){Se(K,{matches:Fe});return}N=new AbortController;let at=gd(e.history,K,N.signal,ne&&ne.submission),rt,Je;if(ne&&ne.pendingError)Je={[M1(Fe).route.id]:ne.pendingError};else if(ne&&ne.submission&&Ba(ne.submission.formMethod)){let rn=await Me(at,K,ne.submission,Fe,{replace:ne.replace});if(rn.shortCircuited)return;rt=rn.pendingActionData,Je=rn.pendingActionError,Qe=ah(K,ne.submission),at=new Request(at.url,{signal:at.signal})}let{shortCircuited:Rt,loaderData:Qt,errors:kt}=await Re(at,K,Fe,Qe,ne&&ne.submission,ne&&ne.fetcherSubmission,ne&&ne.replace,rt,Je);Rt||(N=null,Se(K,Nn({matches:Fe},rt?{actionData:rt}:{},{loaderData:Qt,errors:kt})))}async function Me(G,K,ne,ve,Qe){Qe===void 0&&(Qe={}),U();let Fe=Dme(K,ne);ie({navigation:Fe});let at,rt=Yy(ve,K);if(!rt.route.action&&!rt.route.lazy)at={type:tr.error,error:oa(405,{method:G.method,pathname:K.pathname,routeId:rt.route.id})};else if(at=await hd("action",G,rt,ve,a,i,u),G.signal.aborted)return{shortCircuited:!0};if(K1(at)){let Je;return Qe&&Qe.replace!=null?Je=Qe.replace:Je=at.location===A.location.pathname+A.location.search,await je(A,at,{submission:ne,replace:Je}),{shortCircuited:!0}}if(tp(at)){let Je=M1(ve,rt.route.id);return(Qe&&Qe.replace)!==!0&&(R=Wn.Push),{pendingActionData:{},pendingActionError:{[Je.route.id]:at.error}}}if(su(at))throw oa(400,{type:"defer-action"});return{pendingActionData:{[rt.route.id]:at.data}}}async function Re(G,K,ne,ve,Qe,Fe,at,rt,Je){let Rt=ve||ah(K,Qe),Qt=Qe||Fe||GR(Rt),kt=s||o,[rn,Xt]=MR(e.history,A,ne,Qt,K,q,P,Q,H,De,kt,u,rt,Je);if(Ee(qt=>!(ne&&ne.some(Dr=>Dr.route.id===qt))||rn&&rn.some(Dr=>Dr.route.id===qt)),fe=++oe,rn.length===0&&Xt.length===0){let qt=Te();return Se(K,Nn({matches:ne,loaderData:{},errors:Je||null},rt?{actionData:rt}:{},qt?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!B){Xt.forEach(Dr=>{let Si=A.fetchers.get(Dr.key),Nl=md(void 0,Si?Si.data:void 0);A.fetchers.set(Dr.key,Nl)});let qt=rt||A.actionData;ie(Nn({navigation:Rt},qt?Object.keys(qt).length===0?{actionData:null}:{actionData:qt}:{},Xt.length>0?{fetchers:new Map(A.fetchers)}:{}))}Xt.forEach(qt=>{$.has(qt.key)&&xe(qt.key),qt.controller&&$.set(qt.key,qt.controller)});let Wr=()=>Xt.forEach(qt=>xe(qt.key));N&&N.signal.addEventListener("abort",Wr);let{results:qr,loaderResults:Kr,fetcherResults:Aa}=await pt(A.matches,ne,rn,Xt,G);if(G.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",Wr),Xt.forEach(qt=>$.delete(qt.key));let si=HR(qr);if(si){if(si.idx>=rn.length){let qt=Xt[si.idx-rn.length].key;De.add(qt)}return await je(A,si.result,{replace:at}),{shortCircuited:!0}}let{loaderData:Or,errors:Es}=UR(A,ne,rn,Kr,Je,Xt,Aa,W);W.forEach((qt,Dr)=>{qt.subscribe(Si=>{(Si||qt.done)&&W.delete(Dr)})});let vs=Te(),Yr=Le(fe),_s=vs||Yr||Xt.length>0;return Nn({loaderData:Or,errors:Es},_s?{fetchers:new Map(A.fetchers)}:{})}function Ze(G){return A.fetchers.get(G)||_me}function We(G,K,ne,ve){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$.has(G)&&xe(G);let Qe=s||o,Fe=qy(A.location,A.matches,u,c.v7_prependBasename,ne,K,ve==null?void 0:ve.relative),at=L1(Qe,Fe,u);if(!at){re(G,K,oa(404,{pathname:Fe}));return}let{path:rt,submission:Je,error:Rt}=LR(c.v7_normalizeFormMethod,!0,Fe,ve);if(Rt){re(G,K,Rt);return}let Qt=Yy(at,rt);if(k=(ve&&ve.preventScrollReset)===!0,Je&&Ba(Je.formMethod)){dt(G,K,rt,Qt,at,Je);return}H.set(G,{routeId:K,path:rt}),ot(G,K,rt,Qt,at,Je)}async function dt(G,K,ne,ve,Qe,Fe){if(U(),H.delete(G),!ve.route.action&&!ve.route.lazy){let Ke=oa(405,{method:Fe.formMethod,pathname:ne,routeId:K});re(G,K,Ke);return}let at=A.fetchers.get(G),rt=Lme(Fe,at);A.fetchers.set(G,rt),ie({fetchers:new Map(A.fetchers)});let Je=new AbortController,Rt=gd(e.history,ne,Je.signal,Fe);$.set(G,Je);let Qt=oe,kt=await hd("action",Rt,ve,Qe,a,i,u);if(Rt.signal.aborted){$.get(G)===Je&&$.delete(G);return}if(K1(kt))if($.delete(G),fe>Qt){let Ke=d1(void 0);A.fetchers.set(G,Ke),ie({fetchers:new Map(A.fetchers)});return}else{De.add(G);let Ke=md(Fe);return A.fetchers.set(G,Ke),ie({fetchers:new Map(A.fetchers)}),je(A,kt,{submission:Fe,isFetchActionRedirect:!0})}if(tp(kt)){re(G,K,kt.error);return}if(su(kt))throw oa(400,{type:"defer-action"});let rn=A.navigation.location||A.location,Xt=gd(e.history,rn,Je.signal),Wr=s||o,qr=A.navigation.state!=="idle"?L1(Wr,A.navigation.location,u):A.matches;$t(qr,"Didn't find any matches after fetcher action");let Kr=++oe;ce.set(G,Kr);let Aa=md(Fe,kt.data);A.fetchers.set(G,Aa);let[si,Or]=MR(e.history,A,qr,Fe,rn,q,P,Q,H,De,Wr,u,{[ve.route.id]:kt.data},void 0);Or.filter(Ke=>Ke.key!==G).forEach(Ke=>{let J=Ke.key,Be=A.fetchers.get(J),it=md(void 0,Be?Be.data:void 0);A.fetchers.set(J,it),$.has(J)&&xe(J),Ke.controller&&$.set(J,Ke.controller)}),ie({fetchers:new Map(A.fetchers)});let Es=()=>Or.forEach(Ke=>xe(Ke.key));Je.signal.addEventListener("abort",Es);let{results:vs,loaderResults:Yr,fetcherResults:_s}=await pt(A.matches,qr,si,Or,Xt);if(Je.signal.aborted)return;Je.signal.removeEventListener("abort",Es),ce.delete(G),$.delete(G),Or.forEach(Ke=>$.delete(Ke.key));let qt=HR(vs);if(qt){if(qt.idx>=si.length){let Ke=Or[qt.idx-si.length].key;De.add(Ke)}return je(A,qt.result)}let{loaderData:Dr,errors:Si}=UR(A,A.matches,si,Yr,void 0,Or,_s,W);if(A.fetchers.has(G)){let Ke=d1(kt.data);A.fetchers.set(G,Ke)}let Nl=Le(Kr);A.navigation.state==="loading"&&Kr>fe?($t(R,"Expected pending action"),N&&N.abort(),Se(A.navigation.location,{matches:qr,loaderData:Dr,errors:Si,fetchers:new Map(A.fetchers)})):(ie(Nn({errors:Si,loaderData:$R(A.loaderData,Dr,qr,Si)},Nl||Or.length>0?{fetchers:new Map(A.fetchers)}:{})),q=!1)}async function ot(G,K,ne,ve,Qe,Fe){let at=A.fetchers.get(G),rt=md(Fe,at?at.data:void 0);A.fetchers.set(G,rt),ie({fetchers:new Map(A.fetchers)});let Je=new AbortController,Rt=gd(e.history,ne,Je.signal);$.set(G,Je);let Qt=oe,kt=await hd("loader",Rt,ve,Qe,a,i,u);if(su(kt)&&(kt=await pB(kt,Rt.signal,!0)||kt),$.get(G)===Je&&$.delete(G),Rt.signal.aborted)return;if(K1(kt))if(fe>Qt){let Xt=d1(void 0);A.fetchers.set(G,Xt),ie({fetchers:new Map(A.fetchers)});return}else{De.add(G),await je(A,kt);return}if(tp(kt)){let Xt=M1(A.matches,K);A.fetchers.delete(G),ie({fetchers:new Map(A.fetchers),errors:{[Xt.route.id]:kt.error}});return}$t(!su(kt),"Unhandled fetcher deferred data");let rn=d1(kt.data);A.fetchers.set(G,rn),ie({fetchers:new Map(A.fetchers)})}async function je(G,K,ne){let{submission:ve,replace:Qe,isFetchActionRedirect:Fe}=ne===void 0?{}:ne;K.revalidate&&(q=!0);let at=Vy(G.location,K.location,Nn({_isRedirect:!0},Fe?{_isFetchActionRedirect:!0}:{}));if($t(at,"Expected a location on the redirect navigation"),uB.test(K.location)&&n){let Rt=e.history.createURL(K.location),Qt=hf(Rt.pathname,u)==null;if(t.location.origin!==Rt.origin||Qt){Qe?t.location.replace(K.location):t.location.assign(K.location);return}}N=null;let rt=Qe===!0?Wn.Replace:Wn.Push,Je=ve||GR(G.navigation);if(vme.has(K.status)&&Je&&Ba(Je.formMethod))await te(rt,at,{submission:Nn({},Je,{formAction:K.location}),preventScrollReset:k});else if(Fe)await te(rt,at,{overrideNavigation:ah(at),fetcherSubmission:Je,preventScrollReset:k});else{let Rt=ah(at,Je);await te(rt,at,{overrideNavigation:Rt,preventScrollReset:k})}}async function pt(G,K,ne,ve,Qe){let Fe=await Promise.all([...ne.map(Je=>hd("loader",Qe,Je,K,a,i,u)),...ve.map(Je=>Je.matches&&Je.match&&Je.controller?hd("loader",gd(e.history,Je.path,Je.controller.signal),Je.match,Je.matches,a,i,u):{type:tr.error,error:oa(404,{pathname:Je.path})})]),at=Fe.slice(0,ne.length),rt=Fe.slice(ne.length);return await Promise.all([jR(G,ne,at,at.map(()=>Qe.signal),!1,A.loaderData),jR(G,ve.map(Je=>Je.match),rt,ve.map(Je=>Je.controller?Je.controller.signal:null),!0)]),{results:Fe,loaderResults:at,fetcherResults:rt}}function U(){q=!0,P.push(...Ee()),H.forEach((G,K)=>{$.has(K)&&(Q.push(K),xe(K))})}function re(G,K,ne){let ve=M1(A.matches,K);de(G),ie({errors:{[ve.route.id]:ne},fetchers:new Map(A.fetchers)})}function de(G){let K=A.fetchers.get(G);$.has(G)&&!(K&&K.state==="loading"&&ce.has(G))&&xe(G),H.delete(G),ce.delete(G),De.delete(G),A.fetchers.delete(G)}function xe(G){let K=$.get(G);$t(K,"Expected fetch controller: "+G),K.abort(),$.delete(G)}function ye(G){for(let K of G){let ne=Ze(K),ve=d1(ne.data);A.fetchers.set(K,ve)}}function Te(){let G=[],K=!1;for(let ne of De){let ve=A.fetchers.get(ne);$t(ve,"Expected fetcher: "+ne),ve.state==="loading"&&(De.delete(ne),G.push(ne),K=!0)}return ye(G),K}function Le(G){let K=[];for(let[ne,ve]of ce)if(ve0}function ze(G,K){let ne=A.blockers.get(G)||fd;return se.get(G)!==K&&se.set(G,K),ne}function Ye(G){A.blockers.delete(G),se.delete(G)}function jt(G,K){let ne=A.blockers.get(G)||fd;$t(ne.state==="unblocked"&&K.state==="blocked"||ne.state==="blocked"&&K.state==="blocked"||ne.state==="blocked"&&K.state==="proceeding"||ne.state==="blocked"&&K.state==="unblocked"||ne.state==="proceeding"&&K.state==="unblocked","Invalid blocker state transition: "+ne.state+" -> "+K.state);let ve=new Map(A.blockers);ve.set(G,K),ie({blockers:ve})}function ue(G){let{currentLocation:K,nextLocation:ne,historyAction:ve}=G;if(se.size===0)return;se.size>1&&Au(!1,"A router only supports one blocker at a time");let Qe=Array.from(se.entries()),[Fe,at]=Qe[Qe.length-1],rt=A.blockers.get(Fe);if(!(rt&&rt.state==="proceeding")&&at({currentLocation:K,nextLocation:ne,historyAction:ve}))return Fe}function Ee(G){let K=[];return W.forEach((ne,ve)=>{(!G||G(ve))&&(ne.cancel(),K.push(ve),W.delete(ve))}),K}function qe(G,K,ne){if(m=G,b=K,g=ne||null,!y&&A.navigation===M4){y=!0;let ve=Ve(A.location,A.matches);ve!=null&&ie({restoreScrollPosition:ve})}return()=>{m=null,b=null,g=null}}function j(G,K){return g&&g(G,K.map(ve=>Ome(ve,A.loaderData)))||G.key}function me(G,K){if(m&&b){let ne=j(G,K);m[ne]=b()}}function Ve(G,K){if(m){let ne=j(G,K),ve=m[ne];if(typeof ve=="number")return ve}return null}function ge(G){a={},s=Wy(G,i,void 0,a)}return w={get basename(){return u},get state(){return A},get routes(){return o},initialize:pe,subscribe:L,enableScrollRestoration:qe,navigate:X,fetch:We,revalidate:ke,createHref:G=>e.history.createHref(G),encodeLocation:G=>e.history.encodeLocation(G),getFetcher:Ze,deleteFetcher:de,dispose:le,getBlocker:ze,deleteBlocker:Ye,_internalFetchControllers:$,_internalActiveDeferreds:W,_internalSetRoutes:ge},w}function wme(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function qy(e,t,n,r,i,a,o){let s,u;if(a!=null&&o!=="path"){s=[];for(let p of t)if(s.push(p),p.route.id===a){u=p;break}}else s=t,u=t[t.length-1];let c=aB(i||".",vT(s).map(p=>p.pathnameBase),hf(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!_T(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:fl([n,c.pathname])),D2(c)}function LR(e,t,n,r){if(!r||!wme(r))return{path:n};if(r.formMethod&&!Nme(r.formMethod))return{path:n,error:oa(405,{method:r.formMethod})};let i=()=>({path:n,error:oa(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=dB(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ba(o))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,b)=>{let[y,T]=b;return""+g+y+"="+T+` +`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ba(o))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}$t(typeof FormData=="function","FormData is not available in this environment");let u,c;if(r.formData)u=Ky(r.formData),c=r.formData;else if(r.body instanceof FormData)u=Ky(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=BR(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=BR(u)}catch{return i()}let p={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Ba(p.formMethod))return{path:n,submission:p};let f=Ro(n);return t&&f.search&&_T(f.search)&&u.append("index",""),f.search="?"+u,{path:D2(f),submission:p}}function Ame(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function MR(e,t,n,r,i,a,o,s,u,c,p,f,m,g){let b=g?Object.values(g)[0]:m?Object.values(m)[0]:void 0,y=e.createURL(t.location),T=e.createURL(i),E=g?Object.keys(g)[0]:void 0,w=Ame(n,E).filter((R,k)=>{if(R.route.lazy)return!0;if(R.route.loader==null)return!1;if(Cme(t.loaderData,t.matches[k],R)||o.some(q=>q===R.route.id))return!0;let N=t.matches[k],B=R;return FR(R,Nn({currentUrl:y,currentParams:N.params,nextUrl:T,nextParams:B.params},r,{actionResult:b,defaultShouldRevalidate:a||y.pathname+y.search===T.pathname+T.search||y.search!==T.search||cB(N,B)}))}),A=[];return u.forEach((R,k)=>{if(!n.some(Q=>Q.route.id===R.routeId))return;let N=L1(p,R.path,f);if(!N){A.push({key:k,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let B=t.fetchers.get(k),q=Yy(N,R.path),P=!1;c.has(k)?P=!1:s.includes(k)?P=!0:B&&B.state!=="idle"&&B.data===void 0?P=a:P=FR(q,Nn({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:T,nextParams:n[n.length-1].params},r,{actionResult:b,defaultShouldRevalidate:a})),P&&A.push({key:k,routeId:R.routeId,path:R.path,matches:N,match:q,controller:new AbortController})}),[w,A]}function Cme(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function cB(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function FR(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function PR(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];$t(i,"No route found in manifest");let a={};for(let o in r){let u=i[o]!==void 0&&o!=="hasErrorBoundary";Au(!u,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!u&&!Yge.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Nn({},t(i),{lazy:void 0}))}async function hd(e,t,n,r,i,a,o,s){s===void 0&&(s={});let u,c,p,f=b=>{let y,T=new Promise((E,v)=>y=v);return p=()=>y(),t.signal.addEventListener("abort",p),Promise.race([b({request:t,params:n.params,context:s.requestContext}),T])};try{let b=n.route[e];if(n.route.lazy)if(b)c=(await Promise.all([f(b),PR(n.route,a,i)]))[0];else if(await PR(n.route,a,i),b=n.route[e],b)c=await f(b);else if(e==="action"){let y=new URL(t.url),T=y.pathname+y.search;throw oa(405,{method:t.method,pathname:T,routeId:n.route.id})}else return{type:tr.data,data:void 0};else if(b)c=await f(b);else{let y=new URL(t.url),T=y.pathname+y.search;throw oa(404,{pathname:T})}$t(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(b){u=tr.error,c=b}finally{p&&t.signal.removeEventListener("abort",p)}if(Rme(c)){let b=c.status;if(Eme.has(b)){let E=c.headers.get("Location");if($t(E,"Redirects returned/thrown from loaders/actions must have a Location header"),!uB.test(E))E=qy(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,E);else if(!s.isStaticRequest){let v=new URL(t.url),w=E.startsWith("//")?new URL(v.protocol+E):new URL(E),A=hf(w.pathname,o)!=null;w.origin===v.origin&&A&&(E=w.pathname+w.search+w.hash)}if(s.isStaticRequest)throw c.headers.set("Location",E),c;return{type:tr.redirect,status:b,location:E,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(s.isRouteRequest)throw{type:u||tr.data,response:c};let y,T=c.headers.get("Content-Type");return T&&/\bapplication\/json\b/.test(T)?y=await c.json():y=await c.text(),u===tr.error?{type:u,error:new oB(b,c.statusText,y),headers:c.headers}:{type:tr.data,data:y,statusCode:c.status,headers:c.headers}}if(u===tr.error)return{type:u,error:c};if(Ime(c)){var m,g;return{type:tr.deferred,deferredData:c,statusCode:(m=c.init)==null?void 0:m.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:tr.data,data:c}}function gd(e,t,n,r){let i=e.createURL(dB(t)).toString(),a={signal:n};if(r&&Ba(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=Ky(r.formData):a.body=r.formData}return new Request(i,a)}function Ky(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function BR(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function kme(e,t,n,r,i){let a={},o=null,s,u=!1,c={};return n.forEach((p,f)=>{let m=t[f].route.id;if($t(!K1(p),"Cannot handle redirect results in processLoaderData"),tp(p)){let g=M1(e,m),b=p.error;r&&(b=Object.values(r)[0],r=void 0),o=o||{},o[g.route.id]==null&&(o[g.route.id]=b),a[m]=void 0,u||(u=!0,s=sB(p.error)?p.error.status:500),p.headers&&(c[m]=p.headers)}else su(p)?(i.set(m,p.deferredData),a[m]=p.deferredData.data):a[m]=p.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(s=p.statusCode),p.headers&&(c[m]=p.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function UR(e,t,n,r,i,a,o,s){let{loaderData:u,errors:c}=kme(t,n,r,i,s);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function zR(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function oa(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?s="defer() is not supported in actions":a==="invalid-body"&&(s="Unable to encode submission body")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new oB(e||500,o,new Error(s),!0)}function HR(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(K1(n))return{result:n,idx:t}}}function dB(e){let t=typeof e=="string"?Ro(e):e;return D2(Nn({},t,{hash:""}))}function xme(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function su(e){return e.type===tr.deferred}function tp(e){return e.type===tr.error}function K1(e){return(e&&e.type)===tr.redirect}function Ime(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Rme(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Nme(e){return yme.has(e.toLowerCase())}function Ba(e){return mme.has(e.toLowerCase())}async function jR(e,t,n,r,i,a){for(let o=0;of.route.id===u.route.id),p=c!=null&&!cB(c,u)&&(a&&a[u.route.id])!==void 0;if(su(s)&&(i||p)){let f=r[o];$t(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await pB(s,f,i).then(m=>{m&&(n[o]=m||n[o])})}}}async function pB(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:tr.data,data:e.deferredData.unwrappedData}}catch(i){return{type:tr.error,error:i}}return{type:tr.data,data:e.deferredData.data}}}function _T(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ome(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function Yy(e,t){let n=typeof t=="string"?Ro(t).search:t.search;if(e[e.length-1].route.index&&_T(n||""))return e[e.length-1];let r=vT(e);return r[r.length-1]}function GR(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function ah(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Dme(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function md(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function Lme(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function d1(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** * React Router v6.14.2 * * Copyright (c) Remix Software Inc. @@ -689,39 +692,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),o=C.useRef(!1);return XF(()=>{o.current=!0}),C.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){n.go(u);return}let p=$F(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:sl([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,i,e])}const Ghe=C.createContext(null);function Vhe(e){let t=C.useContext(Sl).outlet;return t&&C.createElement(Ghe.Provider,{value:e},t)}function Whe(){let{matches:e}=C.useContext(Sl),t=e[e.length-1];return t?t.params:{}}function qhe(e,t,n){pm()||$t(!1);let{navigator:r}=C.useContext(cm),{matches:i}=C.useContext(Sl),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=D7(),c;if(t){var p;let b=typeof t=="string"?So(t):t;s==="/"||(p=b.pathname)!=null&&p.startsWith(s)||$t(!1),c=b}else c=u;let f=c.pathname||"/",m=s==="/"?f:f.slice(s.length)||"/",g=C1(e,{pathname:m}),E=Qhe(g&&g.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:sl([s,r.encodeLocation?r.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:sl([s,r.encodeLocation?r.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n);return t&&E?C.createElement(dm.Provider,{value:{location:mp({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Vn.Pop}},E):E}function Khe(){let e=QF(),t=HF(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,a)}const Yhe=C.createElement(Khe,null);class Xhe extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?C.createElement(Sl.Provider,{value:this.props.routeContext},C.createElement(YF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Zhe(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(um);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Sl.Provider,{value:t},r)}function Qhe(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let s=a.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id]));s>=0||$t(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,u,c)=>{let p=u.route.id?o==null?void 0:o[u.route.id]:null,f=null;n&&(f=u.route.errorElement||Yhe);let m=t.concat(a.slice(0,c+1)),g=()=>{let E;return p?E=f:u.route.Component?E=C.createElement(u.route.Component,null):u.route.element?E=u.route.element:E=s,C.createElement(Zhe,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:E})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?C.createElement(Xhe,{location:n.location,revalidation:n.revalidation,component:f,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var b9;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(b9||(b9={}));var bp;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(bp||(bp={}));function Jhe(e){let t=C.useContext(um);return t||$t(!1),t}function ege(e){let t=C.useContext(KF);return t||$t(!1),t}function tge(e){let t=C.useContext(Sl);return t||$t(!1),t}function ZF(e){let t=tge(),n=t.matches[t.matches.length-1];return n.route.id||$t(!1),n.route.id}function QF(){var e;let t=C.useContext(YF),n=ege(bp.UseRouteError),r=ZF(bp.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function nge(){let{router:e}=Jhe(b9.UseNavigateStable),t=ZF(bp.UseNavigateStable),n=C.useRef(!1);return XF(()=>{n.current=!0}),C.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,mp({fromRouteId:t},a)))},[e,t])}const rge="startTransition",GI=v4[rge];function ige(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=C.useState(n.state),{v7_startTransition:o}=r||{},s=C.useCallback(f=>{o&&GI?GI(()=>a(f)):a(f)},[a,o]);C.useLayoutEffect(()=>n.subscribe(s),[n,s]);let u=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,m,g)=>n.navigate(f,{state:m,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(f,m,g)=>n.navigate(f,{replace:!0,state:m,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[n]),c=n.basename||"/",p=C.useMemo(()=>({router:n,navigator:u,static:!1,basename:c}),[n,u,c]);return C.createElement(C.Fragment,null,C.createElement(um.Provider,{value:p},C.createElement(KF.Provider,{value:i},C.createElement(sge,{basename:c,location:i.location,navigationType:i.historyAction,navigator:u},i.initialized?C.createElement(age,{routes:n.routes,state:i}):t))),null)}function age(e){let{routes:t,state:n}=e;return qhe(t,void 0,n)}function oge(e){return Vhe(e.context)}function sge(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Vn.Pop,navigator:a,static:o=!1}=e;pm()&&$t(!1);let s=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=So(r));let{pathname:c="/",search:p="",hash:f="",state:m=null,key:g="default"}=r,E=C.useMemo(()=>{let b=Qp(c,s);return b==null?null:{location:{pathname:b,search:p,hash:f,state:m,key:g},navigationType:i}},[s,c,p,f,m,g,i]);return E==null?null:C.createElement(cm.Provider,{value:u},C.createElement(dm.Provider,{children:n,value:E}))}var VI;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(VI||(VI={}));new Promise(()=>{});function lge(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:C.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function uge(e,t){return Nhe({basename:t==null?void 0:t.basename,future:mp({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:the({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:lge}).initialize()}const cge=He.div` + */function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),o=C.useRef(!1);return gB(()=>{o.current=!0}),C.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){n.go(u);return}let p=aB(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:fl([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,i,e])}const Fme=C.createContext(null);function Pme(e){let t=C.useContext(Il).outlet;return t&&C.createElement(Fme.Provider,{value:e},t)}function Bme(){let{matches:e}=C.useContext(Il),t=e[e.length-1];return t?t.params:{}}function Ume(e,t,n){P2()||$t(!1);let{navigator:r}=C.useContext(M2),{matches:i}=C.useContext(Il),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=TT(),c;if(t){var p;let y=typeof t=="string"?Ro(t):t;s==="/"||(p=y.pathname)!=null&&p.startsWith(s)||$t(!1),c=y}else c=u;let f=c.pathname||"/",m=s==="/"?f:f.slice(s.length)||"/",g=L1(e,{pathname:m}),b=Gme(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:fl([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:fl([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n);return t&&b?C.createElement(F2.Provider,{value:{location:Np({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Wn.Pop}},b):b}function $me(){let e=bB(),t=sB(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,a)}const zme=C.createElement($me,null);class Hme extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?C.createElement(Il.Provider,{value:this.props.routeContext},C.createElement(hB.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jme(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(L2);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Il.Provider,{value:t},r)}function Gme(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let s=a.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id]));s>=0||$t(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,u,c)=>{let p=u.route.id?o==null?void 0:o[u.route.id]:null,f=null;n&&(f=u.route.errorElement||zme);let m=t.concat(a.slice(0,c+1)),g=()=>{let b;return p?b=f:u.route.Component?b=C.createElement(u.route.Component,null):u.route.element?b=u.route.element:b=s,C.createElement(jme,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:b})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?C.createElement(Hme,{location:n.location,revalidation:n.revalidation,component:f,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var Xy;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Xy||(Xy={}));var Op;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(Op||(Op={}));function Vme(e){let t=C.useContext(L2);return t||$t(!1),t}function Wme(e){let t=C.useContext(fB);return t||$t(!1),t}function qme(e){let t=C.useContext(Il);return t||$t(!1),t}function mB(e){let t=qme(),n=t.matches[t.matches.length-1];return n.route.id||$t(!1),n.route.id}function bB(){var e;let t=C.useContext(hB),n=Wme(Op.UseRouteError),r=mB(Op.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Kme(){let{router:e}=Vme(Xy.UseNavigateStable),t=mB(Op.UseNavigateStable),n=C.useRef(!1);return gB(()=>{n.current=!0}),C.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Np({fromRouteId:t},a)))},[e,t])}const Yme="startTransition",VR=Q4[Yme];function Xme(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=C.useState(n.state),{v7_startTransition:o}=r||{},s=C.useCallback(f=>{o&&VR?VR(()=>a(f)):a(f)},[a,o]);C.useLayoutEffect(()=>n.subscribe(s),[n,s]);let u=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,m,g)=>n.navigate(f,{state:m,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(f,m,g)=>n.navigate(f,{replace:!0,state:m,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[n]),c=n.basename||"/",p=C.useMemo(()=>({router:n,navigator:u,static:!1,basename:c}),[n,u,c]);return C.createElement(C.Fragment,null,C.createElement(L2.Provider,{value:p},C.createElement(fB.Provider,{value:i},C.createElement(Jme,{basename:c,location:i.location,navigationType:i.historyAction,navigator:u},i.initialized?C.createElement(Zme,{routes:n.routes,state:i}):t))),null)}function Zme(e){let{routes:t,state:n}=e;return Ume(t,void 0,n)}function Qme(e){return Pme(e.context)}function Jme(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Wn.Pop,navigator:a,static:o=!1}=e;P2()&&$t(!1);let s=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=Ro(r));let{pathname:c="/",search:p="",hash:f="",state:m=null,key:g="default"}=r,b=C.useMemo(()=>{let y=hf(c,s);return y==null?null:{location:{pathname:y,search:p,hash:f,state:m,key:g},navigationType:i}},[s,c,p,f,m,g,i]);return b==null?null:C.createElement(M2.Provider,{value:u},C.createElement(F2.Provider,{children:n,value:b}))}var WR;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(WR||(WR={}));new Promise(()=>{});function e2e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:C.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function t2e(e,t){return Sme({basename:t==null?void 0:t.basename,future:Np({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:qge({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:e2e}).initialize()}const n2e=Ge.div` display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; align-items: center; -`;function dge(){const e=cs(),[t,n]=ut.useState(""),r=C.useContext(Ya),i=us();return I.jsxs("div",{className:"p-4",children:[I.jsx("h3",{children:"Free Trial Limit Reached"}),I.jsxs("p",{children:["You've reached the free trial limit of 250 free inputs with Continue's OpenAI API key. To keep using Continue, you can either use your own API key, or use a local LLM. To read more about the options, see our"," ",I.jsx("a",{href:"https://continue.dev/docs/customization/models",target:"_blank",children:"documentation"}),". If you're just looking for fastest way to keep going, type '/config' to open your Continue config file and paste your API key into the OpenAIFreeTrial object."]}),I.jsx(ng,{type:"text",placeholder:"Enter your OpenAI API key",value:t,onChange:a=>n(a.target.value)}),I.jsxs(cge,{children:[I.jsx(op,{onClick:()=>{i(Q1(!1)),e("/models")},children:"Select model"}),I.jsx(op,{disabled:!t,onClick:()=>{r==null||r.addModelForRole("*","OpenAI",{model:"gpt-4",api_key:t,title:"GPT-4"}),i(Q1(!1))},children:"Use my API key"})]})]})}const pge=He.div` - border-radius: ${wt}; - cursor: ${e=>e.isDisabled?"not-allowed":"pointer"}; - padding: 8px 8px; - background-color: ${Lt}; - border: 1px solid transparent; - - display: flex; - justify-content: space-between; - align-items: center; - - color: ${e=>e.isDisabled?vt:Ht}; - - &:hover { - border: ${e=>e.isDisabled?"1px solid transparent":`1px solid ${vt}`}; - } -`,fge=He.p` - font-size: ${e=>e.fontSize}px; - margin: 0; -`;function hge(e){const[t,n]=C.useState(!1);return I.jsxs(I.Fragment,{children:[I.jsxs(pge,{"data-tooltip-id":`suggestion-disabled-${e.textInput.replace(" ","")}`,onClick:e.onClick,onMouseEnter:()=>{e.disabled||n(!0)},onMouseLeave:()=>n(!1),isDisabled:e.disabled,children:[I.jsx(fge,{fontSize:nr(),children:e.description}),I.jsx(ZY,{width:"1.6em",height:"1.6em",style:{opacity:t?1:0,backgroundColor:Lt,boxShadow:`1px 1px 10px ${Lt}`,borderRadius:wt}})]}),I.jsx(Gs,{id:`suggestion-disabled-${e.textInput.replace(" ","")}`,place:"bottom",hidden:!e.disabled,children:"Must highlight code first"})]})}const G0=[I.jsx("p",{children:"Ask a question"}),I.jsxs("p",{children:["1. Highlight code in the editor",I.jsx("br",{}),"2. Press ",localStorage.getItem("ide")==="jetbrains"?"cmd+J":"cmd+M"," ","to select the code",I.jsx("br",{}),"3. Ask a question"]}),I.jsxs("p",{children:["1. Highlight code in the editor",I.jsx("br",{}),"2. Press"," ",localStorage.getItem("ide")==="jetbrains"?"cmd+shift+J":"cmd+shift+M"," ","to select the code",I.jsx("br",{}),"3. Request an edit"]})],wh=[[{title:G0[1],description:"Is there any way to make this code more efficient?",textInput:"Is there any way to make this code more efficient?"},{title:G0[1],description:"What does this function do?",textInput:"What does this function do?"}],[{title:G0[2],description:"/edit write comments for this code",textInput:"/edit write comments for this code"},{title:G0[2],description:"/edit make this code more efficient",textInput:"/edit make this code more efficient"}]],WI=wh.length,gge=He.div` - margin: 4px; - margin-left: 8px; - margin-right: 8px; - position: relative; - background-color: #ff02; - border-radius: ${wt}; - padding: 8px 4px; -`;function mge(e){var m,g;const t=R7(),[n,r]=C.useState(parseInt(localStorage.getItem("stage")||"0")),i=zt(E=>E.serverState.history.timeline),a=zt(E=>{var b;return(b=E.serverState.session_info)==null?void 0:b.session_id}),o=zt(E=>E.serverState.selected_context_items.some(b=>b.description.id.provider_title==="code")),[s,u]=C.useState(!1);C.useEffect(()=>{u(!1)},[a]);const[c,p]=C.useState(0),f=C.useCallback(()=>i.filter(b=>!b.step.hide&&b.step.name==="User Input").length-c<=0,[i,c]);return I.jsx(I.Fragment,{children:s||n>WI-1||!f()||parseInt(localStorage.getItem("tutorialClosedCount")||"0")>0||I.jsxs(gge,{children:[I.jsxs("div",{className:"flex",children:[I.jsx(dD,{width:"1.3em",height:"1.3em",color:"yellow"}),I.jsxs("b",{className:"ml-1",children:["Tutorial (",n+1,"/",WI,")"]})]}),I.jsx("div",{style:{color:Ht,paddingLeft:"4px"},children:n{u(!0);const E=parseInt(localStorage.getItem("tutorialClosedCount")||"0");localStorage.setItem("tutorialClosedCount",(E+1).toString()),t==null||t.capture("tutorial_closed",{stage:n,tutorialClosedCount:E})},children:I.jsx(T2,{width:"1.2em",height:"1.2em"})}),I.jsx("div",{className:"grid grid-cols-2 gap-2 mt-2",children:(g=wh[n])==null?void 0:g.map((E,b)=>I.jsx(hge,{disabled:!o,...E,onClick:()=>{o&&(e.onClick(E.textInput),t==null||t.capture("tutorial_stage_complete",{stage:n}),r(n+1),localStorage.setItem("stage",(n+1).toString()),u(!0),p(T=>T+1))}},b))})]})})}const bge=He.div` +`;function r2e(){const e=bs(),[t,n]=ut.useState(""),r=C.useContext(to),i=eo();return I.jsxs("div",{className:"p-4",children:[I.jsx("h3",{children:"Free Trial Limit Reached"}),I.jsxs("p",{children:["You've reached the free trial limit of 250 free inputs with Continue's OpenAI API key. To keep using Continue, you can either use your own API key, or use a local LLM. To read more about the options, see our"," ",I.jsx("a",{href:"https://continue.dev/docs/customization/models",target:"_blank",children:"documentation"}),". If you're just looking for fastest way to keep going, type '/config' to open your Continue config file and paste your API key into the OpenAIFreeTrial object."]}),I.jsx(Ig,{type:"text",placeholder:"Enter your OpenAI API key",value:t,onChange:a=>n(a.target.value)}),I.jsxs(n2e,{children:[I.jsx(oc,{onClick:()=>{i(cc(!1)),e("/models")},children:"Select model"}),I.jsx(oc,{disabled:!t,onClick:()=>{r==null||r.addModelForRole("*","OpenAI",{model:"gpt-4",api_key:t,title:"GPT-4"}),i(cc(!1))},children:"Use my API key"})]})]})}const i2e=Ge.div` overflow-y: scroll; scrollbar-width: none; /* Firefox */ @@ -730,7 +706,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &::-webkit-scrollbar { display: none; } -`,Ege=He(ng)` +`,a2e=Ge(Ig)` border: none; outline: none; @@ -744,7 +720,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &:focus { outline: none; } -`,vge=He.div` +`,o2e=Ge.div` position: relative; background-color: transparent; @@ -756,45 +732,45 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho content: ""; position: absolute; height: calc(100% - 12px); - border-left: 2px solid ${vt}; + border-left: 2px solid ${Et}; left: 28px; z-index: 0; bottom: 12px; } -`,yge=He.div` - border-radius: ${wt}; +`;Ge.div` + border-radius: ${It}; color: gray; padding: 8px; margin: 8px; text-align: center; -`,_ge=He.div` +`;const s2e=Ge.div` display: flex; justify-content: space-between; align-items: center; padding: 4px; padding-left: 8px; padding-right: 8px; - border-bottom: 0.5px solid ${vt}; + border-bottom: 0.5px solid ${Et}; position: sticky; top: 0; z-index: 100; - background-color: ${Kt}; -`;function qI(e){var de,fe;const t=C.useContext(Ya),n=R7(),r=us(),i=cs(),a=zt(Z=>Z.serverState.history),o=zt(Z=>{var V;return(V=Z.serverState.config.models)==null?void 0:V.default}),s=zt(Z=>Z.misc.serverStatusMessage),u=zt(Z=>Z.serverState.user_input_queue),c=zt(Z=>{var V;return(V=Z.serverState.session_info)==null?void 0:V.title}),[p,f]=C.useState(!1),[m,g]=C.useState([]),[E,b]=C.useState(!0),[T,v]=C.useState(!0),y=C.useRef(null),w=C.useRef(null),A=C.useRef(null),D=zt(Z=>Z.uiState.bottomMessage),k=zt(Z=>Z.misc.takenAction);C.useEffect(()=>{A.current&&r(hpe(A.current.getBoundingClientRect().top{var V;const Z=()=>{var O,re;const N=((O=w.current)==null?void 0:O.scrollTop)||0,me=((re=w.current)==null?void 0:re.scrollHeight)||0,oe=window.innerHeight||0;N+oe+-25>=me?B(!1):B(!0)};return(V=w.current)==null||V.addEventListener("scroll",Z),()=>{window.removeEventListener("scroll",Z)}},[w.current]),C.useLayoutEffect(()=>{var Z,V;R||(V=w.current)==null||V.scrollTo({top:(Z=w.current)==null?void 0:Z.scrollHeight,behavior:"instant"})},[(de=w.current)==null?void 0:de.scrollHeight,a.timeline]),C.useEffect(()=>{const Z=V=>{var ce;V.key==="Backspace"&&tg(V)&&!V.shiftKey&&typeof(a==null?void 0:a.current_index)<"u"&&((ce=a.timeline[a.current_index])!=null&&ce.active)?t==null||t.deleteAtIndex(a.current_index):V.key==="Escape"&&r(au(void 0))};return window.addEventListener("keydown",Z),()=>{window.removeEventListener("keydown",Z)}},[t,a]),C.useEffect(()=>{t==null||t.onStateUpdate(Z=>{var ce;const V=Z.active&&Z.history.current_index{const me=[...N];for(let oe=me.length;oe{if(t&&E){b(!1);for(const Z of u)t.sendMainInput(Z)}},[t,u,E]);const W=Z=>{var V,ce;if(r(pd(null)),y.current){let N=y.current.inputValue;if(N.trim()==="")return;if(N.startsWith("#")&&(N.length===7||N.length===4)){localStorage.setItem("continueButtonColor",N),y.current.setInputValue("");return}if(Z&&tg(Z)&&(N=`/edit ${N}`),y.current.setInputValue(""),!t){r(efe(N));return}if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!N.startsWith("/")||N.startsWith("/edit"))){const oe=localStorage.getItem("ftc");if(oe){const O=parseInt(oe);if(localStorage.setItem("ftc",(O+1).toString()),O>=250){r(Q1(!0)),r(X3(I.jsx(dge,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}if(f(!0),a&&a.current_index>=0&&a.current_index{O.preventDefault(),n==null||n.capture("user_interest_form",{name:O.target.elements[0].value,email:O.target.elements[1].value}),r(X3(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(fpe(!1)),r(Q1(!0)))}else localStorage.setItem("mainTextEntryCounter","1")}},P=(Z,V)=>{t&&t.sendStepUserInput(Z,V)},Q=C.useCallback(Z=>{const V=[];let ce=-1;for(let N=Z;N>=0;N--)if((a==null?void 0:a.timeline.length)>N&&a.timeline[N].step.name==="User Input"&&a.timeline[N].step.hide===!1){V.push(N),ce=N;break}if(V.length===0)return[];for(let N=ce+1;N<(a==null?void 0:a.timeline.length)&&!((a==null?void 0:a.timeline.length)>N&&a.timeline[N].step.name==="User Input"&&a.timeline[N].step.hide===!1);N++)V.push(N);return V},[a.timeline]),z=C.useCallback(Z=>{const V=Q(Z),ce=V[0];g(N=>{const me=[...N];return me[Z]=!me[Z],!V.some((O,re)=>re>0&&me[O])?me[ce]=!1:!V.some((re,Te)=>Te>0&&!me[re])&&(me[ce]=!0),me})},[Q]);C.useEffect(()=>{c&&he(c)},[c]);const[le,he]=C.useState(c||"New Session");return I.jsxs(bge,{ref:w,onKeyDown:Z=>{Z.key==="Enter"&&Z.ctrlKey&&W()},children:[I.jsxs(_ge,{children:[I.jsx(Ege,{onClick:Z=>{Z.target.setSelectionRange(0,Z.target.value.length)},value:le,onChange:Z=>he(Z.target.value),onBlur:Z=>{Z.target.value===c||typeof c>"u"&&Z.target.value==="New Session"||t==null||t.setCurrentSessionTitle(Z.target.value)},onKeyDown:Z=>{Z.key==="Enter"?(Z.preventDefault(),Z.target.blur()):Z.key==="Escape"&&(he(c||"New Session"),Z.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[a.timeline.filter(Z=>!Z.step.hide).length>0&&I.jsx(vi,{onClick:()=>{a.timeline.filter(Z=>!Z.step.hide).length>0&&(r(sm(!1)),t==null||t.loadSession(void 0))},text:"New Session (⌥⌘N)",children:I.jsx(cD,{width:"1.4em",height:"1.4em"})}),I.jsx(vi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(UY,{width:"1.4em",height:"1.4em"})})]})]}),(k||T)&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(Y0e,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{rl("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(mge,{onClick:Z=>{t==null||t.sendMainInput(Z)}}),I.jsx(vge,{children:a==null?void 0:a.timeline.map((Z,V)=>{var ce,N,me;return Z.step.hide?null:I.jsx(C.Fragment,{children:Z.step.name==="User Input"?Z.step.hide||I.jsx(Zk,{isMainInput:!1,value:Z.step.description,active:Q(V).some(oe=>a.timeline[oe].active)||a.timeline[V].active,onEnter:(oe,O)=>{O&&(t==null||t.editStepAtIndex(O,V)),oe==null||oe.stopPropagation(),oe==null||oe.preventDefault()},groupIndices:Q(V),onToggle:oe=>{g(O=>{const re=[...O];return Q(V).forEach(Te=>{re[Te]=oe}),re})},onToggleAll:oe=>{g(O=>O.map(re=>oe))},isToggleOpen:typeof m[V]>"u"?!0:m[V],index:V,onDelete:()=>{Q(V).forEach(oe=>{t==null||t.deleteAtIndex(oe)})}}):I.jsx(Q0e,{historyNode:Z,iconElement:Z.step.class_name==="DefaultModelEditCodeStep"?I.jsx(NY,{width:"16px",height:"16px"}):(ce=Z.observation)!=null&&ce.error?I.jsx(lD,{width:"16px",height:"16px",color:"red"}):I.jsx(sD,{width:"16px",height:"16px"}),open:typeof m[V]>"u"?!((N=Z.observation)!=null&&N.error):m[V],onToggle:()=>z(V),children:(me=Z.observation)!=null&&me.error?I.jsx(ehe,{onClose:()=>z(V),historyNode:Z,onDelete:()=>t==null?void 0:t.deleteAtIndex(V)}):I.jsx(Kse,{index:V,isLast:V===a.timeline.length-1,isFirst:V===0,open:typeof m[V]>"u"?!0:m[V],onUserInput:oe=>{P(oe,V)},inFuture:V>(a==null?void 0:a.current_index),historyNode:Z,onReverse:()=>{t==null||t.reverseToIndex(V)},onRetry:()=>{t==null||t.retryAtIndex(V),f(!0)},onDelete:()=>{t==null||t.deleteAtIndex(V)},noUserInputParent:Q(V).length===0},V)})},V)})}),I.jsx("div",{children:(fe=u==null?void 0:u.map)==null?void 0:fe.call(u,(Z,V)=>I.jsx(yge,{children:Z},V))}),I.jsx("div",{ref:A}),I.jsx(Zk,{isMainInput:!0,ref:y,onEnter:(Z,V)=>{W(Z),Z==null||Z.stopPropagation(),Z==null||Z.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const Tge=He.div` + background-color: ${Ht}; +`;function l2e({error:e,resetErrorBoundary:t}){return I.jsxs("div",{role:"alert",children:[I.jsx("p",{children:"Something went wrong:"}),I.jsx("pre",{style:{color:"red"},children:e.message}),I.jsx(oc,{onClick:t,children:"Restart"})]})}function qR(e){var ce,De;const t=C.useContext(to),n=Bge(),r=eo(),i=bs(),a=zt(H=>H.sessionState),o=zt(H=>{var W;return(W=H.serverState.config.models)==null?void 0:W.default}),s=zt(H=>H.misc.serverStatusMessage),u=zt(H=>H.sessionState.title),c=zt(H=>H.sessionState.active),[p,f]=C.useState(!1),[m,g]=C.useState([]);C.useState(!0);const[b,y]=C.useState(!1);C.useEffect(()=>{setTimeout(()=>{y(!0)},5e3)},[]);const T=C.useRef(null),E=C.useRef(null),v=C.useRef(null),w=zt(H=>H.uiState.bottomMessage),A=zt(H=>H.misc.takenAction);C.useEffect(()=>{v.current&&r(W0e(v.current.getBoundingClientRect().top{var W;const H=()=>{var L,ie;const D=((L=E.current)==null?void 0:L.scrollTop)||0,pe=((ie=E.current)==null?void 0:ie.scrollHeight)||0,le=window.innerHeight||0;D+le+-25>=pe?k(!1):k(!0)};return(W=E.current)==null||W.addEventListener("scroll",H),()=>{window.removeEventListener("scroll",H)}},[E.current]),C.useLayoutEffect(()=>{var H,W;R||(W=E.current)==null||W.scrollTo({top:(H=E.current)==null?void 0:H.scrollHeight,behavior:"instant"})},[(ce=E.current)==null?void 0:ce.scrollHeight,a.history]),C.useEffect(()=>{const H=W=>{W.key==="Backspace"&&xg(W)&&!W.shiftKey?(t==null||t.stopSession(),r(Zd(!1))):W.key==="Escape"&&r(pu(void 0))};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[t,c]);const N=C.useCallback(H=>{if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!H.startsWith("/")||H.startsWith("/edit"))){const pe=localStorage.getItem("ftc");if(pe){const le=parseInt(pe);if(localStorage.setItem("ftc",(le+1).toString()),le>=250){r(cc(!0)),r(C4(I.jsx(r2e,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}f(!0);const W=[...a.history,{name:"User Input",description:H,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:H},hide:!1,depth:0}],se={history:W,context_items:a.context_items};for(let pe of a.context_items)r(SP({item:pe,index:W.length-1}));t.runFromState(se),W.push({name:"Generating Response...",description:" ",observations:[],logs:[],step_type:"SimpleChatStep",params:{},hide:!1,depth:0}),r(KI(W)),r(Zd(!0));const D=localStorage.getItem("mainTextEntryCounter");if(D){let pe=parseInt(D);localStorage.setItem("mainTextEntryCounter",(pe+1).toString()),pe===300&&(r(C4(I.jsxs("div",{className:"text-center p-4",children:["👋 Thanks for using Continue. We are a beta product and love working closely with our first users. If you're interested in speaking, enter your name and email. We won't use this information for anything other than reaching out.",I.jsx("br",{}),I.jsx("br",{}),I.jsxs("form",{onSubmit:le=>{le.preventDefault(),n==null||n.capture("user_interest_form",{name:le.target.elements[0].value,email:le.target.elements[1].value}),r(C4(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(V0e(!1)),r(cc(!0)))}else localStorage.setItem("mainTextEntryCounter","1")},[t,a.history,a.context_items]);C.useEffect(()=>{const H=W=>{W.data.type==="userInput"&&N(W.data.input)};return window.addEventListener("message",H),()=>window.removeEventListener("message",H)},[N]);const B=H=>{if(r(Ad(null)),T.current&&t){let W=T.current.inputValue;if(W.trim()==="")return;if(W.startsWith("#")&&(W.length===7||W.length===4)){localStorage.setItem("continueButtonColor",W),T.current.setInputValue("");return}H&&xg(H)&&(W=`/edit ${W}`),T.current.setInputValue(""),N(W)}},q=(H,W)=>{t&&t.sendStepUserInput(H,W)},P=C.useCallback(H=>{let W=!1;for(let se=H+1;se{const W=[];let se=-1;for(let D=H;D>=0;D--)if(typeof a.history[D]<"u"&&a.history[D].name==="User Input"&&a.history[D].hide===!1){W.push(D),se=D;break}if(W.length===0)return[];for(let D=se+1;D{const W=Q(H),se=W[0];g(D=>{const pe=[...D];return pe[H]=!pe[H],!W.some((L,ie)=>ie>0&&pe[L])?pe[se]=!1:!W.some((ie,Se)=>Se>0&&!pe[ie])&&(pe[se]=!0),pe})},[Q]);C.useEffect(()=>{u&&fe(u)},[u]);const[oe,fe]=C.useState(u||"New Session");return I.jsxs(i2e,{ref:E,onKeyDown:H=>{H.key==="Enter"&&H.ctrlKey&&B()},children:[I.jsxs(s2e,{children:[I.jsx(a2e,{onClick:H=>{H.target.setSelectionRange(0,H.target.value.length)},value:oe,onChange:H=>fe(H.target.value),onBlur:H=>{H.target.value===u||typeof u>"u"&&H.target.value==="New Session"||r(wP(H.target.value))},onKeyDown:H=>{H.key==="Enter"?(H.preventDefault(),H.target.blur()):H.key==="Escape"&&(fe(u||"New Session"),H.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[I.jsx(zi,{onClick:()=>{t==null||t.stopSession(),r(uc())},text:"New Session (⌥⌘N)",children:I.jsx(CL,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(OZ,{width:"1.4em",height:"1.4em"})})]})]}),A&&b&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(zge,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{qa("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(o2e,{children:(De=a==null?void 0:a.history)==null?void 0:De.map((H,W)=>H.hide?null:I.jsx(C.Fragment,{children:I.jsx(WX,{FallbackComponent:l2e,onReset:()=>{t==null||t.stopSession(),r(uc())},children:H.name==="User Input"?H.hide||I.jsx(QI,{isMainInput:!1,value:H.description,active:c&&P(W),onEnter:(se,D)=>{if(D){t==null||t.stopSession();const pe=[...a.history.slice(0,W),{name:"User Input",description:D,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:D},hide:!1,depth:0}];r(KI(pe)),r(Zd(!0));const le={history:pe,context_items:a.context_items};console.log("State: ",le),t.runFromState(le)}se==null||se.stopPropagation(),se==null||se.preventDefault()},groupIndices:Q(W),onToggle:se=>{g(D=>{const pe=[...D];return Q(W).forEach(le=>{pe[le]=se}),pe})},onToggleAll:se=>{g(D=>D.map(pe=>se))},isToggleOpen:typeof m[W]>"u"?!0:m[W],index:W,onDelete:()=>{Q(W).forEach(se=>{console.log(se),r(S4(se))})}}):I.jsx(Gge,{historyNode:H,iconElement:H.step_type==="DefaultModelEditCodeStep"?I.jsx(wZ,{width:"16px",height:"16px"}):H.error?I.jsx(wL,{width:"16px",height:"16px",color:"red"}):I.jsx(SL,{width:"16px",height:"16px"}),open:typeof m[W]>"u"?!H.error:m[W],onToggle:()=>$(W),children:H.error?I.jsx(Wge,{onClose:()=>$(W),error:H.error,onDelete:()=>{r(S4(W))}}):I.jsx(Uue,{index:W,isLast:W===a.history.length-1,isFirst:W===0,open:typeof m[W]>"u"?!0:m[W],onUserInput:se=>{q(se,W)},step:H,onReverse:()=>{t==null||t.reverseToIndex(W)},onRetry:()=>{t==null||t.retryAtIndex(W),f(!0)},onDelete:()=>{r(S4(W))},noUserInputParent:Q(W).length===0},W)})})},W))}),I.jsx("div",{ref:v}),I.jsx(QI,{isMainInput:!0,ref:T,onEnter:(H,W)=>{B(H),H==null||H.stopPropagation(),H==null||H.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const u2e=Ge.div` display: flex; flex-direction: row; align-items: center; justify-content: center; padding: 0.5rem; - border-radius: ${wt}; + border-radius: ${It}; cursor: pointer; - border: 1px solid ${Ht}; + border: 1px solid ${Yt}; - color: ${Ht}; - background-color: ${Kt}; + color: ${Yt}; + background-color: ${Ht}; &:hover { - background-color: ${Ht}; - color: ${Kt}; + background-color: ${Yt}; + color: ${Ht}; } width: fit-content; @@ -803,31 +779,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho overflow: hidden; text-overflow: ellipsis; -`;function Sge(e){const{title:t,checked:n,onClick:r}=e;return I.jsxs(Tge,{onClick:r,checked:n,children:[n&&I.jsx(vY,{width:"1.4em",height:"1.4em"}),t]})}const wge=He.tr` +`;function c2e(e){const{title:t,checked:n,onClick:r}=e;return I.jsxs(u2e,{onClick:r,checked:n,children:[n&&I.jsx(pZ,{width:"1.4em",height:"1.4em"}),t]})}const d2e=Ge.tr` &:hover { - background-color: ${Lt}; + background-color: ${Vt}; } overflow-wrap: anywhere; - border-bottom: 1px solid ${Lt}; - border-top: 1px solid ${Lt}; -`,V0=e=>{let t=new Date(e);return isNaN(t.getTime())&&(t=new Date(parseInt(e)*1e3)),t},s4=He.tr` + border-bottom: 1px solid ${Vt}; + border-top: 1px solid ${Vt}; +`,oh=e=>{let t=new Date(e);return isNaN(t.getTime())&&(t=new Date(parseInt(e)*1e3)),t},F4=Ge.tr` padding: 4px; padding-left: 16px; padding-right: 16px; - background-color: ${Lt}; + background-color: ${Vt}; width: 100%; font-weight: bold; text-align: center; margin: 0; -`,Age=He.div` +`,p2e=Ge.div` cursor: pointer; padding-left: 1rem; padding-right: 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem; -`;function KI(e){const t=e.includes("/")?"/":"\\";return e.split(t).pop()||e}function Cge(){const e=cs(),t=us(),[n,r]=C.useState([]),[i,a]=C.useState([]),o=C.useContext(Ya),s=zt(b=>b.config.apiUrl),u=zt(b=>b.config.workspacePaths),[c,p]=C.useState(!1);C.useEffect(()=>{(async()=>{if(!s)return;const T=await fetch(`${s}/sessions/list`);if(!T.ok)throw new Error(`HTTP error! status: ${T.status}`);const v=await T.json();r(v)})()},[o]),C.useEffect(()=>{a(n.filter(b=>!c||typeof u>"u"||typeof b.workspace_directory>"u"?!0:u.includes(b.workspace_directory)).sort((b,T)=>V0(T.date_created).getTime()-V0(b.date_created).getTime()))},[c,n]);const f=new Date(Date.now()-1e3*60*60*24),m=new Date(Date.now()-1e3*60*60*24*7),g=new Date(Date.now()-1e3*60*60*24*30),E=new Date(0);return I.jsxs("div",{className:"overflow-y-scroll",style:{fontSize:nr()},children:[I.jsxs("div",{className:"sticky top-0",style:{backgroundColor:Kt},children:[I.jsxs("div",{className:"items-center flex m-0 p-0",style:{borderBottom:`0.5px solid ${vt}`},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"History"})]}),u&&u.length>0&&I.jsx(Sge,{checked:c,onClick:()=>p(b=>!b),title:`Show only sessions from ${KI(u[u.length-1])}/`})]}),n.filter(b=>!c||typeof u>"u"||typeof b.workspace_directory>"u"?!0:u.includes(b.workspace_directory)).length===0&&I.jsxs("div",{className:"text-center m-4",children:['No past sessions found. To start a new session, either click the "+" button or use the keyboard shortcut: ',I.jsx("b",{children:"Option + Command + N"})]}),I.jsxs("div",{children:[I.jsx("table",{className:"w-full border-spacing-0 border-collapse",children:I.jsx("tbody",{children:i.map((b,T)=>{const v=T>0?V0(i[T-1].date_created):E,y=V0(b.date_created);return I.jsxs(C.Fragment,{children:[T===0&&y>f&&I.jsx(s4,{children:"Today"}),ym&&v>f&&I.jsx(s4,{children:"This Week"}),yg&&v>m&&I.jsx(s4,{children:"This Month"}),I.jsx(wge,{children:I.jsx("td",{children:I.jsxs(Age,{onClick:()=>{o==null||o.loadSession(b.session_id),t(sm(!0)),e("/")},children:[I.jsx("div",{className:"text-md",children:b.title}),I.jsxs("div",{className:"text-gray-400",children:[y.toLocaleString("en-US",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"numeric",minute:"2-digit",hour12:!0})," | ",KI(b.workspace_directory||""),"/"]})]})})},T)]},T)})})}),I.jsx("br",{}),I.jsx("i",{className:"text-sm ml-4",children:"All session data is saved in ~/.continue/sessions"})]})]})}const xge=He.div` +`;function KR(e){const t=e.includes("/")?"/":"\\";return e.split(t).pop()||e}function f2e(){const e=bs(),t=eo(),[n,r]=C.useState([]),[i,a]=C.useState([]),o=C.useContext(to),s=zt(E=>E.config.apiUrl),u=zt(E=>E.config.workspacePaths),c=zt(E=>E.sessionState),p=zt(E=>{var v;return((v=E.config.workspacePaths)==null?void 0:v[0])||""}),[f,m]=C.useState(!1);C.useEffect(()=>{(async()=>{if(!s)return;const v=await fetch(`${s}/sessions/list`);if(!v.ok)throw new Error(`HTTP error! status: ${v.status}`);const w=await v.json();r(w)})()},[o]),C.useEffect(()=>{a(n.filter(E=>!f||typeof u>"u"||typeof E.workspace_directory>"u"?!0:u.includes(E.workspace_directory)).sort((E,v)=>oh(v.date_created).getTime()-oh(E.date_created).getTime()))},[f,n]);const g=new Date(Date.now()-1e3*60*60*24),b=new Date(Date.now()-1e3*60*60*24*7),y=new Date(Date.now()-1e3*60*60*24*30),T=new Date(0);return I.jsxs("div",{className:"overflow-y-scroll",style:{fontSize:pr()},children:[I.jsxs("div",{className:"sticky top-0",style:{backgroundColor:Ht},children:[I.jsxs("div",{className:"items-center flex m-0 p-0",style:{borderBottom:`0.5px solid ${Et}`},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"History"})]}),u&&u.length>0&&I.jsx(c2e,{checked:f,onClick:()=>m(E=>!E),title:`Show only sessions from ${KR(u[u.length-1])}/`})]}),n.filter(E=>!f||typeof u>"u"||typeof E.workspace_directory>"u"?!0:u.includes(E.workspace_directory)).length===0&&I.jsxs("div",{className:"text-center m-4",children:['No past sessions found. To start a new session, either click the "+" button or use the keyboard shortcut: ',I.jsx("b",{children:"Option + Command + N"})]}),I.jsxs("div",{children:[I.jsx("table",{className:"w-full border-spacing-0 border-collapse",children:I.jsx("tbody",{children:i.map((E,v)=>{const w=v>0?oh(i[v-1].date_created):T,A=oh(E.date_created);return I.jsxs(C.Fragment,{children:[v===0&&A>g&&I.jsx(F4,{children:"Today"}),Ab&&w>g&&I.jsx(F4,{children:"This Week"}),Ay&&w>b&&I.jsx(F4,{children:"This Month"}),I.jsx(d2e,{children:I.jsx("td",{children:I.jsxs(p2e,{onClick:async()=>{const R={session_state:{history:c.history,context_items:c.context_items},title:c.title,workspace_directory:p,session_id:c.session_id};console.log(R),await fetch(`${s}/sessions/save`,{method:"POST",body:JSON.stringify(R),headers:{"Content-Type":"application/json"}});const k=await fetch(`${s}/sessions/${E.session_id}`);if(!k.ok)throw new Error(`HTTP error! status: ${k.status}`);const N=await k.json();o==null||o.stopSession(),t(uc(N)),e("/")},children:[I.jsx("div",{className:"text-md",children:E.title}),I.jsxs("div",{className:"text-gray-400",children:[A.toLocaleString("en-US",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"numeric",minute:"2-digit",hour12:!0})," | ",KR(E.workspace_directory||""),"/"]})]})})},v)]},v)})})}),I.jsx("br",{}),I.jsx("i",{className:"text-sm ml-4",children:"All session data is saved in ~/.continue/sessions"})]})]})}const h2e=Ge.div` display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-gap: 2rem; @@ -835,12 +811,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho justify-items: center; align-items: center; - border-top: 0.5px solid ${vt}; -`,kge=He.div` - border: 0.5px solid ${vt}; - border-radius: ${wt}; + border-top: 0.5px solid ${Et}; +`,g2e=Ge.div` + border: 0.5px solid ${Et}; + border-radius: ${It}; padding: 4px; - color: ${Ht}; + color: ${Yt}; width: 16px; height: 16px; @@ -848,7 +824,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho display: flex; justify-content: center; align-items: center; -`;function Ige(e){const t=_2()==="windows"?e.windows:e.mac;return I.jsxs("div",{className:"flex justify-between w-full items-center",children:[I.jsx("span",{style:{color:Ht},children:e.description}),I.jsx("div",{className:"flex gap-2 float-right",children:t.split(" ").map(n=>I.jsx(kge,{children:n}))})]})}const Rge=[{mac:"⌘ M",windows:"⌃ M",description:"Ask about Highlighted Code"},{mac:"⌘ ⇧ M",windows:"⌃ ⇧ M",description:"Edit Highlighted Code"},{mac:"⌘ ⇧ ↵",windows:"⌃ ⇧ ↵",description:"Accept Diff"},{mac:"⌘ ⇧ ⌫",windows:"⌃ ⇧ ⌫",description:"Reject Diff"},{mac:"⌘ ⇧ L",windows:"⌃ ⇧ L",description:"Quick Text Entry"},{mac:"⌥ ⌘ M",windows:"⌥ ⌃ M",description:"Toggle Auxiliary Bar"},{mac:"⌘ ⇧ R",windows:"⌃ ⇧ R",description:"Debug Terminal"},{mac:"⌥ ⌘ N",windows:"⌥ ⌃ N",description:"New Session"},{mac:"⌘ ⌫",windows:"⌃ ⌫",description:"Stop Active Step"}],Nge=[{mac:"⌘ J",windows:"⌃ J",description:"Ask about Highlighted Code"},{mac:"⌘ ⇧ J",windows:"⌃ ⇧ J",description:"Edit Highlighted Code"},{mac:"⌘ ⇧ ↵",windows:"⌃ ⇧ ↵",description:"Accept Diff"},{mac:"⌘ ⇧ ⌫",windows:"⌃ ⇧ ⌫",description:"Reject Diff"},{mac:"⌥ ⇧ J",windows:"⌥ ⇧ J",description:"Quick Text Entry"},{mac:"⌥ ⌘ J",windows:"⌥ ⌃ J",description:"Toggle Auxiliary Bar"},{mac:"⌘ ⌃ N",windows:"⌥ ⌃ N",description:"New Session"},{mac:"⌘ ⌫",windows:"⌃ ⌫",description:"Stop Active Step"}];function Oge(){return I.jsxs("div",{className:"p-2",children:[I.jsx("h3",{className:"my-3 mx-auto text-center",children:"Keyboard Shortcuts"}),I.jsx(xge,{children:(localStorage.getItem("ide")==="jetbrains"?Nge:Rge).map(e=>I.jsx(Ige,{mac:e.mac,windows:e.windows,description:e.description}))})]})}const W0=He.div` +`;function m2e(e){const t=Km()==="windows"?e.windows:e.mac;return I.jsxs("div",{className:"flex justify-between w-full items-center",children:[I.jsx("span",{style:{color:Yt},children:e.description}),I.jsx("div",{className:"flex gap-2 float-right",children:t.split(" ").map(n=>I.jsx(g2e,{children:n}))})]})}const b2e=[{mac:"⌘ M",windows:"⌃ M",description:"Ask about Highlighted Code"},{mac:"⌘ ⇧ M",windows:"⌃ ⇧ M",description:"Edit Highlighted Code"},{mac:"⌘ ⇧ ↵",windows:"⌃ ⇧ ↵",description:"Accept Diff"},{mac:"⌘ ⇧ ⌫",windows:"⌃ ⇧ ⌫",description:"Reject Diff"},{mac:"⌘ ⇧ L",windows:"⌃ ⇧ L",description:"Quick Text Entry"},{mac:"⌥ ⌘ M",windows:"⌥ ⌃ M",description:"Toggle Auxiliary Bar"},{mac:"⌘ ⇧ R",windows:"⌃ ⇧ R",description:"Debug Terminal"},{mac:"⌥ ⌘ N",windows:"⌥ ⌃ N",description:"New Session"},{mac:"⌘ ⌫",windows:"⌃ ⌫",description:"Stop Active Step"}],y2e=[{mac:"⌘ J",windows:"⌃ J",description:"Ask about Highlighted Code"},{mac:"⌘ ⇧ J",windows:"⌃ ⇧ J",description:"Edit Highlighted Code"},{mac:"⌘ ⇧ ↵",windows:"⌃ ⇧ ↵",description:"Accept Diff"},{mac:"⌘ ⇧ ⌫",windows:"⌃ ⇧ ⌫",description:"Reject Diff"},{mac:"⌥ ⇧ J",windows:"⌥ ⇧ J",description:"Quick Text Entry"},{mac:"⌥ ⌘ J",windows:"⌥ ⌃ J",description:"Toggle Auxiliary Bar"},{mac:"⌘ ⌃ N",windows:"⌥ ⌃ N",description:"New Session"},{mac:"⌘ ⌫",windows:"⌃ ⌫",description:"Stop Active Step"}];function E2e(){return I.jsxs("div",{className:"p-2",children:[I.jsx("h3",{className:"my-3 mx-auto text-center",children:"Keyboard Shortcuts"}),I.jsx(h2e,{children:(localStorage.getItem("ide")==="jetbrains"?y2e:b2e).map(e=>I.jsx(m2e,{mac:e.mac,windows:e.windows,description:e.description}))})]})}const sh=Ge.div` display: flex; align-items: center; justify-content: center; @@ -858,60 +834,60 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho padding: 0 4px; &:hover { - background-color: ${e=>e.backgroundColor||vt}; + background-color: ${e=>e.backgroundColor||Et}; } -`;function YI(){const e=cs();return I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Help Center"})]}),I.jsxs("div",{className:"grid grid-cols-2 grid-rows-2",children:[I.jsx(W0,{backgroundColor:"rgb(234, 51, 35)",children:I.jsx("a",{href:"https://youtu.be/3Ocrc-WX4iQ?si=eDLYtkc6CXQoHsEc",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5.2 -4.5 60 60",fill:Ht,className:"w-full h-full",children:I.jsx("path",{d:"M 44.898438 14.5 C 44.5 12.300781 42.601563 10.699219 40.398438 10.199219 C 37.101563 9.5 31 9 24.398438 9 C 17.800781 9 11.601563 9.5 8.300781 10.199219 C 6.101563 10.699219 4.199219 12.199219 3.800781 14.5 C 3.398438 17 3 20.5 3 25 C 3 29.5 3.398438 33 3.898438 35.5 C 4.300781 37.699219 6.199219 39.300781 8.398438 39.800781 C 11.898438 40.5 17.898438 41 24.5 41 C 31.101563 41 37.101563 40.5 40.601563 39.800781 C 42.800781 39.300781 44.699219 37.800781 45.101563 35.5 C 45.5 33 46 29.398438 46.101563 25 C 45.898438 20.5 45.398438 17 44.898438 14.5 Z M 19 32 L 19 18 L 31.199219 25 Z"})})})}),I.jsx(W0,{backgroundColor:da,children:I.jsx("a",{href:"https://continue.dev/docs/how-to-use-continue",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2.2 -2 28 28",fill:Ht,className:"w-full h-full flex items-center justify-center",children:I.jsx("path",{d:"M11.25 4.533A9.707 9.707 0 006 3a9.735 9.735 0 00-3.25.555.75.75 0 00-.5.707v14.25a.75.75 0 001 .707A8.237 8.237 0 016 18.75c1.995 0 3.823.707 5.25 1.886V4.533zM12.75 20.636A8.214 8.214 0 0118 18.75c.966 0 1.89.166 2.75.47a.75.75 0 001-.708V4.262a.75.75 0 00-.5-.707A9.735 9.735 0 0018 3a9.707 9.707 0 00-5.25 1.533v16.103z"})})})}),I.jsx(W0,{backgroundColor:"rgb(88, 98, 227)",children:I.jsx("a",{href:"https://discord.gg/vapESyrFmJ",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5 -5.5 60 60",fill:Ht,className:"w-full h-full",children:I.jsx("path",{d:"M 41.625 10.769531 C 37.644531 7.566406 31.347656 7.023438 31.078125 7.003906 C 30.660156 6.96875 30.261719 7.203125 30.089844 7.589844 C 30.074219 7.613281 29.9375 7.929688 29.785156 8.421875 C 32.417969 8.867188 35.652344 9.761719 38.578125 11.578125 C 39.046875 11.867188 39.191406 12.484375 38.902344 12.953125 C 38.710938 13.261719 38.386719 13.429688 38.050781 13.429688 C 37.871094 13.429688 37.6875 13.378906 37.523438 13.277344 C 32.492188 10.15625 26.210938 10 25 10 C 23.789063 10 17.503906 10.15625 12.476563 13.277344 C 12.007813 13.570313 11.390625 13.425781 11.101563 12.957031 C 10.808594 12.484375 10.953125 11.871094 11.421875 11.578125 C 14.347656 9.765625 17.582031 8.867188 20.214844 8.425781 C 20.0625 7.929688 19.925781 7.617188 19.914063 7.589844 C 19.738281 7.203125 19.34375 6.960938 18.921875 7.003906 C 18.652344 7.023438 12.355469 7.566406 8.320313 10.8125 C 6.214844 12.761719 2 24.152344 2 34 C 2 34.175781 2.046875 34.34375 2.132813 34.496094 C 5.039063 39.605469 12.972656 40.941406 14.78125 41 C 14.789063 41 14.800781 41 14.8125 41 C 15.132813 41 15.433594 40.847656 15.621094 40.589844 L 17.449219 38.074219 C 12.515625 36.800781 9.996094 34.636719 9.851563 34.507813 C 9.4375 34.144531 9.398438 33.511719 9.765625 33.097656 C 10.128906 32.683594 10.761719 32.644531 11.175781 33.007813 C 11.234375 33.0625 15.875 37 25 37 C 34.140625 37 38.78125 33.046875 38.828125 33.007813 C 39.242188 32.648438 39.871094 32.683594 40.238281 33.101563 C 40.601563 33.515625 40.5625 34.144531 40.148438 34.507813 C 40.003906 34.636719 37.484375 36.800781 32.550781 38.074219 L 34.378906 40.589844 C 34.566406 40.847656 34.867188 41 35.1875 41 C 35.199219 41 35.210938 41 35.21875 41 C 37.027344 40.941406 44.960938 39.605469 47.867188 34.496094 C 47.953125 34.34375 48 34.175781 48 34 C 48 24.152344 43.785156 12.761719 41.625 10.769531 Z M 18.5 30 C 16.566406 30 15 28.210938 15 26 C 15 23.789063 16.566406 22 18.5 22 C 20.433594 22 22 23.789063 22 26 C 22 28.210938 20.433594 30 18.5 30 Z M 31.5 30 C 29.566406 30 28 28.210938 28 26 C 28 23.789063 29.566406 22 31.5 22 C 33.433594 22 35 23.789063 35 26 C 35 28.210938 33.433594 30 31.5 30 Z"})})})}),I.jsx(W0,{children:I.jsx("a",{href:"https://github.com/continuedev/continue/issues/new/choose",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-1.2 -1.2 32 32",fill:Ht,className:"w-full h-full",children:I.jsx("path",{d:"M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"})})})})]}),I.jsx(Oge,{})]})}const Dge=He.div` +`;function YR(){const e=bs();return I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Help Center"})]}),I.jsxs("div",{className:"grid grid-cols-2 grid-rows-2",children:[I.jsx(sh,{backgroundColor:"rgb(234, 51, 35)",children:I.jsx("a",{href:"https://youtu.be/3Ocrc-WX4iQ?si=eDLYtkc6CXQoHsEc",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5.2 -4.5 60 60",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M 44.898438 14.5 C 44.5 12.300781 42.601563 10.699219 40.398438 10.199219 C 37.101563 9.5 31 9 24.398438 9 C 17.800781 9 11.601563 9.5 8.300781 10.199219 C 6.101563 10.699219 4.199219 12.199219 3.800781 14.5 C 3.398438 17 3 20.5 3 25 C 3 29.5 3.398438 33 3.898438 35.5 C 4.300781 37.699219 6.199219 39.300781 8.398438 39.800781 C 11.898438 40.5 17.898438 41 24.5 41 C 31.101563 41 37.101563 40.5 40.601563 39.800781 C 42.800781 39.300781 44.699219 37.800781 45.101563 35.5 C 45.5 33 46 29.398438 46.101563 25 C 45.898438 20.5 45.398438 17 44.898438 14.5 Z M 19 32 L 19 18 L 31.199219 25 Z"})})})}),I.jsx(sh,{backgroundColor:ha,children:I.jsx("a",{href:"https://continue.dev/docs/how-to-use-continue",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2.2 -2 28 28",fill:Yt,className:"w-full h-full flex items-center justify-center",children:I.jsx("path",{d:"M11.25 4.533A9.707 9.707 0 006 3a9.735 9.735 0 00-3.25.555.75.75 0 00-.5.707v14.25a.75.75 0 001 .707A8.237 8.237 0 016 18.75c1.995 0 3.823.707 5.25 1.886V4.533zM12.75 20.636A8.214 8.214 0 0118 18.75c.966 0 1.89.166 2.75.47a.75.75 0 001-.708V4.262a.75.75 0 00-.5-.707A9.735 9.735 0 0018 3a9.707 9.707 0 00-5.25 1.533v16.103z"})})})}),I.jsx(sh,{backgroundColor:"rgb(88, 98, 227)",children:I.jsx("a",{href:"https://discord.gg/vapESyrFmJ",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5 -5.5 60 60",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M 41.625 10.769531 C 37.644531 7.566406 31.347656 7.023438 31.078125 7.003906 C 30.660156 6.96875 30.261719 7.203125 30.089844 7.589844 C 30.074219 7.613281 29.9375 7.929688 29.785156 8.421875 C 32.417969 8.867188 35.652344 9.761719 38.578125 11.578125 C 39.046875 11.867188 39.191406 12.484375 38.902344 12.953125 C 38.710938 13.261719 38.386719 13.429688 38.050781 13.429688 C 37.871094 13.429688 37.6875 13.378906 37.523438 13.277344 C 32.492188 10.15625 26.210938 10 25 10 C 23.789063 10 17.503906 10.15625 12.476563 13.277344 C 12.007813 13.570313 11.390625 13.425781 11.101563 12.957031 C 10.808594 12.484375 10.953125 11.871094 11.421875 11.578125 C 14.347656 9.765625 17.582031 8.867188 20.214844 8.425781 C 20.0625 7.929688 19.925781 7.617188 19.914063 7.589844 C 19.738281 7.203125 19.34375 6.960938 18.921875 7.003906 C 18.652344 7.023438 12.355469 7.566406 8.320313 10.8125 C 6.214844 12.761719 2 24.152344 2 34 C 2 34.175781 2.046875 34.34375 2.132813 34.496094 C 5.039063 39.605469 12.972656 40.941406 14.78125 41 C 14.789063 41 14.800781 41 14.8125 41 C 15.132813 41 15.433594 40.847656 15.621094 40.589844 L 17.449219 38.074219 C 12.515625 36.800781 9.996094 34.636719 9.851563 34.507813 C 9.4375 34.144531 9.398438 33.511719 9.765625 33.097656 C 10.128906 32.683594 10.761719 32.644531 11.175781 33.007813 C 11.234375 33.0625 15.875 37 25 37 C 34.140625 37 38.78125 33.046875 38.828125 33.007813 C 39.242188 32.648438 39.871094 32.683594 40.238281 33.101563 C 40.601563 33.515625 40.5625 34.144531 40.148438 34.507813 C 40.003906 34.636719 37.484375 36.800781 32.550781 38.074219 L 34.378906 40.589844 C 34.566406 40.847656 34.867188 41 35.1875 41 C 35.199219 41 35.210938 41 35.21875 41 C 37.027344 40.941406 44.960938 39.605469 47.867188 34.496094 C 47.953125 34.34375 48 34.175781 48 34 C 48 24.152344 43.785156 12.761719 41.625 10.769531 Z M 18.5 30 C 16.566406 30 15 28.210938 15 26 C 15 23.789063 16.566406 22 18.5 22 C 20.433594 22 22 23.789063 22 26 C 22 28.210938 20.433594 30 18.5 30 Z M 31.5 30 C 29.566406 30 28 28.210938 28 26 C 28 23.789063 29.566406 22 31.5 22 C 33.433594 22 35 23.789063 35 26 C 35 28.210938 33.433594 30 31.5 30 Z"})})})}),I.jsx(sh,{children:I.jsx("a",{href:"https://github.com/continuedev/continue/issues/new/choose",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-1.2 -1.2 32 32",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"})})})})]}),I.jsx(E2e,{})]})}const v2e=Ge.div` position: fixed; width: 100%; height: 100%; background-color: rgba(168, 168, 168, 0.5); z-index: 100; -`,Lge=He.div` +`,_2e=Ge.div` position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 75%; -`,Mge=He.div` - color: ${Ht}; - background-color: ${Kt}; +`,T2e=Ge.div` + color: ${Yt}; + background-color: ${Ht}; border-radius: 8px; display: flex; flex-direction: column; - box-shadow: 0 0 10px 0 ${Ht}; + box-shadow: 0 0 10px 0 ${Yt}; margin: auto; word-wrap: break-word; overflow: hidden; -`;He.textarea` +`;Ge.textarea` border: 1px solid #ccc; border-radius: 8px; padding: 8px; outline: 1px solid black; resize: none; - background-color: ${Lt}; - color: ${Ht}; + background-color: ${Vt}; + color: ${Yt}; &:focus { - outline: 1px solid ${Ht}; + outline: 1px solid ${Yt}; } -`;He.p` - color: ${Ht}; +`;Ge.p` + color: ${Yt}; margin: 8px auto; -`;const Fge=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),I.jsx(Dge,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(Lge,{onClick:t=>{t.stopPropagation()},children:I.jsx(Mge,{children:typeof e.message=="string"?I.jsx(HE,{children:e.message||""}):e.message})})}));var Pge=Object.defineProperty,Bge=(e,t,n)=>t in e?Pge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l4=(e,t,n)=>(Bge(e,typeof t!="symbol"?t+"":t,n),n);let Uge=class{constructor(){l4(this,"current",this.detect()),l4(this,"handoffState","pending"),l4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},su=new Uge,zi=(e,t)=>{su.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function Eo(e){let t=C.useRef(e);return zi(()=>{t.current=e},[e]),t}function JF(e,t){let[n,r]=C.useState(e),i=Eo(e);return zi(()=>r(i.current),[i,r,...t]),n}function $ge(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function hl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return $ge(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=hl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function tc(){let[e]=C.useState(hl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Xt=function(e){let t=Eo(e);return ut.useCallback((...n)=>t.current(...n),[t])};function zge(){let e=typeof document>"u";return"useSyncExternalStore"in v4?(t=>t.useSyncExternalStore)(v4)(()=>()=>{},()=>!1,()=>!e):!1}function L7(){let e=zge(),[t,n]=C.useState(su.isHandoffComplete);return t&&su.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>su.handoff(),[]),e?!1:t}var XI;let fm=(XI=ut.useId)!=null?XI:function(){let e=L7(),[t,n]=ut.useState(e?()=>su.nextId():null);return zi(()=>{t===null&&n(su.nextId())},[t]),t!=null?""+t:void 0};function Sr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Sr),r}function eP(e){return su.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZI=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Hge=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Hge||{}),jge=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(jge||{}),Gge=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Gge||{}),M7=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(M7||{});function tP(e,t=0){var n;return e===((n=eP(e))==null?void 0:n.body)?!1:Sr(t,{0(){return e.matches(ZI)},1(){let r=e;for(;r!==null;){if(r.matches(ZI))return!0;r=r.parentElement}return!1}})}var Vge=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Vge||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Wge(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function q0(e,t,n){let r=Eo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function qge(e,t,n){let r=Eo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function Kge(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!tP(u,M7.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);q0("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),q0("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),q0("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),q0("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),qge("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QI(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Yge(e,t){let[n,r]=C.useState(()=>QI(e));return zi(()=>{r(QI(e))},[e.type,e.as]),zi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let Xge=Symbol();function Ru(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Xt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Xge]))?void 0:n}function Zge(e){throw new Error("Unexpected object: "+e)}var gi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(gi||{});function Qge(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:Zge(e)}})();return a===-1?r:a}function kg(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Ig=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ig||{}),Vs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Vs||{});function wl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=nP(t,e);if(a)return K0(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return K0(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Sr(c?0:1,{0(){return null},1(){return K0({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return K0(s,n,r,o)}function K0(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=u4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,E]of Object.entries(t))typeof E=="boolean"&&(f=!0),E===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(E9(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(E=>` - ${E}`).join(` -`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(E=>` - ${E}`).join(` +`;const S2e=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),I.jsx(v2e,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(_2e,{onClick:t=>{t.stopPropagation()},children:I.jsx(T2e,{children:typeof e.message=="string"?I.jsx(N9,{children:e.message||""}):e.message})})}));var w2e=Object.defineProperty,A2e=(e,t,n)=>t in e?w2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P4=(e,t,n)=>(A2e(e,typeof t!="symbol"?t+"":t,n),n);let C2e=class{constructor(){P4(this,"current",this.detect()),P4(this,"handoffState","pending"),P4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},hu=new C2e,Gi=(e,t)=>{hu.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function wo(e){let t=C.useRef(e);return Gi(()=>{t.current=e},[e]),t}function yB(e,t){let[n,r]=C.useState(e),i=wo(e);return Gi(()=>r(i.current),[i,r,...t]),n}function k2e(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function vl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return k2e(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=vl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function pc(){let[e]=C.useState(vl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Zt=function(e){let t=wo(e);return ut.useCallback((...n)=>t.current(...n),[t])};function x2e(){let e=typeof document>"u";return"useSyncExternalStore"in Q4?(t=>t.useSyncExternalStore)(Q4)(()=>()=>{},()=>!1,()=>!e):!1}function ST(){let e=x2e(),[t,n]=C.useState(hu.isHandoffComplete);return t&&hu.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>hu.handoff(),[]),e?!1:t}var XR;let B2=(XR=ut.useId)!=null?XR:function(){let e=ST(),[t,n]=ut.useState(e?()=>hu.nextId():null);return Gi(()=>{t===null&&n(hu.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Cr),r}function EB(e){return hu.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZR=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var I2e=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(I2e||{}),R2e=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(R2e||{}),N2e=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(N2e||{}),wT=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wT||{});function vB(e,t=0){var n;return e===((n=EB(e))==null?void 0:n.body)?!1:Cr(t,{0(){return e.matches(ZR)},1(){let r=e;for(;r!==null;){if(r.matches(ZR))return!0;r=r.parentElement}return!1}})}var O2e=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(O2e||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function D2e(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lh(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function L2e(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function M2e(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!vB(u,wT.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);lh("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),lh("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),L2e("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QR(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function F2e(e,t){let[n,r]=C.useState(()=>QR(e));return Gi(()=>{r(QR(e))},[e.type,e.as]),Gi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let P2e=Symbol();function Pu(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Zt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[P2e]))?void 0:n}function B2e(e){throw new Error("Unexpected object: "+e)}var yi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(yi||{});function U2e(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:B2e(e)}})();return a===-1?r:a}function tm(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var nm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(nm||{}),Qs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qs||{});function Rl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=_B(t,e);if(a)return uh(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return uh(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Cr(c?0:1,{0(){return null},1(){return uh({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return uh(s,n,r,o)}function uh(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=B4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,b]of Object.entries(t))typeof b=="boolean"&&(f=!0),b===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(Zy(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(b=>` - ${b}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(b=>` - ${b}`).join(` `)].join(` -`));let f=c.props,m=typeof(f==null?void 0:f.className)=="function"?(...E)=>kg(f==null?void 0:f.className(...E),s.className):kg(f==null?void 0:f.className,s.className),g=m?{className:m}:{};return C.cloneElement(c,Object.assign({},nP(c.props,E9(u4(s,["ref"]))),p,u,Jge(c.ref,u.ref),g))}return C.createElement(i,Object.assign({},u4(s,["ref"]),i!==C.Fragment&&u,i!==C.Fragment&&p),c)}function Jge(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function nP(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...a)}}});return t}function ds(e){var t;return Object.assign(C.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function E9(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function u4(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function e2e(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&t2e(n)?!1:r}function t2e(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function rP(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))aP(n,iP(t,r),i);return n}function iP(e,t){return e?e+"["+t+"]":t}function aP(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())aP(e,iP(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):rP(n,t,e)}let n2e="div";var oP=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(oP||{});function r2e(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return wl({ourProps:i,theirProps:r,slot:{},defaultTag:n2e,name:"Hidden"})}let i2e=ds(r2e),F7=C.createContext(null);F7.displayName="OpenClosedContext";var Oi=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Oi||{});function P7(){return C.useContext(F7)}function sP({value:e,children:t}){return ut.createElement(F7.Provider,{value:e},t)}var lr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(lr||{});function a2e(e,t,n){let[r,i]=C.useState(n),a=e!==void 0,o=C.useRef(a),s=C.useRef(!1),u=C.useRef(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!u.current&&(u.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Xt(c=>(a||i(c),t==null?void 0:t(c)))]}function JI(e){return[e.screenX,e.screenY]}function o2e(){let e=C.useRef([-1,-1]);return{wasMoved(t){let n=JI(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=JI(t)}}}function B7(){let e=C.useRef(!1);return zi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let eR=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tR(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return eR.test(o)&&(o=o.replace(eR,"")),o}function s2e(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():tR(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return tR(e).trim()}function l2e(e){let t=C.useRef(""),n=C.useRef("");return Xt(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=s2e(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var u2e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(u2e||{}),c2e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(c2e||{}),d2e=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(d2e||{}),p2e=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(p2e||{});function c4(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Wge(t(e.options.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let f2e={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=c4(e),i=Qge(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var s;return!o.dataRef.current.disabled&&((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=c4(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=c4(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},U7=C.createContext(null);U7.displayName="ListboxActionsContext";function Jp(e){let t=C.useContext(U7);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Jp),n}return t}let $7=C.createContext(null);$7.displayName="ListboxDataContext";function ef(e){let t=C.useContext($7);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ef),n}return t}function h2e(e,t){return Sr(t.type,f2e,e,t)}let g2e=C.Fragment;function m2e(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(re,Te)=>re===Te,disabled:u=!1,horizontal:c=!1,multiple:p=!1,...f}=e;const m=c?"horizontal":"vertical";let g=Ru(t),[E=p?[]:void 0,b]=a2e(n,o,r),[T,v]=C.useReducer(h2e,{dataRef:C.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),y=C.useRef({static:!1,hold:!1}),w=C.useRef(null),A=C.useRef(null),D=C.useRef(null),k=Xt(typeof s=="string"?(re,Te)=>{let K=s;return(re==null?void 0:re[K])===(Te==null?void 0:Te[K])}:s),R=C.useCallback(re=>Sr(B.mode,{1:()=>E.some(Te=>k(Te,re)),0:()=>k(E,re)}),[E]),B=C.useMemo(()=>({...T,value:E,disabled:u,mode:p?1:0,orientation:m,compare:k,isSelected:R,optionsPropsRef:y,labelRef:w,buttonRef:A,optionsRef:D}),[E,u,p,T]);zi(()=>{T.dataRef.current=B},[B]),Kge([B.buttonRef,B.optionsRef],(re,Te)=>{var K;v({type:1}),tP(Te,M7.Loose)||(re.preventDefault(),(K=B.buttonRef.current)==null||K.focus())},B.listboxState===0);let W=C.useMemo(()=>({open:B.listboxState===0,disabled:u,value:E}),[B,u,E]),P=Xt(re=>{let Te=B.options.find(K=>K.id===re);Te&&Z(Te.dataRef.current.value)}),Q=Xt(()=>{if(B.activeOptionIndex!==null){let{dataRef:re,id:Te}=B.options[B.activeOptionIndex];Z(re.current.value),v({type:2,focus:gi.Specific,id:Te})}}),z=Xt(()=>v({type:0})),le=Xt(()=>v({type:1})),he=Xt((re,Te,K)=>re===gi.Specific?v({type:2,focus:gi.Specific,id:Te,trigger:K}):v({type:2,focus:re,trigger:K})),de=Xt((re,Te)=>(v({type:5,id:re,dataRef:Te}),()=>v({type:6,id:re}))),fe=Xt(re=>(v({type:7,id:re}),()=>v({type:7,id:null}))),Z=Xt(re=>Sr(B.mode,{0(){return b==null?void 0:b(re)},1(){let Te=B.value.slice(),K=Te.findIndex(xe=>k(xe,re));return K===-1?Te.push(re):Te.splice(K,1),b==null?void 0:b(Te)}})),V=Xt(re=>v({type:3,value:re})),ce=Xt(()=>v({type:4})),N=C.useMemo(()=>({onChange:Z,registerOption:de,registerLabel:fe,goToOption:he,closeListbox:le,openListbox:z,selectActiveOption:Q,selectOption:P,search:V,clearSearch:ce}),[]),me={ref:g},oe=C.useRef(null),O=tc();return C.useEffect(()=>{oe.current&&r!==void 0&&O.addEventListener(oe.current,"reset",()=>{b==null||b(r)})},[oe,b]),ut.createElement(U7.Provider,{value:N},ut.createElement($7.Provider,{value:B},ut.createElement(sP,{value:Sr(B.listboxState,{0:Oi.Open,1:Oi.Closed})},a!=null&&E!=null&&rP({[a]:E}).map(([re,Te],K)=>ut.createElement(i2e,{features:oP.Hidden,ref:K===0?xe=>{var ne;oe.current=(ne=xe==null?void 0:xe.closest("form"))!=null?ne:null}:void 0,...E9({key:re,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:re,value:Te})})),wl({ourProps:me,theirProps:f,slot:W,defaultTag:g2e,name:"Listbox"}))))}let b2e="button";function E2e(e,t){var n;let r=fm(),{id:i=`headlessui-listbox-button-${r}`,...a}=e,o=ef("Listbox.Button"),s=Jp("Listbox.Button"),u=Ru(o.buttonRef,t),c=tc(),p=Xt(T=>{switch(T.key){case lr.Space:case lr.Enter:case lr.ArrowDown:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(gi.First)});break;case lr.ArrowUp:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(gi.Last)});break}}),f=Xt(T=>{switch(T.key){case lr.Space:T.preventDefault();break}}),m=Xt(T=>{if(e2e(T.currentTarget))return T.preventDefault();o.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})})):(T.preventDefault(),s.openListbox())}),g=JF(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),E=C.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),b={ref:u,id:i,type:Yge(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":g,disabled:o.disabled,onKeyDown:p,onKeyUp:f,onClick:m};return wl({ourProps:b,theirProps:a,slot:E,defaultTag:b2e,name:"Listbox.Button"})}let v2e="label";function y2e(e,t){let n=fm(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,a=ef("Listbox.Label"),o=Jp("Listbox.Label"),s=Ru(a.labelRef,t);zi(()=>o.registerLabel(r),[r]);let u=Xt(()=>{var p;return(p=a.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=C.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return wl({ourProps:{ref:s,id:r,onClick:u},theirProps:i,slot:c,defaultTag:v2e,name:"Listbox.Label"})}let _2e="ul",T2e=Ig.RenderStrategy|Ig.Static;function S2e(e,t){var n;let r=fm(),{id:i=`headlessui-listbox-options-${r}`,...a}=e,o=ef("Listbox.Options"),s=Jp("Listbox.Options"),u=Ru(o.optionsRef,t),c=tc(),p=tc(),f=P7(),m=(()=>f!==null?(f&Oi.Open)===Oi.Open:o.listboxState===0)();C.useEffect(()=>{var v;let y=o.optionsRef.current;y&&o.listboxState===0&&y!==((v=eP(y))==null?void 0:v.activeElement)&&y.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let g=Xt(v=>{switch(p.dispose(),v.key){case lr.Space:if(o.searchQuery!=="")return v.preventDefault(),v.stopPropagation(),s.search(v.key);case lr.Enter:if(v.preventDefault(),v.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:y}=o.options[o.activeOptionIndex];s.onChange(y.current.value)}o.mode===0&&(s.closeListbox(),hl().nextFrame(()=>{var y;return(y=o.buttonRef.current)==null?void 0:y.focus({preventScroll:!0})}));break;case Sr(o.orientation,{vertical:lr.ArrowDown,horizontal:lr.ArrowRight}):return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.Next);case Sr(o.orientation,{vertical:lr.ArrowUp,horizontal:lr.ArrowLeft}):return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.Previous);case lr.Home:case lr.PageUp:return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.First);case lr.End:case lr.PageDown:return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.Last);case lr.Escape:return v.preventDefault(),v.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var y;return(y=o.buttonRef.current)==null?void 0:y.focus({preventScroll:!0})});case lr.Tab:v.preventDefault(),v.stopPropagation();break;default:v.key.length===1&&(s.search(v.key),p.setTimeout(()=>s.clearSearch(),350));break}}),E=JF(()=>{var v,y,w;return(w=(v=o.labelRef.current)==null?void 0:v.id)!=null?w:(y=o.buttonRef.current)==null?void 0:y.id},[o.labelRef.current,o.buttonRef.current]),b=C.useMemo(()=>({open:o.listboxState===0}),[o]),T={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":E,"aria-orientation":o.orientation,id:i,onKeyDown:g,role:"listbox",tabIndex:0,ref:u};return wl({ourProps:T,theirProps:a,slot:b,defaultTag:_2e,features:T2e,visible:m,name:"Listbox.Options"})}let w2e="li";function A2e(e,t){let n=fm(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...o}=e,s=ef("Listbox.Option"),u=Jp("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===r:!1,p=s.isSelected(a),f=C.useRef(null),m=l2e(f),g=Eo({disabled:i,value:a,domRef:f,get textValue(){return m()}}),E=Ru(t,f);zi(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let k=hl();return k.requestAnimationFrame(()=>{var R,B;(B=(R=f.current)==null?void 0:R.scrollIntoView)==null||B.call(R,{block:"nearest"})}),k.dispose},[f,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),zi(()=>u.registerOption(r,g),[g,r]);let b=Xt(k=>{if(i)return k.preventDefault();u.onChange(a),s.mode===0&&(u.closeListbox(),hl().nextFrame(()=>{var R;return(R=s.buttonRef.current)==null?void 0:R.focus({preventScroll:!0})}))}),T=Xt(()=>{if(i)return u.goToOption(gi.Nothing);u.goToOption(gi.Specific,r)}),v=o2e(),y=Xt(k=>v.update(k)),w=Xt(k=>{v.wasMoved(k)&&(i||c||u.goToOption(gi.Specific,r,0))}),A=Xt(k=>{v.wasMoved(k)&&(i||c&&u.goToOption(gi.Nothing))}),D=C.useMemo(()=>({active:c,selected:p,disabled:i}),[c,p,i]);return wl({ourProps:{id:r,ref:E,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:b,onFocus:T,onPointerEnter:y,onMouseEnter:y,onPointerMove:w,onMouseMove:w,onPointerLeave:A,onMouseLeave:A},theirProps:o,slot:D,defaultTag:w2e,name:"Listbox.Option"})}let C2e=ds(m2e),x2e=ds(E2e),k2e=ds(y2e),I2e=ds(S2e),R2e=ds(A2e),hm=Object.assign(C2e,{Button:x2e,Label:k2e,Options:I2e,Option:R2e});function N2e(e=0){let[t,n]=C.useState(e),r=B7(),i=C.useCallback(u=>{r.current&&n(c=>c|u)},[t,r]),a=C.useCallback(u=>!!(t&u),[t]),o=C.useCallback(u=>{r.current&&n(c=>c&~u)},[n,r]),s=C.useCallback(u=>{r.current&&n(c=>c^u)},[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:s}}function O2e(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function d4(e,...t){e&&t.length>0&&e.classList.add(...t)}function p4(e,...t){e&&t.length>0&&e.classList.remove(...t)}function D2e(e,t){let n=hl();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,f)=>f-p);return c}),s=a+o;if(s!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let u=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return n.add(()=>t()),n.dispose}function L2e(e,t,n,r){let i=n?"enter":"leave",a=hl(),o=r!==void 0?O2e(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Sr(i,{enter:()=>t.enter,leave:()=>t.leave}),u=Sr(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Sr(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return p4(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),d4(e,...t.base,...s,...c),a.nextFrame(()=>{p4(e,...t.base,...s,...c),d4(e,...t.base,...s,...u),D2e(e,()=>(p4(e,...t.base,...s),d4(e,...t.base,...t.entered),o()))}),a.dispose}function M2e({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=B7(),s=tc(),u=Eo(n);zi(()=>{e&&(u.current="enter")},[e]),zi(()=>{let c=hl();s.add(c.dispose);let p=t.current;if(p&&u.current!=="idle"&&o.current)return c.dispose(),i.current(u.current),c.add(L2e(p,r.current,u.current==="enter",()=>{c.dispose(),a.current(u.current)})),c.dispose},[n])}function Rs(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let gm=C.createContext(null);gm.displayName="TransitionContext";var F2e=(e=>(e.Visible="visible",e.Hidden="hidden",e))(F2e||{});function P2e(){let e=C.useContext(gm);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function B2e(){let e=C.useContext(mm);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let mm=C.createContext(null);mm.displayName="NestingContext";function bm(e){return"children"in e?bm(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function lP(e,t){let n=Eo(e),r=C.useRef([]),i=B7(),a=tc(),o=Xt((g,E=Vs.Hidden)=>{let b=r.current.findIndex(({el:T})=>T===g);b!==-1&&(Sr(E,{[Vs.Unmount](){r.current.splice(b,1)},[Vs.Hidden](){r.current[b].state="hidden"}}),a.microTask(()=>{var T;!bm(r)&&i.current&&((T=n.current)==null||T.call(n))}))}),s=Xt(g=>{let E=r.current.find(({el:b})=>b===g);return E?E.state!=="visible"&&(E.state="visible"):r.current.push({el:g,state:"visible"}),()=>o(g,Vs.Unmount)}),u=C.useRef([]),c=C.useRef(Promise.resolve()),p=C.useRef({enter:[],leave:[],idle:[]}),f=Xt((g,E,b)=>{u.current.splice(0),t&&(t.chains.current[E]=t.chains.current[E].filter(([T])=>T!==g)),t==null||t.chains.current[E].push([g,new Promise(T=>{u.current.push(T)})]),t==null||t.chains.current[E].push([g,new Promise(T=>{Promise.all(p.current[E].map(([v,y])=>y)).then(()=>T())})]),E==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>b(E)):b(E)}),m=Xt((g,E,b)=>{Promise.all(p.current[E].splice(0).map(([T,v])=>v)).then(()=>{var T;(T=u.current.shift())==null||T()}).then(()=>b(E))});return C.useMemo(()=>({children:r,register:s,unregister:o,onStart:f,onStop:m,wait:c,chains:p}),[s,o,r,f,m,p,c])}function U2e(){}let $2e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nR(e){var t;let n={};for(let r of $2e)n[r]=(t=e[r])!=null?t:U2e;return n}function z2e(e){let t=C.useRef(nR(e));return C.useEffect(()=>{t.current=nR(e)},[e]),t}let H2e="div",uP=Ig.RenderStrategy;function j2e(e,t){var n,r;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s,enter:u,enterFrom:c,enterTo:p,entered:f,leave:m,leaveFrom:g,leaveTo:E,...b}=e,T=C.useRef(null),v=Ru(T,t),y=(n=b.unmount)==null||n?Vs.Unmount:Vs.Hidden,{show:w,appear:A,initial:D}=P2e(),[k,R]=C.useState(w?"visible":"hidden"),B=B2e(),{register:W,unregister:P}=B;C.useEffect(()=>W(T),[W,T]),C.useEffect(()=>{if(y===Vs.Hidden&&T.current){if(w&&k!=="visible"){R("visible");return}return Sr(k,{hidden:()=>P(T),visible:()=>W(T)})}},[k,T,W,P,w,y]);let Q=Eo({base:Rs(b.className),enter:Rs(u),enterFrom:Rs(c),enterTo:Rs(p),entered:Rs(f),leave:Rs(m),leaveFrom:Rs(g),leaveTo:Rs(E)}),z=z2e({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s}),le=L7();C.useEffect(()=>{if(le&&k==="visible"&&T.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[T,k,le]);let he=D&&!A,de=A&&w&&D,fe=(()=>!le||he?"idle":w?"enter":"leave")(),Z=N2e(0),V=Xt(O=>Sr(O,{enter:()=>{Z.addFlag(Oi.Opening),z.current.beforeEnter()},leave:()=>{Z.addFlag(Oi.Closing),z.current.beforeLeave()},idle:()=>{}})),ce=Xt(O=>Sr(O,{enter:()=>{Z.removeFlag(Oi.Opening),z.current.afterEnter()},leave:()=>{Z.removeFlag(Oi.Closing),z.current.afterLeave()},idle:()=>{}})),N=lP(()=>{R("hidden"),P(T)},B);M2e({immediate:de,container:T,classes:Q,direction:fe,onStart:Eo(O=>{N.onStart(T,O,V)}),onStop:Eo(O=>{N.onStop(T,O,ce),O==="leave"&&!bm(N)&&(R("hidden"),P(T))})});let me=b,oe={ref:v};return de?me={...me,className:kg(b.className,...Q.current.enter,...Q.current.enterFrom)}:(me.className=kg(b.className,(r=T.current)==null?void 0:r.className),me.className===""&&delete me.className),ut.createElement(mm.Provider,{value:N},ut.createElement(sP,{value:Sr(k,{visible:Oi.Open,hidden:Oi.Closed})|Z.flags},wl({ourProps:oe,theirProps:me,defaultTag:H2e,features:uP,visible:k==="visible",name:"Transition.Child"})))}function G2e(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=C.useRef(null),s=Ru(o,t);L7();let u=P7();if(n===void 0&&u!==null&&(n=(u&Oi.Open)===Oi.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,p]=C.useState(n?"visible":"hidden"),f=lP(()=>{p("hidden")}),[m,g]=C.useState(!0),E=C.useRef([n]);zi(()=>{m!==!1&&E.current[E.current.length-1]!==n&&(E.current.push(n),g(!1))},[E,n]);let b=C.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);C.useEffect(()=>{if(n)p("visible");else if(!bm(f))p("hidden");else{let w=o.current;if(!w)return;let A=w.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&p("hidden")}},[n,f]);let T={unmount:i},v=Xt(()=>{var w;m&&g(!1),(w=e.beforeEnter)==null||w.call(e)}),y=Xt(()=>{var w;m&&g(!1),(w=e.beforeLeave)==null||w.call(e)});return ut.createElement(mm.Provider,{value:f},ut.createElement(gm.Provider,{value:b},wl({ourProps:{...T,as:C.Fragment,children:ut.createElement(cP,{ref:s,...T,...a,beforeEnter:v,beforeLeave:y})},theirProps:{},defaultTag:C.Fragment,features:uP,visible:c==="visible",name:"Transition"})))}function V2e(e,t){let n=C.useContext(gm)!==null,r=P7()!==null;return ut.createElement(ut.Fragment,null,!n&&r?ut.createElement(v9,{ref:t,...e}):ut.createElement(cP,{ref:t,...e}))}let v9=ds(G2e),cP=ds(j2e),W2e=ds(V2e),q2e=Object.assign(v9,{Child:W2e,Root:v9});const K2e=He.div` +`));let f=c.props,m=typeof(f==null?void 0:f.className)=="function"?(...b)=>tm(f==null?void 0:f.className(...b),s.className):tm(f==null?void 0:f.className,s.className),g=m?{className:m}:{};return C.cloneElement(c,Object.assign({},_B(c.props,Zy(B4(s,["ref"]))),p,u,$2e(c.ref,u.ref),g))}return C.createElement(i,Object.assign({},B4(s,["ref"]),i!==C.Fragment&&u,i!==C.Fragment&&p),c)}function $2e(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function _B(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...a)}}});return t}function ys(e){var t;return Object.assign(C.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Zy(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function B4(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function z2e(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&H2e(n)?!1:r}function H2e(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function TB(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))wB(n,SB(t,r),i);return n}function SB(e,t){return e?e+"["+t+"]":t}function wB(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())wB(e,SB(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):TB(n,t,e)}let j2e="div";var AB=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(AB||{});function G2e(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Rl({ourProps:i,theirProps:r,slot:{},defaultTag:j2e,name:"Hidden"})}let V2e=ys(G2e),AT=C.createContext(null);AT.displayName="OpenClosedContext";var Li=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Li||{});function CT(){return C.useContext(AT)}function CB({value:e,children:t}){return ut.createElement(AT.Provider,{value:e},t)}var ur=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ur||{});function W2e(e,t,n){let[r,i]=C.useState(n),a=e!==void 0,o=C.useRef(a),s=C.useRef(!1),u=C.useRef(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!u.current&&(u.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Zt(c=>(a||i(c),t==null?void 0:t(c)))]}function JR(e){return[e.screenX,e.screenY]}function q2e(){let e=C.useRef([-1,-1]);return{wasMoved(t){let n=JR(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=JR(t)}}}function kT(){let e=C.useRef(!1);return Gi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let eN=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tN(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return eN.test(o)&&(o=o.replace(eN,"")),o}function K2e(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():tN(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return tN(e).trim()}function Y2e(e){let t=C.useRef(""),n=C.useRef("");return Zt(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=K2e(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var X2e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(X2e||{}),Z2e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Z2e||{}),Q2e=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Q2e||{}),J2e=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(J2e||{});function U4(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=D2e(t(e.options.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let e5e={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=U4(e),i=U2e(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var s;return!o.dataRef.current.disabled&&((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=U4(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=U4(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},xT=C.createContext(null);xT.displayName="ListboxActionsContext";function gf(e){let t=C.useContext(xT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gf),n}return t}let IT=C.createContext(null);IT.displayName="ListboxDataContext";function mf(e){let t=C.useContext(IT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,mf),n}return t}function t5e(e,t){return Cr(t.type,e5e,e,t)}let n5e=C.Fragment;function r5e(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(ie,Se)=>ie===Se,disabled:u=!1,horizontal:c=!1,multiple:p=!1,...f}=e;const m=c?"horizontal":"vertical";let g=Pu(t),[b=p?[]:void 0,y]=W2e(n,o,r),[T,E]=C.useReducer(t5e,{dataRef:C.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=C.useRef({static:!1,hold:!1}),w=C.useRef(null),A=C.useRef(null),R=C.useRef(null),k=Zt(typeof s=="string"?(ie,Se)=>{let X=s;return(ie==null?void 0:ie[X])===(Se==null?void 0:Se[X])}:s),N=C.useCallback(ie=>Cr(B.mode,{1:()=>b.some(Se=>k(Se,ie)),0:()=>k(b,ie)}),[b]),B=C.useMemo(()=>({...T,value:b,disabled:u,mode:p?1:0,orientation:m,compare:k,isSelected:N,optionsPropsRef:v,labelRef:w,buttonRef:A,optionsRef:R}),[b,u,p,T]);Gi(()=>{T.dataRef.current=B},[B]),M2e([B.buttonRef,B.optionsRef],(ie,Se)=>{var X;E({type:1}),vB(Se,wT.Loose)||(ie.preventDefault(),(X=B.buttonRef.current)==null||X.focus())},B.listboxState===0);let q=C.useMemo(()=>({open:B.listboxState===0,disabled:u,value:b}),[B,u,b]),P=Zt(ie=>{let Se=B.options.find(X=>X.id===ie);Se&&H(Se.dataRef.current.value)}),Q=Zt(()=>{if(B.activeOptionIndex!==null){let{dataRef:ie,id:Se}=B.options[B.activeOptionIndex];H(ie.current.value),E({type:2,focus:yi.Specific,id:Se})}}),$=Zt(()=>E({type:0})),oe=Zt(()=>E({type:1})),fe=Zt((ie,Se,X)=>ie===yi.Specific?E({type:2,focus:yi.Specific,id:Se,trigger:X}):E({type:2,focus:ie,trigger:X})),ce=Zt((ie,Se)=>(E({type:5,id:ie,dataRef:Se}),()=>E({type:6,id:ie}))),De=Zt(ie=>(E({type:7,id:ie}),()=>E({type:7,id:null}))),H=Zt(ie=>Cr(B.mode,{0(){return y==null?void 0:y(ie)},1(){let Se=B.value.slice(),X=Se.findIndex(ke=>k(ke,ie));return X===-1?Se.push(ie):Se.splice(X,1),y==null?void 0:y(Se)}})),W=Zt(ie=>E({type:3,value:ie})),se=Zt(()=>E({type:4})),D=C.useMemo(()=>({onChange:H,registerOption:ce,registerLabel:De,goToOption:fe,closeListbox:oe,openListbox:$,selectActiveOption:Q,selectOption:P,search:W,clearSearch:se}),[]),pe={ref:g},le=C.useRef(null),L=pc();return C.useEffect(()=>{le.current&&r!==void 0&&L.addEventListener(le.current,"reset",()=>{y==null||y(r)})},[le,y]),ut.createElement(xT.Provider,{value:D},ut.createElement(IT.Provider,{value:B},ut.createElement(CB,{value:Cr(B.listboxState,{0:Li.Open,1:Li.Closed})},a!=null&&b!=null&&TB({[a]:b}).map(([ie,Se],X)=>ut.createElement(V2e,{features:AB.Hidden,ref:X===0?ke=>{var te;le.current=(te=ke==null?void 0:ke.closest("form"))!=null?te:null}:void 0,...Zy({key:ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:ie,value:Se})})),Rl({ourProps:pe,theirProps:f,slot:q,defaultTag:n5e,name:"Listbox"}))))}let i5e="button";function a5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-button-${r}`,...a}=e,o=mf("Listbox.Button"),s=gf("Listbox.Button"),u=Pu(o.buttonRef,t),c=pc(),p=Zt(T=>{switch(T.key){case ur.Space:case ur.Enter:case ur.ArrowDown:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.First)});break;case ur.ArrowUp:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.Last)});break}}),f=Zt(T=>{switch(T.key){case ur.Space:T.preventDefault();break}}),m=Zt(T=>{if(z2e(T.currentTarget))return T.preventDefault();o.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var E;return(E=o.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})})):(T.preventDefault(),s.openListbox())}),g=yB(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),b=C.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),y={ref:u,id:i,type:F2e(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":g,disabled:o.disabled,onKeyDown:p,onKeyUp:f,onClick:m};return Rl({ourProps:y,theirProps:a,slot:b,defaultTag:i5e,name:"Listbox.Button"})}let o5e="label";function s5e(e,t){let n=B2(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,a=mf("Listbox.Label"),o=gf("Listbox.Label"),s=Pu(a.labelRef,t);Gi(()=>o.registerLabel(r),[r]);let u=Zt(()=>{var p;return(p=a.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=C.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return Rl({ourProps:{ref:s,id:r,onClick:u},theirProps:i,slot:c,defaultTag:o5e,name:"Listbox.Label"})}let l5e="ul",u5e=nm.RenderStrategy|nm.Static;function c5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-options-${r}`,...a}=e,o=mf("Listbox.Options"),s=gf("Listbox.Options"),u=Pu(o.optionsRef,t),c=pc(),p=pc(),f=CT(),m=(()=>f!==null?(f&Li.Open)===Li.Open:o.listboxState===0)();C.useEffect(()=>{var E;let v=o.optionsRef.current;v&&o.listboxState===0&&v!==((E=EB(v))==null?void 0:E.activeElement)&&v.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let g=Zt(E=>{switch(p.dispose(),E.key){case ur.Space:if(o.searchQuery!=="")return E.preventDefault(),E.stopPropagation(),s.search(E.key);case ur.Enter:if(E.preventDefault(),E.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:v}=o.options[o.activeOptionIndex];s.onChange(v.current.value)}o.mode===0&&(s.closeListbox(),vl().nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})}));break;case Cr(o.orientation,{vertical:ur.ArrowDown,horizontal:ur.ArrowRight}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Next);case Cr(o.orientation,{vertical:ur.ArrowUp,horizontal:ur.ArrowLeft}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Previous);case ur.Home:case ur.PageUp:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.First);case ur.End:case ur.PageDown:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Last);case ur.Escape:return E.preventDefault(),E.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})});case ur.Tab:E.preventDefault(),E.stopPropagation();break;default:E.key.length===1&&(s.search(E.key),p.setTimeout(()=>s.clearSearch(),350));break}}),b=yB(()=>{var E,v,w;return(w=(E=o.labelRef.current)==null?void 0:E.id)!=null?w:(v=o.buttonRef.current)==null?void 0:v.id},[o.labelRef.current,o.buttonRef.current]),y=C.useMemo(()=>({open:o.listboxState===0}),[o]),T={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":b,"aria-orientation":o.orientation,id:i,onKeyDown:g,role:"listbox",tabIndex:0,ref:u};return Rl({ourProps:T,theirProps:a,slot:y,defaultTag:l5e,features:u5e,visible:m,name:"Listbox.Options"})}let d5e="li";function p5e(e,t){let n=B2(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...o}=e,s=mf("Listbox.Option"),u=gf("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===r:!1,p=s.isSelected(a),f=C.useRef(null),m=Y2e(f),g=wo({disabled:i,value:a,domRef:f,get textValue(){return m()}}),b=Pu(t,f);Gi(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let k=vl();return k.requestAnimationFrame(()=>{var N,B;(B=(N=f.current)==null?void 0:N.scrollIntoView)==null||B.call(N,{block:"nearest"})}),k.dispose},[f,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Gi(()=>u.registerOption(r,g),[g,r]);let y=Zt(k=>{if(i)return k.preventDefault();u.onChange(a),s.mode===0&&(u.closeListbox(),vl().nextFrame(()=>{var N;return(N=s.buttonRef.current)==null?void 0:N.focus({preventScroll:!0})}))}),T=Zt(()=>{if(i)return u.goToOption(yi.Nothing);u.goToOption(yi.Specific,r)}),E=q2e(),v=Zt(k=>E.update(k)),w=Zt(k=>{E.wasMoved(k)&&(i||c||u.goToOption(yi.Specific,r,0))}),A=Zt(k=>{E.wasMoved(k)&&(i||c&&u.goToOption(yi.Nothing))}),R=C.useMemo(()=>({active:c,selected:p,disabled:i}),[c,p,i]);return Rl({ourProps:{id:r,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:y,onFocus:T,onPointerEnter:v,onMouseEnter:v,onPointerMove:w,onMouseMove:w,onPointerLeave:A,onMouseLeave:A},theirProps:o,slot:R,defaultTag:d5e,name:"Listbox.Option"})}let f5e=ys(r5e),h5e=ys(a5e),g5e=ys(s5e),m5e=ys(c5e),b5e=ys(p5e),U2=Object.assign(f5e,{Button:h5e,Label:g5e,Options:m5e,Option:b5e});function y5e(e=0){let[t,n]=C.useState(e),r=kT(),i=C.useCallback(u=>{r.current&&n(c=>c|u)},[t,r]),a=C.useCallback(u=>!!(t&u),[t]),o=C.useCallback(u=>{r.current&&n(c=>c&~u)},[n,r]),s=C.useCallback(u=>{r.current&&n(c=>c^u)},[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:s}}function E5e(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function $4(e,...t){e&&t.length>0&&e.classList.add(...t)}function z4(e,...t){e&&t.length>0&&e.classList.remove(...t)}function v5e(e,t){let n=vl();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,f)=>f-p);return c}),s=a+o;if(s!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let u=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return n.add(()=>t()),n.dispose}function _5e(e,t,n,r){let i=n?"enter":"leave",a=vl(),o=r!==void 0?E5e(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Cr(i,{enter:()=>t.enter,leave:()=>t.leave}),u=Cr(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Cr(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return z4(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),$4(e,...t.base,...s,...c),a.nextFrame(()=>{z4(e,...t.base,...s,...c),$4(e,...t.base,...s,...u),v5e(e,()=>(z4(e,...t.base,...s),$4(e,...t.base,...t.entered),o()))}),a.dispose}function T5e({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=kT(),s=pc(),u=wo(n);Gi(()=>{e&&(u.current="enter")},[e]),Gi(()=>{let c=vl();s.add(c.dispose);let p=t.current;if(p&&u.current!=="idle"&&o.current)return c.dispose(),i.current(u.current),c.add(_5e(p,r.current,u.current==="enter",()=>{c.dispose(),a.current(u.current)})),c.dispose},[n])}function Bs(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let $2=C.createContext(null);$2.displayName="TransitionContext";var S5e=(e=>(e.Visible="visible",e.Hidden="hidden",e))(S5e||{});function w5e(){let e=C.useContext($2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function A5e(){let e=C.useContext(z2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let z2=C.createContext(null);z2.displayName="NestingContext";function H2(e){return"children"in e?H2(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function kB(e,t){let n=wo(e),r=C.useRef([]),i=kT(),a=pc(),o=Zt((g,b=Qs.Hidden)=>{let y=r.current.findIndex(({el:T})=>T===g);y!==-1&&(Cr(b,{[Qs.Unmount](){r.current.splice(y,1)},[Qs.Hidden](){r.current[y].state="hidden"}}),a.microTask(()=>{var T;!H2(r)&&i.current&&((T=n.current)==null||T.call(n))}))}),s=Zt(g=>{let b=r.current.find(({el:y})=>y===g);return b?b.state!=="visible"&&(b.state="visible"):r.current.push({el:g,state:"visible"}),()=>o(g,Qs.Unmount)}),u=C.useRef([]),c=C.useRef(Promise.resolve()),p=C.useRef({enter:[],leave:[],idle:[]}),f=Zt((g,b,y)=>{u.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([T])=>T!==g)),t==null||t.chains.current[b].push([g,new Promise(T=>{u.current.push(T)})]),t==null||t.chains.current[b].push([g,new Promise(T=>{Promise.all(p.current[b].map(([E,v])=>v)).then(()=>T())})]),b==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(b)):y(b)}),m=Zt((g,b,y)=>{Promise.all(p.current[b].splice(0).map(([T,E])=>E)).then(()=>{var T;(T=u.current.shift())==null||T()}).then(()=>y(b))});return C.useMemo(()=>({children:r,register:s,unregister:o,onStart:f,onStop:m,wait:c,chains:p}),[s,o,r,f,m,p,c])}function C5e(){}let k5e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nN(e){var t;let n={};for(let r of k5e)n[r]=(t=e[r])!=null?t:C5e;return n}function x5e(e){let t=C.useRef(nN(e));return C.useEffect(()=>{t.current=nN(e)},[e]),t}let I5e="div",xB=nm.RenderStrategy;function R5e(e,t){var n,r;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s,enter:u,enterFrom:c,enterTo:p,entered:f,leave:m,leaveFrom:g,leaveTo:b,...y}=e,T=C.useRef(null),E=Pu(T,t),v=(n=y.unmount)==null||n?Qs.Unmount:Qs.Hidden,{show:w,appear:A,initial:R}=w5e(),[k,N]=C.useState(w?"visible":"hidden"),B=A5e(),{register:q,unregister:P}=B;C.useEffect(()=>q(T),[q,T]),C.useEffect(()=>{if(v===Qs.Hidden&&T.current){if(w&&k!=="visible"){N("visible");return}return Cr(k,{hidden:()=>P(T),visible:()=>q(T)})}},[k,T,q,P,w,v]);let Q=wo({base:Bs(y.className),enter:Bs(u),enterFrom:Bs(c),enterTo:Bs(p),entered:Bs(f),leave:Bs(m),leaveFrom:Bs(g),leaveTo:Bs(b)}),$=x5e({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s}),oe=ST();C.useEffect(()=>{if(oe&&k==="visible"&&T.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[T,k,oe]);let fe=R&&!A,ce=A&&w&&R,De=(()=>!oe||fe?"idle":w?"enter":"leave")(),H=y5e(0),W=Zt(L=>Cr(L,{enter:()=>{H.addFlag(Li.Opening),$.current.beforeEnter()},leave:()=>{H.addFlag(Li.Closing),$.current.beforeLeave()},idle:()=>{}})),se=Zt(L=>Cr(L,{enter:()=>{H.removeFlag(Li.Opening),$.current.afterEnter()},leave:()=>{H.removeFlag(Li.Closing),$.current.afterLeave()},idle:()=>{}})),D=kB(()=>{N("hidden"),P(T)},B);T5e({immediate:ce,container:T,classes:Q,direction:De,onStart:wo(L=>{D.onStart(T,L,W)}),onStop:wo(L=>{D.onStop(T,L,se),L==="leave"&&!H2(D)&&(N("hidden"),P(T))})});let pe=y,le={ref:E};return ce?pe={...pe,className:tm(y.className,...Q.current.enter,...Q.current.enterFrom)}:(pe.className=tm(y.className,(r=T.current)==null?void 0:r.className),pe.className===""&&delete pe.className),ut.createElement(z2.Provider,{value:D},ut.createElement(CB,{value:Cr(k,{visible:Li.Open,hidden:Li.Closed})|H.flags},Rl({ourProps:le,theirProps:pe,defaultTag:I5e,features:xB,visible:k==="visible",name:"Transition.Child"})))}function N5e(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=C.useRef(null),s=Pu(o,t);ST();let u=CT();if(n===void 0&&u!==null&&(n=(u&Li.Open)===Li.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,p]=C.useState(n?"visible":"hidden"),f=kB(()=>{p("hidden")}),[m,g]=C.useState(!0),b=C.useRef([n]);Gi(()=>{m!==!1&&b.current[b.current.length-1]!==n&&(b.current.push(n),g(!1))},[b,n]);let y=C.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);C.useEffect(()=>{if(n)p("visible");else if(!H2(f))p("hidden");else{let w=o.current;if(!w)return;let A=w.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&p("hidden")}},[n,f]);let T={unmount:i},E=Zt(()=>{var w;m&&g(!1),(w=e.beforeEnter)==null||w.call(e)}),v=Zt(()=>{var w;m&&g(!1),(w=e.beforeLeave)==null||w.call(e)});return ut.createElement(z2.Provider,{value:f},ut.createElement($2.Provider,{value:y},Rl({ourProps:{...T,as:C.Fragment,children:ut.createElement(IB,{ref:s,...T,...a,beforeEnter:E,beforeLeave:v})},theirProps:{},defaultTag:C.Fragment,features:xB,visible:c==="visible",name:"Transition"})))}function O5e(e,t){let n=C.useContext($2)!==null,r=CT()!==null;return ut.createElement(ut.Fragment,null,!n&&r?ut.createElement(Qy,{ref:t,...e}):ut.createElement(IB,{ref:t,...e}))}let Qy=ys(N5e),IB=ys(R5e),D5e=ys(O5e),L5e=Object.assign(Qy,{Child:D5e,Root:Qy});const M5e=Ge.div` display: grid; grid-template-columns: 1fr auto; align-items: center; - border: 0.5px solid ${vt}; - border-radius: ${wt}; + border: 0.5px solid ${Et}; + border-radius: ${It}; overflow: hidden; -`;He.select` +`;Ge.select` border: none; max-width: 50vw; - background-color: ${Kt}; - color: ${Ht}; + background-color: ${Ht}; + color: ${Yt}; padding: 6px; max-height: 35vh; overflow: scroll; @@ -921,10 +897,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho outline: none; } &:hover { - background-color: ${Lt}; + background-color: ${Vt}; } -`;const Y2e=He(cD)` - background-color: ${Kt}; +`;const F5e=Ge(CL)` + background-color: ${Ht}; cursor: pointer; margin: 0px; padding-left: 4px; @@ -932,27 +908,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho height: 100%; &:hover { - background-color: ${Lt}; + background-color: ${Vt}; } - border-left: 0.5px solid ${vt}; -`;He.div` + border-left: 0.5px solid ${Et}; +`;Ge.div` cursor: pointer; padding: 8px; padding-left: 16px; padding-right: 16px; - border-top: 0.5px solid ${vt}; + border-top: 0.5px solid ${Et}; &:hover { - background-color: ${Lt}; + background-color: ${Vt}; } -`;const X2e=He(hm)` - background-color: ${Kt}; +`;const P5e=Ge(U2)` + background-color: ${Ht}; padding: 0; min-width: 80px; -`,Z2e=He(hm.Button)` +`,B5e=Ge(U2.Button)` position: relative; cursor: pointer; - background-color: ${Kt}; + background-color: ${Ht}; text-align: left; border: none; margin: 0; @@ -966,7 +942,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho grid-template-columns: 1fr auto; align-items: center; - color: ${Ht}; + color: ${Yt}; padding: 4px 8px; @@ -975,55 +951,55 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } &:hover { - background-color: ${Lt}; + background-color: ${Vt}; } -`,Q2e=He(hm.Options)` - background-color: ${Lt}; +`,U5e=Ge(U2.Options)` + background-color: ${Vt}; padding: 0; position: absolute; bottom: calc(100% - 16px); max-width: 100%; - border-radius: ${wt}; + border-radius: ${It}; overflow: hidden; -`,J2e=He(hm.Option)` - background-color: ${({selected:e})=>e?`${da}88`:Lt}; +`,$5e=Ge(U2.Option)` + background-color: ${({selected:e})=>e?`${ha}88`:Vt}; cursor: pointer; padding: 6px 8px; &:hover { - background-color: ${da}44; + background-color: ${ha}44; } -`;function f4(e){return e!=null&&e.title?e==null?void 0:e.title:(e==null?void 0:e.model)!==void 0&&(e==null?void 0:e.model.trim())!==""?e!=null&&e.class_name?`${e==null?void 0:e.class_name} - ${e==null?void 0:e.model}`:e==null?void 0:e.model:e==null?void 0:e.class_name}function eme(e){const t=C.useContext(Ya),n=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.default}),r=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.saved}),i=cs(),a={value:JSON.stringify({t:"default",idx:-1}),title:"GPT-4"},[o,s]=C.useState([a]);C.useEffect(()=>{if(!n&&!r){s([a]);return}const c=[];n&&c.push({value:JSON.stringify({t:"default",idx:-1}),title:f4(n)}),r==null||r.forEach((p,f)=>{c.push({value:JSON.stringify({t:"saved",idx:f}),title:f4(p)})}),s(c)},[n,r]);const u=document.getElementById("model-select-top-div");return I.jsx(I.Fragment,{children:I.jsxs(K2e,{children:[I.jsx(X2e,{value:JSON.stringify({t:"default",idx:-1}),onChange:c=>{const p=JSON.parse(c);p.t==="saved"&&(t==null||t.setModelForRoleFromIndex("*",p.idx))},defaultValue:"0",children:I.jsxs("div",{className:"relative",children:[I.jsxs(Z2e,{children:[I.jsx("div",{children:f4(n)||"GPT-4"}),I.jsx("div",{className:"pointer-events-none flex items-center",children:I.jsx(kY,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),u&&_E.createPortal(I.jsx(q2e,{as:C.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:I.jsx(Q2e,{children:o.map((c,p)=>I.jsx(J2e,{selected:c.value===JSON.stringify({t:"default",idx:-1}),value:c.value,children:I.jsx("span",{children:c.title})},p))})}),u)]})}),I.jsx(Y2e,{width:"1.3em",height:"1.3em",onClick:()=>{i("/models")}})]})})}const tme=He.div` +`;function H4(e){return e!=null&&e.title?e==null?void 0:e.title:(e==null?void 0:e.model)!==void 0&&(e==null?void 0:e.model.trim())!==""?e!=null&&e.class_name?`${e==null?void 0:e.class_name} - ${e==null?void 0:e.model}`:e==null?void 0:e.model:e==null?void 0:e.class_name}function z5e(e){const t=C.useContext(to),n=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.default}),r=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.saved}),i=bs(),a={value:JSON.stringify({t:"default",idx:-1}),title:"GPT-4"},[o,s]=C.useState([a]);C.useEffect(()=>{if(!n&&!r){s([a]);return}const c=[];n&&c.push({value:JSON.stringify({t:"default",idx:-1}),title:H4(n)}),r==null||r.forEach((p,f)=>{c.push({value:JSON.stringify({t:"saved",idx:f}),title:H4(p)})}),s(c)},[n,r]);const u=document.getElementById("model-select-top-div");return I.jsx(I.Fragment,{children:I.jsxs(M5e,{children:[I.jsx(P5e,{value:JSON.stringify({t:"default",idx:-1}),onChange:c=>{const p=JSON.parse(c);p.t==="saved"&&(t==null||t.setModelForRoleFromIndex("*",p.idx))},defaultValue:"0",children:I.jsxs("div",{className:"relative",children:[I.jsxs(B5e,{children:[I.jsx("div",{children:H4(n)||"GPT-4"}),I.jsx("div",{className:"pointer-events-none flex items-center",children:I.jsx(_Z,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),u&&u9.createPortal(I.jsx(L5e,{as:C.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:I.jsx(U5e,{children:o.map((c,p)=>I.jsx($5e,{selected:c.value===JSON.stringify({t:"default",idx:-1}),value:c.value,children:I.jsx("span",{children:c.title})},p))})}),u)]})}),I.jsx(F5e,{width:"1.3em",height:"1.3em",onClick:()=>{i("/models")}})]})})}const H5e=Ge.div` width: 100px; height: 6px; border-radius: 6px; - border: 0.5px solid ${vt}; + border: 0.5px solid ${Et}; margin-top: 6px; -`,nme=He.div` +`,j5e=Ge.div` height: 100%; - background-color: ${e=>e.color||Ht}; + background-color: ${e=>e.color||Yt}; border-radius: inherit; transition: width 0.2s ease-in-out; width: ${e=>e.completed}%; -`,rme=He.div` +`,G5e=Ge.div` display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; -`,ime=He.p` +`,V5e=Ge.p` margin: 0; margin-top: 2px; font-size: 11.5px; - color: ${vt}; + color: ${Et}; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -`,ame=({completed:e,total:t})=>{const n=Math.min(100,Math.max(0,e/t*100));return I.jsxs(I.Fragment,{children:[I.jsx("a",{href:"https://continue.dev/docs/customization/models",className:"no-underline ml-2",children:I.jsxs(rme,{"data-tooltip-id":"usage_progress_bar",children:[I.jsx(tme,{children:I.jsx(nme,{completed:n,color:e/t>.75?e/t>.95?"#f00":"#fc0":void 0})}),I.jsxs(ime,{children:["Free Uses: ",e," / ",t]})]})}),I.jsx(Gs,{id:"usage_progress_bar",place:"bottom",children:"Continue allows you to use our OpenAI API key for up to 250 inputs. After this, you can either use your own API key, or use a local LLM. Click the progress bar to go to the docs and learn more."})]})},ome="1.8em",sme=He.div` +`,W5e=({completed:e,total:t})=>{const n=Math.min(100,Math.max(0,e/t*100));return I.jsxs(I.Fragment,{children:[I.jsx("a",{href:"https://continue.dev/docs/customization/models",className:"no-underline ml-2",children:I.jsxs(G5e,{"data-tooltip-id":"usage_progress_bar",children:[I.jsx(H5e,{children:I.jsx(j5e,{completed:n,color:e/t>.75?e/t>.95?"#f00":"#fc0":void 0})}),I.jsxs(V5e,{children:["Free Uses: ",e," / ",t]})]})}),I.jsx(au,{id:"usage_progress_bar",place:"bottom",children:"Continue allows you to use our OpenAI API key for up to 250 inputs. After this, you can either use your own API key, or use a local LLM. Click the progress bar to go to the docs and learn more."})]})},q5e="1.8em",K5e=Ge.div` height: 100%; - border-radius: ${wt}; + border-radius: ${It}; scrollbar-base-color: transparent; scrollbar-width: thin; @@ -1040,7 +1016,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border-radius: 2px; } } -`,lme=He.div` +`,Y5e=Ge.div` position: fixed; bottom: ${e=>e.displayOnBottom?"50px":void 0}; top: ${e=>e.displayOnBottom?void 0:"50px"}; @@ -1048,14 +1024,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho right: 0; margin: 8px; margin-top: 0; - background-color: ${Lt}; - color: ${Ht}; - border-radius: ${wt}; + background-color: ${Vt}; + color: ${Yt}; + border-radius: ${It}; padding: 12px; z-index: 100; - box-shadow: 0px 0px 2px 0px ${Ht}; + box-shadow: 0px 0px 2px 0px ${Yt}; max-height: 35vh; -`,ume=He.footer` +`,X5e=Ge.footer` display: flex; flex-direction: row; gap: 8px; @@ -1063,24 +1039,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho padding: 8px; align-items: center; width: calc(100% - 16px); - height: ${ome}; + height: ${q5e}; overflow: hidden; -`,cme=He.div` +`,Z5e=Ge.div` display: grid; grid-template-rows: 1fr auto; height: 100vh; overflow-x: visible; -`,dme=He.div` - background-color: ${Lt}; +`,Q5e=Ge.div` + background-color: ${Vt}; position: relative; margin-left: 8px; z-index: 200; - font-size: ${nr()}; -`,pme=()=>{const e=cs(),t=D7(),n=C.useContext(Ya),r=us(),i=zt(p=>p.uiState.dialogMessage),a=zt(p=>p.uiState.showDialog),o=zt(p=>{var f;return(f=p.serverState.config.models)==null?void 0:f.default}),s=zt(p=>p.uiState.bottomMessage),u=zt(p=>p.uiState.displayBottomMessageOnBottom),c=zt(p=>p.serverState.history.timeline);return C.useEffect(()=>{const p=f=>{var m;if(f.metaKey&&f.altKey&&f.code==="KeyN"&&c.filter(g=>!g.step.hide).length>0&&(r(sm(!1)),n==null||n.loadSession(void 0)),(f.metaKey||f.ctrlKey)&&f.code==="KeyC"){const g=(m=window.getSelection())==null?void 0:m.toString();g&&setTimeout(()=>{navigator.clipboard.writeText(g)},100)}};return window.addEventListener("keydown",p),()=>{window.removeEventListener("keydown",p)}},[n,c]),C.useEffect(()=>{const p=f=>{f.data.type==="addModel"?e("/models"):f.data.type==="openSettings"&&e("/settings")};return window.addEventListener("message",p),()=>{window.removeEventListener("message",p)}},[]),I.jsxs(sme,{children:[I.jsxs("div",{style:{scrollbarGutter:"stable both-edges",minHeight:"100%",display:"grid",gridTemplateRows:"1fr auto"},children:[I.jsx(Fge,{showDialog:a,onEnter:()=>{r(Q1(!1))},onClose:()=>{r(Q1(!1))},message:i}),I.jsxs(cme,{children:[I.jsx(oge,{}),I.jsx(dme,{id:"model-select-top-div"}),I.jsxs(ume,{children:[I.jsxs("div",{className:"mr-auto flex gap-2 items-center",children:[localStorage.getItem("ide")==="jetbrains"||localStorage.getItem("hideFeature")==="true"||I.jsx(dD,{className:"cursor-pointer",onClick:()=>{localStorage.setItem("hideFeature","true")},onMouseEnter:()=>{r(au("🎁 New Feature: Use ⌘⇧R automatically debug errors in the terminal (you can click the sparkle icon to make it go away)"))},onMouseLeave:()=>{r(Wk(setTimeout(()=>{r(au(void 0))},2e3)))},width:"1.3em",height:"1.3em",color:"yellow"}),I.jsx(eme,{}),(o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(t.pathname==="/settings"||parseInt(localStorage.getItem("ftc")||"0")>=125)&&I.jsx(ame,{completed:parseInt(localStorage.getItem("ftc")||"0"),total:250})]}),I.jsx(vi,{text:"Help",onClick:()=>{e("/help")},children:I.jsx(iX,{width:"1.4em",height:"1.4em"})}),I.jsx(vi,{onClick:()=>{e("/settings")},text:"Settings",children:I.jsx(LY,{width:"1.4em",height:"1.4em"})})]})]}),I.jsx(lme,{displayOnBottom:u,onMouseEnter:()=>{r(Wk(void 0))},onMouseLeave:p=>{p.buttons||r(au(void 0))},hidden:!s,children:s})]}),I.jsx("div",{className:"text-sm",id:"tooltip-portal-div"})]})};class fme{}class dP{}class hme extends dP{constructor(n){super();ea(this,"websocket");ea(this,"onMessageListeners",{});ea(this,"onErrorListeners",[]);ea(this,"onOpenListeners",[]);ea(this,"onCloseListeners",[]);ea(this,"serverUrl");this.serverUrl=n,this.websocket=this._newWebsocket()}_newWebsocket(){const n=new WebSocket(this.serverUrl);for(const r of this.onOpenListeners)this.onOpen(r);for(const r of this.onCloseListeners)this.onClose(r);for(const r in this.onMessageListeners)for(const i of this.onMessageListeners[r])this.onMessageType(r,i);for(const r of this.onErrorListeners)this.onError(r);return n}send(n,r){const i=JSON.stringify({messageType:n,data:r});this.websocket.readyState===this.websocket.OPEN?this.websocket.send(i):(this.websocket.readyState!==this.websocket.CONNECTING&&(this.websocket=this._newWebsocket()),this.websocket.addEventListener("open",()=>{this.websocket.send(i)}))}sendAndReceive(n,r){return new Promise((i,a)=>{const o=s=>{i(s),this.websocket.removeEventListener("message",o)};this.websocket.addEventListener("message",s=>{const u=JSON.parse(s.data);u.messageType===n&&o(u.data)}),this.send(n,r)})}onMessageType(n,r){this.websocket.addEventListener("message",i=>{const a=JSON.parse(i.data);a.messageType===n&&r(a.data)}),this.onMessageListeners[n]=[...this.onMessageListeners[n]||[],r]}onMessage(n){this.websocket.addEventListener("message",r=>{const i=JSON.parse(r.data);n(i.messageType,i.data)})}onOpen(n){this.websocket.addEventListener("open",n),this.onOpenListeners.push(n)}onClose(n){this.websocket.addEventListener("close",n),this.onCloseListeners.push(n)}onError(n){this.websocket.addEventListener("error",n),this.onErrorListeners.push(n)}close(){this.websocket.close()}}class gme extends dP{constructor(n){super();ea(this,"serverUrl");this.serverUrl=n,rl("websocketForwardingOpen",{url:this.serverUrl})}send(n,r){rl("websocketForwardingMessage",{message:{messageType:n,data:r},url:this.serverUrl})}onMessageType(n,r){window.addEventListener("message",i=>{if(i.data.type==="websocketForwardingMessage"){const a=JSON.parse(i.data.data);a.messageType===n&&r(a.data)}})}onMessage(n){window.addEventListener("message",r=>{if(r.data.type==="websocketForwardingMessage"){const i=JSON.parse(r.data.data);n(i.messageType,i.data)}})}onError(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingError"&&n(r.data.error)})}sendAndReceive(n,r){return new Promise(i=>{const a=o=>{if(o.data.type==="websocketForwardingMessage"){const s=JSON.parse(o.data.data);s.messageType===n&&(window.removeEventListener("message",a),i(s.data))}};window.addEventListener("message",a),this.send(n,r)})}onOpen(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingOpen"&&n()})}onClose(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingClose"&&n()})}close(){rl("websocketForwardingClose",{url:this.serverUrl})}}class mme extends fme{constructor(n,r){super();ea(this,"messenger");ea(this,"serverUrlWithSessionId");ea(this,"useVscodeMessagePassing");ea(this,"onStateUpdateCallbacks",[]);this.serverUrlWithSessionId=n,this.useVscodeMessagePassing=r,this.connectMessenger(n,r)}connectMessenger(n,r){this.messenger&&(console.log("Closing session: ",this.serverUrlWithSessionId),this.messenger.close()),this.serverUrlWithSessionId=n,this.useVscodeMessagePassing=r,this.messenger=r?new gme(n):new hme(n),this.messenger.onClose(()=>{console.log("GUI Connection closed: ",n)}),this.messenger.onError(i=>{console.log("GUI Connection error: ",i)}),this.messenger.onOpen(()=>{console.log("GUI Connection opened: ",n)}),this.messenger.onMessageType("reconnect_at_session",i=>{i.session_id&&this.onReconnectAtSession(i.session_id)}),this.messenger.onMessageType("state_update",i=>{if(i.state)for(const a of this.onStateUpdateCallbacks)a(i.state)})}loadSession(n){var r;(r=this.messenger)==null||r.send("load_session",{session_id:n})}onReconnectAtSession(n){const r=`${this.serverUrlWithSessionId.split("?")[0]}?session_id=${n}`;console.log("Reconnecting at session: ",r),this.connectMessenger(r,this.useVscodeMessagePassing)}sendMainInput(n){var r;(r=this.messenger)==null||r.send("main_input",{input:n})}reverseToIndex(n){var r;(r=this.messenger)==null||r.send("reverse_to_index",{index:n})}sendRefinementInput(n,r){var i;(i=this.messenger)==null||i.send("refinement_input",{input:n,index:r})}sendStepUserInput(n,r){var i;(i=this.messenger)==null||i.send("step_user_input",{input:n,index:r})}onStateUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("state_update",i=>{i.state&&n(i.state)}),this.onStateUpdateCallbacks.push(n)}onAvailableSlashCommands(n){var r;(r=this.messenger)==null||r.onMessageType("available_slash_commands",i=>{i.commands&&n(i.commands)})}sendClear(){var n;(n=this.messenger)==null||n.send("clear_history",{})}retryAtIndex(n){var r;(r=this.messenger)==null||r.send("retry_at_index",{index:n})}deleteAtIndex(n){var r;(r=this.messenger)==null||r.send("delete_at_index",{index:n})}deleteContextWithIds(n,r){var i;(i=this.messenger)==null||i.send("delete_context_with_ids",{ids:n.map(a=>`${a.provider_title}-${a.item_id}`),index:r})}setEditingAtIds(n){var r;(r=this.messenger)==null||r.send("set_editing_at_ids",{ids:n})}toggleAddingHighlightedCode(){var n;(n=this.messenger)==null||n.send("toggle_adding_highlighted_code",{})}showLogsAtIndex(n){var r;(r=this.messenger)==null||r.send("show_logs_at_index",{index:n})}showContextVirtualFile(n){var r;(r=this.messenger)==null||r.send("show_context_virtual_file",{index:n})}selectContextItem(n,r){var i;(i=this.messenger)==null||i.send("select_context_item",{id:n,query:r})}selectContextItemAtIndex(n,r,i){var a;(a=this.messenger)==null||a.send("select_context_item_at_index",{id:n,query:r,index:i})}editStepAtIndex(n,r){var i;(i=this.messenger)==null||i.send("edit_step_at_index",{user_input:n,index:r})}setSystemMessage(n){var r;(r=this.messenger)==null||r.send("set_system_message",{message:n})}setTemperature(n){var r;(r=this.messenger)==null||r.send("set_temperature",{temperature:n})}addModelForRole(n,r,i){var a;(a=this.messenger)==null||a.send("add_model_for_role",{role:n,model:i,model_class:r})}setModelForRoleFromIndex(n,r){var i;(i=this.messenger)==null||i.send("set_model_for_role_from_index",{role:n,index:r})}saveContextGroup(n,r){var i;(i=this.messenger)==null||i.send("save_context_group",{context_items:r,title:n})}selectContextGroup(n){var r;(r=this.messenger)==null||r.send("select_context_group",{id:n})}deleteContextGroup(n){var r;(r=this.messenger)==null||r.send("delete_context_group",{id:n})}setCurrentSessionTitle(n){var r;(r=this.messenger)==null||r.send("set_current_session_title",{title:n})}previewContextItem(n){var r;(r=this.messenger)==null||r.send("preview_context_item",{id:n})}}function bme(e=!0){const t=zt(a=>a.config.sessionId),n=zt(a=>a.config.apiUrl),[r,i]=C.useState(void 0);return C.useEffect(()=>{if(console.log(r,t,n),!t||!n){e&&rl("onLoad",{}),i(void 0);return}const a=n.replace("http","ws")+"/gui/ws?session_id="+encodeURIComponent(t);console.log("Creating GUI websocket",a,e);const o=new mme(a,e);console.log(o),i(o)},[t,n]),r}const pP=Zp({name:"config",initialState:{apiUrl:"http://localhost:8000",vscMediaUrl:localStorage.getItem("vscMediaUrl")||void 0},reducers:{setWorkspacePaths:(e,t)=>({...e,workspacePaths:t.payload}),setApiUrl:(e,t)=>({...e,apiUrl:t.payload}),setVscMachineId:(e,t)=>({...e,vscMachineId:t.payload}),setSessionId:(e,t)=>({...e,sessionId:t.payload}),setVscMediaUrl:(e,t)=>(localStorage.setItem("vscMediaUrl",t.payload),{...e,vscMediaUrl:t.payload}),setDataSwitchOn:(e,t)=>({...e,dataSwitchOn:t.payload})}}),{setVscMachineId:Eme,setApiUrl:vme,setWorkspacePaths:yme,setSessionId:_me,setVscMediaUrl:Tme,setDataSwitchOn:Sme}=pP.actions,wme=pP.reducer;function Ame(){const e=QF();return console.error(e),I.jsxs("div",{id:"error-page",className:"text-center",children:[I.jsx("h1",{children:"Error in Continue React App"}),I.jsx("p",{children:I.jsx("i",{children:e.statusText||e.message})}),I.jsx("br",{}),I.jsx("pre",{className:"text-left m-4",children:e.stack})]})}const fP="28px",Cme=He.div` + font-size: ${pr()}; +`,J5e=()=>{const e=bs(),t=TT(),n=C.useContext(to),r=eo(),i=zt(p=>p.uiState.dialogMessage),a=zt(p=>p.uiState.showDialog),o=zt(p=>{var f;return(f=p.serverState.config.models)==null?void 0:f.default}),s=zt(p=>p.uiState.bottomMessage),u=zt(p=>p.uiState.displayBottomMessageOnBottom),c=zt(p=>p.sessionState.history);return C.useEffect(()=>{const p=f=>{var m;if(f.metaKey&&f.altKey&&f.code==="KeyN"&&(n==null||n.stopSession(),r(uc())),(f.metaKey||f.ctrlKey)&&f.code==="KeyC"){const g=(m=window.getSelection())==null?void 0:m.toString();g&&setTimeout(()=>{navigator.clipboard.writeText(g)},100)}};return window.addEventListener("keydown",p),()=>{window.removeEventListener("keydown",p)}},[n,c]),C.useEffect(()=>{const p=f=>{f.data.type==="addModel"?e("/models"):f.data.type==="openSettings"&&e("/settings")};return window.addEventListener("message",p),()=>{window.removeEventListener("message",p)}},[]),I.jsxs(K5e,{children:[I.jsxs("div",{style:{scrollbarGutter:"stable both-edges",minHeight:"100%",display:"grid",gridTemplateRows:"1fr auto"},children:[I.jsx(S2e,{showDialog:a,onEnter:()=>{r(cc(!1))},onClose:()=>{r(cc(!1))},message:i}),I.jsxs(Z5e,{children:[I.jsx(Qme,{}),I.jsx(Q5e,{id:"model-select-top-div"}),I.jsxs(X5e,{children:[I.jsxs("div",{className:"mr-auto flex gap-2 items-center",children:[localStorage.getItem("ide")==="jetbrains"||localStorage.getItem("hideFeature")==="true"||I.jsx(ZZ,{className:"cursor-pointer",onClick:()=>{localStorage.setItem("hideFeature","true")},onMouseEnter:()=>{r(pu("🎁 New Feature: Use ⌘⇧R automatically debug errors in the terminal (you can click the sparkle icon to make it go away)"))},onMouseLeave:()=>{r(XI(setTimeout(()=>{r(pu(void 0))},2e3)))},width:"1.3em",height:"1.3em",color:"yellow"}),I.jsx(z5e,{}),(o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(t.pathname==="/settings"||parseInt(localStorage.getItem("ftc")||"0")>=125)&&I.jsx(W5e,{completed:parseInt(localStorage.getItem("ftc")||"0"),total:250})]}),I.jsx(zi,{text:"Help",onClick:()=>{e("/help")},children:I.jsx(KZ,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{e("/settings")},text:"Settings",children:I.jsx(kZ,{width:"1.4em",height:"1.4em"})})]})]}),I.jsx(Y5e,{displayOnBottom:u,onMouseEnter:()=>{r(XI(void 0))},onMouseLeave:p=>{p.buttons||r(pu(void 0))},hidden:!s,children:s})]}),I.jsx("div",{className:"text-sm",id:"tooltip-portal-div"})]})};class e3e{}const ko=Object.create(null);ko.open="0";ko.close="1";ko.ping="2";ko.pong="3";ko.message="4";ko.upgrade="5";ko.noop="6";const jh=Object.create(null);Object.keys(ko).forEach(e=>{jh[ko[e]]=e});const Jy={type:"error",data:"parser error"},RB=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",NB=typeof ArrayBuffer=="function",OB=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,RT=({type:e,data:t},n,r)=>RB&&t instanceof Blob?n?r(t):rN(t,r):NB&&(t instanceof ArrayBuffer||OB(t))?n?r(t):rN(new Blob([t]),r):r(ko[e]+(t||"")),rN=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function iN(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let j4;function t3e(e,t){if(RB&&e.data instanceof Blob)return e.data.arrayBuffer().then(iN).then(t);if(NB&&(e.data instanceof ArrayBuffer||OB(e.data)))return t(iN(e.data));RT(e,!1,n=>{j4||(j4=new TextEncoder),t(j4.encode(n))})}const aN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kd=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,i=0,a,o,s,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),p=new Uint8Array(c);for(r=0;r>4,p[i++]=(o&15)<<4|s>>2,p[i++]=(s&3)<<6|u&63;return c},r3e=typeof ArrayBuffer=="function",NT=(e,t)=>{if(typeof e!="string")return{type:"message",data:DB(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:i3e(e.substring(1),t)}:jh[n]?e.length>1?{type:jh[n],data:e.substring(1)}:{type:jh[n]}:Jy},i3e=(e,t)=>{if(r3e){const n=n3e(e);return DB(n,t)}else return{base64:!0,data:e}},DB=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},LB=String.fromCharCode(30),a3e=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((a,o)=>{RT(a,!1,s=>{r[o]=s,++i===n&&t(r.join(LB))})})},o3e=(e,t)=>{const n=e.split(LB),r=[];for(let i=0;i{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const a=new DataView(i.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{i=new Uint8Array(9);const a=new DataView(i.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let G4;function ch(e){return e.reduce((t,n)=>t+n.length,0)}function dh(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;iMath.pow(2,53-32)-1){s.enqueue(Jy);break}i=p*Math.pow(2,32)+c.getUint32(4),r=3}else{if(ch(n)e){s.enqueue(Jy);break}}}})}const MB=4;function Xn(e){if(e)return u3e(e)}function u3e(e){for(var t in Xn.prototype)e[t]=Xn.prototype[t];return e}Xn.prototype.on=Xn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Xn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Xn.prototype.off=Xn.prototype.removeListener=Xn.prototype.removeAllListeners=Xn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function FB(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const c3e=da.setTimeout,d3e=da.clearTimeout;function j2(e,t){t.useNativeTimers?(e.setTimeoutFn=c3e.bind(da),e.clearTimeoutFn=d3e.bind(da)):(e.setTimeoutFn=da.setTimeout.bind(da),e.clearTimeoutFn=da.clearTimeout.bind(da))}const p3e=1.33;function f3e(e){return typeof e=="string"?h3e(e):Math.ceil((e.byteLength||e.size)*p3e)}function h3e(e){let t=0,n=0;for(let r=0,i=e.length;r=57344?n+=3:(r++,n+=4);return n}function g3e(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function m3e(e){let t={},n=e.split("&");for(let r=0,i=n.length;r0);return t}function BB(){const e=lN(+new Date);return e!==sN?(oN=0,sN=e):e+"."+lN(oN++)}for(;ph{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};o3e(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,a3e(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=BB()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Y1(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,a)=>{this.onError("xhr post error",i,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Y1=class Gh extends Xn{constructor(t,n){super(),j2(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=FB(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new $B(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Gh.requestsCount++,Gh.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=v3e,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Gh.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Y1.requestsCount=0;Y1.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",uN);else if(typeof addEventListener=="function"){const e="onpagehide"in da?"pagehide":"unload";addEventListener(e,uN,!1)}}function uN(){for(let e in Y1.requests)Y1.requests.hasOwnProperty(e)&&Y1.requests[e].abort()}const DT=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),fh=da.WebSocket||da.MozWebSocket,cN=!0,S3e="arraybuffer",dN=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class w3e extends OT{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=dN?{}:FB(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=cN&&!dN?n?new fh(t,n):new fh(t):new fh(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const o={};try{cN&&this.ws.send(a)}catch{}i&&DT(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=BB()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!fh}}class A3e extends OT{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=l3e(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=s3e();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const a=()=>{r.read().then(({done:s,value:u})=>{s||(this.onPacket(u),a())}).catch(s=>{})};a();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{i&&DT(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const C3e={websocket:w3e,webtransport:A3e,polling:T3e},k3e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,x3e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function tE(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=k3e.exec(e||""),a={},o=14;for(;o--;)a[x3e[o]]=i[o]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=I3e(a,a.path),a.queryKey=R3e(a,a.query),a}function I3e(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function R3e(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,a){i&&(n[i]=a)}),n}let zB=class p1 extends Xn{constructor(t,n={}){super(),this.binaryType=S3e,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=tE(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=tE(n.host).host),j2(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=m3e(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=MB,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new C3e[t](r)}open(){let t;if(this.opts.rememberUpgrade&&p1.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;p1.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;p1.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function a(){r||(r=!0,p(),n.close(),n=null)}const o=f=>{const m=new Error("probe error: "+f);m.transport=n.name,a(),this.emitReserved("upgradeError",m)};function s(){o("transport closed")}function u(){o("socket closed")}function c(f){n&&f.name!==n.name&&a()}const p=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",s),this.off("close",u),this.off("upgrading",c)};n.once("open",i),n.once("error",o),n.once("close",s),this.once("close",u),this.once("upgrading",c),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",p1.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){p1.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,HB=Object.prototype.toString,L3e=typeof Blob=="function"||typeof Blob<"u"&&HB.call(Blob)==="[object BlobConstructor]",M3e=typeof File=="function"||typeof File<"u"&&HB.call(File)==="[object FileConstructor]";function LT(e){return O3e&&(e instanceof ArrayBuffer||D3e(e))||L3e&&e instanceof Blob||M3e&&e instanceof File}function Vh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let o=0;o{this.io.clearTimeoutFn(a),n.apply(this,[null,...o])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,a)=>{n.push((o,s)=>r?o?a(o):i(s):i(o)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...a)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ut.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ut.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ut.EVENT:case Ut.BINARY_EVENT:this.onevent(t);break;case Ut.ACK:case Ut.BINARY_ACK:this.onack(t);break;case Ut.DISCONNECT:this.ondisconnect();break;case Ut.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:Ut.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ut.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ic.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Ic.prototype.reset=function(){this.attempts=0};Ic.prototype.setMin=function(e){this.ms=e};Ic.prototype.setMax=function(e){this.max=e};Ic.prototype.setJitter=function(e){this.jitter=e};class iE extends Xn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,j2(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ic({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||H3e;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new zB(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Ua(n,"open",function(){r.onopen(),t&&t()}),a=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},o=Ua(n,"error",a);if(this._timeout!==!1){const s=this._timeout,u=this.setTimeoutFn(()=>{i(),a(new Error("timeout")),n.close()},s);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Ua(t,"ping",this.onping.bind(this)),Ua(t,"data",this.ondata.bind(this)),Ua(t,"error",this.onerror.bind(this)),Ua(t,"close",this.onclose.bind(this)),Ua(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){DT(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new jB(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const bd={};function Wh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=N3e(e,t.path||"/socket.io"),r=n.source,i=n.id,a=n.path,o=bd[i]&&a in bd[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let u;return s?u=new iE(r,t):(bd[i]||(bd[i]=new iE(r,t)),u=bd[i]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(Wh,{Manager:iE,Socket:jB,io:Wh,connect:Wh});class GB{}class G3e extends GB{constructor(n){super();Ns(this,"socket");console.log("Connecting to socket.io endpoint: ",n,window.windowId),this.socket=Wh(`${n}?window_id=${window.windowId}`,{path:"/gui/socket.io",transports:["websocket","polling","flashsocket"]})}send(n,r){this.socket.emit("message",{message_type:n,data:r,message_id:Xd()})}ackWithMessageMetadata(n,r,i){return a=>{n({message_id:r,message_type:i,data:a})}}onMessageType(n,r){this.socket.on("message",({message_type:i,data:a},o)=>{n===i&&r(a,this.ackWithMessageMetadata(o,"lolidk",n))})}onMessage(n){this.socket.on("message",({message_type:r,data:i},a)=>{n(r,i,this.ackWithMessageMetadata(a,"lolidk",r))})}onOpen(n){this.socket.on("connect",n)}onClose(n){this.socket.on("disconnect",n)}async sendAndReceive(n,r){return new Promise((i,a)=>{this.socket.emit("message",{message_type:n,data:r,message_id:Xd()},o=>{o&&o.error?a(o.error):i(o)})})}onError(n){this.socket.on("error",n)}close(){this.socket.disconnect()}}class V3e extends GB{constructor(n){super();Ns(this,"serverUrl");this.serverUrl=n,qa("websocketForwardingOpen",{url:this.serverUrl})}send(n,r){qa("websocketForwardingMessage",{message:{messageType:n,data:r},url:this.serverUrl})}onMessageType(n,r){window.addEventListener("message",i=>{if(i.data.type==="websocketForwardingMessage"){const a=JSON.parse(i.data.data);a.messageType===n&&r(a.data)}})}onMessage(n){window.addEventListener("message",r=>{if(r.data.type==="websocketForwardingMessage"){const i=JSON.parse(r.data.data);n(i.messageType,i.data)}})}onError(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingError"&&n(r.data.error)})}sendAndReceive(n,r){return new Promise(i=>{const a=o=>{if(o.data.type==="websocketForwardingMessage"){const s=JSON.parse(o.data.data);s.messageType===n&&(window.removeEventListener("message",a),i(s.data))}};window.addEventListener("message",a),this.send(n,r)})}onOpen(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingOpen"&&n()})}onClose(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingClose"&&n()})}close(){qa("websocketForwardingClose",{url:this.serverUrl})}}class W3e extends e3e{constructor(n,r,i){super();Ns(this,"messenger");Ns(this,"serverUrl");Ns(this,"useVscodeMessagePassing");Ns(this,"getSessionState");Ns(this,"onStateUpdateCallbacks",[]);this.serverUrl=n,this.useVscodeMessagePassing=r,this.getSessionState=i,this.serverUrl=n,this.useVscodeMessagePassing=r,this.messenger=r?new V3e(n):new G3e(n),this.messenger.onClose(()=>{console.log("GUI Connection closed: ",n)}),this.messenger.onError(a=>{console.log("GUI Connection error: ",a)}),this.messenger.onOpen(()=>{console.log("GUI Connection opened: ",n)}),this.messenger.onMessage((a,o,s)=>{this.handleMessage(a,o,s)})}onConnected(n){var r;(r=this.messenger)==null||r.onOpen(n)}handleMessage(n,r,i){switch(n){case"state_update":if(r.state)for(const o of this.onStateUpdateCallbacks)o(r.state);break;case"get_session_state":const a=this.getSessionState();i({history:a.history,context_items:a.context_items});break}}loadSession(n){var r;(r=this.messenger)==null||r.send("load_session",{session_id:n})}sendMainInput(n){var r;(r=this.messenger)==null||r.send("main_input",{input:n})}runFromState(n){var r;(r=this.messenger)==null||r.send("run_from_state",{state:n})}async getSessionTitle(n){var r;return await((r=this.messenger)==null?void 0:r.sendAndReceive("get_session_title",{history:n}))}reverseToIndex(n){var r;(r=this.messenger)==null||r.send("reverse_to_index",{index:n})}sendRefinementInput(n,r){var i;(i=this.messenger)==null||i.send("refinement_input",{input:n,index:r})}sendStepUserInput(n,r){var i;(i=this.messenger)==null||i.send("step_user_input",{input:n,index:r})}onStateUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("state_update",i=>{i.state&&n(i.state)}),this.onStateUpdateCallbacks.push(n)}onSessionUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("session_update",i=>{n(i)})}onConfigUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("config_update",i=>{n(i)})}getConfig(){var n;return(n=this.messenger)==null?void 0:n.sendAndReceive("get_config",{})}onAddContextItem(n){var r;(r=this.messenger)==null||r.onMessageType("add_context_item",i=>{n(i)})}onAvailableSlashCommands(n){var r;(r=this.messenger)==null||r.onMessageType("available_slash_commands",i=>{i.commands&&n(i.commands)})}stopSession(){var n;(n=this.messenger)==null||n.send("stop_session",{})}sendClear(){var n;(n=this.messenger)==null||n.send("clear_history",{})}retryAtIndex(n){var r;(r=this.messenger)==null||r.send("retry_at_index",{index:n})}deleteContextWithIds(n,r){var i;(i=this.messenger)==null||i.send("delete_context_with_ids",{ids:n.map(a=>`${a.provider_title}-${a.item_id}`),index:r})}setEditingAtIds(n){var r;(r=this.messenger)==null||r.send("set_editing_at_ids",{ids:n})}toggleAddingHighlightedCode(){var n;(n=this.messenger)==null||n.send("toggle_adding_highlighted_code",{})}showContextVirtualFile(n){var r;(r=this.messenger)==null||r.send("show_context_virtual_file",{index:n})}selectContextItem(n,r){var i;(i=this.messenger)==null||i.send("select_context_item",{id:n,query:r})}async getContextItem(n,r){var i;return await((i=this.messenger)==null?void 0:i.sendAndReceive("get_context_item",{id:n,query:r}))}selectContextItemAtIndex(n,r,i){var a;(a=this.messenger)==null||a.send("select_context_item_at_index",{id:n,query:r,index:i})}editStepAtIndex(n,r){var i;(i=this.messenger)==null||i.send("edit_step_at_index",{user_input:n,index:r})}setSystemMessage(n){var r;(r=this.messenger)==null||r.send("set_system_message",{system_message:n})}setTemperature(n){var r;(r=this.messenger)==null||r.send("set_temperature",{temperature:n})}addModelForRole(n,r,i){var a;(a=this.messenger)==null||a.send("add_model_for_role",{role:n,model:i,model_class:r})}setModelForRoleFromIndex(n,r){var i;(i=this.messenger)==null||i.send("set_model_for_role_from_index",{role:n,index:r})}saveContextGroup(n,r){var i;(i=this.messenger)==null||i.send("save_context_group",{context_items:r,title:n})}selectContextGroup(n){var r;(r=this.messenger)==null||r.send("select_context_group",{id:n})}deleteContextGroup(n){var r;(r=this.messenger)==null||r.send("delete_context_group",{id:n})}}function VB(e=!0){const[t,n]=C.useState(void 0),r=zt(a=>a.sessionState),i=()=>({history:r.history,context_items:r.context_items});return C.useEffect(()=>{t&&(t.getSessionState=i)},[r]),C.useEffect(()=>{const a=window.serverUrl,o=window.windowId;if(a==null||o==null)return;console.log("Creating GUI websocket",a,e);const s=new W3e(a,e,i);s.onConnected(()=>{n(s)})},[window.windowId]),t}function q3e(){const e=bB();console.error(e);const t=eo(),n=VB(!1);return I.jsxs("div",{id:"error-page",className:"text-center",style:{backgroundColor:Ht},children:[I.jsx("h1",{children:"Error in Continue React App"}),I.jsx("p",{children:I.jsx("i",{children:e.statusText||e.message})}),I.jsx("br",{}),I.jsx("p",{children:"Click below to Continue"}),I.jsx("br",{}),I.jsx(xP,{disabled:!1,showStop:!1,onClick:()=>{n==null||n.stopSession(),t(uc())}})]})}const WB="28px",K3e=Ge.div` margin-top: 16px; margin: auto; - width: ${fP}; + width: ${WB}; animation: flash 1.2s infinite ease-in-out; @keyframes flash { 0% { @@ -1093,24 +1069,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.4; } } -`;function xme(e){const t=zt(n=>n.config.vscMediaUrl);return I.jsx(Cme,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(uD,{width:e.size||fP})})}const y9=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(HY,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&_E.createPortal(I.jsx(Gs,{id:t,place:"bottom",children:e}),n)]})};var tf=e=>e.type==="checkbox",k1=e=>e instanceof Date,Zr=e=>e==null;const hP=e=>typeof e=="object";var rr=e=>!Zr(e)&&!Array.isArray(e)&&hP(e)&&!k1(e),kme=e=>rr(e)&&e.target?tf(e.target)?e.target.checked:e.target.value:e,Ime=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Rme=(e,t)=>e.has(Ime(t)),Nme=e=>{const t=e.constructor&&e.constructor.prototype;return rr(t)&&t.hasOwnProperty("isPrototypeOf")},z7=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function jo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(z7&&(e instanceof Blob||e instanceof FileList))&&(n||rr(e)))if(t=n?[]:{},!n&&!Nme(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=jo(e[r]));else return e;return t}var nf=e=>Array.isArray(e)?e.filter(Boolean):[],Wn=e=>e===void 0,lt=(e,t,n)=>{if(!t||!rr(e))return n;const r=nf(t.split(/[,[\].]+?/)).reduce((i,a)=>Zr(i)?i:i[a],e);return Wn(r)||r===e?Wn(e[t])?n:e[t]:r},tu=e=>typeof e=="boolean";const rR={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ba={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},zo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ome=ut.createContext(null),gP=e=>{const{children:t,...n}=e;return ut.createElement(Ome.Provider,{value:n},t)};var Dme=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ba.all&&(t._proxyFormState[o]=!r||Ba.all),n&&(n[o]=!0),e[o]}});return i},aa=e=>rr(e)&&!Object.keys(e).length,Lme=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return aa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ba.all))},h4=e=>Array.isArray(e)?e:[e];function Mme(e){const t=ut.useRef(e);t.current=e,ut.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var fo=e=>typeof e=="string",Fme=(e,t,n,r,i)=>fo(e)?(r&&t.watch.add(e),lt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),lt(n,a))):(r&&(t.watchAll=!0),n),H7=e=>/^\w*$/.test(e),mP=e=>nf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function An(e,t,n){let r=-1;const i=H7(t)?[t]:mP(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const _9=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=lt(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else rr(o)&&_9(o,t)}}};var iR=e=>({isOnSubmit:!e||e===Ba.onSubmit,isOnBlur:e===Ba.onBlur,isOnChange:e===Ba.onChange,isOnAll:e===Ba.all,isOnTouch:e===Ba.onTouched}),aR=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),Bme=(e,t,n)=>{const r=nf(lt(e,n));return An(r,"root",t[n]),An(e,n,r),e},j7=e=>e.type==="file",Ws=e=>typeof e=="function",Rg=e=>{if(!z7)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ah=e=>fo(e),G7=e=>e.type==="radio",Ng=e=>e instanceof RegExp;const oR={value:!1,isValid:!1},sR={value:!0,isValid:!0};var bP=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Wn(e[0].attributes.value)?Wn(e[0].value)||e[0].value===""?sR:{value:e[0].value,isValid:!0}:sR:oR}return oR};const lR={isValid:!1,value:null};var EP=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,lR):lR;function uR(e,t,n="validate"){if(Ah(e)||Array.isArray(e)&&e.every(Ah)||tu(e)&&!e)return{type:n,message:Ah(e)?e:"",ref:t}}var Qu=e=>rr(e)&&!Ng(e)?e:{value:e,message:""},cR=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:E,valueAsNumber:b,mount:T,disabled:v}=e._f,y=lt(t,E);if(!T||v)return{};const w=o?o[0]:a,A=z=>{r&&w.reportValidity&&(w.setCustomValidity(tu(z)?"":z||""),w.reportValidity())},D={},k=G7(a),R=tf(a),B=k||R,W=(b||j7(a))&&Wn(a.value)&&Wn(y)||Rg(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,P=Pme.bind(null,E,n,D),Q=(z,le,he,de=zo.maxLength,fe=zo.minLength)=>{const Z=z?le:he;D[E]={type:z?de:fe,message:Z,ref:a,...P(z?de:fe,Z)}};if(i?!Array.isArray(y)||!y.length:s&&(!B&&(W||Zr(y))||tu(y)&&!y||R&&!bP(o).isValid||k&&!EP(o).isValid)){const{value:z,message:le}=Ah(s)?{value:!!s,message:s}:Qu(s);if(z&&(D[E]={type:zo.required,message:le,ref:w,...P(zo.required,le)},!n))return A(le),D}if(!W&&(!Zr(p)||!Zr(f))){let z,le;const he=Qu(f),de=Qu(p);if(!Zr(y)&&!isNaN(y)){const fe=a.valueAsNumber||y&&+y;Zr(he.value)||(z=fe>he.value),Zr(de.value)||(le=fenew Date(new Date().toDateString()+" "+N),V=a.type=="time",ce=a.type=="week";fo(he.value)&&y&&(z=V?Z(y)>Z(he.value):ce?y>he.value:fe>new Date(he.value)),fo(de.value)&&y&&(le=V?Z(y)+z.value,de=!Zr(le.value)&&y.length<+le.value;if((he||de)&&(Q(he,z.message,le.message),!n))return A(D[E].message),D}if(m&&!W&&fo(y)){const{value:z,message:le}=Qu(m);if(Ng(z)&&!y.match(z)&&(D[E]={type:zo.pattern,message:le,ref:a,...P(zo.pattern,le)},!n))return A(le),D}if(g){if(Ws(g)){const z=await g(y,t),le=uR(z,w);if(le&&(D[E]={...le,...P(zo.validate,le.message)},!n))return A(le.message),D}else if(rr(g)){let z={};for(const le in g){if(!aa(z)&&!n)break;const he=uR(await g[le](y,t),w,le);he&&(z={...he,...P(le,he.message)},A(he.message),n&&(D[E]=z))}if(!aa(z)&&(D[E]={ref:w,...z},!n))return D}}return A(!0),D};function Ume(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var Og=e=>Zr(e)||!hP(e);function nu(e,t){if(Og(e)||Og(t))return e===t;if(k1(e)&&k1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(k1(a)&&k1(o)||rr(a)&&rr(o)||Array.isArray(a)&&Array.isArray(o)?!nu(a,o):a!==o)return!1}}return!0}var vP=e=>e.type==="select-multiple",zme=e=>G7(e)||tf(e),m4=e=>Rg(e)&&e.isConnected,yP=e=>{for(const t in e)if(Ws(e[t]))return!0;return!1};function Dg(e,t={}){const n=Array.isArray(e);if(rr(e)||n)for(const r in e)Array.isArray(e[r])||rr(e[r])&&!yP(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Dg(e[r],t[r])):Zr(e[r])||(t[r]=!0);return t}function _P(e,t,n){const r=Array.isArray(e);if(rr(e)||r)for(const i in e)Array.isArray(e[i])||rr(e[i])&&!yP(e[i])?Wn(t)||Og(n[i])?n[i]=Array.isArray(e[i])?Dg(e[i],[]):{...Dg(e[i])}:_P(e[i],Zr(t)?{}:t[i],n[i]):n[i]=!nu(e[i],t[i]);return n}var b4=(e,t)=>_P(e,t,Dg(t)),TP=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Wn(e)?e:t?e===""?NaN:e&&+e:n&&fo(e)?new Date(e):r?r(e):e;function E4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return j7(t)?t.files:G7(t)?EP(e.refs).value:vP(t)?[...t.selectedOptions].map(({value:n})=>n):tf(t)?bP(e.refs).value:TP(Wn(t.value)?e.ref.value:t.value,e)}var Hme=(e,t,n,r)=>{const i={};for(const a of e){const o=lt(t,a);o&&An(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ad=e=>Wn(e)?e:Ng(e)?e.source:rr(e)?Ng(e.value)?e.value.source:e.value:e,jme=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function dR(e,t,n){const r=lt(e,n);if(r||H7(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=lt(t,a),s=lt(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var Gme=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Vme=(e,t)=>!nf(lt(e,t)).length&&br(e,t);const Wme={mode:Ba.onSubmit,reValidateMode:Ba.onChange,shouldFocusError:!0};function qme(e={},t){let n={...Wme,...e},r={submitCount:0,isDirty:!1,isLoading:Ws(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=rr(n.defaultValues)||rr(n.values)?jo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:jo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:g4(),array:g4(),state:g4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,E=iR(n.mode),b=iR(n.reValidateMode),T=n.criteriaMode===Ba.all,v=U=>ie=>{clearTimeout(p),p=setTimeout(U,ie)},y=async U=>{if(f.isValid||U){const ie=n.resolver?aa((await W()).errors):await Q(i,!0);ie!==r.isValid&&m.state.next({isValid:ie})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,ie=[],pe,ke,ve=!0,Se=!0)=>{if(ke&&pe){if(s.action=!0,Se&&Array.isArray(lt(i,U))){const Me=pe(lt(i,U),ke.argA,ke.argB);ve&&An(i,U,Me)}if(Se&&Array.isArray(lt(r.errors,U))){const Me=pe(lt(r.errors,U),ke.argA,ke.argB);ve&&An(r.errors,U,Me),Vme(r.errors,U)}if(f.touchedFields&&Se&&Array.isArray(lt(r.touchedFields,U))){const Me=pe(lt(r.touchedFields,U),ke.argA,ke.argB);ve&&An(r.touchedFields,U,Me)}f.dirtyFields&&(r.dirtyFields=b4(a,o)),m.state.next({name:U,isDirty:le(U,ie),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else An(o,U,ie)},D=(U,ie)=>{An(r.errors,U,ie),m.state.next({errors:r.errors})},k=(U,ie,pe,ke)=>{const ve=lt(i,U);if(ve){const Se=lt(o,U,Wn(pe)?lt(a,U):pe);Wn(Se)||ke&&ke.defaultChecked||ie?An(o,U,ie?Se:E4(ve._f)):fe(U,Se),s.mount&&y()}},R=(U,ie,pe,ke,ve)=>{let Se=!1,Me=!1;const ze={name:U};if(!pe||ke){f.isDirty&&(Me=r.isDirty,r.isDirty=ze.isDirty=le(),Se=Me!==ze.isDirty);const Ke=nu(lt(a,U),ie);Me=lt(r.dirtyFields,U),Ke?br(r.dirtyFields,U):An(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Se=Se||f.dirtyFields&&Me!==!Ke}if(pe){const Ke=lt(r.touchedFields,U);Ke||(An(r.touchedFields,U,pe),ze.touchedFields=r.touchedFields,Se=Se||f.touchedFields&&Ke!==pe)}return Se&&ve&&m.state.next(ze),Se?ze:{}},B=(U,ie,pe,ke)=>{const ve=lt(r.errors,U),Se=f.isValid&&tu(ie)&&r.isValid!==ie;if(e.delayError&&pe?(c=v(()=>D(U,pe)),c(e.delayError)):(clearTimeout(p),c=null,pe?An(r.errors,U,pe):br(r.errors,U)),(pe?!nu(ve,pe):ve)||!aa(ke)||Se){const Me={...ke,...Se&&tu(ie)?{isValid:ie}:{},errors:r.errors,name:U};r={...r,...Me},m.state.next(Me)}w(!1)},W=async U=>n.resolver(o,n.context,Hme(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:ie}=await W(U);if(U)for(const pe of U){const ke=lt(ie,pe);ke?An(r.errors,pe,ke):br(r.errors,pe)}else r.errors=ie;return ie},Q=async(U,ie,pe={valid:!0})=>{for(const ke in U){const ve=U[ke];if(ve){const{_f:Se,...Me}=ve;if(Se){const ze=u.array.has(Se.name),Ke=await cR(ve,o,T,n.shouldUseNativeValidation&&!ie,ze);if(Ke[Se.name]&&(pe.valid=!1,ie))break;!ie&&(lt(Ke,Se.name)?ze?Bme(r.errors,Ke,Se.name):An(r.errors,Se.name,Ke[Se.name]):br(r.errors,Se.name))}Me&&await Q(Me,ie,pe)}}return pe.valid},z=()=>{for(const U of u.unMount){const ie=lt(i,U);ie&&(ie._f.refs?ie._f.refs.every(pe=>!m4(pe)):!m4(ie._f.ref))&&K(U)}u.unMount=new Set},le=(U,ie)=>(U&&ie&&An(o,U,ie),!nu(me(),a)),he=(U,ie,pe)=>Fme(U,u,{...s.mount?o:Wn(ie)?a:fo(U)?{[U]:ie}:ie},pe,ie),de=U=>nf(lt(s.mount?o:a,U,e.shouldUnregister?lt(a,U,[]):[])),fe=(U,ie,pe={})=>{const ke=lt(i,U);let ve=ie;if(ke){const Se=ke._f;Se&&(!Se.disabled&&An(o,U,TP(ie,Se)),ve=Rg(Se.ref)&&Zr(ie)?"":ie,vP(Se.ref)?[...Se.ref.options].forEach(Me=>Me.selected=ve.includes(Me.value)):Se.refs?tf(Se.ref)?Se.refs.length>1?Se.refs.forEach(Me=>(!Me.defaultChecked||!Me.disabled)&&(Me.checked=Array.isArray(ve)?!!ve.find(ze=>ze===Me.value):ve===Me.value)):Se.refs[0]&&(Se.refs[0].checked=!!ve):Se.refs.forEach(Me=>Me.checked=Me.value===ve):j7(Se.ref)?Se.ref.value="":(Se.ref.value=ve,Se.ref.type||m.values.next({name:U,values:{...o}})))}(pe.shouldDirty||pe.shouldTouch)&&R(U,ve,pe.shouldTouch,pe.shouldDirty,!0),pe.shouldValidate&&N(U)},Z=(U,ie,pe)=>{for(const ke in ie){const ve=ie[ke],Se=`${U}.${ke}`,Me=lt(i,Se);(u.array.has(U)||!Og(ve)||Me&&!Me._f)&&!k1(ve)?Z(Se,ve,pe):fe(Se,ve,pe)}},V=(U,ie,pe={})=>{const ke=lt(i,U),ve=u.array.has(U),Se=jo(ie);An(o,U,Se),ve?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&pe.shouldDirty&&m.state.next({name:U,dirtyFields:b4(a,o),isDirty:le(U,Se)})):ke&&!ke._f&&!Zr(Se)?Z(U,Se,pe):fe(U,Se,pe),aR(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},ce=async U=>{const ie=U.target;let pe=ie.name,ke=!0;const ve=lt(i,pe),Se=()=>ie.type?E4(ve._f):kme(U);if(ve){let Me,ze;const Ke=Se(),jt=U.type===rR.BLUR||U.type===rR.FOCUS_OUT,ue=!jme(ve._f)&&!n.resolver&&!lt(r.errors,pe)&&!ve._f.deps||Gme(jt,lt(r.touchedFields,pe),r.isSubmitted,b,E),ye=aR(pe,u,jt);An(o,pe,Ke),jt?(ve._f.onBlur&&ve._f.onBlur(U),c&&c(0)):ve._f.onChange&&ve._f.onChange(U);const We=R(pe,Ke,jt,!1),at=!aa(We)||ye;if(!jt&&m.values.next({name:pe,type:U.type,values:{...o}}),ue)return f.isValid&&y(),at&&m.state.next({name:pe,...ye?{}:We});if(!jt&&ye&&m.state.next({...r}),w(!0),n.resolver){const{errors:Qe}=await W([pe]),Y=dR(r.errors,i,pe),se=dR(Qe,i,Y.name||pe);Me=se.error,pe=se.name,ze=aa(Qe)}else Me=(await cR(ve,o,T,n.shouldUseNativeValidation))[pe],ke=Number.isNaN(Ke)||Ke===lt(o,pe,Ke),ke&&(Me?ze=!1:f.isValid&&(ze=await Q(i,!0)));ke&&(ve._f.deps&&N(ve._f.deps),B(pe,ze,Me,We))}},N=async(U,ie={})=>{let pe,ke;const ve=h4(U);if(w(!0),n.resolver){const Se=await P(Wn(U)?U:ve);pe=aa(Se),ke=U?!ve.some(Me=>lt(Se,Me)):pe}else U?(ke=(await Promise.all(ve.map(async Se=>{const Me=lt(i,Se);return await Q(Me&&Me._f?{[Se]:Me}:Me)}))).every(Boolean),!(!ke&&!r.isValid)&&y()):ke=pe=await Q(i);return m.state.next({...!fo(U)||f.isValid&&pe!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:pe}:{},errors:r.errors,isValidating:!1}),ie.shouldFocus&&!ke&&_9(i,Se=>Se&<(r.errors,Se),U?ve:u.mount),ke},me=U=>{const ie={...a,...s.mount?o:{}};return Wn(U)?ie:fo(U)?lt(ie,U):U.map(pe=>lt(ie,pe))},oe=(U,ie)=>({invalid:!!lt((ie||r).errors,U),isDirty:!!lt((ie||r).dirtyFields,U),isTouched:!!lt((ie||r).touchedFields,U),error:lt((ie||r).errors,U)}),O=U=>{U&&h4(U).forEach(ie=>br(r.errors,ie)),m.state.next({errors:U?r.errors:{}})},re=(U,ie,pe)=>{const ke=(lt(i,U,{_f:{}})._f||{}).ref;An(r.errors,U,{...ie,ref:ke}),m.state.next({name:U,errors:r.errors,isValid:!1}),pe&&pe.shouldFocus&&ke&&ke.focus&&ke.focus()},Te=(U,ie)=>Ws(U)?m.values.subscribe({next:pe=>U(he(void 0,ie),pe)}):he(U,ie,!0),K=(U,ie={})=>{for(const pe of U?h4(U):u.mount)u.mount.delete(pe),u.array.delete(pe),ie.keepValue||(br(i,pe),br(o,pe)),!ie.keepError&&br(r.errors,pe),!ie.keepDirty&&br(r.dirtyFields,pe),!ie.keepTouched&&br(r.touchedFields,pe),!n.shouldUnregister&&!ie.keepDefaultValue&&br(a,pe);m.values.next({values:{...o}}),m.state.next({...r,...ie.keepDirty?{isDirty:le()}:{}}),!ie.keepIsValid&&y()},xe=({disabled:U,name:ie,field:pe,fields:ke})=>{if(tu(U)){const ve=U?void 0:lt(o,ie,E4(pe?pe._f:lt(ke,ie)._f));An(o,ie,ve),R(ie,ve,!1,!1,!0)}},ne=(U,ie={})=>{let pe=lt(i,U);const ke=tu(ie.disabled);return An(i,U,{...pe||{},_f:{...pe&&pe._f?pe._f:{ref:{name:U}},name:U,mount:!0,...ie}}),u.mount.add(U),pe?xe({field:pe,disabled:ie.disabled,name:U}):k(U,!0,ie.value),{...ke?{disabled:ie.disabled}:{},...n.progressive?{required:!!ie.required,min:ad(ie.min),max:ad(ie.max),minLength:ad(ie.minLength),maxLength:ad(ie.maxLength),pattern:ad(ie.pattern)}:{},name:U,onChange:ce,onBlur:ce,ref:ve=>{if(ve){ne(U,ie),pe=lt(i,U);const Se=Wn(ve.value)&&ve.querySelectorAll&&ve.querySelectorAll("input,select,textarea")[0]||ve,Me=zme(Se),ze=pe._f.refs||[];if(Me?ze.find(Ke=>Ke===Se):Se===pe._f.ref)return;An(i,U,{_f:{...pe._f,...Me?{refs:[...ze.filter(m4),Se,...Array.isArray(lt(a,U))?[{}]:[]],ref:{type:Se.type,name:U}}:{ref:Se}}}),k(U,!1,void 0,Se)}else pe=lt(i,U,{}),pe._f&&(pe._f.mount=!1),(n.shouldUnregister||ie.shouldUnregister)&&!(Rme(u.array,U)&&s.action)&&u.unMount.add(U)}}},Le=()=>n.shouldFocusError&&_9(i,U=>U&<(r.errors,U),u.mount),Re=(U,ie)=>async pe=>{pe&&(pe.preventDefault&&pe.preventDefault(),pe.persist&&pe.persist());let ke=jo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ve,values:Se}=await W();r.errors=ve,ke=Se}else await Q(i);br(r.errors,"root"),aa(r.errors)?(m.state.next({errors:{}}),await U(ke,pe)):(ie&&await ie({...r.errors},pe),Le(),setTimeout(Le)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:aa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Xe=(U,ie={})=>{lt(i,U)&&(Wn(ie.defaultValue)?V(U,lt(a,U)):(V(U,ie.defaultValue),An(a,U,ie.defaultValue)),ie.keepTouched||br(r.touchedFields,U),ie.keepDirty||(br(r.dirtyFields,U),r.isDirty=ie.defaultValue?le(U,lt(a,U)):le()),ie.keepError||(br(r.errors,U),f.isValid&&y()),m.state.next({...r}))},Ve=(U,ie={})=>{const pe=U?jo(U):a,ke=jo(pe),ve=U&&!aa(U)?ke:a;if(ie.keepDefaultValues||(a=pe),!ie.keepValues){if(ie.keepDirtyValues||g)for(const Se of u.mount)lt(r.dirtyFields,Se)?An(ve,Se,lt(o,Se)):V(Se,lt(ve,Se));else{if(z7&&Wn(U))for(const Se of u.mount){const Me=lt(i,Se);if(Me&&Me._f){const ze=Array.isArray(Me._f.refs)?Me._f.refs[0]:Me._f.ref;if(Rg(ze)){const Ke=ze.closest("form");if(Ke){Ke.reset();break}}}}i={}}o=e.shouldUnregister?ie.keepDefaultValues?jo(a):{}:jo(ve),m.array.next({values:{...ve}}),m.values.next({values:{...ve}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!ie.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:ie.keepSubmitCount?r.submitCount:0,isDirty:ie.keepDirty?r.isDirty:!!(ie.keepDefaultValues&&!nu(U,a)),isSubmitted:ie.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ie.keepDirtyValues?r.dirtyFields:ie.keepDefaultValues&&U?b4(a,U):{},touchedFields:ie.keepTouched?r.touchedFields:{},errors:ie.keepErrors?r.errors:{},isSubmitSuccessful:ie.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,ie)=>Ve(Ws(U)?U(o):U,ie);return{control:{register:ne,unregister:K,getFieldState:oe,handleSubmit:Re,setError:re,_executeSchema:W,_getWatch:he,_getDirty:le,_updateValid:y,_removeUnmounted:z,_updateFieldArray:A,_updateDisabledField:xe,_getFieldArray:de,_reset:Ve,_resetDefaultValues:()=>Ws(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:N,register:ne,handleSubmit:Re,watch:Te,setValue:V,getValues:me,reset:dt,resetField:Xe,clearErrors:O,unregister:K,setError:re,setFocus:(U,ie={})=>{const pe=lt(i,U),ke=pe&&pe._f;if(ke){const ve=ke.refs?ke.refs[0]:ke.ref;ve.focus&&(ve.focus(),ie.shouldSelect&&ve.select())}},getFieldState:oe}}function SP(e={}){const t=ut.useRef(),n=ut.useRef(),[r,i]=ut.useState({isDirty:!1,isValidating:!1,isLoading:Ws(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Ws(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...qme(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,Mme({subject:a._subjects.state,next:o=>{Lme(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),ut.useEffect(()=>{e.values&&!nu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),ut.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=Dme(r,a),t.current}const pR=He.hr` - border: 0.5px solid ${vt}; -`,Kme=He(op)` +`;function Y3e(e){const t=window.vscMediaUrl;return I.jsx(K3e,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(AL,{width:e.size||WB})})}const aE=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(MZ,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&u9.createPortal(I.jsx(au,{id:t,place:"bottom",children:e}),n)]})};var bf=e=>e.type==="checkbox",F1=e=>e instanceof Date,ei=e=>e==null;const qB=e=>typeof e=="object";var ir=e=>!ei(e)&&!Array.isArray(e)&&qB(e)&&!F1(e),X3e=e=>ir(e)&&e.target?bf(e.target)?e.target.checked:e.target.value:e,Z3e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Q3e=(e,t)=>e.has(Z3e(t)),J3e=e=>{const t=e.constructor&&e.constructor.prototype;return ir(t)&&t.hasOwnProperty("isPrototypeOf")},FT=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Zo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(FT&&(e instanceof Blob||e instanceof FileList))&&(n||ir(e)))if(t=n?[]:{},!n&&!J3e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Zo(e[r]));else return e;return t}var yf=e=>Array.isArray(e)?e.filter(Boolean):[],qn=e=>e===void 0,lt=(e,t,n)=>{if(!t||!ir(e))return n;const r=yf(t.split(/[,[\].]+?/)).reduce((i,a)=>ei(i)?i:i[a],e);return qn(r)||r===e?qn(e[t])?n:e[t]:r},lu=e=>typeof e=="boolean";const fN={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ha={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ko={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},e4e=ut.createContext(null),KB=e=>{const{children:t,...n}=e;return ut.createElement(e4e.Provider,{value:n},t)};var t4e=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ha.all&&(t._proxyFormState[o]=!r||Ha.all),n&&(n[o]=!0),e[o]}});return i},sa=e=>ir(e)&&!Object.keys(e).length,n4e=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return sa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ha.all))},V4=e=>Array.isArray(e)?e:[e];function r4e(e){const t=ut.useRef(e);t.current=e,ut.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var Eo=e=>typeof e=="string",i4e=(e,t,n,r,i)=>Eo(e)?(r&&t.watch.add(e),lt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),lt(n,a))):(r&&(t.watchAll=!0),n),PT=e=>/^\w*$/.test(e),YB=e=>yf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Cn(e,t,n){let r=-1;const i=PT(t)?[t]:YB(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const oE=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=lt(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else ir(o)&&oE(o,t)}}};var hN=e=>({isOnSubmit:!e||e===Ha.onSubmit,isOnBlur:e===Ha.onBlur,isOnChange:e===Ha.onChange,isOnAll:e===Ha.all,isOnTouch:e===Ha.onTouched}),gN=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),o4e=(e,t,n)=>{const r=yf(lt(e,n));return Cn(r,"root",t[n]),Cn(e,n,r),e},BT=e=>e.type==="file",Js=e=>typeof e=="function",rm=e=>{if(!FT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},qh=e=>Eo(e),UT=e=>e.type==="radio",im=e=>e instanceof RegExp;const mN={value:!1,isValid:!1},bN={value:!0,isValid:!0};var XB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qn(e[0].attributes.value)?qn(e[0].value)||e[0].value===""?bN:{value:e[0].value,isValid:!0}:bN:mN}return mN};const yN={isValid:!1,value:null};var ZB=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,yN):yN;function EN(e,t,n="validate"){if(qh(e)||Array.isArray(e)&&e.every(qh)||lu(e)&&!e)return{type:n,message:qh(e)?e:"",ref:t}}var a1=e=>ir(e)&&!im(e)?e:{value:e,message:""},vN=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:b,valueAsNumber:y,mount:T,disabled:E}=e._f,v=lt(t,b);if(!T||E)return{};const w=o?o[0]:a,A=$=>{r&&w.reportValidity&&(w.setCustomValidity(lu($)?"":$||""),w.reportValidity())},R={},k=UT(a),N=bf(a),B=k||N,q=(y||BT(a))&&qn(a.value)&&qn(v)||rm(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,P=a4e.bind(null,b,n,R),Q=($,oe,fe,ce=Ko.maxLength,De=Ko.minLength)=>{const H=$?oe:fe;R[b]={type:$?ce:De,message:H,ref:a,...P($?ce:De,H)}};if(i?!Array.isArray(v)||!v.length:s&&(!B&&(q||ei(v))||lu(v)&&!v||N&&!XB(o).isValid||k&&!ZB(o).isValid)){const{value:$,message:oe}=qh(s)?{value:!!s,message:s}:a1(s);if($&&(R[b]={type:Ko.required,message:oe,ref:w,...P(Ko.required,oe)},!n))return A(oe),R}if(!q&&(!ei(p)||!ei(f))){let $,oe;const fe=a1(f),ce=a1(p);if(!ei(v)&&!isNaN(v)){const De=a.valueAsNumber||v&&+v;ei(fe.value)||($=De>fe.value),ei(ce.value)||(oe=Denew Date(new Date().toDateString()+" "+D),W=a.type=="time",se=a.type=="week";Eo(fe.value)&&v&&($=W?H(v)>H(fe.value):se?v>fe.value:De>new Date(fe.value)),Eo(ce.value)&&v&&(oe=W?H(v)+$.value,ce=!ei(oe.value)&&v.length<+oe.value;if((fe||ce)&&(Q(fe,$.message,oe.message),!n))return A(R[b].message),R}if(m&&!q&&Eo(v)){const{value:$,message:oe}=a1(m);if(im($)&&!v.match($)&&(R[b]={type:Ko.pattern,message:oe,ref:a,...P(Ko.pattern,oe)},!n))return A(oe),R}if(g){if(Js(g)){const $=await g(v,t),oe=EN($,w);if(oe&&(R[b]={...oe,...P(Ko.validate,oe.message)},!n))return A(oe.message),R}else if(ir(g)){let $={};for(const oe in g){if(!sa($)&&!n)break;const fe=EN(await g[oe](v,t),w,oe);fe&&($={...fe,...P(oe,fe.message)},A(fe.message),n&&(R[b]=$))}if(!sa($)&&(R[b]={ref:w,...$},!n))return R}}return A(!0),R};function s4e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var am=e=>ei(e)||!qB(e);function uu(e,t){if(am(e)||am(t))return e===t;if(F1(e)&&F1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(F1(a)&&F1(o)||ir(a)&&ir(o)||Array.isArray(a)&&Array.isArray(o)?!uu(a,o):a!==o)return!1}}return!0}var QB=e=>e.type==="select-multiple",u4e=e=>UT(e)||bf(e),q4=e=>rm(e)&&e.isConnected,JB=e=>{for(const t in e)if(Js(e[t]))return!0;return!1};function om(e,t={}){const n=Array.isArray(e);if(ir(e)||n)for(const r in e)Array.isArray(e[r])||ir(e[r])&&!JB(e[r])?(t[r]=Array.isArray(e[r])?[]:{},om(e[r],t[r])):ei(e[r])||(t[r]=!0);return t}function eU(e,t,n){const r=Array.isArray(e);if(ir(e)||r)for(const i in e)Array.isArray(e[i])||ir(e[i])&&!JB(e[i])?qn(t)||am(n[i])?n[i]=Array.isArray(e[i])?om(e[i],[]):{...om(e[i])}:eU(e[i],ei(t)?{}:t[i],n[i]):n[i]=!uu(e[i],t[i]);return n}var K4=(e,t)=>eU(e,t,om(t)),tU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>qn(e)?e:t?e===""?NaN:e&&+e:n&&Eo(e)?new Date(e):r?r(e):e;function Y4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return BT(t)?t.files:UT(t)?ZB(e.refs).value:QB(t)?[...t.selectedOptions].map(({value:n})=>n):bf(t)?XB(e.refs).value:tU(qn(t.value)?e.ref.value:t.value,e)}var c4e=(e,t,n,r)=>{const i={};for(const a of e){const o=lt(t,a);o&&Cn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},yd=e=>qn(e)?e:im(e)?e.source:ir(e)?im(e.value)?e.value.source:e.value:e,d4e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _N(e,t,n){const r=lt(e,n);if(r||PT(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=lt(t,a),s=lt(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var p4e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,f4e=(e,t)=>!yf(lt(e,t)).length&&vr(e,t);const h4e={mode:Ha.onSubmit,reValidateMode:Ha.onChange,shouldFocusError:!0};function g4e(e={},t){let n={...h4e,...e},r={submitCount:0,isDirty:!1,isLoading:Js(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=ir(n.defaultValues)||ir(n.values)?Zo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:Zo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:W4(),array:W4(),state:W4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,b=hN(n.mode),y=hN(n.reValidateMode),T=n.criteriaMode===Ha.all,E=U=>re=>{clearTimeout(p),p=setTimeout(U,re)},v=async U=>{if(f.isValid||U){const re=n.resolver?sa((await q()).errors):await Q(i,!0);re!==r.isValid&&m.state.next({isValid:re})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,re=[],de,xe,ye=!0,Te=!0)=>{if(xe&&de){if(s.action=!0,Te&&Array.isArray(lt(i,U))){const Le=de(lt(i,U),xe.argA,xe.argB);ye&&Cn(i,U,Le)}if(Te&&Array.isArray(lt(r.errors,U))){const Le=de(lt(r.errors,U),xe.argA,xe.argB);ye&&Cn(r.errors,U,Le),f4e(r.errors,U)}if(f.touchedFields&&Te&&Array.isArray(lt(r.touchedFields,U))){const Le=de(lt(r.touchedFields,U),xe.argA,xe.argB);ye&&Cn(r.touchedFields,U,Le)}f.dirtyFields&&(r.dirtyFields=K4(a,o)),m.state.next({name:U,isDirty:oe(U,re),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Cn(o,U,re)},R=(U,re)=>{Cn(r.errors,U,re),m.state.next({errors:r.errors})},k=(U,re,de,xe)=>{const ye=lt(i,U);if(ye){const Te=lt(o,U,qn(de)?lt(a,U):de);qn(Te)||xe&&xe.defaultChecked||re?Cn(o,U,re?Te:Y4(ye._f)):De(U,Te),s.mount&&v()}},N=(U,re,de,xe,ye)=>{let Te=!1,Le=!1;const ze={name:U};if(!de||xe){f.isDirty&&(Le=r.isDirty,r.isDirty=ze.isDirty=oe(),Te=Le!==ze.isDirty);const Ye=uu(lt(a,U),re);Le=lt(r.dirtyFields,U),Ye?vr(r.dirtyFields,U):Cn(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Te=Te||f.dirtyFields&&Le!==!Ye}if(de){const Ye=lt(r.touchedFields,U);Ye||(Cn(r.touchedFields,U,de),ze.touchedFields=r.touchedFields,Te=Te||f.touchedFields&&Ye!==de)}return Te&&ye&&m.state.next(ze),Te?ze:{}},B=(U,re,de,xe)=>{const ye=lt(r.errors,U),Te=f.isValid&&lu(re)&&r.isValid!==re;if(e.delayError&&de?(c=E(()=>R(U,de)),c(e.delayError)):(clearTimeout(p),c=null,de?Cn(r.errors,U,de):vr(r.errors,U)),(de?!uu(ye,de):ye)||!sa(xe)||Te){const Le={...xe,...Te&&lu(re)?{isValid:re}:{},errors:r.errors,name:U};r={...r,...Le},m.state.next(Le)}w(!1)},q=async U=>n.resolver(o,n.context,c4e(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:re}=await q(U);if(U)for(const de of U){const xe=lt(re,de);xe?Cn(r.errors,de,xe):vr(r.errors,de)}else r.errors=re;return re},Q=async(U,re,de={valid:!0})=>{for(const xe in U){const ye=U[xe];if(ye){const{_f:Te,...Le}=ye;if(Te){const ze=u.array.has(Te.name),Ye=await vN(ye,o,T,n.shouldUseNativeValidation&&!re,ze);if(Ye[Te.name]&&(de.valid=!1,re))break;!re&&(lt(Ye,Te.name)?ze?o4e(r.errors,Ye,Te.name):Cn(r.errors,Te.name,Ye[Te.name]):vr(r.errors,Te.name))}Le&&await Q(Le,re,de)}}return de.valid},$=()=>{for(const U of u.unMount){const re=lt(i,U);re&&(re._f.refs?re._f.refs.every(de=>!q4(de)):!q4(re._f.ref))&&X(U)}u.unMount=new Set},oe=(U,re)=>(U&&re&&Cn(o,U,re),!uu(pe(),a)),fe=(U,re,de)=>i4e(U,u,{...s.mount?o:qn(re)?a:Eo(U)?{[U]:re}:re},de,re),ce=U=>yf(lt(s.mount?o:a,U,e.shouldUnregister?lt(a,U,[]):[])),De=(U,re,de={})=>{const xe=lt(i,U);let ye=re;if(xe){const Te=xe._f;Te&&(!Te.disabled&&Cn(o,U,tU(re,Te)),ye=rm(Te.ref)&&ei(re)?"":re,QB(Te.ref)?[...Te.ref.options].forEach(Le=>Le.selected=ye.includes(Le.value)):Te.refs?bf(Te.ref)?Te.refs.length>1?Te.refs.forEach(Le=>(!Le.defaultChecked||!Le.disabled)&&(Le.checked=Array.isArray(ye)?!!ye.find(ze=>ze===Le.value):ye===Le.value)):Te.refs[0]&&(Te.refs[0].checked=!!ye):Te.refs.forEach(Le=>Le.checked=Le.value===ye):BT(Te.ref)?Te.ref.value="":(Te.ref.value=ye,Te.ref.type||m.values.next({name:U,values:{...o}})))}(de.shouldDirty||de.shouldTouch)&&N(U,ye,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&D(U)},H=(U,re,de)=>{for(const xe in re){const ye=re[xe],Te=`${U}.${xe}`,Le=lt(i,Te);(u.array.has(U)||!am(ye)||Le&&!Le._f)&&!F1(ye)?H(Te,ye,de):De(Te,ye,de)}},W=(U,re,de={})=>{const xe=lt(i,U),ye=u.array.has(U),Te=Zo(re);Cn(o,U,Te),ye?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&de.shouldDirty&&m.state.next({name:U,dirtyFields:K4(a,o),isDirty:oe(U,Te)})):xe&&!xe._f&&!ei(Te)?H(U,Te,de):De(U,Te,de),gN(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},se=async U=>{const re=U.target;let de=re.name,xe=!0;const ye=lt(i,de),Te=()=>re.type?Y4(ye._f):X3e(U);if(ye){let Le,ze;const Ye=Te(),jt=U.type===fN.BLUR||U.type===fN.FOCUS_OUT,ue=!d4e(ye._f)&&!n.resolver&&!lt(r.errors,de)&&!ye._f.deps||p4e(jt,lt(r.touchedFields,de),r.isSubmitted,y,b),Ee=gN(de,u,jt);Cn(o,de,Ye),jt?(ye._f.onBlur&&ye._f.onBlur(U),c&&c(0)):ye._f.onChange&&ye._f.onChange(U);const qe=N(de,Ye,jt,!1),j=!sa(qe)||Ee;if(!jt&&m.values.next({name:de,type:U.type,values:{...o}}),ue)return f.isValid&&v(),j&&m.state.next({name:de,...Ee?{}:qe});if(!jt&&Ee&&m.state.next({...r}),w(!0),n.resolver){const{errors:me}=await q([de]),Ve=_N(r.errors,i,de),ge=_N(me,i,Ve.name||de);Le=ge.error,de=ge.name,ze=sa(me)}else Le=(await vN(ye,o,T,n.shouldUseNativeValidation))[de],xe=Number.isNaN(Ye)||Ye===lt(o,de,Ye),xe&&(Le?ze=!1:f.isValid&&(ze=await Q(i,!0)));xe&&(ye._f.deps&&D(ye._f.deps),B(de,ze,Le,qe))}},D=async(U,re={})=>{let de,xe;const ye=V4(U);if(w(!0),n.resolver){const Te=await P(qn(U)?U:ye);de=sa(Te),xe=U?!ye.some(Le=>lt(Te,Le)):de}else U?(xe=(await Promise.all(ye.map(async Te=>{const Le=lt(i,Te);return await Q(Le&&Le._f?{[Te]:Le}:Le)}))).every(Boolean),!(!xe&&!r.isValid)&&v()):xe=de=await Q(i);return m.state.next({...!Eo(U)||f.isValid&&de!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:de}:{},errors:r.errors,isValidating:!1}),re.shouldFocus&&!xe&&oE(i,Te=>Te&<(r.errors,Te),U?ye:u.mount),xe},pe=U=>{const re={...a,...s.mount?o:{}};return qn(U)?re:Eo(U)?lt(re,U):U.map(de=>lt(re,de))},le=(U,re)=>({invalid:!!lt((re||r).errors,U),isDirty:!!lt((re||r).dirtyFields,U),isTouched:!!lt((re||r).touchedFields,U),error:lt((re||r).errors,U)}),L=U=>{U&&V4(U).forEach(re=>vr(r.errors,re)),m.state.next({errors:U?r.errors:{}})},ie=(U,re,de)=>{const xe=(lt(i,U,{_f:{}})._f||{}).ref;Cn(r.errors,U,{...re,ref:xe}),m.state.next({name:U,errors:r.errors,isValid:!1}),de&&de.shouldFocus&&xe&&xe.focus&&xe.focus()},Se=(U,re)=>Js(U)?m.values.subscribe({next:de=>U(fe(void 0,re),de)}):fe(U,re,!0),X=(U,re={})=>{for(const de of U?V4(U):u.mount)u.mount.delete(de),u.array.delete(de),re.keepValue||(vr(i,de),vr(o,de)),!re.keepError&&vr(r.errors,de),!re.keepDirty&&vr(r.dirtyFields,de),!re.keepTouched&&vr(r.touchedFields,de),!n.shouldUnregister&&!re.keepDefaultValue&&vr(a,de);m.values.next({values:{...o}}),m.state.next({...r,...re.keepDirty?{isDirty:oe()}:{}}),!re.keepIsValid&&v()},ke=({disabled:U,name:re,field:de,fields:xe})=>{if(lu(U)){const ye=U?void 0:lt(o,re,Y4(de?de._f:lt(xe,re)._f));Cn(o,re,ye),N(re,ye,!1,!1,!0)}},te=(U,re={})=>{let de=lt(i,U);const xe=lu(re.disabled);return Cn(i,U,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:U}},name:U,mount:!0,...re}}),u.mount.add(U),de?ke({field:de,disabled:re.disabled,name:U}):k(U,!0,re.value),{...xe?{disabled:re.disabled}:{},...n.progressive?{required:!!re.required,min:yd(re.min),max:yd(re.max),minLength:yd(re.minLength),maxLength:yd(re.maxLength),pattern:yd(re.pattern)}:{},name:U,onChange:se,onBlur:se,ref:ye=>{if(ye){te(U,re),de=lt(i,U);const Te=qn(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,Le=u4e(Te),ze=de._f.refs||[];if(Le?ze.find(Ye=>Ye===Te):Te===de._f.ref)return;Cn(i,U,{_f:{...de._f,...Le?{refs:[...ze.filter(q4),Te,...Array.isArray(lt(a,U))?[{}]:[]],ref:{type:Te.type,name:U}}:{ref:Te}}}),k(U,!1,void 0,Te)}else de=lt(i,U,{}),de._f&&(de._f.mount=!1),(n.shouldUnregister||re.shouldUnregister)&&!(Q3e(u.array,U)&&s.action)&&u.unMount.add(U)}}},Me=()=>n.shouldFocusError&&oE(i,U=>U&<(r.errors,U),u.mount),Re=(U,re)=>async de=>{de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let xe=Zo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ye,values:Te}=await q();r.errors=ye,xe=Te}else await Q(i);vr(r.errors,"root"),sa(r.errors)?(m.state.next({errors:{}}),await U(xe,de)):(re&&await re({...r.errors},de),Me(),setTimeout(Me)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Ze=(U,re={})=>{lt(i,U)&&(qn(re.defaultValue)?W(U,lt(a,U)):(W(U,re.defaultValue),Cn(a,U,re.defaultValue)),re.keepTouched||vr(r.touchedFields,U),re.keepDirty||(vr(r.dirtyFields,U),r.isDirty=re.defaultValue?oe(U,lt(a,U)):oe()),re.keepError||(vr(r.errors,U),f.isValid&&v()),m.state.next({...r}))},We=(U,re={})=>{const de=U?Zo(U):a,xe=Zo(de),ye=U&&!sa(U)?xe:a;if(re.keepDefaultValues||(a=de),!re.keepValues){if(re.keepDirtyValues||g)for(const Te of u.mount)lt(r.dirtyFields,Te)?Cn(ye,Te,lt(o,Te)):W(Te,lt(ye,Te));else{if(FT&&qn(U))for(const Te of u.mount){const Le=lt(i,Te);if(Le&&Le._f){const ze=Array.isArray(Le._f.refs)?Le._f.refs[0]:Le._f.ref;if(rm(ze)){const Ye=ze.closest("form");if(Ye){Ye.reset();break}}}}i={}}o=e.shouldUnregister?re.keepDefaultValues?Zo(a):{}:Zo(ye),m.array.next({values:{...ye}}),m.values.next({values:{...ye}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!re.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:re.keepSubmitCount?r.submitCount:0,isDirty:re.keepDirty?r.isDirty:!!(re.keepDefaultValues&&!uu(U,a)),isSubmitted:re.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re.keepDirtyValues?r.dirtyFields:re.keepDefaultValues&&U?K4(a,U):{},touchedFields:re.keepTouched?r.touchedFields:{},errors:re.keepErrors?r.errors:{},isSubmitSuccessful:re.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,re)=>We(Js(U)?U(o):U,re);return{control:{register:te,unregister:X,getFieldState:le,handleSubmit:Re,setError:ie,_executeSchema:q,_getWatch:fe,_getDirty:oe,_updateValid:v,_removeUnmounted:$,_updateFieldArray:A,_updateDisabledField:ke,_getFieldArray:ce,_reset:We,_resetDefaultValues:()=>Js(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:D,register:te,handleSubmit:Re,watch:Se,setValue:W,getValues:pe,reset:dt,resetField:Ze,clearErrors:L,unregister:X,setError:ie,setFocus:(U,re={})=>{const de=lt(i,U),xe=de&&de._f;if(xe){const ye=xe.refs?xe.refs[0]:xe.ref;ye.focus&&(ye.focus(),re.shouldSelect&&ye.select())}},getFieldState:le}}function nU(e={}){const t=ut.useRef(),n=ut.useRef(),[r,i]=ut.useState({isDirty:!1,isValidating:!1,isLoading:Js(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Js(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...g4e(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,r4e({subject:a._subjects.state,next:o=>{n4e(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),ut.useEffect(()=>{e.values&&!uu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),ut.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=t4e(r,a),t.current}const TN=Ge.hr` + border: 0.5px solid ${Et}; +`,m4e=Ge(oc)` background-color: transparent; - color: ${vt}; - border: 1px solid ${vt}; + color: ${Et}; + border: 1px solid ${Et}; &:hover { - background-color: ${vt}; + background-color: ${Et}; color: black; } -`,Yme=He(op)` +`,b4e=Ge(oc)` &:hover { opacity: 0.8; } -`,Xme=He.input.attrs({type:"range"})` +`,y4e=Ge.input.attrs({type:"range"})` --webkit-appearance: none; width: 100%; - background-color: ${Lt}; + background-color: ${Vt}; outline: none; border: none; opacity: 0.7; @@ -1123,7 +1099,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho width: 100%; height: 8px; cursor: pointer; - background: ${vt}; + background: ${Et}; border-radius: 4px; } &::-webkit-slider-thumb { @@ -1145,55 +1121,55 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho outline: none; border: none; } -`;function Zme(){const e=SP(),t=s=>console.log(s),n=cs(),r=C.useContext(Ya),i=zt(s=>s.serverState.config);us();const a=()=>{if(!r)return;const s=e.watch("system_message"),u=e.watch("temperature");r.setSystemMessage(s||""),u&&r.setTemperature(u)},o=()=>{a(),n("/")};return C.useEffect(()=>{i&&(e.setValue("system_message",i.system_message),e.setValue("temperature",i.temperature))},[i]),I.jsx(gP,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:o,className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Settings"})]}),I.jsx("form",{onSubmit:e.handleSubmit(t),children:i?I.jsxs("div",{className:"p-2",children:[I.jsxs("h3",{className:"flex gap-1",children:["System Message",I.jsx(y9,{msg:`Set a system message with information that the LLM should always +`;function E4e(){const e=nU(),t=s=>console.log(s),n=bs(),r=C.useContext(to),i=zt(s=>s.serverState.config);eo();const a=()=>{if(!r)return;const s=e.watch("system_message"),u=e.watch("temperature");r.setSystemMessage(s||""),u&&r.setTemperature(u)},o=()=>{a(),n("/")};return C.useEffect(()=>{i&&(e.setValue("system_message",i.system_message),e.setValue("temperature",i.temperature))},[i]),I.jsx(KB,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:o,className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Settings"})]}),I.jsx("form",{onSubmit:e.handleSubmit(t),children:i?I.jsxs("div",{className:"p-2",children:[I.jsxs("h3",{className:"flex gap-1",children:["System Message",I.jsx(aE,{msg:`Set a system message with information that the LLM should always keep in mind (e.g. "Please give concise answers. Always respond in - Spanish.")`})]}),I.jsx(QK,{placeholder:"Enter a system message (e.g. 'Always respond in German')",...e.register("system_message")}),I.jsx(pR,{}),I.jsxs("h3",{className:"flex gap-1",children:["Temperature",I.jsx(y9,{msg:`Set temperature to any value between 0 and 1. Higher values will + Spanish.")`})]}),I.jsx(HX,{placeholder:"Enter a system message (e.g. 'Always respond in German')",...e.register("system_message")}),I.jsx(TN,{}),I.jsxs("h3",{className:"flex gap-1",children:["Temperature",I.jsx(aE,{msg:`Set temperature to any value between 0 and 1. Higher values will make the LLM more creative, while lower values will make it more - predictable.`})]}),I.jsxs("div",{className:"flex justify-between mx-16 gap-1",children:[I.jsx("p",{children:"0"}),I.jsx(Xme,{type:"range",min:"0",max:"1",step:"0.01",...e.register("temperature")}),I.jsx("p",{children:"1"})]}),I.jsx("div",{className:"text-center",style:{marginTop:"-25px"},children:I.jsx("p",{className:"text-sm text-gray-500",children:e.watch("temperature")||i.temperature||"-"})}),I.jsx(pR,{})]}):I.jsx(xme,{})}),I.jsx("hr",{}),I.jsxs("div",{className:"px-2",children:[I.jsx("h3",{children:"Appearance"}),I.jsx("p",{children:"Font Size"}),I.jsx(JK,{type:"number",min:"8",max:"48",step:"1",defaultValue:nr(),onChange:s=>{localStorage.setItem("fontSize",s.target.value)}})]}),I.jsxs("div",{className:"flex gap-2 justify-end px-4",children:[I.jsx(Kme,{onClick:()=>{n("/")},children:"Cancel"}),I.jsx(Yme,{onClick:o,children:"Save"})]})]})})}var Lg={exports:{}};/** + predictable.`})]}),I.jsxs("div",{className:"flex justify-between mx-16 gap-1",children:[I.jsx("p",{children:"0"}),I.jsx(y4e,{type:"range",min:"0",max:"1",step:"0.01",...e.register("temperature")}),I.jsx("p",{children:"1"})]}),I.jsx("div",{className:"text-center",style:{marginTop:"-25px"},children:I.jsx("p",{className:"text-sm text-gray-500",children:e.watch("temperature")||i.temperature||"-"})}),I.jsx(TN,{})]}):I.jsx(Y3e,{})}),I.jsx("hr",{}),I.jsxs("div",{className:"px-2",children:[I.jsx("h3",{children:"Appearance"}),I.jsx("p",{children:"Font Size"}),I.jsx(jX,{type:"number",min:"8",max:"48",step:"1",defaultValue:pr(),onChange:s=>{localStorage.setItem("fontSize",s.target.value)}})]}),I.jsxs("div",{className:"flex gap-2 justify-end px-4",children:[I.jsx(m4e,{onClick:()=>{n("/")},children:"Cancel"}),I.jsx(b4e,{onClick:o,children:"Save"})]})]})})}var sm={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Lg.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,E=1,b=2,T=1,v=2,y=4,w=8,A=16,D=32,k=64,R=128,B=256,W=512,P=30,Q="...",z=800,le=16,he=1,de=2,fe=3,Z=1/0,V=9007199254740991,ce=17976931348623157e292,N=0/0,me=4294967295,oe=me-1,O=me>>>1,re=[["ary",R],["bind",T],["bindKey",v],["curry",w],["curryRight",A],["flip",W],["partial",D],["partialRight",k],["rearg",B]],Te="[object Arguments]",K="[object Array]",xe="[object AsyncFunction]",ne="[object Boolean]",Le="[object Date]",Re="[object DOMException]",Xe="[object Error]",Ve="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",Ge="[object Number]",pt="[object Null]",U="[object Object]",ie="[object Promise]",pe="[object Proxy]",ke="[object RegExp]",ve="[object Set]",Se="[object String]",Me="[object Symbol]",ze="[object Undefined]",Ke="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",ye="[object DataView]",We="[object Float32Array]",at="[object Float64Array]",Qe="[object Int8Array]",Y="[object Int16Array]",se="[object Int32Array]",j="[object Uint8Array]",$="[object Uint8ClampedArray]",J="[object Uint16Array]",be="[object Uint32Array]",Fe=/\b__p \+= '';/g,De=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Je=/&(?:amp|lt|gt|quot|#39);/g,Ze=/[&<>"']/g,Rt=RegExp(Je.source),Zt=RegExp(Ze.source),kt=/<%-([\s\S]+?)%>/g,nn=/<%([\s\S]+?)%>/g,Yt=/<%=([\s\S]+?)%>/g,jr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gr=/^\w*$/,Vr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,ii=RegExp(Ta.source),Ir=/^\s+/,ps=/\s/,fs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wr=/\{\n\/\* \[wrapped with (.+)\] \*/,hs=/,? & /,Wt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Rr=/[()=,{}\[\]\/\s]/,_i=/\\(\\)?/g,Al=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,ee=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,ln=/^0o[0-7]+$/i,ir=/^(?:0|[1-9]\d*)$/,ar=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yn=/($^)/,wo=/['\n\r\u2028\u2029\\]/g,Xa="\\ud800-\\udfff",Nr="\\u0300-\\u036f",rf="\\ufe20-\\ufe2f",af="\\u20d0-\\u20ff",V7=Nr+rf+af,W7="\\u2700-\\u27bf",q7="a-z\\xdf-\\xf6\\xf8-\\xff",kP="\\xac\\xb1\\xd7\\xf7",IP="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",RP="\\u2000-\\u206f",NP=" \\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",K7="A-Z\\xc0-\\xd6\\xd8-\\xde",Y7="\\ufe0e\\ufe0f",X7=kP+IP+RP+NP,Em="['’]",OP="["+Xa+"]",Z7="["+X7+"]",of="["+V7+"]",Q7="\\d+",DP="["+W7+"]",J7="["+q7+"]",eT="[^"+Xa+X7+Q7+W7+q7+K7+"]",vm="\\ud83c[\\udffb-\\udfff]",LP="(?:"+of+"|"+vm+")",tT="[^"+Xa+"]",ym="(?:\\ud83c[\\udde6-\\uddff]){2}",_m="[\\ud800-\\udbff][\\udc00-\\udfff]",Nu="["+K7+"]",nT="\\u200d",rT="(?:"+J7+"|"+eT+")",MP="(?:"+Nu+"|"+eT+")",iT="(?:"+Em+"(?:d|ll|m|re|s|t|ve))?",aT="(?:"+Em+"(?:D|LL|M|RE|S|T|VE))?",oT=LP+"?",sT="["+Y7+"]?",FP="(?:"+nT+"(?:"+[tT,ym,_m].join("|")+")"+sT+oT+")*",PP="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",BP="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lT=sT+oT+FP,UP="(?:"+[DP,ym,_m].join("|")+")"+lT,$P="(?:"+[tT+of+"?",of,ym,_m,OP].join("|")+")",zP=RegExp(Em,"g"),HP=RegExp(of,"g"),Tm=RegExp(vm+"(?="+vm+")|"+$P+lT,"g"),jP=RegExp([Nu+"?"+J7+"+"+iT+"(?="+[Z7,Nu,"$"].join("|")+")",MP+"+"+aT+"(?="+[Z7,Nu+rT,"$"].join("|")+")",Nu+"?"+rT+"+"+iT,Nu+"+"+aT,BP,PP,Q7,UP].join("|"),"g"),GP=RegExp("["+nT+Xa+V7+Y7+"]"),VP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,WP=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qP=-1,En={};En[We]=En[at]=En[Qe]=En[Y]=En[se]=En[j]=En[$]=En[J]=En[be]=!0,En[Te]=En[K]=En[ue]=En[ne]=En[ye]=En[Le]=En[Xe]=En[Ve]=En[ot]=En[Ge]=En[U]=En[ke]=En[ve]=En[Se]=En[Ke]=!1;var gn={};gn[Te]=gn[K]=gn[ue]=gn[ye]=gn[ne]=gn[Le]=gn[We]=gn[at]=gn[Qe]=gn[Y]=gn[se]=gn[ot]=gn[Ge]=gn[U]=gn[ke]=gn[ve]=gn[Se]=gn[Me]=gn[j]=gn[$]=gn[J]=gn[be]=!0,gn[Xe]=gn[Ve]=gn[Ke]=!1;var KP={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},YP={"&":"&","<":"<",">":">",'"':""","'":"'"},XP={"&":"&","<":"<",">":">",""":'"',"'":"'"},ZP={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QP=parseFloat,JP=parseInt,uT=typeof ql=="object"&&ql&&ql.Object===Object&&ql,eB=typeof self=="object"&&self&&self.Object===Object&&self,hr=uT||eB||Function("return this")(),Sm=t&&!t.nodeType&&t,Cl=Sm&&!0&&e&&!e.nodeType&&e,cT=Cl&&Cl.exports===Sm,wm=cT&&uT.process,Wi=function(){try{var te=Cl&&Cl.require&&Cl.require("util").types;return te||wm&&wm.binding&&wm.binding("util")}catch{}}(),dT=Wi&&Wi.isArrayBuffer,pT=Wi&&Wi.isDate,fT=Wi&&Wi.isMap,hT=Wi&&Wi.isRegExp,gT=Wi&&Wi.isSet,mT=Wi&&Wi.isTypedArray;function Ti(te,_e,ge){switch(ge.length){case 0:return te.call(_e);case 1:return te.call(_e,ge[0]);case 2:return te.call(_e,ge[0],ge[1]);case 3:return te.call(_e,ge[0],ge[1],ge[2])}return te.apply(_e,ge)}function tB(te,_e,ge,et){for(var _t=-1,Qt=te==null?0:te.length;++_t-1}function Am(te,_e,ge){for(var et=-1,_t=te==null?0:te.length;++et<_t;)if(ge(_e,te[et]))return!0;return!1}function wn(te,_e){for(var ge=-1,et=te==null?0:te.length,_t=Array(et);++ge-1;);return ge}function wT(te,_e){for(var ge=te.length;ge--&&Ou(_e,te[ge],0)>-1;);return ge}function cB(te,_e){for(var ge=te.length,et=0;ge--;)te[ge]===_e&&++et;return et}var dB=Im(KP),pB=Im(YP);function fB(te){return"\\"+ZP[te]}function hB(te,_e){return te==null?n:te[_e]}function Du(te){return GP.test(te)}function gB(te){return VP.test(te)}function mB(te){for(var _e,ge=[];!(_e=te.next()).done;)ge.push(_e.value);return ge}function Dm(te){var _e=-1,ge=Array(te.size);return te.forEach(function(et,_t){ge[++_e]=[_t,et]}),ge}function AT(te,_e){return function(ge){return te(_e(ge))}}function bs(te,_e){for(var ge=-1,et=te.length,_t=0,Qt=[];++ge-1}function rU(l,d){var h=this.__data__,_=wf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Ao.prototype.clear=JB,Ao.prototype.delete=eU,Ao.prototype.get=tU,Ao.prototype.has=nU,Ao.prototype.set=rU;function Co(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Xi(l,d,h,_,x,F){var H,X=d&f,ae=d&m,we=d&g;if(h&&(H=x?h(l,_,x,F):h(l)),H!==n)return H;if(!In(l))return l;var Ce=Tt(l);if(Ce){if(H=s$(l),!X)return ai(l,H)}else{var Ie=Dr(l),Ye=Ie==Ve||Ie==dt;if(Ss(l))return sS(l,X);if(Ie==U||Ie==Te||Ye&&!x){if(H=ae||Ye?{}:CS(l),!X)return ae?XU(l,vU(H,l)):YU(l,PT(H,l))}else{if(!gn[Ie])return x?l:{};H=l$(l,Ie,X)}}F||(F=new wa);var st=F.get(l);if(st)return st;F.set(l,H),tw(l)?l.forEach(function(Et){H.add(Xi(Et,d,h,Et,l,F))}):JS(l)&&l.forEach(function(Et,Nt){H.set(Nt,Xi(Et,d,h,Nt,l,F))});var bt=we?ae?a5:i5:ae?si:or,At=Ce?n:bt(l);return qi(At||l,function(Et,Nt){At&&(Nt=Et,Et=l[Nt]),Ac(H,Nt,Xi(Et,d,h,Nt,l,F))}),H}function yU(l){var d=or(l);return function(h){return BT(h,l,d)}}function BT(l,d,h){var _=h.length;if(l==null)return!_;for(l=dn(l);_--;){var x=h[_],F=d[x],H=l[x];if(H===n&&!(x in l)||!F(H))return!1}return!0}function UT(l,d,h){if(typeof l!="function")throw new Ki(o);return Oc(function(){l.apply(n,h)},d)}function Cc(l,d,h,_){var x=-1,F=sf,H=!0,X=l.length,ae=[],we=d.length;if(!X)return ae;h&&(d=wn(d,Si(h))),_?(F=Am,H=!1):d.length>=i&&(F=vc,H=!1,d=new Il(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:rw(_);h<_;)l[h++]=d;return l}function zT(l,d){var h=[];return vs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function gr(l,d,h,_,x){var F=-1,H=l.length;for(h||(h=c$),x||(x=[]);++F0&&h(X)?d>1?gr(X,d-1,h,_,x):ms(x,X):_||(x[x.length]=X)}return x}var $m=fS(),HT=fS(!0);function Za(l,d){return l&&$m(l,d,or)}function zm(l,d){return l&&HT(l,d,or)}function Cf(l,d){return gs(d,function(h){return No(l[h])})}function Nl(l,d){d=_s(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[Ja(d[h++])];return h&&h==_?l:n}function jT(l,d,h){var _=d(l);return Tt(l)?_:ms(_,h(l))}function qr(l){return l==null?l===n?ze:pt:xl&&xl in dn(l)?i$(l):b$(l)}function Hm(l,d){return l>d}function SU(l,d){return l!=null&&rn.call(l,d)}function wU(l,d){return l!=null&&d in dn(l)}function AU(l,d,h){return l>=Or(d,h)&&l=120&&Ce.length>=120)?new Il(H&&Ce):n}Ce=l[0];var Ie=-1,Ye=X[0];e:for(;++Ie-1;)X!==l&&bf.call(X,ae,1),bf.call(l,ae,1);return l}function JT(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Ro(x)?bf.call(l,x,1):Zm(l,x)}}return l}function Km(l,d){return l+yf(DT()*(d-l+1))}function BU(l,d,h,_){for(var x=-1,F=Zn(vf((d-l)/(h||1)),0),H=ge(F);F--;)H[_?F:++x]=l,l+=h;return H}function Ym(l,d){var h="";if(!l||d<1||d>V)return h;do d%2&&(h+=l),d=yf(d/2),d&&(l+=l);while(d);return h}function It(l,d){return p5(IS(l,d,li),l+"")}function UU(l){return FT(Gu(l))}function $U(l,d){var h=Gu(l);return Pf(h,Rl(d,0,h.length))}function Ic(l,d,h,_){if(!In(l))return l;d=_s(d,l);for(var x=-1,F=d.length,H=F-1,X=l;X!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=ge(x);++_>>1,H=l[F];H!==null&&!Ai(H)&&(h?H<=d:H=i){var we=d?null:e$(l);if(we)return uf(we);H=!1,x=vc,ae=new Il}else ae=d?[]:X;e:for(;++_=_?l:Zi(l,d,h)}var oS=NB||function(l){return hr.clearTimeout(l)};function sS(l,d){if(d)return l.slice();var h=l.length,_=kT?kT(h):new l.constructor(h);return l.copy(_),_}function t5(l){var d=new l.constructor(l.byteLength);return new gf(d).set(new gf(l)),d}function VU(l,d){var h=d?t5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function WU(l){var d=new l.constructor(l.source,qe.exec(l));return d.lastIndex=l.lastIndex,d}function qU(l){return wc?dn(wc.call(l)):{}}function lS(l,d){var h=d?t5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function uS(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=Ai(l),H=d!==n,X=d===null,ae=d===d,we=Ai(d);if(!X&&!we&&!F&&l>d||F&&H&&ae&&!X&&!we||_&&H&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=X)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function cS(l,d,h,_){for(var x=-1,F=l.length,H=h.length,X=-1,ae=d.length,we=Zn(F-H,0),Ce=ge(ae+we),Ie=!_;++X1?h[x-1]:n,H=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,H&&Kr(h[0],h[1],H)&&(F=x<3?n:F,x=1),d=dn(d);++_-1?x[F?d[H]:H]:n}}function mS(l){return Io(function(d){var h=d.length,_=h,x=Yi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Ki(o);if(x&&!H&&Mf(F)=="wrapper")var H=new Yi([],!0)}for(_=H?_:h;++_1&&Ut.reverse(),Ce&&aeX))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Ye=!0,st=h&b?new Il:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(fs,`{ + */sm.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,b=1,y=2,T=1,E=2,v=4,w=8,A=16,R=32,k=64,N=128,B=256,q=512,P=30,Q="...",$=800,oe=16,fe=1,ce=2,De=3,H=1/0,W=9007199254740991,se=17976931348623157e292,D=0/0,pe=4294967295,le=pe-1,L=pe>>>1,ie=[["ary",N],["bind",T],["bindKey",E],["curry",w],["curryRight",A],["flip",q],["partial",R],["partialRight",k],["rearg",B]],Se="[object Arguments]",X="[object Array]",ke="[object AsyncFunction]",te="[object Boolean]",Me="[object Date]",Re="[object DOMException]",Ze="[object Error]",We="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",je="[object Number]",pt="[object Null]",U="[object Object]",re="[object Promise]",de="[object Proxy]",xe="[object RegExp]",ye="[object Set]",Te="[object String]",Le="[object Symbol]",ze="[object Undefined]",Ye="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",Ee="[object DataView]",qe="[object Float32Array]",j="[object Float64Array]",me="[object Int8Array]",Ve="[object Int16Array]",ge="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",ne="[object Uint16Array]",ve="[object Uint32Array]",Qe=/\b__p \+= '';/g,Fe=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,Je=/[&<>"']/g,Rt=RegExp(rt.source),Qt=RegExp(Je.source),kt=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,Xt=/<%=([\s\S]+?)%>/g,Wr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,Kr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aa=/[\\^$.*+?()[\]{}|]/g,si=RegExp(Aa.source),Or=/^\s+/,Es=/\s/,vs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yr=/\{\n\/\* \[wrapped with (.+)\] \*/,_s=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dr=/[()=,{}\[\]\/\s]/,Si=/\\(\\)?/g,Nl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,J=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,ar=/^(?:0|[1-9]\d*)$/,or=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zn=/($^)/,No=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Lr="\\u0300-\\u036f",Ef="\\ufe20-\\ufe2f",vf="\\u20d0-\\u20ff",GT=Lr+Ef+vf,VT="\\u2700-\\u27bf",WT="a-z\\xdf-\\xf6\\xf8-\\xff",yU="\\xac\\xb1\\xd7\\xf7",EU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vU="\\u2000-\\u206f",_U=" \\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",qT="A-Z\\xc0-\\xd6\\xd8-\\xde",KT="\\ufe0e\\ufe0f",YT=yU+EU+vU+_U,G2="['’]",TU="["+no+"]",XT="["+YT+"]",_f="["+GT+"]",ZT="\\d+",SU="["+VT+"]",QT="["+WT+"]",JT="[^"+no+YT+ZT+VT+WT+qT+"]",V2="\\ud83c[\\udffb-\\udfff]",wU="(?:"+_f+"|"+V2+")",eS="[^"+no+"]",W2="(?:\\ud83c[\\udde6-\\uddff]){2}",q2="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+qT+"]",tS="\\u200d",nS="(?:"+QT+"|"+JT+")",AU="(?:"+Bu+"|"+JT+")",rS="(?:"+G2+"(?:d|ll|m|re|s|t|ve))?",iS="(?:"+G2+"(?:D|LL|M|RE|S|T|VE))?",aS=wU+"?",oS="["+KT+"]?",CU="(?:"+tS+"(?:"+[eS,W2,q2].join("|")+")"+oS+aS+")*",kU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sS=oS+aS+CU,IU="(?:"+[SU,W2,q2].join("|")+")"+sS,RU="(?:"+[eS+_f+"?",_f,W2,q2,TU].join("|")+")",NU=RegExp(G2,"g"),OU=RegExp(_f,"g"),K2=RegExp(V2+"(?="+V2+")|"+RU+sS,"g"),DU=RegExp([Bu+"?"+QT+"+"+rS+"(?="+[XT,Bu,"$"].join("|")+")",AU+"+"+iS+"(?="+[XT,Bu+nS,"$"].join("|")+")",Bu+"?"+nS+"+"+rS,Bu+"+"+iS,xU,kU,ZT,IU].join("|"),"g"),LU=RegExp("["+tS+no+GT+KT+"]"),MU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],PU=-1,En={};En[qe]=En[j]=En[me]=En[Ve]=En[ge]=En[G]=En[K]=En[ne]=En[ve]=!0,En[Se]=En[X]=En[ue]=En[te]=En[Ee]=En[Me]=En[Ze]=En[We]=En[ot]=En[je]=En[U]=En[xe]=En[ye]=En[Te]=En[Ye]=!1;var mn={};mn[Se]=mn[X]=mn[ue]=mn[Ee]=mn[te]=mn[Me]=mn[qe]=mn[j]=mn[me]=mn[Ve]=mn[ge]=mn[ot]=mn[je]=mn[U]=mn[xe]=mn[ye]=mn[Te]=mn[Le]=mn[G]=mn[K]=mn[ne]=mn[ve]=!0,mn[Ze]=mn[We]=mn[Ye]=!1;var BU={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},UU={"&":"&","<":"<",">":">",'"':""","'":"'"},$U={"&":"&","<":"<",">":">",""":'"',"'":"'"},zU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HU=parseFloat,jU=parseInt,lS=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,GU=typeof self=="object"&&self&&self.Object===Object&&self,mr=lS||GU||Function("return this")(),Y2=t&&!t.nodeType&&t,Ol=Y2&&!0&&e&&!e.nodeType&&e,uS=Ol&&Ol.exports===Y2,X2=uS&&lS.process,Yi=function(){try{var ee=Ol&&Ol.require&&Ol.require("util").types;return ee||X2&&X2.binding&&X2.binding("util")}catch{}}(),cS=Yi&&Yi.isArrayBuffer,dS=Yi&&Yi.isDate,pS=Yi&&Yi.isMap,fS=Yi&&Yi.isRegExp,hS=Yi&&Yi.isSet,gS=Yi&&Yi.isTypedArray;function wi(ee,_e,he){switch(he.length){case 0:return ee.call(_e);case 1:return ee.call(_e,he[0]);case 2:return ee.call(_e,he[0],he[1]);case 3:return ee.call(_e,he[0],he[1],he[2])}return ee.apply(_e,he)}function VU(ee,_e,he,et){for(var _t=-1,Jt=ee==null?0:ee.length;++_t-1}function Z2(ee,_e,he){for(var et=-1,_t=ee==null?0:ee.length;++et<_t;)if(he(_e,ee[et]))return!0;return!1}function An(ee,_e){for(var he=-1,et=ee==null?0:ee.length,_t=Array(et);++he-1;);return he}function SS(ee,_e){for(var he=ee.length;he--&&Uu(_e,ee[he],0)>-1;);return he}function e$(ee,_e){for(var he=ee.length,et=0;he--;)ee[he]===_e&&++et;return et}var t$=t5(BU),n$=t5(UU);function r$(ee){return"\\"+zU[ee]}function i$(ee,_e){return ee==null?n:ee[_e]}function $u(ee){return LU.test(ee)}function a$(ee){return MU.test(ee)}function o$(ee){for(var _e,he=[];!(_e=ee.next()).done;)he.push(_e.value);return he}function a5(ee){var _e=-1,he=Array(ee.size);return ee.forEach(function(et,_t){he[++_e]=[_t,et]}),he}function wS(ee,_e){return function(he){return ee(_e(he))}}function ws(ee,_e){for(var he=-1,et=ee.length,_t=0,Jt=[];++he-1}function q$(l,d){var h=this.__data__,_=Uf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Oo.prototype.clear=j$,Oo.prototype.delete=G$,Oo.prototype.get=V$,Oo.prototype.has=W$,Oo.prototype.set=q$;function Do(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Ji(l,d,h,_,x,F){var z,Z=d&f,ae=d&m,we=d&g;if(h&&(z=x?h(l,_,x,F):h(l)),z!==n)return z;if(!Rn(l))return l;var Ce=Tt(l);if(Ce){if(z=Zz(l),!Z)return li(l,z)}else{var Ie=Fr(l),Xe=Ie==We||Ie==dt;if(Rs(l))return ow(l,Z);if(Ie==U||Ie==Se||Xe&&!x){if(z=ae||Xe?{}:Aw(l),!Z)return ae?$z(l,uz(z,l)):Uz(l,FS(z,l))}else{if(!mn[Ie])return x?l:{};z=Qz(l,Ie,Z)}}F||(F=new ka);var st=F.get(l);if(st)return st;F.set(l,z),eA(l)?l.forEach(function(yt){z.add(Ji(yt,d,h,yt,l,F))}):Qw(l)&&l.forEach(function(yt,Nt){z.set(Nt,Ji(yt,d,h,Nt,l,F))});var bt=we?ae?N5:R5:ae?ci:sr,wt=Ce?n:bt(l);return Xi(wt||l,function(yt,Nt){wt&&(Nt=yt,yt=l[Nt]),Pc(z,Nt,Ji(yt,d,h,Nt,l,F))}),z}function cz(l){var d=sr(l);return function(h){return PS(h,l,d)}}function PS(l,d,h){var _=h.length;if(l==null)return!_;for(l=pn(l);_--;){var x=h[_],F=d[x],z=l[x];if(z===n&&!(x in l)||!F(z))return!1}return!0}function BS(l,d,h){if(typeof l!="function")throw new Zi(o);return Gc(function(){l.apply(n,h)},d)}function Bc(l,d,h,_){var x=-1,F=Tf,z=!0,Z=l.length,ae=[],we=d.length;if(!Z)return ae;h&&(d=An(d,Ai(h))),_?(F=Z2,z=!1):d.length>=i&&(F=Nc,z=!1,d=new Ml(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:nA(_);h<_;)l[h++]=d;return l}function $S(l,d){var h=[];return Cs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function br(l,d,h,_,x){var F=-1,z=l.length;for(h||(h=eH),x||(x=[]);++F0&&h(Z)?d>1?br(Z,d-1,h,_,x):Ss(x,Z):_||(x[x.length]=Z)}return x}var p5=pw(),zS=pw(!0);function ro(l,d){return l&&p5(l,d,sr)}function f5(l,d){return l&&zS(l,d,sr)}function zf(l,d){return Ts(d,function(h){return Bo(l[h])})}function Pl(l,d){d=xs(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[ao(d[h++])];return h&&h==_?l:n}function HS(l,d,h){var _=d(l);return Tt(l)?_:Ss(_,h(l))}function Xr(l){return l==null?l===n?ze:pt:Dl&&Dl in pn(l)?Kz(l):sH(l)}function h5(l,d){return l>d}function fz(l,d){return l!=null&&an.call(l,d)}function hz(l,d){return l!=null&&d in pn(l)}function gz(l,d,h){return l>=Mr(d,h)&&l=120&&Ce.length>=120)?new Ml(z&&Ce):n}Ce=l[0];var Ie=-1,Xe=Z[0];e:for(;++Ie-1;)Z!==l&&Of.call(Z,ae,1),Of.call(l,ae,1);return l}function QS(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Po(x)?Of.call(l,x,1):S5(l,x)}}return l}function v5(l,d){return l+Mf(OS()*(d-l+1))}function xz(l,d,h,_){for(var x=-1,F=Jn(Lf((d-l)/(h||1)),0),z=he(F);F--;)z[_?F:++x]=l,l+=h;return z}function _5(l,d){var h="";if(!l||d<1||d>W)return h;do d%2&&(h+=l),d=Mf(d/2),d&&(l+=l);while(d);return h}function xt(l,d){return B5(xw(l,d,di),l+"")}function Iz(l){return MS(Zu(l))}function Rz(l,d){var h=Zu(l);return Qf(h,Fl(d,0,h.length))}function zc(l,d,h,_){if(!Rn(l))return l;d=xs(d,l);for(var x=-1,F=d.length,z=F-1,Z=l;Z!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=he(x);++_>>1,z=l[F];z!==null&&!ki(z)&&(h?z<=d:z=i){var we=d?null:Gz(l);if(we)return wf(we);z=!1,x=Nc,ae=new Ml}else ae=d?[]:Z;e:for(;++_=_?l:ea(l,d,h)}var aw=_$||function(l){return mr.clearTimeout(l)};function ow(l,d){if(d)return l.slice();var h=l.length,_=kS?kS(h):new l.constructor(h);return l.copy(_),_}function k5(l){var d=new l.constructor(l.byteLength);return new Rf(d).set(new Rf(l)),d}function Mz(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function Fz(l){var d=new l.constructor(l.source,Ke.exec(l));return d.lastIndex=l.lastIndex,d}function Pz(l){return Fc?pn(Fc.call(l)):{}}function sw(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function lw(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=ki(l),z=d!==n,Z=d===null,ae=d===d,we=ki(d);if(!Z&&!we&&!F&&l>d||F&&z&&ae&&!Z&&!we||_&&z&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=Z)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function uw(l,d,h,_){for(var x=-1,F=l.length,z=h.length,Z=-1,ae=d.length,we=Jn(F-z,0),Ce=he(ae+we),Ie=!_;++Z1?h[x-1]:n,z=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,z&&Zr(h[0],h[1],z)&&(F=x<3?n:F,x=1),d=pn(d);++_-1?x[F?d[z]:z]:n}}function gw(l){return Fo(function(d){var h=d.length,_=h,x=Qi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Zi(o);if(x&&!z&&Xf(F)=="wrapper")var z=new Qi([],!0)}for(_=z?_:h;++_1&&Bt.reverse(),Ce&&aeZ))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Xe=!0,st=h&y?new Ml:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(vs,`{ /* [wrapped with `+d+`] */ -`)}function c$(l){return Tt(l)||Ll(l)||!!(NT&&l&&l[NT])}function Ro(l,d){var h=typeof l;return d=d??V,!!d&&(h=="number"||h!="symbol"&&ir.test(l))&&l>-1&&l%1==0&&l0){if(++d>=z)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Pf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,zS(l,h)});function HS(l){var d=M(l);return d.__chain__=!0,d}function _z(l,d){return d(l),l}function Bf(l,d){return d(l)}var Tz=Io(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return Um(F,l)};return d>1||this.__actions__.length||!(_ instanceof Ft)||!Ro(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Bf,args:[x],thisArg:n}),new Yi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function Sz(){return HS(this)}function wz(){return new Yi(this.value(),this.__chain__)}function Az(){this.__values__===n&&(this.__values__=nw(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function Cz(){return this}function xz(l){for(var d,h=this;h instanceof Sf;){var _=MS(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function kz(){var l=this.__wrapped__;if(l instanceof Ft){var d=l;return this.__actions__.length&&(d=new Ft(this)),d=d.reverse(),d.__actions__.push({func:Bf,args:[f5],thisArg:n}),new Yi(d,this.__chain__)}return this.thru(f5)}function Iz(){return iS(this.__wrapped__,this.__actions__)}var Rz=Rf(function(l,d,h){rn.call(l,h)?++l[h]:xo(l,h,1)});function Nz(l,d,h){var _=Tt(l)?bT:_U;return h&&Kr(l,d,h)&&(d=n),_(l,mt(d,3))}function Oz(l,d){var h=Tt(l)?gs:zT;return h(l,mt(d,3))}var Dz=gS(FS),Lz=gS(PS);function Mz(l,d){return gr(Uf(l,d),1)}function Fz(l,d){return gr(Uf(l,d),Z)}function Pz(l,d,h){return h=h===n?1:St(h),gr(Uf(l,d),h)}function jS(l,d){var h=Tt(l)?qi:vs;return h(l,mt(d,3))}function GS(l,d){var h=Tt(l)?nB:$T;return h(l,mt(d,3))}var Bz=Rf(function(l,d,h){rn.call(l,h)?l[h].push(d):xo(l,h,[d])});function Uz(l,d,h,_){l=oi(l)?l:Gu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Zn(x+h,0)),Gf(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Ou(l,d,h)>-1}var $z=It(function(l,d,h){var _=-1,x=typeof d=="function",F=oi(l)?ge(l.length):[];return vs(l,function(H){F[++_]=x?Ti(d,H,h):xc(H,d,h)}),F}),zz=Rf(function(l,d,h){xo(l,h,d)});function Uf(l,d){var h=Tt(l)?wn:qT;return h(l,mt(d,3))}function Hz(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),ZT(l,d,h))}var jz=Rf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Gz(l,d,h){var _=Tt(l)?Cm:_T,x=arguments.length<3;return _(l,mt(d,4),h,x,vs)}function Vz(l,d,h){var _=Tt(l)?rB:_T,x=arguments.length<3;return _(l,mt(d,4),h,x,$T)}function Wz(l,d){var h=Tt(l)?gs:zT;return h(l,Hf(mt(d,3)))}function qz(l){var d=Tt(l)?FT:UU;return d(l)}function Kz(l,d,h){(h?Kr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?mU:$U;return _(l,d)}function Yz(l){var d=Tt(l)?bU:HU;return d(l)}function Xz(l){if(l==null)return 0;if(oi(l))return Gf(l)?Lu(l):l.length;var d=Dr(l);return d==ot||d==ve?l.size:Vm(l).length}function Zz(l,d,h){var _=Tt(l)?xm:jU;return h&&Kr(l,d,h)&&(d=n),_(l,mt(d,3))}var Qz=It(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Kr(l,d[0],d[1])?d=[]:h>2&&Kr(d[0],d[1],d[2])&&(d=[d[0]]),ZT(l,gr(d,1),[])}),$f=OB||function(){return hr.Date.now()};function Jz(l,d){if(typeof d!="function")throw new Ki(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function VS(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,ko(l,R,n,n,n,n,d)}function WS(l,d){var h;if(typeof d!="function")throw new Ki(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var g5=It(function(l,d,h){var _=T;if(h.length){var x=bs(h,Hu(g5));_|=D}return ko(l,_,d,h,x)}),qS=It(function(l,d,h){var _=T|v;if(h.length){var x=bs(h,Hu(qS));_|=D}return ko(d,_,l,h,x)});function KS(l,d,h){d=h?n:d;var _=ko(l,w,n,n,n,n,n,d);return _.placeholder=KS.placeholder,_}function YS(l,d,h){d=h?n:d;var _=ko(l,A,n,n,n,n,n,d);return _.placeholder=YS.placeholder,_}function XS(l,d,h){var _,x,F,H,X,ae,we=0,Ce=!1,Ie=!1,Ye=!0;if(typeof l!="function")throw new Ki(o);d=Ji(d)||0,In(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Zn(Ji(h.maxWait)||0,d):F,Ye="trailing"in h?!!h.trailing:Ye);function st(zn){var Ca=_,Do=x;return _=x=n,we=zn,H=l.apply(Do,Ca),H}function bt(zn){return we=zn,X=Oc(Nt,d),Ce?st(zn):H}function At(zn){var Ca=zn-ae,Do=zn-we,gw=d-Ca;return Ie?Or(gw,F-Do):gw}function Et(zn){var Ca=zn-ae,Do=zn-we;return ae===n||Ca>=d||Ca<0||Ie&&Do>=F}function Nt(){var zn=$f();if(Et(zn))return Ut(zn);X=Oc(Nt,At(zn))}function Ut(zn){return X=n,Ye&&_?st(zn):(_=x=n,H)}function Ci(){X!==n&&oS(X),we=0,_=ae=x=X=n}function Yr(){return X===n?H:Ut($f())}function xi(){var zn=$f(),Ca=Et(zn);if(_=arguments,x=this,ae=zn,Ca){if(X===n)return bt(ae);if(Ie)return oS(X),X=Oc(Nt,d),st(ae)}return X===n&&(X=Oc(Nt,d)),H}return xi.cancel=Ci,xi.flush=Yr,xi}var eH=It(function(l,d){return UT(l,1,d)}),tH=It(function(l,d,h){return UT(l,Ji(d)||0,h)});function nH(l){return ko(l,W)}function zf(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Ki(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var H=l.apply(this,_);return h.cache=F.set(x,H)||F,H};return h.cache=new(zf.Cache||Co),h}zf.Cache=Co;function Hf(l){if(typeof l!="function")throw new Ki(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function rH(l){return WS(2,l)}var iH=GU(function(l,d){d=d.length==1&&Tt(d[0])?wn(d[0],Si(mt())):wn(gr(d,1),Si(mt()));var h=d.length;return It(function(_){for(var x=-1,F=Or(_.length,h);++x=d}),Ll=GT(function(){return arguments}())?GT:function(l){return Ln(l)&&rn.call(l,"callee")&&!RT.call(l,"callee")},Tt=ge.isArray,vH=dT?Si(dT):xU;function oi(l){return l!=null&&jf(l.length)&&!No(l)}function $n(l){return Ln(l)&&oi(l)}function yH(l){return l===!0||l===!1||Ln(l)&&qr(l)==ne}var Ss=LB||x5,_H=pT?Si(pT):kU;function TH(l){return Ln(l)&&l.nodeType===1&&!Dc(l)}function SH(l){if(l==null)return!0;if(oi(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Ss(l)||ju(l)||Ll(l)))return!l.length;var d=Dr(l);if(d==ot||d==ve)return!l.size;if(Nc(l))return!Vm(l).length;for(var h in l)if(rn.call(l,h))return!1;return!0}function wH(l,d){return kc(l,d)}function AH(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?kc(l,d,n,h):!!_}function b5(l){if(!Ln(l))return!1;var d=qr(l);return d==Xe||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Dc(l)}function CH(l){return typeof l=="number"&&OT(l)}function No(l){if(!In(l))return!1;var d=qr(l);return d==Ve||d==dt||d==xe||d==pe}function QS(l){return typeof l=="number"&&l==St(l)}function jf(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=V}function In(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Ln(l){return l!=null&&typeof l=="object"}var JS=fT?Si(fT):RU;function xH(l,d){return l===d||Gm(l,d,s5(d))}function kH(l,d,h){return h=typeof h=="function"?h:n,Gm(l,d,s5(d),h)}function IH(l){return ew(l)&&l!=+l}function RH(l){if(f$(l))throw new _t(a);return VT(l)}function NH(l){return l===null}function OH(l){return l==null}function ew(l){return typeof l=="number"||Ln(l)&&qr(l)==Ge}function Dc(l){if(!Ln(l)||qr(l)!=U)return!1;var d=mf(l);if(d===null)return!0;var h=rn.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&pf.call(h)==kB}var E5=hT?Si(hT):NU;function DH(l){return QS(l)&&l>=-V&&l<=V}var tw=gT?Si(gT):OU;function Gf(l){return typeof l=="string"||!Tt(l)&&Ln(l)&&qr(l)==Se}function Ai(l){return typeof l=="symbol"||Ln(l)&&qr(l)==Me}var ju=mT?Si(mT):DU;function LH(l){return l===n}function MH(l){return Ln(l)&&Dr(l)==Ke}function FH(l){return Ln(l)&&qr(l)==jt}var PH=Lf(Wm),BH=Lf(function(l,d){return l<=d});function nw(l){if(!l)return[];if(oi(l))return Gf(l)?Sa(l):ai(l);if(yc&&l[yc])return mB(l[yc]());var d=Dr(l),h=d==ot?Dm:d==ve?uf:Gu;return h(l)}function Oo(l){if(!l)return l===0?l:0;if(l=Ji(l),l===Z||l===-Z){var d=l<0?-1:1;return d*ce}return l===l?l:0}function St(l){var d=Oo(l),h=d%1;return d===d?h?d-h:d:0}function rw(l){return l?Rl(St(l),0,me):0}function Ji(l){if(typeof l=="number")return l;if(Ai(l))return N;if(In(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=In(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=TT(l);var h=Be.test(l);return h||ln.test(l)?JP(l.slice(2),h?2:8):ee.test(l)?N:+l}function iw(l){return Qa(l,si(l))}function UH(l){return l?Rl(St(l),-V,V):l===0?l:0}function Jt(l){return l==null?"":wi(l)}var $H=$u(function(l,d){if(Nc(d)||oi(d)){Qa(d,or(d),l);return}for(var h in d)rn.call(d,h)&&Ac(l,h,d[h])}),aw=$u(function(l,d){Qa(d,si(d),l)}),Vf=$u(function(l,d,h,_){Qa(d,si(d),l,_)}),zH=$u(function(l,d,h,_){Qa(d,or(d),l,_)}),HH=Io(Um);function jH(l,d){var h=Uu(l);return d==null?h:PT(h,d)}var GH=It(function(l,d){l=dn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Kr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],H=si(F),X=-1,ae=H.length;++X1),F}),Qa(l,a5(l),h),_&&(h=Xi(h,f|m|g,t$));for(var x=d.length;x--;)Zm(h,d[x]);return h});function lj(l,d){return sw(l,Hf(mt(d)))}var uj=Io(function(l,d){return l==null?{}:FU(l,d)});function sw(l,d){if(l==null)return{};var h=wn(a5(l),function(_){return[_]});return d=mt(d),QT(l,h,function(_,x){return d(_,x[0])})}function cj(l,d,h){d=_s(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=DT();return Or(l+x*(d-l+QP("1e-"+((x+"").length-1))),d)}return Km(l,d)}var _j=zu(function(l,d,h){return d=d.toLowerCase(),l+(h?cw(d):d)});function cw(l){return _5(Jt(l).toLowerCase())}function dw(l){return l=Jt(l),l&&l.replace(ar,dB).replace(HP,"")}function Tj(l,d,h){l=Jt(l),d=wi(d);var _=l.length;h=h===n?_:Rl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function Sj(l){return l=Jt(l),l&&Zt.test(l)?l.replace(Ze,pB):l}function wj(l){return l=Jt(l),l&&ii.test(l)?l.replace(Ta,"\\$&"):l}var Aj=zu(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),Cj=zu(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),xj=hS("toLowerCase");function kj(l,d,h){l=Jt(l),d=St(d);var _=d?Lu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Df(yf(x),h)+l+Df(vf(x),h)}function Ij(l,d,h){l=Jt(l),d=St(d);var _=d?Lu(l):0;return d&&_>>0,h?(l=Jt(l),l&&(typeof d=="string"||d!=null&&!E5(d))&&(d=wi(d),!d&&Du(l))?Ts(Sa(l),0,h):l.split(d,h)):[]}var Fj=zu(function(l,d,h){return l+(h?" ":"")+_5(d)});function Pj(l,d,h){return l=Jt(l),h=h==null?0:Rl(St(h),0,l.length),d=wi(d),l.slice(h,h+d.length)==d}function Bj(l,d,h){var _=M.templateSettings;h&&Kr(l,d,h)&&(d=n),l=Jt(l),d=Vf({},d,_,_S);var x=Vf({},d.imports,_.imports,_S),F=or(x),H=Om(x,F),X,ae,we=0,Ce=d.interpolate||Yn,Ie="__p += '",Ye=Lm((d.escape||Yn).source+"|"+Ce.source+"|"+(Ce===Yt?Al:Yn).source+"|"+(d.evaluate||Yn).source+"|$","g"),st="//# sourceURL="+(rn.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qP+"]")+` -`;l.replace(Ye,function(Et,Nt,Ut,Ci,Yr,xi){return Ut||(Ut=Ci),Ie+=l.slice(we,xi).replace(wo,fB),Nt&&(X=!0,Ie+=`' + +`)}function eH(l){return Tt(l)||$l(l)||!!(RS&&l&&l[RS])}function Po(l,d){var h=typeof l;return d=d??W,!!d&&(h=="number"||h!="symbol"&&ar.test(l))&&l>-1&&l%1==0&&l0){if(++d>=$)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Qf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,$w(l,h)});function zw(l){var d=M(l);return d.__chain__=!0,d}function dj(l,d){return d(l),l}function Jf(l,d){return d(l)}var pj=Fo(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return d5(F,l)};return d>1||this.__actions__.length||!(_ instanceof Mt)||!Po(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Jf,args:[x],thisArg:n}),new Qi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function fj(){return zw(this)}function hj(){return new Qi(this.value(),this.__chain__)}function gj(){this.__values__===n&&(this.__values__=tA(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function mj(){return this}function bj(l){for(var d,h=this;h instanceof Bf;){var _=Lw(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function yj(){var l=this.__wrapped__;if(l instanceof Mt){var d=l;return this.__actions__.length&&(d=new Mt(this)),d=d.reverse(),d.__actions__.push({func:Jf,args:[U5],thisArg:n}),new Qi(d,this.__chain__)}return this.thru(U5)}function Ej(){return rw(this.__wrapped__,this.__actions__)}var vj=Vf(function(l,d,h){an.call(l,h)?++l[h]:Lo(l,h,1)});function _j(l,d,h){var _=Tt(l)?mS:dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}function Tj(l,d){var h=Tt(l)?Ts:$S;return h(l,mt(d,3))}var Sj=hw(Mw),wj=hw(Fw);function Aj(l,d){return br(e0(l,d),1)}function Cj(l,d){return br(e0(l,d),H)}function kj(l,d,h){return h=h===n?1:St(h),br(e0(l,d),h)}function Hw(l,d){var h=Tt(l)?Xi:Cs;return h(l,mt(d,3))}function jw(l,d){var h=Tt(l)?WU:US;return h(l,mt(d,3))}var xj=Vf(function(l,d,h){an.call(l,h)?l[h].push(d):Lo(l,h,[d])});function Ij(l,d,h,_){l=ui(l)?l:Zu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Jn(x+h,0)),a0(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Uu(l,d,h)>-1}var Rj=xt(function(l,d,h){var _=-1,x=typeof d=="function",F=ui(l)?he(l.length):[];return Cs(l,function(z){F[++_]=x?wi(d,z,h):Uc(z,d,h)}),F}),Nj=Vf(function(l,d,h){Lo(l,h,d)});function e0(l,d){var h=Tt(l)?An:WS;return h(l,mt(d,3))}function Oj(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),XS(l,d,h))}var Dj=Vf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Lj(l,d,h){var _=Tt(l)?Q2:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,Cs)}function Mj(l,d,h){var _=Tt(l)?qU:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,US)}function Fj(l,d){var h=Tt(l)?Ts:$S;return h(l,r0(mt(d,3)))}function Pj(l){var d=Tt(l)?MS:Iz;return d(l)}function Bj(l,d,h){(h?Zr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?oz:Rz;return _(l,d)}function Uj(l){var d=Tt(l)?sz:Oz;return d(l)}function $j(l){if(l==null)return 0;if(ui(l))return a0(l)?zu(l):l.length;var d=Fr(l);return d==ot||d==ye?l.size:b5(l).length}function zj(l,d,h){var _=Tt(l)?J2:Dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}var Hj=xt(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Zr(l,d[0],d[1])?d=[]:h>2&&Zr(d[0],d[1],d[2])&&(d=[d[0]]),XS(l,br(d,1),[])}),t0=T$||function(){return mr.Date.now()};function jj(l,d){if(typeof d!="function")throw new Zi(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function Gw(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,Mo(l,N,n,n,n,n,d)}function Vw(l,d){var h;if(typeof d!="function")throw new Zi(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var z5=xt(function(l,d,h){var _=T;if(h.length){var x=ws(h,Yu(z5));_|=R}return Mo(l,_,d,h,x)}),Ww=xt(function(l,d,h){var _=T|E;if(h.length){var x=ws(h,Yu(Ww));_|=R}return Mo(d,_,l,h,x)});function qw(l,d,h){d=h?n:d;var _=Mo(l,w,n,n,n,n,n,d);return _.placeholder=qw.placeholder,_}function Kw(l,d,h){d=h?n:d;var _=Mo(l,A,n,n,n,n,n,d);return _.placeholder=Kw.placeholder,_}function Yw(l,d,h){var _,x,F,z,Z,ae,we=0,Ce=!1,Ie=!1,Xe=!0;if(typeof l!="function")throw new Zi(o);d=na(d)||0,Rn(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Jn(na(h.maxWait)||0,d):F,Xe="trailing"in h?!!h.trailing:Xe);function st(Hn){var Ia=_,$o=x;return _=x=n,we=Hn,z=l.apply($o,Ia),z}function bt(Hn){return we=Hn,Z=Gc(Nt,d),Ce?st(Hn):z}function wt(Hn){var Ia=Hn-ae,$o=Hn-we,hA=d-Ia;return Ie?Mr(hA,F-$o):hA}function yt(Hn){var Ia=Hn-ae,$o=Hn-we;return ae===n||Ia>=d||Ia<0||Ie&&$o>=F}function Nt(){var Hn=t0();if(yt(Hn))return Bt(Hn);Z=Gc(Nt,wt(Hn))}function Bt(Hn){return Z=n,Xe&&_?st(Hn):(_=x=n,z)}function xi(){Z!==n&&aw(Z),we=0,_=ae=x=Z=n}function Qr(){return Z===n?z:Bt(t0())}function Ii(){var Hn=t0(),Ia=yt(Hn);if(_=arguments,x=this,ae=Hn,Ia){if(Z===n)return bt(ae);if(Ie)return aw(Z),Z=Gc(Nt,d),st(ae)}return Z===n&&(Z=Gc(Nt,d)),z}return Ii.cancel=xi,Ii.flush=Qr,Ii}var Gj=xt(function(l,d){return BS(l,1,d)}),Vj=xt(function(l,d,h){return BS(l,na(d)||0,h)});function Wj(l){return Mo(l,q)}function n0(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Zi(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var z=l.apply(this,_);return h.cache=F.set(x,z)||F,z};return h.cache=new(n0.Cache||Do),h}n0.Cache=Do;function r0(l){if(typeof l!="function")throw new Zi(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function qj(l){return Vw(2,l)}var Kj=Lz(function(l,d){d=d.length==1&&Tt(d[0])?An(d[0],Ai(mt())):An(br(d,1),Ai(mt()));var h=d.length;return xt(function(_){for(var x=-1,F=Mr(_.length,h);++x=d}),$l=jS(function(){return arguments}())?jS:function(l){return Mn(l)&&an.call(l,"callee")&&!IS.call(l,"callee")},Tt=he.isArray,uG=cS?Ai(cS):bz;function ui(l){return l!=null&&i0(l.length)&&!Bo(l)}function zn(l){return Mn(l)&&ui(l)}function cG(l){return l===!0||l===!1||Mn(l)&&Xr(l)==te}var Rs=w$||J5,dG=dS?Ai(dS):yz;function pG(l){return Mn(l)&&l.nodeType===1&&!Vc(l)}function fG(l){if(l==null)return!0;if(ui(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Rs(l)||Xu(l)||$l(l)))return!l.length;var d=Fr(l);if(d==ot||d==ye)return!l.size;if(jc(l))return!b5(l).length;for(var h in l)if(an.call(l,h))return!1;return!0}function hG(l,d){return $c(l,d)}function gG(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?$c(l,d,n,h):!!_}function j5(l){if(!Mn(l))return!1;var d=Xr(l);return d==Ze||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Vc(l)}function mG(l){return typeof l=="number"&&NS(l)}function Bo(l){if(!Rn(l))return!1;var d=Xr(l);return d==We||d==dt||d==ke||d==de}function Zw(l){return typeof l=="number"&&l==St(l)}function i0(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Rn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Mn(l){return l!=null&&typeof l=="object"}var Qw=pS?Ai(pS):vz;function bG(l,d){return l===d||m5(l,d,D5(d))}function yG(l,d,h){return h=typeof h=="function"?h:n,m5(l,d,D5(d),h)}function EG(l){return Jw(l)&&l!=+l}function vG(l){if(rH(l))throw new _t(a);return GS(l)}function _G(l){return l===null}function TG(l){return l==null}function Jw(l){return typeof l=="number"||Mn(l)&&Xr(l)==je}function Vc(l){if(!Mn(l)||Xr(l)!=U)return!1;var d=Nf(l);if(d===null)return!0;var h=an.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&kf.call(h)==y$}var G5=fS?Ai(fS):_z;function SG(l){return Zw(l)&&l>=-W&&l<=W}var eA=hS?Ai(hS):Tz;function a0(l){return typeof l=="string"||!Tt(l)&&Mn(l)&&Xr(l)==Te}function ki(l){return typeof l=="symbol"||Mn(l)&&Xr(l)==Le}var Xu=gS?Ai(gS):Sz;function wG(l){return l===n}function AG(l){return Mn(l)&&Fr(l)==Ye}function CG(l){return Mn(l)&&Xr(l)==jt}var kG=Yf(y5),xG=Yf(function(l,d){return l<=d});function tA(l){if(!l)return[];if(ui(l))return a0(l)?Ca(l):li(l);if(Oc&&l[Oc])return o$(l[Oc]());var d=Fr(l),h=d==ot?a5:d==ye?wf:Zu;return h(l)}function Uo(l){if(!l)return l===0?l:0;if(l=na(l),l===H||l===-H){var d=l<0?-1:1;return d*se}return l===l?l:0}function St(l){var d=Uo(l),h=d%1;return d===d?h?d-h:d:0}function nA(l){return l?Fl(St(l),0,pe):0}function na(l){if(typeof l=="number")return l;if(ki(l))return D;if(Rn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Rn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=_S(l);var h=Be.test(l);return h||un.test(l)?jU(l.slice(2),h?2:8):J.test(l)?D:+l}function rA(l){return io(l,ci(l))}function IG(l){return l?Fl(St(l),-W,W):l===0?l:0}function en(l){return l==null?"":Ci(l)}var RG=qu(function(l,d){if(jc(d)||ui(d)){io(d,sr(d),l);return}for(var h in d)an.call(d,h)&&Pc(l,h,d[h])}),iA=qu(function(l,d){io(d,ci(d),l)}),o0=qu(function(l,d,h,_){io(d,ci(d),l,_)}),NG=qu(function(l,d,h,_){io(d,sr(d),l,_)}),OG=Fo(d5);function DG(l,d){var h=Wu(l);return d==null?h:FS(h,d)}var LG=xt(function(l,d){l=pn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Zr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],z=ci(F),Z=-1,ae=z.length;++Z1),F}),io(l,N5(l),h),_&&(h=Ji(h,f|m|g,Vz));for(var x=d.length;x--;)S5(h,d[x]);return h});function QG(l,d){return oA(l,r0(mt(d)))}var JG=Fo(function(l,d){return l==null?{}:Cz(l,d)});function oA(l,d){if(l==null)return{};var h=An(N5(l),function(_){return[_]});return d=mt(d),ZS(l,h,function(_,x){return d(_,x[0])})}function eV(l,d,h){d=xs(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=OS();return Mr(l+x*(d-l+HU("1e-"+((x+"").length-1))),d)}return v5(l,d)}var dV=Ku(function(l,d,h){return d=d.toLowerCase(),l+(h?uA(d):d)});function uA(l){return q5(en(l).toLowerCase())}function cA(l){return l=en(l),l&&l.replace(or,t$).replace(OU,"")}function pV(l,d,h){l=en(l),d=Ci(d);var _=l.length;h=h===n?_:Fl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function fV(l){return l=en(l),l&&Qt.test(l)?l.replace(Je,n$):l}function hV(l){return l=en(l),l&&si.test(l)?l.replace(Aa,"\\$&"):l}var gV=Ku(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),mV=Ku(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),bV=fw("toLowerCase");function yV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Kf(Mf(x),h)+l+Kf(Lf(x),h)}function EV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;return d&&_>>0,h?(l=en(l),l&&(typeof d=="string"||d!=null&&!G5(d))&&(d=Ci(d),!d&&$u(l))?Is(Ca(l),0,h):l.split(d,h)):[]}var CV=Ku(function(l,d,h){return l+(h?" ":"")+q5(d)});function kV(l,d,h){return l=en(l),h=h==null?0:Fl(St(h),0,l.length),d=Ci(d),l.slice(h,h+d.length)==d}function xV(l,d,h){var _=M.templateSettings;h&&Zr(l,d,h)&&(d=n),l=en(l),d=o0({},d,_,vw);var x=o0({},d.imports,_.imports,vw),F=sr(x),z=i5(x,F),Z,ae,we=0,Ce=d.interpolate||Zn,Ie="__p += '",Xe=o5((d.escape||Zn).source+"|"+Ce.source+"|"+(Ce===Xt?Nl:Zn).source+"|"+(d.evaluate||Zn).source+"|$","g"),st="//# sourceURL="+(an.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++PU+"]")+` +`;l.replace(Xe,function(yt,Nt,Bt,xi,Qr,Ii){return Bt||(Bt=xi),Ie+=l.slice(we,Ii).replace(No,r$),Nt&&(Z=!0,Ie+=`' + __e(`+Nt+`) + -'`),Yr&&(ae=!0,Ie+=`'; -`+Yr+`; -__p += '`),Ut&&(Ie+=`' + -((__t = (`+Ut+`)) == null ? '' : __t) + -'`),we=xi+Et.length,Et}),Ie+=`'; -`;var bt=rn.call(d,"variable")&&d.variable;if(!bt)Ie=`with (obj) { +'`),Qr&&(ae=!0,Ie+=`'; +`+Qr+`; +__p += '`),Bt&&(Ie+=`' + +((__t = (`+Bt+`)) == null ? '' : __t) + +'`),we=Ii+yt.length,yt}),Ie+=`'; +`;var bt=an.call(d,"variable")&&d.variable;if(!bt)Ie=`with (obj) { `+Ie+` } -`;else if(Rr.test(bt))throw new _t(s);Ie=(ae?Ie.replace(Fe,""):Ie).replace(De,"$1").replace(tt,"$1;"),Ie="function("+(bt||"obj")+`) { +`;else if(Dr.test(bt))throw new _t(s);Ie=(ae?Ie.replace(Qe,""):Ie).replace(Fe,"$1").replace(at,"$1;"),Ie="function("+(bt||"obj")+`) { `+(bt?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(ae?`, __j = Array.prototype.join; +`)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(ae?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Ie+`return __p -}`;var At=fw(function(){return Qt(F,st+"return "+Ie).apply(n,H)});if(At.source=Ie,b5(At))throw At;return At}function Uj(l){return Jt(l).toLowerCase()}function $j(l){return Jt(l).toUpperCase()}function zj(l,d,h){if(l=Jt(l),l&&(h||d===n))return TT(l);if(!l||!(d=wi(d)))return l;var _=Sa(l),x=Sa(d),F=ST(_,x),H=wT(_,x)+1;return Ts(_,F,H).join("")}function Hj(l,d,h){if(l=Jt(l),l&&(h||d===n))return l.slice(0,CT(l)+1);if(!l||!(d=wi(d)))return l;var _=Sa(l),x=wT(_,Sa(d))+1;return Ts(_,0,x).join("")}function jj(l,d,h){if(l=Jt(l),l&&(h||d===n))return l.replace(Ir,"");if(!l||!(d=wi(d)))return l;var _=Sa(l),x=ST(_,Sa(d));return Ts(_,x).join("")}function Gj(l,d){var h=P,_=Q;if(In(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?wi(d.omission):_}l=Jt(l);var F=l.length;if(Du(l)){var H=Sa(l);F=H.length}if(h>=F)return l;var X=h-Lu(_);if(X<1)return _;var ae=H?Ts(H,0,X).join(""):l.slice(0,X);if(x===n)return ae+_;if(H&&(X+=ae.length-X),E5(x)){if(l.slice(X).search(x)){var we,Ce=ae;for(x.global||(x=Lm(x.source,Jt(qe.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?X:Ie)}}else if(l.indexOf(wi(x),X)!=X){var Ye=ae.lastIndexOf(x);Ye>-1&&(ae=ae.slice(0,Ye))}return ae+_}function Vj(l){return l=Jt(l),l&&Rt.test(l)?l.replace(Je,yB):l}var Wj=zu(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),_5=hS("toUpperCase");function pw(l,d,h){return l=Jt(l),d=h?n:d,d===n?gB(l)?SB(l):oB(l):l.match(d)||[]}var fw=It(function(l,d){try{return Ti(l,n,d)}catch(h){return b5(h)?h:new _t(h)}}),qj=Io(function(l,d){return qi(d,function(h){h=Ja(h),xo(l,h,g5(l[h],l))}),l});function Kj(l){var d=l==null?0:l.length,h=mt();return l=d?wn(l,function(_){if(typeof _[1]!="function")throw new Ki(o);return[h(_[0]),_[1]]}):[],It(function(_){for(var x=-1;++xV)return[];var h=me,_=Or(l,me);d=mt(d),l-=me;for(var x=Nm(_,d);++h0||d<0)?new Ft(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Ft.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Ft.prototype.toArray=function(){return this.take(me)},Za(Ft.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var H=this.__wrapped__,X=_?[1]:arguments,ae=H instanceof Ft,we=X[0],Ce=ae||Tt(H),Ie=function(Nt){var Ut=x.apply(M,ms([Nt],X));return _&&Ye?Ut[0]:Ut};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Ye=this.__chain__,st=!!this.__actions__.length,bt=F&&!Ye,At=ae&&!st;if(!F&&Ce){H=At?H:new Ft(this);var Et=l.apply(H,X);return Et.__actions__.push({func:Bf,args:[Ie],thisArg:n}),new Yi(Et,Ye)}return bt&&At?l.apply(this,X):(Et=this.thru(Ie),bt?_?Et.value()[0]:Et.value():Et)})}),qi(["pop","push","shift","sort","splice","unshift"],function(l){var d=cf[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(H){return d.apply(Tt(H)?H:[],x)})}}),Za(Ft.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";rn.call(Bu,_)||(Bu[_]=[]),Bu[_].push({name:d,func:h})}}),Bu[Nf(n,v).name]=[{name:"wrapper",func:n}],Ft.prototype.clone=VB,Ft.prototype.reverse=WB,Ft.prototype.value=qB,M.prototype.at=Tz,M.prototype.chain=Sz,M.prototype.commit=wz,M.prototype.next=Az,M.prototype.plant=xz,M.prototype.reverse=kz,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Iz,M.prototype.first=M.prototype.head,yc&&(M.prototype[yc]=Cz),M},Mu=wB();Cl?((Cl.exports=Mu)._=Mu,Sm._=Mu):hr._=Mu}).call(ql)})(Lg,Lg.exports);var Qme=Lg.exports;const qs=Hi(Qme);function ro(e,t){const n=qs.cloneDeep(e);for(const r in t)typeof t[r]=="function"?qs.updateWith(n,r,t[r]):qs.updateWith(n,r,i=>t[r]);return n}const Ec={};Ec["Requires API Key"]="#FF0000";Ec.Local="#00bb00";Ec["Open-Source"]="#0033FF";Ec.Free="#ffff00";const Jme={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},e5e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},t5e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},n5e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},r5e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},i5e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Ra=[Jme,e5e,n5e,t5e,r5e,i5e],fR={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},T9={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},S9={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},w9={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},wP={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},A9={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},AP={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},a5e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},Ju=[T9,S9,w9,wP,AP,A9,a5e],hR={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},gR={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},o5e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function mR(e){return o5e[e]||e}const CP={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[hR,gR],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Ra]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Ra],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: +}`;var wt=pA(function(){return Jt(F,st+"return "+Ie).apply(n,z)});if(wt.source=Ie,j5(wt))throw wt;return wt}function IV(l){return en(l).toLowerCase()}function RV(l){return en(l).toUpperCase()}function NV(l,d,h){if(l=en(l),l&&(h||d===n))return _S(l);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=Ca(d),F=TS(_,x),z=SS(_,x)+1;return Is(_,F,z).join("")}function OV(l,d,h){if(l=en(l),l&&(h||d===n))return l.slice(0,AS(l)+1);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=SS(_,Ca(d))+1;return Is(_,0,x).join("")}function DV(l,d,h){if(l=en(l),l&&(h||d===n))return l.replace(Or,"");if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=TS(_,Ca(d));return Is(_,x).join("")}function LV(l,d){var h=P,_=Q;if(Rn(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?Ci(d.omission):_}l=en(l);var F=l.length;if($u(l)){var z=Ca(l);F=z.length}if(h>=F)return l;var Z=h-zu(_);if(Z<1)return _;var ae=z?Is(z,0,Z).join(""):l.slice(0,Z);if(x===n)return ae+_;if(z&&(Z+=ae.length-Z),G5(x)){if(l.slice(Z).search(x)){var we,Ce=ae;for(x.global||(x=o5(x.source,en(Ke.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?Z:Ie)}}else if(l.indexOf(Ci(x),Z)!=Z){var Xe=ae.lastIndexOf(x);Xe>-1&&(ae=ae.slice(0,Xe))}return ae+_}function MV(l){return l=en(l),l&&Rt.test(l)?l.replace(rt,c$):l}var FV=Ku(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),q5=fw("toUpperCase");function dA(l,d,h){return l=en(l),d=h?n:d,d===n?a$(l)?f$(l):XU(l):l.match(d)||[]}var pA=xt(function(l,d){try{return wi(l,n,d)}catch(h){return j5(h)?h:new _t(h)}}),PV=Fo(function(l,d){return Xi(d,function(h){h=ao(h),Lo(l,h,z5(l[h],l))}),l});function BV(l){var d=l==null?0:l.length,h=mt();return l=d?An(l,function(_){if(typeof _[1]!="function")throw new Zi(o);return[h(_[0]),_[1]]}):[],xt(function(_){for(var x=-1;++xW)return[];var h=pe,_=Mr(l,pe);d=mt(d),l-=pe;for(var x=r5(_,d);++h0||d<0)?new Mt(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Mt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Mt.prototype.toArray=function(){return this.take(pe)},ro(Mt.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var z=this.__wrapped__,Z=_?[1]:arguments,ae=z instanceof Mt,we=Z[0],Ce=ae||Tt(z),Ie=function(Nt){var Bt=x.apply(M,Ss([Nt],Z));return _&&Xe?Bt[0]:Bt};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Xe=this.__chain__,st=!!this.__actions__.length,bt=F&&!Xe,wt=ae&&!st;if(!F&&Ce){z=wt?z:new Mt(this);var yt=l.apply(z,Z);return yt.__actions__.push({func:Jf,args:[Ie],thisArg:n}),new Qi(yt,Xe)}return bt&&wt?l.apply(this,Z):(yt=this.thru(Ie),bt?_?yt.value()[0]:yt.value():yt)})}),Xi(["pop","push","shift","sort","splice","unshift"],function(l){var d=Af[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(z){return d.apply(Tt(z)?z:[],x)})}}),ro(Mt.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";an.call(Vu,_)||(Vu[_]=[]),Vu[_].push({name:d,func:h})}}),Vu[Wf(n,E).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=M$,Mt.prototype.reverse=F$,Mt.prototype.value=P$,M.prototype.at=pj,M.prototype.chain=fj,M.prototype.commit=hj,M.prototype.next=gj,M.prototype.plant=bj,M.prototype.reverse=yj,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Ej,M.prototype.first=M.prototype.head,Oc&&(M.prototype[Oc]=mj),M},Hu=h$();Ol?((Ol.exports=Hu)._=Hu,Y2._=Hu):mr._=Hu}).call(Jl)})(sm,sm.exports);var v4e=sm.exports;const el=Vi(v4e);function uo(e,t){const n=el.cloneDeep(e);for(const r in t)typeof t[r]=="function"?el.updateWith(n,r,t[r]):el.updateWith(n,r,i=>t[r]);return n}const Rc={};Rc["Requires API Key"]="#FF0000";Rc.Local="#00bb00";Rc["Open-Source"]="#0033FF";Rc.Free="#ffff00";const _4e={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},T4e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},S4e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},w4e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},A4e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},C4e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Da=[_4e,T4e,w4e,S4e,A4e,C4e],SN={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},sE={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},lE={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},uE={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},rU={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},cE={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},iU={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},k4e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},o1=[sE,lE,uE,rU,iU,cE,k4e],wN={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},AN={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},x4e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function CN(e){return x4e[e]||e}const aU={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[wN,AN],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Da]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Da],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: 1. Obtain an API key from [here](https://together.ai) 2. Paste below -3. Select a model preset`,tags:["Requires API Key","Open-Source"],params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your TogetherAI API key",required:!0},...Ra],packages:[ro(S9,{"dimensions[0].options":e=>qs.mapValues(e,t=>qs.assign({},t,{model:"togethercomputer/"+t.model.replace("llama2","llama-2").replace(":","-")}))}),ro(T9,{"dimensions[0].options":e=>qs.mapValues(e,t=>qs.assign({},t,{model:"togethercomputer/"+t.model.replace("codellama","CodeLlama").replace(":","-").replace("instruct","Instruct")}))}),ro(w9,{"params.model":"WizardLM/WizardCoder-15B-V1.0","params.title":"WizardCoder-15b","dimensions[0].options":{"15b":{model:"WizardLM/WizardCoder-15B-V1.0",title:"WizardCoder-15b"},"34b (Python)":{model:"WizardLM/WizardCoder-Python-34B-V1.0",title:"WizardCoder-34b-Python"}}}),ro(wP,{"params.model":"Phind/Phind-CodeLlama-34B-Python-v1"}),ro(A9,{"params.model":"mistralai/Mistral-7B-Instruct-v0.1"})].map(e=>(e.params.context_length=4096,e))},lmstudio:{title:"LM Studio",class:"GGML",description:"One of the fastest ways to get started with local models on Mac or Windows",longDescription:`LMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started: +3. Select a model preset`,tags:["Requires API Key","Open-Source"],params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your TogetherAI API key",required:!0},...Da],packages:[uo(lE,{"dimensions[0].options":e=>el.mapValues(e,t=>el.assign({},t,{model:"togethercomputer/"+t.model.replace("llama2","llama-2").replace(":","-")}))}),uo(sE,{"dimensions[0].options":e=>el.mapValues(e,t=>el.assign({},t,{model:"togethercomputer/"+t.model.replace("codellama","CodeLlama").replace(":","-").replace("instruct","Instruct")}))}),uo(uE,{"params.model":"WizardLM/WizardCoder-15B-V1.0","params.title":"WizardCoder-15b","dimensions[0].options":{"15b":{model:"WizardLM/WizardCoder-15B-V1.0",title:"WizardCoder-15b"},"34b (Python)":{model:"WizardLM/WizardCoder-Python-34B-V1.0",title:"WizardCoder-34b-Python"}}}),uo(rU,{"params.model":"Phind/Phind-CodeLlama-34B-Python-v1"}),uo(cE,{"params.model":"mistralai/Mistral-7B-Instruct-v0.1"})].map(e=>(e.params.context_length=4096,e))},lmstudio:{title:"LM Studio",class:"GGML",description:"One of the fastest ways to get started with local models on Mac or Windows",longDescription:`LMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started: 1. Download from [lmstudio.ai](https://lmstudio.ai/) and open the application 2. Search for and download the desired model from the home screen of LMStudio. 3. In the left-bar, click the '<->' icon to open the Local Inference Server and press 'Start Server'. -4. Once your model is loaded and the server has started, you can begin using Continue.`,icon:"lmstudio.png",tags:["Local","Open-Source"],params:{server_url:"http://localhost:1234"},packages:Ju,collectInputFor:[...Ra]},replicate:{title:"Replicate",class:"ReplicateLLM",description:"Use the Replicate API to run open-source models",longDescription:`Replicate is a hosted service that makes it easy to run ML models. To get started with Replicate: +4. Once your model is loaded and the server has started, you can begin using Continue.`,icon:"lmstudio.png",tags:["Local","Open-Source"],params:{server_url:"http://localhost:1234"},packages:o1,collectInputFor:[...Da]},replicate:{title:"Replicate",class:"ReplicateLLM",description:"Use the Replicate API to run open-source models",longDescription:`Replicate is a hosted service that makes it easy to run ML models. To get started with Replicate: 1. Obtain an API key from [here](https://replicate.com) 2. Paste below -3. Select a model preset`,params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Replicate API key",required:!0},...Ra],icon:"replicate.png",tags:["Requires API Key","Open-Source"],packages:[...[T9,S9].map(e=>e.title==="Llama2 Chat"?ro(e,{"dimensions[0].options.34b":void 0,"dimensions[0].options.70b":{model:"meta/llama-2-70b-chat:02e509c789964a7ea8736978a43525956ef40397be9033abf9fd2badfe68c9e3",title:"Llama2-70b-Chat"}}):e).map(e=>ro(e,{"params.model":t=>mR(t),"dimensions[0].options":t=>{var r;const n={};for(const i in t)n[i]={...t[i],model:mR((r=t[i])==null?void 0:r.model)};return n}})),ro(w9,{title:"WizardCoder (15b)","params.model":"andreasjansson/wizardcoder-python-34b-v1-gguf:67eed332a5389263b8ede41be3ee7dc119fa984e2bde287814c4abed19a45e54",dimensions:void 0}),ro(AP,{dimensions:void 0,title:"SQLCoder (15b)","params.model":"gregwdata/defog-sqlcoder-q8:0a9abc0d143072fd5d8920ad90b8fbaafaf16b10ffdad24bd897b5bffacfce0b"}),ro(A9,{"params.model":"a16z-infra/mistral-7b-instruct-v0.1:83b6a56e7c828e667f21fd596c338fd4f0039b46bcfa18d973e8e70e455fda70"})]},llamacpp:{title:"llama.cpp",class:"LlamaCpp",description:"If you are running the llama.cpp server from source",longDescription:"llama.cpp comes with a [built-in server](https://github.com/ggerganov/llama.cpp/tree/master/examples/server#llamacppexampleserver) that can be run from source. To do this:\n \n1. Clone the repository with `git clone https://github.com/ggerganov/llama.cpp`.\n2. `cd llama.cpp`\n3. Download the model you'd like to use and place it in the `llama.cpp/models` directory (the best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke))\n4. Run the llama.cpp server with the command below (replacing with the model you downloaded):\n\n```shell\n.\\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models/codellama-7b-instruct.Q8_0.gguf\n```\n\nAfter it's up and running, you can start using Continue.",icon:"llamacpp.png",tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra]},textgenwebui:{title:"text-generation-webui",class:"TextGenWebUI",description:"A popular open-source front-end for serving LLMs locally",longDescription:'text-generation-webui is a comprehensive, open-source language model UI and local server. You can also set it up with an [OpenAI-compatible server extension](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#an-openedai-api-openai-like), but this model provider is made to interface with the built-in server, which has a different format. To setup the text-generation-webui server, take the following steps:\n\n1. Clone the repository: `git clone https://github.com/oobabooga/text-generation-webui/tree/main`\n2. Change into the directory: `cd text-generation-webui`\n3. Run the one-click installer script for your operating system, using the --api flag:\n - Mac: `sh start_macos.sh --api`\n - Linux: `sh start_linux.sh --api`\n - Windows: `. start_windows.bat --api`\n - WSL: `. start_wsl.bat --api`\n4. Find a model to run and download its weights into the folder `text-generation-webui/models`. The best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke)\n5. Navigate to [the UI](http://127.0.0.1:7860), click the "Model" tab, and load the model you\'ve downloaded\n6. Once the model is loaded, you can start using Continue',icon:void 0,tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra]},palm:{title:"Google PaLM API",class:"GooglePaLMAPI",description:"Try out the Google PaLM API, which is currently in public preview, using an API key from Google Makersuite",longDescription:`To get started with Google Makersuite, obtain your API key from [here](https://developers.generativeai.google/products/makersuite) and paste it below. -> Note: Google's PaLM language models do not support streaming, so the response will appear all at once after a few seconds.`,icon:"google-palm.png",tags:["Requires API Key"],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your MakerSpace API key",required:!0}],packages:[{title:"chat-bison-001",description:"Google PaLM's chat-bison-001 model, fine-tuned for chatting about code",params:{model:"chat-bison-001",context_length:8e3}}]},hftgi:{title:"HuggingFace TGI",class:"HuggingFaceTGI",description:"HuggingFace Text Generation Inference is an advanced, highly-performant option for serving open-source models to multiple people",longDescription:"HuggingFace Text Generation Inference is an advanced, highly-performant option for serving open-source models to multiple people. To get started, follow the [Quick Tour](https://huggingface.co/docs/text-generation-inference/quicktour) on their website to set up the Docker container. Make sure to enter the server URL below that corresponds to the host and port you set up for the Docker container.",icon:"hf.png",tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra,{...fR,defaultValue:"http://localhost:8080"}]},ggml:{title:"Other OpenAI-compatible API",class:"GGML",description:"If you are using any other OpenAI-compatible API, for example text-gen-webui, FastChat, LocalAI, or llama-cpp-python, you can simply enter your server URL",longDescription:`If you are using any other OpenAI-compatible API, you can simply enter your server URL. If you still need to set up your model server, you can follow a guide below: +3. Select a model preset`,params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Replicate API key",required:!0},...Da],icon:"replicate.png",tags:["Requires API Key","Open-Source"],packages:[...[sE,lE].map(e=>e.title==="Llama2 Chat"?uo(e,{"dimensions[0].options.34b":void 0,"dimensions[0].options.70b":{model:"meta/llama-2-70b-chat:02e509c789964a7ea8736978a43525956ef40397be9033abf9fd2badfe68c9e3",title:"Llama2-70b-Chat"}}):e).map(e=>uo(e,{"params.model":t=>CN(t),"dimensions[0].options":t=>{var r;const n={};for(const i in t)n[i]={...t[i],model:CN((r=t[i])==null?void 0:r.model)};return n}})),uo(uE,{title:"WizardCoder (15b)","params.model":"andreasjansson/wizardcoder-python-34b-v1-gguf:67eed332a5389263b8ede41be3ee7dc119fa984e2bde287814c4abed19a45e54",dimensions:void 0}),uo(iU,{dimensions:void 0,title:"SQLCoder (15b)","params.model":"gregwdata/defog-sqlcoder-q8:0a9abc0d143072fd5d8920ad90b8fbaafaf16b10ffdad24bd897b5bffacfce0b"}),uo(cE,{"params.model":"a16z-infra/mistral-7b-instruct-v0.1:83b6a56e7c828e667f21fd596c338fd4f0039b46bcfa18d973e8e70e455fda70"})]},llamacpp:{title:"llama.cpp",class:"LlamaCpp",description:"If you are running the llama.cpp server from source",longDescription:"llama.cpp comes with a [built-in server](https://github.com/ggerganov/llama.cpp/tree/master/examples/server#llamacppexampleserver) that can be run from source. To do this:\n \n1. Clone the repository with `git clone https://github.com/ggerganov/llama.cpp`.\n2. `cd llama.cpp`\n3. Download the model you'd like to use and place it in the `llama.cpp/models` directory (the best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke))\n4. Run the llama.cpp server with the command below (replacing with the model you downloaded):\n\n```shell\n.\\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models/codellama-7b-instruct.Q8_0.gguf\n```\n\nAfter it's up and running, you can start using Continue.",icon:"llamacpp.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},textgenwebui:{title:"text-generation-webui",class:"TextGenWebUI",description:"A popular open-source front-end for serving LLMs locally",longDescription:'text-generation-webui is a comprehensive, open-source language model UI and local server. You can also set it up with an [OpenAI-compatible server extension](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#an-openedai-api-openai-like), but this model provider is made to interface with the built-in server, which has a different format. To setup the text-generation-webui server, take the following steps:\n\n1. Clone the repository: `git clone https://github.com/oobabooga/text-generation-webui/tree/main`\n2. Change into the directory: `cd text-generation-webui`\n3. Run the one-click installer script for your operating system, using the --api flag:\n - Mac: `sh start_macos.sh --api`\n - Linux: `sh start_linux.sh --api`\n - Windows: `. start_windows.bat --api`\n - WSL: `. start_wsl.bat --api`\n4. Find a model to run and download its weights into the folder `text-generation-webui/models`. The best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke)\n5. Navigate to [the UI](http://127.0.0.1:7860), click the "Model" tab, and load the model you\'ve downloaded\n6. Once the model is loaded, you can start using Continue',icon:void 0,tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},palm:{title:"Google PaLM API",class:"GooglePaLMAPI",description:"Try out the Google PaLM API, which is currently in public preview, using an API key from Google Makersuite",longDescription:`To get started with Google Makersuite, obtain your API key from [here](https://developers.generativeai.google/products/makersuite) and paste it below. +> Note: Google's PaLM language models do not support streaming, so the response will appear all at once after a few seconds.`,icon:"google-palm.png",tags:["Requires API Key"],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your MakerSpace API key",required:!0}],packages:[{title:"chat-bison-001",description:"Google PaLM's chat-bison-001 model, fine-tuned for chatting about code",params:{model:"chat-bison-001",context_length:8e3}}]},hftgi:{title:"HuggingFace TGI",class:"HuggingFaceTGI",description:"HuggingFace Text Generation Inference is an advanced, highly-performant option for serving open-source models to multiple people",longDescription:"HuggingFace Text Generation Inference is an advanced, highly-performant option for serving open-source models to multiple people. To get started, follow the [Quick Tour](https://huggingface.co/docs/text-generation-inference/quicktour) on their website to set up the Docker container. Make sure to enter the server URL below that corresponds to the host and port you set up for the Docker container.",icon:"hf.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da,{...SN,defaultValue:"http://localhost:8080"}]},ggml:{title:"Other OpenAI-compatible API",class:"GGML",description:"If you are using any other OpenAI-compatible API, for example text-gen-webui, FastChat, LocalAI, or llama-cpp-python, you can simply enter your server URL",longDescription:`If you are using any other OpenAI-compatible API, you can simply enter your server URL. If you still need to set up your model server, you can follow a guide below: - [text-gen-webui](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#setup--installation) - [LocalAI](https://localai.io/basics/getting_started/) - [llama-cpp-python](https://github.com/continuedev/ggml-server-example) -- [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)`,params:{server_url:""},collectInputFor:[{...fR,defaultValue:"http://localhost:8000"},...Ra],icon:"openai.png",tags:["Local","Open-Source"],packages:Ju},freetrial:{title:"GPT-4 limited free trial",class:"OpenAIFreeTrial",description:"New users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key",longDescription:'New users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key. If you are ready to use your own API key or have used all 250 free uses, you can enter your API key in config.py where it says `api_key=""` or select another model provider.',icon:"openai.png",tags:["Free"],packages:[hR,gR],collectInputFor:[...Ra]}},s5e=He.div` - border: 1px solid ${vt}; - border-radius: ${wt}; +- [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)`,params:{server_url:""},collectInputFor:[{...SN,defaultValue:"http://localhost:8000"},...Da],icon:"openai.png",tags:["Local","Open-Source"],packages:o1},freetrial:{title:"GPT-4 limited free trial",class:"OpenAIFreeTrial",description:"New users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key",longDescription:'New users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key. If you are ready to use your own API key or have used all 250 free uses, you can enter your API key in config.py where it says `api_key=""` or select another model provider.',icon:"openai.png",tags:["Free"],packages:[wN,AN],collectInputFor:[...Da]}},I4e=Ge.div` + border: 1px solid ${Et}; + border-radius: ${It}; position: relative; width: 100%; transition: all 0.5s; @@ -1204,50 +1180,50 @@ function print() { __p += __j.call(arguments, '') } border: 1px solid ${e.color}; background-color: ${e.color}22; cursor: pointer;`:""} -`,l5e=He.div` +`,R4e=Ge.div` display: flex; justify-content: flex-end; margin-left: auto; padding: 4px; /* width: fit-content; */ - border-top: 1px solid ${vt}; -`,u5e=He.div` + border-top: 1px solid ${Et}; +`,N4e=Ge.div` display: flex; flex-direction: column; align-items: center; margin-right: 8px; - background-color: ${vt}; + background-color: ${Et}; padding: 4px; - border-radius: ${wt}; - outline: 0.5px solid ${vt}; + border-radius: ${It}; + outline: 0.5px solid ${Et}; ${e=>e.selected&&` - background-color: ${da}; + background-color: ${ha}; color: white; `} &:hover { cursor: pointer; - outline: 1px solid ${da}; + outline: 1px solid ${ha}; } -`;function xP(e){var o,s,u,c;const t=zt(p=>p.config.vscMediaUrl),[n,r]=C.useState(((o=e.dimensions)==null?void 0:o.map(p=>Object.keys(p.options)[0]))||[]),[i,a]=C.useState(!1);return I.jsxs(s5e,{disabled:e.disabled||!1,color:da,hovered:i,children:[I.jsxs("div",{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),className:"px-2 py-1",onClick:e.disabled?void 0:p=>{p.target.closest("a")||e.onClick(p,n)},children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[t&&e.icon&&I.jsx("img",{src:`${t}/logos/${e.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h3",{children:e.title})]}),(s=e.tags)==null?void 0:s.map(p=>I.jsx("span",{style:{backgroundColor:`${Ec[p]}55`,color:"white",padding:"2px 4px",borderRadius:wt,marginRight:"4px"},children:p})),I.jsx("p",{children:e.description}),e.refUrl&&I.jsx("a",{style:{position:"absolute",right:"8px",top:"8px"},href:e.refUrl,target:"_blank",children:I.jsx(vi,{text:"Read the docs",children:I.jsx(hY,{width:"1.6em",height:"1.6em"})})})]}),((u=e.dimensions)==null?void 0:u.length)&&I.jsx(l5e,{children:(c=e.dimensions)==null?void 0:c.map((p,f)=>I.jsxs("div",{className:"flex items-center",children:[I.jsx(y9,{msg:p.description}),I.jsx("p",{className:"mx-2 text-sm my-0 py-0",children:p.name}),Object.keys(p.options).map(m=>I.jsx(u5e,{onClick:g=>{g.stopPropagation();const E=[...n];E[f]=m,r(E)},selected:n[f]===m,children:m}))]}))})]})}const c5e=He.div` +`;function oU(e){var o,s,u,c;const t=window.vscMediaUrl,[n,r]=C.useState(((o=e.dimensions)==null?void 0:o.map(p=>Object.keys(p.options)[0]))||[]),[i,a]=C.useState(!1);return I.jsxs(I4e,{disabled:e.disabled||!1,color:ha,hovered:i,children:[I.jsxs("div",{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),className:"px-2 py-1",onClick:e.disabled?void 0:p=>{p.target.closest("a")||e.onClick(p,n)},children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[t&&e.icon&&I.jsx("img",{src:`${t}/logos/${e.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h3",{children:e.title})]}),(s=e.tags)==null?void 0:s.map(p=>I.jsx("span",{style:{backgroundColor:`${Rc[p]}55`,color:"white",padding:"2px 4px",borderRadius:It,marginRight:"4px"},children:p})),I.jsx("p",{children:e.description}),e.refUrl&&I.jsx("a",{style:{position:"absolute",right:"8px",top:"8px"},href:e.refUrl,target:"_blank",children:I.jsx(zi,{text:"Read the docs",children:I.jsx(sZ,{width:"1.6em",height:"1.6em"})})})]}),((u=e.dimensions)==null?void 0:u.length)&&I.jsx(R4e,{children:(c=e.dimensions)==null?void 0:c.map((p,f)=>I.jsxs("div",{className:"flex items-center",children:[I.jsx(aE,{msg:p.description}),I.jsx("p",{className:"mx-2 text-sm my-0 py-0",children:p.name}),Object.keys(p.options).map(m=>I.jsx(N4e,{onClick:g=>{g.stopPropagation();const b=[...n];b[f]=m,r(b)},selected:n[f]===m,children:m}))]}))})]})}const O4e=Ge.div` display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-gap: 2rem; padding: 1rem; justify-items: center; align-items: center; -`;function d5e(){const e=cs();return C.useContext(Ya),us(),I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt,zIndex:2},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Select LLM Provider"})]}),I.jsx(c5e,{children:Object.entries(CP).map(([t,n])=>I.jsx(xP,{title:n.title,description:n.description,tags:n.tags,icon:n.icon,refUrl:`https://continue.dev/docs/reference/Models/${n.class.toLowerCase()}`,onClick:r=>{e(`/modelconfig/${t}`)}}))})]})}const p5e=He.div` +`;function D4e(){const e=bs();return C.useContext(to),eo(),I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht,zIndex:2},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Select LLM Provider"})]}),I.jsx(O4e,{children:Object.entries(aU).map(([t,n])=>I.jsx(oU,{title:n.title,description:n.description,tags:n.tags,icon:n.icon,refUrl:`https://continue.dev/docs/reference/Models/${n.class.toLowerCase()}`,onClick:r=>{e(`/modelconfig/${t}`)}}))})]})}const L4e=Ge.div` display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-gap: 2rem; padding: 1rem; justify-items: center; align-items: center; -`,f5e=He.div` - border: 1px solid ${vt}; - border-radius: ${wt}; +`,M4e=Ge.div` + border: 1px solid ${Et}; + border-radius: ${It}; padding: 4px 8px; display: flex; justify-content: center; @@ -1264,4 +1240,4 @@ function print() { __p += __j.call(arguments, '') } cursor: pointer; } `} -`;function h5e(){var u,c,p,f,m;const e=SP(),{modelName:t}=Whe(),[n,r]=C.useState(void 0);C.useEffect(()=>{t&&r(CP[t])},[t]);const i=C.useContext(Ya);us();const a=cs(),o=zt(g=>g.config.vscMediaUrl),s=C.useCallback(()=>{var g;return((g=n==null?void 0:n.collectInputFor)==null?void 0:g.some(E=>{if(!E.required)return!1;const b=e.watch(E.key);return typeof b>"u"||typeof b=="string"&&b===""}))||!1},[n,e]);return I.jsx(gP,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt,zIndex:2},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>a("/models"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Configure Model"})]}),I.jsxs("div",{className:"px-2",children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o&&(n==null?void 0:n.icon)&&I.jsx("img",{src:`${o}/logos/${n==null?void 0:n.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h2",{children:n==null?void 0:n.title})]}),(u=n==null?void 0:n.tags)==null?void 0:u.map(g=>I.jsx("span",{style:{backgroundColor:`${Ec[g]}55`,color:"white",padding:"2px 4px",borderRadius:wt,marginRight:"4px"},children:g})),I.jsx(pg,{className:"mt-2",source:(n==null?void 0:n.longDescription)||(n==null?void 0:n.description),maxHeight:200}),I.jsx("br",{}),(((c=n==null?void 0:n.collectInputFor)==null?void 0:c.filter(g=>g.required).length)||0)>0&&I.jsxs(I.Fragment,{children:[I.jsx("h3",{className:"mb-2",children:"Enter required parameters"}),(p=n==null?void 0:n.collectInputFor)==null?void 0:p.filter(g=>g.required).map(g=>I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(ng,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!0})})]}))]}),(((f=n==null?void 0:n.collectInputFor)==null?void 0:f.filter(g=>!g.required).length)||0)>0&&I.jsxs("details",{children:[I.jsx("summary",{className:"mb-2",children:I.jsx("b",{children:"Advanced (optional)"})}),(m=n==null?void 0:n.collectInputFor)==null?void 0:m.map(g=>g.required?null:I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(ng,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!1})})]}))]}),I.jsx("h3",{className:"mb-2",children:"Select a model preset"})]}),I.jsxs(p5e,{children:[n==null?void 0:n.packages.map(g=>I.jsx(xP,{disabled:s(),title:g.title,description:g.description,tags:g.tags,refUrl:g.refUrl,icon:g.icon||n.icon,dimensions:g.dimensions,onClick:(E,b)=>{var v;if(s())return;const T={};for(const y of n.collectInputFor||[])T[y.key]=y.inputType==="text"?e.watch(y.key):parseFloat(e.watch(y.key));i==null||i.addModelForRole("*",n.class,{...g.params,...n.params,...qs.merge({},...((v=g.dimensions)==null?void 0:v.map((y,w)=>b!=null&&b[w]?{...y.options[b[w]]}:{}))||[]),...T}),a("/")}})),I.jsx(f5e,{disabled:s(),onClick:g=>{var b;if(!n||s())return;const E={};for(const T of n.collectInputFor||[])E[T.key]=T.inputType==="text"?e.watch(T.key):parseFloat(e.watch(T.key));i==null||i.addModelForRole("*",n.class,{...(b=n.packages[0])==null?void 0:b.params,...n.params,...E}),a("/")},children:I.jsx("h3",{className:"text-center my-2",children:"Configure Model in config.py"})})]})]})})}const g5e=uge([{path:"/",element:I.jsx(pme,{}),errorElement:I.jsx(Ame,{}),children:[{path:"/index.html",element:I.jsx(qI,{})},{path:"/",element:I.jsx(qI,{})},{path:"/history",element:I.jsx(Cge,{})},{path:"/help",element:I.jsx(YI,{})},{path:"/settings",element:I.jsx(Zme,{})},{path:"/models",element:I.jsx(d5e,{})},{path:"/help",element:I.jsx(YI,{})},{path:"/modelconfig/:modelName",element:I.jsx(h5e,{})}]}]),Ya=C.createContext(void 0);function m5e(){const e=bme(!1),t=R7(),n=us();return C.useEffect(()=>{const r=i=>{switch(i.data.type){case"onLoad":n(vme(i.data.apiUrl)),n(Eme(i.data.vscMachineId)),n(_me(i.data.sessionId)),n(Tme(i.data.vscMediaUrl)),n(Sme(i.data.dataSwitchOn)),i.data.uniqueId&&(t==null||t.identify(i.data.vscMachineId)),n(yme(i.data.workspacePaths));break;case"highlightedCode":n(rfe(i.data.rangeInFile));break;case"serverStatus":n(ife(i.data.message));break}};return window.addEventListener("message",r),rl("onLoad",{}),()=>window.removeEventListener("message",r)},[]),C.useEffect(()=>{document.body.style.getPropertyValue("--vscode-editor-foreground")&&localStorage.setItem("--vscode-editor-foreground",document.body.style.getPropertyValue("--vscode-editor-foreground")),document.body.style.getPropertyValue("--vscode-editor-background")&&localStorage.setItem("--vscode-editor-background",document.body.style.getPropertyValue("--vscode-editor-background")),document.body.style.getPropertyValue("--vscode-list-hoverBackground")&&localStorage.setItem("--vscode-list-hoverBackground",document.body.style.getPropertyValue("--vscode-list-hoverBackground"))},[]),I.jsx(Ya.Provider,{value:e,children:I.jsx(ige,{router:g5e})})}const b5e=Zp({name:"chat",initialState:{messages:[],isStreaming:!1},reducers:{addMessage:(e,t)=>({...e,messages:[...e.messages,t.payload]}),setIsStreaming:(e,t)=>({...e,isStreaming:t.payload}),streamUpdate:(e,t)=>{if(e.isStreaming){let n=e.messages[e.messages.length-1];return n.role!=="assistant"?{...e,messages:[...e.messages,{role:"assistant",content:t.payload}],isStreaming:!0}:{...e,messages:[...e.messages.slice(0,e.messages.length-1),{...n,content:n.content+t.payload}],isStreaming:!0}}else return{...e,messages:[...e.messages,{role:"assistant",content:t.payload}],isStreaming:!0}},closeStream:e=>({...e,isStreaming:!1}),clearChat:e=>({...e,messages:[],isStreaming:!1})}}),E5e=b5e.reducer,v5e=rpe({reducer:{chat:E5e,config:wme,misc:afe,uiState:gpe,serverState:nfe}});const y5e=({children:e})=>{const t=zt(i=>{var a,o;return(o=(a=i==null?void 0:i.serverState)==null?void 0:a.config)==null?void 0:o.allow_anonymous_telemetry}),[n,r]=ut.useState(void 0);return C.useEffect(()=>{t?(Bd.init("phc_JS6XFROuNbhJtVCEdTSYk6gl5ArRrTNMpCcguAXlSPs",{api_host:"https://app.posthog.com",disable_session_recording:!0}),r(n)):r(void 0)},[t]),t?I.jsx(W0e,{client:n,children:e}):I.jsx(I.Fragment,{children:e})};y4.createRoot(document.getElementById("root")).render(I.jsx(ut.StrictMode,{children:I.jsx(qpe,{store:v5e,children:I.jsx(y5e,{children:I.jsx(m5e,{})})})})); +`;function F4e(){var u,c,p,f,m;const e=nU(),{modelName:t}=Bme(),[n,r]=C.useState(void 0);C.useEffect(()=>{t&&r(aU[t])},[t]);const i=C.useContext(to);eo();const a=bs(),o=window.vscMediaUrl,s=C.useCallback(()=>{var g;return((g=n==null?void 0:n.collectInputFor)==null?void 0:g.some(b=>{if(!b.required)return!1;const y=e.watch(b.key);return typeof y>"u"||typeof y=="string"&&y===""}))||!1},[n,e]);return I.jsx(KB,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht,zIndex:2},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>a("/models"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Configure Model"})]}),I.jsxs("div",{className:"px-2",children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o&&(n==null?void 0:n.icon)&&I.jsx("img",{src:`${o}/logos/${n==null?void 0:n.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h2",{children:n==null?void 0:n.title})]}),(u=n==null?void 0:n.tags)==null?void 0:u.map(g=>I.jsx("span",{style:{backgroundColor:`${Rc[g]}55`,color:"white",padding:"2px 4px",borderRadius:It,marginRight:"4px"},children:g})),I.jsx(Ug,{className:"mt-2",source:(n==null?void 0:n.longDescription)||(n==null?void 0:n.description),maxHeight:200}),I.jsx("br",{}),(((c=n==null?void 0:n.collectInputFor)==null?void 0:c.filter(g=>g.required).length)||0)>0&&I.jsxs(I.Fragment,{children:[I.jsx("h3",{className:"mb-2",children:"Enter required parameters"}),(p=n==null?void 0:n.collectInputFor)==null?void 0:p.filter(g=>g.required).map(g=>I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(Ig,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!0})})]}))]}),(((f=n==null?void 0:n.collectInputFor)==null?void 0:f.filter(g=>!g.required).length)||0)>0&&I.jsxs("details",{children:[I.jsx("summary",{className:"mb-2",children:I.jsx("b",{children:"Advanced (optional)"})}),(m=n==null?void 0:n.collectInputFor)==null?void 0:m.map(g=>g.required?null:I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(Ig,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!1})})]}))]}),I.jsx("h3",{className:"mb-2",children:"Select a model preset"})]}),I.jsxs(L4e,{children:[n==null?void 0:n.packages.map(g=>I.jsx(oU,{disabled:s(),title:g.title,description:g.description,tags:g.tags,refUrl:g.refUrl,icon:g.icon||n.icon,dimensions:g.dimensions,onClick:(b,y)=>{var E;if(s())return;const T={};for(const v of n.collectInputFor||[])T[v.key]=v.inputType==="text"?e.watch(v.key):parseFloat(e.watch(v.key));i==null||i.addModelForRole("*",n.class,{...g.params,...n.params,...el.merge({},...((E=g.dimensions)==null?void 0:E.map((v,w)=>y!=null&&y[w]?{...v.options[y[w]]}:{}))||[]),...T}),a("/")}})),I.jsx(M4e,{disabled:s(),onClick:g=>{var y;if(!n||s())return;const b={};for(const T of n.collectInputFor||[])b[T.key]=T.inputType==="text"?e.watch(T.key):parseFloat(e.watch(T.key));i==null||i.addModelForRole("*",n.class,{...(y=n.packages[0])==null?void 0:y.params,...n.params,...b}),a("/")},children:I.jsx("h3",{className:"text-center my-2",children:"Configure Model in config.py"})})]})]})})}const P4e={meilisearchUrl:void 0,slashCommands:[],selectedContextItems:[],config:{system_message:"",temperature:.5},contextProviders:[],savedContextGroups:[]},sU=pf({name:"serverState",initialState:P4e,reducers:{setSlashCommands:(e,t)=>({...e,slashCommands:t.payload}),setContextProviders:(e,t)=>({...e,contextProviders:t.payload}),setConfig:(e,t)=>({...e,config:t.payload})}}),{setContextProviders:B4e,setSlashCommands:U4e,setConfig:kN}=sU.actions,$4e=sU.reducer,X4=window,lU=pf({name:"config",initialState:{apiUrl:X4.serverUrl||"http://localhost:8000",workspacePaths:X4.workspacePaths||[],vscMachineId:X4.vscMachineId||void 0},reducers:{setWorkspacePaths:(e,t)=>({...e,workspacePaths:t.payload}),setApiUrl:(e,t)=>({...e,apiUrl:t.payload}),setVscMachineId:(e,t)=>({...e,vscMachineId:t.payload}),setSessionId:(e,t)=>({...e,sessionId:t.payload}),setDataSwitchOn:(e,t)=>({...e,dataSwitchOn:t.payload})}}),{setVscMachineId:z4e,setApiUrl:H4e,setWorkspacePaths:j4e,setSessionId:Wbe,setDataSwitchOn:qbe}=lU.actions,G4e=lU.reducer;function V4e(e,t){const n=zt(u=>u.config.apiUrl),r=zt(u=>u.sessionState.active),i=zt(u=>u.sessionState.title),a=zt(u=>u.sessionState.history),[o,s]=C.useState(!1);C.useEffect(()=>{t(Zd(!1)),qa("onLoad",{})},[]),C.useEffect(()=>{(async()=>{if(e&&!o&&!r&&i==="New Session"&&a&&a.filter(u=>!(u!=null&&u.hide)).length>=2){s(!0);const u=await e.getSessionTitle(a);t(wP(u))}})()},[r,a,i,e,o]),C.useEffect(()=>{e&&(e.onSessionUpdate(u=>{t(g0e(u))}),e.onAddContextItem(u=>{t(TP(u))}),e.onConfigUpdate(u=>{t(kN(u))}),fetch(`${n}/slash_commands`).then(async u=>{const c=await u.json();t(U4e(c))}),fetch(`${n}/context_providers`).then(async u=>{const c=await u.json();t(B4e(c))}),e.getConfig().then(u=>{t(kN(u))}))},[e]),C.useEffect(()=>{const u=c=>{switch(c.data.type){case"onLoad":window.windowId=c.data.windowId,window.serverUrl=c.data.serverUrl,window.workspacePaths=c.data.workspacePaths,window.vscMachineId=c.data.vscMachineId,window.vscMediaUrl=c.data.vscMediaUrl,t(H4e(c.data.serverUrl)),t(j4e(c.data.workspacePaths)),t(z4e(c.data.vscMachineId));break;case"highlightedCode":t(m0e({rangeInFileWithContents:c.data.rangeInFileWithContents,edit:c.data.edit}));break;case"serverStatus":t(Y0e(c.data.message));break;case"stopSession":e==null||e.stopSession();break}};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)},[e]),C.useEffect(()=>{document.body.style.getPropertyValue("--vscode-editor-foreground")&&localStorage.setItem("--vscode-editor-foreground",document.body.style.getPropertyValue("--vscode-editor-foreground")),document.body.style.getPropertyValue("--vscode-editor-background")&&localStorage.setItem("--vscode-editor-background",document.body.style.getPropertyValue("--vscode-editor-background")),document.body.style.getPropertyValue("--vscode-list-hoverBackground")&&localStorage.setItem("--vscode-list-hoverBackground",document.body.style.getPropertyValue("--vscode-list-hoverBackground"))},[])}const W4e=t2e([{path:"/",element:I.jsx(J5e,{}),errorElement:I.jsx(q3e,{}),children:[{path:"/index.html",element:I.jsx(qR,{})},{path:"/",element:I.jsx(qR,{})},{path:"/history",element:I.jsx(f2e,{})},{path:"/help",element:I.jsx(YR,{})},{path:"/settings",element:I.jsx(E4e,{})},{path:"/models",element:I.jsx(D4e,{})},{path:"/help",element:I.jsx(YR,{})},{path:"/modelconfig/:modelName",element:I.jsx(F4e,{})}]}]),to=C.createContext(void 0);function q4e(){const e=VB(!1),t=eo();return V4e(e,t),I.jsx(to.Provider,{value:e,children:I.jsx(Xme,{router:W4e})})}var $T={},zT={};zT.__esModule=!0;zT.default=X4e;function Kh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kh=function(n){return typeof n}:Kh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kh(e)}function Z4(){}var K4e={getItem:Z4,setItem:Z4,removeItem:Z4};function Y4e(e){if((typeof self>"u"?"undefined":Kh(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function X4e(e){var t="".concat(e,"Storage");return Y4e(t)?self[t]:K4e}$T.__esModule=!0;$T.default=J4e;var Z4e=Q4e(zT);function Q4e(e){return e&&e.__esModule?e:{default:e}}function J4e(e){var t=(0,Z4e.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,o){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var uU=void 0,ebe=tbe($T);function tbe(e){return e&&e.__esModule?e:{default:e}}var nbe=(0,ebe.default)("local");uU=nbe;var HT="persist:",cU="persist/FLUSH",jT="persist/REHYDRATE",dU="persist/PAUSE",pU="persist/PERSIST",fU="persist/PURGE",hU="persist/REGISTER",rbe=-1;function Yh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yh=function(n){return typeof n}:Yh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yh(e)}function xN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ibe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gbe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var mbe=5e3;function bbe(e,t){var n=e.version!==void 0?e.version:rbe;e.debug;var r=e.stateReconciler===void 0?obe:e.stateReconciler,i=e.getStoredState||ube,a=e.timeout!==void 0?e.timeout:mbe,o=null,s=!1,u=!0,c=function(f){return f._persist.rehydrated&&o&&!u&&o.update(f),f};return function(p,f){var m=p||{},g=m._persist,b=hbe(m,["_persist"]),y=b;if(f.type===pU){var T=!1,E=function(B,q){T||(f.rehydrate(e.key,B,q),T=!0)};if(a&&setTimeout(function(){!T&&E(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),u=!1,o||(o=sbe(e)),g)return Yo({},t(y,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(N){var B=e.migrate||function(q,P){return Promise.resolve(q)};B(N,n).then(function(q){E(q)},function(q){E(void 0,q)})},function(N){E(void 0,N)}),Yo({},t(y,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===fU)return s=!0,f.result(dbe(e)),Yo({},t(y,f),{_persist:g});if(f.type===cU)return f.result(o&&o.flush()),Yo({},t(y,f),{_persist:g});if(f.type===dU)u=!0;else if(f.type===jT){if(s)return Yo({},y,{_persist:Yo({},g,{rehydrated:!0})});if(f.key===e.key){var v=t(y,f),w=f.payload,A=r!==!1&&w!==void 0?r(w,p,v,e):v,R=Yo({},A,{_persist:Yo({},g,{rehydrated:!0})});return c(R)}}}if(!g)return t(p,f);var k=t(y,f);return k===y?p:c(Yo({},k,{_persist:g}))}}function RN(e){return vbe(e)||Ebe(e)||ybe()}function ybe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Ebe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function vbe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:gU,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case hU:return dE({},t,{registry:[].concat(RN(t.registry),[n.key])});case jT:var r=t.registry.indexOf(n.key),i=RN(t.registry);return i.splice(r,1),dE({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Sbe(e,t,n){var r=n||!1,i=oT(Tbe,gU,t&&t.enhancer?t.enhancer:void 0),a=function(c){i.dispatch({type:hU,key:c})},o=function(c,p,f){var m={type:jT,payload:p,err:f,key:c};e.dispatch(m),i.dispatch(m),r&&s.getState().bootstrapped&&(r(),r=!1)},s=dE({},i,{purge:function(){var c=[];return e.dispatch({type:fU,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:cU,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){e.dispatch({type:dU})},persist:function(){e.dispatch({type:pU,register:a,rehydrate:o})}});return t&&t.manualPersist||s.persist(),s}const wbe=mP({config:G4e,misc:X0e,uiState:q0e,sessionState:y0e,serverState:$4e}),Abe={key:"root",storage:uU},Cbe=bbe(Abe,wbe),mU=t0e({reducer:Cbe,middleware:e=>e({serializableCheck:!1})}),kbe=Sbe(mU);function Xh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xh=function(n){return typeof n}:Xh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xh(e)}function xbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ON(e,t){for(var n=0;n{const t=zt(i=>{var a,o;return(o=(a=i==null?void 0:i.serverState)==null?void 0:a.config)==null?void 0:o.allow_anonymous_telemetry}),[n,r]=ut.useState(void 0);return C.useEffect(()=>{t?(ep.init("phc_JS6XFROuNbhJtVCEdTSYk6gl5ArRrTNMpCcguAXlSPs",{api_host:"https://app.posthog.com",disable_session_recording:!0}),r(n)):r(void 0)},[t]),t?I.jsx(Pge,{client:n,children:e}):I.jsx(I.Fragment,{children:e})};J4.createRoot(document.getElementById("root")).render(I.jsx(ut.StrictMode,{children:I.jsx(_fe,{store:mU,children:I.jsx(bU,{loading:null,persistor:kbe,children:I.jsx(Obe,{children:I.jsx(q4e,{})})})})})); diff --git a/extensions/vscode/manual-testing-sandbox/example.ts b/extensions/vscode/manual-testing-sandbox/example.ts index 0633beaf2..ad42c22d0 100644 --- a/extensions/vscode/manual-testing-sandbox/example.ts +++ b/extensions/vscode/manual-testing-sandbox/example.ts @@ -1,3 +1,3 @@ function mergeSortAlgorithm() { - // TODO: implement -} \ No newline at end of file + // TODO: implement +} diff --git a/extensions/vscode/manual-testing-sandbox/nested-folder/helloNested.py b/extensions/vscode/manual-testing-sandbox/nested-folder/helloNested.py index 195ad40c6..1912b9ffd 100644 --- a/extensions/vscode/manual-testing-sandbox/nested-folder/helloNested.py +++ b/extensions/vscode/manual-testing-sandbox/nested-folder/helloNested.py @@ -1,2 +1,5 @@ def main(): print("Hello Nested!") + + +raise Exception("This is an error") diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index e45edae9f..dbad85420 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.0.414", + "version": "0.1.40", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "continue", - "version": "0.0.414", + "version": "0.1.40", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", @@ -22,8 +22,10 @@ "react-markdown": "^8.0.7", "react-redux": "^8.0.5", "request": "^2.88.2", + "socket.io-client": "^4.7.2", "strip-ansi": "^7.1.0", "tailwindcss": "^3.3.2", + "uuidv4": "^6.2.13", "vscode-languageclient": "^8.0.2", "ws": "^8.13.0" }, @@ -2201,6 +2203,11 @@ "@sinonjs/commons": "^3.0.0" } }, + "node_modules/@socket.io/component-emitter": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", + "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==" + }, "node_modules/@szmarczak/http-timer": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", @@ -2529,6 +2536,11 @@ "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz", "integrity": "sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA==" }, + "node_modules/@types/uuid": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.4.tgz", + "integrity": "sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==" + }, "node_modules/@types/vscode": { "version": "1.67.0", "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.67.0.tgz", @@ -4548,6 +4560,46 @@ "once": "^1.4.0" } }, + "node_modules/engine.io-client": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.5.2.tgz", + "integrity": "sha512-CQZqbrpEYnrpGqC07a9dJDz4gePZUgTPMU3NKJPSeQOyw27Tst4Pl3FemKoFGAlHzgZmKjoRmiJvbWfhCXUlIg==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1", + "engine.io-parser": "~5.2.1", + "ws": "~8.11.0", + "xmlhttprequest-ssl": "~2.0.0" + } + }, + "node_modules/engine.io-client/node_modules/ws": { + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/engine.io-parser": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.1.tgz", + "integrity": "sha512-9JktcM3u18nU9N2Lz3bWeBgxVgOKpw7yhRaoxQA3FUDZzzw+9WlA6p4G4u0RixNkg14fH7EfEc/RhpurtiROTQ==", + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/entities": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", @@ -10296,6 +10348,32 @@ "npm": ">= 3.0.0" } }, + "node_modules/socket.io-client": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.2.tgz", + "integrity": "sha512-vtA0uD4ibrYD793SOIAwlo8cj6haOeMHrGvwPxJsxH7CeIksqJ+3Zc06RvWTIFgiSqx4A3sOnTXpfAEE2Zyz6w==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.2", + "engine.io-client": "~6.5.2", + "socket.io-parser": "~4.2.4" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-parser": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/socks": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", @@ -11346,11 +11424,19 @@ "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true, "bin": { "uuid": "dist/bin/uuid" } }, + "node_modules/uuidv4": { + "version": "6.2.13", + "resolved": "https://registry.npmjs.org/uuidv4/-/uuidv4-6.2.13.tgz", + "integrity": "sha512-AXyzMjazYB3ovL3q051VLH06Ixj//Knx7QnUSi1T//Ie3io6CpsPu9nVMOx5MoLWh6xV0B9J0hIaxungxXUbPQ==", + "dependencies": { + "@types/uuid": "8.3.4", + "uuid": "8.3.2" + } + }, "node_modules/uvu": { "version": "0.5.6", "resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz", @@ -11821,6 +11907,14 @@ "node": ">=4.0" } }, + "node_modules/xmlhttprequest-ssl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz", + "integrity": "sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -13414,6 +13508,11 @@ "@sinonjs/commons": "^3.0.0" } }, + "@socket.io/component-emitter": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", + "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==" + }, "@szmarczak/http-timer": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", @@ -13734,6 +13833,11 @@ "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz", "integrity": "sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA==" }, + "@types/uuid": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.4.tgz", + "integrity": "sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==" + }, "@types/vscode": { "version": "1.67.0", "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.67.0.tgz", @@ -15187,6 +15291,31 @@ "once": "^1.4.0" } }, + "engine.io-client": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.5.2.tgz", + "integrity": "sha512-CQZqbrpEYnrpGqC07a9dJDz4gePZUgTPMU3NKJPSeQOyw27Tst4Pl3FemKoFGAlHzgZmKjoRmiJvbWfhCXUlIg==", + "requires": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1", + "engine.io-parser": "~5.2.1", + "ws": "~8.11.0", + "xmlhttprequest-ssl": "~2.0.0" + }, + "dependencies": { + "ws": { + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "requires": {} + } + } + }, + "engine.io-parser": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.1.tgz", + "integrity": "sha512-9JktcM3u18nU9N2Lz3bWeBgxVgOKpw7yhRaoxQA3FUDZzzw+9WlA6p4G4u0RixNkg14fH7EfEc/RhpurtiROTQ==" + }, "entities": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", @@ -19342,6 +19471,26 @@ "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==" }, + "socket.io-client": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.2.tgz", + "integrity": "sha512-vtA0uD4ibrYD793SOIAwlo8cj6haOeMHrGvwPxJsxH7CeIksqJ+3Zc06RvWTIFgiSqx4A3sOnTXpfAEE2Zyz6w==", + "requires": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.2", + "engine.io-client": "~6.5.2", + "socket.io-parser": "~4.2.4" + } + }, + "socket.io-parser": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", + "requires": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + } + }, "socks": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", @@ -20120,8 +20269,16 @@ "uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" + }, + "uuidv4": { + "version": "6.2.13", + "resolved": "https://registry.npmjs.org/uuidv4/-/uuidv4-6.2.13.tgz", + "integrity": "sha512-AXyzMjazYB3ovL3q051VLH06Ixj//Knx7QnUSi1T//Ie3io6CpsPu9nVMOx5MoLWh6xV0B9J0hIaxungxXUbPQ==", + "requires": { + "@types/uuid": "8.3.4", + "uuid": "8.3.2" + } }, "uvu": { "version": "0.5.6", @@ -20464,6 +20621,11 @@ "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", "dev": true }, + "xmlhttprequest-ssl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz", + "integrity": "sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A==" + }, "y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index e69634f75..9f4e19664 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -1,7 +1,7 @@ { "name": "continue", "icon": "media/icon.png", - "version": "0.0.414", + "version": "0.1.40", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" @@ -265,8 +265,10 @@ "react-markdown": "^8.0.7", "react-redux": "^8.0.5", "request": "^2.88.2", + "socket.io-client": "^4.7.2", "strip-ansi": "^7.1.0", "tailwindcss": "^3.3.2", + "uuidv4": "^6.2.13", "vscode-languageclient": "^8.0.2", "ws": "^8.13.0" }, diff --git a/extensions/vscode/schema/ContextItemId.d.ts b/extensions/vscode/schema/ContextItemId.d.ts new file mode 100644 index 000000000..4d4580eb7 --- /dev/null +++ b/extensions/vscode/schema/ContextItemId.d.ts @@ -0,0 +1,19 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type ContextItemId = ContextItemId1; +export type ProviderTitle = string; +export type ItemId = string; + +/** + * A ContextItemId is a unique identifier for a ContextItem. + */ +export interface ContextItemId1 { + provider_title: ProviderTitle; + item_id: ItemId; + [k: string]: unknown; +} diff --git a/extensions/vscode/schema/ContextProviderDescription.d.ts b/extensions/vscode/schema/ContextProviderDescription.d.ts new file mode 100644 index 000000000..7e2876287 --- /dev/null +++ b/extensions/vscode/schema/ContextProviderDescription.d.ts @@ -0,0 +1,22 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type ContextProviderDescription = ContextProviderDescription1; +export type Title = string; +export type DisplayTitle = string; +export type Description = string; +export type Dynamic = boolean; +export type RequiresQuery = boolean; + +export interface ContextProviderDescription1 { + title: Title; + display_title: DisplayTitle; + description: Description; + dynamic: Dynamic; + requires_query: RequiresQuery; + [k: string]: unknown; +} diff --git a/extensions/vscode/schema/ContinueConfig.d.ts b/extensions/vscode/schema/ContinueConfig.d.ts index 7a4bdf8fd..ec535d2e7 100644 --- a/extensions/vscode/schema/ContinueConfig.d.ts +++ b/extensions/vscode/schema/ContinueConfig.d.ts @@ -100,10 +100,12 @@ export type Proxy = string; */ export type ApiKey = string; export type Saved = LLM[]; +export type Temperature1 = number; +export type SystemMessage2 = string; /** * The temperature parameter for sampling from the LLM. Higher temperatures will result in more random output, while lower temperatures will result in more predictable output. This value ranges from 0 to 1. */ -export type Temperature1 = number; +export type Temperature2 = number; export type Name3 = string; export type Prompt = string; export type Description1 = string; @@ -124,7 +126,7 @@ export type OnTraceback = Step; /** * A system message that will always be followed by the LLM */ -export type SystemMessage2 = string; +export type SystemMessage3 = string; /** * A Policy object that can be used to override the default behavior of Continue, for example in order to build custom agents that take multiple steps at a time. */ @@ -133,10 +135,6 @@ export type PolicyOverride = Policy; * The title of the ContextProvider. This is what must be typed in the input to trigger the ContextProvider. */ export type Title1 = string; -/** - * The ContinueSDK instance accessible by the ContextProvider - */ -export type Sdk = ContinueSDK1; /** * The display title of the ContextProvider shown in the dropdown menu */ @@ -189,11 +187,11 @@ export interface ContinueConfig1 { disallowed_steps?: DisallowedSteps; allow_anonymous_telemetry?: AllowAnonymousTelemetry; models?: Models; - temperature?: Temperature1; + temperature?: Temperature2; custom_commands?: CustomCommands; slash_commands?: SlashCommands; on_traceback?: OnTraceback; - system_message?: SystemMessage2; + system_message?: SystemMessage3; policy_override?: PolicyOverride; context_providers?: ContextProviders; user_token?: UserToken; @@ -233,7 +231,8 @@ export interface Models1 { edit?: LLM; chat?: LLM; saved?: Saved; - sdk?: ContinueSDK; + temperature?: Temperature1; + system_message?: SystemMessage2; [k: string]: unknown; } export interface LLM { @@ -269,9 +268,6 @@ export interface Headers { export interface PromptTemplates { [k: string]: unknown; } -export interface ContinueSDK { - [k: string]: unknown; -} export interface CustomCommand { name: Name3; prompt: Prompt; @@ -305,7 +301,7 @@ export interface Policy { */ export interface ContextProvider { title: Title1; - sdk?: Sdk; + ide?: Ide; display_title: DisplayTitle; description: Description3; dynamic: Dynamic; @@ -313,10 +309,7 @@ export interface ContextProvider { selected_items?: SelectedItems; [k: string]: unknown; } -/** - * To avoid circular imports - */ -export interface ContinueSDK1 { +export interface Ide { [k: string]: unknown; } /** diff --git a/extensions/vscode/schema/ContinueError.d.ts b/extensions/vscode/schema/ContinueError.d.ts new file mode 100644 index 000000000..0e716a168 --- /dev/null +++ b/extensions/vscode/schema/ContinueError.d.ts @@ -0,0 +1,16 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type ContinueError = ContinueError1; +export type Title = string; +export type Message = string; + +export interface ContinueError1 { + title: Title; + message: Message; + [k: string]: unknown; +} diff --git a/extensions/vscode/schema/FullState.d.ts b/extensions/vscode/schema/FullState.d.ts deleted file mode 100644 index 90b8506b4..000000000 --- a/extensions/vscode/schema/FullState.d.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* eslint-disable */ -/** - * This file was automatically generated by json-schema-to-typescript. - * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, - * and run json-schema-to-typescript to regenerate this file. - */ - -export type FullState = FullState1; -export type Name = string; -export type Hide = boolean; -export type Description = string; -export type ClassName = string; -export type SystemMessage = string; -export type Role = "assistant" | "user" | "system" | "function"; -export type Content = string; -export type Name1 = string; -export type Summary = string; -export type Name2 = string; -export type Arguments = string; -export type ChatContext = ChatMessage[]; -export type ManageOwnChatContext = boolean; -export type Depth = number; -export type Deleted = boolean; -export type Active = boolean; -export type Logs = string[]; -export type Name3 = string; -export type Description1 = string; -export type ProviderTitle = string; -export type ItemId = string; -export type Content1 = string; -export type Editing = boolean; -export type Editable = boolean; -export type ContextUsed = ContextItem[]; -export type Timeline = HistoryNode[]; -export type CurrentIndex = number; -export type Active1 = boolean; -export type UserInputQueue = string[]; -export type Name4 = string; -export type Description2 = string; -export type SlashCommands = SlashCommandDescription[]; -export type AddingHighlightedCode = boolean; -export type SelectedContextItems = ContextItem[]; -export type SessionId = string; -export type Title = string; -export type DateCreated = string; -export type WorkspaceDirectory = string; -export type SystemMessage1 = string; -export type Temperature = number; -export type Title1 = string; -export type DisplayTitle = string; -export type Description3 = string; -export type Dynamic = boolean; -export type RequiresQuery = boolean; -export type ContextProviders = ContextProviderDescription[]; -export type MeilisearchUrl = string; - -/** - * A full state of the program, including the history - */ -export interface FullState1 { - history: History; - active: Active1; - user_input_queue: UserInputQueue; - slash_commands: SlashCommands; - adding_highlighted_code: AddingHighlightedCode; - selected_context_items: SelectedContextItems; - session_info?: SessionInfo; - config: ContinueConfig; - saved_context_groups?: SavedContextGroups; - context_providers?: ContextProviders; - meilisearch_url?: MeilisearchUrl; - [k: string]: unknown; -} -/** - * A history of steps taken and their results - */ -export interface History { - timeline: Timeline; - current_index: CurrentIndex; - [k: string]: unknown; -} -/** - * A point in history, a list of which make up History - */ -export interface HistoryNode { - step: Step; - observation?: Observation; - depth: Depth; - deleted?: Deleted; - active?: Active; - logs?: Logs; - context_used?: ContextUsed; - [k: string]: unknown; -} -export interface Step { - name?: Name; - hide?: Hide; - description?: Description; - class_name?: ClassName; - system_message?: SystemMessage; - chat_context?: ChatContext; - manage_own_chat_context?: ManageOwnChatContext; - [k: string]: unknown; -} -export interface ChatMessage { - role: Role; - content?: Content; - name?: Name1; - summary: Summary; - function_call?: FunctionCall; - [k: string]: unknown; -} -export interface FunctionCall { - name: Name2; - arguments: Arguments; - [k: string]: unknown; -} -export interface Observation { - [k: string]: unknown; -} -/** - * A ContextItem is a single item that is stored in the ContextManager. - */ -export interface ContextItem { - description: ContextItemDescription; - content: Content1; - editing?: Editing; - editable?: Editable; - [k: string]: unknown; -} -/** - * A ContextItemDescription is a description of a ContextItem that is displayed to the user when they type '@'. - * - * The id can be used to retrieve the ContextItem from the ContextManager. - */ -export interface ContextItemDescription { - name: Name3; - description: Description1; - id: ContextItemId; - [k: string]: unknown; -} -/** - * A ContextItemId is a unique identifier for a ContextItem. - */ -export interface ContextItemId { - provider_title: ProviderTitle; - item_id: ItemId; - [k: string]: unknown; -} -export interface SlashCommandDescription { - name: Name4; - description: Description2; - [k: string]: unknown; -} -export interface SessionInfo { - session_id: SessionId; - title: Title; - date_created: DateCreated; - workspace_directory?: WorkspaceDirectory; - [k: string]: unknown; -} -export interface ContinueConfig { - system_message?: SystemMessage1; - temperature?: Temperature; - [k: string]: unknown; -} -export interface SavedContextGroups { - [k: string]: ContextItem[]; -} -export interface ContextProviderDescription { - title: Title1; - display_title: DisplayTitle; - description: Description3; - dynamic: Dynamic; - requires_query: RequiresQuery; - [k: string]: unknown; -} diff --git a/extensions/vscode/schema/Models.d.ts b/extensions/vscode/schema/Models.d.ts index a74c94bfd..7c1c814e6 100644 --- a/extensions/vscode/schema/Models.d.ts +++ b/extensions/vscode/schema/Models.d.ts @@ -71,6 +71,8 @@ export type Proxy = string; */ export type ApiKey = string; export type Saved = LLM[]; +export type Temperature1 = number; +export type SystemMessage1 = string; /** * Main class that holds the current model configuration @@ -81,7 +83,8 @@ export interface Models1 { edit?: LLM; chat?: LLM; saved?: Saved; - sdk?: ContinueSDK; + temperature?: Temperature1; + system_message?: SystemMessage1; [k: string]: unknown; } export interface LLM { @@ -117,6 +120,3 @@ export interface Headers { export interface PromptTemplates { [k: string]: unknown; } -export interface ContinueSDK { - [k: string]: unknown; -} diff --git a/extensions/vscode/schema/HistoryNode.d.ts b/extensions/vscode/schema/PersistedSessionInfo.d.ts similarity index 56% rename from extensions/vscode/schema/HistoryNode.d.ts rename to extensions/vscode/schema/PersistedSessionInfo.d.ts index ad4c1154e..b513c2a84 100644 --- a/extensions/vscode/schema/HistoryNode.d.ts +++ b/extensions/vscode/schema/PersistedSessionInfo.d.ts @@ -5,67 +5,62 @@ * and run json-schema-to-typescript to regenerate this file. */ -export type HistoryNode = HistoryNode1; +export type PersistedSessionInfo = PersistedSessionInfo1; +export type StepType = string; export type Name = string; -export type Hide = boolean; export type Description = string; -export type ClassName = string; -export type SystemMessage = string; -export type Role = "assistant" | "user" | "system" | "function"; -export type Content = string; -export type Name1 = string; -export type Summary = string; -export type Name2 = string; -export type Arguments = string; -export type ChatContext = ChatMessage[]; -export type ManageOwnChatContext = boolean; +export type Hide = boolean; export type Depth = number; -export type Deleted = boolean; -export type Active = boolean; +export type Title = string; +export type Message = string; +export type Observations = Observation[]; export type Logs = string[]; -export type Name3 = string; +export type History = StepDescription[]; +export type Name1 = string; export type Description1 = string; export type ProviderTitle = string; export type ItemId = string; -export type Content1 = string; +export type Content = string; export type Editing = boolean; export type Editable = boolean; -export type ContextUsed = ContextItem[]; +export type ContextItems = ContextItem[]; +export type Title1 = string; +export type WorkspaceDirectory = string; +export type SessionId = string; +export interface PersistedSessionInfo1 { + session_state: SessionState; + title: Title1; + workspace_directory: WorkspaceDirectory; + session_id: SessionId; + [k: string]: unknown; +} /** - * A point in history, a list of which make up History + * Full session history and important state needed for autopilot to Continue */ -export interface HistoryNode1 { - step: Step; - observation?: Observation; +export interface SessionState { + history: History; + context_items: ContextItems; + [k: string]: unknown; +} +export interface StepDescription { + step_type: StepType; + name: Name; + description: Description; + params: Params; + hide: Hide; depth: Depth; - deleted?: Deleted; - active?: Active; + error?: ContinueError; + observations?: Observations; logs?: Logs; - context_used?: ContextUsed; [k: string]: unknown; } -export interface Step { - name?: Name; - hide?: Hide; - description?: Description; - class_name?: ClassName; - system_message?: SystemMessage; - chat_context?: ChatContext; - manage_own_chat_context?: ManageOwnChatContext; +export interface Params { [k: string]: unknown; } -export interface ChatMessage { - role: Role; - content?: Content; - name?: Name1; - summary: Summary; - function_call?: FunctionCall; - [k: string]: unknown; -} -export interface FunctionCall { - name: Name2; - arguments: Arguments; +export interface ContinueError { + title: Title; + message: Message; [k: string]: unknown; } export interface Observation { @@ -76,7 +71,7 @@ export interface Observation { */ export interface ContextItem { description: ContextItemDescription; - content: Content1; + content: Content; editing?: Editing; editable?: Editable; [k: string]: unknown; @@ -87,7 +82,7 @@ export interface ContextItem { * The id can be used to retrieve the ContextItem from the ContextManager. */ export interface ContextItemDescription { - name: Name3; + name: Name1; description: Description1; id: ContextItemId; [k: string]: unknown; diff --git a/extensions/vscode/schema/RangeInFileWithContents.d.ts b/extensions/vscode/schema/RangeInFileWithContents.d.ts new file mode 100644 index 000000000..ef6270f1f --- /dev/null +++ b/extensions/vscode/schema/RangeInFileWithContents.d.ts @@ -0,0 +1,35 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type RangeInFileWithContents = RangeInFileWithContents1; +export type Filepath = string; +export type Line = number; +export type Character = number; +export type Contents = string; + +/** + * A range in a file with the contents of the range. + */ +export interface RangeInFileWithContents1 { + filepath: Filepath; + range: Range; + contents: Contents; + [k: string]: unknown; +} +/** + * A range in a file. 0-indexed. + */ +export interface Range { + start: Position; + end: Position; + [k: string]: unknown; +} +export interface Position { + line: Line; + character: Character; + [k: string]: unknown; +} diff --git a/gui/src/schema/HistoryNode.d.ts b/extensions/vscode/schema/SessionState.d.ts similarity index 56% rename from gui/src/schema/HistoryNode.d.ts rename to extensions/vscode/schema/SessionState.d.ts index ad4c1154e..0fd7a8a2c 100644 --- a/gui/src/schema/HistoryNode.d.ts +++ b/extensions/vscode/schema/SessionState.d.ts @@ -5,67 +5,52 @@ * and run json-schema-to-typescript to regenerate this file. */ -export type HistoryNode = HistoryNode1; +export type SessionState = SessionState1; +export type StepType = string; export type Name = string; -export type Hide = boolean; export type Description = string; -export type ClassName = string; -export type SystemMessage = string; -export type Role = "assistant" | "user" | "system" | "function"; -export type Content = string; -export type Name1 = string; -export type Summary = string; -export type Name2 = string; -export type Arguments = string; -export type ChatContext = ChatMessage[]; -export type ManageOwnChatContext = boolean; +export type Hide = boolean; export type Depth = number; -export type Deleted = boolean; -export type Active = boolean; +export type Title = string; +export type Message = string; +export type Observations = Observation[]; export type Logs = string[]; -export type Name3 = string; +export type History = StepDescription[]; +export type Name1 = string; export type Description1 = string; export type ProviderTitle = string; export type ItemId = string; -export type Content1 = string; +export type Content = string; export type Editing = boolean; export type Editable = boolean; -export type ContextUsed = ContextItem[]; +export type ContextItems = ContextItem[]; /** - * A point in history, a list of which make up History + * Full session history and important state needed for autopilot to Continue */ -export interface HistoryNode1 { - step: Step; - observation?: Observation; +export interface SessionState1 { + history: History; + context_items: ContextItems; + [k: string]: unknown; +} +export interface StepDescription { + step_type: StepType; + name: Name; + description: Description; + params: Params; + hide: Hide; depth: Depth; - deleted?: Deleted; - active?: Active; + error?: ContinueError; + observations?: Observations; logs?: Logs; - context_used?: ContextUsed; [k: string]: unknown; } -export interface Step { - name?: Name; - hide?: Hide; - description?: Description; - class_name?: ClassName; - system_message?: SystemMessage; - chat_context?: ChatContext; - manage_own_chat_context?: ManageOwnChatContext; +export interface Params { [k: string]: unknown; } -export interface ChatMessage { - role: Role; - content?: Content; - name?: Name1; - summary: Summary; - function_call?: FunctionCall; - [k: string]: unknown; -} -export interface FunctionCall { - name: Name2; - arguments: Arguments; +export interface ContinueError { + title: Title; + message: Message; [k: string]: unknown; } export interface Observation { @@ -76,7 +61,7 @@ export interface Observation { */ export interface ContextItem { description: ContextItemDescription; - content: Content1; + content: Content; editing?: Editing; editable?: Editable; [k: string]: unknown; @@ -87,7 +72,7 @@ export interface ContextItem { * The id can be used to retrieve the ContextItem from the ContextManager. */ export interface ContextItemDescription { - name: Name3; + name: Name1; description: Description1; id: ContextItemId; [k: string]: unknown; diff --git a/extensions/vscode/schema/SessionUpdate.d.ts b/extensions/vscode/schema/SessionUpdate.d.ts new file mode 100644 index 000000000..ef17dc8e0 --- /dev/null +++ b/extensions/vscode/schema/SessionUpdate.d.ts @@ -0,0 +1,61 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type SessionUpdate = SessionUpdate1; +export type Index = number; +export type Update = DeltaStep | SetStep | SessionUpdate1; +export type Name = string; +export type Description = string; +export type Observations = Observation[]; +export type Logs = string[]; +export type StepType = string; +export type Name1 = string; +export type Description1 = string; +export type Hide = boolean; +export type Depth = number; +export type Title = string; +export type Message = string; +export type Observations1 = Observation[]; +export type Logs1 = string[]; +export type Stop = boolean; + +export interface SessionUpdate1 { + index: Index; + update: Update; + stop?: Stop; + [k: string]: unknown; +} +export interface DeltaStep { + name?: Name; + description?: Description; + observations?: Observations; + logs?: Logs; + [k: string]: unknown; +} +export interface Observation { + [k: string]: unknown; +} +export interface SetStep { + step_type?: StepType; + name?: Name1; + description?: Description1; + params?: Params; + hide?: Hide; + depth?: Depth; + error?: ContinueError; + observations?: Observations1; + logs?: Logs1; + [k: string]: unknown; +} +export interface Params { + [k: string]: unknown; +} +export interface ContinueError { + title: Title; + message: Message; + [k: string]: unknown; +} diff --git a/extensions/vscode/schema/SlashCommandDescription.d.ts b/extensions/vscode/schema/SlashCommandDescription.d.ts new file mode 100644 index 000000000..2c7a45ae0 --- /dev/null +++ b/extensions/vscode/schema/SlashCommandDescription.d.ts @@ -0,0 +1,16 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type SlashCommandDescription = SlashCommandDescription1; +export type Name = string; +export type Description = string; + +export interface SlashCommandDescription1 { + name: Name; + description: Description; + [k: string]: unknown; +} diff --git a/extensions/vscode/scripts/install_from_source.py b/extensions/vscode/scripts/install_from_source.py index dc153fdc2..8e99d61d1 100644 --- a/extensions/vscode/scripts/install_from_source.py +++ b/extensions/vscode/scripts/install_from_source.py @@ -74,7 +74,9 @@ def main(): break if not editor_cmd: - print("No code editor command is available. Please install a code editor and try again.") + print( + "No code editor command is available. Please install a code editor and try again." + ) return resp = run("cd ../../../server; poetry install; poetry run typegen") diff --git a/extensions/vscode/src/activation/activate.ts b/extensions/vscode/src/activation/activate.ts index 3c6d49370..bd9914079 100644 --- a/extensions/vscode/src/activation/activate.ts +++ b/extensions/vscode/src/activation/activate.ts @@ -12,10 +12,11 @@ import registerQuickFixProvider from "../lang-server/codeActions"; import { getExtensionUri } from "../util/vscode"; import path from "path"; import { setupInlineTips } from "./inlineTips"; +import { v4 } from "uuid"; export let extensionContext: vscode.ExtensionContext | undefined = undefined; - export let ideProtocolClient: IdeProtocolClient; +export let windowId: string = v4(); function addPythonPathForConfig() { // Add to python.analysis.extraPaths global setting so config.py gets LSP @@ -70,8 +71,39 @@ async function openTutorial(context: vscode.ExtensionContext) { } } +function showRefactorMigrationMessage() { + // Only if the vscode setting continue.manuallyRunningSserver is true + const manuallyRunningServer = + vscode.workspace + .getConfiguration("continue") + .get("manuallyRunningServer") || false; + if ( + manuallyRunningServer && + extensionContext?.globalState.get( + "continue.showRefactorMigrationMessage" + ) !== false + ) { + vscode.window + .showInformationMessage( + "The Continue server protocol was recently updated in a way that requires the latest server version to work properly. Since you are manually running the server, please be sure to upgrade with `pip install --upgrade continuedev`.", + "Got it", + "Don't show again" + ) + .then((selection) => { + if (selection === "Don't show again") { + // Get the global state + extensionContext?.globalState.update( + "continue.showRefactorMigrationMessage", + false + ); + } + }); + } +} + export async function activateExtension(context: vscode.ExtensionContext) { extensionContext = context; + console.log("Using Continue version: ", getExtensionVersion()); try { console.log( @@ -81,6 +113,7 @@ export async function activateExtension(context: vscode.ExtensionContext) { } catch (e) { console.log("Error getting workspace folder: ", e); } + console.log("Window ID: ", windowId); // Register commands and providers registerAllCodeLensProviders(context); @@ -89,23 +122,20 @@ export async function activateExtension(context: vscode.ExtensionContext) { addPythonPathForConfig(); await openTutorial(context); setupInlineTips(context); + showRefactorMigrationMessage(); - // Start the server - const sessionIdPromise = (async () => { + (async () => { + // Start the server await startContinuePythonServer(); - console.log("Continue server started"); + // Initialize IDE Protocol Client const serverUrl = getContinueServerUrl(); - ideProtocolClient = new IdeProtocolClient( - `${serverUrl.replace("http", "ws")}/ide/ws`, - context - ); - return await ideProtocolClient.getSessionId(); + ideProtocolClient = new IdeProtocolClient(serverUrl, context); })(); // Register Continue GUI as sidebar webview, and beginning a new session - const provider = new ContinueGUIWebviewViewProvider(sessionIdPromise); + const provider = new ContinueGUIWebviewViewProvider(); context.subscriptions.push( vscode.window.registerWebviewViewProvider( @@ -116,6 +146,4 @@ export async function activateExtension(context: vscode.ExtensionContext) { } ) ); - - // vscode.commands.executeCommand("continue.focusContinueInput"); } diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 369c19bc5..ee91e3d37 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -17,25 +17,26 @@ function addHighlightedCodeToContext(edit: boolean) { if (selection.isEmpty) return; const range = new vscode.Range(selection.start, selection.end); const contents = editor.document.getText(range); - ideProtocolClient?.sendHighlightedCode( - [ - { - filepath: editor.document.uri.fsPath, - contents, - range: { - start: { - line: selection.start.line, - character: selection.start.character, - }, - end: { - line: selection.end.line, - character: selection.end.character, - }, - }, + const rangeInFileWithContents = { + filepath: editor.document.uri.fsPath, + contents, + range: { + start: { + line: selection.start.line, + character: selection.start.character, }, - ], - edit - ); + end: { + line: selection.end.line, + character: selection.end.character, + }, + }, + }; + + debugPanelWebview?.postMessage({ + type: "highlightedCode", + rangeInFileWithContents, + edit, + }); } } @@ -82,7 +83,10 @@ const commandsMap: { [command: string]: (...args: any) => any } = { title: "Continue Quick Input", }); if (text) { - ideProtocolClient.sendMainUserInput(text); + debugPanelWebview?.postMessage({ + type: "userInput", + input: text, + }); if (!text.startsWith("/edit")) { vscode.commands.executeCommand("continue.continueGUIView.focus"); } diff --git a/extensions/vscode/src/continueIdeClient.ts b/extensions/vscode/src/continueIdeClient.ts index f47f988a5..bb6937a58 100644 --- a/extensions/vscode/src/continueIdeClient.ts +++ b/extensions/vscode/src/continueIdeClient.ts @@ -16,128 +16,97 @@ import { rejectSuggestionCommand, } from "./suggestions"; import { FileEditWithFullContents } from "../schema/FileEditWithFullContents"; -import { WebsocketMessenger } from "./util/messenger"; import { diffManager } from "./diffs"; const os = require("os"); const path = require("path"); +import { v4 } from "uuid"; +import { windowId } from "./activation/activate"; +import * as io from "socket.io-client"; +import { debugPanelWebview } from "./debugPanel"; const continueVirtualDocumentScheme = "continue"; class IdeProtocolClient { - private messenger: WebsocketMessenger | null = null; private readonly context: vscode.ExtensionContext; private _makingEdit = 0; - private _highlightDebounce: NodeJS.Timeout | null = null; - - private _lastReloadTime: number = 16; - private _reconnectionTimeouts: NodeJS.Timeout[] = []; - - sessionId: string | null = null; private _serverUrl: string; + private socket: io.Socket; - private _newWebsocketMessenger() { - const requestUrl = - this._serverUrl + (this.sessionId ? `?session_id=${this.sessionId}` : ""); - const messenger = new WebsocketMessenger(requestUrl); - this.messenger = messenger; - - const reconnect = () => { - this.messenger = null; - - // Exponential backoff to reconnect - this._reconnectionTimeouts.forEach((to) => clearTimeout(to)); - - const timeout = setTimeout(() => { - if (this.messenger?.websocket?.readyState === 1) { - return; - } - this._newWebsocketMessenger(); - }, this._lastReloadTime); - - this._reconnectionTimeouts.push(timeout); - this._lastReloadTime = Math.min(2 * this._lastReloadTime, 5000); - }; - messenger.onOpen(() => { - this._reconnectionTimeouts.forEach((to) => clearTimeout(to)); - }); - messenger.onClose(() => { - reconnect(); - }); - messenger.onError(() => { - reconnect(); - }); - messenger.onMessage((messageType, data, messenger) => { - this.handleMessage(messageType, data, messenger).catch((err) => { - console.log("Error handling message: ", err); - vscode.window - .showErrorMessage( - `Error handling message (${messageType}) from Continue server: ` + - err, - "View Logs" - ) - .then((selection) => { - if (selection === "View Logs") { - vscode.commands.executeCommand("continue.viewLogs"); - } - }); - }); + private send(messageType: string, messageId: string, data: object) { + const payload = JSON.stringify({ + message_type: messageType, + data, + message_id: messageId, }); + this.socket.send(payload); } constructor(serverUrl: string, context: vscode.ExtensionContext) { this.context = context; this._serverUrl = serverUrl; - this._newWebsocketMessenger(); + const windowInfo = { + window_id: windowId, + workspace_directory: this.getWorkspaceDirectory(), + unique_id: this.getUniqueId(), + ide_info: { + name: "vscode", + version: vscode.version, + remote_name: vscode.env.remoteName, + }, + }; - // Setup listeners for any file changes in open editors - // vscode.workspace.onDidChangeTextDocument((event) => { - // if (this._makingEdit === 0) { - // let fileEdits: FileEditWithFullContents[] = event.contentChanges.map( - // (change) => { - // return { - // fileEdit: { - // filepath: event.document.uri.fsPath, - // range: { - // start: { - // line: change.range.start.line, - // character: change.range.start.character, - // }, - // end: { - // line: change.range.end.line, - // character: change.range.end.character, - // }, - // }, - // replacement: change.text, - // }, - // fileContents: event.document.getText(), - // }; - // } - // ); - // this.messenger?.send("fileEdits", { fileEdits }); - // } else { - // this._makingEdit--; - // } - // }); + const requestUrl = `${this._serverUrl}?window_info=${encodeURIComponent( + JSON.stringify(windowInfo) + )}`; + console.log("Connecting to Continue server at: ", requestUrl); + this.socket = io.io(requestUrl, { + path: "/ide/socket.io", + transports: ["websocket", "polling", "flashsocket"], + }); + + this.socket.on("message", (message, callback) => { + const { + message_type: messageType, + data, + message_id: messageId, + } = message; + this.handleMessage(messageType, data, messageId, callback).catch( + (err) => { + console.log("Error handling message: ", err); + vscode.window + .showErrorMessage( + `Error handling message (${messageType}) from Continue server: ` + + err, + "View Logs" + ) + .then((selection) => { + if (selection === "View Logs") { + vscode.commands.executeCommand("continue.viewLogs"); + } + }); + } + ); + }); // Listen for new file creation vscode.workspace.onDidCreateFiles((event) => { const filepaths = event.files.map((file) => file.fsPath); - this.messenger?.send("filesCreated", { filepaths }); + this.send("filesCreated", v4(), { filepaths }); }); // Listen for file deletion vscode.workspace.onDidDeleteFiles((event) => { const filepaths = event.files.map((file) => file.fsPath); - this.messenger?.send("filesDeleted", { filepaths }); + this.send("filesDeleted", v4(), { filepaths }); }); // Listen for file renaming vscode.workspace.onDidRenameFiles((event) => { const oldFilepaths = event.files.map((file) => file.oldUri.fsPath); const newFilepaths = event.files.map((file) => file.newUri.fsPath); - this.messenger?.send("filesRenamed", { + this.send("filesRenamed", v4(), { old_filepaths: oldFilepaths, new_filepaths: newFilepaths, }); @@ -147,7 +116,7 @@ class IdeProtocolClient { vscode.workspace.onDidSaveTextDocument((event) => { const filepath = event.uri.fsPath; const contents = event.getText(); - this.messenger?.send("fileSaved", { filepath, contents }); + this.send("fileSaved", v4(), { filepath, contents }); }); // Setup listeners for any selection changes in open editors @@ -234,58 +203,66 @@ class IdeProtocolClient { async handleMessage( messageType: string, data: any, - messenger: WebsocketMessenger + messageId: string, + callback: (data: any) => void ) { + const respond = (messageType: string, responseData: any) => { + callback({ + message_type: messageType, + data: responseData, + message_id: messageId, + }); + }; switch (messageType) { case "highlightedCode": - messenger.send("highlightedCode", { + respond("highlightedCode", { highlightedCode: this.getHighlightedCode(), }); break; case "workspaceDirectory": - messenger.send("workspaceDirectory", { + respond("workspaceDirectory", { workspaceDirectory: this.getWorkspaceDirectory(), }); break; case "uniqueId": - messenger.send("uniqueId", { + respond("uniqueId", { uniqueId: this.getUniqueId(), }); break; case "ide": - messenger.send("ide", { + respond("ide", { name: "vscode", version: vscode.version, remoteName: vscode.env.remoteName, }); break; case "fileExists": - messenger.send("fileExists", { + respond("fileExists", { exists: await this.fileExists(data.filepath), }); break; case "getUserSecret": - messenger.send("getUserSecret", { + respond("getUserSecret", { value: await this.getUserSecret(data.key), }); break; case "openFiles": - messenger.send("openFiles", { + respond("openFiles", { openFiles: this.getOpenFiles(), }); break; case "visibleFiles": - messenger.send("visibleFiles", { + respond("visibleFiles", { visibleFiles: this.getVisibleFiles(), }); break; case "readFile": - messenger.send("readFile", { + respond("readFile", { contents: await this.readFile(data.filepath), }); break; case "getTerminalContents": - messenger.send("getTerminalContents", { + respond("getTerminalContents", { contents: await this.getTerminalContents(data.commands), }); break; @@ -300,13 +277,13 @@ class IdeProtocolClient { console.log("Error listing directory contents: ", e); contents = []; } - messenger.send("listDirectoryContents", { + respond("listDirectoryContents", { contents, }); break; case "editFile": const fileEdit = await this.editFile(data.edit); - messenger.send("editFile", { + respond("editFile", { fileEdit, }); break; @@ -314,7 +291,7 @@ class IdeProtocolClient { this.highlightCode(data.rangeInFile, data.color); break; case "runCommand": - messenger.send("runCommand", { + respond("runCommand", { output: await this.runCommand(data.command), }); break; @@ -358,6 +335,7 @@ class IdeProtocolClient { throw Error("Unknown message type:" + messageType); } } + getWorkspaceDirectory() { if (!vscode.workspace.workspaceFolders) { // Return the home directory @@ -429,7 +407,7 @@ class IdeProtocolClient { } async setTelemetryEnabled(enabled: boolean) { - this.messenger?.send("setTelemetryEnabled", { enabled }); + this.send("setTelemetryEnabled", v4(), { enabled }); } async showDiff(filepath: string, replacement: string, step_index: number) { @@ -493,28 +471,6 @@ class IdeProtocolClient { // ------------------------------------ // // Initiate Request - async getSessionId(): Promise { - await new Promise((resolve, reject) => { - // Repeatedly try to connect to the server - const interval = setInterval(() => { - if ( - this.messenger && - this.messenger.websocket.readyState === 1 // 1 => OPEN - ) { - clearInterval(interval); - resolve(null); - } else { - // console.log("Websocket not yet open, trying again..."); - } - }, 1000); - }); - console.log("Getting session ID"); - const resp = await this.messenger?.sendAndReceive("getSessionId", {}); - console.log("New Continue session with ID: ", resp.sessionId); - this.sessionId = resp.sessionId; - return resp.sessionId; - } - acceptRejectSuggestion(accept: boolean, key: SuggestionRanges) { if (accept) { acceptSuggestionCommand(key); @@ -615,19 +571,24 @@ class IdeProtocolClient { } async readFile(filepath: string): Promise { + const MAX_BYTES = 500000; // 0.5MB - socket.io has a 1MB limit, but seems to die a bit above 0.5MB let contents: string | undefined; if (typeof contents === "undefined") { try { const fileStats = await vscode.workspace.fs.stat( uriFromFilePath(filepath) ); - if (fileStats.size > 1000000) { + if (fileStats.size > 10 * MAX_BYTES) { return ""; } - contents = await vscode.workspace.fs - .readFile(uriFromFilePath(filepath)) - .then((bytes) => new TextDecoder().decode(bytes)); + const bytes = await vscode.workspace.fs.readFile( + uriFromFilePath(filepath) + ); + + // Truncate the buffer to the first MAX_BYTES + const truncatedBytes = bytes.slice(0, MAX_BYTES); + contents = new TextDecoder().decode(truncatedBytes); } catch { contents = ""; } @@ -729,35 +690,37 @@ class IdeProtocolClient { } sendCommandOutput(output: string) { - this.messenger?.send("commandOutput", { output }); + this.send("commandOutput", v4(), { output }); } sendHighlightedCode( highlightedCode: (RangeInFile & { contents: string })[], edit?: boolean ) { - this.messenger?.send("highlightedCodePush", { highlightedCode, edit }); + this.send("highlightedCodePush", v4(), { + highlightedCode, + edit, + }); } sendAcceptRejectSuggestion(accepted: boolean) { - this.messenger?.send("acceptRejectSuggestion", { accepted }); + this.send("acceptRejectSuggestion", v4(), { accepted }); } sendAcceptRejectDiff(accepted: boolean, stepIndex: number) { - this.messenger?.send("acceptRejectDiff", { accepted, stepIndex }); + this.send("acceptRejectDiff", v4(), { accepted, stepIndex }); } sendMainUserInput(input: string) { - this.messenger?.send("mainUserInput", { input }); + debugPanelWebview?.postMessage({ + type: "userInput", + input, + }); } async debugTerminal() { const contents = await this.getTerminalContents(); - this.messenger?.send("debugTerminal", { contents }); - } - - deleteAtIndex(index: number) { - this.messenger?.send("deleteAtIndex", { index }); + this.send("debugTerminal", v4(), { contents }); } } diff --git a/extensions/vscode/src/debugPanel.ts b/extensions/vscode/src/debugPanel.ts index 6fb383d73..730fb4656 100644 --- a/extensions/vscode/src/debugPanel.ts +++ b/extensions/vscode/src/debugPanel.ts @@ -6,69 +6,16 @@ import { getUniqueId, openEditorAndRevealRange, } from "./util/vscode"; -import { RangeInFile } from "../schema/RangeInFile"; +import { RangeInFileWithContents } from "../schema/RangeInFileWithContents"; import { setFocusedOnContinueInput } from "./commands"; -const WebSocket = require("ws"); +import { ideProtocolClient, windowId } from "./activation/activate"; +import * as io from "socket.io-client"; -let websocketConnections: { [url: string]: WebsocketConnection | undefined } = - {}; - -class WebsocketConnection { - private _ws: WebSocket; - private _onMessage: (message: string) => void; - private _onOpen: () => void; - private _onClose: () => void; - private _onError: (e: any) => void; - - constructor( - url: string, - onMessage: (message: string) => void, - onOpen: () => void, - onClose: () => void, - onError: (e: any) => void - ) { - this._ws = new WebSocket(url); - this._onMessage = onMessage; - this._onOpen = onOpen; - this._onClose = onClose; - this._onError = onError; - - this._ws.addEventListener("message", (event) => { - this._onMessage(event.data); - }); - this._ws.addEventListener("close", () => { - this._onClose(); - }); - this._ws.addEventListener("open", () => { - this._onOpen(); - }); - this._ws.addEventListener("error", (e: any) => { - this._onError(e); - }); - } - - public send(message: string) { - if (typeof message !== "string") { - message = JSON.stringify(message); - } - if (this._ws.readyState === WebSocket.OPEN) { - this._ws.send(message); - } else { - this._ws.addEventListener("open", () => { - this._ws.send(message); - }); - } - } - - public close() { - this._ws.close(); - } -} +let sockets: { [url: string]: io.Socket | undefined } = {}; export let debugPanelWebview: vscode.Webview | undefined; export function setupDebugPanel( - panel: vscode.WebviewPanel | vscode.WebviewView, - sessionIdPromise: Promise + panel: vscode.WebviewPanel | vscode.WebviewView ): string { debugPanelWebview = panel.webview; panel.onDidDispose(() => { @@ -103,30 +50,6 @@ export function setupDebugPanel( const nonce = getNonce(); - vscode.window.onDidChangeTextEditorSelection((e) => { - if (e.selections[0].isEmpty) { - return; - } - - const rangeInFile: RangeInFile = { - range: e.selections[0] as any, - filepath: e.textEditor.document.fileName, - }; - const filesystem = { - [rangeInFile.filepath]: e.textEditor.document.getText(), - }; - panel.webview.postMessage({ - type: "highlightedCode", - rangeInFile, - filesystem, - }); - - panel.webview.postMessage({ - type: "workspacePath", - value: vscode.workspace.workspaceFolders?.[0].uri.fsPath, - }); - }); - async function connectWebsocket(url: string) { return new Promise((resolve, reject) => { const onMessage = (message: any) => { @@ -144,7 +67,7 @@ export function setupDebugPanel( resolve(null); }; const onClose = () => { - websocketConnections[url] = undefined; + sockets[url] = undefined; panel.webview.postMessage({ type: "websocketForwardingClose", url, @@ -158,17 +81,17 @@ export function setupDebugPanel( }); }; try { - const connection = new WebsocketConnection( - url, - onMessage, - onOpen, - onClose, - onError + const socket = io.io( + `${getContinueServerUrl()}?window_id=${windowId}`, + { + path: "/gui/socket.io", + transports: ["websocket", "polling", "flashsocket"], + } ); - websocketConnections[url] = connection; + sockets[url] = socket; resolve(null); } catch (e) { - console.log("Caught it!: ", e); + console.log("Failed to connect to GUI websocket for forwarding", e); reject(e); } }); @@ -176,26 +99,9 @@ export function setupDebugPanel( panel.webview.onDidReceiveMessage(async (data) => { switch (data.type) { - case "onLoad": { - const sessionId = await sessionIdPromise; - panel.webview.postMessage({ - type: "onLoad", - vscMachineId: getUniqueId(), - apiUrl: getContinueServerUrl(), - workspacePaths: vscode.workspace.workspaceFolders?.map( - (folder) => folder.uri.fsPath - ), - sessionId, - vscMediaUrl, - dataSwitchOn: vscode.workspace - .getConfiguration("continue") - .get("dataSwitch"), - }); - break; - } case "websocketForwardingOpen": { let url = data.url; - if (typeof websocketConnections[url] === "undefined") { + if (typeof sockets[url] === "undefined") { await connectWebsocket(url); } else { console.log( @@ -211,28 +117,51 @@ export function setupDebugPanel( } case "websocketForwardingClose": { let url = data.url; - let connection = websocketConnections[url]; - if (typeof connection !== "undefined") { - connection.close(); - websocketConnections[url] = undefined; + let socket = sockets[url]; + if (typeof socket !== "undefined") { + socket.close(); + sockets[url] = undefined; } break; } case "websocketForwardingMessage": { let url = data.url; - let connection = websocketConnections[url]; - if (typeof connection === "undefined") { + let socket = sockets[url]; + if (typeof socket === "undefined") { await connectWebsocket(url); } - connection = websocketConnections[url]; - if (typeof connection === "undefined") { - throw new Error("Failed to connect websocket in VS Code Extension"); + socket = sockets[url]; + if (typeof socket === "undefined") { + throw new Error("Failed to connect socket for forwarding"); } - connection.send(data.message); + socket.send(data.message); break; } - case "openFile": { - openEditorAndRevealRange(data.path, undefined, vscode.ViewColumn.One); + case "showFile": { + ideProtocolClient.openFile(data.filepath); + break; + } + case "showLines": { + ideProtocolClient.highlightCode( + { + filepath: data.filepath, + range: { + start: { + line: data.start, + character: 0, + }, + end: { + line: data.end, + character: 0, + }, + }, + }, + "#00ff0022" + ); + break; + } + case "showVirtualFile": { + ideProtocolClient.showVirtualFile(data.name, data.content); break; } case "toggleDevTools": { @@ -305,6 +234,15 @@ export function setupDebugPanel( + + + + + `; } @@ -313,20 +251,12 @@ export class ContinueGUIWebviewViewProvider implements vscode.WebviewViewProvider { public static readonly viewType = "continue.continueGUIView"; - private readonly sessionIdPromise: Promise; - - constructor(sessionIdPromise: Promise) { - this.sessionIdPromise = sessionIdPromise; - } resolveWebviewView( webviewView: vscode.WebviewView, _context: vscode.WebviewViewResolveContext, _token: vscode.CancellationToken ): void | Thenable { - webviewView.webview.html = setupDebugPanel( - webviewView, - this.sessionIdPromise - ); + webviewView.webview.html = setupDebugPanel(webviewView); } } diff --git a/extensions/vscode/src/diffs.ts b/extensions/vscode/src/diffs.ts index bdf9903b6..640610e0f 100644 --- a/extensions/vscode/src/diffs.ts +++ b/extensions/vscode/src/diffs.ts @@ -6,6 +6,7 @@ import { extensionContext, ideProtocolClient } from "./activation/activate"; import { getMetaKeyLabel, getPlatform } from "./util/util"; import { devDataPath } from "./activation/environmentSetup"; import { uriFromFilePath } from "./util/vscode"; +import { debugPanelWebview } from "./debugPanel"; interface DiffInfo { originalFilepath: string; @@ -297,7 +298,7 @@ class DiffManager { } // Stop the step at step_index in case it is still streaming - ideProtocolClient.deleteAtIndex(diffInfo.step_index); + debugPanelWebview?.postMessage({ type: "stopSession" }); vscode.workspace.textDocuments .find((doc) => doc.uri.fsPath === newFilepath) diff --git a/extensions/vscode/src/util/messenger.ts b/extensions/vscode/src/util/messenger.ts deleted file mode 100644 index 3e17896cd..000000000 --- a/extensions/vscode/src/util/messenger.ts +++ /dev/null @@ -1,177 +0,0 @@ -const WebSocket = require("ws"); - -export abstract class Messenger { - abstract send(messageType: string, data: object): void; - - abstract onMessageType( - messageType: string, - callback: (data: object) => void - ): void; - - abstract onMessage(callback: (messageType: string, data: any) => void): void; - - abstract onOpen(callback: () => void): void; - - abstract onClose(callback: () => void): void; - - abstract onError(callback: () => void): void; - - abstract sendAndReceive(messageType: string, data: any): Promise; - - abstract close(): void; -} - -export class WebsocketMessenger extends Messenger { - websocket: WebSocket; - private onMessageListeners: { - [messageType: string]: ((data: object) => void)[]; - } = {}; - private onOpenListeners: (() => void)[] = []; - private onCloseListeners: (() => void)[] = []; - private onErrorListeners: (() => void)[] = []; - private serverUrl: string; - - _newWebsocket(): WebSocket { - // // Dynamic import, because WebSocket is builtin with browser, but not with node. And can't use require in browser. - // if (typeof process === "object") { - // console.log("Using node"); - // // process is only available in Node - // var WebSocket = require("ws"); - // } - - const newWebsocket = new WebSocket(this.serverUrl); - for (const listener of this.onOpenListeners) { - this.onOpen(listener); - } - for (const listener of this.onCloseListeners) { - this.onClose(listener); - } - for (const listener of this.onErrorListeners) { - this.onError(listener); - } - for (const messageType in this.onMessageListeners) { - for (const listener of this.onMessageListeners[messageType]) { - this.onMessageType(messageType, listener); - } - } - - newWebsocket.addEventListener("open", () => console.log("Websocket connection opened")); - newWebsocket.addEventListener("error", (error: any) => { - console.error("Websocket error occurred: ", error); - }); - newWebsocket.addEventListener("close", (error: any) => { - console.log("Websocket connection closed: ", error); - }); - - return newWebsocket; - } - - async checkServerRunning(serverUrl: string): Promise { - // Check if already running by calling /health - try { - const response = await fetch(serverUrl + "/health"); - if (response.status === 200) { - console.log("Continue python server already running"); - return true; - } else { - return false; - } - } catch (e) { - return false; - } - } - - constructor(serverUrl: string) { - super(); - this.serverUrl = serverUrl; - this.websocket = this._newWebsocket(); - - // Wait until the server is running - // const interval = setInterval(async () => { - // if ( - // await this.checkServerRunning( - // serverUrl.replace("/ide/ws", "").replace("ws://", "http://") - // ) - // ) { - // this.websocket = this._newWebsocket(); - // clearInterval(interval); - // } else { - // console.log( - // "Waiting for python server to start-----------------------" - // ); - // } - // }, 1000); - - // const interval = setInterval(() => { - // if (this.websocket.readyState === this.websocket.OPEN) { - // clearInterval(interval); - // } else if (this.websocket.readyState !== this.websocket.CONNECTING) { - // this.websocket = this._newWebsocket(); - // } - // }, 1000); - } - - send(messageType: string, data: object) { - const payload = JSON.stringify({ messageType, data }); - if (this.websocket.readyState === this.websocket.OPEN) { - this.websocket.send(payload); - } else { - if (this.websocket.readyState !== this.websocket.CONNECTING) { - this.websocket = this._newWebsocket(); - } - this.websocket.addEventListener("open", () => { - this.websocket.send(payload); - }); - } - } - - sendAndReceive(messageType: string, data: any): Promise { - return new Promise((resolve, reject) => { - const eventListener = (data: any) => { - // THIS ISN"T GETTING CALLED - resolve(data); - this.websocket.removeEventListener("message", eventListener); - }; - this.onMessageType(messageType, eventListener); - this.send(messageType, data); - }); - } - - onMessageType(messageType: string, callback: (data: any) => void): void { - this.websocket.addEventListener("message", (event: any) => { - const msg = JSON.parse(event.data); - if (msg.messageType === messageType) { - callback(msg.data); - } - }); - } - - onMessage( - callback: ( - messageType: string, - data: any, - messenger: WebsocketMessenger - ) => void - ): void { - this.websocket.addEventListener("message", (event) => { - const msg = JSON.parse(event.data); - callback(msg.messageType, msg.data, this); - }); - } - - onOpen(callback: () => void): void { - this.websocket.addEventListener("open", callback); - } - - onClose(callback: () => void): void { - this.websocket.addEventListener("close", callback); - } - - onError(callback: () => void): void { - this.websocket.addEventListener("error", callback); - } - - close(): void { - this.websocket.close(); - } -} diff --git a/gui/package-lock.json b/gui/package-lock.json index 71b0e52a1..513a56e96 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -21,14 +21,18 @@ "prismjs": "^1.29.0", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-error-boundary": "^4.0.11", "react-hook-form": "^7.47.0", "react-redux": "^8.0.5", "react-router-dom": "^6.14.2", "react-switch": "^7.0.0", "react-syntax-highlighter": "^15.5.0", "react-tooltip": "^5.18.0", + "redux-persist": "^6.0.0", "seti-file-icons": "^0.0.8", + "socket.io-client": "^4.7.2", "styled-components": "^5.3.6", + "uuid": "^9.0.1", "vscode-webview": "^1.0.1-beta.1" }, "devDependencies": { @@ -924,6 +928,11 @@ "node": ">=14" } }, + "node_modules/@socket.io/component-emitter": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", + "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==" + }, "node_modules/@swc/core": { "version": "1.3.73", "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.73.tgz", @@ -1890,6 +1899,26 @@ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.480.tgz", "integrity": "sha512-IXTgg+bITkQv/FLP9FjX6f9KFCs5hQWeh5uNSKxB9mqYj/JXhHDbu+ekS43LVvbkL3eW6/oZy4+r9Om6lan1Uw==" }, + "node_modules/engine.io-client": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.5.2.tgz", + "integrity": "sha512-CQZqbrpEYnrpGqC07a9dJDz4gePZUgTPMU3NKJPSeQOyw27Tst4Pl3FemKoFGAlHzgZmKjoRmiJvbWfhCXUlIg==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1", + "engine.io-parser": "~5.2.1", + "ws": "~8.11.0", + "xmlhttprequest-ssl": "~2.0.0" + } + }, + "node_modules/engine.io-parser": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.1.tgz", + "integrity": "sha512-9JktcM3u18nU9N2Lz3bWeBgxVgOKpw7yhRaoxQA3FUDZzzw+9WlA6p4G4u0RixNkg14fH7EfEc/RhpurtiROTQ==", + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/esbuild": { "version": "0.18.17", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.17.tgz", @@ -3970,6 +3999,17 @@ "react": "^18.2.0" } }, + "node_modules/react-error-boundary": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-4.0.11.tgz", + "integrity": "sha512-U13ul67aP5DOSPNSCWQ/eO0AQEYzEFkVljULQIjMV0KlffTAhxuDoBKdO0pb/JZ8mDhMKFZ9NZi0BmLGUiNphw==", + "dependencies": { + "@babel/runtime": "^7.12.5" + }, + "peerDependencies": { + "react": ">=16.13.1" + } + }, "node_modules/react-hook-form": { "version": "7.47.0", "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.47.0.tgz", @@ -4157,6 +4197,14 @@ "@babel/runtime": "^7.9.2" } }, + "node_modules/redux-persist": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/redux-persist/-/redux-persist-6.0.0.tgz", + "integrity": "sha512-71LLMbUq2r02ng2We9S215LtPu3fY0KgaGE0k8WRgl6RkqxtGfl7HUozz1Dftwsb0D/5mZ8dwAaPbtnzfvbEwQ==", + "peerDependencies": { + "redux": ">4.0.0" + } + }, "node_modules/redux-thunk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.4.2.tgz", @@ -4590,6 +4638,32 @@ "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==" }, + "node_modules/socket.io-client": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.2.tgz", + "integrity": "sha512-vtA0uD4ibrYD793SOIAwlo8cj6haOeMHrGvwPxJsxH7CeIksqJ+3Zc06RvWTIFgiSqx4A3sOnTXpfAEE2Zyz6w==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.2", + "engine.io-client": "~6.5.2", + "socket.io-parser": "~4.2.4" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-parser": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/source-map-js": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", @@ -4972,6 +5046,18 @@ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, + "node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/uvu": { "version": "0.5.6", "resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz", @@ -5130,6 +5216,34 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, + "node_modules/ws": { + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xmlhttprequest-ssl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz", + "integrity": "sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", @@ -5706,6 +5820,11 @@ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.7.2.tgz", "integrity": "sha512-7Lcn7IqGMV+vizMPoEl5F0XDshcdDYtMI6uJLQdQz5CfZAwy3vvGKYSUk789qndt5dEC4HfSjviSYlSoHGL2+A==" }, + "@socket.io/component-emitter": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", + "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==" + }, "@swc/core": { "version": "1.3.73", "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.73.tgz", @@ -6383,6 +6502,23 @@ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.480.tgz", "integrity": "sha512-IXTgg+bITkQv/FLP9FjX6f9KFCs5hQWeh5uNSKxB9mqYj/JXhHDbu+ekS43LVvbkL3eW6/oZy4+r9Om6lan1Uw==" }, + "engine.io-client": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.5.2.tgz", + "integrity": "sha512-CQZqbrpEYnrpGqC07a9dJDz4gePZUgTPMU3NKJPSeQOyw27Tst4Pl3FemKoFGAlHzgZmKjoRmiJvbWfhCXUlIg==", + "requires": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1", + "engine.io-parser": "~5.2.1", + "ws": "~8.11.0", + "xmlhttprequest-ssl": "~2.0.0" + } + }, + "engine.io-parser": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.1.tgz", + "integrity": "sha512-9JktcM3u18nU9N2Lz3bWeBgxVgOKpw7yhRaoxQA3FUDZzzw+9WlA6p4G4u0RixNkg14fH7EfEc/RhpurtiROTQ==" + }, "esbuild": { "version": "0.18.17", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.17.tgz", @@ -7751,6 +7887,14 @@ "scheduler": "^0.23.0" } }, + "react-error-boundary": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-4.0.11.tgz", + "integrity": "sha512-U13ul67aP5DOSPNSCWQ/eO0AQEYzEFkVljULQIjMV0KlffTAhxuDoBKdO0pb/JZ8mDhMKFZ9NZi0BmLGUiNphw==", + "requires": { + "@babel/runtime": "^7.12.5" + } + }, "react-hook-form": { "version": "7.47.0", "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.47.0.tgz", @@ -7869,6 +8013,12 @@ "@babel/runtime": "^7.9.2" } }, + "redux-persist": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/redux-persist/-/redux-persist-6.0.0.tgz", + "integrity": "sha512-71LLMbUq2r02ng2We9S215LtPu3fY0KgaGE0k8WRgl6RkqxtGfl7HUozz1Dftwsb0D/5mZ8dwAaPbtnzfvbEwQ==", + "requires": {} + }, "redux-thunk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.4.2.tgz", @@ -8179,6 +8329,26 @@ "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==" }, + "socket.io-client": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.2.tgz", + "integrity": "sha512-vtA0uD4ibrYD793SOIAwlo8cj6haOeMHrGvwPxJsxH7CeIksqJ+3Zc06RvWTIFgiSqx4A3sOnTXpfAEE2Zyz6w==", + "requires": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.2", + "engine.io-client": "~6.5.2", + "socket.io-parser": "~4.2.4" + } + }, + "socket.io-parser": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", + "requires": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + } + }, "source-map-js": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", @@ -8442,6 +8612,11 @@ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, + "uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==" + }, "uvu": { "version": "0.5.6", "resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz", @@ -8532,6 +8707,17 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, + "ws": { + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "requires": {} + }, + "xmlhttprequest-ssl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz", + "integrity": "sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A==" + }, "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", diff --git a/gui/package.json b/gui/package.json index abc16ca6d..e9d35d35e 100644 --- a/gui/package.json +++ b/gui/package.json @@ -22,14 +22,18 @@ "prismjs": "^1.29.0", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-error-boundary": "^4.0.11", "react-hook-form": "^7.47.0", "react-redux": "^8.0.5", "react-router-dom": "^6.14.2", "react-switch": "^7.0.0", "react-syntax-highlighter": "^15.5.0", "react-tooltip": "^5.18.0", + "redux-persist": "^6.0.0", "seti-file-icons": "^0.0.8", + "socket.io-client": "^4.7.2", "styled-components": "^5.3.6", + "uuid": "^9.0.1", "vscode-webview": "^1.0.1-beta.1" }, "devDependencies": { diff --git a/gui/src/App.tsx b/gui/src/App.tsx index 9c7836ac1..9388eb3dd 100644 --- a/gui/src/App.tsx +++ b/gui/src/App.tsx @@ -2,30 +2,17 @@ import GUI from "./pages/gui"; import History from "./pages/history"; import Help from "./pages/help"; import Layout from "./components/Layout"; -import { createContext, useEffect } from "react"; -import useContinueGUIProtocol from "./hooks/useWebsocket"; +import { createContext } from "react"; +import useContinueGUIProtocol from "./hooks/useContinueClient"; import ContinueGUIClientProtocol from "./hooks/ContinueGUIClientProtocol"; import { useDispatch } from "react-redux"; -import { - setApiUrl, - setVscMachineId, - setSessionId, - setVscMediaUrl, - setDataSwitchOn, - setWorkspacePaths, -} from "./redux/slices/configSlice"; -import { - setHighlightedCode, - setServerStatusMessage, -} from "./redux/slices/miscSlice"; -import { postVscMessage } from "./vscode"; import { RouterProvider, createMemoryRouter } from "react-router-dom"; import ErrorPage from "./pages/error"; import SettingsPage from "./pages/settings"; import Models from "./pages/models"; import HelpPage from "./pages/help"; import ModelConfig from "./pages/modelconfig"; -import { usePostHog } from "posthog-js/react"; +import useSetup from "./hooks/useSetup"; const router = createMemoryRouter([ { @@ -75,56 +62,9 @@ export const GUIClientContext = createContext< function App() { const client = useContinueGUIProtocol(false); - const posthog = usePostHog(); - const dispatch = useDispatch(); - useEffect(() => { - const eventListener = (event: any) => { - switch (event.data.type) { - case "onLoad": - dispatch(setApiUrl(event.data.apiUrl)); - dispatch(setVscMachineId(event.data.vscMachineId)); - dispatch(setSessionId(event.data.sessionId)); - dispatch(setVscMediaUrl(event.data.vscMediaUrl)); - dispatch(setDataSwitchOn(event.data.dataSwitchOn)); - if (event.data.uniqueId) { - posthog?.identify(event.data.vscMachineId); - } - dispatch(setWorkspacePaths(event.data.workspacePaths)); - break; - case "highlightedCode": - dispatch(setHighlightedCode(event.data.rangeInFile)); - break; - case "serverStatus": - dispatch(setServerStatusMessage(event.data.message)); - break; - } - }; - window.addEventListener("message", eventListener); - postVscMessage("onLoad", {}); - return () => window.removeEventListener("message", eventListener); - }, []); - useEffect(() => { - if (document.body.style.getPropertyValue("--vscode-editor-foreground")) { - localStorage.setItem( - "--vscode-editor-foreground", - document.body.style.getPropertyValue("--vscode-editor-foreground") - ); - } - if (document.body.style.getPropertyValue("--vscode-editor-background")) { - localStorage.setItem( - "--vscode-editor-background", - document.body.style.getPropertyValue("--vscode-editor-background") - ); - } - if (document.body.style.getPropertyValue("--vscode-list-hoverBackground")) { - localStorage.setItem( - "--vscode-list-hoverBackground", - document.body.style.getPropertyValue("--vscode-list-hoverBackground") - ); - } - }, []); + useSetup(client, dispatch); return ( diff --git a/gui/src/components/ComboBox.tsx b/gui/src/components/ComboBox.tsx index 87713a5b3..de2986b7f 100644 --- a/gui/src/components/ComboBox.tsx +++ b/gui/src/components/ComboBox.tsx @@ -27,7 +27,7 @@ import { TrashIcon, XMarkIcon, } from "@heroicons/react/24/outline"; -import { postVscMessage } from "../vscode"; +import { postToIde } from "../vscode"; import { GUIClientContext } from "../App"; import { MeiliSearch } from "meilisearch"; import { setBottomMessage } from "../redux/slices/uiStateSlice"; @@ -40,15 +40,21 @@ import { getMetaKeyLabel, getPlatform, } from "../util"; -import { ContextItem } from "../schema/FullState"; import StyledMarkdownPreview from "./StyledMarkdownPreview"; -import { temporarilyClearSession } from "../redux/slices/serverStateReducer"; import { setTakenActionTrue } from "../redux/slices/miscSlice"; import { handleKeyDownJetBrains, handleKeyDownJetBrainsMac, } from "../util/jetbrains"; import FileIcon from "./FileIcon"; +import { ContextItem } from "../schema/ContextItem"; +import { + addContextItem, + addContextItemAtIndex, + deleteContextWithIds, + newSession, + setActive, +} from "../redux/slices/sessionStateReducer"; const SEARCH_INDEX_NAME = "continue_context_items"; @@ -214,7 +220,8 @@ const Ul = styled.ul<{ ? `transform: translateY(-${props.ulHeightPixels + 8}px);` : `transform: translateY(${ (props.isMainInput ? 5 : 4) * (props.fontSize || mainInputFontSize) - - (props.isMainInput ? 2 : 4) + (props.isMainInput ? 2 : 4) - + 6 }px);`} position: absolute; background: ${vscBackground}; @@ -285,7 +292,7 @@ interface ComboBoxProps { const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { const meilisearchUrl = useSelector( (state: RootStore) => - state.serverState.meilisearch_url || "http://127.0.0.1:7700" + state.serverState.meilisearchUrl || "http://127.0.0.1:7700" ); const [searchClient, setSearchClient] = useState( @@ -305,7 +312,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { (state: RootStore) => state.config.workspacePaths ); const sessionHistory = useSelector( - (state: RootStore) => state.serverState.history + (state: RootStore) => state.sessionState.history ); const [history, setHistory] = React.useState([]); @@ -336,23 +343,26 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { >(undefined); const availableSlashCommands = useSelector( - (state: RootStore) => state.serverState.slash_commands - ).map((cmd) => { - return { - name: `/${cmd.name}`, - description: cmd.description, - }; - }); + (state: RootStore) => + state.serverState.slashCommands?.map((cmd) => { + return { + name: `/${cmd.name}`, + description: cmd.description, + }; + }) || [] + ); const selectedContextItems = useSelector((state: RootStore) => { - if (props.index) { - return state.serverState.history.timeline[props.index].context_used || []; + if (typeof props.index !== "undefined") { + return state.sessionState.contextItemsAtIndex[props.index] || []; } else { - return state.serverState.selected_context_items; + return state.sessionState.context_items || []; } }); + const timeline = useSelector( - (state: RootStore) => state.serverState.history.timeline + (state: RootStore) => state.sessionState.history ); + const active = useSelector((state: RootStore) => state.sessionState.active); useEffect(() => { if (!currentlyInContextQuery) { @@ -362,7 +372,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { }, [currentlyInContextQuery]); const contextProviders = useSelector( - (state: RootStore) => state.serverState.context_providers + (state: RootStore) => state.serverState.contextProviders ) as any[]; const goBackToContextProviders = () => { @@ -388,6 +398,20 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { const [prevInputValue, setPrevInputValue] = useState(""); + const selectContextItem = useCallback( + async (id: string, query: string) => { + const contextItem = await client?.getContextItem(id, query); + if (props.isMainInput) { + dispatch(addContextItem(contextItem)); + } else if (typeof props.index !== "undefined") { + dispatch( + addContextItemAtIndex({ item: contextItem, index: props.index }) + ); + } + }, + [client, props.index] + ); + const onInputValueChangeCallback = useCallback( ({ inputValue, highlightedIndex }: any) => { // Clear the input @@ -643,8 +667,8 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { } dispatch(setTakenActionTrue(null)); } else if (event.data.type === "focusContinueInputWithNewSession") { - dispatch(temporarilyClearSession(false)); - client?.loadSession(undefined); + client?.stopSession(); + dispatch(newSession()); dispatch(setTakenActionTrue(null)); } }; @@ -656,17 +680,6 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { const deleteButtonDivRef = React.useRef(null); - const selectContextItem = useCallback( - (id: string, query: string) => { - if (props.isMainInput) { - client?.selectContextItem(id, query); - } else if (props.index) { - client?.selectContextItemAtIndex(id, query, props.index); - } - }, - [client, props.index] - ); - const selectContextItemFromDropdown = useCallback( (event: any) => { const newItem = items[downshiftProps.highlightedIndex]; @@ -777,7 +790,13 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { }, [inputFocused]); return ( -
+
{selectedContextItems.length === 0 && props.isMainInput && (
{ : "" } onClick={() => { - client?.deleteContextWithIds( - selectedContextItems.map((item) => item.description.id), - props.index + dispatch( + deleteContextWithIds({ + ids: selectedContextItems.map((item) => item.description.id), + index: props.index, + }) ); inputRef.current?.focus(); setPreviewingContextItem(undefined); @@ -851,9 +872,13 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { }} onKeyDown={(e: any) => { if (e.key === "Backspace") { - client?.deleteContextWithIds( - selectedContextItems.map((item) => item.description.id), - props.index + dispatch( + deleteContextWithIds({ + ids: selectedContextItems.map( + (item) => item.description.id + ), + index: props.index, + }) ); inputRef.current?.focus(); setPreviewingContextItem(undefined); @@ -863,12 +888,10 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { > - {(props.isMainInput - ? selectedContextItems - : timeline[props.index!].context_used || [] - ).map((item, idx) => { + {selectedContextItems.map((item, idx) => { return ( 1} key={`${item.description.id.item_id}${idx}`} item={item} @@ -882,9 +905,11 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { stepIndex={props.index} index={idx} onDelete={() => { - client?.deleteContextWithIds( - [item.description.id], - props.index + dispatch( + deleteContextWithIds({ + ids: [item.description.id], + index: props.index, + }) ); inputRef.current?.focus(); if ( @@ -1012,7 +1037,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { width="20px" filename={item.description.name} > - {item.description.description} + {item.description.name}
                  {
             onMouseLeave={(e) => {
               if (
                 e.relatedTarget === deleteButtonDivRef.current ||
-                deleteButtonDivRef.current?.contains(e.relatedTarget as Node)
+                (e.relatedTarget instanceof Node &&
+                  deleteButtonDivRef.current?.contains(e.relatedTarget as Node))
               ) {
                 return;
               }
@@ -1190,7 +1216,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
                     // Remove focus from the input
                     inputRef.current?.blur();
                     // Move cursor back over to the editor
-                    postVscMessage("focusEditor", {});
+                    postToIde("focusEditor", {});
                   }
                 }
                 // Home and end keys
@@ -1234,8 +1260,20 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
                        {
                           e.stopPropagation();
-                          if (props.groupIndices)
-                            client?.showLogsAtIndex(props.groupIndices[1]);
+                          if (props.groupIndices) {
+                            const content =
+                              "This is the exact prompt sent to the LLM: \n\n" +
+                              timeline
+                                .filter((_, i) => {
+                                  return props.groupIndices?.includes(i);
+                                })
+                                .flatMap((s) => s.logs || [])
+                                .join("\n");
+                            postToIde("showVirtualFile", {
+                              name: "inspect_prompt.md",
+                              content,
+                            });
+                          }
                         }}
                         text="Inspect Prompt"
                       >
@@ -1246,7 +1284,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
                       onClick={(e) => {
                         e.stopPropagation();
                         if (props.active && props.groupIndices) {
-                          client?.deleteAtIndex(props.groupIndices[1]);
+                          client?.stopSession();
                         } else {
                           props.onDelete?.();
                         }
@@ -1391,29 +1429,18 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
       {props.isMainInput && (
          {
-            if (
-              typeof sessionHistory?.current_index !== "undefined" &&
-              sessionHistory.timeline[sessionHistory.current_index]?.active
-            ) {
-              client?.deleteAtIndex(sessionHistory.current_index);
+            if (active) {
+              client?.stopSession();
+              dispatch(setActive(false));
             } else {
               props.onEnter?.(undefined);
             }
           }}
-          showStop={
-            (typeof sessionHistory?.current_index !== "undefined" &&
-              sessionHistory.timeline[sessionHistory.current_index]?.active) ||
-            false
-          }
+          showStop={active}
         />
       )}
     
diff --git a/gui/src/components/ContinueButton.tsx b/gui/src/components/ContinueButton.tsx index 226a5d276..91e69c0f2 100644 --- a/gui/src/components/ContinueButton.tsx +++ b/gui/src/components/ContinueButton.tsx @@ -46,9 +46,7 @@ function ContinueButton(props: { disabled: boolean; showStop: boolean; }) { - const vscMediaUrl = useSelector( - (state: RootStore) => state.config.vscMediaUrl - ); + const vscMediaUrl = (window as any).vscMediaUrl; const [buttonColor, setButtonColor] = useState( localStorage.getItem("continueButtonColor") diff --git a/gui/src/components/ErrorStepContainer.tsx b/gui/src/components/ErrorStepContainer.tsx index 4faa755c3..9db2a14e3 100644 --- a/gui/src/components/ErrorStepContainer.tsx +++ b/gui/src/components/ErrorStepContainer.tsx @@ -1,13 +1,9 @@ import React from "react"; import styled from "styled-components"; -import { HistoryNode } from "../schema/HistoryNode"; import { defaultBorderRadius, vscBackground } from "."; import HeaderButtonWithText from "./HeaderButtonWithText"; -import { - MinusCircleIcon, - MinusIcon, - XMarkIcon, -} from "@heroicons/react/24/outline"; +import { MinusCircleIcon, XMarkIcon } from "@heroicons/react/24/outline"; +import { ContinueError } from "../schema/ContinueError"; const Div = styled.div` padding: 8px; @@ -18,7 +14,7 @@ const Div = styled.div` `; interface ErrorStepContainerProps { - historyNode: HistoryNode; + error: ContinueError; onClose: () => void; onDelete: () => void; } @@ -43,7 +39,7 @@ function ErrorStepContainer(props: ErrorStepContainerProps) {
-          {props.historyNode.observation?.error as string}
+          {props.error.message as string}
         
diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index cf03818db..e440dea77 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -20,7 +20,7 @@ import HeaderButtonWithText from "./HeaderButtonWithText"; import { useNavigate, useLocation } from "react-router-dom"; import ModelSelect from "./ModelSelect"; import ProgressBar from "./ProgressBar"; -import { temporarilyClearSession } from "../redux/slices/serverStateReducer"; +import { newSession } from "../redux/slices/sessionStateReducer"; import { getFontSize } from "../util"; // #region Styled Components @@ -119,21 +119,16 @@ const Layout = () => { ); const timeline = useSelector( - (state: RootStore) => state.serverState.history.timeline + (state: RootStore) => state.sessionState.history ); // #endregion useEffect(() => { const handleKeyDown = (event: any) => { - if ( - event.metaKey && - event.altKey && - event.code === "KeyN" && - timeline.filter((n) => !n.step.hide).length > 0 - ) { - dispatch(temporarilyClearSession(false)); - client?.loadSession(undefined); + if (event.metaKey && event.altKey && event.code === "KeyN") { + client?.stopSession(); + dispatch(newSession()); } if ((event.metaKey || event.ctrlKey) && event.code === "KeyC") { const selection = window.getSelection()?.toString(); diff --git a/gui/src/components/Loader.tsx b/gui/src/components/Loader.tsx index 55f4f31f2..7f4be2003 100644 --- a/gui/src/components/Loader.tsx +++ b/gui/src/components/Loader.tsx @@ -24,9 +24,7 @@ const FlashingDiv = styled.div` `; function Loader(props: { size?: string }) { - const vscMediaUrl = useSelector( - (state: RootStore) => state.config.vscMediaUrl - ); + const vscMediaUrl = (window as any).vscMediaUrl; return ( {vscMediaUrl ? ( diff --git a/gui/src/components/ModelCard.tsx b/gui/src/components/ModelCard.tsx index 0ab6ac326..bfb0fe695 100644 --- a/gui/src/components/ModelCard.tsx +++ b/gui/src/components/ModelCard.tsx @@ -76,9 +76,7 @@ interface ModelCardProps { } function ModelCard(props: ModelCardProps) { - const vscMediaUrl = useSelector( - (state: RootStore) => state.config.vscMediaUrl - ); + const vscMediaUrl = (window as any).vscMediaUrl; const [dimensionChoices, setDimensionChoices] = useState( props.dimensions?.map((d) => Object.keys(d.options)[0]) || [] diff --git a/gui/src/components/PillButton.tsx b/gui/src/components/PillButton.tsx index 40a2f5510..c361178a2 100644 --- a/gui/src/components/PillButton.tsx +++ b/gui/src/components/PillButton.tsx @@ -1,4 +1,4 @@ -import { useContext, useEffect, useRef, useState } from "react"; +import { useCallback, useContext, useEffect, useRef, useState } from "react"; import styled from "styled-components"; import { StyledTooltip, @@ -13,10 +13,14 @@ import { ExclamationTriangleIcon, } from "@heroicons/react/24/outline"; import { GUIClientContext } from "../App"; -import { ContextItem } from "../schema/FullState"; import { getFontSize } from "../util"; import HeaderButtonWithText from "./HeaderButtonWithText"; import FileIcon from "./FileIcon"; +import { ContextItem } from "../schema/ContextItem"; +import { postToIde } from "../vscode"; +import { useDispatch, useSelector } from "react-redux"; +import { setEditingAtIds } from "../redux/slices/sessionStateReducer"; +import { RootStore } from "../redux/store"; const Button = styled.button<{ fontSize?: number }>` border: none; @@ -78,6 +82,7 @@ interface PillButtonProps { editing: boolean; editingAny: boolean; index: number; + inputIndex: number; // index of the ComboBox areMultipleItems?: boolean; onDelete?: (index?: number) => void; onClick?: (e: React.MouseEvent) => void; @@ -141,6 +146,7 @@ const ClickableInsidePillButton = styled(HeaderButtonWithText)<{ const PillButton = (props: PillButtonProps) => { const [isHovered, setIsHovered] = useState(false); const client = useContext(GUIClientContext); + const dispatch = useDispatch(); const [warning, setWarning] = useState(undefined); @@ -152,9 +158,30 @@ const PillButton = (props: PillButtonProps) => { } }, [props.editing, props.item]); + const setEditing = useCallback(() => { + if (!props.editing) { + dispatch( + setEditingAtIds({ + ids: [props.item.description.id], + index: props.inputIndex, + }) + ); + } + if (!props.editingAny) { + props.prefixInputWithEdit?.(true); + } + if (props.editingAny && props.editing) { + props.prefixInputWithEdit?.(false); + } + }, [props.editing, props.editingAny, props.item, props.inputIndex]); + const pillContainerRef = useRef(null); const buttonRef = useRef(null); + const selectedContextItems = useSelector( + (store: RootStore) => store.sessionState.context_items + ); + return (
@@ -183,14 +210,31 @@ const PillButton = (props: PillButtonProps) => { } else if (e.key === "v") { props.toggleViewContent?.(); } else if (e.key === "e") { - client?.setEditingAtIds([props.item.description.id.item_id]); + setEditing(); } }} onClick={(e) => { props.onClick?.(e); - client?.previewContextItem( - `${props.item.description.id.provider_title}-${props.item.description.id.item_id}` - ); + if (props.item.description.id.provider_title === "file") { + postToIde("showFile", { + filepath: props.item.description.description, + }); + } else if (props.item.description.id.provider_title === "code") { + const lines = props.item.description.name + .split("(")[1] + .split(")")[0] + .split("-"); + postToIde("showLines", { + filepath: props.item.description.description, + start: parseInt(lines[0]) - 1, + end: parseInt(lines[1]) - 1, + }); + } else { + postToIde("showVirtualFile", { + name: props.item.description.name, + content: props.item.content, + }); + } }} onBlur={(e) => { if (!pillContainerRef.current?.contains(e.relatedTarget as any)) { @@ -223,17 +267,7 @@ const PillButton = (props: PillButtonProps) => { text={ props.editing ? "Editing this range" : "Edit this range (e)" } - onClick={() => { - if (!props.editing) { - client?.setEditingAtIds([props.item.description.id.item_id]); - } - if (!props.editingAny) { - props.prefixInputWithEdit?.(true); - } - if (props.editingAny && props.editing) { - props.prefixInputWithEdit?.(false); - } - }} + onClick={setEditing} tabIndex={-1} color="#f0f4" selected={props.editing} diff --git a/gui/src/components/StepContainer.tsx b/gui/src/components/StepContainer.tsx index c3e3c921b..96da73fb8 100644 --- a/gui/src/components/StepContainer.tsx +++ b/gui/src/components/StepContainer.tsx @@ -2,15 +2,14 @@ import { useEffect, useRef, useState } from "react"; import styled from "styled-components"; import { defaultBorderRadius, secondaryDark, vscBackground } from "."; import { ArrowPathIcon, XMarkIcon } from "@heroicons/react/24/outline"; -import { HistoryNode } from "../schema/HistoryNode"; import HeaderButtonWithText from "./HeaderButtonWithText"; import StyledMarkdownPreview from "./StyledMarkdownPreview"; import { getFontSize } from "../util"; +import { StepDescription } from "../schema/SessionState"; interface StepContainerProps { - historyNode: HistoryNode; + step: StepDescription; onReverse: () => void; - inFuture: boolean; onUserInput: (input: string) => void; onRetry: () => void; onDelete: () => void; @@ -25,7 +24,6 @@ interface StepContainerProps { const MainDiv = styled.div<{ stepDepth: number; - inFuture: boolean; }>``; const ButtonsDiv = styled.div` @@ -58,7 +56,7 @@ function StepContainer(props: StepContainerProps) { const [isHovered, setIsHovered] = useState(false); const naturalLanguageInputRef = useRef(null); const userInputRef = useRef(null); - const isUserInput = props.historyNode.step.name === "UserInputStep"; + const isUserInput = props.step.name === "UserInputStep"; useEffect(() => { if (userInputRef?.current) { @@ -74,61 +72,59 @@ function StepContainer(props: StepContainerProps) { return ( { setIsHovered(true); }} onMouseLeave={() => { setIsHovered(false); }} - hidden={props.historyNode.step.hide as any} + hidden={props.step.hide as any} >
- {isHovered && - (props.historyNode.observation?.error || props.noUserInputParent) && ( - - {props.historyNode.observation?.error && - (( - { - e.stopPropagation(); - props.onRetry(); - }} - > - - - ) as any)} - - {props.noUserInputParent && ( + {isHovered && (props.step.error || props.noUserInputParent) && ( + + {props.step.error && + (( { e.stopPropagation(); - props.onDelete(); + props.onRetry(); }} > - - )} - - )} + ) as any)} + + {props.noUserInputParent && ( + { + e.stopPropagation(); + props.onDelete(); + }} + > + + + )} + + )}
diff --git a/gui/src/components/Suggestions.tsx b/gui/src/components/Suggestions.tsx index d20f86784..d72455ab2 100644 --- a/gui/src/components/Suggestions.tsx +++ b/gui/src/components/Suggestions.tsx @@ -172,28 +172,22 @@ function SuggestionsArea(props: { onClick: (textInput: string) => void }) { parseInt(localStorage.getItem("stage") || "0") ); const timeline = useSelector( - (state: RootStore) => state.serverState.history.timeline - ); - const sessionId = useSelector( - (state: RootStore) => state.serverState.session_info?.session_id + (state: RootStore) => state.sessionState.history ); + const codeIsHighlighted = useSelector((state: RootStore) => - state.serverState.selected_context_items.some( + state.serverState.selectedContextItems.some( (item) => item.description.id.provider_title === "code" ) ); const [hide, setHide] = useState(false); - useEffect(() => { - setHide(false); - }, [sessionId]); - const [numTutorialInputs, setNumTutorialInputs] = useState(0); const inputsAreOnlyTutorial = useCallback(() => { const inputs = timeline.filter( - (node) => !node.step.hide && node.step.name === "User Input" + (step) => !step.hide && step.name === "User Input" ); return inputs.length - numTutorialInputs <= 0; }, [timeline, numTutorialInputs]); diff --git a/gui/src/components/UserInputContainer.tsx b/gui/src/components/UserInputContainer.tsx deleted file mode 100644 index 670a54e6c..000000000 --- a/gui/src/components/UserInputContainer.tsx +++ /dev/null @@ -1,356 +0,0 @@ -import React, { - useCallback, - useContext, - useEffect, - useRef, - useState, -} from "react"; -import styled, { keyframes } from "styled-components"; -import { - defaultBorderRadius, - lightGray, - secondaryDark, - vscBackground, - vscForeground, -} from "."; -import HeaderButtonWithText from "./HeaderButtonWithText"; -import { - XMarkIcon, - CheckIcon, - ChevronDownIcon, - ChevronRightIcon, - MagnifyingGlassIcon, - StopCircleIcon, -} from "@heroicons/react/24/outline"; -import { HistoryNode } from "../schema/HistoryNode"; -import { GUIClientContext } from "../App"; -import { - getFontSize, - getMetaKeyLabel, - isMetaEquivalentKeyPressed, -} from "../util"; -import { RootStore } from "../redux/store"; -import { useSelector } from "react-redux"; - -interface UserInputContainerProps { - onDelete: () => void; - children: string; - index: number; - onToggle: (arg0: boolean) => void; - onToggleAll: (arg0: boolean) => void; - isToggleOpen: boolean; - active: boolean; - groupIndices: number[]; -} - -const gradient = keyframes` - 0% { - background-position: 0px 0; - } - 100% { - background-position: 100em 0; - } -`; - -const ToggleDiv = styled.div` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - - height: 100%; - padding: 0 4px; - - &:hover { - background-color: ${vscBackground}; - } -`; - -const GradientBorder = styled.div<{ - borderWidth?: number; - borderRadius?: string; - borderColor?: string; - isFirst: boolean; - isLast: boolean; - loading: boolean; -}>` - border-radius: ${(props) => props.borderRadius || "0"}; - padding: ${(props) => - `${(props.borderWidth || 1) / (props.isFirst ? 1 : 2)}px`}; - background: ${(props) => - props.borderColor - ? props.borderColor - : `repeating-linear-gradient( - 101.79deg, - #1BBE84 0%, - #331BBE 16%, - #BE1B55 33%, - #A6BE1B 55%, - #BE1B55 67%, - #331BBE 85%, - #1BBE84 99% - )`}; - animation: ${(props) => (props.loading ? gradient : "")} 6s linear infinite; - background-size: 200% 200%; -`; - -const StyledDiv = styled.div<{ editing: boolean; fontSize?: number }>` - font-size: ${(props) => props.fontSize || getFontSize()}px; - font-family: inherit; - border-radius: ${defaultBorderRadius}; - height: auto; - background-color: ${secondaryDark}; - color: ${vscForeground}; - align-items: center; - position: relative; - z-index: 1; - overflow: hidden; - display: grid; - grid-template-columns: 1fr auto; - - outline: ${(props) => (props.editing ? `1px solid ${lightGray}` : "none")}; - cursor: text; -`; - -const DeleteButtonDiv = styled.div` - position: absolute; - top: 8px; - right: 8px; - background-color: ${secondaryDark}; - box-shadow: 4px 4px 10px ${secondaryDark}; - border-radius: ${defaultBorderRadius}; -`; - -const GridDiv = styled.div` - display: grid; - grid-template-columns: auto 1fr; - grid-gap: 8px; - align-items: center; - width: 100%; -`; - -function stringWithEllipsis(str: string, maxLen: number) { - if (str.length > maxLen) { - return str.substring(0, maxLen - 3) + "...\n(Click to expand)"; - } - return str; -} - -const UserInputContainer = (props: UserInputContainerProps) => { - const [isHovered, setIsHovered] = useState(false); - const [isEditing, setIsEditing] = useState(false); - - const divRef = useRef(null); - const client = useContext(GUIClientContext); - - const [prevContent, setPrevContent] = useState(""); - - const history = useSelector((state: RootStore) => state.serverState.history); - - useEffect(() => { - if (isEditing && divRef.current) { - setPrevContent(divRef.current.innerText); - divRef.current.focus(); - - if (divRef.current.innerText !== "") { - const range = document.createRange(); - const sel = window.getSelection(); - range.setStart(divRef.current, 0); - range.setEnd(divRef.current, 1); - sel?.removeAllRanges(); - sel?.addRange(range); - } - } - }, [isEditing, divRef.current]); - - const onBlur = useCallback(() => { - setIsEditing(false); - if (divRef.current) { - divRef.current.innerText = prevContent; - divRef.current.blur(); - } - }, [divRef.current, prevContent]); - - useEffect(() => { - const handleKeyDown = (event: KeyboardEvent) => { - if (event.key === "Escape") { - onBlur(); - } - }; - divRef.current?.addEventListener("keydown", handleKeyDown); - return () => { - divRef.current?.removeEventListener("keydown", handleKeyDown); - }; - }, [prevContent, divRef.current, isEditing, onBlur]); - - const doneEditing = (e: any) => { - if (!divRef.current?.innerText) { - return; - } - setPrevContent(divRef.current.innerText); - client?.editStepAtIndex(divRef.current.innerText, props.index); - setIsEditing(false); - e.stopPropagation(); - divRef.current?.blur(); - }; - - const [divTextContent, setDivTextContent] = useState(""); - - const checkButtonRef = useRef(null); - - return ( - - { - setIsHovered(true); - }} - onMouseLeave={() => { - setIsHovered(false); - }} - onClick={() => { - setIsEditing(true); - }} - > - - { - e.stopPropagation(); - if (isMetaEquivalentKeyPressed(e)) { - props.onToggleAll(false); - } else { - props.onToggle(false); - } - } - : (e) => { - e.stopPropagation(); - if (isMetaEquivalentKeyPressed(e)) { - props.onToggleAll(true); - } else { - props.onToggle(true); - } - } - } - > - {props.isToggleOpen ? ( - - ) : ( - - )} - -
-
{ - if (e.relatedTarget !== checkButtonRef.current) onBlur(); - }} - onKeyDown={(e) => { - if (e.key === "Enter" && !e.shiftKey) { - e.preventDefault(); - doneEditing(e); - } - }} - onInput={(e) => { - setDivTextContent((e.target as any).innerText); - }} - contentEditable={true} - suppressContentEditableWarning={true} - className="mr-6 ml-1 cursor-text w-full py-2 flex items-center content-center outline-none" - > - {isEditing - ? props.children - : stringWithEllipsis(props.children, 600)} -
- - {(isHovered || isEditing) && ( -
- {isEditing ? ( - { - doneEditing(e); - e.stopPropagation(); - }} - text="Done" - disabled={ - divTextContent === "" || divTextContent === prevContent - } - ref={checkButtonRef} - > - - - ) : ( - <> - {history.timeline - .filter( - (h, i: number) => - props.groupIndices.includes(i) && h.logs - ) - .some((h) => h.logs!.length > 0) && ( - { - e.stopPropagation(); - client?.showLogsAtIndex(props.groupIndices[1]); - }} - text="Context Used" - > - - - )} - { - e.stopPropagation(); - if (props.active) { - client?.deleteAtIndex(props.groupIndices[1]); - } else { - props.onDelete(); - } - }} - text={ - props.active - ? `Stop (${getMetaKeyLabel()}⌫)` - : "Delete" - } - > - {props.active ? ( - - ) : ( - - )} - - - )} -
- )} -
-
-
-
-
- ); -}; -export default UserInputContainer; diff --git a/gui/src/components/VSCodeFileLink.tsx b/gui/src/components/VSCodeFileLink.tsx index 6219654d9..3f3b7e70e 100644 --- a/gui/src/components/VSCodeFileLink.tsx +++ b/gui/src/components/VSCodeFileLink.tsx @@ -1,12 +1,12 @@ import React from "react"; -import { postVscMessage } from "../vscode"; +import { postToIde } from "../vscode"; function VSCodeFileLink(props: { path: string; text?: string }) { return ( { - postVscMessage("openFile", { path: props.path }); + postToIde("openFile", { path: props.path }); }} > {props.text || props.path} diff --git a/gui/src/components/dialogs/AddContextGroupDialog.tsx b/gui/src/components/dialogs/AddContextGroupDialog.tsx index 8b591114a..105153e00 100644 --- a/gui/src/components/dialogs/AddContextGroupDialog.tsx +++ b/gui/src/components/dialogs/AddContextGroupDialog.tsx @@ -6,7 +6,7 @@ import { setDialogMessage, setShowDialog, } from "../../redux/slices/uiStateSlice"; -import { ContextItem } from "../../schema/FullState"; +import { ContextItem } from "../../schema/ContextItem"; function AddContextGroupDialog({ selectedContextItems, diff --git a/gui/src/components/dialogs/SelectContextGroupDialog.tsx b/gui/src/components/dialogs/SelectContextGroupDialog.tsx index 44095fc07..8f46959b0 100644 --- a/gui/src/components/dialogs/SelectContextGroupDialog.tsx +++ b/gui/src/components/dialogs/SelectContextGroupDialog.tsx @@ -52,7 +52,7 @@ const ContextGroupSelectDiv = styled.div` function SelectContextGroupDialog() { const dispatch = useDispatch(); const savedContextGroups = useSelector( - (state: RootStore) => state.serverState.saved_context_groups + (state: RootStore) => state.serverState.savedContextGroups ); const client = useContext(GUIClientContext); diff --git a/gui/src/hooks/AbstractContinueGUIClientProtocol.ts b/gui/src/hooks/AbstractContinueGUIClientProtocol.ts index b486db858..8cb13afb5 100644 --- a/gui/src/hooks/AbstractContinueGUIClientProtocol.ts +++ b/gui/src/hooks/AbstractContinueGUIClientProtocol.ts @@ -1,4 +1,6 @@ -import { ContextItem, ContextItemId } from "../schema/FullState"; +import { ContextItem } from "../schema/ContextItem"; +import { ContextItemId } from "../schema/ContextItemId"; +import { ContinueConfig } from "../schema/ContinueConfig"; abstract class AbstractContinueGUIClientProtocol { abstract sendMainInput(input: string): void; @@ -19,20 +21,18 @@ abstract class AbstractContinueGUIClientProtocol { abstract retryAtIndex(index: number): void; - abstract deleteAtIndex(index: number): void; - abstract deleteContextWithIds(ids: ContextItemId[], index?: number): void; abstract setEditingAtIds(ids: string[]): void; abstract toggleAddingHighlightedCode(): void; - abstract showLogsAtIndex(index: number): void; - abstract showContextVirtualFile(): void; abstract selectContextItem(id: string, query: string): void; + abstract getContextItem(id: string, query: string): Promise; + abstract selectContextItemAtIndex( id: string, query: string, @@ -41,8 +41,6 @@ abstract class AbstractContinueGUIClientProtocol { abstract loadSession(session_id?: string): void; - abstract onReconnectAtSession(session_id: string): void; - abstract editStepAtIndex(userInput: string, index: number): void; abstract setSystemMessage(message: string): void; @@ -61,9 +59,7 @@ abstract class AbstractContinueGUIClientProtocol { abstract deleteContextGroup(id: string): void; - abstract setCurrentSessionTitle(title: string): void; - - abstract previewContextItem(id: string): void; + abstract onConfigUpdate(callback: (config: ContinueConfig) => void); } export default AbstractContinueGUIClientProtocol; diff --git a/gui/src/hooks/ContinueGUIClientProtocol.ts b/gui/src/hooks/ContinueGUIClientProtocol.ts index 9b08126c0..60ce3ffe0 100644 --- a/gui/src/hooks/ContinueGUIClientProtocol.ts +++ b/gui/src/hooks/ContinueGUIClientProtocol.ts @@ -1,81 +1,98 @@ -import { ContextItem, ContextItemId } from "../schema/FullState"; +import { ContextItem } from "../schema/ContextItem"; +import { ContextItemId } from "../schema/ContextItemId"; +import { ContinueConfig } from "../schema/ContinueConfig"; +import { SessionState, StepDescription } from "../schema/SessionState"; +import { SessionUpdate } from "../schema/SessionUpdate"; import AbstractContinueGUIClientProtocol from "./AbstractContinueGUIClientProtocol"; -import { Messenger, WebsocketMessenger } from "./messenger"; +import { Messenger, SocketIOMessenger } from "./messenger"; import { VscodeMessenger } from "./vscodeMessenger"; class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol { messenger?: Messenger; - // Server URL must contain the session ID param - serverUrlWithSessionId: string; + serverUrl: string; useVscodeMessagePassing: boolean; + getSessionState: () => SessionState; onStateUpdateCallbacks: ((state: any) => void)[] = []; - private connectMessenger( - serverUrlWithSessionId: string, - useVscodeMessagePassing: boolean + constructor( + serverUrl: string, + useVscodeMessagePassing: boolean, + getSesionState: () => SessionState ) { - if (this.messenger) { - console.log("Closing session: ", this.serverUrlWithSessionId); - this.messenger.close(); - } - this.serverUrlWithSessionId = serverUrlWithSessionId; + super(); + this.serverUrl = serverUrl; + this.useVscodeMessagePassing = useVscodeMessagePassing; + this.getSessionState = getSesionState; + + this.serverUrl = serverUrl; this.useVscodeMessagePassing = useVscodeMessagePassing; this.messenger = useVscodeMessagePassing - ? new VscodeMessenger(serverUrlWithSessionId) - : new WebsocketMessenger(serverUrlWithSessionId); + ? new VscodeMessenger(serverUrl) + : new SocketIOMessenger(serverUrl); this.messenger.onClose(() => { - console.log("GUI Connection closed: ", serverUrlWithSessionId); + console.log("GUI Connection closed: ", serverUrl); }); this.messenger.onError((error) => { console.log("GUI Connection error: ", error); }); this.messenger.onOpen(() => { - console.log("GUI Connection opened: ", serverUrlWithSessionId); + console.log("GUI Connection opened: ", serverUrl); }); - this.messenger.onMessageType("reconnect_at_session", (data: any) => { - if (data.session_id) { - this.onReconnectAtSession(data.session_id); - } - }); - - this.messenger.onMessageType("state_update", (data: any) => { - if (data.state) { - for (const callback of this.onStateUpdateCallbacks) { - callback(data.state); - } - } + this.messenger.onMessage((messageType, data, acknowledge) => { + this.handleMessage(messageType, data, acknowledge); }); } - constructor( - serverUrlWithSessionId: string, - useVscodeMessagePassing: boolean + onConnected(callback: () => void) { + this.messenger?.onOpen(callback); + } + + handleMessage( + messageType: string, + data: any, + acknowledge: (data: any) => void ) { - super(); - this.serverUrlWithSessionId = serverUrlWithSessionId; - this.useVscodeMessagePassing = useVscodeMessagePassing; - this.connectMessenger(serverUrlWithSessionId, useVscodeMessagePassing); + switch (messageType) { + case "state_update": + if (data.state) { + for (const callback of this.onStateUpdateCallbacks) { + callback(data.state); + } + } + break; + case "get_session_state": + const sessionState = this.getSessionState(); + acknowledge({ + history: sessionState.history, + context_items: sessionState.context_items, + }); + break; + default: + break; + } } loadSession(session_id?: string): void { this.messenger?.send("load_session", { session_id }); } - onReconnectAtSession(session_id: string): void { - const urlToReconnect = `${ - this.serverUrlWithSessionId.split("?")[0] - }?session_id=${session_id}`; - console.log("Reconnecting at session: ", urlToReconnect); - this.connectMessenger(urlToReconnect, this.useVscodeMessagePassing); - } - sendMainInput(input: string) { this.messenger?.send("main_input", { input }); } + runFromState(sessionState: SessionState) { + this.messenger?.send("run_from_state", { state: sessionState }); + } + + async getSessionTitle(history: StepDescription[]): Promise { + return await this.messenger?.sendAndReceive("get_session_title", { + history, + }); + } + reverseToIndex(index: number) { this.messenger?.send("reverse_to_index", { index }); } @@ -97,6 +114,28 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol { this.onStateUpdateCallbacks.push(callback); } + onSessionUpdate(callback: (update: SessionUpdate) => void) { + this.messenger?.onMessageType("session_update", (data: SessionUpdate) => { + callback(data); + }); + } + + onConfigUpdate(callback: (config: ContinueConfig) => void) { + this.messenger?.onMessageType("config_update", (data: any) => { + callback(data); + }); + } + + getConfig(): Promise { + return this.messenger?.sendAndReceive("get_config", {}); + } + + onAddContextItem(callback: (item: ContextItem) => void) { + this.messenger?.onMessageType("add_context_item", (data: ContextItem) => { + callback(data); + }); + } + onAvailableSlashCommands( callback: (commands: { name: string; description: string }[]) => void ) { @@ -107,6 +146,10 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol { }); } + stopSession() { + this.messenger?.send("stop_session", {}); + } + sendClear() { this.messenger?.send("clear_history", {}); } @@ -115,10 +158,6 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol { this.messenger?.send("retry_at_index", { index }); } - deleteAtIndex(index: number) { - this.messenger?.send("delete_at_index", { index }); - } - deleteContextWithIds(ids: ContextItemId[], index?: number) { this.messenger?.send("delete_context_with_ids", { ids: ids.map((id) => `${id.provider_title}-${id.item_id}`), @@ -134,10 +173,6 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol { this.messenger?.send("toggle_adding_highlighted_code", {}); } - showLogsAtIndex(index: number): void { - this.messenger?.send("show_logs_at_index", { index }); - } - showContextVirtualFile(index?: number): void { this.messenger?.send("show_context_virtual_file", { index }); } @@ -146,6 +181,13 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol { this.messenger?.send("select_context_item", { id, query }); } + async getContextItem(id: string, query: string): Promise { + return await this.messenger?.sendAndReceive("get_context_item", { + id, + query, + }); + } + selectContextItemAtIndex(id: string, query: string, index: number): void { this.messenger?.send("select_context_item_at_index", { id, @@ -161,8 +203,8 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol { }); } - setSystemMessage(message: string): void { - this.messenger?.send("set_system_message", { message }); + setSystemMessage(system_message: string): void { + this.messenger?.send("set_system_message", { system_message }); } setTemperature(temperature: number): void { @@ -191,14 +233,6 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol { deleteContextGroup(id: string): void { this.messenger?.send("delete_context_group", { id }); } - - setCurrentSessionTitle(title: string): void { - this.messenger?.send("set_current_session_title", { title }); - } - - previewContextItem(id: string): void { - this.messenger?.send("preview_context_item", { id }); - } } export default ContinueGUIClientProtocol; diff --git a/gui/src/hooks/messenger.ts b/gui/src/hooks/messenger.ts index 804fe2c10..f73a48a21 100644 --- a/gui/src/hooks/messenger.ts +++ b/gui/src/hooks/messenger.ts @@ -1,3 +1,6 @@ +import socketIOClient, { Socket } from "socket.io-client"; +import { v4 } from "uuid"; + export abstract class Messenger { abstract send(messageType: string, data: object): void; @@ -6,7 +9,13 @@ export abstract class Messenger { callback: (data: object) => void ): void; - abstract onMessage(callback: (messageType: string, data: any) => void): void; + abstract onMessage( + callback: ( + messageType: string, + data: any, + ack?: (data: any) => void + ) => void + ): void; abstract onOpen(callback: () => void): void; @@ -19,6 +28,103 @@ export abstract class Messenger { abstract close(): void; } +export class SocketIOMessenger extends Messenger { + private socket: Socket; + + constructor(endpoint: string) { + super(); + console.log( + "Connecting to socket.io endpoint: ", + endpoint, + (window as any).windowId + ); + this.socket = socketIOClient( + `${endpoint}?window_id=${(window as any).windowId}`, + { + path: "/gui/socket.io", + transports: ["websocket", "polling", "flashsocket"], + } + ); + } + + send(messageType: string, data: object): void { + this.socket.emit("message", { + message_type: messageType, + data, + message_id: v4(), + }); + } + + ackWithMessageMetadata( + ack: (data: any) => void, + messageId: string, + messageType: string + ): (data: any) => void { + return (data: any) => { + ack({ message_id: messageId, message_type: messageType, data }); + }; + } + + onMessageType( + messageType: string, + callback: (data: object, acknowledge?: (data: any) => void) => void + ): void { + this.socket.on("message", ({ message_type, data }, ack) => { + if (messageType === message_type) { + callback(data, this.ackWithMessageMetadata(ack, "lolidk", messageType)); + } + }); + } + + onMessage( + callback: ( + messageType: string, + data: any, + acknowledge?: (data: any) => void + ) => void + ): void { + this.socket.on("message", ({ message_type, data }, ack) => { + callback( + message_type, + data, + this.ackWithMessageMetadata(ack, "lolidk", message_type) + ); + }); + } + + onOpen(callback: () => void): void { + this.socket.on("connect", callback); + } + + onClose(callback: () => void): void { + this.socket.on("disconnect", callback); + } + + async sendAndReceive(messageType: string, data: any): Promise { + return new Promise((resolve, reject) => { + this.socket.emit( + "message", + { message_type: messageType, data, message_id: v4() }, + (response: any) => { + if (response && response.error) { + reject(response.error); + } else { + resolve(response); + } + } + ); + }); + } + + onError(callback: (error: any) => void): void { + this.socket.on("error", callback); + } + + close(): void { + this.socket.disconnect(); + } +} + export class WebsocketMessenger extends Messenger { websocket: WebSocket; private onMessageListeners: { diff --git a/gui/src/hooks/useContinueClient.ts b/gui/src/hooks/useContinueClient.ts new file mode 100644 index 000000000..708ac01ab --- /dev/null +++ b/gui/src/hooks/useContinueClient.ts @@ -0,0 +1,49 @@ +import React, { useCallback, useEffect, useState } from "react"; +import ContinueGUIClientProtocol from "./ContinueGUIClientProtocol"; +import { useSelector } from "react-redux"; +import { RootStore } from "../redux/store"; + +function useContinueGUIProtocol(useVscodeMessagePassing: boolean = true) { + // if (localStorage.getItem("ide") === "jetbrains") { + // useVscodeMessagePassing = false; + // } + + const [client, setClient] = useState( + undefined + ); + + const sessionState = useSelector((store: RootStore) => store.sessionState); + + const getSessionState = () => { + return { + history: sessionState.history, + context_items: sessionState.context_items, + }; + }; + + useEffect(() => { + if (!client) return; + client.getSessionState = getSessionState; + }, [sessionState]); + + useEffect(() => { + const serverUrl = (window as any).serverUrl; + const windowId = (window as any).windowId; + if (serverUrl === undefined || serverUrl === null) return; + if (windowId === undefined || windowId === null) return; + + console.log("Creating GUI websocket", serverUrl, useVscodeMessagePassing); + const newClient = new ContinueGUIClientProtocol( + serverUrl, + useVscodeMessagePassing, + getSessionState + ); + + newClient.onConnected(() => { + setClient(newClient); + }); + }, [(window as any).windowId]); + + return client; +} +export default useContinueGUIProtocol; diff --git a/gui/src/hooks/useSetup.ts b/gui/src/hooks/useSetup.ts new file mode 100644 index 000000000..7661901f3 --- /dev/null +++ b/gui/src/hooks/useSetup.ts @@ -0,0 +1,151 @@ +import { Dispatch } from "@reduxjs/toolkit"; +import ContinueGUIClientProtocol from "./ContinueGUIClientProtocol"; +import { useCallback, useEffect, useState } from "react"; +import { + addContextItem, + addHighlightedCode, + processSessionUpdate, + setActive, + setTitle, +} from "../redux/slices/sessionStateReducer"; +import { setServerStatusMessage } from "../redux/slices/miscSlice"; +import { postToIde } from "../vscode"; +import { useSelector } from "react-redux"; +import { RootStore } from "../redux/store"; +import { + setConfig, + setContextProviders, + setSlashCommands, +} from "../redux/slices/serverStateReducer"; +import { + setApiUrl, + setVscMachineId, + setWorkspacePaths, +} from "../redux/slices/configSlice"; + +function useSetup( + client: ContinueGUIClientProtocol | undefined, + dispatch: Dispatch +) { + const serverUrl = useSelector((store: RootStore) => store.config.apiUrl); + const active = useSelector((store: RootStore) => store.sessionState.active); + const title = useSelector((store: RootStore) => store.sessionState.title); + const history = useSelector((store: RootStore) => store.sessionState.history); + + const [requestedTitle, setRequestedTitle] = useState(false); + + useEffect(() => { + // Override persisted state + dispatch(setActive(false)); + + // Tell JetBrains the webview is ready + postToIde("onLoad", {}); + }, []); + + useEffect(() => { + (async () => { + if ( + client && + !requestedTitle && + !active && + title === "New Session" && + history && + history.filter((step) => !step?.hide).length >= 2 + ) { + setRequestedTitle(true); + const title = await client.getSessionTitle(history); + dispatch(setTitle(title)); + } + })(); + }, [active, history, title, client, requestedTitle]); + + // Setup requiring client + useEffect(() => { + if (!client) return; + + // Listen for updates to the session state + client.onSessionUpdate((update) => { + dispatch(processSessionUpdate(update)); + }); + + client.onAddContextItem((item) => { + dispatch(addContextItem(item)); + }); + + client.onConfigUpdate((config) => { + dispatch(setConfig(config)); + }); + + fetch(`${serverUrl}/slash_commands`).then(async (resp) => { + const sc = await resp.json(); + dispatch(setSlashCommands(sc)); + }); + fetch(`${serverUrl}/context_providers`).then(async (resp) => { + const cp = await resp.json(); + dispatch(setContextProviders(cp)); + }); + client.getConfig().then((config) => { + dispatch(setConfig(config)); + }); + }, [client]); + + // IDE event listeners + useEffect(() => { + const eventListener = (event: any) => { + switch (event.data.type) { + case "onLoad": + (window as any).windowId = event.data.windowId; + (window as any).serverUrl = event.data.serverUrl; + (window as any).workspacePaths = event.data.workspacePaths; + (window as any).vscMachineId = event.data.vscMachineId; + (window as any).vscMediaUrl = event.data.vscMediaUrl; + dispatch(setApiUrl(event.data.serverUrl)); + dispatch(setWorkspacePaths(event.data.workspacePaths)); + dispatch(setVscMachineId(event.data.vscMachineId)); + // dispatch(setVscMediaUrl(event.data.vscMediaUrl)); + + break; + case "highlightedCode": + dispatch( + addHighlightedCode({ + rangeInFileWithContents: event.data.rangeInFileWithContents, + edit: event.data.edit, + }) + ); + break; + case "serverStatus": + dispatch(setServerStatusMessage(event.data.message)); + break; + case "stopSession": + client?.stopSession(); + break; + } + }; + window.addEventListener("message", eventListener); + return () => window.removeEventListener("message", eventListener); + }, [client]); + + // Save theme colors to local storage + useEffect(() => { + if (document.body.style.getPropertyValue("--vscode-editor-foreground")) { + localStorage.setItem( + "--vscode-editor-foreground", + document.body.style.getPropertyValue("--vscode-editor-foreground") + ); + } + if (document.body.style.getPropertyValue("--vscode-editor-background")) { + localStorage.setItem( + "--vscode-editor-background", + document.body.style.getPropertyValue("--vscode-editor-background") + ); + } + if (document.body.style.getPropertyValue("--vscode-list-hoverBackground")) { + localStorage.setItem( + "--vscode-list-hoverBackground", + document.body.style.getPropertyValue("--vscode-list-hoverBackground") + ); + } + }, []); +} + +export default useSetup; diff --git a/gui/src/hooks/useWebsocket.ts b/gui/src/hooks/useWebsocket.ts deleted file mode 100644 index 219620c45..000000000 --- a/gui/src/hooks/useWebsocket.ts +++ /dev/null @@ -1,48 +0,0 @@ -import React, { useEffect, useState } from "react"; -import { RootStore } from "../redux/store"; -import { useSelector } from "react-redux"; -import ContinueGUIClientProtocol from "./ContinueGUIClientProtocol"; -import { postVscMessage } from "../vscode"; - -function useContinueGUIProtocol(useVscodeMessagePassing: boolean = true) { - // if (localStorage.getItem("ide") === "jetbrains") { - // useVscodeMessagePassing = false; - // } - - const sessionId = useSelector((state: RootStore) => state.config.sessionId); - const serverHttpUrl = useSelector((state: RootStore) => state.config.apiUrl); - const [client, setClient] = useState( - undefined - ); - - useEffect(() => { - console.log(client, sessionId, serverHttpUrl); - if (!sessionId || !serverHttpUrl) { - if (useVscodeMessagePassing) { - postVscMessage("onLoad", {}); - } - setClient(undefined); - return; - } - - const serverUrlWithSessionId = - serverHttpUrl.replace("http", "ws") + - "/gui/ws?session_id=" + - encodeURIComponent(sessionId); - - console.log( - "Creating GUI websocket", - serverUrlWithSessionId, - useVscodeMessagePassing - ); - const newClient = new ContinueGUIClientProtocol( - serverUrlWithSessionId, - useVscodeMessagePassing - ); - console.log(newClient); - setClient(newClient); - }, [sessionId, serverHttpUrl]); - - return client; -} -export default useContinueGUIProtocol; diff --git a/gui/src/hooks/vscodeMessenger.ts b/gui/src/hooks/vscodeMessenger.ts index cf6267219..1c1880665 100644 --- a/gui/src/hooks/vscodeMessenger.ts +++ b/gui/src/hooks/vscodeMessenger.ts @@ -1,4 +1,4 @@ -import { postVscMessage } from "../vscode"; +import { postToIde } from "../vscode"; // import { Messenger } from "../../../src/util/messenger"; import { Messenger } from "./messenger"; @@ -8,11 +8,11 @@ export class VscodeMessenger extends Messenger { constructor(serverUrl: string) { super(); this.serverUrl = serverUrl; - postVscMessage("websocketForwardingOpen", { url: this.serverUrl }); + postToIde("websocketForwardingOpen", { url: this.serverUrl }); } send(messageType: string, data: object) { - postVscMessage("websocketForwardingMessage", { + postToIde("websocketForwardingMessage", { message: { messageType, data }, url: this.serverUrl, }); @@ -78,6 +78,6 @@ export class VscodeMessenger extends Messenger { } close(): void { - postVscMessage("websocketForwardingClose", { url: this.serverUrl }); + postToIde("websocketForwardingClose", { url: this.serverUrl }); } } diff --git a/gui/src/main.tsx b/gui/src/main.tsx index 79c8e70bc..ce116245d 100644 --- a/gui/src/main.tsx +++ b/gui/src/main.tsx @@ -2,17 +2,20 @@ import React from "react"; import ReactDOM from "react-dom/client"; import App from "./App"; import { Provider } from "react-redux"; -import store from "./redux/store"; +import { store, persistor } from "./redux/store"; import "./index.css"; +import { PersistGate } from "redux-persist/integration/react"; import CustomPostHogProvider from "./hooks/CustomPostHogProvider"; ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( - - - + + + + + ); diff --git a/gui/src/pages/error.tsx b/gui/src/pages/error.tsx index 5267c4055..c1b2d3dc8 100644 --- a/gui/src/pages/error.tsx +++ b/gui/src/pages/error.tsx @@ -1,17 +1,37 @@ +import { useDispatch } from "react-redux"; import { useRouteError } from "react-router-dom"; +import { newSession } from "../redux/slices/sessionStateReducer"; +import useContinueGUIProtocol from "../hooks/useContinueClient"; +import ContinueButton from "../components/ContinueButton"; +import { vscBackground } from "../components"; export default function ErrorPage() { const error: any = useRouteError(); console.error(error); + const dispatch = useDispatch(); + const client = useContinueGUIProtocol(false); return ( -
+

Error in Continue React App

{error.statusText || error.message}


-
{error.stack}
+

Click below to Continue

+
+ { + client?.stopSession(); + dispatch(newSession()); + }} + >
); } diff --git a/gui/src/pages/gui.tsx b/gui/src/pages/gui.tsx index 3be837395..3f4a16d94 100644 --- a/gui/src/pages/gui.tsx +++ b/gui/src/pages/gui.tsx @@ -1,11 +1,12 @@ import styled from "styled-components"; import { + Button, Input, defaultBorderRadius, lightGray, vscBackground, } from "../components"; -import { FullState } from "../schema/FullState"; +import { ErrorBoundary } from "react-error-boundary"; import { useEffect, useRef, @@ -15,14 +16,13 @@ import { useCallback, Fragment, } from "react"; -import { HistoryNode } from "../schema/HistoryNode"; import StepContainer from "../components/StepContainer"; import { GUIClientContext } from "../App"; import ComboBox from "../components/ComboBox"; import { usePostHog } from "posthog-js/react"; import { useDispatch, useSelector } from "react-redux"; import { RootStore } from "../redux/store"; -import { postVscMessage } from "../vscode"; +import { postToIde } from "../vscode"; import { isMetaEquivalentKeyPressed } from "../util"; import { setBottomMessage, @@ -32,12 +32,6 @@ import { setShowDialog, } from "../redux/slices/uiStateSlice"; import RingLoader from "../components/RingLoader"; -import { - setServerState, - temporarilyClearSession, - temporarilyCreateNewUserInput, - temporarilyPushToUserInputQueue, -} from "../redux/slices/serverStateReducer"; import TimelineItem from "../components/TimelineItem"; import ErrorStepContainer from "../components/ErrorStepContainer"; import { @@ -50,8 +44,16 @@ import { import FTCDialog from "../components/dialogs/FTCDialog"; import HeaderButtonWithText from "../components/HeaderButtonWithText"; import { useNavigate } from "react-router-dom"; -import SuggestionsArea from "../components/Suggestions"; import { setTakenActionTrue } from "../redux/slices/miscSlice"; +import { + addContextItemAtIndex, + deleteAtIndex, + newSession, + setActive, + setHistory, + setTitle, +} from "../redux/slices/sessionStateReducer"; +import { StepDescription } from "../schema/SessionState"; const TopGuiDiv = styled.div` overflow-y: scroll; @@ -121,6 +123,19 @@ const GUIHeaderDiv = styled.div` background-color: ${vscBackground}; `; +function fallbackRender({ error, resetErrorBoundary }) { + // Call resetErrorBoundary() to reset the error boundary and retry the render. + + return ( +
+

Something went wrong:

+
{error.message}
+ + +
+ ); +} + interface GUIProps { firstObservation?: any; } @@ -135,20 +150,18 @@ function GUI(props: GUIProps) { // #endregion // #region Selectors - const history = useSelector((state: RootStore) => state.serverState.history); + const sessionState = useSelector((state: RootStore) => state.sessionState); const defaultModel = useSelector( (state: RootStore) => (state.serverState.config as any).models?.default ); const serverStatusMessage = useSelector( (state: RootStore) => state.misc.serverStatusMessage ); - const user_input_queue = useSelector( - (state: RootStore) => state.serverState.user_input_queue - ); const sessionTitle = useSelector( - (state: RootStore) => state.serverState.session_info?.title + (state: RootStore) => state.sessionState.title ); + const active = useSelector((state: RootStore) => state.sessionState.active); // #endregion @@ -156,7 +169,13 @@ function GUI(props: GUIProps) { const [waitingForSteps, setWaitingForSteps] = useState(false); const [stepsOpen, setStepsOpen] = useState<(boolean | undefined)[]>([]); const [waitingForClient, setWaitingForClient] = useState(true); - const [showLoading, setShowLoading] = useState(true); + const [showLoading, setShowLoading] = useState(false); + + useEffect(() => { + setTimeout(() => { + setShowLoading(true); + }, 5000); + }, []); // #endregion @@ -215,7 +234,7 @@ function GUI(props: GUIProps) { top: topGuiDivRef.current?.scrollHeight, behavior: "instant" as any, }); - }, [topGuiDivRef.current?.scrollHeight, history.timeline]); + }, [topGuiDivRef.current?.scrollHeight, sessionState.history]); useEffect(() => { // Cmd + Backspace to delete current step @@ -223,11 +242,10 @@ function GUI(props: GUIProps) { if ( e.key === "Backspace" && isMetaEquivalentKeyPressed(e) && - !e.shiftKey && - typeof history?.current_index !== "undefined" && - history.timeline[history.current_index]?.active + !e.shiftKey ) { - client?.deleteAtIndex(history.current_index); + client?.stopSession(); + dispatch(setActive(false)); } else if (e.key === "Escape") { dispatch(setBottomMessage(undefined)); } @@ -237,69 +255,12 @@ function GUI(props: GUIProps) { return () => { window.removeEventListener("keydown", listener); }; - }, [client, history]); - - useEffect(() => { - client?.onStateUpdate((state: FullState) => { - const waitingForSteps = - state.active && - state.history.current_index < state.history.timeline.length && - state.history.timeline[state.history.current_index] && - state.history.timeline[ - state.history.current_index - ].step.description?.trim() === ""; - - dispatch(setServerState(state)); - - setWaitingForSteps(waitingForSteps); - setStepsOpen((prev) => { - const nextStepsOpen = [...prev]; - for ( - let i = nextStepsOpen.length; - i < state.history.timeline.length; - i++ - ) { - nextStepsOpen.push(undefined); - } - return nextStepsOpen; - }); - }); - }, [client]); + }, [client, active]); // #endregion - useEffect(() => { - if (client && waitingForClient) { - setWaitingForClient(false); - for (const input of user_input_queue) { - client.sendMainInput(input); - } - } - }, [client, user_input_queue, waitingForClient]); - - const onMainTextInput = (event?: any) => { - dispatch(setTakenActionTrue(null)); - if (mainTextInputRef.current) { - let input = (mainTextInputRef.current as any).inputValue; - - if (input.trim() === "") return; - - if (input.startsWith("#") && (input.length === 7 || input.length === 4)) { - localStorage.setItem("continueButtonColor", input); - (mainTextInputRef.current as any).setInputValue(""); - return; - } - - // cmd+enter to /codebase - if (event && isMetaEquivalentKeyPressed(event)) { - input = `/edit ${input}`; - } - (mainTextInputRef.current as any).setInputValue(""); - if (!client) { - dispatch(temporarilyPushToUserInputQueue(input)); - return; - } - + const sendInput = useCallback( + (input: string) => { if ( defaultModel?.class_name === "OpenAIFreeTrial" && defaultModel?.api_key === "" && @@ -323,29 +284,45 @@ function GUI(props: GUIProps) { setWaitingForSteps(true); - if ( - history && - history.current_index >= 0 && - history.current_index < history.timeline.length - ) { - if ( - history.timeline[history.current_index]?.step.name === - "Waiting for user input" - ) { - if (input.trim() === "") return; - onStepUserInput(input, history!.current_index); - return; - } else if ( - history.timeline[history.current_index]?.step.name === - "Waiting for user confirmation" - ) { - onStepUserInput("ok", history!.current_index); - return; - } + // TODO: Sagas or something might be better? + const newHistory = [ + ...sessionState.history, + { + name: "User Input", + description: input, + observations: [], + logs: [], + step_type: "UserInputStep", + params: { user_input: input }, + hide: false, + depth: 0, + }, + ]; + const state = { + history: newHistory, + context_items: sessionState.context_items, + }; + for (let contextItem of sessionState.context_items) { + dispatch( + addContextItemAtIndex({ + item: contextItem, + index: newHistory.length - 1, + }) + ); } - - client.sendMainInput(input); - dispatch(temporarilyCreateNewUserInput(input)); + client.runFromState(state); + newHistory.push({ + name: "Generating Response...", + description: " ", + observations: [], + logs: [], + step_type: "SimpleChatStep", + params: {}, + hide: false, + depth: 0, + }); + dispatch(setHistory(newHistory)); + dispatch(setActive(true)); // Increment localstorage counter for popup const counter = localStorage.getItem("mainTextEntryCounter"); @@ -420,6 +397,40 @@ function GUI(props: GUIProps) { } else { localStorage.setItem("mainTextEntryCounter", "1"); } + }, + [client, sessionState.history, sessionState.context_items] + ); + + useEffect(() => { + const eventListener = (event: any) => { + if (event.data.type === "userInput") { + sendInput(event.data.input); + } + }; + window.addEventListener("message", eventListener); + return () => window.removeEventListener("message", eventListener); + }, [sendInput]); + + const onMainTextInput = (event?: any) => { + dispatch(setTakenActionTrue(null)); + if (mainTextInputRef.current && client) { + let input = (mainTextInputRef.current as any).inputValue; + + if (input.trim() === "") return; + + if (input.startsWith("#") && (input.length === 7 || input.length === 4)) { + localStorage.setItem("continueButtonColor", input); + (mainTextInputRef.current as any).setInputValue(""); + return; + } + + // cmd+enter to /codebase + if (event && isMetaEquivalentKeyPressed(event)) { + input = `/edit ${input}`; + } + (mainTextInputRef.current as any).setInputValue(""); + + sendInput(input); } }; @@ -428,6 +439,23 @@ function GUI(props: GUIProps) { client.sendStepUserInput(input, index); }; + const isLastUserInput = useCallback( + (index: number): boolean => { + let foundLaterUserInput = false; + for (let i = index + 1; i < sessionState.history.length; i++) { + if ( + sessionState.history[i].name === "User Input" && + sessionState.history[i].hide === false + ) { + foundLaterUserInput = true; + break; + } + } + return !foundLaterUserInput; + }, + [sessionState.history] + ); + const getStepsInUserInputGroup = useCallback( (index: number): number[] => { // index is the index in the entire timeline, hidden steps included @@ -437,9 +465,9 @@ function GUI(props: GUIProps) { let userInputIndex = -1; for (let i = index; i >= 0; i--) { if ( - history?.timeline.length > i && - history.timeline[i].step.name === "User Input" && - history.timeline[i].step.hide === false + typeof sessionState.history[i] !== "undefined" && + sessionState.history[i].name === "User Input" && + sessionState.history[i].hide === false ) { stepsInUserInputGroup.push(i); userInputIndex = i; @@ -448,11 +476,11 @@ function GUI(props: GUIProps) { } if (stepsInUserInputGroup.length === 0) return []; - for (let i = userInputIndex + 1; i < history?.timeline.length; i++) { + for (let i = userInputIndex + 1; i < sessionState.history.length; i++) { if ( - history?.timeline.length > i && - history.timeline[i].step.name === "User Input" && - history.timeline[i].step.hide === false + typeof sessionState.history[i] !== "undefined" && + sessionState.history[i].name === "User Input" && + sessionState.history[i].hide === false ) { break; } @@ -460,7 +488,7 @@ function GUI(props: GUIProps) { } return stepsInUserInputGroup; }, - [history.timeline] + [sessionState.history] ); const onToggleAtIndex = useCallback( @@ -528,7 +556,7 @@ function GUI(props: GUIProps) { e.target.value === "New Session") ) return; - client?.setCurrentSessionTitle(e.target.value); + dispatch(setTitle(e.target.value)); }} onKeyDown={(e) => { if (e.key === "Enter") { @@ -541,19 +569,15 @@ function GUI(props: GUIProps) { }} />
- {history.timeline.filter((n) => !n.step.hide).length > 0 && ( - { - if (history.timeline.filter((n) => !n.step.hide).length > 0) { - dispatch(temporarilyClearSession(false)); - client?.loadSession(undefined); - } - }} - text="New Session (⌥⌘N)" - > - - - )} + { + client?.stopSession(); + dispatch(newSession()); + }} + text="New Session (⌥⌘N)" + > + + { @@ -565,7 +589,7 @@ function GUI(props: GUIProps) {
- {(takenAction || showLoading) && typeof client === "undefined" && ( + {takenAction && showLoading && typeof client === "undefined" && ( <>

{ - postVscMessage("toggleDevTools", {}); + postToIde("toggleDevTools", {}); }} > View logs @@ -637,138 +661,158 @@ function GUI(props: GUIProps) { )}
- { - client?.sendMainInput(textInput); - }} - /> + - {history?.timeline.map((node: HistoryNode, index: number) => { - if (node.step.hide) return null; + {sessionState?.history?.map((step: StepDescription, index: number) => { + if (step.hide) return null; + return ( - {node.step.name === "User Input" ? ( - node.step.hide || ( - { - return history.timeline[i].active; - }) || history.timeline[index].active - } - onEnter={(e, value) => { - if (value) client?.editStepAtIndex(value, index); - e?.stopPropagation(); - e?.preventDefault(); - }} - groupIndices={getStepsInUserInputGroup(index)} - onToggle={(isOpen: boolean) => { - // Collapse all steps in the section - setStepsOpen((prev) => { - const nextStepsOpen = [...prev]; - getStepsInUserInputGroup(index).forEach((i) => { - nextStepsOpen[i] = isOpen; + { + client?.stopSession(); + dispatch(newSession()); + }} + > + {step.name === "User Input" ? ( + step.hide || ( + { + if (value) { + client?.stopSession(); + const newHistory = [ + ...sessionState.history.slice(0, index), + { + name: "User Input", + description: value, + observations: [], + logs: [], + step_type: "UserInputStep", + params: { user_input: value }, + hide: false, + depth: 0, + }, + ]; + dispatch(setHistory(newHistory)); + dispatch(setActive(true)); + const state = { + history: newHistory, + context_items: sessionState.context_items, + }; + console.log("State: ", state); + client.runFromState(state); + } + e?.stopPropagation(); + e?.preventDefault(); + }} + groupIndices={getStepsInUserInputGroup(index)} + onToggle={(isOpen: boolean) => { + // Collapse all steps in the section + setStepsOpen((prev) => { + const nextStepsOpen = [...prev]; + getStepsInUserInputGroup(index).forEach((i) => { + nextStepsOpen[i] = isOpen; + }); + return nextStepsOpen; }); - return nextStepsOpen; - }); - }} - onToggleAll={(isOpen: boolean) => { - // Collapse _all_ steps - setStepsOpen((prev) => { - return prev.map((_) => isOpen); - }); - }} - isToggleOpen={ - typeof stepsOpen[index] === "undefined" - ? true - : stepsOpen[index]! - } - index={index} - onDelete={() => { - // Delete the input and all steps until the next user input - getStepsInUserInputGroup(index).forEach((i) => { - client?.deleteAtIndex(i); - }); - }} - /> - ) - ) : ( - - ) : node.observation?.error ? ( - - ) : ( - - ) - } - open={ - typeof stepsOpen[index] === "undefined" - ? node.observation?.error - ? false - : true - : stepsOpen[index]! - } - onToggle={() => onToggleAtIndex(index)} - > - {node.observation?.error ? ( - onToggleAtIndex(index)} - historyNode={node} - onDelete={() => client?.deleteAtIndex(index)} - /> - ) : ( - { + // Collapse _all_ steps + setStepsOpen((prev) => { + return prev.map((_) => isOpen); + }); + }} + isToggleOpen={ typeof stepsOpen[index] === "undefined" ? true : stepsOpen[index]! } - key={index} - onUserInput={(input: string) => { - onStepUserInput(input, index); - }} - inFuture={index > history?.current_index} - historyNode={node} - onReverse={() => { - client?.reverseToIndex(index); - }} - onRetry={() => { - client?.retryAtIndex(index); - setWaitingForSteps(true); - }} + index={index} onDelete={() => { - client?.deleteAtIndex(index); + // Delete the input and all steps until the next user input + getStepsInUserInputGroup(index).forEach((i) => { + console.log(i); + dispatch(deleteAtIndex(i)); + }); }} - noUserInputParent={ - getStepsInUserInputGroup(index).length === 0 - } /> - )} - - )} - {/*

*/} + ) + ) : ( + + ) : step.error ? ( + + ) : ( + + ) + } + open={ + typeof stepsOpen[index] === "undefined" + ? step.error + ? false + : true + : stepsOpen[index]! + } + onToggle={() => onToggleAtIndex(index)} + > + {step.error ? ( + onToggleAtIndex(index)} + error={step.error} + onDelete={() => { + dispatch(deleteAtIndex(index)); + }} + /> + ) : ( + { + onStepUserInput(input, index); + }} + step={step} + onReverse={() => { + client?.reverseToIndex(index); + }} + onRetry={() => { + client?.retryAtIndex(index); + setWaitingForSteps(true); + }} + onDelete={() => { + dispatch(deleteAtIndex(index)); + }} + noUserInputParent={ + getStepsInUserInputGroup(index).length === 0 + } + /> + )} + + )} + {/*
*/} + ); })} -
- {user_input_queue?.map?.((input, idx) => { - return {input}; - })} -
-
state.config.workspacePaths ); + const currentSession = useSelector((state: RootStore) => state.sessionState); + const workspaceDirectory = useSelector( + (state: RootStore) => state.config.workspacePaths?.[0] || "" + ); const [filteringByWorkspace, setFilteringByWorkspace] = useState(false); @@ -182,9 +187,39 @@ function History() { { - client?.loadSession(session.session_id); - dispatch(temporarilyClearSession(true)); + onClick={async () => { + // Save current session + const persistedSessionInfo: PersistedSessionInfo = { + session_state: { + history: currentSession.history, + context_items: currentSession.context_items, + }, + title: currentSession.title, + workspace_directory: workspaceDirectory, + session_id: currentSession.session_id, + }; + console.log(persistedSessionInfo); + await fetch(`${apiUrl}/sessions/save`, { + method: "POST", + body: JSON.stringify(persistedSessionInfo), + headers: { + "Content-Type": "application/json", + }, + }); + + // Load new session + const response = await fetch( + `${apiUrl}/sessions/${session.session_id}` + ); + if (!response.ok) { + throw new Error( + `HTTP error! status: ${response.status}` + ); + } + const json: PersistedSessionInfo = + await response.json(); + client?.stopSession(); + dispatch(newSession(json)); navigate("/"); }} > diff --git a/gui/src/pages/modelconfig.tsx b/gui/src/pages/modelconfig.tsx index 191af1858..685587d29 100644 --- a/gui/src/pages/modelconfig.tsx +++ b/gui/src/pages/modelconfig.tsx @@ -70,9 +70,7 @@ function ModelConfig() { const client = useContext(GUIClientContext); const dispatch = useDispatch(); const navigate = useNavigate(); - const vscMediaUrl = useSelector( - (state: RootStore) => state.config.vscMediaUrl - ); + const vscMediaUrl = (window as any).vscMediaUrl; const disableModelCards = useCallback(() => { return ( diff --git a/gui/src/redux/selectors/chatSelectors.ts b/gui/src/redux/selectors/chatSelectors.ts deleted file mode 100644 index 51e8a636b..000000000 --- a/gui/src/redux/selectors/chatSelectors.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { RootStore } from "../store"; - -const selectChatMessages = (state: RootStore) => { - return state.chat.messages; -}; - -const selectIsStreaming = (state: RootStore) => { - return state.chat.isStreaming; -}; - -export { selectChatMessages, selectIsStreaming }; diff --git a/gui/src/redux/selectors/miscSelectors.ts b/gui/src/redux/selectors/miscSelectors.ts deleted file mode 100644 index 7dbaed09d..000000000 --- a/gui/src/redux/selectors/miscSelectors.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RootStore } from "../store"; - -const selectHighlightedCode = (state: RootStore) => state.misc.highlightedCode; - -export { selectHighlightedCode }; diff --git a/gui/src/redux/slices/chatSlice.ts b/gui/src/redux/slices/chatSlice.ts deleted file mode 100644 index 848cccd45..000000000 --- a/gui/src/redux/slices/chatSlice.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { createSlice } from "@reduxjs/toolkit"; -import { ChatMessage, RootStore } from "../store"; - -export const chatSlice = createSlice({ - name: "chat", - initialState: { - messages: [], - isStreaming: false, - } as RootStore["chat"], - reducers: { - addMessage: ( - state, - action: { - type: string; - payload: ChatMessage; - } - ) => { - return { - ...state, - messages: [...state.messages, action.payload], - }; - }, - setIsStreaming: (state, action) => { - return { - ...state, - isStreaming: action.payload, - }; - }, - streamUpdate: (state, action) => { - if (!state.isStreaming) { - return { - ...state, - messages: [ - ...state.messages, - { - role: "assistant", - content: action.payload, - }, - ], - isStreaming: true, - }; - } else { - let lastMessage = state.messages[state.messages.length - 1]; - if (lastMessage.role !== "assistant") { - return { - ...state, - messages: [ - ...state.messages, - { - role: "assistant", - content: action.payload, - }, - ], - isStreaming: true, - }; - } - return { - ...state, - messages: [ - ...state.messages.slice(0, state.messages.length - 1), - { - ...lastMessage, - content: lastMessage.content + action.payload, - }, - ], - isStreaming: true, - }; - } - }, - closeStream: (state) => { - return { - ...state, - isStreaming: false, - }; - }, - clearChat: (state) => { - return { - ...state, - messages: [], - isStreaming: false, - }; - }, - }, -}); - -export const { - addMessage, - streamUpdate, - closeStream, - clearChat, - setIsStreaming, -} = chatSlice.actions; -export default chatSlice.reducer; diff --git a/gui/src/redux/slices/configSlice.ts b/gui/src/redux/slices/configSlice.ts index 639ed3b15..2ff7a7cef 100644 --- a/gui/src/redux/slices/configSlice.ts +++ b/gui/src/redux/slices/configSlice.ts @@ -1,11 +1,14 @@ import { createSlice } from "@reduxjs/toolkit"; import { RootStore } from "../store"; +const windowAny: any = window; + export const configSlice = createSlice({ name: "config", initialState: { - apiUrl: "http://localhost:8000", - vscMediaUrl: localStorage.getItem("vscMediaUrl") || undefined, + apiUrl: windowAny.serverUrl || "http://localhost:8000", + workspacePaths: windowAny.workspacePaths || [], + vscMachineId: windowAny.vscMachineId || undefined, } as RootStore["config"], reducers: { setWorkspacePaths: ( @@ -38,16 +41,6 @@ export const configSlice = createSlice({ ...state, sessionId: action.payload, }), - setVscMediaUrl: ( - state: RootStore["config"], - action: { type: string; payload: string } - ) => { - localStorage.setItem("vscMediaUrl", action.payload); - return { - ...state, - vscMediaUrl: action.payload, - }; - }, setDataSwitchOn: ( state: RootStore["config"], action: { type: string; payload: boolean } @@ -63,7 +56,6 @@ export const { setApiUrl, setWorkspacePaths, setSessionId, - setVscMediaUrl, setDataSwitchOn, } = configSlice.actions; export default configSlice.reducer; diff --git a/gui/src/redux/slices/miscSlice.ts b/gui/src/redux/slices/miscSlice.ts index 131defbdb..f569549ad 100644 --- a/gui/src/redux/slices/miscSlice.ts +++ b/gui/src/redux/slices/miscSlice.ts @@ -3,14 +3,10 @@ import { createSlice } from "@reduxjs/toolkit"; export const miscSlice = createSlice({ name: "misc", initialState: { - highlightedCode: "", takenAction: false, serverStatusMessage: "Continue Server Starting", }, reducers: { - setHighlightedCode: (state: any, action) => { - state.highlightedCode = action.payload; - }, setTakenActionTrue: (state: any, action) => { state.takenAction = true; }, @@ -20,9 +16,5 @@ export const miscSlice = createSlice({ }, }); -export const { - setHighlightedCode, - setTakenActionTrue, - setServerStatusMessage, -} = miscSlice.actions; +export const { setTakenActionTrue, setServerStatusMessage } = miscSlice.actions; export default miscSlice.reducer; diff --git a/gui/src/redux/slices/serverStateReducer.ts b/gui/src/redux/slices/serverStateReducer.ts index 176a780f3..41144de22 100644 --- a/gui/src/redux/slices/serverStateReducer.ts +++ b/gui/src/redux/slices/serverStateReducer.ts @@ -1,17 +1,14 @@ import { createSlice } from "@reduxjs/toolkit"; -import { FullState } from "../../schema/FullState"; import { ContextItem } from "../../schema/ContextItem"; +import { RootStore } from "../store"; const TEST_TIMELINE = [ { - step: { - description: "Hi, please write bubble sort in python", - name: "User Input", - }, + description: "Hi, please write bubble sort in python", + name: "User Input", }, { - step: { - description: `\`\`\`python + description: `\`\`\`python def bubble_sort(arr): n = len(arr) for i in range(n): @@ -20,24 +17,18 @@ def bubble_sort(arr): arr[j], arr[j + 1] = arr[j + 1], arr[j] return arr \`\`\``, - name: "Bubble Sort in Python", - }, + name: "Bubble Sort in Python", }, { - step: { - description: "Now write it in Rust", - name: "User Input", - }, + description: "Now write it in Rust", + name: "User Input", }, { - step: { - description: "Hello! This is a test...\n\n1, 2, 3, testing...", - name: "Testing", - }, + description: "Hello! This is a test...\n\n1, 2, 3, testing...", + name: "Testing", }, { - step: { - description: `Sure, here's bubble sort written in rust: \n\`\`\`rust + description: `Sure, here's bubble sort written in rust: \n\`\`\`rust fn bubble_sort(values: &mut[T]) { let len = values.len(); for i in 0..len { @@ -49,9 +40,7 @@ fn bubble_sort(values: &mut[T]) { } } \`\`\`\nIs there anything else I can answer?`, - name: "Rust Bubble Sort", - }, - active: true, + name: "Rust Bubble Sort", }, ]; @@ -95,66 +84,43 @@ const TEST_CONTEXT_ITEMS: ContextItem[] = [ }, ]; -const initialState: FullState = { - history: { - timeline: [], - current_index: 3, - } as any, - user_input_queue: [], - active: false, - slash_commands: [], - adding_highlighted_code: false, - selected_context_items: [], +const initialState: RootStore["serverState"] = { + meilisearchUrl: undefined, + slashCommands: [], + selectedContextItems: [], config: { system_message: "", temperature: 0.5, }, + contextProviders: [], + savedContextGroups: [], }; export const serverStateSlice = createSlice({ name: "serverState", initialState, reducers: { - setServerState: (state, action) => { - state.selected_context_items = []; - state.user_input_queue = []; - state.slash_commands = []; - Object.assign(state, action.payload); + setSlashCommands: (state, action) => { + return { + ...state, + slashCommands: action.payload, + }; }, - temporarilyPushToUserInputQueue: (state, action) => { - state.user_input_queue = [...state.user_input_queue, action.payload]; + setContextProviders: (state, action) => { + return { + ...state, + contextProviders: action.payload, + }; }, - temporarilyCreateNewUserInput: (state, action) => { - state.history.timeline = [ - ...state.history.timeline, - { - step: { - description: action.payload, - name: "User Input", - hide: false, - }, - depth: 0, - active: false, - context_used: state.selected_context_items, - }, - ]; - }, - temporarilyClearSession: (state, action) => { - state.history.timeline = []; - state.selected_context_items = []; - state.session_info = { - title: action.payload ? "Loading session..." : "New Session", - session_id: "", - date_created: "", + setConfig: (state, action) => { + return { + ...state, + config: action.payload, }; }, }, }); -export const { - setServerState, - temporarilyPushToUserInputQueue, - temporarilyClearSession, - temporarilyCreateNewUserInput, -} = serverStateSlice.actions; +export const { setContextProviders, setSlashCommands, setConfig } = + serverStateSlice.actions; export default serverStateSlice.reducer; diff --git a/gui/src/redux/slices/sessionStateReducer.ts b/gui/src/redux/slices/sessionStateReducer.ts new file mode 100644 index 000000000..de6f40e1d --- /dev/null +++ b/gui/src/redux/slices/sessionStateReducer.ts @@ -0,0 +1,330 @@ +import { createSlice } from "@reduxjs/toolkit"; +import { StepDescription } from "../../schema/SessionState"; +import { SessionUpdate } from "../../schema/SessionUpdate"; +import { ContextItem } from "../../schema/ContextItem"; +import { PersistedSessionInfo } from "../../schema/PersistedSessionInfo"; +import { v4 } from "uuid"; +import { ContextItemId } from "../../schema/ContextItemId"; + +export interface SessionFullState { + history: StepDescription[]; + contextItemsAtIndex: { [index: number]: ContextItem[] }; + context_items: ContextItem[]; + active: boolean; + title: string; + session_id: string; +} + +export const sessionStateSlice = createSlice({ + name: "sessionState", + initialState: { + history: [], + context_items: [], + active: false, + title: "New Session", + contextItemsAtIndex: {}, + session_id: v4(), + }, + reducers: { + processSessionUpdate: ( + state: SessionFullState, + { payload }: { payload: SessionUpdate } + ) => { + let active = state.active; + if (typeof payload.stop === "boolean") { + active = !payload.stop; + } else { + active = true; + } + + let step: StepDescription | undefined = undefined; + + if (payload.index > state.history.length) { + // Partial above to allow here + step = { + ...(payload.update as StepDescription), + }; + } else if (payload.delta === true) { + step = { + ...state.history[payload.index], + }; + if (payload.update.name) { + step.name = (step.name ?? "") + payload.update.name; + } + if (payload.update.description) { + step.description = + (step.description ?? "") + payload.update.description; + } + if (payload.update.observations) { + step.observations = [ + ...(step.observations ?? []), + ...(payload.update.observations as any), + ]; + } + if (payload.update.logs) { + step.logs = [...(step.logs ?? []), ...(payload.update.logs as any)]; + } + } else if (payload.delta === false) { + step = { + ...state.history[payload.index], + ...payload.update, + }; + } + + let history = [...state.history]; + if (step) { + if (payload.index >= history.length) { + history.push(step); + } else { + history[payload.index] = step; + } + } + + return { + ...state, + history, + active, + }; + }, + newSession: ( + state: SessionFullState, + { payload }: { payload: PersistedSessionInfo | undefined } + ) => { + if (payload) { + console.log("NEW SESSION"); + return { + ...state, + history: payload.session_state.history, + context_items: payload.session_state.context_items, + contextItemsAtIndex: {}, + active: false, + title: payload.title, + session_id: payload.session_id, + }; + } + return { + ...state, + history: [], + context_items: [], + contextItemsAtIndex: {}, + active: false, + title: "New Session", + session_id: v4(), + }; + }, + setTitle: (state: SessionFullState, { payload }: { payload: string }) => { + return { + ...state, + title: payload, + }; + }, + setActive: (state: SessionFullState, { payload }: { payload: boolean }) => { + return { + ...state, + active: payload, + }; + }, + setHistory: ( + state: SessionFullState, + { payload }: { payload: StepDescription[] } + ) => { + return { + ...state, + history: payload, + }; + }, + deleteAtIndex: ( + state: SessionFullState, + { payload }: { payload: number } + ) => { + let newHistory = [...state.history]; + newHistory[payload] = { + ...newHistory[payload], + hide: true, + }; + return { ...state, history: newHistory }; + }, + addContextItem: ( + state: SessionFullState, + { payload }: { payload: ContextItem } + ) => { + console.log("HERE...", payload); + return { + ...state, + context_items: [...state.context_items, payload], + }; + }, + addContextItemAtIndex: ( + state: SessionFullState, + { payload }: { payload: { item: ContextItem; index: number } } + ) => { + return { + ...state, + contextItemsAtIndex: { + ...state.contextItemsAtIndex, + [payload.index]: [ + ...(state.contextItemsAtIndex[payload.index] ?? []), + payload.item, + ], + }, + }; + }, + addHighlightedCode: ( + state: SessionFullState, + { + payload, + }: { + payload: { rangeInFileWithContents: any; edit: boolean }; + } + ) => { + let contextItems = [...state.context_items].map((item) => { + return { ...item, editing: false }; + }); + const base = payload.rangeInFileWithContents.filepath + .split(/[\\/]/) + .pop(); + + // Merge if there is overlap + for (let i = 0; i < contextItems.length; i++) { + const item = contextItems[i]; + if ( + item.description.description === + payload.rangeInFileWithContents.filepath + ) { + let newStart = payload.rangeInFileWithContents.range.start.line; + let newEnd = payload.rangeInFileWithContents.range.end.line; + let [oldStart, oldEnd] = item.description.name + .split("(")[1] + .split(")")[0] + .split("-") + .map((x: string) => parseInt(x) - 1); + if (newStart > oldEnd || newEnd < oldStart) { + continue; + } + const startLine = Math.min(newStart, oldStart); + const endLine = Math.max(newEnd, oldEnd); + + // const oldContents = item.content.split("\n"); + // const newContents = + // payload.rangeInFileWithContents.contents.split("\n"); + // const finalContents = []; + + contextItems[i] = { + ...item, + description: { + ...item.description, + name: `${base} (${startLine + 1}-${endLine + 1})`, + }, + content: payload.rangeInFileWithContents.contents, + editing: true, + editable: true, + }; + return { ...state, context_items: contextItems }; + } + } + + const lineNums = `(${ + payload.rangeInFileWithContents.range.start.line + 1 + }-${payload.rangeInFileWithContents.range.end.line + 1})`; + contextItems.push({ + description: { + name: `${base} ${lineNums}`, + description: payload.rangeInFileWithContents.filepath, + id: { + provider_title: "code", + item_id: v4(), + }, + }, + content: payload.rangeInFileWithContents.contents, + editing: true, + editable: true, + }); + + return { ...state, context_items: contextItems }; + }, + deleteContextWithIds: ( + state: SessionFullState, + { + payload, + }: { payload: { ids: ContextItemId[]; index: number | undefined } } + ) => { + const ids = payload.ids.map((id) => `${id.provider_title}-${id.item_id}`); + if (typeof payload.index === "undefined") { + return { + ...state, + context_items: state.context_items.filter( + (item) => + !ids.includes( + `${item.description.id.provider_title}-${item.description.id.item_id}` + ) + ), + }; + } else { + return { + ...state, + contextItemsAtIndex: { + ...state.contextItemsAtIndex, + [payload.index]: ( + state.contextItemsAtIndex[payload.index] ?? [] + ).filter( + (item) => + !ids.includes( + `${item.description.id.provider_title}-${item.description.id.item_id}` + ) + ), + }, + }; + } + }, + setEditingAtIds: ( + state: SessionFullState, + { + payload, + }: { payload: { ids: ContextItemId[]; index: number | undefined } } + ) => { + const ids = payload.ids.map((id) => id.item_id); + + if (typeof payload.index === "undefined") { + return { + ...state, + context_items: state.context_items.map((item) => { + return { + ...item, + editing: ids.includes(item.description.id.item_id), + }; + }), + }; + } else { + return { + ...state, + contextItemsAtIndex: { + ...state.contextItemsAtIndex, + [payload.index]: ( + state.contextItemsAtIndex[payload.index] ?? [] + ).map((item) => { + return { + ...item, + editing: ids.includes(item.description.id.item_id), + }; + }), + }, + }; + } + }, + }, +}); + +export const { + setActive, + setHistory, + processSessionUpdate, + newSession, + deleteAtIndex, + addContextItem, + addContextItemAtIndex, + addHighlightedCode, + deleteContextWithIds, + setTitle, + setEditingAtIds, +} = sessionStateSlice.actions; +export default sessionStateSlice.reducer; diff --git a/gui/src/redux/store.ts b/gui/src/redux/store.ts index 3960ca156..5f170ae33 100644 --- a/gui/src/redux/store.ts +++ b/gui/src/redux/store.ts @@ -1,11 +1,18 @@ -import { configureStore } from "@reduxjs/toolkit"; -import chatReducer from "./slices/chatSlice"; +import { combineReducers, configureStore } from "@reduxjs/toolkit"; import configReducer from "./slices/configSlice"; import miscReducer from "./slices/miscSlice"; import uiStateReducer from "./slices/uiStateSlice"; -import { FullState } from "../schema/FullState"; -import { RangeInFile } from "../schema/RangeInFile"; import serverStateReducer from "./slices/serverStateReducer"; +import sessionStateReducer, { + SessionFullState, +} from "./slices/sessionStateReducer"; +import { ContinueConfig } from "../schema/ContinueConfig"; +import { ContextItem } from "../schema/ContextItem"; +import { ContextProviderDescription } from "../schema/ContextProviderDescription"; +import { SlashCommandDescription } from "../schema/SlashCommandDescription"; + +import storage from "redux-persist/lib/storage"; +import { persistReducer, persistStore, createTransform } from "redux-persist"; export interface ChatMessage { role: "system" | "user" | "assistant"; @@ -17,17 +24,8 @@ export interface RootStore { workspacePaths: string[] | undefined; apiUrl: string; vscMachineId: string | undefined; - sessionId: string | undefined; - sessionStarted: number | undefined; - vscMediaUrl: string | undefined; - dataSwitchOn: boolean | undefined; - }; - chat: { - messages: ChatMessage[]; - isStreaming: boolean; }; misc: { - highlightedCode: RangeInFile | undefined; takenAction: boolean; serverStatusMessage: string; }; @@ -39,17 +37,53 @@ export interface RootStore { dialogMessage: string | JSX.Element; dialogEntryOn: boolean; }; - serverState: FullState; + sessionState: SessionFullState; + serverState: { + meilisearchUrl: string | undefined; + slashCommands: SlashCommandDescription[]; + selectedContextItems: ContextItem[]; + config: ContinueConfig; + contextProviders: ContextProviderDescription[]; + savedContextGroups: any[]; // TODO: Context groups + }; } -const store = configureStore({ - reducer: { - chat: chatReducer, - config: configReducer, - misc: miscReducer, - uiState: uiStateReducer, - serverState: serverStateReducer, - }, +const rootReducer = combineReducers({ + config: configReducer, + misc: miscReducer, + uiState: uiStateReducer, + sessionState: sessionStateReducer, + serverState: serverStateReducer, }); -export default store; +const windowIDTransform = (windowID) => + createTransform( + // transform state on its way to being serialized and persisted. + (inboundState, key) => { + return { [windowID]: inboundState }; + }, + // transform state being rehydrated + (outboundState, key) => { + return outboundState[windowID] || {}; + } + ); + +const persistConfig = { + key: "root", + storage, + // transforms: [ + // windowIDTransform((window as any).windowId || "undefinedWindowId"), + // ], +}; + +const persistedReducer = persistReducer(persistConfig, rootReducer); + +export const store = configureStore({ + reducer: persistedReducer, + middleware: (getDefaultMiddleware) => + getDefaultMiddleware({ + serializableCheck: false, + }), +}); + +export const persistor = persistStore(store); diff --git a/gui/src/schema/ContextItemId.d.ts b/gui/src/schema/ContextItemId.d.ts new file mode 100644 index 000000000..4d4580eb7 --- /dev/null +++ b/gui/src/schema/ContextItemId.d.ts @@ -0,0 +1,19 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type ContextItemId = ContextItemId1; +export type ProviderTitle = string; +export type ItemId = string; + +/** + * A ContextItemId is a unique identifier for a ContextItem. + */ +export interface ContextItemId1 { + provider_title: ProviderTitle; + item_id: ItemId; + [k: string]: unknown; +} diff --git a/gui/src/schema/ContextProviderDescription.d.ts b/gui/src/schema/ContextProviderDescription.d.ts new file mode 100644 index 000000000..7e2876287 --- /dev/null +++ b/gui/src/schema/ContextProviderDescription.d.ts @@ -0,0 +1,22 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type ContextProviderDescription = ContextProviderDescription1; +export type Title = string; +export type DisplayTitle = string; +export type Description = string; +export type Dynamic = boolean; +export type RequiresQuery = boolean; + +export interface ContextProviderDescription1 { + title: Title; + display_title: DisplayTitle; + description: Description; + dynamic: Dynamic; + requires_query: RequiresQuery; + [k: string]: unknown; +} diff --git a/gui/src/schema/ContinueConfig.d.ts b/gui/src/schema/ContinueConfig.d.ts index 7a4bdf8fd..ec535d2e7 100644 --- a/gui/src/schema/ContinueConfig.d.ts +++ b/gui/src/schema/ContinueConfig.d.ts @@ -100,10 +100,12 @@ export type Proxy = string; */ export type ApiKey = string; export type Saved = LLM[]; +export type Temperature1 = number; +export type SystemMessage2 = string; /** * The temperature parameter for sampling from the LLM. Higher temperatures will result in more random output, while lower temperatures will result in more predictable output. This value ranges from 0 to 1. */ -export type Temperature1 = number; +export type Temperature2 = number; export type Name3 = string; export type Prompt = string; export type Description1 = string; @@ -124,7 +126,7 @@ export type OnTraceback = Step; /** * A system message that will always be followed by the LLM */ -export type SystemMessage2 = string; +export type SystemMessage3 = string; /** * A Policy object that can be used to override the default behavior of Continue, for example in order to build custom agents that take multiple steps at a time. */ @@ -133,10 +135,6 @@ export type PolicyOverride = Policy; * The title of the ContextProvider. This is what must be typed in the input to trigger the ContextProvider. */ export type Title1 = string; -/** - * The ContinueSDK instance accessible by the ContextProvider - */ -export type Sdk = ContinueSDK1; /** * The display title of the ContextProvider shown in the dropdown menu */ @@ -189,11 +187,11 @@ export interface ContinueConfig1 { disallowed_steps?: DisallowedSteps; allow_anonymous_telemetry?: AllowAnonymousTelemetry; models?: Models; - temperature?: Temperature1; + temperature?: Temperature2; custom_commands?: CustomCommands; slash_commands?: SlashCommands; on_traceback?: OnTraceback; - system_message?: SystemMessage2; + system_message?: SystemMessage3; policy_override?: PolicyOverride; context_providers?: ContextProviders; user_token?: UserToken; @@ -233,7 +231,8 @@ export interface Models1 { edit?: LLM; chat?: LLM; saved?: Saved; - sdk?: ContinueSDK; + temperature?: Temperature1; + system_message?: SystemMessage2; [k: string]: unknown; } export interface LLM { @@ -269,9 +268,6 @@ export interface Headers { export interface PromptTemplates { [k: string]: unknown; } -export interface ContinueSDK { - [k: string]: unknown; -} export interface CustomCommand { name: Name3; prompt: Prompt; @@ -305,7 +301,7 @@ export interface Policy { */ export interface ContextProvider { title: Title1; - sdk?: Sdk; + ide?: Ide; display_title: DisplayTitle; description: Description3; dynamic: Dynamic; @@ -313,10 +309,7 @@ export interface ContextProvider { selected_items?: SelectedItems; [k: string]: unknown; } -/** - * To avoid circular imports - */ -export interface ContinueSDK1 { +export interface Ide { [k: string]: unknown; } /** diff --git a/gui/src/schema/ContinueError.d.ts b/gui/src/schema/ContinueError.d.ts new file mode 100644 index 000000000..0e716a168 --- /dev/null +++ b/gui/src/schema/ContinueError.d.ts @@ -0,0 +1,16 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type ContinueError = ContinueError1; +export type Title = string; +export type Message = string; + +export interface ContinueError1 { + title: Title; + message: Message; + [k: string]: unknown; +} diff --git a/gui/src/schema/FullState.d.ts b/gui/src/schema/FullState.d.ts deleted file mode 100644 index 90b8506b4..000000000 --- a/gui/src/schema/FullState.d.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* eslint-disable */ -/** - * This file was automatically generated by json-schema-to-typescript. - * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, - * and run json-schema-to-typescript to regenerate this file. - */ - -export type FullState = FullState1; -export type Name = string; -export type Hide = boolean; -export type Description = string; -export type ClassName = string; -export type SystemMessage = string; -export type Role = "assistant" | "user" | "system" | "function"; -export type Content = string; -export type Name1 = string; -export type Summary = string; -export type Name2 = string; -export type Arguments = string; -export type ChatContext = ChatMessage[]; -export type ManageOwnChatContext = boolean; -export type Depth = number; -export type Deleted = boolean; -export type Active = boolean; -export type Logs = string[]; -export type Name3 = string; -export type Description1 = string; -export type ProviderTitle = string; -export type ItemId = string; -export type Content1 = string; -export type Editing = boolean; -export type Editable = boolean; -export type ContextUsed = ContextItem[]; -export type Timeline = HistoryNode[]; -export type CurrentIndex = number; -export type Active1 = boolean; -export type UserInputQueue = string[]; -export type Name4 = string; -export type Description2 = string; -export type SlashCommands = SlashCommandDescription[]; -export type AddingHighlightedCode = boolean; -export type SelectedContextItems = ContextItem[]; -export type SessionId = string; -export type Title = string; -export type DateCreated = string; -export type WorkspaceDirectory = string; -export type SystemMessage1 = string; -export type Temperature = number; -export type Title1 = string; -export type DisplayTitle = string; -export type Description3 = string; -export type Dynamic = boolean; -export type RequiresQuery = boolean; -export type ContextProviders = ContextProviderDescription[]; -export type MeilisearchUrl = string; - -/** - * A full state of the program, including the history - */ -export interface FullState1 { - history: History; - active: Active1; - user_input_queue: UserInputQueue; - slash_commands: SlashCommands; - adding_highlighted_code: AddingHighlightedCode; - selected_context_items: SelectedContextItems; - session_info?: SessionInfo; - config: ContinueConfig; - saved_context_groups?: SavedContextGroups; - context_providers?: ContextProviders; - meilisearch_url?: MeilisearchUrl; - [k: string]: unknown; -} -/** - * A history of steps taken and their results - */ -export interface History { - timeline: Timeline; - current_index: CurrentIndex; - [k: string]: unknown; -} -/** - * A point in history, a list of which make up History - */ -export interface HistoryNode { - step: Step; - observation?: Observation; - depth: Depth; - deleted?: Deleted; - active?: Active; - logs?: Logs; - context_used?: ContextUsed; - [k: string]: unknown; -} -export interface Step { - name?: Name; - hide?: Hide; - description?: Description; - class_name?: ClassName; - system_message?: SystemMessage; - chat_context?: ChatContext; - manage_own_chat_context?: ManageOwnChatContext; - [k: string]: unknown; -} -export interface ChatMessage { - role: Role; - content?: Content; - name?: Name1; - summary: Summary; - function_call?: FunctionCall; - [k: string]: unknown; -} -export interface FunctionCall { - name: Name2; - arguments: Arguments; - [k: string]: unknown; -} -export interface Observation { - [k: string]: unknown; -} -/** - * A ContextItem is a single item that is stored in the ContextManager. - */ -export interface ContextItem { - description: ContextItemDescription; - content: Content1; - editing?: Editing; - editable?: Editable; - [k: string]: unknown; -} -/** - * A ContextItemDescription is a description of a ContextItem that is displayed to the user when they type '@'. - * - * The id can be used to retrieve the ContextItem from the ContextManager. - */ -export interface ContextItemDescription { - name: Name3; - description: Description1; - id: ContextItemId; - [k: string]: unknown; -} -/** - * A ContextItemId is a unique identifier for a ContextItem. - */ -export interface ContextItemId { - provider_title: ProviderTitle; - item_id: ItemId; - [k: string]: unknown; -} -export interface SlashCommandDescription { - name: Name4; - description: Description2; - [k: string]: unknown; -} -export interface SessionInfo { - session_id: SessionId; - title: Title; - date_created: DateCreated; - workspace_directory?: WorkspaceDirectory; - [k: string]: unknown; -} -export interface ContinueConfig { - system_message?: SystemMessage1; - temperature?: Temperature; - [k: string]: unknown; -} -export interface SavedContextGroups { - [k: string]: ContextItem[]; -} -export interface ContextProviderDescription { - title: Title1; - display_title: DisplayTitle; - description: Description3; - dynamic: Dynamic; - requires_query: RequiresQuery; - [k: string]: unknown; -} diff --git a/gui/src/schema/Models.d.ts b/gui/src/schema/Models.d.ts index a74c94bfd..7c1c814e6 100644 --- a/gui/src/schema/Models.d.ts +++ b/gui/src/schema/Models.d.ts @@ -71,6 +71,8 @@ export type Proxy = string; */ export type ApiKey = string; export type Saved = LLM[]; +export type Temperature1 = number; +export type SystemMessage1 = string; /** * Main class that holds the current model configuration @@ -81,7 +83,8 @@ export interface Models1 { edit?: LLM; chat?: LLM; saved?: Saved; - sdk?: ContinueSDK; + temperature?: Temperature1; + system_message?: SystemMessage1; [k: string]: unknown; } export interface LLM { @@ -117,6 +120,3 @@ export interface Headers { export interface PromptTemplates { [k: string]: unknown; } -export interface ContinueSDK { - [k: string]: unknown; -} diff --git a/gui/src/schema/History.d.ts b/gui/src/schema/PersistedSessionInfo.d.ts similarity index 52% rename from gui/src/schema/History.d.ts rename to gui/src/schema/PersistedSessionInfo.d.ts index 9b7db18a0..b513c2a84 100644 --- a/gui/src/schema/History.d.ts +++ b/gui/src/schema/PersistedSessionInfo.d.ts @@ -5,77 +5,62 @@ * and run json-schema-to-typescript to regenerate this file. */ -export type History = History1; +export type PersistedSessionInfo = PersistedSessionInfo1; +export type StepType = string; export type Name = string; -export type Hide = boolean; export type Description = string; -export type ClassName = string; -export type SystemMessage = string; -export type Role = "assistant" | "user" | "system" | "function"; -export type Content = string; -export type Name1 = string; -export type Summary = string; -export type Name2 = string; -export type Arguments = string; -export type ChatContext = ChatMessage[]; -export type ManageOwnChatContext = boolean; +export type Hide = boolean; export type Depth = number; -export type Deleted = boolean; -export type Active = boolean; +export type Title = string; +export type Message = string; +export type Observations = Observation[]; export type Logs = string[]; -export type Name3 = string; +export type History = StepDescription[]; +export type Name1 = string; export type Description1 = string; export type ProviderTitle = string; export type ItemId = string; -export type Content1 = string; +export type Content = string; export type Editing = boolean; export type Editable = boolean; -export type ContextUsed = ContextItem[]; -export type Timeline = HistoryNode[]; -export type CurrentIndex = number; +export type ContextItems = ContextItem[]; +export type Title1 = string; +export type WorkspaceDirectory = string; +export type SessionId = string; -/** - * A history of steps taken and their results - */ -export interface History1 { - timeline: Timeline; - current_index: CurrentIndex; +export interface PersistedSessionInfo1 { + session_state: SessionState; + title: Title1; + workspace_directory: WorkspaceDirectory; + session_id: SessionId; [k: string]: unknown; } /** - * A point in history, a list of which make up History + * Full session history and important state needed for autopilot to Continue */ -export interface HistoryNode { - step: Step; - observation?: Observation; +export interface SessionState { + history: History; + context_items: ContextItems; + [k: string]: unknown; +} +export interface StepDescription { + step_type: StepType; + name: Name; + description: Description; + params: Params; + hide: Hide; depth: Depth; - deleted?: Deleted; - active?: Active; + error?: ContinueError; + observations?: Observations; logs?: Logs; - context_used?: ContextUsed; [k: string]: unknown; } -export interface Step { - name?: Name; - hide?: Hide; - description?: Description; - class_name?: ClassName; - system_message?: SystemMessage; - chat_context?: ChatContext; - manage_own_chat_context?: ManageOwnChatContext; +export interface Params { [k: string]: unknown; } -export interface ChatMessage { - role: Role; - content?: Content; - name?: Name1; - summary: Summary; - function_call?: FunctionCall; - [k: string]: unknown; -} -export interface FunctionCall { - name: Name2; - arguments: Arguments; +export interface ContinueError { + title: Title; + message: Message; [k: string]: unknown; } export interface Observation { @@ -86,7 +71,7 @@ export interface Observation { */ export interface ContextItem { description: ContextItemDescription; - content: Content1; + content: Content; editing?: Editing; editable?: Editable; [k: string]: unknown; @@ -97,7 +82,7 @@ export interface ContextItem { * The id can be used to retrieve the ContextItem from the ContextManager. */ export interface ContextItemDescription { - name: Name3; + name: Name1; description: Description1; id: ContextItemId; [k: string]: unknown; diff --git a/gui/src/schema/RangeInFileWithContents.d.ts b/gui/src/schema/RangeInFileWithContents.d.ts new file mode 100644 index 000000000..ef6270f1f --- /dev/null +++ b/gui/src/schema/RangeInFileWithContents.d.ts @@ -0,0 +1,35 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type RangeInFileWithContents = RangeInFileWithContents1; +export type Filepath = string; +export type Line = number; +export type Character = number; +export type Contents = string; + +/** + * A range in a file with the contents of the range. + */ +export interface RangeInFileWithContents1 { + filepath: Filepath; + range: Range; + contents: Contents; + [k: string]: unknown; +} +/** + * A range in a file. 0-indexed. + */ +export interface Range { + start: Position; + end: Position; + [k: string]: unknown; +} +export interface Position { + line: Line; + character: Character; + [k: string]: unknown; +} diff --git a/extensions/vscode/schema/History.d.ts b/gui/src/schema/SessionState.d.ts similarity index 52% rename from extensions/vscode/schema/History.d.ts rename to gui/src/schema/SessionState.d.ts index 9b7db18a0..0fd7a8a2c 100644 --- a/extensions/vscode/schema/History.d.ts +++ b/gui/src/schema/SessionState.d.ts @@ -5,77 +5,52 @@ * and run json-schema-to-typescript to regenerate this file. */ -export type History = History1; +export type SessionState = SessionState1; +export type StepType = string; export type Name = string; -export type Hide = boolean; export type Description = string; -export type ClassName = string; -export type SystemMessage = string; -export type Role = "assistant" | "user" | "system" | "function"; -export type Content = string; -export type Name1 = string; -export type Summary = string; -export type Name2 = string; -export type Arguments = string; -export type ChatContext = ChatMessage[]; -export type ManageOwnChatContext = boolean; +export type Hide = boolean; export type Depth = number; -export type Deleted = boolean; -export type Active = boolean; +export type Title = string; +export type Message = string; +export type Observations = Observation[]; export type Logs = string[]; -export type Name3 = string; +export type History = StepDescription[]; +export type Name1 = string; export type Description1 = string; export type ProviderTitle = string; export type ItemId = string; -export type Content1 = string; +export type Content = string; export type Editing = boolean; export type Editable = boolean; -export type ContextUsed = ContextItem[]; -export type Timeline = HistoryNode[]; -export type CurrentIndex = number; +export type ContextItems = ContextItem[]; /** - * A history of steps taken and their results + * Full session history and important state needed for autopilot to Continue */ -export interface History1 { - timeline: Timeline; - current_index: CurrentIndex; +export interface SessionState1 { + history: History; + context_items: ContextItems; [k: string]: unknown; } -/** - * A point in history, a list of which make up History - */ -export interface HistoryNode { - step: Step; - observation?: Observation; +export interface StepDescription { + step_type: StepType; + name: Name; + description: Description; + params: Params; + hide: Hide; depth: Depth; - deleted?: Deleted; - active?: Active; + error?: ContinueError; + observations?: Observations; logs?: Logs; - context_used?: ContextUsed; [k: string]: unknown; } -export interface Step { - name?: Name; - hide?: Hide; - description?: Description; - class_name?: ClassName; - system_message?: SystemMessage; - chat_context?: ChatContext; - manage_own_chat_context?: ManageOwnChatContext; +export interface Params { [k: string]: unknown; } -export interface ChatMessage { - role: Role; - content?: Content; - name?: Name1; - summary: Summary; - function_call?: FunctionCall; - [k: string]: unknown; -} -export interface FunctionCall { - name: Name2; - arguments: Arguments; +export interface ContinueError { + title: Title; + message: Message; [k: string]: unknown; } export interface Observation { @@ -86,7 +61,7 @@ export interface Observation { */ export interface ContextItem { description: ContextItemDescription; - content: Content1; + content: Content; editing?: Editing; editable?: Editable; [k: string]: unknown; @@ -97,7 +72,7 @@ export interface ContextItem { * The id can be used to retrieve the ContextItem from the ContextManager. */ export interface ContextItemDescription { - name: Name3; + name: Name1; description: Description1; id: ContextItemId; [k: string]: unknown; diff --git a/gui/src/schema/SessionUpdate.d.ts b/gui/src/schema/SessionUpdate.d.ts new file mode 100644 index 000000000..ef17dc8e0 --- /dev/null +++ b/gui/src/schema/SessionUpdate.d.ts @@ -0,0 +1,61 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type SessionUpdate = SessionUpdate1; +export type Index = number; +export type Update = DeltaStep | SetStep | SessionUpdate1; +export type Name = string; +export type Description = string; +export type Observations = Observation[]; +export type Logs = string[]; +export type StepType = string; +export type Name1 = string; +export type Description1 = string; +export type Hide = boolean; +export type Depth = number; +export type Title = string; +export type Message = string; +export type Observations1 = Observation[]; +export type Logs1 = string[]; +export type Stop = boolean; + +export interface SessionUpdate1 { + index: Index; + update: Update; + stop?: Stop; + [k: string]: unknown; +} +export interface DeltaStep { + name?: Name; + description?: Description; + observations?: Observations; + logs?: Logs; + [k: string]: unknown; +} +export interface Observation { + [k: string]: unknown; +} +export interface SetStep { + step_type?: StepType; + name?: Name1; + description?: Description1; + params?: Params; + hide?: Hide; + depth?: Depth; + error?: ContinueError; + observations?: Observations1; + logs?: Logs1; + [k: string]: unknown; +} +export interface Params { + [k: string]: unknown; +} +export interface ContinueError { + title: Title; + message: Message; + [k: string]: unknown; +} diff --git a/gui/src/schema/SlashCommandDescription.d.ts b/gui/src/schema/SlashCommandDescription.d.ts new file mode 100644 index 000000000..2c7a45ae0 --- /dev/null +++ b/gui/src/schema/SlashCommandDescription.d.ts @@ -0,0 +1,16 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type SlashCommandDescription = SlashCommandDescription1; +export type Name = string; +export type Description = string; + +export interface SlashCommandDescription1 { + name: Name; + description: Description; + [k: string]: unknown; +} diff --git a/gui/src/vscode/index.ts b/gui/src/vscode/index.ts index 08cdce0b7..98aecbece 100644 --- a/gui/src/vscode/index.ts +++ b/gui/src/vscode/index.ts @@ -1,9 +1,8 @@ -import { useEffect, useState } from "react"; import "vscode-webview"; declare const vscode: any; -function _postVscMessage(type: string, data: any) { +function _postToIde(type: string, data: any) { if (typeof vscode === "undefined") { if (localStorage.getItem("ide") === "jetbrains" || true) { if ((window as any).postIntellijMessage === undefined) { @@ -27,14 +26,14 @@ function _postVscMessage(type: string, data: any) { }); } -export function postVscMessage(type: string, data: any, attempt: number = 0) { +export function postToIde(type: string, data: any, attempt: number = 0) { try { - _postVscMessage(type, data); + _postToIde(type, data); } catch (error) { if (attempt < 5) { console.log(`Attempt ${attempt} failed. Retrying...`); setTimeout( - () => postVscMessage(type, data, attempt + 1), + () => postToIde(type, data, attempt + 1), Math.pow(2, attempt) * 1000 ); } else { @@ -43,7 +42,7 @@ export function postVscMessage(type: string, data: any, attempt: number = 0) { } } -export async function vscRequest(type: string, data: any): Promise { +export async function ideRequest(type: string, data: any): Promise { return new Promise((resolve) => { const handler = (event: any) => { if (event.data.type === type) { @@ -52,26 +51,13 @@ export async function vscRequest(type: string, data: any): Promise { } }; window.addEventListener("message", handler); - postVscMessage(type, data); + postToIde(type, data); }); } -export function useVscMessageValue( - messageType: string | string[], - initialValue?: any -) { - const [value, setValue] = useState(initialValue); - window.addEventListener("message", (event) => { - if (event.data.type === messageType) { - setValue(event.data.value); - } - }); - return [value, setValue]; -} - export async function withProgress(title: string, fn: () => Promise) { - postVscMessage("withProgress", { title, done: false }); + postToIde("withProgress", { title, done: false }); return fn().finally(() => { - postVscMessage("withProgress", { title, done: true }); + postToIde("withProgress", { title, done: true }); }); } diff --git a/schema/json/ContextItemId.json b/schema/json/ContextItemId.json new file mode 100644 index 000000000..569eec865 --- /dev/null +++ b/schema/json/ContextItemId.json @@ -0,0 +1,25 @@ +{ + "title": "ContextItemId", + "$ref": "#/definitions/continuedev__core__main__ContextItemId", + "definitions": { + "continuedev__core__main__ContextItemId": { + "title": "ContextItemId", + "description": "A ContextItemId is a unique identifier for a ContextItem.", + "type": "object", + "properties": { + "provider_title": { + "title": "Provider Title", + "type": "string" + }, + "item_id": { + "title": "Item Id", + "type": "string" + } + }, + "required": [ + "provider_title", + "item_id" + ] + } + } +} \ No newline at end of file diff --git a/schema/json/ContextProviderDescription.json b/schema/json/ContextProviderDescription.json new file mode 100644 index 000000000..b68709646 --- /dev/null +++ b/schema/json/ContextProviderDescription.json @@ -0,0 +1,39 @@ +{ + "title": "ContextProviderDescription", + "$ref": "#/definitions/continuedev__core__main__ContextProviderDescription", + "definitions": { + "continuedev__core__main__ContextProviderDescription": { + "title": "ContextProviderDescription", + "type": "object", + "properties": { + "title": { + "title": "Title", + "type": "string" + }, + "display_title": { + "title": "Display Title", + "type": "string" + }, + "description": { + "title": "Description", + "type": "string" + }, + "dynamic": { + "title": "Dynamic", + "type": "boolean" + }, + "requires_query": { + "title": "Requires Query", + "type": "boolean" + } + }, + "required": [ + "title", + "display_title", + "description", + "dynamic", + "requires_query" + ] + } + } +} \ No newline at end of file diff --git a/schema/json/ContinueConfig.json b/schema/json/ContinueConfig.json index 57dcddab8..d67cefc65 100644 --- a/schema/json/ContinueConfig.json +++ b/schema/json/ContinueConfig.json @@ -70,6 +70,7 @@ }, "description": { "title": "Description", + "default": "", "type": "string" }, "class_name": { @@ -204,11 +205,6 @@ "model" ] }, - "continuedev__core__models__ContinueSDK": { - "title": "ContinueSDK", - "type": "object", - "properties": {} - }, "Models": { "title": "Models", "description": "Main class that holds the current model configuration", @@ -234,8 +230,13 @@ "$ref": "#/definitions/LLM" } }, - "sdk": { - "$ref": "#/definitions/continuedev__core__models__ContinueSDK" + "temperature": { + "title": "Temperature", + "type": "number" + }, + "system_message": { + "title": "System Message", + "type": "string" } }, "required": [ @@ -298,12 +299,6 @@ "type": "object", "properties": {} }, - "continuedev__core__context__ContinueSDK": { - "title": "ContinueSDK", - "description": "To avoid circular imports", - "type": "object", - "properties": {} - }, "ContextItemId": { "title": "ContextItemId", "description": "A ContextItemId is a unique identifier for a ContextItem.", @@ -384,14 +379,8 @@ "description": "The title of the ContextProvider. This is what must be typed in the input to trigger the ContextProvider.", "type": "string" }, - "sdk": { - "title": "Sdk", - "description": "The ContinueSDK instance accessible by the ContextProvider", - "allOf": [ - { - "$ref": "#/definitions/continuedev__core__context__ContinueSDK" - } - ] + "ide": { + "title": "Ide" }, "display_title": { "title": "Display Title", @@ -510,7 +499,9 @@ }, "edit": null, "chat": null, - "saved": [] + "saved": [], + "temperature": null, + "system_message": null }, "allOf": [ { diff --git a/schema/json/ContinueError.json b/schema/json/ContinueError.json new file mode 100644 index 000000000..179c8c9e3 --- /dev/null +++ b/schema/json/ContinueError.json @@ -0,0 +1,24 @@ +{ + "title": "ContinueError", + "$ref": "#/definitions/continuedev__core__main__ContinueError", + "definitions": { + "continuedev__core__main__ContinueError": { + "title": "ContinueError", + "type": "object", + "properties": { + "title": { + "title": "Title", + "type": "string" + }, + "message": { + "title": "Message", + "type": "string" + } + }, + "required": [ + "title", + "message" + ] + } + } +} \ No newline at end of file diff --git a/schema/json/FullState.json b/schema/json/FullState.json deleted file mode 100644 index 33cf4ad7f..000000000 --- a/schema/json/FullState.json +++ /dev/null @@ -1,413 +0,0 @@ -{ - "title": "FullState", - "$ref": "#/definitions/continuedev__core__main__FullState", - "definitions": { - "FunctionCall": { - "title": "FunctionCall", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "arguments": { - "title": "Arguments", - "type": "string" - } - }, - "required": [ - "name", - "arguments" - ] - }, - "ChatMessage": { - "title": "ChatMessage", - "type": "object", - "properties": { - "role": { - "title": "Role", - "enum": [ - "assistant", - "user", - "system", - "function" - ], - "type": "string" - }, - "content": { - "title": "Content", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "summary": { - "title": "Summary", - "type": "string" - }, - "function_call": { - "$ref": "#/definitions/FunctionCall" - } - }, - "required": [ - "role", - "summary" - ] - }, - "Step": { - "title": "Step", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "hide": { - "title": "Hide", - "default": false, - "type": "boolean" - }, - "description": { - "title": "Description", - "type": "string" - }, - "class_name": { - "title": "Class Name", - "default": "Step", - "type": "string" - }, - "system_message": { - "title": "System Message", - "type": "string" - }, - "chat_context": { - "title": "Chat Context", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/ChatMessage" - } - }, - "manage_own_chat_context": { - "title": "Manage Own Chat Context", - "default": false, - "type": "boolean" - } - } - }, - "Observation": { - "title": "Observation", - "type": "object", - "properties": {} - }, - "ContextItemId": { - "title": "ContextItemId", - "description": "A ContextItemId is a unique identifier for a ContextItem.", - "type": "object", - "properties": { - "provider_title": { - "title": "Provider Title", - "type": "string" - }, - "item_id": { - "title": "Item Id", - "type": "string" - } - }, - "required": [ - "provider_title", - "item_id" - ] - }, - "ContextItemDescription": { - "title": "ContextItemDescription", - "description": "A ContextItemDescription is a description of a ContextItem that is displayed to the user when they type '@'.\n\nThe id can be used to retrieve the ContextItem from the ContextManager.", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "id": { - "$ref": "#/definitions/ContextItemId" - } - }, - "required": [ - "name", - "description", - "id" - ] - }, - "ContextItem": { - "title": "ContextItem", - "description": "A ContextItem is a single item that is stored in the ContextManager.", - "type": "object", - "properties": { - "description": { - "$ref": "#/definitions/ContextItemDescription" - }, - "content": { - "title": "Content", - "type": "string" - }, - "editing": { - "title": "Editing", - "default": false, - "type": "boolean" - }, - "editable": { - "title": "Editable", - "default": false, - "type": "boolean" - } - }, - "required": [ - "description", - "content" - ] - }, - "HistoryNode": { - "title": "HistoryNode", - "description": "A point in history, a list of which make up History", - "type": "object", - "properties": { - "step": { - "$ref": "#/definitions/Step" - }, - "observation": { - "$ref": "#/definitions/Observation" - }, - "depth": { - "title": "Depth", - "type": "integer" - }, - "deleted": { - "title": "Deleted", - "default": false, - "type": "boolean" - }, - "active": { - "title": "Active", - "default": true, - "type": "boolean" - }, - "logs": { - "title": "Logs", - "default": [], - "type": "array", - "items": { - "type": "string" - } - }, - "context_used": { - "title": "Context Used", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/ContextItem" - } - } - }, - "required": [ - "step", - "depth" - ] - }, - "History": { - "title": "History", - "description": "A history of steps taken and their results", - "type": "object", - "properties": { - "timeline": { - "title": "Timeline", - "type": "array", - "items": { - "$ref": "#/definitions/HistoryNode" - } - }, - "current_index": { - "title": "Current Index", - "type": "integer" - } - }, - "required": [ - "timeline", - "current_index" - ] - }, - "SlashCommandDescription": { - "title": "SlashCommandDescription", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - } - }, - "required": [ - "name", - "description" - ] - }, - "SessionInfo": { - "title": "SessionInfo", - "type": "object", - "properties": { - "session_id": { - "title": "Session Id", - "type": "string" - }, - "title": { - "title": "Title", - "type": "string" - }, - "date_created": { - "title": "Date Created", - "type": "string" - }, - "workspace_directory": { - "title": "Workspace Directory", - "type": "string" - } - }, - "required": [ - "session_id", - "title", - "date_created" - ] - }, - "ContinueConfig": { - "title": "ContinueConfig", - "type": "object", - "properties": { - "system_message": { - "title": "System Message", - "type": "string" - }, - "temperature": { - "title": "Temperature", - "type": "number" - } - } - }, - "ContextProviderDescription": { - "title": "ContextProviderDescription", - "type": "object", - "properties": { - "title": { - "title": "Title", - "type": "string" - }, - "display_title": { - "title": "Display Title", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "dynamic": { - "title": "Dynamic", - "type": "boolean" - }, - "requires_query": { - "title": "Requires Query", - "type": "boolean" - } - }, - "required": [ - "title", - "display_title", - "description", - "dynamic", - "requires_query" - ] - }, - "continuedev__core__main__FullState": { - "title": "FullState", - "description": "A full state of the program, including the history", - "type": "object", - "properties": { - "history": { - "$ref": "#/definitions/History" - }, - "active": { - "title": "Active", - "type": "boolean" - }, - "user_input_queue": { - "title": "User Input Queue", - "type": "array", - "items": { - "type": "string" - } - }, - "slash_commands": { - "title": "Slash Commands", - "type": "array", - "items": { - "$ref": "#/definitions/SlashCommandDescription" - } - }, - "adding_highlighted_code": { - "title": "Adding Highlighted Code", - "type": "boolean" - }, - "selected_context_items": { - "title": "Selected Context Items", - "type": "array", - "items": { - "$ref": "#/definitions/ContextItem" - } - }, - "session_info": { - "$ref": "#/definitions/SessionInfo" - }, - "config": { - "$ref": "#/definitions/ContinueConfig" - }, - "saved_context_groups": { - "title": "Saved Context Groups", - "default": {}, - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "$ref": "#/definitions/ContextItem" - } - } - }, - "context_providers": { - "title": "Context Providers", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/ContextProviderDescription" - } - }, - "meilisearch_url": { - "title": "Meilisearch Url", - "type": "string" - } - }, - "required": [ - "history", - "active", - "user_input_queue", - "slash_commands", - "adding_highlighted_code", - "selected_context_items", - "config" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/Models.json b/schema/json/Models.json index 361ae9ebf..10f4f8546 100644 --- a/schema/json/Models.json +++ b/schema/json/Models.json @@ -110,11 +110,6 @@ "model" ] }, - "ContinueSDK": { - "title": "ContinueSDK", - "type": "object", - "properties": {} - }, "continuedev__core__models__Models": { "title": "Models", "description": "Main class that holds the current model configuration", @@ -140,8 +135,13 @@ "$ref": "#/definitions/LLM" } }, - "sdk": { - "$ref": "#/definitions/ContinueSDK" + "temperature": { + "title": "Temperature", + "type": "number" + }, + "system_message": { + "title": "System Message", + "type": "string" } }, "required": [ diff --git a/schema/json/HistoryNode.json b/schema/json/PersistedSessionInfo.json similarity index 63% rename from schema/json/HistoryNode.json rename to schema/json/PersistedSessionInfo.json index 262875732..370ed0c01 100644 --- a/schema/json/HistoryNode.json +++ b/schema/json/PersistedSessionInfo.json @@ -1,106 +1,87 @@ { - "title": "HistoryNode", - "$ref": "#/definitions/continuedev__core__main__HistoryNode", + "title": "PersistedSessionInfo", + "$ref": "#/definitions/continuedev__server__sessions__PersistedSessionInfo", "definitions": { - "FunctionCall": { - "title": "FunctionCall", + "ContinueError": { + "title": "ContinueError", "type": "object", "properties": { - "name": { - "title": "Name", + "title": { + "title": "Title", "type": "string" }, - "arguments": { - "title": "Arguments", + "message": { + "title": "Message", "type": "string" } }, "required": [ - "name", - "arguments" + "title", + "message" ] }, - "ChatMessage": { - "title": "ChatMessage", - "type": "object", - "properties": { - "role": { - "title": "Role", - "enum": [ - "assistant", - "user", - "system", - "function" - ], - "type": "string" - }, - "content": { - "title": "Content", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "summary": { - "title": "Summary", - "type": "string" - }, - "function_call": { - "$ref": "#/definitions/FunctionCall" - } - }, - "required": [ - "role", - "summary" - ] - }, - "Step": { - "title": "Step", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "hide": { - "title": "Hide", - "default": false, - "type": "boolean" - }, - "description": { - "title": "Description", - "type": "string" - }, - "class_name": { - "title": "Class Name", - "default": "Step", - "type": "string" - }, - "system_message": { - "title": "System Message", - "type": "string" - }, - "chat_context": { - "title": "Chat Context", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/ChatMessage" - } - }, - "manage_own_chat_context": { - "title": "Manage Own Chat Context", - "default": false, - "type": "boolean" - } - } - }, "Observation": { "title": "Observation", "type": "object", "properties": {} }, + "StepDescription": { + "title": "StepDescription", + "type": "object", + "properties": { + "step_type": { + "title": "Step Type", + "type": "string" + }, + "name": { + "title": "Name", + "type": "string" + }, + "description": { + "title": "Description", + "type": "string" + }, + "params": { + "title": "Params", + "type": "object" + }, + "hide": { + "title": "Hide", + "type": "boolean" + }, + "depth": { + "title": "Depth", + "type": "integer" + }, + "error": { + "$ref": "#/definitions/ContinueError" + }, + "observations": { + "title": "Observations", + "default": [], + "type": "array", + "items": { + "$ref": "#/definitions/Observation" + } + }, + "logs": { + "title": "Logs", + "default": [], + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "step_type", + "name", + "description", + "params", + "hide", + "depth" + ] + }, "ContextItemId": { "title": "ContextItemId", "description": "A ContextItemId is a unique identifier for a ContextItem.", @@ -171,42 +152,20 @@ "content" ] }, - "continuedev__core__main__HistoryNode": { - "title": "HistoryNode", - "description": "A point in history, a list of which make up History", + "SessionState": { + "title": "SessionState", + "description": "Full session history and important state needed for autopilot to Continue", "type": "object", "properties": { - "step": { - "$ref": "#/definitions/Step" - }, - "observation": { - "$ref": "#/definitions/Observation" - }, - "depth": { - "title": "Depth", - "type": "integer" - }, - "deleted": { - "title": "Deleted", - "default": false, - "type": "boolean" - }, - "active": { - "title": "Active", - "default": true, - "type": "boolean" - }, - "logs": { - "title": "Logs", - "default": [], + "history": { + "title": "History", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/StepDescription" } }, - "context_used": { - "title": "Context Used", - "default": [], + "context_items": { + "title": "Context Items", "type": "array", "items": { "$ref": "#/definitions/ContextItem" @@ -214,8 +173,35 @@ } }, "required": [ - "step", - "depth" + "history", + "context_items" + ] + }, + "continuedev__server__sessions__PersistedSessionInfo": { + "title": "PersistedSessionInfo", + "type": "object", + "properties": { + "session_state": { + "$ref": "#/definitions/SessionState" + }, + "title": { + "title": "Title", + "type": "string" + }, + "workspace_directory": { + "title": "Workspace Directory", + "type": "string" + }, + "session_id": { + "title": "Session Id", + "type": "string" + } + }, + "required": [ + "session_state", + "title", + "workspace_directory", + "session_id" ] } } diff --git a/schema/json/RangeInFileWithContents.json b/schema/json/RangeInFileWithContents.json new file mode 100644 index 000000000..444161eb6 --- /dev/null +++ b/schema/json/RangeInFileWithContents.json @@ -0,0 +1,64 @@ +{ + "title": "RangeInFileWithContents", + "$ref": "#/definitions/continuedev__models__filesystem__RangeInFileWithContents", + "definitions": { + "Position": { + "title": "Position", + "type": "object", + "properties": { + "line": { + "title": "Line", + "type": "integer" + }, + "character": { + "title": "Character", + "type": "integer" + } + }, + "required": [ + "line", + "character" + ] + }, + "Range": { + "title": "Range", + "description": "A range in a file. 0-indexed.", + "type": "object", + "properties": { + "start": { + "$ref": "#/definitions/Position" + }, + "end": { + "$ref": "#/definitions/Position" + } + }, + "required": [ + "start", + "end" + ] + }, + "continuedev__models__filesystem__RangeInFileWithContents": { + "title": "RangeInFileWithContents", + "description": "A range in a file with the contents of the range.", + "type": "object", + "properties": { + "filepath": { + "title": "Filepath", + "type": "string" + }, + "range": { + "$ref": "#/definitions/Range" + }, + "contents": { + "title": "Contents", + "type": "string" + } + }, + "required": [ + "filepath", + "range", + "contents" + ] + } + } +} \ No newline at end of file diff --git a/schema/json/History.json b/schema/json/SessionState.json similarity index 55% rename from schema/json/History.json rename to schema/json/SessionState.json index c73a86858..e2f1fc837 100644 --- a/schema/json/History.json +++ b/schema/json/SessionState.json @@ -1,106 +1,87 @@ { - "title": "History", - "$ref": "#/definitions/continuedev__core__main__History", + "title": "SessionState", + "$ref": "#/definitions/continuedev__core__main__SessionState", "definitions": { - "FunctionCall": { - "title": "FunctionCall", + "ContinueError": { + "title": "ContinueError", "type": "object", "properties": { - "name": { - "title": "Name", + "title": { + "title": "Title", "type": "string" }, - "arguments": { - "title": "Arguments", + "message": { + "title": "Message", "type": "string" } }, "required": [ - "name", - "arguments" + "title", + "message" ] }, - "ChatMessage": { - "title": "ChatMessage", - "type": "object", - "properties": { - "role": { - "title": "Role", - "enum": [ - "assistant", - "user", - "system", - "function" - ], - "type": "string" - }, - "content": { - "title": "Content", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "summary": { - "title": "Summary", - "type": "string" - }, - "function_call": { - "$ref": "#/definitions/FunctionCall" - } - }, - "required": [ - "role", - "summary" - ] - }, - "Step": { - "title": "Step", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "hide": { - "title": "Hide", - "default": false, - "type": "boolean" - }, - "description": { - "title": "Description", - "type": "string" - }, - "class_name": { - "title": "Class Name", - "default": "Step", - "type": "string" - }, - "system_message": { - "title": "System Message", - "type": "string" - }, - "chat_context": { - "title": "Chat Context", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/ChatMessage" - } - }, - "manage_own_chat_context": { - "title": "Manage Own Chat Context", - "default": false, - "type": "boolean" - } - } - }, "Observation": { "title": "Observation", "type": "object", "properties": {} }, + "StepDescription": { + "title": "StepDescription", + "type": "object", + "properties": { + "step_type": { + "title": "Step Type", + "type": "string" + }, + "name": { + "title": "Name", + "type": "string" + }, + "description": { + "title": "Description", + "type": "string" + }, + "params": { + "title": "Params", + "type": "object" + }, + "hide": { + "title": "Hide", + "type": "boolean" + }, + "depth": { + "title": "Depth", + "type": "integer" + }, + "error": { + "$ref": "#/definitions/ContinueError" + }, + "observations": { + "title": "Observations", + "default": [], + "type": "array", + "items": { + "$ref": "#/definitions/Observation" + } + }, + "logs": { + "title": "Logs", + "default": [], + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "step_type", + "name", + "description", + "params", + "hide", + "depth" + ] + }, "ContextItemId": { "title": "ContextItemId", "description": "A ContextItemId is a unique identifier for a ContextItem.", @@ -171,42 +152,20 @@ "content" ] }, - "HistoryNode": { - "title": "HistoryNode", - "description": "A point in history, a list of which make up History", + "continuedev__core__main__SessionState": { + "title": "SessionState", + "description": "Full session history and important state needed for autopilot to Continue", "type": "object", "properties": { - "step": { - "$ref": "#/definitions/Step" - }, - "observation": { - "$ref": "#/definitions/Observation" - }, - "depth": { - "title": "Depth", - "type": "integer" - }, - "deleted": { - "title": "Deleted", - "default": false, - "type": "boolean" - }, - "active": { - "title": "Active", - "default": true, - "type": "boolean" - }, - "logs": { - "title": "Logs", - "default": [], + "history": { + "title": "History", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/StepDescription" } }, - "context_used": { - "title": "Context Used", - "default": [], + "context_items": { + "title": "Context Items", "type": "array", "items": { "$ref": "#/definitions/ContextItem" @@ -214,30 +173,8 @@ } }, "required": [ - "step", - "depth" - ] - }, - "continuedev__core__main__History": { - "title": "History", - "description": "A history of steps taken and their results", - "type": "object", - "properties": { - "timeline": { - "title": "Timeline", - "type": "array", - "items": { - "$ref": "#/definitions/HistoryNode" - } - }, - "current_index": { - "title": "Current Index", - "type": "integer" - } - }, - "required": [ - "timeline", - "current_index" + "history", + "context_items" ] } } diff --git a/schema/json/SessionUpdate.json b/schema/json/SessionUpdate.json new file mode 100644 index 000000000..c2b71ee16 --- /dev/null +++ b/schema/json/SessionUpdate.json @@ -0,0 +1,136 @@ +{ + "title": "SessionUpdate", + "$ref": "#/definitions/continuedev__core__main__SessionUpdate", + "definitions": { + "Observation": { + "title": "Observation", + "type": "object", + "properties": {} + }, + "DeltaStep": { + "title": "DeltaStep", + "type": "object", + "properties": { + "name": { + "title": "Name", + "type": "string" + }, + "description": { + "title": "Description", + "type": "string" + }, + "observations": { + "title": "Observations", + "type": "array", + "items": { + "$ref": "#/definitions/Observation" + } + }, + "logs": { + "title": "Logs", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ContinueError": { + "title": "ContinueError", + "type": "object", + "properties": { + "title": { + "title": "Title", + "type": "string" + }, + "message": { + "title": "Message", + "type": "string" + } + }, + "required": [ + "title", + "message" + ] + }, + "SetStep": { + "title": "SetStep", + "type": "object", + "properties": { + "step_type": { + "title": "Step Type", + "type": "string" + }, + "name": { + "title": "Name", + "type": "string" + }, + "description": { + "title": "Description", + "type": "string" + }, + "params": { + "title": "Params", + "type": "object" + }, + "hide": { + "title": "Hide", + "type": "boolean" + }, + "depth": { + "title": "Depth", + "type": "integer" + }, + "error": { + "$ref": "#/definitions/ContinueError" + }, + "observations": { + "title": "Observations", + "type": "array", + "items": { + "$ref": "#/definitions/Observation" + } + }, + "logs": { + "title": "Logs", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "continuedev__core__main__SessionUpdate": { + "title": "SessionUpdate", + "type": "object", + "properties": { + "index": { + "title": "Index", + "type": "integer" + }, + "update": { + "title": "Update", + "anyOf": [ + { + "$ref": "#/definitions/DeltaStep" + }, + { + "$ref": "#/definitions/SetStep" + }, + { + "$ref": "#/definitions/continuedev__core__main__SessionUpdate" + } + ] + }, + "stop": { + "title": "Stop", + "type": "boolean" + } + }, + "required": [ + "index", + "update" + ] + } + } +} \ No newline at end of file diff --git a/schema/json/SlashCommandDescription.json b/schema/json/SlashCommandDescription.json new file mode 100644 index 000000000..941b7f4b0 --- /dev/null +++ b/schema/json/SlashCommandDescription.json @@ -0,0 +1,24 @@ +{ + "title": "SlashCommandDescription", + "$ref": "#/definitions/continuedev__core__main__SlashCommandDescription", + "definitions": { + "continuedev__core__main__SlashCommandDescription": { + "title": "SlashCommandDescription", + "type": "object", + "properties": { + "name": { + "title": "Name", + "type": "string" + }, + "description": { + "title": "Description", + "type": "string" + } + }, + "required": [ + "name", + "description" + ] + } + } +} \ No newline at end of file diff --git a/server/config.py b/server/config.py index 29c05a6c4..513fee2c7 100644 --- a/server/config.py +++ b/server/config.py @@ -26,7 +26,7 @@ from continuedev.plugins.steps.share_session import ShareSessionStep config = ContinueConfig( allow_anonymous_telemetry=True, models=Models( - default=OpenAIFreeTrial(api_key="", model="gpt-4"), + default=OpenAIFreeTrial(api_key="", model="gpt-4", title="GPT-4"), summarize=OpenAIFreeTrial(api_key="", model="gpt-3.5-turbo"), ), system_message=None, diff --git a/server/continuedev/__init__.py b/server/continuedev/__init__.py index 1b4776a86..9a26baeea 100644 --- a/server/continuedev/__init__.py +++ b/server/continuedev/__init__.py @@ -3,7 +3,8 @@ from typing import Union from .core.config import ContinueConfig from .core.main import Step -from .headless import start_headless_session + +# from .headless import start_headless_session def run(step_or_config: Union[Step, ContinueConfig]): @@ -14,6 +15,6 @@ def run(step_or_config: Union[Step, ContinueConfig]): config.steps_on_startup = [step_or_config] loop = asyncio.get_event_loop() - loop.run_until_complete(start_headless_session(config=config)) + # loop.run_until_complete(start_headless_session(config=config)) tasks = asyncio.all_tasks(loop) loop.run_until_complete(asyncio.gather(*tasks)) diff --git a/server/continuedev/__main__.py b/server/continuedev/__main__.py index caaba1174..429f1cb6b 100644 --- a/server/continuedev/__main__.py +++ b/server/continuedev/__main__.py @@ -8,6 +8,17 @@ from .server.main import run_server app = typer.Typer() +CONTINUE_ASCII = r""" + +_________ _____ _____ +__ ____/______ _______ __ /____(_)_______ ____ _______ +_ / _ __ \__ __ \_ __/__ / __ __ \_ / / /_ _ \ +/ /___ / /_/ /_ / / // /_ _ / _ / / // /_/ / / __/ +\____/ \____/ /_/ /_/ \__/ /_/ /_/ /_/ \__,_/ \___/ + +""" + + @app.command() def main( port: int = typer.Option(65432, help="server port"), @@ -23,6 +34,7 @@ def main( if headless: run(config) else: + print(CONTINUE_ASCII) run_server(port=port, host=host, meilisearch_url=meilisearch_url) diff --git a/server/continuedev/core/abstract_sdk.py b/server/continuedev/core/abstract_sdk.py deleted file mode 100644 index fdb99d474..000000000 --- a/server/continuedev/core/abstract_sdk.py +++ /dev/null @@ -1,82 +0,0 @@ -from abc import ABC, abstractmethod -from typing import Coroutine, List, Union - -from ..models.filesystem_edit import FileSystemEdit -from .config import ContinueConfig -from .main import ChatMessage, History, Step -from .observation import Observation - -""" -[[Generate]] -[Prompt] -Write an abstract class AbstractContinueSDK(ABC) that has all of the same methods as the ContinueSDK class, but without any implementation. -All methods should be documented with the same docstrings as the ContinueSDK class and have the same types. -[Context] -./sdk.py:ContinueSDK -""" - - -class AbstractContinueSDK(ABC): - """The SDK provided as parameters to a step""" - - @property - def history(self) -> History: - return self.__autopilot.history - - @abstractmethod - async def _ensure_absolute_path(self, path: str) -> str: - pass - - @abstractmethod - async def run_step(self, step: Step) -> Coroutine[Observation, None, None]: - pass - - @abstractmethod - async def apply_filesystem_edit(self, edit: FileSystemEdit): - pass - - @abstractmethod - async def wait_for_user_input(self) -> str: - pass - - @abstractmethod - async def wait_for_user_confirmation(self, prompt: str): - pass - - @abstractmethod - async def run(self, commands: Union[List[str], str], cwd: str = None): - pass - - @abstractmethod - async def edit_file(self, filename: str, prompt: str): - pass - - @abstractmethod - async def append_to_file(self, filename: str, content: str): - pass - - @abstractmethod - async def add_file(self, filename: str, content: Union[str, None]): - pass - - @abstractmethod - async def delete_file(self, filename: str): - pass - - @abstractmethod - async def add_directory(self, path: str): - pass - - @abstractmethod - async def delete_directory(self, path: str): - pass - - config: ContinueConfig - - @abstractmethod - def set_loading_message(self, message: str): - pass - - @abstractmethod - async def get_chat_context(self) -> List[ChatMessage]: - pass diff --git a/server/continuedev/core/autopilot.py b/server/continuedev/core/autopilot.py index 7fcedf04f..ea1451f0b 100644 --- a/server/continuedev/core/autopilot.py +++ b/server/continuedev/core/autopilot.py @@ -1,54 +1,50 @@ import json import os -import time import traceback import uuid -from functools import cached_property -from typing import Callable, Coroutine, Dict, List, Optional +from typing import Dict, List, Optional -import redbaron from aiohttp import ClientPayloadError from openai import error as openai_errors -from pydantic import root_validator +import inspect +from ..libs.util.strings import remove_quotes_and_escapes from ..libs.llm.prompts.chat import template_alpaca_messages -from ..libs.util.create_async_task import create_async_task +from .context import ContextManager from ..libs.util.devdata import dev_data_logger -from ..libs.util.edit_config import edit_config_property from ..libs.util.logging import logger from ..libs.util.paths import getSavedContextGroupsPath -from ..libs.util.queue import AsyncSubscriptionQueue -from ..libs.util.strings import remove_quotes_and_escapes from ..libs.util.telemetry import posthog_logger from ..libs.util.traceback.traceback_parsers import ( get_javascript_traceback, get_python_traceback, ) from ..models.filesystem import RangeInFileWithContents -from ..models.filesystem_edit import FileEditWithFullContents -from ..models.main import ContinueBaseModel -from ..plugins.context_providers.file import FileContextProvider -from ..plugins.context_providers.highlighted_code import HighlightedCodeContextProvider +from ..server.protocols.gui_protocol import AbstractGUIProtocolServer +from ..server.protocols.ide_protocol import AbstractIdeProtocolServer from ..plugins.policies.default import DefaultPolicy from ..plugins.steps.on_traceback import DefaultOnTracebackStep -from ..server.ide_protocol import AbstractIdeProtocolServer -from ..server.meilisearch_server import get_meilisearch_url, stop_meilisearch + from .config import ContinueConfig -from .context import ContextManager from .main import ( + AutopilotGenerator, + AutopilotGeneratorOutput, Context, ContextItem, ContinueCustomException, - FullState, - History, - HistoryNode, + ContinueError, Policy, - SessionInfo, + SessionState, + SetStep, Step, + UpdateStep, + SessionUpdate, + StepDescription, + DeltaStep, ) -from .observation import InternalErrorObservation, Observation +from .observation import Observation from .sdk import ContinueSDK -from .steps import DisplayErrorStep, ManualEditStep, ReversibleStep, UserInputStep +from .steps import UserInputStep def get_error_title(e: Exception) -> str: @@ -78,315 +74,71 @@ def get_error_title(e: Exception) -> str: return e.__str__() or e.__repr__() -class Autopilot(ContinueBaseModel): +class Autopilot: + session_state: SessionState ide: AbstractIdeProtocolServer + gui: AbstractGUIProtocolServer + config: ContinueConfig + context_manager: ContextManager - policy: Policy = DefaultPolicy() - history: History = History.from_empty() context: Context = Context() - full_state: Optional[FullState] = None - session_info: Optional[SessionInfo] = None - context_manager: ContextManager = ContextManager() - continue_sdk: ContinueSDK = None - _on_update_callbacks: List[Callable[[FullState], None]] = [] - - _active: bool = False - _should_halt: bool = False - _main_user_input_queue: List[str] = [] - - _user_input_queue = AsyncSubscriptionQueue() - _retry_queue = AsyncSubscriptionQueue() - - started: bool = False - - async def load( - self, config: Optional[ContinueConfig] = None, only_reloading: bool = False - ): - self.continue_sdk = await ContinueSDK.create(self, config=config) - if override_policy := self.continue_sdk.config.policy_override: - self.policy = override_policy - - # Load documents into the search index - logger.debug("Starting context manager") - await self.context_manager.start( - self.continue_sdk.config.context_providers - + [ - HighlightedCodeContextProvider(ide=self.ide), - FileContextProvider(workspace_dir=self.ide.workspace_directory), - ], - self.continue_sdk, - only_reloading=only_reloading, - ) - - async def start( + def __init__( self, - full_state: Optional[FullState] = None, - config: Optional[ContinueConfig] = None, + session_state: SessionState, + ide: AbstractIdeProtocolServer, + gui: AbstractGUIProtocolServer, + config: ContinueConfig, + context_manager: ContextManager, ): - await self.load(config=config, only_reloading=False) + self.session_state = session_state + self.ide = ide + self.gui = gui + self.config = config + self.context_manager = context_manager - if full_state is not None: - self.history = full_state.history - self.session_info = full_state.session_info + @property + def policy(self) -> Policy: + return self.config.policy_override or DefaultPolicy() - # Load saved context groups - # context_groups_file = getSavedContextGroupsPath() - # try: - # with open(context_groups_file, "r") as f: - # json_ob = json.load(f) - # for title, context_group in json_ob.items(): - # self._saved_context_groups[title] = [ - # ContextItem(**item) for item in context_group - # ] - # except Exception as e: - # logger.warning( - # f"Failed to load saved_context_groups.json: {e}. Reverting to empty list." - # ) - # self._saved_context_groups = {} - self._saved_context_groups = {} - - self.started = True - - async def reload_config(self): - await self.load(config=None, only_reloading=True) - await self.update_subscribers() - - async def cleanup(self): - stop_meilisearch() + @property + def sdk(self) -> ContinueSDK: + return ContinueSDK(self.config, self.ide, self.gui, self) class Config: arbitrary_types_allowed = True - keep_untouched = (cached_property,) - @root_validator(pre=True) - def fill_in_values(cls, values): - full_state: FullState = values.get("full_state") - if full_state is not None: - values["history"] = full_state.history - return values - - async def get_full_state(self) -> FullState: - full_state = FullState( - history=self.history, - active=self._active, - user_input_queue=self._main_user_input_queue, - slash_commands=self.get_available_slash_commands(), - adding_highlighted_code=self.context_manager.context_providers[ - "code" - ].adding_highlighted_code - if "code" in self.context_manager.context_providers - else False, - selected_context_items=await self.context_manager.get_selected_items() - if self.context_manager is not None - else [], - session_info=self.session_info, - config=self.continue_sdk.config, - saved_context_groups=self._saved_context_groups, - context_providers=self.context_manager.get_provider_descriptions(), - meilisearch_url=get_meilisearch_url(), - ) - self.full_state = full_state - return full_state - - def get_available_slash_commands(self) -> List[Dict]: - custom_commands = ( - list( - map( - lambda x: {"name": x.name, "description": x.description}, - self.continue_sdk.config.custom_commands, - ) - ) - or [] - ) - slash_commands = ( - list( - map( - lambda x: {"name": x.name, "description": x.description}, - self.continue_sdk.config.slash_commands, - ) - ) - or [] - ) - cmds = custom_commands + slash_commands - cmds.sort(key=lambda x: x["name"] == "edit", reverse=True) - return cmds - - async def clear_history(self): - # Reset history - self.history = History.from_empty() - self._main_user_input_queue = [] - self._active = False - - # Clear context - # await self.context_manager.clear_context() - - await self.update_subscribers() - - def on_update(self, callback: Coroutine["FullState", None, None]): - """Subscribe to changes to state""" - self._on_update_callbacks.append(callback) - - async def update_subscribers(self): - full_state = await self.get_full_state() - for callback in self._on_update_callbacks: - await callback(full_state) - - async def give_user_input(self, input: str, index: int): - self._user_input_queue.post(str(index), input) - - async def wait_for_user_input(self) -> str: - self._active = False - await self.update_subscribers() - user_input = await self._user_input_queue.get(str(self.history.current_index)) - self._active = True - await self.update_subscribers() - return user_input - - _manual_edits_buffer: List[FileEditWithFullContents] = [] - - async def reverse_to_index(self, index: int): - try: - while self.history.get_current_index() >= index: - current_step = self.history.get_current().step - self.history.step_back() - if issubclass(current_step.__class__, ReversibleStep): - await current_step.reverse(self.continue_sdk) - - await self.update_subscribers() - except Exception as e: - logger.debug(e) - - def handle_manual_edits(self, edits: List[FileEditWithFullContents]): - for edit in edits: - self._manual_edits_buffer.append(edit) - # TODO: You're storing a lot of unnecessary data here. Can compress into EditDiffs on the spot, and merge. - # self._manual_edits_buffer = merge_file_edit(self._manual_edits_buffer, edit) - # Note that this is being overridden to do nothing in DemoAgent - - async def handle_command_output(self, output: str): - get_traceback_funcs = [get_python_traceback, get_javascript_traceback] - for get_tb_func in get_traceback_funcs: - traceback = get_tb_func(output) - if ( - traceback is not None - and self.continue_sdk.config.on_traceback is not None - ): - step = self.continue_sdk.config.on_traceback(output=output) - await self._run_singular_step(step) - - async def handle_debug_terminal(self, content: str): - """Run the debug terminal step""" - # step = self.continue_sdk.config.on_traceback(output=content) - step = DefaultOnTracebackStep(output=content) - await self._run_singular_step(step) - - async def handle_highlighted_code( - self, - range_in_files: List[RangeInFileWithContents], - edit: Optional[bool] = False, - ): - if "code" not in self.context_manager.context_providers: - return - - # Add to context manager - await self.context_manager.context_providers["code"].handle_highlighted_code( - range_in_files, edit + def handle_error(self, e: Exception, step: Step) -> ContinueCustomException: + is_continue_custom_exception = ( + issubclass(e.__class__, ContinueCustomException) + or e.__class__.__name__ == ContinueCustomException.__name__ ) - await self.update_subscribers() + error_string = ( + e.message + if is_continue_custom_exception + else "\n".join(traceback.format_exception(e, e, e.__traceback__)) + ) + error_title = e.title if is_continue_custom_exception else get_error_title(e) - _step_depth: int = 0 + # Attach an InternalErrorObservation to the step and unhide it. + logger.error(f"Error while running step: \n{error_string}\n{error_title}") + posthog_logger.capture_event( + "step error", + { + "error_message": error_string, + "error_title": error_title, + "step_name": step.name, + "params": step.dict(), + }, + ) - async def retry_at_index(self, index: int): - self.history.timeline[index].step.hide = True - self._retry_queue.post(str(index), None) - - async def delete_at_index(self, index: int): - if not self.history.timeline[index].active: - self.history.timeline[index].step.hide = True - - self.history.timeline[index].deleted = True - self.history.timeline[index].active = False - - await self.update_subscribers() - - async def edit_step_at_index(self, user_input: str, index: int): - node_to_rerun = self.history.timeline[index].copy() - step_to_rerun = node_to_rerun.step - step_to_rerun.user_input = user_input - step_to_rerun.description = user_input - - # Halt the agent's currently running jobs (delete them) - while len(self.history.timeline) > index: - # Remove from timeline - node_to_delete = self.history.timeline.pop() - # Delete so it is stopped if in the middle of running - node_to_delete.deleted = True - - self.history.current_index = index - 1 - - # Set the context to the context used by that step - await self.context_manager.clear_context() - for context_item in node_to_rerun.context_used: - await self.context_manager.manually_add_context_item(context_item) - - await self.update_subscribers() - - # Rerun from the current step - await self.run_from_step(step_to_rerun) - - async def delete_context_with_ids( - self, ids: List[str], index: Optional[int] = None - ): - if index is None: - await self.context_manager.delete_context_with_ids(ids) + if is_continue_custom_exception: + return e else: - self.history.timeline[index].context_used = list( - filter( - lambda item: item.description.id.to_string() not in ids, - self.history.timeline[index].context_used, - ) - ) - await self.update_subscribers() + return ContinueCustomException(title=error_title, message=error_string) - async def toggle_adding_highlighted_code(self): - if "code" not in self.context_manager.context_providers: - return - - self.context_manager.context_providers[ - "code" - ].adding_highlighted_code = not self.context_manager.context_providers[ - "code" - ].adding_highlighted_code - await self.update_subscribers() - - async def set_editing_at_ids(self, ids: List[str]): - if "code" not in self.context_manager.context_providers: - return - - await self.context_manager.context_providers["code"].set_editing_at_ids(ids) - await self.update_subscribers() - - async def _run_singular_step( - self, step: "Step", is_future_step: bool = False - ) -> Coroutine[Observation, None, None]: - # Allow config to set disallowed steps - if step.__class__.__name__ in self.continue_sdk.config.disallowed_steps: - return None - - # If a parent step is deleted/cancelled, don't run this step - # TODO: This was problematic because when running a step after deleting one, it seemed to think that was the parent - # last_depth = self._step_depth - # i = self.history.current_index - # while i >= 0 and self.history.timeline[i].depth == last_depth - 1: - # if self.history.timeline[i].deleted: - # return None - # last_depth = self.history.timeline[i].depth - # i -= 1 - - # Log the context and step to dev data - context_used = await self.context_manager.get_selected_items() + def log_step(self, step: Step, context_used: List[ContextItem]): posthog_logger.capture_event( "step run", { @@ -418,291 +170,160 @@ class Autopilot(ContinueBaseModel): }, ) - if not is_future_step: - # Check manual edits buffer, clear out if needed by creating a ManualEditStep - if len(self._manual_edits_buffer) > 0: - manualEditsStep = ManualEditStep.from_sequence( - self._manual_edits_buffer - ) - self._manual_edits_buffer = [] - await self._run_singular_step(manualEditsStep) + _step_depth: int = 0 + stopped = False + + async def _run_singular_step(self, step: "Step") -> AutopilotGenerator: + # Allow config to set disallowed steps + if step.__class__.__name__ in self.sdk.config.disallowed_steps: + return + + # Log the context and step to dev data + context_used = self.session_state.context_items + self.log_step(step, context_used) # Update history - do this first so we get top-first tree ordering - index_of_history_node = self.history.add_node( - HistoryNode( - step=step, - observation=None, - depth=self._step_depth, - context_used=context_used, - ) + self._step_depth += 1 + index = len(self.session_state.history) + yield StepDescription( + step_type=step.__class__.__name__, + name=step.name, + description=step.description, + params=step.dict(), + hide=step.hide, + depth=self._step_depth, ) - # Call all subscribed callbacks - await self.update_subscribers() + def handle_step_update(update: UpdateStep): + if isinstance(update, SessionUpdate): + return update + elif isinstance(update, str): + return SessionUpdate(index=index, update=DeltaStep(description=update)) + elif isinstance(update, Observation): + return SessionUpdate( + index=index, update=DeltaStep(observations=[update]) + ) + elif isinstance(update, DeltaStep) or isinstance(update, SetStep): + return SessionUpdate(index=index, update=update) + elif update is None: + return None + else: + logger.warning(f"Unknown type yielded from Step: {update}") # Try to run step and handle errors - self._step_depth += 1 - - caught_error = False try: - observation = await step(self.continue_sdk) + if inspect.iscoroutinefunction(step.run): + await step.run(self.sdk) + elif inspect.isasyncgenfunction(step.run): + async for update in step.run(self.sdk): + if self.stopped: + for update in step.on_stop(self.sdk): + yield handle_step_update(update) + return + + yield handle_step_update(update) + else: + logger.warning( + f"{step.__class__.__name__}.run is not a coroutine function or async generator" + ) + except Exception as e: - if ( - index_of_history_node >= len(self.history.timeline) - or self.history.timeline[index_of_history_node].deleted - ): - # If step was deleted/cancelled, don't show error or allow retry - return None + continue_custom_exception = self.handle_error(e, step) - caught_error = True - - is_continue_custom_exception = ( - issubclass(e.__class__, ContinueCustomException) - or e.__class__.__name__ == ContinueCustomException.__name__ - ) - - error_string = ( - e.message - if is_continue_custom_exception - else "\n".join(traceback.format_exception(e, e, e.__traceback__)) - ) - error_title = ( - e.title if is_continue_custom_exception else get_error_title(e) - ) - - # Attach an InternalErrorObservation to the step and unhide it. - logger.error(f"Error while running step: \n{error_string}\n{error_title}") - posthog_logger.capture_event( - "step error", - { - "error_message": error_string, - "error_title": error_title, - "step_name": step.name, - "params": step.dict(), - }, - ) - - observation = InternalErrorObservation( - error=error_string, title=error_title - ) - - # Reveal this step, but hide all of the following steps (its substeps) - step_was_hidden = step.hide - - step.hide = False - i = self.history.get_current_index() - while self.history.timeline[i].step.name != step.name: - self.history.timeline[i].step.hide = True - i -= 1 + yield SessionUpdate(index=index, update=SetStep(hide=False)) + while self.session_state.history[index].name != step.name: + yield SessionUpdate(index=index, update=SetStep(hide=True)) + index -= 1 # i is now the index of the step that we want to show/rerun - self.history.timeline[i].observation = observation - self.history.timeline[i].active = False - - await self.update_subscribers() + yield SessionUpdate( + index=index, + update=DeltaStep( + error=ContinueError( + title=continue_custom_exception.title, + message=continue_custom_exception.message, + ) + ), + ) # ContinueCustomException can optionally specify a step to run on the error - if is_continue_custom_exception and e.with_step is not None: - await self._run_singular_step(e.with_step) - - # Wait for a retry signal and then resume the step - self._active = False - await self._retry_queue.get(str(i)) - self._active = True - # You might consider a "ignore and continue" button - # want it to have same step depth, so have to decrement - self._step_depth -= 1 - copy_step = step.copy() - copy_step.hide = step_was_hidden - observation = await self._run_singular_step(copy_step) - self._step_depth += 1 + if after_err_step := continue_custom_exception.with_step: + await self.run_step(after_err_step) self._step_depth -= 1 - # Add observation to history, unless already attached error observation - if not caught_error and index_of_history_node < len(self.history.timeline): - self.history.timeline[index_of_history_node].observation = observation - self.history.timeline[index_of_history_node].active = False - await self.update_subscribers() + # NOTE: index here doesn't matter, awkward + yield SessionUpdate(index=index, stop=True, update=DeltaStep()) - # Update its description - async def update_description(): - if self.continue_sdk.config.disable_summaries: - return + # # Update its description + # async def update_description(): + # if ( + # self.continue_sdk.config.disable_summaries + # or self.history.timeline[index_of_history_node].deleted + # ): + # return - description = await step.describe(self.continue_sdk.models) - if description is not None: - step.description = description - # Update subscribers with new description - await self.update_subscribers() + # description = await step.describe(self.continue_sdk.models) + # if description is not None: + # step.description = description + # # Update subscribers with new description + # await self.update_subscribers() - create_async_task( - update_description(), - on_error=lambda e: self.continue_sdk.run_step( - DisplayErrorStep.from_exception(e) - ), - ) + # create_async_task( + # update_description(), + # on_error=lambda e: self.continue_sdk.run_step( + # DisplayErrorStep.from_exception(e) + # ), + # ) - # Create the session title if not done yet - if self.session_info is None or self.session_info.title is None: - visible_nodes = list( - filter(lambda node: not node.step.hide, self.history.timeline) + async def run_step(self, step: Step): + async for update in self._run_singular_step(step): + await self.handle_session_update(update) + + async def handle_session_update(self, update: AutopilotGeneratorOutput): + if update is None: + return + + if isinstance(update, StepDescription): + index = len(self.session_state.history) + self.session_state.history.append(update) + set_step = SetStep(**update.dict()) + await self.sdk.gui.send_session_update( + SessionUpdate(index=index, update=set_step) + ) + return + + if update.index > len(self.session_state.history): + raise Exception( + f"History update index {update.index} is greater than history length {len(self.session_state.history)}" + ) + elif update.index == len(self.session_state.history): + raise Exception( + f"History update index {update.index} is equal to history length {len(self.session_state.history)}. Must yield a StepDescription to add a new step." ) - user_input = None - should_create_title = False - for visible_node in visible_nodes: - if isinstance(visible_node.step, UserInputStep): - if user_input is None: - user_input = visible_node.step.user_input - else: - # More than one user input, so don't create title - should_create_title = False - break - elif user_input is None: - continue - else: - # Already have user input, now have the next step - should_create_title = True - break + self.session_state.history[update.index].update(update.update) + await self.sdk.gui.send_session_update(update) - # Only create the title if the step after the first input is done - if should_create_title: - create_async_task( - self.create_title(backup=user_input), - on_error=lambda e: self.continue_sdk.run_step( - DisplayErrorStep.from_exception(e) - ), + async def run(self, step: Optional[Step] = None): + async def add_log(log: str): + await self.handle_session_update( + SessionUpdate( + index=len(self.session_state.history) - 1, + update=DeltaStep(logs=[log]), ) - - return observation - - async def run_from_step(self, step: "Step"): - # if self._active: - # raise RuntimeError("Autopilot is already running") - self._active = True - - next_step = step - is_future_step = False - while not (next_step is None or self._should_halt): - if is_future_step: - # If future step, then we are replaying and need to delete the step from history so it can be replaced - self.history.remove_current_and_substeps() - - await self._run_singular_step(next_step, is_future_step) - - if next_step := self.policy.next(self.continue_sdk.config, self.history): - is_future_step = False - elif next_step := self.history.take_next_step(): - is_future_step = True - else: - next_step = None - - self._active = False - - # Doing this so active can make it to the frontend after steps are done. But want better state syncing tools - await self.update_subscribers() - - async def run_from_observation(self, observation: Observation): - next_step = self.policy.next(self.continue_sdk.config, self.history) - await self.run_from_step(next_step) - - async def run_policy(self): - first_step = self.policy.next(self.continue_sdk.config, self.history) - await self.run_from_step(first_step) - - async def _request_halt(self): - if self._active: - self._should_halt = True - while self._active: - time.sleep(0.1) - self._should_halt = False - return None - - def set_current_session_title(self, title: str): - self.session_info = SessionInfo( - title=title, - session_id=self.ide.session_id, - date_created=str(time.time()), - workspace_directory=self.ide.workspace_directory, - ) - - async def create_title(self, backup: str = None): - # Use the first input and first response to create title for session info, and make the session saveable - if self.session_info is not None and self.session_info.title is not None: - return - - if self.continue_sdk.config.disable_summaries: - if backup is not None: - title = backup - else: - title = "New Session" - else: - chat_history = list( - map(lambda x: x.dict(), await self.continue_sdk.get_chat_context()) - ) - chat_history_str = template_alpaca_messages(chat_history) - title = await self.continue_sdk.models.summarize.complete( - f"{chat_history_str}\n\nGive a short title to describe the above chat session. Do not put quotes around the title. Do not use more than 6 words. The title is: ", - max_tokens=20, - log=False, - ) - title = remove_quotes_and_escapes(title) - - self.set_current_session_title(title) - await self.update_subscribers() - dev_data_logger.capture("new_session", self.session_info.dict()) - - async def accept_user_input(self, user_input: str): - self._main_user_input_queue.append(user_input) - # await self.update_subscribers() - - if len(self._main_user_input_queue) > 1: - return - - # await self._request_halt() - # Just run the step that takes user input, and - # then up to the policy to decide how to deal with it. - self._main_user_input_queue.pop(0) - # await self.update_subscribers() - await self.run_from_step(UserInputStep(user_input=user_input)) - - while len(self._main_user_input_queue) > 0: - await self.run_from_step( - UserInputStep(user_input=self._main_user_input_queue.pop(0)) ) - async def accept_refinement_input(self, user_input: str, index: int): - await self._request_halt() - await self.reverse_to_index(index) - await self.run_from_step(UserInputStep(user_input=user_input)) + logger_id = self.config.models.add_logger(add_log) - async def reject_diff(self, step_index: int): - # Hide the edit step and the UserInputStep before it - self.history.timeline[step_index].step.hide = True - for i in range(step_index - 1, -1, -1): - if isinstance(self.history.timeline[i].step, UserInputStep): - self.history.timeline[i].step.hide = True - break - await self.update_subscribers() + if step is not None: + await self.run_step(step) + while next_step := self.policy.next(self.sdk.config, self.session_state): + await self.run_step(next_step) - async def select_context_item(self, id: str, query: str): - await self.context_manager.select_context_item(id, query) - await self.update_subscribers() + self.config.models.remove_logger(logger_id) - async def select_context_item_at_index(self, id: str, query: str, index: int): - # TODO: This is different from how it works for the main input - # Ideally still tracked through the ContextProviders - # so they can watch for duplicates - context_item = await self.context_manager.get_context_item(id, query) - if context_item is None: - return - self.history.timeline[index].context_used.append(context_item) - await self.update_subscribers() - - async def set_config_attr(self, key_path: List[str], value: redbaron.RedBaron): - edit_config_property(key_path, value) - await self.update_subscribers() + # region Context Groups _saved_context_groups: Dict[str, List[ContextItem]] = {} @@ -727,23 +348,6 @@ class Autopilot(ContinueBaseModel): "save_context_group", {"title": title, "length": len(context_items)} ) - async def select_context_group(self, id: str): - if id not in self._saved_context_groups: - logger.warning(f"Context group {id} not found") - return - context_group = self._saved_context_groups[id] - await self.context_manager.clear_context() - for item in context_group: - await self.context_manager.manually_add_context_item(item) - await self.update_subscribers() - - posthog_logger.capture_event( - "select_context_group", {"title": id, "length": len(context_group)} - ) - dev_data_logger.capture( - "select_context_group", {"title": id, "items": context_group} - ) - async def delete_context_group(self, id: str): if id not in self._saved_context_groups: logger.warning(f"Context group {id} not found") @@ -755,3 +359,20 @@ class Autopilot(ContinueBaseModel): self._persist_context_groups() posthog_logger.capture_event("delete_context_group", {"title": id}) + + async def get_session_title(self) -> str: + if self.sdk.config.disable_summaries: + return "New Session" + else: + chat_history = list( + map(lambda x: x.dict(), await self.sdk.get_chat_context()) + ) + chat_history_str = template_alpaca_messages(chat_history) + title = await self.sdk.models.summarize.complete( + f"{chat_history_str}\n\nGive a short title to describe the above chat session. Do not put quotes around the title. Do not use more than 6 words. The title is: ", + max_tokens=20, + log=False, + ) + return remove_quotes_and_escapes(title) + + # endregion diff --git a/server/continuedev/core/config.py b/server/continuedev/core/config.py index 2bbb42cc9..2abdcc70f 100644 --- a/server/continuedev/core/config.py +++ b/server/continuedev/core/config.py @@ -1,11 +1,20 @@ from typing import Dict, List, Optional, Type +from ..libs.util.edit_config import ( + create_bool_node, + create_obj_node, + display_llm_class, + edit_config_property, +) +from ..libs.util.paths import convertConfigImports, getConfigFilePath + from pydantic import BaseModel, Field, validator from ..libs.llm.openai_free_trial import OpenAIFreeTrial from .context import ContextProvider -from .main import Policy, Step +from .main import ContextProviderDescription, Policy, SlashCommandDescription, Step from .models import Models +from ..libs.util.telemetry import posthog_logger class SlashCommand(BaseModel): @@ -22,12 +31,24 @@ class SlashCommand(BaseModel): "step": self.step.__name__, } + def slash_command_description(self) -> SlashCommandDescription: + return SlashCommandDescription( + name=self.name, + description=self.description, + ) + class CustomCommand(BaseModel): name: str prompt: str description: str + def slash_command_description(self) -> SlashCommandDescription: + return SlashCommandDescription( + name=self.name, + description=self.description, + ) + class ContinueConfig(BaseModel): """ @@ -98,6 +119,11 @@ class ContinueConfig(BaseModel): description="If set to `True`, Continue will not generate summaries for each Step. This can be useful if you want to save on compute.", ) + @classmethod + def schema(cls, *args, **kwargs): + kwargs.setdefault("exclude", {"ide"}) + return super().schema(*args, **kwargs) + @validator("temperature", pre=True) def temperature_validator(cls, v): return max(0.0, min(1.0, v)) @@ -112,3 +138,90 @@ class ContinueConfig(BaseModel): spec.loader.exec_module(config) return config.config + + @staticmethod + def load_default(retry: bool = True) -> "ContinueConfig": + try: + path = getConfigFilePath() + config = ContinueConfig.from_filepath(path) + + return config + except ModuleNotFoundError as e: + if not retry: + raise e + # Check if the module was "continuedev.src" + if e.name == "continuedev.src": + convertConfigImports(shorten=True) + return ContinueConfig.load_default(retry=False) + else: + raise e + + def get_slash_command_descriptions(self) -> List[SlashCommandDescription]: + custom_commands = ( + list( + map( + lambda x: x.slash_command_description(), + self.custom_commands, + ) + ) + or [] + ) + slash_commands = ( + list( + map( + lambda x: x.slash_command_description(), + self.slash_commands, + ) + ) + or [] + ) + cmds = custom_commands + slash_commands + cmds.sort(key=lambda x: x.name == "edit", reverse=True) + return cmds + + def get_context_provider_descriptions(self) -> List[ContextProviderDescription]: + """ + Returns a list of ContextProviderDescriptions + """ + return [ + provider.get_description() + for provider in self.context_providers + if provider.title != "code" # Code isn't used with '@' + ] + [ + ContextProviderDescription( + title="file", + display_title="Files", + description="Reference files in the current workspace", + dynamic=False, + requires_query=False, + ) + ] + + @staticmethod + def set_temperature(temperature: float): + edit_config_property(["temperature"], temperature) + posthog_logger.capture_event("set_temperature", {"temperature": temperature}) + + @staticmethod + def set_system_message(message: str): + edit_config_property(["system_message"], message) + posthog_logger.capture_event("set_system_message", {"message": message}) + + @staticmethod + def set_models(models: Models, role: str): + JOINER = ",\n\t\t" + models_args = { + "saved": f"[{JOINER.join([display_llm_class(llm) for llm in models.saved])}]", + ("default" if role == "*" else role): display_llm_class(models.default), + } + edit_config_property( + ["models"], + create_obj_node("Models", models_args), + ) + + @staticmethod + def set_telemetry_enabled(enabled: bool): + edit_config_property( + ["allow_anonymous_telemetry"], + create_bool_node(enabled), + ) diff --git a/server/continuedev/core/context.py b/server/continuedev/core/context.py index 01a234455..3ae396832 100644 --- a/server/continuedev/core/context.py +++ b/server/continuedev/core/context.py @@ -1,7 +1,8 @@ import asyncio import time from abc import abstractmethod -from typing import Awaitable, Callable, Dict, List, Optional +from typing import Any, Awaitable, Callable, Dict, List, Optional +from ..server.protocols.ide_protocol import AbstractIdeProtocolServer from meilisearch_python_async import Client from pydantic import BaseModel, Field @@ -48,9 +49,8 @@ class ContextProvider(BaseModel): ..., description="The title of the ContextProvider. This is what must be typed in the input to trigger the ContextProvider.", ) - sdk: ContinueSDK = Field( - None, description="The ContinueSDK instance accessible by the ContextProvider" - ) + ide: Any = None + delete_documents: Callable[[List[str]], Awaitable] = Field( None, description="Function to delete documents" ) @@ -78,20 +78,35 @@ class ContextProvider(BaseModel): [], description="List of selected items in the ContextProvider" ) + class Config: + arbitrary_types_allowed = True + exclude = {"ide", "delete_documents", "update_documents"} + + def get_description(self) -> ContextProviderDescription: + return ContextProviderDescription( + title=self.title, + display_title=self.display_title, + description=self.description, + dynamic=self.dynamic, + requires_query=self.requires_query, + ) + def dict(self, *args, **kwargs): original_dict = super().dict(*args, **kwargs) - original_dict.pop("sdk", None) + original_dict.pop("ide", None) original_dict.pop("delete_documents", None) original_dict.pop("update_documents", None) return original_dict - async def start(self, sdk: ContinueSDK, delete_documents, update_documents): + async def start( + self, ide: AbstractIdeProtocolServer, delete_documents, update_documents + ): """ Starts the context provider. Default implementation sets the sdk. """ - self.sdk = sdk + self.ide = ide self.delete_documents = delete_documents self.update_documents = update_documents @@ -113,20 +128,13 @@ class ContextProvider(BaseModel): This is the only method that must be implemented. """ - async def get_chat_messages(self) -> List[ChatMessage]: - """ - Returns all of the chat messages for the context provider. - - Default implementation has a string template. - """ - return [ - ChatMessage( - role="user", - content=f"{item.description.name}: {item.description.description}\n\n{item.content}", - summary=item.description.description, - ) - for item in await self.get_selected_items() - ] + async def get_chat_message(self, item: ContextItem) -> ChatMessage: + """Returns the ChatMessage for the given ContextItem.""" + return ChatMessage( + role="user", + content=f"{item.description.name}: {item.description.description}\n\n{item.content}", + summary=item.description.description, + ) async def get_item(self, id: ContextItemId, query: str) -> ContextItem: """ @@ -150,20 +158,6 @@ class ContextProvider(BaseModel): return None - async def delete_context_with_ids(self, ids: List[ContextItemId]): - """ - Deletes the ContextItems with the given IDs, lets ContextProviders recalculate. - - Default implementation simply deletes those with the given ids. - """ - id_strings = {id.to_string() for id in ids} - self.selected_items = list( - filter( - lambda item: item.description.id.to_string() not in id_strings, - self.selected_items, - ) - ) - async def clear_context(self): """ Clears all context. @@ -189,13 +183,6 @@ class ContextProvider(BaseModel): if new_item := await self.get_item(id, query): self.selected_items.append(new_item) - async def manually_add_context_item(self, context_item: ContextItem): - for item in self.selected_items: - if item.description.id.item_id == context_item.description.id.item_id: - return - - self.selected_items.append(context_item) - async def preview_contents(self, id: ContextItemId): """ Open a virtual file or otherwise preview the contents of the context provider in the IDE @@ -203,7 +190,7 @@ class ContextProvider(BaseModel): if item := next( filter(lambda x: x.description.id == id, self.selected_items), None ): - await self.sdk.ide.showVirtualFile(item.description.name, item.content) + await self.ide.showVirtualFile(item.description.name, item.content) class ContextManager: @@ -217,45 +204,19 @@ class ContextManager: It is responsible for compiling all of this information into a single prompt without exceeding the token limit. """ - def get_provider_descriptions(self) -> List[ContextProviderDescription]: - """ - Returns a list of ContextProviderDescriptions for each context provider. - """ - return [ - ContextProviderDescription( - title=provider.title, - display_title=provider.display_title, - description=provider.description, - dynamic=provider.dynamic, - requires_query=provider.requires_query, - ) - for provider in self.context_providers.values() - if provider.title != "code" - ] - - async def get_selected_items(self) -> List[ContextItem]: - """ - Returns all of the selected ContextItems. - """ - return sum( - [ - await provider.get_selected_items() - for provider in self.context_providers.values() - ], - [], - ) - - async def get_chat_messages(self) -> List[ChatMessage]: + async def get_chat_messages(self, items: List[ContextItem]) -> List[ChatMessage]: """ Returns chat messages from each provider. """ - return sum( - [ - await provider.get_chat_messages() - for provider in self.context_providers.values() - ], - [], - ) + tasks = [] + for item in items: + if item.description.id.provider_title in self.context_providers: + tasks.append( + self.context_providers[ + item.description.id.provider_title + ].get_chat_message(item) + ) + return await asyncio.gather(*tasks) def __init__(self): self.context_providers = {} @@ -264,7 +225,7 @@ class ContextManager: async def start( self, context_providers: List[ContextProvider], - sdk: ContinueSDK, + ide: AbstractIdeProtocolServer, only_reloading: bool = False, ): """ @@ -283,7 +244,7 @@ class ContextManager: for provider in context_providers: await provider.start( - sdk, + ide, ContextManager.delete_documents, ContextManager.update_documents, ) @@ -304,11 +265,11 @@ class ContextManager: ) return - logger.debug("Loading Meilisearch index...") + ti = time.time() await self.load_index( - sdk.ide.workspace_directory, providers_to_load=providers_to_load + ide.workspace_directory, providers_to_load=providers_to_load ) - logger.debug("Loaded Meilisearch index") + logger.info(f"Loaded Meilisearch index in {time.time() - ti:.3f} seconds") providers_to_load = ( new_context_providers if only_reloading else context_providers @@ -420,9 +381,9 @@ class ContextManager: return tf = time.time() - logger.debug( - f"Loaded {num_documents} documents into meilisearch in {tf - ti} seconds for context provider {provider.title}" - ) + # logger.info( + # f"Loaded {num_documents} documents into meilisearch in {tf - ti} seconds for context provider {provider.title}" + # ) tasks = [ safe_load(provider) @@ -446,9 +407,9 @@ class ContextManager: ) await self.load_index(workspace_dir, False) - async def select_context_item(self, id: str, query: str): + async def get_context_item(self, id: str, query: str) -> ContextItem: """ - Selects the ContextItem with the given id. + Returns the ContextItem with the given id. """ id: ContextItemId = ContextItemId.from_string(id) if id.provider_title not in self.provider_titles: @@ -472,55 +433,9 @@ class ContextManager: "query": query, }, ) - await self.context_providers[id.provider_title].add_context_item(id, query) - - async def get_context_item(self, id: str, query: str) -> ContextItem: - """ - Returns the ContextItem with the given id. - """ - id: ContextItemId = ContextItemId.from_string(id) - if id.provider_title not in self.provider_titles: - raise ValueError( - f"Context provider with title {id.provider_title} not found" - ) return await self.context_providers[id.provider_title].get_item(id, query) - async def delete_context_with_ids(self, ids: List[str]): - """ - Deletes the ContextItems with the given IDs, lets ContextProviders recalculate. - """ - - # Group by provider title - provider_title_to_ids: Dict[str, List[ContextItemId]] = {} - for id in ids: - id: ContextItemId = ContextItemId.from_string(id) - if id.provider_title not in provider_title_to_ids: - provider_title_to_ids[id.provider_title] = [] - provider_title_to_ids[id.provider_title].append(id) - - # Recalculate context for each updated provider - for provider_title, ids in provider_title_to_ids.items(): - await self.context_providers[provider_title].delete_context_with_ids(ids) - - async def clear_context(self): - """ - Clears all context. - """ - for provider in self.context_providers.values(): - await self.context_providers[provider.title].clear_context() - - async def manually_add_context_item(self, item: ContextItem): - """ - Adds the given ContextItem to the list of ContextItems. - """ - if item.description.id.provider_title not in self.provider_titles: - return - - await self.context_providers[ - item.description.id.provider_title - ].manually_add_context_item(item) - async def preview_context_item(self, id: str): """ Opens a virtual file or otherwise previews the contents of the context provider in the IDE. diff --git a/server/continuedev/core/main.py b/server/continuedev/core/main.py index 85d7f5179..de5b9125f 100644 --- a/server/continuedev/core/main.py +++ b/server/continuedev/core/main.py @@ -1,5 +1,5 @@ import json -from typing import Any, Coroutine, Dict, List, Literal, Optional, Union +from typing import Any, AsyncGenerator, Coroutine, Dict, List, Literal, Optional, Union from pydantic import BaseModel, validator from pydantic.schema import schema @@ -99,16 +99,55 @@ def step_to_fn_call_arguments(step: "Step") -> str: return json.dumps(args) -class HistoryNode(ContinueBaseModel): - """A point in history, a list of which make up History""" +class ContinueError(BaseModel): + title: str + message: str - step: "Step" - observation: Union[Observation, None] + +class SetStep(BaseModel): + step_type: Optional[str] = None + name: Optional[str] = None + description: Optional[str] = None + + params: Optional[Dict[str, Any]] = None + + hide: Optional[bool] = None + depth: Optional[int] = None + + error: Optional[ContinueError] = None + observations: Optional[List[Observation]] = None + logs: Optional[List[str]] = None + + def dict(self, *args, **kwargs): + kwargs["exclude_none"] = True + return super().dict(*args, **kwargs) + + +class DeltaStep(BaseModel): + name: Optional[str] = None + description: Optional[str] = None + + observations: Optional[List[Observation]] = None + logs: Optional[List[str]] = None + + def dict(self, *args, **kwargs): + kwargs["exclude_none"] = True + return super().dict(*args, **kwargs) + + +class StepDescription(BaseModel): + step_type: str + name: str + description: str + + params: Dict[str, Any] + + hide: bool depth: int - deleted: bool = False - active: bool = True + + error: Optional[ContinueError] = None + observations: List[Observation] = [] logs: List[str] = [] - context_used: List["ContextItem"] = [] def to_chat_messages(self) -> List[ChatMessage]: if self.step.description is None or self.step.manage_own_chat_context: @@ -122,91 +161,37 @@ class HistoryNode(ContinueBaseModel): ) ] + def update(self, update: "UpdateStep"): + if isinstance(update, DeltaStep): + for key, value in update.dict(exclude_none=True).items(): + setattr(self, key, getattr(self, key) + value) + elif isinstance(update, SetStep): + for key, value in update.dict(exclude_none=True).items(): + setattr(self, key, value) -class History(ContinueBaseModel): - """A history of steps taken and their results""" - timeline: List[HistoryNode] - current_index: int +class SessionUpdate(BaseModel): + index: int + update: "UpdateStep" + stop: Optional[bool] = None - def to_chat_history(self) -> List[ChatMessage]: - msgs = [] - for node in self.timeline: - if not node.step.hide: - msgs += node.to_chat_messages() - return msgs + class Config: + smart_union = True - def add_node(self, node: HistoryNode) -> int: - """Add node and return the index where it was added""" - self.timeline.insert(self.current_index + 1, node) - self.current_index += 1 - return self.current_index + def dict(self, *args, **kwargs): + d = super().dict(*args, **kwargs) + # Because the front-end doesn't see the Model type + d["delta"] = isinstance(self.update, DeltaStep) + return d - def get_current(self) -> Union[HistoryNode, None]: - if self.current_index < 0: - return None - return self.timeline[self.current_index] - def get_last_at_depth( - self, depth: int, include_current: bool = False - ) -> Union[HistoryNode, None]: - i = self.current_index if include_current else self.current_index - 1 - while i >= 0: - if ( - self.timeline[i].depth == depth - and type(self.timeline[i].step).__name__ != "ManualEditStep" - ): - return self.timeline[i] - i -= 1 - return None +UpdateStep = Union[DeltaStep, SetStep, SessionUpdate] - def get_last_at_same_depth(self) -> Union[HistoryNode, None]: - return self.get_last_at_depth(self.get_current().depth) +SessionUpdate.update_forward_refs() - def remove_current_and_substeps(self): - self.timeline.pop(self.current_index) - while self.get_current() is not None and self.get_current().depth > 0: - self.timeline.pop(self.current_index) - - def take_next_step(self) -> Union["Step", None]: - if self.has_future(): - self.current_index += 1 - current_state = self.get_current() - if current_state is None: - return None - return current_state.step - return None - - def get_current_index(self) -> int: - return self.current_index - - def has_future(self) -> bool: - return self.current_index < len(self.timeline) - 1 - - def step_back(self): - self.current_index -= 1 - - def last_observation(self) -> Union[Observation, None]: - state = self.get_last_at_same_depth() - if state is None: - return None - return state.observation - - def pop_step(self, index: int = None) -> Union[HistoryNode, None]: - index = index if index is not None else self.current_index - if index < 0 or self.current_index < 0: - return None - - node = self.timeline.pop(index) - - if index <= self.current_index: - self.current_index -= 1 - - return node.step - - @classmethod - def from_empty(cls): - return cls(timeline=[], current_index=-1) +StepGenerator = AsyncGenerator[Union[str, UpdateStep, Observation], None] +AutopilotGeneratorOutput = Union[SessionUpdate, StepDescription] +AutopilotGenerator = AsyncGenerator[AutopilotGeneratorOutput, None] class SlashCommandDescription(ContinueBaseModel): @@ -306,20 +291,12 @@ class ContextProviderDescription(BaseModel): requires_query: bool -class FullState(ContinueBaseModel): - """A full state of the program, including the history""" +class SessionState(ContinueBaseModel): + """Full session history and important state needed for autopilot to Continue""" - history: History - active: bool - user_input_queue: List[str] - slash_commands: List[SlashCommandDescription] - adding_highlighted_code: bool - selected_context_items: List[ContextItem] - session_info: Optional[SessionInfo] = None - config: ContinueConfig - saved_context_groups: Dict[str, List[ContextItem]] = {} - context_providers: List[ContextProviderDescription] = [] - meilisearch_url: Optional[str] = None + history: List[StepDescription] + context_items: List[ContextItem] + # future: List = [] class ContinueSDK: @@ -334,16 +311,14 @@ class Policy(ContinueBaseModel): """A rule that determines which step to take next""" # Note that history is mutable, kinda sus - def next( - self, config: ContinueConfig, history: History = History.from_empty() - ) -> "Step": + def next(self, config: ContinueConfig, session_state: SessionState) -> "Step": raise NotImplementedError class Step(ContinueBaseModel): name: str = None hide: bool = False - description: Union[str, None] = None + description: str = "" class_name: str = "Step" @@ -363,6 +338,9 @@ class Step(ContinueBaseModel): return self.description return "Running step: " + self.name + def on_stop(self, sdk: ContinueSDK): + yield None + def dict(self, *args, **kwargs): d = super().dict(*args, **kwargs) # Make sure description is always a string @@ -375,10 +353,10 @@ class Step(ContinueBaseModel): return cls.__name__ return name - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK) -> StepGenerator: raise NotImplementedError - async def __call__(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def __call__(self, sdk: ContinueSDK) -> StepGenerator: return await self.run(sdk) def __rshift__(self, other: "Step"): @@ -398,10 +376,10 @@ class SequentialStep(Step): steps: List[Step] hide: bool = True - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK) -> StepGenerator: for step in self.steps: - observation = await sdk.run_step(step) - return observation + async for update in sdk.run_step(step): + yield update class ValidatorObservation(Observation): @@ -438,6 +416,3 @@ class ContinueCustomException(Exception): self.message = message self.title = title self.with_step = with_step - - -HistoryNode.update_forward_refs() diff --git a/server/continuedev/core/models.py b/server/continuedev/core/models.py index 0ddc5d159..b9734b1ea 100644 --- a/server/continuedev/core/models.py +++ b/server/continuedev/core/models.py @@ -1,6 +1,7 @@ -from typing import List, Optional +from typing import Callable, Coroutine, List, Optional, Union +import uuid -from pydantic import BaseModel +from pydantic import BaseModel, validator from ..libs.llm.anthropic import AnthropicLLM from ..libs.llm.base import LLM @@ -72,13 +73,17 @@ class Models(BaseModel): saved: List[LLM] = [] - # TODO namespace these away to not confuse readers, - # or split Models into ModelsConfig, which gets turned into Models - sdk: ContinueSDK = None + temperature: Optional[float] = None + system_message: Optional[str] = None + + @validator("summarize", "edit", "chat", pre=True) + def roles_not_none(cls, v): + if v is None: + return cls.default + return v def dict(self, **kwargs): original_dict = super().dict(**kwargs) - original_dict.pop("sdk", None) return original_dict @property @@ -86,38 +91,42 @@ class Models(BaseModel): models = [getattr(self, role) for role in ALL_MODEL_ROLES] return [model for model in models if model is not None] - @property - def system_message(self) -> Optional[str]: - if self.sdk: - return self.sdk.config.system_message - return None - - @property - def temperature(self) -> Optional[float]: - if self.sdk: - return self.sdk.config.temperature - return None - def set_main_config_params( self, system_msg: Optional[str], temperature: Optional[float] ): + self.system_message = system_msg + self.temperature = temperature for model in self.all_models: model.set_main_config_params(system_msg, temperature) - async def start(self, sdk: "ContinueSDK"): + async def start(self, unique_id: str, system_message: str, temperature: float): """Start each of the LLMs, or fall back to default""" - self.sdk = sdk - for role in ALL_MODEL_ROLES: - model = getattr(self, role) + model: LLM = getattr(self, role) if model is None: setattr(self, role, self.default) else: - await sdk.start_model(model) + await model.start(unique_id) + model.write_log = self.write_log - self.set_main_config_params(self.system_message, self.temperature) + self.set_main_config_params(system_message, temperature) - async def stop(self, sdk: "ContinueSDK"): + async def stop(self): """Stop each LLM (if it's not the default, which is shared)""" for model in self.all_models: await model.stop() + + _loggers = {} + + async def write_log(self, msg): + for logger in self._loggers.values(): + await logger(msg) + + def add_logger(self, logger: Callable[[str], None]) -> str: + logger_id = uuid.uuid4().hex + self._loggers[logger_id] = logger + return logger_id + + def remove_logger(self, logger_id: str): + if logger_id in self._loggers: + del self._loggers[logger_id] diff --git a/server/continuedev/core/sdk.py b/server/continuedev/core/sdk.py index ffb545dca..8fb9bbf02 100644 --- a/server/continuedev/core/sdk.py +++ b/server/continuedev/core/sdk.py @@ -1,16 +1,10 @@ +import asyncio import os -import traceback from typing import Coroutine, List, Optional, Union -from ..libs.llm.base import LLM -from ..libs.util.devdata import dev_data_logger -from ..libs.util.logging import logger -from ..libs.util.paths import ( - convertConfigImports, - getConfigFilePath, - getDiffsFolderPath, -) -from ..libs.util.telemetry import posthog_logger +from ..plugins.context_providers.highlighted_code import HighlightedCodeContextProvider + + from ..models.filesystem import RangeInFile from ..models.filesystem_edit import ( AddDirectory, @@ -21,29 +15,25 @@ from ..models.filesystem_edit import ( FileSystemEdit, ) from ..models.main import Range -from ..server.ide_protocol import AbstractIdeProtocolServer -from .abstract_sdk import AbstractContinueSDK +from ..server.protocols.ide_protocol import AbstractIdeProtocolServer +from ..server.protocols.gui_protocol import AbstractGUIProtocolServer from .config import ContinueConfig from .lsp import ContinueLSPClient from .main import ( ChatMessage, Context, ContextItem, - ContextItemId, ContinueCustomException, - History, - HistoryNode, Step, + StepDescription, + StepGenerator, ) from .models import Models -from .observation import Observation from .steps import ( DefaultModelEditCodeStep, FileSystemEditStep, - MessageStep, RangeInFileWithContents, ShellCommandsStep, - WaitForUserConfirmationStep, ) @@ -51,92 +41,46 @@ class Autopilot: pass -class ContinueSDK(AbstractContinueSDK): +class ContinueSDK: """The SDK provided as parameters to a step""" ide: AbstractIdeProtocolServer - models: Models - lsp: Optional[ContinueLSPClient] = None - context: Context + gui: AbstractGUIProtocolServer config: ContinueConfig + models: Models + + lsp: Optional[ContinueLSPClient] = None + context: Context = Context() + __autopilot: Autopilot - def __init__(self, autopilot: Autopilot): - self.ide = autopilot.ide + def __init__( + self, + config: ContinueConfig, + ide: AbstractIdeProtocolServer, + gui: AbstractGUIProtocolServer, + autopilot: Autopilot, + ): + self.ide = ide + self.gui = gui + self.config = config + self.models = config.models self.__autopilot = autopilot - self.context = autopilot.context - - async def load(self, config: Optional[ContinueConfig] = None): - # Create necessary directories - getDiffsFolderPath() - - try: - self.config = config or self._load_config_dot_py() - except Exception as e: - logger.error(f"Failed to load config.py: {traceback.format_exception(e)}") - - self.config = ( - ContinueConfig() - if self._last_valid_config is None - else self._last_valid_config - ) - - formatted_err = "\n".join(traceback.format_exception(e)) - msg_step = MessageStep( - name="Invalid Continue Config File", message=formatted_err - ) - msg_step.description = f"Falling back to default config settings due to the following error in `~/.continue/config.py`.\n```\n{formatted_err}\n```\n\nIt's possible this was caused by an update to the Continue config format. If you'd like to see the new recommended default `config.py`, check [here](https://github.com/continuedev/continue/blob/main/server/continuedev/libs/constants/default_config.py)." - self.history.add_node( - HistoryNode(step=msg_step, observation=None, depth=0, active=False) - ) - await self.ide.setFileOpen(getConfigFilePath()) - - # Start models - self.models = self.config.models - await self.update_ui() - await self.models.start(self) - - # Start LSP - # async def start_lsp(): - # try: - # sdk.lsp = ContinueLSPClient( - # workspace_dir=sdk.ide.workspace_directory, - # ) - # await sdk.lsp.start() - # except Exception as e: - # logger.warning(f"Failed to start LSP client: {e}", exc_info=False) - # sdk.lsp = None - - # create_async_task( - # start_lsp(), on_error=lambda e: logger.error("Failed to setup LSP: %s", e) - # ) - - # When the config is loaded, setup posthog logger - posthog_logger.setup( - self.ide.unique_id, self.config.allow_anonymous_telemetry, self.ide.ide_info - ) - dev_data_logger.setup(self.config.user_token, self.config.data_server_url) - - @classmethod - async def create( - cls, autopilot: Autopilot, config: Optional[ContinueConfig] = None - ) -> "ContinueSDK": - sdk = ContinueSDK(autopilot) - autopilot.continue_sdk = sdk - - await sdk.load(config=config) - - return sdk @property - def history(self) -> History: - return self.__autopilot.history + def history(self) -> List[StepDescription]: + return self.__autopilot.session_state.history - def write_log(self, message: str): - self.history.timeline[self.history.current_index].logs.append(message) + @property + def context_items(self) -> List[ContextItem]: + return self.__autopilot.session_state.context_items - async def start_model(self, llm: LLM): - await llm.start(unique_id=self.ide.unique_id, write_log=self.write_log) + @property + def stopped(self): + return self.__autopilot.stopped + + async def start_model(self, model): + await model.start(self.ide.unique_id) async def _ensure_absolute_path(self, path: str) -> str: if os.path.isabs(path): @@ -154,8 +98,8 @@ class ContinueSDK(AbstractContinueSDK): return open_file raise Exception(f"Path {path} does not exist") - async def run_step(self, step: Step) -> Coroutine[Observation, None, None]: - return await self.__autopilot._run_singular_step(step) + async def run_step(self, step: Step) -> StepGenerator: + await self.__autopilot.run_step(step) async def apply_filesystem_edit( self, edit: FileSystemEdit, name: str = None, description: str = None @@ -166,12 +110,6 @@ class ContinueSDK(AbstractContinueSDK): ) ) - async def wait_for_user_input(self) -> str: - return await self.__autopilot.wait_for_user_input() - - async def wait_for_user_confirmation(self, prompt: str): - return await self.run_step(WaitForUserConfirmationStep(prompt=prompt)) - async def run( self, commands: Union[List[str], str], @@ -246,47 +184,23 @@ class ContinueSDK(AbstractContinueSDK): path = await self._ensure_absolute_path(path) return await self.run_step(FileSystemEditStep(edit=DeleteDirectory(path=path))) - _last_valid_config: ContinueConfig = None - - def _load_config_dot_py(self, retry: bool = True) -> ContinueConfig: - try: - path = getConfigFilePath() - config = ContinueConfig.from_filepath(path) - self._last_valid_config = config - - logger.debug("Loaded Continue config file from %s", path) - - return config - except ModuleNotFoundError as e: - if not retry: - raise e - # Check if the module was "continuedev.src" - if e.name == "continuedev.src": - convertConfigImports(shorten=True) - return self._load_config_dot_py(retry=False) - else: - raise e - - def get_code_context( + async def get_code_context( self, only_editing: bool = False ) -> List[RangeInFileWithContents]: - highlighted_ranges = self.__autopilot.context_manager.context_providers[ - "code" - ].highlighted_ranges - context = ( - list(filter(lambda x: x.item.editing, highlighted_ranges)) - if only_editing - else highlighted_ranges + editing = filter( + lambda x: x.editable and (x.editing or not only_editing), self.context_items + ) + return await asyncio.gather( + *[ + HighlightedCodeContextProvider.get_range_in_file_with_contents( + self.ide, item + ) + for item in editing + ] ) - return [c.rif for c in context] async def add_context_item(self, item: ContextItem): - await self.__autopilot.context_manager.manually_add_context_item(item) - - async def delete_context_item(self, id: ContextItemId): - await self.__autopilot.delete_context_with_ids( - [f"{id.provider_title}-{id.item_id}"] - ) + await self.gui.add_context_item(item) def set_loading_message(self, message: str): # self.__autopilot.set_loading_message(message) @@ -298,23 +212,24 @@ class ContinueSDK(AbstractContinueSDK): raise ContinueCustomException(message, title, with_step) async def get_chat_context(self) -> List[ChatMessage]: - history_context = self.history.to_chat_history() + history_context = list( + map( + lambda step: ChatMessage( + role="user" if step.step_type == "UserInputStep" else "assistant", + name=step.step_type, + content=step.description or f"Ran function {step.name}", + summary=f"Called function {step.name}", + ), + filter(lambda x: x.hide is False, self.history[:-1]), + ) + ) context_messages: List[ ChatMessage - ] = await self.__autopilot.context_manager.get_chat_messages() + ] = await self.__autopilot.context_manager.get_chat_messages(self.context_items) # Insert at the end, but don't insert after latest user message or function call for msg in context_messages: history_context.insert(-1, msg) return history_context - - async def update_ui(self): - await self.__autopilot.update_subscribers() - - async def clear_history(self): - await self.__autopilot.clear_history() - - def current_step_was_deleted(self): - return self.history.timeline[self.history.current_index].deleted diff --git a/server/continuedev/core/steps.py b/server/continuedev/core/steps.py index bb3fea118..e4f5c8aca 100644 --- a/server/continuedev/core/steps.py +++ b/server/continuedev/core/steps.py @@ -18,15 +18,19 @@ from ..libs.util.templating import render_prompt_template from ..models.filesystem import FileSystem, RangeInFile, RangeInFileWithContents from ..models.filesystem_edit import ( EditDiff, - FileEdit, FileEditWithFullContents, FileSystemEdit, ) -# from ....libs.llm.replicate import ReplicateLLM -from ..models.main import Range -from .main import ChatMessage, ContinueCustomException, Step -from .observation import Observation, TextObservation, UserInputObservation +from .main import ( + ChatMessage, + ContinueCustomException, + DeltaStep, + SessionUpdate, + SetStep, + Step, +) +from .observation import TextObservation, UserInputObservation class ContinueSDK: @@ -49,8 +53,8 @@ class MessageStep(Step): async def describe(self, models: Models) -> Coroutine[str, None, None]: return self.message - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: - return TextObservation(text=self.message) + async def run(self, sdk: ContinueSDK): + yield TextObservation(text=self.message) class DisplayErrorStep(Step): @@ -72,7 +76,7 @@ class DisplayErrorStep(Step): async def describe(self, models: Models) -> Coroutine[str, None, None]: return self.message - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): raise ContinueCustomException(message=self.message, title=self.title) @@ -82,9 +86,8 @@ class FileSystemEditStep(ReversibleStep): hide: bool = True - async def run(self, sdk: "ContinueSDK") -> Coroutine[Observation, None, None]: + async def run(self, sdk: "ContinueSDK"): self._diff = await sdk.ide.applyFileSystemEdit(self.edit) - return None async def reverse(self, sdk: "ContinueSDK"): await sdk.ide.applyFileSystemEdit(self._diff.backward) @@ -115,7 +118,7 @@ class ShellCommandsStep(Step): f"{cmds_str}\n\nSummarize what was done in these shell commands, using markdown bullet points:" ) - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): process = subprocess.Popen( "/bin/bash", stdin=subprocess.PIPE, @@ -131,8 +134,6 @@ class ShellCommandsStep(Step): self._err_text = err return TextObservation(text=err) - return None - class DefaultModelEditCodeStep(Step): user_input: str @@ -195,6 +196,13 @@ class DefaultModelEditCodeStep(Step): else: return None + def on_stop(self, sdk: ContinueSDK): + index = len(sdk.history) + for i in range(index - 1, -1, -1): + yield SessionUpdate(index=i, update=SetStep(hide=True)) + if sdk.history[i].step_type == "UserInputStep": + break + async def get_prompt_parts( self, rif: RangeInFileWithContents, sdk: ContinueSDK, full_file_contents: str ): @@ -424,7 +432,7 @@ Please output the code to be inserted at the cursor in order to fulfill the user + "\n".join(full_suffix_lines) ) - step_index = sdk.history.current_index + step_index = len(sdk.history) - 1 await sdk.ide.showDiff(rif.filepath, new_file_contents, step_index) @@ -623,11 +631,12 @@ Please output the code to be inserted at the cursor in order to fulfill the user try: last_task_time = time.time() async for chunk in generator: + if sdk.stopped: + return + # Stop early if it is repeating the file_suffix or the step was deleted if repeating_file_suffix: break - if sdk.current_step_was_deleted(): - return # Accumulate lines chunk_lines = chunk.split("\n") @@ -718,9 +727,7 @@ Please output the code to be inserted at the cursor in order to fulfill the user self._new_contents = completion self._prompt_and_completion += prompt + completion - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: - await sdk.update_ui() - + async def run(self, sdk: ContinueSDK): rif_with_contents = [] for range_in_file in map( lambda x: RangeInFile( @@ -752,12 +759,15 @@ Please output the code to be inserted at the cursor in order to fulfill the user ) if sdk.config.disable_summaries: - self.name = "" - self.description = f"Edited {len(self.range_in_files)} files" - await sdk.update_ui() + yield SetStep( + name="", + description=f"Edited {len(self.range_in_files)} files", + ) else: - self.name = "Generating summary" - self.description = "" + yield SetStep( + name="Generating summary", + description="", + ) async for chunk in sdk.models.summarize.stream_complete( dedent( f"""\ @@ -770,9 +780,9 @@ Please output the code to be inserted at the cursor in order to fulfill the user {self.summary_prompt}""" ) ): - self.description += chunk - await sdk.update_ui() + yield chunk + # TODO: Follow-up edits might die with this update??? sdk.context.set("last_edit_user_input", self.user_input) sdk.context.set("last_edit_diff", changes) sdk.context.set("last_edit_range", self.range_in_files[-1].range) @@ -787,7 +797,7 @@ class EditFileStep(Step): async def describe(self, models: Models) -> Coroutine[str, None, None]: return "Editing file: " + self.filepath - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): file_contents = await sdk.ide.readFile(self.filepath) await sdk.run_step( DefaultModelEditCodeStep( @@ -829,8 +839,8 @@ class ManualEditStep(ReversibleStep): diffs.append(diff) return cls(edit_diff=EditDiff.from_sequence(diffs)) - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: - return None + async def run(self, sdk: ContinueSDK): + ... async def reverse(self, sdk: ContinueSDK): await sdk.ide.applyFileSystemEdit(self.edit_diff.backward) @@ -855,37 +865,4 @@ class UserInputStep(Step): ChatMessage(role="user", content=self.user_input, summary=self.user_input) ) self.description = self.user_input - return UserInputObservation(user_input=self.user_input) - - -class WaitForUserInputStep(Step): - prompt: str - name: str = "Waiting for user input" - - _description: Union[str, None] = None - _response: Union[str, None] = None - - async def describe(self, models: Models) -> Coroutine[str, None, None]: - if self._response is None: - return self.prompt - else: - return f"{self.prompt}\n\n`{self._response}`" - - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: - self.description = self.prompt - resp = await sdk.wait_for_user_input() - self.description = f"{self.prompt}\n\n`{resp}`" - return TextObservation(text=resp) - - -class WaitForUserConfirmationStep(Step): - prompt: str - name: str = "Waiting for user confirmation" - - async def describe(self, models: Models) -> Coroutine[str, None, None]: - return self.prompt - - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: - self.description = self.prompt - resp = await sdk.wait_for_user_input() - return TextObservation(text=resp) + return UserInputObservation(user_input=self.user_input) \ No newline at end of file diff --git a/server/continuedev/headless/__init__.py b/server/continuedev/headless/__init__.py index 2ecdcce68..7173d8165 100644 --- a/server/continuedev/headless/__init__.py +++ b/server/continuedev/headless/__init__.py @@ -3,18 +3,19 @@ from typing import Optional, Union import typer from ..core.config import ContinueConfig -from ..server.session_manager import Session, session_manager -from .headless_ide import LocalIdeProtocol -app = typer.Typer() +# from ..server.session_manager import Session, session_manager +# from .headless_ide import LocalIdeProtocol + +# app = typer.Typer() -async def start_headless_session( - config: Optional[Union[str, ContinueConfig]] = None -) -> Session: - if config is not None: - if isinstance(config, str): - config: ContinueConfig = ContinueConfig.from_filepath(config) +# async def start_headless_session( +# config: Optional[Union[str, ContinueConfig]] = None +# ) -> Session: +# if config is not None: +# if isinstance(config, str): +# config: ContinueConfig = ContinueConfig.from_filepath(config) - ide = LocalIdeProtocol() - return await session_manager.new_session(ide, config=config) +# ide = LocalIdeProtocol() +# return await session_manager.new_session(ide, config=config) diff --git a/server/continuedev/headless/headless_ide.py b/server/continuedev/headless/headless_ide.py index 088da2c99..cbffb6441 100644 --- a/server/continuedev/headless/headless_ide.py +++ b/server/continuedev/headless/headless_ide.py @@ -60,10 +60,6 @@ class LocalIdeProtocol(AbstractIdeProtocolServer): """Get a new session ID""" pass - async def showSuggestionsAndWait(self, suggestions: List[FileEdit]) -> bool: - """Show suggestions to the user and wait for a response""" - pass - def onAcceptRejectSuggestion(self, accepted: bool): """Called when the user accepts or rejects a suggestion""" pass diff --git a/server/continuedev/libs/constants/default_config.py b/server/continuedev/libs/constants/default_config.py index c8cc269b8..17cbfa286 100644 --- a/server/continuedev/libs/constants/default_config.py +++ b/server/continuedev/libs/constants/default_config.py @@ -16,7 +16,6 @@ from continuedev.plugins.context_providers import ( GitHubIssuesContextProvider ) from continuedev.plugins.steps import ( - ClearHistoryStep, CommentCodeStep, EditHighlightedCodeStep, GenerateShellCommandStep, @@ -55,11 +54,6 @@ config = ContinueConfig( description="Write comments for the highlighted code", step=CommentCodeStep, ), - SlashCommand( - name="clear", - description="Clear step history", - step=ClearHistoryStep, - ), SlashCommand( name="share", description="Download and share this session", diff --git a/server/continuedev/libs/llm/anthropic.py b/server/continuedev/libs/llm/anthropic.py index 7d0708f13..40b322d3f 100644 --- a/server/continuedev/libs/llm/anthropic.py +++ b/server/continuedev/libs/llm/anthropic.py @@ -37,8 +37,8 @@ class AnthropicLLM(LLM): class Config: arbitrary_types_allowed = True - async def start(self, **kwargs): - await super().start(**kwargs) + async def start(self, *args, **kwargs): + await super().start(*args, **kwargs) self._async_client = AsyncAnthropic(api_key=self.api_key) if self.model == "claude-2": diff --git a/server/continuedev/libs/llm/base.py b/server/continuedev/libs/llm/base.py index 96620d9cc..4de4465d6 100644 --- a/server/continuedev/libs/llm/base.py +++ b/server/continuedev/libs/llm/base.py @@ -1,6 +1,5 @@ import os import ssl -from textwrap import dedent from time import time from typing import Any, Callable, Coroutine, Dict, Generator, List, Optional, Union @@ -200,11 +199,8 @@ class LLM(ContinueBaseModel): original_dict["class_name"] = self.__class__.__name__ return original_dict - async def start( - self, write_log: Callable[[str], None] = None, unique_id: Optional[str] = None - ): + async def start(self, unique_id: Optional[str] = None): """Start the connection to the LLM.""" - self.write_log = write_log self.unique_id = unique_id async def stop(self): @@ -352,8 +348,8 @@ Settings: if not raw: prompt = self.template_prompt_like_messages(prompt) - if log: - self.write_log(self.compile_log_message(prompt, options)) + if log and self.write_log: + await self.write_log(self.compile_log_message(prompt, options)) completion = "" async for chunk in self._stream_complete(prompt=prompt, options=options): @@ -400,8 +396,8 @@ Settings: if not raw: prompt = self.template_prompt_like_messages(prompt) - if log: - self.write_log(self.compile_log_message(prompt, options)) + if log and self.write_log: + await self.write_log(self.compile_log_message(prompt, options)) completion = await self._complete(prompt=prompt, options=options) @@ -447,8 +443,8 @@ Settings: else: prompt = format_chat_messages(messages) - if log: - self.write_log(self.compile_log_message(prompt, options)) + if log and self.write_log: + await self.write_log(self.compile_log_message(prompt, options)) completion = "" diff --git a/server/continuedev/libs/llm/ggml.py b/server/continuedev/libs/llm/ggml.py index 738b43636..2c4d3246a 100644 --- a/server/continuedev/libs/llm/ggml.py +++ b/server/continuedev/libs/llm/ggml.py @@ -53,6 +53,20 @@ class GGML(LLM): None, description="OpenAI engine. For use with Azure OpenAI Service." ) + api_base: Optional[str] = Field(None, description="OpenAI API base URL.") + + api_type: Optional[Literal["azure", "openai"]] = Field( + None, description="OpenAI API type." + ) + + api_version: Optional[str] = Field( + None, description="OpenAI API version. For use with Azure OpenAI Service." + ) + + engine: Optional[str] = Field( + None, description="OpenAI engine. For use with Azure OpenAI Service." + ) + template_messages: Optional[ Callable[[List[Dict[str, str]]], str] ] = llama2_template_messages @@ -89,6 +103,19 @@ class GGML(LLM): else: return f"{self.server_url}/v1/{endpoint}" + def get_full_server_url(self, endpoint: str): + endpoint = endpoint.lstrip("/").rstrip("/") + + if self.api_type == "azure": + if self.engine is None or self.api_version is None or self.api_base is None: + raise Exception( + "For Azure OpenAI Service, you must specify engine, api_version, and api_base." + ) + + return f"{self.api_base}/openai/deployments/{self.engine}/{endpoint}?api-version={self.api_version}" + else: + return f"{self.server_url}/v1/{endpoint}" + async def _raw_stream_complete(self, prompt, options): args = self.collect_args(options) @@ -205,7 +232,7 @@ class GGML(LLM): ) as resp: if resp.status != 200: raise Exception( - f"Error calling /chat/completions endpoint: {resp.status}" + f"Error calling /completions endpoint: {resp.status}" ) text = await resp.text() @@ -214,7 +241,7 @@ class GGML(LLM): return completion except Exception as e: raise Exception( - f"Error calling /completion endpoint: {e}\n\nResponse text: {text}" + f"Error calling /completions endpoint: {e}\n\nResponse text: {text}" ) async def _complete(self, prompt: str, options: CompletionOptions): diff --git a/server/continuedev/libs/llm/ollama.py b/server/continuedev/libs/llm/ollama.py index d0bf98b91..442b4a0dc 100644 --- a/server/continuedev/libs/llm/ollama.py +++ b/server/continuedev/libs/llm/ollama.py @@ -52,8 +52,8 @@ class Ollama(LLM): "stop": options.stop, } - async def start(self, **kwargs): - await super().start(**kwargs) + async def start(self, *args, **kwargs): + await super().start(*args, **kwargs) self._client_session = self.create_client_session() try: async with self._client_session.post( diff --git a/server/continuedev/libs/llm/openai.py b/server/continuedev/libs/llm/openai.py index d3407fc57..b06cc341b 100644 --- a/server/continuedev/libs/llm/openai.py +++ b/server/continuedev/libs/llm/openai.py @@ -88,10 +88,8 @@ class OpenAI(LLM): None, description="OpenAI engine. For use with Azure OpenAI Service." ) - async def start( - self, unique_id: Optional[str] = None, write_log: Callable[[str], None] = None - ): - await super().start(write_log=write_log, unique_id=unique_id) + async def start(self, unique_id: Optional[str] = None): + await super().start(unique_id=unique_id) if self.context_length is None: self.context_length = MAX_TOKENS_FOR_MODEL.get(self.model, 4096) diff --git a/server/continuedev/libs/llm/openai_free_trial.py b/server/continuedev/libs/llm/openai_free_trial.py index b6e707f98..610dfc5e3 100644 --- a/server/continuedev/libs/llm/openai_free_trial.py +++ b/server/continuedev/libs/llm/openai_free_trial.py @@ -40,10 +40,8 @@ class OpenAIFreeTrial(LLM): if self.llm is not None: self.llm.system_message = self.system_message - async def start( - self, write_log: Callable[[str], None] = None, unique_id: Optional[str] = None - ): - await super().start(write_log=write_log, unique_id=unique_id) + async def start(self, unique_id: Optional[str] = None): + await super().start(unique_id=unique_id) if self.api_key is None or self.api_key.strip() == "": self.llm = ProxyServer( model=self.model, @@ -58,7 +56,7 @@ class OpenAIFreeTrial(LLM): ca_bundle_path=self.ca_bundle_path, ) - await self.llm.start(write_log=write_log, unique_id=unique_id) + await self.llm.start(unique_id=unique_id) async def stop(self): await self.llm.stop() diff --git a/server/continuedev/libs/llm/prompts/chat.py b/server/continuedev/libs/llm/prompts/chat.py index 65600a5e2..068c2faf9 100644 --- a/server/continuedev/libs/llm/prompts/chat.py +++ b/server/continuedev/libs/llm/prompts/chat.py @@ -21,6 +21,29 @@ def anthropic_template_messages(messages: List[Dict[str, str]]) -> str: return prompt +def zephyr_template_messages(msgs: List[Dict[str, str]]) -> str: + """ " + <|system|> + + <|user|> + {prompt} + <|assistant|> + """ + prompt = "" + + if msgs[0]["role"] == "system": + prompt += f"<|system|>{msgs[0]['content']}\n" + msgs.pop(0) + + for msg in msgs: + prompt += "<|user|>\n" if msg["role"] == "user" else "<|assistant|>\n" + prompt += f"{msg['content']}\n" + + prompt += "<|assistant|>\n" + + return prompt + + def chatml_template_messages(messages: List[Dict[str, str]]) -> str: prompt = "" @@ -132,7 +155,7 @@ Based on your instructions, here is the SQL query I have generated to answer the def sqlcoder_template_messages(schema: str = SQL_CODER_DEFAULT_SCHEMA): - if schema == "" or schema == "": + if schema in {"", ""}: schema = SQL_CODER_DEFAULT_SCHEMA def fn(msgs): diff --git a/server/continuedev/libs/llm/replicate.py b/server/continuedev/libs/llm/replicate.py index 51ec081bd..4ac6ca82f 100644 --- a/server/continuedev/libs/llm/replicate.py +++ b/server/continuedev/libs/llm/replicate.py @@ -40,8 +40,8 @@ class ReplicateLLM(LLM): "edit": codellama_edit_prompt, } - async def start(self, **kwargs): - await super().start(**kwargs) + async def start(self, *args, **kwargs): + await super().start(*args, **kwargs) self._client = replicate.Client(api_token=self.api_key) async def _complete(self, prompt: str, options): diff --git a/server/continuedev/libs/llm/text_gen_webui.py b/server/continuedev/libs/llm/text_gen_webui.py index fa6fdb800..1d52c08be 100644 --- a/server/continuedev/libs/llm/text_gen_webui.py +++ b/server/continuedev/libs/llm/text_gen_webui.py @@ -15,11 +15,7 @@ class TextGenWebUI(LLM): TextGenWebUI is a comprehensive, open-source language model UI and local server. You can set it up with an OpenAI-compatible server plugin, but if for some reason that doesn't work, you can use this class like so: ```python title="~/.continue/config.py" -<<<<<<<< HEAD:server/continuedev/libs/llm/text_gen_interface.py - from continuedev.libs.llm.text_gen_interface import TextGenUI -======== from continuedev.libs.llm.text_gen_webui import TextGenWebUI ->>>>>>>> 16b0a48035350d350e05ae5fe17478ae78042904:server/continuedev/libs/llm/text_gen_webui.py config = ContinueConfig( ... diff --git a/server/continuedev/libs/llm/together.py b/server/continuedev/libs/llm/together.py index 234834125..c92cb11bd 100644 --- a/server/continuedev/libs/llm/together.py +++ b/server/continuedev/libs/llm/together.py @@ -1,7 +1,5 @@ import json from typing import Callable - -import aiohttp from pydantic import Field from ...core.main import ContinueCustomException @@ -39,29 +37,16 @@ class TogetherLLM(LLM): description="The base URL for your Together API instance", ) - _client_session: aiohttp.ClientSession = None - template_messages: Callable = llama2_template_messages prompt_templates = { "edit": codellama_edit_prompt, } - async def start(self, **kwargs): - await super().start(**kwargs) - self._client_session = aiohttp.ClientSession( - connector=aiohttp.TCPConnector(verify_ssl=self.verify_ssl), - timeout=aiohttp.ClientTimeout(total=self.timeout), - trust_env=True, - ) - - async def stop(self): - await self._client_session.close() - async def _stream_complete(self, prompt, options): args = self.collect_args(options) - async with self._client_session.post( + async with self.create_client_session().post( f"{self.base_url}/inference", json={ "prompt": prompt, @@ -97,7 +82,7 @@ class TogetherLLM(LLM): async def _complete(self, prompt: str, options): args = self.collect_args(options) - async with self._client_session.post( + async with self.create_client_session().post( f"{self.base_url}/inference", json={"prompt": prompt, **args}, headers={"Authorization": f"Bearer {self.api_key}"}, diff --git a/server/continuedev/libs/util/edit_config.py b/server/continuedev/libs/util/edit_config.py index 1e5bcce72..a54c89e55 100644 --- a/server/continuedev/libs/util/edit_config.py +++ b/server/continuedev/libs/util/edit_config.py @@ -1,5 +1,5 @@ import threading -from typing import Any, Dict, List +from typing import Any, Dict, List, Union from pydantic import BaseModel import redbaron @@ -48,7 +48,18 @@ def edit_property( edit_lock = threading.Lock() -def edit_config_property(key_path: List[str], value: redbaron.RedBaron): +def edit_config_property( + key_path: List[str], value: Union[redbaron.RedBaron, str, float] +): + """ + key_path: list of strings representing the path to the property + value: redbaron node representing the value to set + """ + if isinstance(value, str): + value = create_string_node(value) + elif isinstance(value, float): + value = create_float_node(value) + with edit_lock: red = load_red() config = get_config_node(red) @@ -136,6 +147,10 @@ def create_literal_node(literal: str) -> redbaron.RedBaron: return redbaron.RedBaron(literal)[0] +def create_bool_node(bool: bool) -> redbaron.RedBaron: + return redbaron.RedBaron(str(bool))[0] + + def create_float_node(float: float) -> redbaron.RedBaron: return redbaron.RedBaron(f"{float}")[0] diff --git a/server/continuedev/libs/util/logging.py b/server/continuedev/libs/util/logging.py index a4dc3562b..a4c6c3d97 100644 --- a/server/continuedev/libs/util/logging.py +++ b/server/continuedev/libs/util/logging.py @@ -34,6 +34,7 @@ console_handler.setLevel(logging.DEBUG) # Create a formatter formatter = logging.Formatter("[%(asctime)s] [%(levelname)s] %(message)s") +formatter.datefmt = "%Y-%m-%d %H:%M:%S" # Add the formatter to the handlers file_handler.setFormatter(formatter) @@ -42,6 +43,3 @@ console_handler.setFormatter(formatter) # Add the handlers to the logger logger.addHandler(file_handler) logger.addHandler(console_handler) - -# Log a test message -logger.debug("------ Begin Logs ------") diff --git a/server/continuedev/libs/util/queue.py b/server/continuedev/libs/util/queue.py index e1f98cc64..e2ccbb4cc 100644 --- a/server/continuedev/libs/util/queue.py +++ b/server/continuedev/libs/util/queue.py @@ -1,17 +1,22 @@ import asyncio from typing import Dict +from ...models.websockets import WebsocketsMessage -class AsyncSubscriptionQueue: - # The correct way to do this is probably to keep request IDs +class WebsocketsSubscriptionQueue: queues: Dict[str, asyncio.Queue] = {} - def post(self, messageType: str, data: any): - if messageType not in self.queues: - self.queues.update({messageType: asyncio.Queue()}) - self.queues[messageType].put_nowait(data) + def post(self, msg: WebsocketsMessage): + if msg.message_id not in self.queues: + self.queues.update({msg.message_id: asyncio.Queue()}) - async def get(self, message_type: str) -> any: - if message_type not in self.queues: - self.queues.update({message_type: asyncio.Queue()}) - return await self.queues[message_type].get() + self.queues[msg.message_id].put_nowait(msg) + + async def get(self, message_id: str) -> WebsocketsMessage: + if message_id not in self.queues: + self.queues.update({message_id: asyncio.Queue()}) + return self.queues[message_id].get() + + async def delete(self, message_id: str): + if message_id in self.queues: + del self.queues[message_id] diff --git a/server/continuedev/libs/util/telemetry.py b/server/continuedev/libs/util/telemetry.py index 09815fa92..90ffec44e 100644 --- a/server/continuedev/libs/util/telemetry.py +++ b/server/continuedev/libs/util/telemetry.py @@ -54,19 +54,6 @@ class PostHogLogger: _found_disconnected: bool = False def _capture_event(self, event_name: str, event_properties: Any): - # logger.debug( - # f"Logging to PostHog: {event_name} ({self.unique_id}, {self.allow_anonymous_telemetry}): {event_properties}") - telemetry_path = os.path.expanduser("~/.continue/telemetry.log") - - # Make sure the telemetry file exists - if not os.path.exists(telemetry_path): - os.makedirs(os.path.dirname(telemetry_path), exist_ok=True) - open(telemetry_path, "w").close() - - with open(telemetry_path, "a") as f: - str_to_write = f"{event_name}: {event_properties}\n{self.unique_id}\n{self.allow_anonymous_telemetry}\n\n" - f.write(str_to_write) - if not self.allow_anonymous_telemetry: return diff --git a/server/continuedev/models/filesystem.py b/server/continuedev/models/filesystem.py index 27244c4b3..9702e3fb7 100644 --- a/server/continuedev/models/filesystem.py +++ b/server/continuedev/models/filesystem.py @@ -34,6 +34,9 @@ class RangeInFile(BaseModel): def translated(self, lines: int): return RangeInFile(filepath=self.filepath, range=self.range.translated(lines)) + def with_contents(self, contents: str) -> "RangeInFileWithContents": + return RangeInFileWithContents.from_range_in_file(self, contents) + class RangeInFileWithContents(RangeInFile): """A range in a file with the contents of the range.""" @@ -43,6 +46,9 @@ class RangeInFileWithContents(RangeInFile): def __hash__(self): return hash((self.filepath, self.range, self.contents)) + def to_range_in_file(self) -> RangeInFile: + return RangeInFile(filepath=self.filepath, range=self.range) + def union(self, other: "RangeInFileWithContents") -> "RangeInFileWithContents": assert self.filepath == other.filepath # Use a placeholder variable for self and swap it with other if other comes before self diff --git a/server/continuedev/models/generate_json_schema.py b/server/continuedev/models/generate_json_schema.py index 1faa3665d..abe8b4003 100644 --- a/server/continuedev/models/generate_json_schema.py +++ b/server/continuedev/models/generate_json_schema.py @@ -3,28 +3,39 @@ import os from pydantic import schema_json_of from ..core.config import ContinueConfig -from ..core.context import ContextItem +from ..core.context import ContextItem, ContextItemId from ..core.main import ( - FullState, - History, - HistoryNode, SessionInfo, + SessionState, + SessionUpdate, + ContinueError, + SlashCommandDescription, + ContextProviderDescription, ) from ..core.models import Models from ..libs.llm.base import LLM -from .filesystem import FileEdit, RangeInFile +from .filesystem import FileEdit, RangeInFile, RangeInFileWithContents from .filesystem_edit import FileEditWithFullContents from .main import Position, Range, Traceback, TracebackFrame +from ..server.sessions import PersistedSessionInfo MODELS_TO_GENERATE = ( [Position, Range, Traceback, TracebackFrame] - + [RangeInFile, FileEdit] + + [RangeInFile, FileEdit, RangeInFileWithContents] + [FileEditWithFullContents] - + [History, HistoryNode, FullState, SessionInfo] + + [ + SessionInfo, + SessionState, + SessionUpdate, + ContinueError, + SlashCommandDescription, + ContextProviderDescription, + ] + [ContinueConfig] - + [ContextItem] + + [ContextItem, ContextItemId] + [Models] + [LLM] + + [PersistedSessionInfo] ) RENAMES = {"ExampleClass": "RenamedName"} diff --git a/server/continuedev/models/websockets.py b/server/continuedev/models/websockets.py new file mode 100644 index 000000000..2bbfe0dac --- /dev/null +++ b/server/continuedev/models/websockets.py @@ -0,0 +1,13 @@ +from typing import Any, Dict, List, Optional, TypeVar +from ..core.observation import Observation +from pydantic import BaseModel, Field, validator + + +class WebsocketsMessage(BaseModel): + message_id: str + message_type: str + data: Dict[str, Any] + + @classmethod + def new(cls, message_type: str, data: Dict[str, Any]) -> "WebsocketsMessage": + return cls(message_type=message_type, data=data) diff --git a/server/continuedev/plugins/context_providers/file.py b/server/continuedev/plugins/context_providers/file.py index 6f3104579..d14ecb66a 100644 --- a/server/continuedev/plugins/context_providers/file.py +++ b/server/continuedev/plugins/context_providers/file.py @@ -2,9 +2,10 @@ import asyncio import os from typing import List, Optional +from ...server.protocols.ide_protocol import AbstractIdeProtocolServer + from ...core.context import ContextProvider -from ...core.main import ContextItem, ContextItemDescription, ContextItemId -from ...core.sdk import ContinueSDK +from ...core.main import ChatMessage, ContextItem, ContextItemDescription, ContextItemId from ...libs.util.filter_files import DEFAULT_IGNORE_PATTERNS from ...libs.util.logging import logger from .util import remove_meilisearch_disallowed_chars @@ -12,9 +13,9 @@ from .util import remove_meilisearch_disallowed_chars MAX_SIZE_IN_CHARS = 50_000 -async def get_file_contents(filepath: str, sdk: ContinueSDK) -> str: +async def get_file_contents(filepath: str, ide: AbstractIdeProtocolServer) -> str: try: - return (await sdk.ide.readFile(filepath))[:MAX_SIZE_IN_CHARS] + return (await ide.readFile(filepath))[:MAX_SIZE_IN_CHARS] except Exception as _: return None @@ -38,7 +39,7 @@ class FileContextProvider(ContextProvider): item = await self.get_context_item_for_filepath(filepath) if item is None: return - await self.update_documents([item], self.sdk.ide.workspace_directory) + await self.update_documents([item], self.ide.workspace_directory) async def on_files_created(filepaths: List[str]): items = await asyncio.gather( @@ -48,7 +49,7 @@ class FileContextProvider(ContextProvider): ] ) items = [item for item in items if item is not None] - await self.update_documents(items, self.sdk.ide.workspace_directory) + await self.update_documents(items, self.ide.workspace_directory) async def on_files_deleted(filepaths: List[str]): ids = [self.get_id_for_filepath(filepath) for filepath in filepaths] @@ -56,7 +57,7 @@ class FileContextProvider(ContextProvider): await self.delete_documents(ids) async def on_files_renamed(old_filepaths: List[str], new_filepaths: List[str]): - if self.sdk.ide.workspace_directory is None: + if self.ide.workspace_directory is None: return old_ids = [self.get_id_for_filepath(filepath) for filepath in old_filepaths] @@ -69,24 +70,40 @@ class FileContextProvider(ContextProvider): new_docs = [doc for doc in new_docs if doc is not None] await self.delete_documents(old_ids) - await self.update_documents(new_docs, self.sdk.ide.workspace_directory) + await self.update_documents(new_docs, self.ide.workspace_directory) - self.sdk.ide.subscribeToFileSaved(on_file_saved) - self.sdk.ide.subscribeToFilesCreated(on_files_created) - self.sdk.ide.subscribeToFilesDeleted(on_files_deleted) - self.sdk.ide.subscribeToFilesRenamed(on_files_renamed) + self.ide.subscribeToFileSaved(on_file_saved) + self.ide.subscribeToFilesCreated(on_files_created) + self.ide.subscribeToFilesDeleted(on_files_deleted) + self.ide.subscribeToFilesRenamed(on_files_renamed) + + async def get_item(self, id: ContextItemId, query: str) -> ContextItem: + item = await super().get_item(id, query) + item.description.description = os.path.join( + self.ide.workspace_directory, item.description.description + ) + return item def get_id_for_filepath(self, absolute_filepath: str) -> str: return remove_meilisearch_disallowed_chars(absolute_filepath) + async def get_chat_message(self, item: ContextItem) -> ChatMessage: + """Returns the ChatMessage for the given ContextItem.""" + return ChatMessage( + role="user", + content=f"```{item.description.name}\n{item.content}\n```", + summary=item.description.description, + ) + async def get_context_item_for_filepath( - self, absolute_filepath: str + self, absolute_filepath: str, content: Optional[str] = None ) -> Optional[ContextItem]: - content = await get_file_contents(absolute_filepath, self.sdk) + if content is None: + content = await get_file_contents(absolute_filepath, self.ide) if content is None: return None - workspace_dir = self.sdk.ide.workspace_directory + workspace_dir = self.ide.workspace_directory if ( os.path.splitdrive(workspace_dir)[0] != os.path.splitdrive(absolute_filepath)[0] @@ -117,7 +134,7 @@ class FileContextProvider(ContextProvider): ) async def provide_context_items(self, workspace_dir: str) -> List[ContextItem]: - contents = await self.sdk.ide.listDirectoryContents(workspace_dir, True) + contents = await self.ide.listDirectoryContents(workspace_dir, True) if contents is None: return [] @@ -127,17 +144,19 @@ class FileContextProvider(ContextProvider): items = [] i = 0 + timeout = 0.1 + delta = 100 while i < len(absolute_filepaths): # Don't want to flood with too many requests items += await asyncio.gather( *[ self.get_context_item_for_filepath(filepath) - for filepath in absolute_filepaths[i : i + 100] + for filepath in absolute_filepaths[i : i + delta] ] ) - i += 100 - asyncio.sleep(0.1) + i += delta + await asyncio.sleep(timeout) items = list(filter(lambda item: item is not None, items)) @@ -147,9 +166,9 @@ class FileContextProvider(ContextProvider): if item := next( filter(lambda x: x.description.id == id, self.selected_items), None ): - await self.sdk.ide.setFileOpen( + await self.ide.setFileOpen( os.path.join( - self.sdk.ide.workspace_directory, item.description.description + self.ide.workspace_directory, item.description.description ), True, ) diff --git a/server/continuedev/plugins/context_providers/filetree.py b/server/continuedev/plugins/context_providers/filetree.py index 5b3d3a50d..fc11fce9a 100644 --- a/server/continuedev/plugins/context_providers/filetree.py +++ b/server/continuedev/plugins/context_providers/filetree.py @@ -44,7 +44,7 @@ class FileTreeContextProvider(ContextProvider): workspace_dir: str = Field(None, description="The workspace directory to display") async def _get_file_tree(self, directory: str) -> str: - contents = await self.sdk.ide.listDirectoryContents(directory, recursive=True) + contents = await self.ide.listDirectoryContents(directory, recursive=True) tree = Directory( name=split_path(self.workspace_dir)[-1], files=[], directories=[] diff --git a/server/continuedev/plugins/context_providers/highlighted_code.py b/server/continuedev/plugins/context_providers/highlighted_code.py index 7a9b0cd4b..99585a81f 100644 --- a/server/continuedev/plugins/context_providers/highlighted_code.py +++ b/server/continuedev/plugins/context_providers/highlighted_code.py @@ -1,5 +1,7 @@ +import asyncio import os -from typing import Any, Dict, List, Optional +from typing import Dict, List, Optional +from ...server.protocols.ide_protocol import AbstractIdeProtocolServer from pydantic import BaseModel @@ -32,7 +34,10 @@ class HighlightedCodeContextProvider(ContextProvider): description = "Highlight code" dynamic = True - ide: Any # IdeProtocolServer + ide: AbstractIdeProtocolServer + + class Config: + arbitrary_types_allowed = True highlighted_ranges: List[HighlightedRangeContextItem] = [] adding_highlighted_code: bool = True @@ -71,21 +76,27 @@ class HighlightedCodeContextProvider(ContextProvider): return items - async def get_chat_messages(self) -> List[ContextItem]: - ranges = self.highlighted_ranges - if len(ranges) == 0 and ( - fallback_item := await self._get_fallback_context_item() - ): - ranges = [fallback_item] + @staticmethod + async def get_range_in_file_with_contents( + ide, item: ContextItem + ) -> RangeInFileWithContents: + lines = item.description.name.split("(")[1].split(")")[0].split("-") + rif = RangeInFile( + filepath=item.description.description, + range=Range.from_shorthand(int(lines[0]) - 1, 0, int(lines[1]), 0), + ) + contents = await ide.readRangeInFile(rif) + return rif.with_contents(contents) - return [ - ChatMessage( - role="user", - content=f"Code in this file is highlighted ({r.rif.filepath}):\n```\n{r.rif.contents}\n```", - summary=f"Code in this file is highlighted: {r.rif.filepath}", - ) - for r in ranges - ] + async def get_chat_message(self, item: ContextItem) -> List[ContextItem]: + rif = await HighlightedCodeContextProvider.get_range_in_file_with_contents( + self.ide, item + ) + return ChatMessage( + role="user", + content=f"Code in this file is highlighted ({item.description.name}):\n```\n{rif.contents}\n```", + summary=f"Code in this file is highlighted: {item.description.name}", + ) def _make_sure_is_editing_range(self): """If none of the highlighted ranges are currently being edited, the first should be selected""" @@ -132,24 +143,6 @@ class HighlightedCodeContextProvider(ContextProvider): self.should_get_fallback_context_item = True self.last_added_fallback = False - async def delete_context_with_ids( - self, ids: List[ContextItemId] - ) -> List[ContextItem]: - ids_to_delete = [id.item_id for id in ids] - - kept_ranges = [] - for hr in self.highlighted_ranges: - if hr.item.description.id.item_id not in ids_to_delete: - kept_ranges.append(hr) - self.highlighted_ranges = kept_ranges - - self._make_sure_is_editing_range() - - if len(self.highlighted_ranges) == 0 and self.last_added_fallback: - self.should_get_fallback_context_item = False - - return [hr.item for hr in self.highlighted_ranges] - def _rif_to_name( self, rif: RangeInFileWithContents, @@ -274,38 +267,20 @@ class HighlightedCodeContextProvider(ContextProvider): ) -> List[ContextItem]: raise NotImplementedError() - async def manually_add_context_item(self, context_item: ContextItem): - full_file_content = await self.ide.readFile( - context_item.description.description - ) - self.highlighted_ranges.append( - HighlightedRangeContextItem( - rif=RangeInFileWithContents( - filepath=context_item.description.description, - range=Range.from_lines_snippet_in_file( - content=full_file_content, - snippet=context_item.content, - ), - contents=context_item.content, - ), - item=context_item, - ) - ) - async def preview_contents(self, id: ContextItemId): if item := next( filter(lambda x: x.item.description.id == id, self.highlighted_ranges), None ): filepath = os.path.join( - self.sdk.ide.workspace_directory, item.item.description.description + self.ide.workspace_directory, item.item.description.description ) - await self.sdk.ide.setFileOpen( + await self.ide.setFileOpen( filepath, True, ) line_nums_string = item.item.description.name.split(" ")[-1] line_nums = line_nums_string[1:-1].split("-") - await self.sdk.ide.highlightCode( + await self.ide.highlightCode( RangeInFile( filepath=filepath, range=Range.from_shorthand( diff --git a/server/continuedev/plugins/context_providers/search.py b/server/continuedev/plugins/context_providers/search.py index 9dafb159c..4c095aff3 100644 --- a/server/continuedev/plugins/context_providers/search.py +++ b/server/continuedev/plugins/context_providers/search.py @@ -1,4 +1,4 @@ -from typing import List +from typing import Any, List from pydantic import Field from ripgrepy import Ripgrepy diff --git a/server/continuedev/plugins/context_providers/terminal.py b/server/continuedev/plugins/context_providers/terminal.py index c63239e44..271c8cce5 100644 --- a/server/continuedev/plugins/context_providers/terminal.py +++ b/server/continuedev/plugins/context_providers/terminal.py @@ -28,11 +28,12 @@ class TerminalContextProvider(ContextProvider): ), ) - async def get_chat_messages(self) -> Coroutine[Any, Any, List[ChatMessage]]: - msgs = await super().get_chat_messages() - for msg in msgs: - msg.summary = msg.content[-1000:] - return msgs + async def get_chat_message( + self, item: ContextItem + ) -> Coroutine[Any, Any, List[ChatMessage]]: + msg = await super().get_chat_message(item) + msg.summary = msg.content[-1000:] + return msg async def provide_context_items(self, workspace_dir: str) -> List[ContextItem]: return [self._terminal_context_item()] @@ -41,9 +42,7 @@ class TerminalContextProvider(ContextProvider): if not id.provider_title == self.title: raise Exception("Invalid provider title for item") - terminal_contents = await self.sdk.ide.getTerminalContents( - self.get_last_n_commands - ) + terminal_contents = await self.ide.getTerminalContents(self.get_last_n_commands) terminal_contents = terminal_contents[-5000:] return self._terminal_context_item(terminal_contents) diff --git a/server/continuedev/plugins/policies/commit.py b/server/continuedev/plugins/policies/commit.py index 2fa436761..2e649aec7 100644 --- a/server/continuedev/plugins/policies/commit.py +++ b/server/continuedev/plugins/policies/commit.py @@ -13,7 +13,7 @@ from textwrap import dedent from typing import Literal from ...core.config import ContinueConfig -from ...core.main import History, Policy, Step +from ...core.main import Policy, SessionState, Step from ...core.observation import TextObservation from ...core.sdk import ContinueSDK @@ -67,8 +67,8 @@ class CommitPolicy(Policy): current_step: Literal["plan", "write", "review", "cleanup"] = "plan" - def next(self, config: ContinueConfig, history: History) -> Step: - if history.get_current() is None: + def next(self, config: ContinueConfig, session_state: SessionState) -> Step: + if len(session_state.history) == 0: return ( PlanStep(user_input=self.user_input) >> WriteCommitStep() diff --git a/server/continuedev/plugins/policies/default.py b/server/continuedev/plugins/policies/default.py index d3083fc36..5081db23f 100644 --- a/server/continuedev/plugins/policies/default.py +++ b/server/continuedev/plugins/policies/default.py @@ -1,20 +1,29 @@ from typing import Type, Union +from ..steps.clear_history import ClearHistoryStep +from ..steps.comment_code import CommentCodeStep +from ..steps.share_session import ShareSessionStep from ..steps.chroma import AnswerQuestionChroma - from ...core.config import ContinueConfig -from ...core.main import History, Policy, Step -from ...core.observation import UserInputObservation +from ...core.main import Policy, SessionState, Step from ..steps.chat import SimpleChatStep from ..steps.custom_command import CustomCommandStep from ..steps.main import EditHighlightedCodeStep from ..steps.steps_on_startup import StepsOnStartupStep +from ..steps.cmd import GenerateShellCommandStep # When importing with importlib from config.py, the classes do not pass isinstance checks. # Mapping them here is a workaround. # Original description of the problem: https://github.com/continuedev/continue/pull/581#issuecomment-1778138841 -REPLACEMENT_SLASH_COMMAND_STEPS = [AnswerQuestionChroma] +REPLACEMENT_SLASH_COMMAND_STEPS = [ + AnswerQuestionChroma, + GenerateShellCommandStep, + EditHighlightedCodeStep, + ShareSessionStep, + CommentCodeStep, + ClearHistoryStep, +] def parse_slash_command(inp: str, config: ContinueConfig) -> Union[None, Step]: @@ -64,25 +73,24 @@ class DefaultPolicy(Policy): default_step: Type[Step] = SimpleChatStep default_params: dict = {} - def next(self, config: ContinueConfig, history: History) -> Step: + def next(self, config: ContinueConfig, session_state: SessionState) -> Step: # At the very start, run initial Steps specified in the config - if history.get_current() is None: + if len(session_state.history) == 0: return StepsOnStartupStep() - observation = history.get_current().observation - if observation is not None and isinstance(observation, UserInputObservation): - # This could be defined with ObservationTypePolicy. Ergonomics not right though. - user_input = observation.user_input + last_step = session_state.history[-1] + if last_step.step_type == "UserInputStep": + user_input = last_step.description slash_command = parse_slash_command(user_input, config) if slash_command is not None: if ( getattr(slash_command, "user_input", None) is None - and history.get_current().step.user_input is not None + and last_step.params["user_input"] is not None ): - history.get_current().step.user_input = ( - history.get_current().step.user_input.split()[0] - ) + last_step.params["user_input"] = last_step.params[ + "user_input" + ].split()[0] return slash_command custom_command = parse_custom_command(user_input, config) @@ -93,5 +101,3 @@ class DefaultPolicy(Policy): return EditHighlightedCodeStep(user_input=user_input[5:]) return self.default_step(**self.default_params) - - return None diff --git a/server/continuedev/plugins/policies/headless.py b/server/continuedev/plugins/policies/headless.py index 9fa0f3f26..19f36a88a 100644 --- a/server/continuedev/plugins/policies/headless.py +++ b/server/continuedev/plugins/policies/headless.py @@ -1,5 +1,5 @@ from ...core.config import ContinueConfig -from ...core.main import History, Policy, Step +from ...core.main import Policy, SessionState, Step from ...core.observation import TextObservation from ...core.steps import ShellCommandsStep from ...plugins.steps.on_traceback import DefaultOnTracebackStep @@ -8,11 +8,14 @@ from ...plugins.steps.on_traceback import DefaultOnTracebackStep class HeadlessPolicy(Policy): command: str - def next(self, config: ContinueConfig, history: History) -> Step: - if history.get_current() is None: + def next(self, config: ContinueConfig, session_state: SessionState) -> Step: + if len(session_state.history) == 0: return ShellCommandsStep(cmds=[self.command]) - observation = history.get_current().observation - if isinstance(observation, TextObservation): - return DefaultOnTracebackStep(output=observation.text) + + observations = session_state.history[-1].observations + if traceback_obs := next( + filter(lambda obs: isinstance(obs, TextObservation), observations), None + ): + return DefaultOnTracebackStep(output=traceback_obs.text) return None diff --git a/server/continuedev/plugins/recipes/AddTransformRecipe/README.md b/server/continuedev/plugins/recipes/AddTransformRecipe/README.md deleted file mode 100644 index 78d603a2d..000000000 --- a/server/continuedev/plugins/recipes/AddTransformRecipe/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# AddTransformRecipe - -Uses the Chess.com API example to show how to add map and filter Python transforms to a dlt pipeline. - -Background - -- https://dlthub.com/docs/general-usage/resource#filter-transform-and-pivot-data -- https://dlthub.com/docs/customizations/customizing-pipelines/renaming_columns -- https://dlthub.com/docs/customizations/customizing-pipelines/pseudonymizing_columns diff --git a/server/continuedev/plugins/recipes/AddTransformRecipe/dlt_transform_docs.md b/server/continuedev/plugins/recipes/AddTransformRecipe/dlt_transform_docs.md deleted file mode 100644 index 864aea870..000000000 --- a/server/continuedev/plugins/recipes/AddTransformRecipe/dlt_transform_docs.md +++ /dev/null @@ -1,142 +0,0 @@ -# Customize resources - -## Filter, transform and pivot data - -You can attach any number of transformations that are evaluated on item per item basis to your resource. The available transformation types: - -- map - transform the data item (resource.add_map) -- filter - filter the data item (resource.add_filter) -- yield map - a map that returns iterator (so single row may generate many rows - resource.add_yield_map) - -Example: We have a resource that loads a list of users from an api endpoint. We want to customize it so: - -- we remove users with user_id == 'me' -- we anonymize user data - Here's our resource: - -```python -import dlt - -@dlt.resource(write_disposition='replace') -def users(): - ... - users = requests.get(...) - ... - yield users -``` - -Here's our script that defines transformations and loads the data. - -```python -from pipedrive import users - -def anonymize_user(user_data): - user_data['user_id'] = hash_str(user_data['user_id']) - user_data['user_email'] = hash_str(user_data['user_email']) - return user_data - -# add the filter and anonymize function to users resource and enumerate -for user in users().add_filter(lambda user: user['user_id'] != 'me').add_map(anonymize_user): -print(user) -``` - -Here is a more complex example of a filter transformation: - - # Renaming columns - ## Renaming columns by replacing the special characters - - In the example below, we create a dummy source with special characters in the name. We then write a function that we intend to apply to the resource to modify its output (i.e. replacing the German umlaut): replace_umlauts_in_dict_keys. - ```python - import dlt - - # create a dummy source with umlauts (special characters) in key names (um) - @dlt.source - def dummy_source(prefix: str = None): - @dlt.resource - def dummy_data(): - for _ in range(100): - yield {f'Objekt_{_}':{'Größe':_, 'Äquivalenzprüfung':True}} - return dummy_data(), - - def replace_umlauts_in_dict_keys(d): - # Replaces umlauts in dictionary keys with standard characters. - umlaut_map = {'ä': 'ae', 'ö': 'oe', 'ü': 'ue', 'ß': 'ss', 'Ä': 'Ae', 'Ö': 'Oe', 'Ü': 'Ue'} - result = {} - for k, v in d.items(): - new_key = ''.join(umlaut_map.get(c, c) for c in k) - if isinstance(v, dict): - result[new_key] = replace_umlauts_in_dict_keys(v) - else: - result[new_key] = v - return result - - # We can add the map function to the resource - - # 1. Create an instance of the source so you can edit it. - data_source = dummy_source() - - # 2. Modify this source instance's resource - data_source = data_source.dummy_data().add_map(replace_umlauts_in_dict_keys) - - # 3. Inspect your result - for row in data_source: - print(row) - - # {'Objekt_0': {'Groesse': 0, 'Aequivalenzpruefung': True}} - # ... - ``` - -Here is a more complex example of a map transformation: - -# Pseudonymizing columns - -## Pseudonymizing (or anonymizing) columns by replacing the special characters - -Pseudonymization is a deterministic way to hide personally identifiable info (PII), enabling us to consistently achieve the same mapping. If instead you wish to anonymize, you can delete the data, or replace it with a constant. In the example below, we create a dummy source with a PII column called 'name', which we replace with deterministic hashes (i.e. replacing the German umlaut). - -```python -import dlt -import hashlib - -@dlt.source -def dummy_source(prefix: str = None): - @dlt.resource - def dummy_data(): - for _ in range(3): - yield {'id':_, 'name': f'Jane Washington {_}'} - return dummy_data(), - -def pseudonymize_name(doc): - Pseudonmyisation is a deterministic type of PII-obscuring - Its role is to allow identifying users by their hash, without revealing the underlying info. - - # add a constant salt to generate - salt = 'WI@N57%zZrmk#88c' - salted_string = doc['name'] + salt - sh = hashlib.sha256() - sh.update(salted_string.encode()) - hashed_string = sh.digest().hex() - doc['name'] = hashed_string - return doc - - # run it as is - for row in dummy_source().dummy_data().add_map(pseudonymize_name): - print(row) - - #{'id': 0, 'name': '96259edb2b28b48bebce8278c550e99fbdc4a3fac8189e6b90f183ecff01c442'} - #{'id': 1, 'name': '92d3972b625cbd21f28782fb5c89552ce1aa09281892a2ab32aee8feeb3544a1'} - #{'id': 2, 'name': '443679926a7cff506a3b5d5d094dc7734861352b9e0791af5d39db5a7356d11a'} - - # Or create an instance of the data source, modify the resource and run the source. - - # 1. Create an instance of the source so you can edit it. - data_source = dummy_source() - # 2. Modify this source instance's resource - data_source = data_source.dummy_data().add_map(replace_umlauts_in_dict_keys) - # 3. Inspect your result - for row in data_source: - print(row) - - pipeline = dlt.pipeline(pipeline_name='example', destination='bigquery', dataset_name='normalized_data') - load_info = pipeline.run(data_source) -``` diff --git a/server/continuedev/plugins/recipes/AddTransformRecipe/main.py b/server/continuedev/plugins/recipes/AddTransformRecipe/main.py deleted file mode 100644 index 583cef1ab..000000000 --- a/server/continuedev/plugins/recipes/AddTransformRecipe/main.py +++ /dev/null @@ -1,31 +0,0 @@ -from textwrap import dedent - -from ....core.main import Step -from ....core.sdk import ContinueSDK -from ....core.steps import MessageStep, WaitForUserInputStep -from .steps import AddTransformStep, SetUpChessPipelineStep - - -class AddTransformRecipe(Step): - hide: bool = True - - async def run(self, sdk: ContinueSDK): - text_observation = await sdk.run_step( - MessageStep( - message=dedent( - """\ - This recipe will walk you through the process of adding a transform to a dlt pipeline that uses the chess.com API source. With the help of Continue, you will: - - Set up a dlt pipeline for the chess.com API - - Add a filter or map transform to the pipeline - - Run the pipeline and view the transformed data in a Streamlit app""" - ), - name="Add transformation to a dlt pipeline", - ) - >> SetUpChessPipelineStep() - >> WaitForUserInputStep( - prompt="How do you want to transform the Chess.com API data before loading it? For example, you could filter out games that ended in a draw." - ) - ) - await sdk.run_step( - AddTransformStep(transform_description=text_observation.text) - ) diff --git a/server/continuedev/plugins/recipes/AddTransformRecipe/steps.py b/server/continuedev/plugins/recipes/AddTransformRecipe/steps.py deleted file mode 100644 index 61638374e..000000000 --- a/server/continuedev/plugins/recipes/AddTransformRecipe/steps.py +++ /dev/null @@ -1,106 +0,0 @@ -import os -from textwrap import dedent - -from ....core.main import Step -from ....core.sdk import ContinueSDK, Models -from ....core.steps import MessageStep -from ....libs.util.paths import find_data_file - -AI_ASSISTED_STRING = "(✨ AI-Assisted ✨)" - - -class SetUpChessPipelineStep(Step): - hide: bool = True - name: str = "Setup Chess.com API dlt Pipeline" - - async def describe(self, models: Models): - return "This step will create a new dlt pipeline that loads data from the chess.com API." - - async def run(self, sdk: ContinueSDK): - # running commands to get started when creating a new dlt pipeline - await sdk.run( - [ - "python3 -m venv .env", - "source .env/bin/activate", - "pip install dlt", - "dlt --non-interactive init chess duckdb", - "pip install -r requirements.txt", - "pip install pandas streamlit", # Needed for the pipeline show step later - ], - name="Set up Python environment", - description=dedent( - """\ - - Create a Python virtual environment: `python3 -m venv .env` - - Activate the virtual environment: `source .env/bin/activate` - - Install dlt: `pip install dlt` - - Create a new dlt pipeline called "chess" that loads data into a local DuckDB instance: `dlt init chess duckdb` - - Install the Python dependencies for the pipeline: `pip install -r requirements.txt`""" - ), - ) - - -class AddTransformStep(Step): - hide: bool = True - - # e.g. "Use the `python-chess` library to decode the moves in the game data" - transform_description: str - - async def run(self, sdk: ContinueSDK): - source_name = "chess" - filename = f"{source_name}_pipeline.py" - abs_filepath = os.path.join(sdk.ide.workspace_directory, filename) - - # Open the file and highlight the function to be edited - await sdk.ide.setFileOpen(abs_filepath) - - await sdk.run_step( - MessageStep( - message=dedent( - """\ - This step will customize your resource function with a transform of your choice: - - Add a filter or map transformation depending on your request - - Load the data into a local DuckDB instance - - Open up a Streamlit app for you to view the data""" - ), - name="Write transformation function", - ) - ) - - with open(find_data_file("dlt_transform_docs.md")) as f: - dlt_transform_docs = f.read() - - prompt = dedent( - f"""\ - Task: Write a transform function using the description below and then use `add_map` or `add_filter` from the `dlt` library to attach it a resource. - - Description: {self.transform_description} - - Here are some docs pages that will help you better understand how to use `dlt`. - - {dlt_transform_docs}""" - ) - - # edit the pipeline to add a transform function and attach it to a resource - await sdk.edit_file( - filename=filename, - prompt=prompt, - name=f"Writing transform function {AI_ASSISTED_STRING}", - ) - - await sdk.wait_for_user_confirmation( - "Press Continue to confirm that the changes are okay before we run the pipeline." - ) - - # run the pipeline and load the data - await sdk.run( - f"python3 {filename}", - name="Run the pipeline", - description=f"Running `python3 {filename}` to load the data into a local DuckDB instance", - ) - - # run a streamlit app to show the data - await sdk.run( - f"dlt pipeline {source_name}_pipeline show", - name="Show data in a Streamlit app", - description=f"Running `dlt pipeline {source_name} show` to show the data in a Streamlit app, where you can view and play with the data.", - ) diff --git a/server/continuedev/plugins/recipes/CreatePipelineRecipe/README.md b/server/continuedev/plugins/recipes/CreatePipelineRecipe/README.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/server/continuedev/plugins/recipes/CreatePipelineRecipe/main.py b/server/continuedev/plugins/recipes/CreatePipelineRecipe/main.py deleted file mode 100644 index 56e6f055f..000000000 --- a/server/continuedev/plugins/recipes/CreatePipelineRecipe/main.py +++ /dev/null @@ -1,40 +0,0 @@ -from textwrap import dedent - -from ....core.main import Step -from ....core.sdk import ContinueSDK -from ....core.steps import MessageStep, WaitForUserInputStep -from .steps import RunQueryStep, SetupPipelineStep, ValidatePipelineStep - - -class CreatePipelineRecipe(Step): - hide: bool = True - - async def run(self, sdk: ContinueSDK): - text_observation = await sdk.run_step( - MessageStep( - name="Building your first dlt pipeline", - message=dedent( - """\ - This recipe will walk you through the process of creating a dlt pipeline for your chosen data source. With the help of Continue, you will: - - Create a Python virtual environment with dlt installed - - Run `dlt init` to generate a pipeline template - - Write the code to call the API - - Add any required API keys to the `secrets.toml` file - - Test that the API call works - - Load the data into a local DuckDB instance - - Write a query to view the data""" - ), - ) - >> WaitForUserInputStep( - prompt="What API do you want to load data from? (e.g. weatherapi.com, chess.com)" - ) - ) - await sdk.run_step( - SetupPipelineStep(api_description=text_observation.text) - >> ValidatePipelineStep() - >> RunQueryStep() - >> MessageStep( - name="Congrats!", - message="You've successfully created your first dlt pipeline! 🎉", - ) - ) diff --git a/server/continuedev/plugins/recipes/CreatePipelineRecipe/steps.py b/server/continuedev/plugins/recipes/CreatePipelineRecipe/steps.py deleted file mode 100644 index 65e7182dc..000000000 --- a/server/continuedev/plugins/recipes/CreatePipelineRecipe/steps.py +++ /dev/null @@ -1,243 +0,0 @@ -import os -import time -from textwrap import dedent - -from ....core.main import Step -from ....core.sdk import ContinueSDK, Models -from ....core.steps import MessageStep -from ....models.filesystem import RangeInFile -from ....models.filesystem_edit import AddFile, FileEdit -from ....models.main import Range - -AI_ASSISTED_STRING = "(✨ AI-Assisted ✨)" - - -class SetupPipelineStep(Step): - hide: bool = True - name: str = "Setup dlt Pipeline" - - api_description: str # e.g. "I want to load data from the weatherapi.com API" - - async def describe(self, models: Models): - return dedent( - f"""\ - This step will create a new dlt pipeline that loads data from an API, as per your request: - {self.api_description} - """ - ) - - async def run(self, sdk: ContinueSDK): - sdk.context.set("api_description", self.api_description) - - source_name = ( - await sdk.models.summarize.complete( - f"Write a snake_case name for the data source described by {self.api_description}: " - ) - ).strip() - filename = f"{source_name}.py" - - # running commands to get started when creating a new dlt pipeline - await sdk.run( - [ - "python3 -m venv .env", - "source .env/bin/activate", - "pip install dlt", - f"dlt --non-interactive init {source_name} duckdb", - "pip install -r requirements.txt", - ], - description=dedent( - f"""\ - Running the following commands: - - `python3 -m venv .env`: Create a Python virtual environment - - `source .env/bin/activate`: Activate the virtual environment - - `pip install dlt`: Install dlt - - `dlt init {source_name} duckdb`: Create a new dlt pipeline called {source_name} that loads data into a local DuckDB instance - - `pip install -r requirements.txt`: Install the Python dependencies for the pipeline""" - ), - name="Setup Python environment", - ) - - # editing the resource function to call the requested API - resource_function_range = Range.from_shorthand(15, 0, 30, 0) - await sdk.ide.highlightCode( - RangeInFile( - filepath=os.path.join(await sdk.ide.getWorkspaceDirectory(), filename), - range=resource_function_range, - ), - "#ffa50033", - ) - - # sdk.set_loading_message("Writing code to call the API...") - await sdk.edit_file( - range=resource_function_range, - filename=filename, - prompt=f"Edit the resource function to call the API described by this: {self.api_description}. Do not move or remove the exit() call in __main__.", - name=f"Edit the resource function to call the API {AI_ASSISTED_STRING}", - ) - - time.sleep(1) - - # wait for user to put API key in secrets.toml - await sdk.ide.setFileOpen( - await sdk.ide.getWorkspaceDirectory() + "/.dlt/secrets.toml" - ) - await sdk.wait_for_user_confirmation( - "If this service requires an API key, please add it to the `secrets.toml` file and then press `Continue`." - ) - - sdk.context.set("source_name", source_name) - - -class ValidatePipelineStep(Step): - hide: bool = True - - async def run(self, sdk: ContinueSDK): - workspace_dir = await sdk.ide.getWorkspaceDirectory() - source_name = sdk.context.get("source_name") - filename = f"{source_name}.py" - - # await sdk.run_step(MessageStep(name="Validate the pipeline", message=dedent("""\ - # Next, we will validate that your dlt pipeline is working as expected: - # - Test that the API call works - # - Load the data into a local DuckDB instance - # - Write a query to view the data - # """))) - - # test that the API call works - output = await sdk.run( - f"python3 {filename}", - name="Test the pipeline", - description=f"Running `python3 {filename}` to test loading data from the API", - handle_error=False, - ) - - # If it fails, return the error - if "Traceback" in output or "SyntaxError" in output: - output = "Traceback" + output.split("Traceback")[-1] - file_content = await sdk.ide.readFile(os.path.join(workspace_dir, filename)) - suggestion = await sdk.models.summarize.complete( - dedent( - f"""\ - ```python - {file_content} - ``` - This above code is a dlt pipeline that loads data from an API. The function with the @resource decorator is responsible for calling the API and returning the data. While attempting to run the pipeline, the following error occurred: - - ```ascii - {output} - ``` - - This is a brief summary of the error followed by a suggestion on how it can be fixed by editing the resource function:""" - ) - ) - - api_documentation_url = await sdk.models.summarize.complete( - dedent( - f"""\ - The API I am trying to call is the '{sdk.context.get('api_description')}'. I tried calling it in the @resource function like this: - ```python - {file_content} - ``` - What is the URL for the API documentation that will help me learn how to make this call? Please format in markdown so I can click the link.""" - ) - ) - - sdk.raise_exception( - title=f"Error while running pipeline.\nFix the resource function in {filename} and rerun this step", - message=output, - with_step=MessageStep( - name=f"Suggestion to solve error {AI_ASSISTED_STRING}", - message=dedent( - f"""\ - {suggestion} - - {api_documentation_url} - - After you've fixed the code, click the retry button at the top of the Validate Pipeline step above.""" - ), - ), - ) - - # remove exit() from the main main function - await sdk.run_step( - MessageStep( - name="Remove early exit() from main function", - message="Remove the early exit() from the main function now that we are done testing and want the pipeline to load the data into DuckDB.", - ) - ) - - contents = await sdk.ide.readFile(os.path.join(workspace_dir, filename)) - replacement = "\n".join( - list(filter(lambda line: line.strip() != "exit()", contents.split("\n"))) - ) - await sdk.ide.applyFileSystemEdit( - FileEdit( - filepath=os.path.join(workspace_dir, filename), - replacement=replacement, - range=Range.from_entire_file(contents), - ) - ) - - # load the data into the DuckDB instance - await sdk.run( - f"python3 {filename}", - name="Load data into DuckDB", - description=f"Running python3 {filename} to load data into DuckDB", - ) - - tables_query_code = dedent( - f"""\ - import duckdb - - # connect to DuckDB instance - conn = duckdb.connect(database="{source_name}.duckdb") - - # list all tables - print(conn.sql("DESCRIBE"))""" - ) - - query_filename = os.path.join(workspace_dir, "query.py") - await sdk.apply_filesystem_edit( - AddFile(filepath=query_filename, content=tables_query_code), - name="Add query.py file", - description="Adding a file called `query.py` to the workspace that will run a test query on the DuckDB instance", - ) - - -class RunQueryStep(Step): - hide: bool = True - - async def run(self, sdk: ContinueSDK): - output = await sdk.run( - ".env/bin/python3 query.py", - name="Run test query", - description="Running `.env/bin/python3 query.py` to test that the data was loaded into DuckDB as expected", - handle_error=False, - ) - - if "Traceback" in output or "SyntaxError" in output: - suggestion = await sdk.models.summarize.complete( - dedent( - f"""\ - ```python - {await sdk.ide.readFile(os.path.join(sdk.ide.workspace_directory, "query.py"))} - ``` - This above code is a query that runs on the DuckDB instance. While attempting to run the query, the following error occurred: - - ```ascii - {output} - ``` - - This is a brief summary of the error followed by a suggestion on how it can be fixed:""" - ) - ) - - sdk.raise_exception( - title="Error while running query", - message=output, - with_step=MessageStep( - name=f"Suggestion to solve error {AI_ASSISTED_STRING}", - message=suggestion - + "\n\nIt is also very likely that no duckdb table was created, which can happen if the resource function did not yield any data. Please make sure that it is yielding data and then rerun this step.", - ), - ) diff --git a/server/continuedev/plugins/recipes/DDtoBQRecipe/README.md b/server/continuedev/plugins/recipes/DDtoBQRecipe/README.md deleted file mode 100644 index d50324f7d..000000000 --- a/server/continuedev/plugins/recipes/DDtoBQRecipe/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# DDtoBQRecipe - -Move from using DuckDB to Google BigQuery as the destination for your `dlt` pipeline diff --git a/server/continuedev/plugins/recipes/DDtoBQRecipe/dlt_duckdb_to_bigquery_docs.md b/server/continuedev/plugins/recipes/DDtoBQRecipe/dlt_duckdb_to_bigquery_docs.md deleted file mode 100644 index eb68e1170..000000000 --- a/server/continuedev/plugins/recipes/DDtoBQRecipe/dlt_duckdb_to_bigquery_docs.md +++ /dev/null @@ -1,85 +0,0 @@ -### Credentials Missing: ConfigFieldMissingException - -You'll see this exception if `dlt` cannot find your bigquery credentials. In the exception below all of them ('project_id', 'private_key', 'client_email') are missing. The exception gives you also the list of all lookups for configuration performed - [here we explain how to read such list](run-a-pipeline.md#missing-secret-or-configuration-values). - -``` -dlt.common.configuration.exceptions.ConfigFieldMissingException: Following fields are missing: ['project_id', 'private_key', 'client_email'] in configuration with spec GcpServiceAccountCredentials - for field "project_id" config providers and keys were tried in following order: - In Environment Variables key WEATHERAPI__DESTINATION__BIGQUERY__CREDENTIALS__PROJECT_ID was not found. - In Environment Variables key WEATHERAPI__DESTINATION__CREDENTIALS__PROJECT_ID was not found. -``` - -The most common cases for the exception: - -1. The secrets are not in `secrets.toml` at all -2. The are placed in wrong section. For example the fragment below will not work: - -```toml -[destination.bigquery] -project_id = "project_id" # please set me up! -``` - -3. You run the pipeline script from the **different** folder from which it is saved. For example `python weatherapi_demo/weatherapi.py` will run the script from `weatherapi_demo` folder but the current working directory is folder above. This prevents `dlt` from finding `weatherapi_demo/.dlt/secrets.toml` and filling-in credentials. - -### Placeholders still in secrets.toml - -Here BigQuery complain that the format of the `private_key` is incorrect. Practically this most often happens if you forgot to replace the placeholders in `secrets.toml` with real values - -``` - -Connection with BigQuerySqlClient to dataset name weatherapi_data failed. Please check if you configured the credentials at all and provided the right credentials values. You can be also denied access or your internet connection may be down. The actual reason given is: No key could be detected. -``` - -### Bigquery not enabled - -[You must enable Bigquery API.](https://console.cloud.google.com/apis/dashboard) - -``` - -403 POST https://bigquery.googleapis.com/bigquery/v2/projects/bq-walkthrough/jobs?prettyPrint=false: BigQuery API has not been used in project 364286133232 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/bigquery.googleapis.com/overview?project=364286133232 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry. - -Location: EU -Job ID: a5f84253-3c10-428b-b2c8-1a09b22af9b2 - [{'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': 'Google developers console API activation', 'url': 'https://console.developers.google.com/apis/api/bigquery.googleapis.com/overview?project=364286133232'}]}, {'@type': 'type.googleapis.com/google.rpc.ErrorInfo', 'reason': 'SERVICE_DISABLED', 'domain': 'googleapis.com', 'metadata': {'service': 'bigquery.googleapis.com', 'consumer': 'projects/364286133232'}}] -``` - -### Lack of permissions to create jobs - -Add `BigQuery Job User` as described in the [destination page](../destinations/bigquery.md). - -``` - -403 POST https://bigquery.googleapis.com/bigquery/v2/projects/bq-walkthrough/jobs?prettyPrint=false: Access Denied: Project bq-walkthrough: User does not have bigquery.jobs.create permission in project bq-walkthrough. - -Location: EU -Job ID: c1476d2c-883c-43f7-a5fe-73db195e7bcd -``` - -### Lack of permissions to query/write data - -Add `BigQuery Data Editor` as described in the [destination page](../destinations/bigquery.md). - -``` - -403 Access Denied: Table bq-walkthrough:weatherapi_data._dlt_loads: User does not have permission to query table bq-walkthrough:weatherapi_data._dlt_loads, or perhaps it does not exist in location EU. - -Location: EU -Job ID: 299a92a3-7761-45dd-a433-79fdeb0c1a46 -``` - -### Lack of billing / BigQuery in sandbox mode - -`dlt` does not support BigQuery when project has no billing enabled. If you see a stack trace where following warning appears: - -``` - -403 Billing has not been enabled for this project. Enable billing at https://console.cloud.google.com/billing. DML queries are not allowed in the free tier. Set up a billing account to remove this restriction. -``` - -or - -``` -2023-06-08 16:16:26,769|[WARNING ]|8096|dlt|load.py|complete_jobs:198|Job for weatherapi_resource_83b8ac9e98_4_jsonl retried in load 1686233775.932288 with message {"error_result":{"reason":"billingNotEnabled","message":"Billing has not been enabled for this project. Enable billing at https://console.cloud.google.com/billing. Table expiration time must be less than 60 days while in sandbox mode."},"errors":[{"reason":"billingNotEnabled","message":"Billing has not been enabled for this project. Enable billing at https://console.cloud.google.com/billing. Table expiration time must be less than 60 days while in sandbox mode."}],"job_start":"2023-06-08T14:16:26.850000Z","job_end":"2023-06-08T14:16:26.850000Z","job_id":"weatherapi_resource_83b8ac9e98_4_jsonl"} -``` - -you must enable the billing. diff --git a/server/continuedev/plugins/recipes/DDtoBQRecipe/main.py b/server/continuedev/plugins/recipes/DDtoBQRecipe/main.py deleted file mode 100644 index 651495006..000000000 --- a/server/continuedev/plugins/recipes/DDtoBQRecipe/main.py +++ /dev/null @@ -1,31 +0,0 @@ -from textwrap import dedent - -from ....core.main import Step -from ....core.sdk import ContinueSDK -from ....core.steps import MessageStep -from .steps import LoadDataStep, SetUpChessPipelineStep, SwitchDestinationStep - -# Based on the following guide: -# https://github.com/dlt-hub/dlt/pull/392 - - -class DDtoBQRecipe(Step): - hide: bool = True - - async def run(self, sdk: ContinueSDK): - await sdk.run_step( - MessageStep( - name="Move from using DuckDB to Google BigQuery as the destination", - message=dedent( - """\ - This recipe will walk you through the process of moving from using DuckDB to Google BigQuery as the destination for your dlt pipeline. With the help of Continue, you will: - - Set up a dlt pipeline for the chess.com API - - Switch destination from DuckDB to Google BigQuery - - Add BigQuery credentials to your secrets.toml file - - Run the pipeline again to load data to BigQuery""" - ), - ) - >> SetUpChessPipelineStep() - >> SwitchDestinationStep() - >> LoadDataStep() - ) diff --git a/server/continuedev/plugins/recipes/DDtoBQRecipe/steps.py b/server/continuedev/plugins/recipes/DDtoBQRecipe/steps.py deleted file mode 100644 index dfe25d9e0..000000000 --- a/server/continuedev/plugins/recipes/DDtoBQRecipe/steps.py +++ /dev/null @@ -1,119 +0,0 @@ -import os -from textwrap import dedent - -from ....core.main import Step -from ....core.sdk import ContinueSDK, Models -from ....core.steps import MessageStep -from ....libs.util.paths import find_data_file -from ....plugins.steps.find_and_replace import FindAndReplaceStep - -AI_ASSISTED_STRING = "(✨ AI-Assisted ✨)" - - -class SetUpChessPipelineStep(Step): - hide: bool = True - name: str = "Setup Chess.com API dlt Pipeline" - - async def describe(self, models: Models): - return "This step will create a new dlt pipeline that loads data from the chess.com API." - - async def run(self, sdk: ContinueSDK): - # running commands to get started when creating a new dlt pipeline - await sdk.run( - [ - "python3 -m venv .env", - "source .env/bin/activate", - "pip install dlt", - "dlt --non-interactive init chess duckdb", - "pip install -r requirements.txt", - ], - name="Set up Python environment", - description=dedent( - """\ - Running the following commands: - - `python3 -m venv .env`: Create a Python virtual environment - - `source .env/bin/activate`: Activate the virtual environment - - `pip install dlt`: Install dlt - - `dlt init chess duckdb`: Create a new dlt pipeline called "chess" that loads data into a local DuckDB instance - - `pip install -r requirements.txt`: Install the Python dependencies for the pipeline""" - ), - ) - - -class SwitchDestinationStep(Step): - hide: bool = True - - async def run(self, sdk: ContinueSDK): - # Switch destination from DuckDB to Google BigQuery - filepath = os.path.join(sdk.ide.workspace_directory, "chess_pipeline.py") - await sdk.run_step( - FindAndReplaceStep( - filepath=filepath, - pattern="destination='duckdb'", - replacement="destination='bigquery'", - ) - ) - - # Add BigQuery credentials to your secrets.toml file - template = dedent( - """\ - [destination.bigquery.credentials] - location = "US" # change the location of the data - project_id = "project_id" # please set me up! - private_key = "private_key" # please set me up! - client_email = "client_email" # please set me up!""" - ) - - # wait for user to put API key in secrets.toml - secrets_path = os.path.join(sdk.ide.workspace_directory, ".dlt/secrets.toml") - await sdk.ide.setFileOpen(secrets_path) - await sdk.append_to_file(secrets_path, template) - - # append template to bottom of secrets.toml - await sdk.wait_for_user_confirmation( - "Please add your GCP credentials to `secrets.toml` file and then press `Continue`" - ) - - -class LoadDataStep(Step): - name: str = "Load data to BigQuery" - hide: bool = True - - async def run(self, sdk: ContinueSDK): - # Run the pipeline again to load data to BigQuery - output = await sdk.run( - ".env/bin/python3 chess_pipeline.py", - name="Load data to BigQuery", - description="Running `.env/bin/python3 chess_pipeline.py` to load data to Google BigQuery", - ) - - if "Traceback" in output or "SyntaxError" in output: - with open(find_data_file("dlt_duckdb_to_bigquery_docs.md"), "r") as f: - docs = f.read() - - output = "Traceback" + output.split("Traceback")[-1] - suggestion = await sdk.models.default.complete( - dedent( - f"""\ - When trying to load data into BigQuery, the following error occurred: - - ```ascii - {output} - ``` - - Here is documentation describing common errors and their causes/solutions: - - {docs} - - This is a brief summary of the error followed by a suggestion on how it can be fixed:""" - ) - ) - - sdk.raise_exception( - title="Error while running query", - message=output, - with_step=MessageStep( - name=f"Suggestion to solve error {AI_ASSISTED_STRING}", - message=suggestion, - ), - ) diff --git a/server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/README.md b/server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/README.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/main.py b/server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/main.py deleted file mode 100644 index 5b0bd320d..000000000 --- a/server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/main.py +++ /dev/null @@ -1,86 +0,0 @@ -from textwrap import dedent - -from ....core.main import Step -from ....core.sdk import ContinueSDK -from ....core.steps import MessageStep -from ....plugins.steps.input.nl_multiselect import NLMultiselectStep -from .steps import DeployAirflowStep, RunPipelineStep, SetupPipelineStep - -# https://github.com/dlt-hub/dlt-deploy-template/blob/master/airflow-composer/dag_template.py -# https://www.notion.so/dlthub/Deploy-a-pipeline-with-Airflow-245fd1058652479494307ead0b5565f3 -# 1. What verified pipeline do you want to deploy with Airflow? -# 2. Set up selected verified pipeline -# 3. Deploy selected verified pipeline with Airflow -# 4. Set up Airflow locally? - - -class DeployPipelineAirflowRecipe(Step): - hide: bool = True - - async def run(self, sdk: ContinueSDK): - source_name = await sdk.run_step( - MessageStep( - name="Deploying a pipeline to Airflow", - message=dedent( - """\ - This recipe will show you how to deploy a pipeline to Airflow. With the help of Continue, you will: - - Select a dlt-verified pipeline - - Setup the pipeline - - Deploy it to Airflow - - Optionally, setup Airflow locally""" - ), - ) - >> NLMultiselectStep( - prompt=dedent( - """\ - Which verified pipeline do you want to deploy with Airflow? The options are: - - Asana - - Chess.com - - Facebook Ads - - GitHub - - Google Analytics - - Google Sheets - - HubSpot - - Jira - - Matomo - - Mux - - Notion - - Pipedrive - - Pokemon - - Salesforce - - Shopify - - Strapi - - Stripe - - SQL Database - - Workable - - Zendesk""" - ), - options=[ - "asana_dlt", - "chess", - "github", - "google_analytics", - "google_sheets", - "hubspot", - "matomo", - "pipedrive", - "shopify_dlt", - "strapi", - "zendesk", - "facebook_ads", - "jira", - "mux", - "notion", - "pokemon", - "salesforce", - "stripe_analytics", - "sql_database", - "workable", - ], - ) - ) - await sdk.run_step( - SetupPipelineStep(source_name=source_name) - >> RunPipelineStep(source_name=source_name) - >> DeployAirflowStep(source_name=source_name) - ) diff --git a/server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/steps.py b/server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/steps.py deleted file mode 100644 index e4a932af3..000000000 --- a/server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/steps.py +++ /dev/null @@ -1,125 +0,0 @@ -import os -from textwrap import dedent - -from ....core.main import Step -from ....core.sdk import ContinueSDK, Models -from ....core.steps import MessageStep -from ....plugins.steps.find_and_replace import FindAndReplaceStep - -AI_ASSISTED_STRING = "(✨ AI-Assisted ✨)" - - -class SetupPipelineStep(Step): - hide: bool = True - name: str = "Setup dlt Pipeline" - - source_name: str - - async def describe(self, models: Models): - pass - - async def run(self, sdk: ContinueSDK): - await sdk.run( - [ - "python3 -m venv .env", - "source .env/bin/activate", - "pip install dlt", - f"dlt --non-interactive init {self.source_name} duckdb", - "pip install -r requirements.txt", - ], - description=dedent( - f"""\ - Running the following commands: - - `python3 -m venv .env`: Create a Python virtual environment - - `source .env/bin/activate`: Activate the virtual environment - - `pip install dlt`: Install dlt - - `dlt init {self.source_name} duckdb`: Create a new dlt pipeline called {self.source_name} that loads data into a local DuckDB instance - - `pip install -r requirements.txt`: Install the Python dependencies for the pipeline""" - ), - name="Setup Python environment", - ) - - -class RunPipelineStep(Step): - hide: bool = True - name: str = "Run dlt Pipeline" - - source_name: str - - async def describe(self, models: Models): - pass - - async def run(self, sdk: ContinueSDK): - await sdk.run( - [ - f"python3 {self.source_name}_pipeline.py", - ], - description=dedent( - f"""\ - Running the command `python3 {self.source_name}_pipeline.py to run the pipeline: """ - ), - name="Run dlt pipeline", - ) - - -class DeployAirflowStep(Step): - hide: bool = True - source_name: str - - async def run(self, sdk: ContinueSDK): - # Run dlt command to deploy pipeline to Airflow - await sdk.run( - [ - "git init", - f"dlt --non-interactive deploy {self.source_name}_pipeline.py airflow-composer", - ], - description="Running `dlt deploy airflow` to deploy the dlt pipeline to Airflow", - name="Deploy dlt pipeline to Airflow", - ) - - # Get filepaths, open the DAG file - directory = await sdk.ide.getWorkspaceDirectory() - pipeline_filepath = os.path.join(directory, f"{self.source_name}_pipeline.py") - dag_filepath = os.path.join( - directory, f"dags/dag_{self.source_name}_pipeline.py" - ) - - await sdk.ide.setFileOpen(dag_filepath) - - # Replace the pipeline name and dataset name - await sdk.run_step( - FindAndReplaceStep( - filepath=pipeline_filepath, - pattern="'pipeline_name'", - replacement=f"'{self.source_name}_pipeline'", - ) - ) - await sdk.run_step( - FindAndReplaceStep( - filepath=pipeline_filepath, - pattern="'dataset_name'", - replacement=f"'{self.source_name}_data'", - ) - ) - await sdk.run_step( - FindAndReplaceStep( - filepath=pipeline_filepath, - pattern="pipeline_or_source_script", - replacement=f"{self.source_name}_pipeline", - ) - ) - - # Prompt the user for the DAG schedule - # edit_dag_range = Range.from_shorthand(18, 0, 23, 0) - # await sdk.ide.highlightCode(range_in_file=RangeInFile(filepath=dag_filepath, range=edit_dag_range), color="#33993333") - # response = await sdk.run_step(WaitForUserInputStep(prompt="When would you like this Airflow DAG to run? (e.g. every day, every Monday, every 1st of the month, etc.)")) - # await sdk.edit_file(dag_filepath, prompt=f"Edit the DAG so that it runs at the following schedule: '{response.text}'", - # range=edit_dag_range) - - # Tell the user to check the schedule and fill in owner, email, other default_args - await sdk.run_step( - MessageStep( - message="Fill in the owner, email, and other default_args in the DAG file with your own personal information. Then the DAG will be ready to run!", - name="Fill in default_args", - ) - ) diff --git a/server/continuedev/plugins/recipes/TemplateRecipe/main.py b/server/continuedev/plugins/recipes/TemplateRecipe/main.py index 01ae364d6..682762ac2 100644 --- a/server/continuedev/plugins/recipes/TemplateRecipe/main.py +++ b/server/continuedev/plugins/recipes/TemplateRecipe/main.py @@ -21,7 +21,7 @@ class TemplateRecipe(Step): return f"Appended a statement to print `Hello, {self.name}!` at the end of the file." # The code executed when the recipe is run - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): visible_files = await sdk.ide.getVisibleFiles() await sdk.edit_file( filename=visible_files[0], diff --git a/server/continuedev/plugins/steps/chat.py b/server/continuedev/plugins/steps/chat.py index 25a14e4aa..eb66b9806 100644 --- a/server/continuedev/plugins/steps/chat.py +++ b/server/continuedev/plugins/steps/chat.py @@ -1,28 +1,13 @@ import html -import json -import os -from textwrap import dedent -from typing import Any, Coroutine, List, Optional +from typing import List, Optional + from ...libs.llm.base import CompletionOptions -import openai -from directory_tree import display_tree -from dotenv import load_dotenv -from pydantic import Field - -from ...core.main import ChatMessage, FunctionCall, Models, Step, step_to_json_schema +from ...core.main import ChatMessage, SetStep, Step from ...core.sdk import ContinueSDK -from ...core.steps import MessageStep -from ...libs.llm.openai import OpenAI -from ...libs.llm.openai_free_trial import OpenAIFreeTrial from ...libs.util.devdata import dev_data_logger from ...libs.util.strings import remove_quotes_and_escapes from ...libs.util.telemetry import posthog_logger -from .main import EditHighlightedCodeStep - -load_dotenv() -OPENAI_API_KEY = os.getenv("OPENAI_API_KEY") -openai.api_key = OPENAI_API_KEY FREE_USAGE_STEP_NAME = "Please enter OpenAI API key" @@ -42,50 +27,6 @@ class SimpleChatStep(Step): completion_options: Optional[CompletionOptions] = None async def run(self, sdk: ContinueSDK): - # Check if proxy server API key - if ( - False - and isinstance(sdk.models.default, OpenAIFreeTrial) - and ( - sdk.models.default.api_key is None - or sdk.models.default.api_key.strip() == "" - ) - and len(list(filter(lambda x: not x.step.hide, sdk.history.timeline))) >= 10 - and len( - list( - filter( - lambda x: x.step.name == FREE_USAGE_STEP_NAME, - sdk.history.timeline, - ) - ) - ) - == 0 - ): - await sdk.run_step( - MessageStep( - name=FREE_USAGE_STEP_NAME, - message=dedent( - """\ - To make it easier to use Continue, you're getting limited free usage. When you have the chance, please enter your own OpenAI key in `~/.continue/config.py`. You can open the file by using the '/config' slash command in the text box below. - - Here's an example of how to edit the file: - ```python - ... - config=ContinueConfig( - ... - models=Models( - default=OpenAIFreeTrial(api_key="", model="gpt-4"), - summarize=OpenAIFreeTrial(api_key="", model="gpt-3.5-turbo") - ) - ) - ``` - - You can also learn more about customizations [here](https://continue.dev/docs/customization). - """ - ), - ) - ) - messages = self.messages or await sdk.get_chat_context() kwargs = self.completion_options.dict() if self.completion_options else {} @@ -106,16 +47,9 @@ class SimpleChatStep(Step): }, ) - self.description = "" async for chunk in generator: - if sdk.current_step_was_deleted(): - # So that the message doesn't disappear - self.hide = False - await sdk.update_ui() - break - if "content" in chunk: - self.description += chunk["content"] + yield chunk["content"] # HTML unencode end_size = len(chunk["content"]) - 6 @@ -124,260 +58,26 @@ class SimpleChatStep(Step): self.description[-end_size:] ) - await sdk.update_ui() - if sdk.config.disable_summaries: self.name = "" else: - self.name = "Generating title..." - await sdk.update_ui() - self.name = add_ellipsis( - remove_quotes_and_escapes( - await sdk.models.summarize.complete( - f'"{self.description}"\n\nPlease write a short title summarizing the message quoted above. Use no more than 10 words:', - max_tokens=20, - log=False, - ) - ), - 200, + yield SetStep(name="Generating title...") + yield SetStep( + name=add_ellipsis( + remove_quotes_and_escapes( + await sdk.models.summarize.complete( + f'"{self.description}"\n\nPlease write a short title summarizing the message quoted above. Use no more than 10 words:', + max_tokens=20, + log=False, + ) + ), + 200, + ) ) - await sdk.update_ui() - self.chat_context.append( ChatMessage(role="assistant", content=self.description, summary=self.name) ) # TODO: Never actually closing. await generator.aclose() - - -class AddFileStep(Step): - name: str = "Add File" - description = "Add a file to the workspace. Should always view the directory tree before this." - filename: str - file_contents: str - - async def describe( - self, models: Models - ) -> Coroutine[Any, Any, Coroutine[str, None, None]]: - return f"Added a file named `{self.filename}` to the workspace." - - async def run(self, sdk: ContinueSDK): - await sdk.add_file(self.filename, self.file_contents) - - await sdk.ide.setFileOpen( - os.path.join(sdk.ide.workspace_directory, self.filename) - ) - - -class DeleteFileStep(Step): - name: str = "Delete File" - description = "Delete a file from the workspace." - filename: str - - async def describe( - self, models: Models - ) -> Coroutine[Any, Any, Coroutine[str, None, None]]: - return f"Deleted a file named `{self.filename}` from the workspace." - - async def run(self, sdk: ContinueSDK): - await sdk.delete_file(self.filename) - - -class AddDirectoryStep(Step): - name: str = "Add Directory" - description = "Add a directory to the workspace." - directory_name: str - - async def describe( - self, models: Models - ) -> Coroutine[Any, Any, Coroutine[str, None, None]]: - return f"Added a directory named `{self.directory_name}` to the workspace." - - async def run(self, sdk: ContinueSDK): - try: - await sdk.add_directory(self.directory_name) - except FileExistsError: - self.description = f"Directory {self.directory_name} already exists." - - -class RunTerminalCommandStep(Step): - name: str = "Run Terminal Command" - description: str = "Run a terminal command." - command: str - - async def run(self, sdk: ContinueSDK): - self.description = f"Copy this command and run in your terminal:\n\n```bash\n{self.command}\n```" - - -class ViewDirectoryTreeStep(Step): - name: str = "View Directory Tree" - description: str = "View the directory tree to learn which folder and files exist. You should always do this before adding new files." - - async def describe( - self, models: Models - ) -> Coroutine[Any, Any, Coroutine[str, None, None]]: - return "Viewed the directory tree." - - async def run(self, sdk: ContinueSDK): - self.description = ( - f"```\n{display_tree(sdk.ide.workspace_directory, True, max_depth=2)}\n```" - ) - - -class EditFileStep(Step): - name: str = "Edit File" - description: str = "Edit a file in the workspace that is not currently open." - filename: str = Field(..., description="The name of the file to edit.") - instructions: str = Field(..., description="The instructions to edit the file.") - hide: bool = True - - async def run(self, sdk: ContinueSDK): - await sdk.edit_file(self.filename, self.instructions) - - -class ChatWithFunctions(Step): - user_input: str - functions: List[Step] = [ - AddFileStep(filename="", file_contents=""), - EditFileStep(filename="", instructions=""), - EditHighlightedCodeStep(user_input=""), - ViewDirectoryTreeStep(), - AddDirectoryStep(directory_name=""), - DeleteFileStep(filename=""), - RunTerminalCommandStep(command=""), - ] - name: str = "Input" - manage_own_chat_context: bool = True - description: str = "" - hide: bool = True - - async def run(self, sdk: ContinueSDK): - await sdk.update_ui() - - step_name_step_class_map = { - step.name.replace(" ", ""): step.__class__ for step in self.functions - } - - functions = [step_to_json_schema(function) for function in self.functions] - - self.chat_context.append( - ChatMessage(role="user", content=self.user_input, summary=self.user_input) - ) - - last_function_called_name = None - last_function_called_params = None - while True: - was_function_called = False - func_args = "" - func_name = "" - msg_content = "" - msg_step = None - - gpt350613 = OpenAI(model="gpt-3.5-turbo-0613") - await sdk.start_model(gpt350613) - - async for msg_chunk in gpt350613.stream_chat( - await sdk.get_chat_context(), functions=functions - ): - if sdk.current_step_was_deleted(): - return - - if "content" in msg_chunk and msg_chunk["content"] is not None: - msg_content += msg_chunk["content"] - # if last_function_called_index_in_history is not None: - # while sdk.history.timeline[last_function_called_index].step.hide: - # last_function_called_index += 1 - # sdk.history.timeline[last_function_called_index_in_history].step.description = msg_content - if msg_step is None: - msg_step = MessageStep( - name="Chat", message=msg_chunk["content"] - ) - await sdk.run_step(msg_step) - else: - msg_step.description = msg_content - await sdk.update_ui() - elif "function_call" in msg_chunk or func_name != "": - was_function_called = True - if "function_call" in msg_chunk: - if "arguments" in msg_chunk["function_call"]: - func_args += msg_chunk["function_call"]["arguments"] - if "name" in msg_chunk["function_call"]: - func_name += msg_chunk["function_call"]["name"] - - if not was_function_called: - self.chat_context.append( - ChatMessage( - role="assistant", content=msg_content, summary=msg_content - ) - ) - break - else: - if func_name == "python" and "python" not in step_name_step_class_map: - # GPT must be fine-tuned to believe this exists, but it doesn't always - func_name = "EditHighlightedCodeStep" - func_args = json.dumps({"user_input": self.user_input}) - # self.chat_context.append(ChatMessage( - # role="assistant", - # content=None, - # function_call=FunctionCall( - # name=func_name, - # arguments=func_args - # ), - # summary=f"Called function {func_name}" - # )) - # self.chat_context.append(ChatMessage( - # role="user", - # content="The 'python' function does not exist. Don't call it. Try again to call another function.", - # summary="'python' function does not exist." - # )) - # msg_step.hide = True - # continue - # Call the function, then continue to chat - func_args = "{}" if func_args == "" else func_args - try: - fn_call_params = json.loads(func_args) - except json.JSONDecodeError: - raise Exception("The model returned invalid JSON. Please try again") - self.chat_context.append( - ChatMessage( - role="assistant", - content=None, - function_call=FunctionCall(name=func_name, arguments=func_args), - summary=f"Called function {func_name}", - ) - ) - sdk.history.current_index + 1 - if func_name not in step_name_step_class_map: - raise Exception( - f"The model tried to call a function ({func_name}) that does not exist. Please try again." - ) - - # if func_name == "AddFileStep": - # step_to_run.hide = True - # self.description += f"\nAdded file `{func_args['filename']}`" - # elif func_name == "AddDirectoryStep": - # step_to_run.hide = True - # self.description += f"\nAdded directory `{func_args['directory_name']}`" - # else: - # self.description += f"\n`Running function {func_name}`\n\n" - if func_name == "EditHighlightedCodeStep": - fn_call_params["user_input"] = self.user_input - elif func_name == "EditFile": - fn_call_params["instructions"] = self.user_input - - step_to_run = step_name_step_class_map[func_name](**fn_call_params) - if ( - last_function_called_name is not None - and last_function_called_name == func_name - and last_function_called_params is not None - and last_function_called_params == fn_call_params - ): - # If it's calling the same function more than once in a row, it's probably looping and confused - return - last_function_called_name = func_name - last_function_called_params = fn_call_params - - await sdk.run_step(step_to_run) - await sdk.update_ui() diff --git a/server/continuedev/plugins/steps/chroma.py b/server/continuedev/plugins/steps/chroma.py index 08614a8ee..ba2e7ff9c 100644 --- a/server/continuedev/plugins/steps/chroma.py +++ b/server/continuedev/plugins/steps/chroma.py @@ -1,20 +1,25 @@ import os -from typing import Coroutine, Dict, List, Optional, Union +from typing import Coroutine, List, Optional, Union + from ...libs.llm.base import CompletionOptions from ...libs.index.rerankers.default import default_reranker_parallel -from ...libs.util.strings import shorten_filepaths from pydantic import Field -from ...core.main import ContextItem, ContextItemDescription, ContextItemId, Step -from ...core.observation import Observation +from ...core.main import ( + ContextItem, + ContextItemDescription, + ContextItemId, + DeltaStep, + SetStep, + Step, +) from ...core.sdk import ContinueSDK from ...core.steps import EditFileStep from ...libs.index.codebase_index import ChromaCodebaseIndex from ..context_providers.util import remove_meilisearch_disallowed_chars from .chat import SimpleChatStep -from ...core.steps import EditFileStep class CreateCodebaseIndexChroma(Step): @@ -35,7 +40,7 @@ class CreateCodebaseIndexChroma(Step): async def describe(self, models) -> Coroutine[str, None, None]: return "Generated codebase embeddings." - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): index = ChromaCodebaseIndex( sdk.ide.workspace_directory, openai_api_key=self.openai_api_key, @@ -47,10 +52,11 @@ class CreateCodebaseIndexChroma(Step): if index.exists(): return - self.hide = False + yield SetStep(hide=False) async for progress in index.build(sdk, ignore_files=self.ignore_files): - self.description = f"Generating codebase embeddings... {int(progress*100)}%" - await sdk.update_ui() + yield SetStep( + description=f"Generating codebase embeddings... {int(progress*100)}%", + ) class AnswerQuestionChroma(Step): @@ -78,11 +84,9 @@ class AnswerQuestionChroma(Step): else: return self._answer - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): index = ChromaCodebaseIndex(sdk.ide.workspace_directory) - self.hide = False - self.description = f"Scanning {self.n_retrieve} files..." - await sdk.update_ui() + yield SetStep(hide=False, description="Scanning codebase...") # Get top chunks from index chunks = index.query( @@ -90,8 +94,7 @@ class AnswerQuestionChroma(Step): ) # Rerank to select top results - self.description = f"Selecting most important files..." - await sdk.update_ui() + yield SetStep(description="Selecting most important files...") if self.use_reranking: chunks = await default_reranker_parallel( @@ -119,7 +122,8 @@ class AnswerQuestionChroma(Step): context_items.append(ctx_item) await sdk.add_context_item(ctx_item) - self.hide = True + yield SetStep(hide=True) + model = sdk.models.chat.model # if model == "gpt-4": # model = "gpt-4-32k" # Not publicly available yet? @@ -142,7 +146,7 @@ class EditFileChroma(Step): user_input: str hide: bool = True - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): index = ChromaCodebaseIndex(sdk.ide.workspace_directory) results = index.query_codebase_index(self.user_input) diff --git a/server/continuedev/plugins/steps/clear_history.py b/server/continuedev/plugins/steps/clear_history.py index 8f21518ba..4c828147c 100644 --- a/server/continuedev/plugins/steps/clear_history.py +++ b/server/continuedev/plugins/steps/clear_history.py @@ -1,4 +1,4 @@ -from ...core.main import Step +from ...core.main import SessionUpdate, SetStep, Step from ...core.sdk import ContinueSDK @@ -7,4 +7,6 @@ class ClearHistoryStep(Step): hide: bool = True async def run(self, sdk: ContinueSDK): - await sdk.clear_history() + index = len(sdk.history) + for i in range(index - 1, -1, -1): + yield SessionUpdate(index=i, update=SetStep(hide=True)) diff --git a/server/continuedev/plugins/steps/cmd.py b/server/continuedev/plugins/steps/cmd.py index a38f6323d..a5f6b2093 100644 --- a/server/continuedev/plugins/steps/cmd.py +++ b/server/continuedev/plugins/steps/cmd.py @@ -1,8 +1,6 @@ from textwrap import dedent -from typing import Coroutine -from ...core.main import Step -from ...core.observation import Observation +from ...core.main import SetStep, Step from ...core.sdk import ContinueSDK from ...libs.util.strings import remove_quotes_and_escapes @@ -10,7 +8,7 @@ from ...libs.util.strings import remove_quotes_and_escapes class GenerateShellCommandStep(Step): user_input: str - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): cmd = await sdk.models.default.complete( dedent( f"""\ @@ -27,4 +25,4 @@ class GenerateShellCommandStep(Step): await sdk.ide.runCommand(cmd) - self.description = f"Generated shell command: {cmd}" + yield SetStep(description=f"Generated shell command: {cmd}") diff --git a/server/continuedev/plugins/steps/draft/typeorm.py b/server/continuedev/plugins/steps/draft/typeorm.py index c79fa0417..c7f46917b 100644 --- a/server/continuedev/plugins/steps/draft/typeorm.py +++ b/server/continuedev/plugins/steps/draft/typeorm.py @@ -33,7 +33,7 @@ class CreateTableStep(Step): migration_filepath = out.text.split(" ")[1] # Wait for user input - await sdk.wait_for_user_confirmation("Fill in the migration?") + # await sdk.wait_for_user_confirmation("Fill in the migration?") # Fill in the migration await sdk.edit_file( diff --git a/server/continuedev/plugins/steps/function_calling.py b/server/continuedev/plugins/steps/function_calling.py new file mode 100644 index 000000000..7c8545ec1 --- /dev/null +++ b/server/continuedev/plugins/steps/function_calling.py @@ -0,0 +1,261 @@ +import html +import json +import os +from textwrap import dedent +from typing import Any, Coroutine, List, Optional +from ...libs.llm.base import CompletionOptions + +import openai +from directory_tree import display_tree +from dotenv import load_dotenv +from pydantic import Field + +from ...core.main import ChatMessage, FunctionCall, Models, Step, step_to_json_schema +from ...core.sdk import ContinueSDK +from ...core.steps import MessageStep +from ...libs.llm.openai import OpenAI +from ...libs.llm.openai_free_trial import OpenAIFreeTrial +from ...libs.util.devdata import dev_data_logger +from ...libs.util.strings import remove_quotes_and_escapes +from ...libs.util.telemetry import posthog_logger +from .main import EditHighlightedCodeStep + +load_dotenv() +OPENAI_API_KEY = os.getenv("OPENAI_API_KEY") +openai.api_key = OPENAI_API_KEY + +FREE_USAGE_STEP_NAME = "Please enter OpenAI API key" + + +def add_ellipsis(text: str, max_length: int = 200) -> str: + if len(text) > max_length: + return text[: max_length - 3] + "..." + return text + + +class AddFileStep(Step): + name: str = "Add File" + description = "Add a file to the workspace. Should always view the directory tree before this." + filename: str + file_contents: str + + async def describe( + self, models: Models + ) -> Coroutine[Any, Any, Coroutine[str, None, None]]: + return f"Added a file named `{self.filename}` to the workspace." + + async def run(self, sdk: ContinueSDK): + await sdk.add_file(self.filename, self.file_contents) + + await sdk.ide.setFileOpen( + os.path.join(sdk.ide.workspace_directory, self.filename) + ) + + +class DeleteFileStep(Step): + name: str = "Delete File" + description = "Delete a file from the workspace." + filename: str + + async def describe( + self, models: Models + ) -> Coroutine[Any, Any, Coroutine[str, None, None]]: + return f"Deleted a file named `{self.filename}` from the workspace." + + async def run(self, sdk: ContinueSDK): + await sdk.delete_file(self.filename) + + +class AddDirectoryStep(Step): + name: str = "Add Directory" + description = "Add a directory to the workspace." + directory_name: str + + async def describe( + self, models: Models + ) -> Coroutine[Any, Any, Coroutine[str, None, None]]: + return f"Added a directory named `{self.directory_name}` to the workspace." + + async def run(self, sdk: ContinueSDK): + try: + await sdk.add_directory(self.directory_name) + except FileExistsError: + self.description = f"Directory {self.directory_name} already exists." + + +class RunTerminalCommandStep(Step): + name: str = "Run Terminal Command" + description: str = "Run a terminal command." + command: str + + async def run(self, sdk: ContinueSDK): + self.description = f"Copy this command and run in your terminal:\n\n```bash\n{self.command}\n```" + + +class ViewDirectoryTreeStep(Step): + name: str = "View Directory Tree" + description: str = "View the directory tree to learn which folder and files exist. You should always do this before adding new files." + + async def describe( + self, models: Models + ) -> Coroutine[Any, Any, Coroutine[str, None, None]]: + return "Viewed the directory tree." + + async def run(self, sdk: ContinueSDK): + self.description = ( + f"```\n{display_tree(sdk.ide.workspace_directory, True, max_depth=2)}\n```" + ) + + +class EditFileStep(Step): + name: str = "Edit File" + description: str = "Edit a file in the workspace that is not currently open." + filename: str = Field(..., description="The name of the file to edit.") + instructions: str = Field(..., description="The instructions to edit the file.") + hide: bool = True + + async def run(self, sdk: ContinueSDK): + await sdk.edit_file(self.filename, self.instructions) + + +class ChatWithFunctions(Step): + user_input: str + functions: List[Step] = [ + AddFileStep(filename="", file_contents=""), + EditFileStep(filename="", instructions=""), + EditHighlightedCodeStep(user_input=""), + ViewDirectoryTreeStep(), + AddDirectoryStep(directory_name=""), + DeleteFileStep(filename=""), + RunTerminalCommandStep(command=""), + ] + name: str = "Input" + manage_own_chat_context: bool = True + description: str = "" + hide: bool = True + + async def run(self, sdk: ContinueSDK): + await sdk.update_ui() + + step_name_step_class_map = { + step.name.replace(" ", ""): step.__class__ for step in self.functions + } + + functions = [step_to_json_schema(function) for function in self.functions] + + self.chat_context.append( + ChatMessage(role="user", content=self.user_input, summary=self.user_input) + ) + + last_function_called_name = None + last_function_called_params = None + while True: + was_function_called = False + func_args = "" + func_name = "" + msg_content = "" + msg_step = None + + gpt350613 = OpenAI(model="gpt-3.5-turbo-0613") + await sdk.start_model(gpt350613) + + async for msg_chunk in gpt350613.stream_chat( + await sdk.get_chat_context(), functions=functions + ): + if "content" in msg_chunk and msg_chunk["content"] is not None: + msg_content += msg_chunk["content"] + # if last_function_called_index_in_history is not None: + # while sdk.history.timeline[last_function_called_index].step.hide: + # last_function_called_index += 1 + # sdk.history.timeline[last_function_called_index_in_history].step.description = msg_content + if msg_step is None: + msg_step = MessageStep( + name="Chat", message=msg_chunk["content"] + ) + await sdk.run_step(msg_step) + else: + msg_step.description = msg_content + await sdk.update_ui() + elif "function_call" in msg_chunk or func_name != "": + was_function_called = True + if "function_call" in msg_chunk: + if "arguments" in msg_chunk["function_call"]: + func_args += msg_chunk["function_call"]["arguments"] + if "name" in msg_chunk["function_call"]: + func_name += msg_chunk["function_call"]["name"] + + if not was_function_called: + self.chat_context.append( + ChatMessage( + role="assistant", content=msg_content, summary=msg_content + ) + ) + break + else: + if func_name == "python" and "python" not in step_name_step_class_map: + # GPT must be fine-tuned to believe this exists, but it doesn't always + func_name = "EditHighlightedCodeStep" + func_args = json.dumps({"user_input": self.user_input}) + # self.chat_context.append(ChatMessage( + # role="assistant", + # content=None, + # function_call=FunctionCall( + # name=func_name, + # arguments=func_args + # ), + # summary=f"Called function {func_name}" + # )) + # self.chat_context.append(ChatMessage( + # role="user", + # content="The 'python' function does not exist. Don't call it. Try again to call another function.", + # summary="'python' function does not exist." + # )) + # msg_step.hide = True + # continue + # Call the function, then continue to chat + func_args = "{}" if func_args == "" else func_args + try: + fn_call_params = json.loads(func_args) + except json.JSONDecodeError: + raise Exception("The model returned invalid JSON. Please try again") + self.chat_context.append( + ChatMessage( + role="assistant", + content=None, + function_call=FunctionCall(name=func_name, arguments=func_args), + summary=f"Called function {func_name}", + ) + ) + sdk.history.current_index + 1 + if func_name not in step_name_step_class_map: + raise Exception( + f"The model tried to call a function ({func_name}) that does not exist. Please try again." + ) + + # if func_name == "AddFileStep": + # step_to_run.hide = True + # self.description += f"\nAdded file `{func_args['filename']}`" + # elif func_name == "AddDirectoryStep": + # step_to_run.hide = True + # self.description += f"\nAdded directory `{func_args['directory_name']}`" + # else: + # self.description += f"\n`Running function {func_name}`\n\n" + if func_name == "EditHighlightedCodeStep": + fn_call_params["user_input"] = self.user_input + elif func_name == "EditFile": + fn_call_params["instructions"] = self.user_input + + step_to_run = step_name_step_class_map[func_name](**fn_call_params) + if ( + last_function_called_name is not None + and last_function_called_name == func_name + and last_function_called_params is not None + and last_function_called_params == fn_call_params + ): + # If it's calling the same function more than once in a row, it's probably looping and confused + return + last_function_called_name = func_name + last_function_called_params = fn_call_params + + await sdk.run_step(step_to_run) + await sdk.update_ui() diff --git a/server/continuedev/plugins/steps/input/nl_multiselect.py b/server/continuedev/plugins/steps/input/nl_multiselect.py deleted file mode 100644 index f4b5e7a6f..000000000 --- a/server/continuedev/plugins/steps/input/nl_multiselect.py +++ /dev/null @@ -1,32 +0,0 @@ -from typing import List, Union - -from ....core.main import Step -from ....core.sdk import ContinueSDK -from ....core.steps import WaitForUserInputStep - - -class NLMultiselectStep(Step): - hide: bool = True - - prompt: str - options: List[str] - - async def run(self, sdk: ContinueSDK): - user_response = ( - await sdk.run_step(WaitForUserInputStep(prompt=self.prompt)) - ).text - - def extract_option(text: str) -> Union[str, None]: - for option in self.options: - if option in text: - return option - return None - - first_try = extract_option(user_response.lower()) - if first_try is not None: - return first_try - - gpt_parsed = await sdk.models.default.complete( - f"These are the available options are: [{', '.join(self.options)}]. The user requested {user_response}. This is the exact string from the options array that they selected:" - ) - return extract_option(gpt_parsed) or self.options[0] diff --git a/server/continuedev/plugins/steps/main.py b/server/continuedev/plugins/steps/main.py index e13351f0e..d871b87e3 100644 --- a/server/continuedev/plugins/steps/main.py +++ b/server/continuedev/plugins/steps/main.py @@ -4,7 +4,7 @@ from typing import Coroutine, List, Optional, Union from pydantic import BaseModel, Field -from ...core.main import ContinueCustomException, Step +from ...core.main import ContinueCustomException, SetStep, Step from ...core.observation import Observation from ...core.sdk import ContinueSDK, Models from ...core.steps import DefaultModelEditCodeStep @@ -25,12 +25,12 @@ class Policy(BaseModel): class RunPolicyUntilDoneStep(Step): policy: "Policy" - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): next_step = self.policy.next(sdk.config, sdk.history) while next_step is not None: observation = await sdk.run_step(next_step) next_step = self.policy.next(sdk.config, sdk.history) - return observation + yield observation class FasterEditHighlightedCodeStep(Step): @@ -84,7 +84,7 @@ class FasterEditHighlightedCodeStep(Step): async def describe(self, models: Models) -> Coroutine[str, None, None]: return "Editing highlighted code" - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): range_in_files = await sdk.get_code_context(only_editing=True) if len(range_in_files) == 0: # Get the full contents of all visible files @@ -169,8 +169,6 @@ class FasterEditHighlightedCodeStep(Step): await sdk.ide.saveFile(filepath) await sdk.ide.setFileOpen(filepath) - return None - class StarCoderEditHighlightedCodeStep(Step): user_input: str @@ -185,7 +183,7 @@ class StarCoderEditHighlightedCodeStep(Step): f"{self._prompt_and_completion}\n\nPlease give brief a description of the changes made above using markdown bullet points:" ) - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): range_in_files = await sdk.get_code_context(only_editing=True) found_highlighted_code = len(range_in_files) > 0 if not found_highlighted_code: @@ -259,7 +257,7 @@ class EditAlreadyEditedRangeStep(Step): """ ) - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): if os.path.basename(self.range_in_file.filepath) in os.listdir( os.path.expanduser(os.path.join("~", ".continue", "diffs")) ): @@ -303,8 +301,10 @@ class EditHighlightedCodeStep(Step): async def describe(self, models: Models) -> Coroutine[str, None, None]: return "Editing code" - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: - range_in_files = sdk.get_code_context(only_editing=True) + async def run(self, sdk: ContinueSDK): + yield SetStep(description="Editing file...") + + range_in_files = await sdk.get_code_context(only_editing=True) # If nothing highlighted, insert at the cursor if possible if len(range_in_files) == 0: @@ -374,7 +374,7 @@ class SolveTracebackStep(Step): async def describe(self, models: Models) -> Coroutine[str, None, None]: return f"```\n{self.traceback.full_traceback}\n```" - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): prompt = dedent( """I ran into this problem with my Python code: @@ -396,7 +396,6 @@ class SolveTracebackStep(Step): await sdk.run_step( DefaultModelEditCodeStep(range_in_files=range_in_files, user_input=prompt) ) - return None class EmptyStep(Step): @@ -405,5 +404,5 @@ class EmptyStep(Step): async def describe(self, models: Models) -> Coroutine[str, None, None]: return "" - async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: + async def run(self, sdk: ContinueSDK): pass diff --git a/server/continuedev/plugins/steps/on_traceback.py b/server/continuedev/plugins/steps/on_traceback.py index 7dc2a7b7c..6202d8762 100644 --- a/server/continuedev/plugins/steps/on_traceback.py +++ b/server/continuedev/plugins/steps/on_traceback.py @@ -68,11 +68,8 @@ class DefaultOnTracebackStep(Step): tb = extract_traceback_str(self.output) or self.output[-8000:] - await sdk.run_step( - UserInputStep( - user_input=f"""I got the following error, can you please help explain how to fix it?\n\n{tb}""", - ) - ) + prompt = f"""I got the following error, can you please help explain how to fix it?\n\n{tb}""" + await sdk.run_step(UserInputStep(user_input=prompt, description=prompt)) await sdk.run_step(SimpleChatStep(name="Help With Traceback")) diff --git a/server/continuedev/plugins/steps/open_config.py b/server/continuedev/plugins/steps/open_config.py index c57939f87..a79db5425 100644 --- a/server/continuedev/plugins/steps/open_config.py +++ b/server/continuedev/plugins/steps/open_config.py @@ -1,12 +1,13 @@ from textwrap import dedent -from ...core.main import Step +from ...core.main import SetStep, Step from ...core.sdk import ContinueSDK from ...libs.util.paths import getConfigFilePath class OpenConfigStep(Step): name: str = "Open config" + hide = True async def describe(self, models): return dedent( diff --git a/server/continuedev/plugins/steps/share_session.py b/server/continuedev/plugins/steps/share_session.py index 1d68dc902..d19ea85c1 100644 --- a/server/continuedev/plugins/steps/share_session.py +++ b/server/continuedev/plugins/steps/share_session.py @@ -1,46 +1,28 @@ -import json import os -import time -from typing import Optional -from ...core.main import FullState, Step +from ...core.main import Step from ...core.sdk import ContinueSDK -from ...libs.util.paths import getGlobalFolderPath, getSessionFilePath -from ...server.session_manager import session_manager +from ...libs.util.paths import getGlobalFolderPath class ShareSessionStep(Step): - session_id: Optional[str] = None - async def run(self, sdk: ContinueSDK): - if self.session_id is None: - self.session_id = sdk.ide.session_id - - await session_manager.persist_session(self.session_id) - time.sleep(0.5) - - # Load the session data and format as a markdown file - session_filepath = getSessionFilePath(self.session_id) - with open(session_filepath, "r") as f: - session_state = FullState(**json.load(f)) - + # Format SessionState as a .md file import datetime - date_created = datetime.datetime.fromtimestamp( - float(session_state.session_info.date_created) - ).strftime("%Y-%m-%d %H:%M:%S") + date_created = datetime.datetime.now().strftime("%Y-%m-%d %H:%M") content = f"This is a session transcript from [Continue](https://continue.dev) on {date_created}.\n\n" - for node in session_state.history.timeline[:-2]: - if node.step.hide: + for step in sdk.history[:-2]: + if step.hide: continue # ay - content += f"## {node.step.name}\n" - content += f"{node.step.description}\n\n" + content += f"## {step.name}\n" + content += f"{step.description}\n\n" # Save to a markdown file save_filepath = os.path.join( - getGlobalFolderPath(), f"{session_state.session_info.title}.md" + getGlobalFolderPath(), f"continue ({date_created}).md" ) with open(save_filepath, "w") as f: diff --git a/server/continuedev/server/gui.py b/server/continuedev/server/gui.py index b613d91ba..f35bfe98b 100644 --- a/server/continuedev/server/gui.py +++ b/server/continuedev/server/gui.py @@ -1,512 +1,53 @@ -import asyncio import json import traceback -from typing import Any, List, Optional, Type, TypeVar -from ..plugins.steps.setup_model import SetupModelStep +from urllib.parse import parse_qs +import socketio +from fastapi import APIRouter +from pydantic import ValidationError -from fastapi import APIRouter, Depends, WebSocket -from pydantic import BaseModel -from starlette.websockets import WebSocketDisconnect, WebSocketState -from uvicorn.main import Server - -from ..core.main import ContextItem -from ..core.models import ALL_MODEL_ROLES, MODEL_CLASSES, MODEL_MODULE_NAMES -from ..core.steps import DisplayErrorStep -from ..libs.llm.prompts.chat import ( - llama2_template_messages, - sqlcoder_template_messages, - template_alpaca_messages, -) -from ..libs.llm.prompts.edit import codellama_edit_prompt, alpaca_edit_prompt -from ..libs.util.create_async_task import create_async_task -from ..libs.util.edit_config import ( - add_config_import, - create_float_node, - create_obj_node, - create_string_node, - display_llm_class, -) +from ..models.websockets import WebsocketsMessage from ..libs.util.logging import logger -from ..libs.util.queue import AsyncSubscriptionQueue -from ..libs.util.telemetry import posthog_logger -from .session_manager import Session, session_manager +from .window_manager import window_manager router = APIRouter(prefix="/gui", tags=["gui"]) +sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins="*") +sio_gui_app = socketio.ASGIApp(socketio_server=sio) -# Graceful shutdown by closing websockets -original_handler = Server.handle_exit +@sio.event +async def connect(sid, environ): + query = parse_qs(environ.get("QUERY_STRING", "")) + window_id = query.get("window_id", [None])[0] + await window_manager.register_gui(window_id, sio, sid) -class AppStatus: - should_exit = False - @staticmethod - def handle_exit(*args, **kwargs): - AppStatus.should_exit = True - logger.debug("Shutting down") - original_handler(*args, **kwargs) +@sio.event +async def disconnect(sid): + window_manager.remove_gui(sid) -Server.handle_exit = AppStatus.handle_exit +@sio.event +async def message(sid, data): + try: + if isinstance(data, str): + data = json.loads(data) + message = WebsocketsMessage.parse_obj(data) + except json.JSONDecodeError: + logger.critical(f"Error decoding json: {data}") + return + except ValidationError as e: + tb = "\n".join(traceback.format_exception(e, e, e.__traceback__)) + logger.critical(f"Error validating json: {tb}") + return -async def websocket_session(session_id: str) -> Session: - return await session_manager.get_session(session_id) - - -T = TypeVar("T", bound=BaseModel) - -# You should probably abstract away the websocket stuff into a separate class - - -class GUIProtocolServer: - websocket: WebSocket - session: Session - sub_queue: AsyncSubscriptionQueue = AsyncSubscriptionQueue() - - def __init__(self, session: Session): - self.session = session - - async def _send_json(self, message_type: str, data: Any): - if self.websocket.application_state == WebSocketState.DISCONNECTED: - return - await self.websocket.send_json({"messageType": message_type, "data": data}) - - async def _receive_json(self, message_type: str, timeout: int = 20) -> Any: - try: - return await asyncio.wait_for( - self.sub_queue.get(message_type), timeout=timeout - ) - except asyncio.TimeoutError: - raise Exception("GUI Protocol _receive_json timed out after 20 seconds") - - async def _send_and_receive_json( - self, data: Any, resp_model: Type[T], message_type: str - ) -> T: - await self._send_json(message_type, data) - resp = await self._receive_json(message_type) - return resp_model.parse_obj(resp) - - def on_error(self, e: Exception): - return self.session.autopilot.continue_sdk.run_step( - DisplayErrorStep.from_exception(e) - ) - - def handle_json(self, message_type: str, data: Any): - if message_type == "main_input": - self.on_main_input(data["input"]) - elif message_type == "step_user_input": - self.on_step_user_input(data["input"], data["index"]) - elif message_type == "refinement_input": - self.on_refinement_input(data["input"], data["index"]) - elif message_type == "reverse_to_index": - self.on_reverse_to_index(data["index"]) - elif message_type == "retry_at_index": - self.on_retry_at_index(data["index"]) - elif message_type == "clear_history": - self.on_clear_history() - elif message_type == "set_current_session_title": - self.set_current_session_title(data["title"]) - elif message_type == "delete_at_index": - self.on_delete_at_index(data["index"]) - elif message_type == "delete_context_with_ids": - self.on_delete_context_with_ids(data["ids"], data.get("index", None)) - elif message_type == "toggle_adding_highlighted_code": - self.on_toggle_adding_highlighted_code() - elif message_type == "set_editing_at_ids": - self.on_set_editing_at_ids(data["ids"]) - elif message_type == "show_logs_at_index": - self.on_show_logs_at_index(data["index"]) - elif message_type == "show_context_virtual_file": - self.show_context_virtual_file(data.get("index", None)) - elif message_type == "select_context_item": - self.select_context_item(data["id"], data["query"]) - elif message_type == "select_context_item_at_index": - self.select_context_item_at_index(data["id"], data["query"], data["index"]) - elif message_type == "load_session": - self.load_session(data.get("session_id", None)) - elif message_type == "edit_step_at_index": - self.edit_step_at_index(data.get("user_input", ""), data["index"]) - elif message_type == "set_system_message": - self.set_system_message(data["message"]) - elif message_type == "set_temperature": - self.set_temperature(float(data["temperature"])) - elif message_type == "add_model_for_role": - self.add_model_for_role(data["role"], data["model_class"], data["model"]) - elif message_type == "set_model_for_role_from_index": - self.set_model_for_role_from_index(data["role"], data["index"]) - elif message_type == "save_context_group": - self.save_context_group( - data["title"], [ContextItem(**item) for item in data["context_items"]] - ) - elif message_type == "select_context_group": - self.select_context_group(data["id"]) - elif message_type == "delete_context_group": - self.delete_context_group(data["id"]) - elif message_type == "preview_context_item": - self.preview_context_item(data["id"]) - - def on_main_input(self, input: str): - # Do something with user input - create_async_task( - self.session.autopilot.accept_user_input(input), self.on_error - ) - - def on_reverse_to_index(self, index: int): - # Reverse the history to the given index - create_async_task(self.session.autopilot.reverse_to_index(index), self.on_error) - - def on_step_user_input(self, input: str, index: int): - create_async_task( - self.session.autopilot.give_user_input(input, index), self.on_error - ) - - def on_refinement_input(self, input: str, index: int): - create_async_task( - self.session.autopilot.accept_refinement_input(input, index), self.on_error - ) - - def on_retry_at_index(self, index: int): - create_async_task(self.session.autopilot.retry_at_index(index), self.on_error) - - def on_clear_history(self): - create_async_task(self.session.autopilot.clear_history(), self.on_error) - - def on_delete_at_index(self, index: int): - create_async_task(self.session.autopilot.delete_at_index(index), self.on_error) - - def edit_step_at_index(self, user_input: str, index: int): - create_async_task( - self.session.autopilot.edit_step_at_index(user_input, index), - self.on_error, - ) - - def on_delete_context_with_ids(self, ids: List[str], index: Optional[int] = None): - create_async_task( - self.session.autopilot.delete_context_with_ids(ids, index), self.on_error - ) - - def on_toggle_adding_highlighted_code(self): - create_async_task( - self.session.autopilot.toggle_adding_highlighted_code(), self.on_error - ) - posthog_logger.capture_event("toggle_adding_highlighted_code", {}) - - def on_set_editing_at_ids(self, ids: List[str]): - create_async_task(self.session.autopilot.set_editing_at_ids(ids), self.on_error) - - def on_show_logs_at_index(self, index: int): - name = "Continue Prompt" - - logs = None - timeline = self.session.autopilot.continue_sdk.history.timeline - while logs is None and index < len(timeline): - if len(timeline[index].logs) > 0: - logs = timeline[index].logs - break - elif timeline[index].step.name == "User Input": - break - index += 1 - - content = ( - "Logs not found" - if logs is None - else "\n\n############################################\n\n".join( - ["This is the prompt that was sent to the LLM during this step"] + logs - ) - ) - create_async_task( - self.session.autopilot.ide.showVirtualFile(name, content), self.on_error - ) - posthog_logger.capture_event("show_logs_at_index", {}) - - def show_context_virtual_file(self, index: Optional[int] = None): - async def async_stuff(): - if index is None: - context_items = ( - await self.session.autopilot.context_manager.get_selected_items() - ) - elif index < len(self.session.autopilot.continue_sdk.history.timeline): - context_items = self.session.autopilot.continue_sdk.history.timeline[ - index - ].context_used - - ctx = "\n\n-----------------------------------\n\n".join( - ["These are the context items that will be passed to the LLM"] - + list(map(lambda x: x.content, context_items)) - ) - await self.session.autopilot.ide.showVirtualFile( - "Continue - Selected Context", ctx - ) - - create_async_task( - async_stuff(), - self.on_error, - ) - - def select_context_item(self, id: str, query: str): - """Called when user selects an item from the dropdown""" - create_async_task( - self.session.autopilot.select_context_item(id, query), self.on_error - ) - - def select_context_item_at_index(self, id: str, query: str, index: int): - """Called when user selects an item from the dropdown for prev UserInputStep""" - create_async_task( - self.session.autopilot.select_context_item_at_index(id, query, index), - self.on_error, - ) - - def preview_context_item(self, id: str): - """Called when user clicks on an item from the dropdown""" - create_async_task( - self.session.autopilot.context_manager.preview_context_item(id), - self.on_error, - ) - - def load_session(self, session_id: Optional[str] = None): - async def load_and_tell_to_reconnect(): - new_session_id = await session_manager.load_session( - self.session.session_id, session_id - ) - await self._send_json( - "reconnect_at_session", {"session_id": new_session_id} - ) - - create_async_task(load_and_tell_to_reconnect(), self.on_error) - - posthog_logger.capture_event("load_session", {"session_id": session_id}) - - def set_current_session_title(self, title: str): - self.session.autopilot.set_current_session_title(title) - - def set_system_message(self, message: str): - self.session.autopilot.continue_sdk.config.system_message = message - self.session.autopilot.continue_sdk.models.set_main_config_params( - message, self.session.autopilot.continue_sdk.config.temperature - ) - - create_async_task( - self.session.autopilot.set_config_attr( - ["system_message"], create_string_node(message) - ), - self.on_error, - ) - posthog_logger.capture_event("set_system_message", {"system_message": message}) - - def set_temperature(self, temperature: float): - self.session.autopilot.continue_sdk.config.temperature = temperature - create_async_task( - self.session.autopilot.set_config_attr( - ["temperature"], create_float_node(temperature) - ), - self.on_error, - ) - posthog_logger.capture_event("set_temperature", {"temperature": temperature}) - - def set_model_for_role_from_index(self, role: str, index: int): - async def async_stuff(): - models = self.session.autopilot.continue_sdk.config.models - - # Set models in SDK - temp = models.default - models.default = models.saved[index] - models.saved[index] = temp - await self.session.autopilot.continue_sdk.start_model(models.default) - - # Set models in config.py - JOINER = ",\n\t\t" - models_args = { - "saved": f"[{JOINER.join([display_llm_class(llm) for llm in models.saved])}]", - ("default" if role == "*" else role): display_llm_class(models.default), - } - - await self.session.autopilot.set_config_attr( - ["models"], - create_obj_node("Models", models_args), - ) - - for other_role in ALL_MODEL_ROLES: - if other_role != "default": - models.__setattr__(other_role, models.default) - - await self.session.autopilot.continue_sdk.update_ui() - - create_async_task(async_stuff(), self.on_error) - - def add_model_for_role(self, role: str, model_class: str, model: Any): - models = self.session.autopilot.continue_sdk.config.models - - model_copy = model.copy() - if "api_key" in model_copy: - del model_copy["api_key"] - if "hf_token" in model_copy: - del model_copy["hf_token"] - posthog_logger.capture_event( - "select_model_for_role", - {"role": role, "model_class": model_class, "model": model_copy}, - ) - - if role == "*": - - async def async_stuff(): - # Remove all previous models in roles and place in saved - saved_models = models.saved - existing_saved_models = set( - [display_llm_class(llm) for llm in saved_models] - ) - for role in ALL_MODEL_ROLES: - val = models.__getattribute__(role) - if ( - val is not None - and display_llm_class(val) not in existing_saved_models - ): - saved_models.append(val) - existing_saved_models.add(display_llm_class(val)) - models.__setattr__(role, None) - - # Add the requisite import to config.py - default_model_display_overrides = {} - add_config_import( - f"from continuedev.libs.llm.{MODEL_MODULE_NAMES[model_class]} import {model_class}" - ) - if "template_messages" in model: - add_config_import( - f"from continuedev.libs.llm.prompts.chat import {model['template_messages']}" - ) - sqtm = sqlcoder_template_messages("") - sqtm.__name__ = 'sqlcoder_template_messages("")' - model["template_messages"] = { - "llama2_template_messages": llama2_template_messages, - "template_alpaca_messages": template_alpaca_messages, - "sqlcoder_template_messages": sqtm, - }[model["template_messages"]] - - if "prompt_templates" in model and "edit" in model["prompt_templates"]: - default_model_display_overrides[ - "prompt_templates" - ] = f"""{{"edit": {model["prompt_templates"]["edit"]}}}""" - add_config_import( - f"from continuedev.libs.llm.prompts.edit import {model['prompt_templates']['edit']}" - ) - model["prompt_templates"]["edit"] = { - "codellama_edit_prompt": codellama_edit_prompt, - "alpaca_edit_prompt": alpaca_edit_prompt, - }[model["prompt_templates"]["edit"]] - - # Set and start the new default model - new_model = MODEL_CLASSES[model_class](**model) - models.default = new_model - await self.session.autopilot.continue_sdk.start_model(models.default) - - # Construct and set the new models object - JOINER = ",\n\t\t" - saved_model_strings = set( - [display_llm_class(llm) for llm in saved_models] - ) - models_args = { - "default": display_llm_class( - models.default, True, default_model_display_overrides - ), - "saved": f"[{JOINER.join(saved_model_strings)}]", - } - - await self.session.autopilot.set_config_attr( - ["models"], - create_obj_node("Models", models_args), - ) - - # Set all roles (in-memory) to the new default model - for role in ALL_MODEL_ROLES: - if role != "default": - models.__setattr__(role, models.default) - - # Display setup help - # await self.session.autopilot.continue_sdk.run_step( - # SetupModelStep(model_class=model_class) - # ) - - create_async_task(async_stuff(), self.on_error) + try: + if gui := window_manager.get_gui(sid): + resp = await gui.handle_json(message) + return resp else: - # TODO - pass - - def save_context_group(self, title: str, context_items: List[ContextItem]): - create_async_task( - self.session.autopilot.save_context_group(title, context_items), - self.on_error, - ) - - def select_context_group(self, id: str): - create_async_task( - self.session.autopilot.select_context_group(id), self.on_error - ) - - def delete_context_group(self, id: str): - create_async_task( - self.session.autopilot.delete_context_group(id), self.on_error - ) - - -@router.get("/sessions") -async def get_session(session_id: Optional[str] = None): - try: - # Assuming load_session is a method of a class, and you have an instance `instance_of_that_class` - await protocol.load_session(session_id) - return {"message": "Session loaded successfully", "session_id": session_id} + logger.critical(f"GUI websocket not found for sid {sid}") except Exception as e: - raise HTTPException(status_code=500, detail=str(e)) - - -@router.websocket("/ws") -async def websocket_endpoint( - websocket: WebSocket, session: Session = Depends(websocket_session) -): - try: - logger.debug(f"Received websocket connection at url: {websocket.url}") - await websocket.accept() - - logger.debug("Session started") - session_manager.register_websocket(session.session_id, websocket) - protocol = GUIProtocolServer(session) - protocol.websocket = websocket - - # Update any history that may have happened before connection - await protocol.session.autopilot.update_subscribers() - - while AppStatus.should_exit is False: - message = await websocket.receive_text() - logger.debug(f"Received GUI message {message}") - if isinstance(message, str): - message = json.loads(message) - - if "messageType" not in message or "data" not in message: - continue # :o - message_type = message["messageType"] - data = message["data"] - - protocol.handle_json(message_type, data) - except WebSocketDisconnect: - logger.debug("GUI websocket disconnected") - except Exception as e: - # Log, send to PostHog, and send to GUI - logger.debug(f"ERROR in gui websocket: {e}") - err_msg = "\n".join(traceback.format_exception(e)) - posthog_logger.capture_event( - "gui_error", - {"error_title": e.__str__() or e.__repr__(), "error_message": err_msg}, - ) - - await session.autopilot.ide.showMessage(err_msg) - + tb = "\n".join(traceback.format_exception(e, e, e.__traceback__)) + logger.critical(f"Error handling message: {tb}") raise e - finally: - logger.debug("Closing gui websocket") - if ( - websocket.client_state != WebSocketState.DISCONNECTED - and websocket.application_state != WebSocketState.DISCONNECTED - ): - await websocket.close() - - await session_manager.persist_session(session.session_id) - await session_manager.remove_session(session.session_id) diff --git a/server/continuedev/server/ide.py b/server/continuedev/server/ide.py index fc63ac13a..f93a38c98 100644 --- a/server/continuedev/server/ide.py +++ b/server/continuedev/server/ide.py @@ -1,706 +1,62 @@ # This is a separate server from server/main.py -import asyncio import json -import os import traceback -import uuid -from typing import Any, Callable, Coroutine, Dict, List, Optional, Type, TypeVar, Union +from .protocols.ide import WindowInfo +from ..models.websockets import WebsocketsMessage +from .window_manager import window_manager import nest_asyncio -from fastapi import APIRouter, WebSocket -from pydantic import BaseModel -from starlette.websockets import WebSocketDisconnect, WebSocketState -from uvicorn.main import Server +from fastapi import APIRouter +from pydantic import ValidationError +from urllib.parse import parse_qs -from ..core.main import ContinueCustomException -from ..core.steps import DisplayErrorStep -from ..libs.util.create_async_task import create_async_task -from ..libs.util.devdata import dev_data_logger from ..libs.util.logging import logger -from ..libs.util.queue import AsyncSubscriptionQueue -from ..libs.util.telemetry import posthog_logger -from ..models.filesystem import ( - EditDiff, - FileSystem, - RangeInFile, - RangeInFileWithContents, - RealFileSystem, -) -from ..models.filesystem_edit import ( - AddDirectory, - AddFile, - DeleteDirectory, - DeleteFile, - FileEdit, - FileEditWithFullContents, - FileSystemEdit, - RenameDirectory, - RenameFile, - SequentialFileSystemEdit, -) -from .gui import session_manager -from .ide_protocol import AbstractIdeProtocolServer -from .session_manager import SessionManager +import socketio nest_asyncio.apply() router = APIRouter(prefix="/ide", tags=["ide"]) +sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins="*") +sio_ide_app = socketio.ASGIApp(socketio_server=sio) -# Graceful shutdown by closing websockets -original_handler = Server.handle_exit +@sio.event +async def connect(sid, environ): + query = parse_qs(environ.get("QUERY_STRING", "")) + window_info_str = query.get("window_info", [None])[0] + window_info = WindowInfo.parse_raw(window_info_str) -class AppStatus: - should_exit = False + await window_manager.register_ide(window_info, sio, sid) - @staticmethod - def handle_exit(*args, **kwargs): - AppStatus.should_exit = True - logger.debug("Shutting down") - original_handler(*args, **kwargs) +@sio.event +async def disconnect(sid): + window_manager.remove_ide(sid) -Server.handle_exit = AppStatus.handle_exit - -# TYPES # - - -class FileEditsUpdate(BaseModel): - fileEdits: List[FileEditWithFullContents] - - -class OpenFilesResponse(BaseModel): - openFiles: List[str] - - -class VisibleFilesResponse(BaseModel): - visibleFiles: List[str] - - -class HighlightedCodeResponse(BaseModel): - highlightedCode: List[RangeInFile] - - -class ShowSuggestionRequest(BaseModel): - suggestion: FileEdit - - -class ShowSuggestionResponse(BaseModel): - suggestion: FileEdit - accepted: bool - - -class ReadFileResponse(BaseModel): - contents: str - - -class EditFileResponse(BaseModel): - fileEdit: FileEditWithFullContents - - -class WorkspaceDirectoryResponse(BaseModel): - workspaceDirectory: str - - -class GetUserSecretResponse(BaseModel): - value: str - - -class RunCommandResponse(BaseModel): - output: str = "" - - -class UniqueIdResponse(BaseModel): - uniqueId: str - - -class TerminalContentsResponse(BaseModel): - contents: str - - -class ListDirectoryContentsResponse(BaseModel): - contents: List[str] - - -class FileExistsResponse(BaseModel): - exists: bool - - -T = TypeVar("T", bound=BaseModel) - - -class cached_property_no_none: - def __init__(self, func): - self.func = func - - def __get__(self, instance, owner): - if instance is None: - return self - value = self.func(instance) - if value is not None: - setattr(instance, self.func.__name__, value) - return value - - def __repr__(self): - return f"" - - -class IdeProtocolServer(AbstractIdeProtocolServer): - websocket: WebSocket - session_manager: SessionManager - sub_queue: AsyncSubscriptionQueue = AsyncSubscriptionQueue() - session_id: Union[str, None] = None - - ide_info: Optional[Dict] = None - - def __init__(self, session_manager: SessionManager, websocket: WebSocket): - self.websocket = websocket - self.session_manager = session_manager - - workspace_directory: str = None - unique_id: str = None - - async def initialize(self, session_id: str) -> List[str]: - self.session_id = session_id - await self._send_json("workspaceDirectory", {}) - await self._send_json("uniqueId", {}) - await self._send_json("ide", {}) - other_msgs = [] - while True: - msg_string = await self.websocket.receive_text() - message = json.loads(msg_string) - if "messageType" not in message or "data" not in message: - continue # <-- hey that's the name of this repo! - message_type = message["messageType"] - data = message["data"] - logger.debug(f"Received message while initializing {message_type}") - logger.debug(data) - logger.debug(message) - if message_type == "workspaceDirectory": - self.workspace_directory = data["workspaceDirectory"] - elif message_type == "uniqueId": - self.unique_id = data["uniqueId"] - elif message_type == "ide": - self.ide_info = data - else: - other_msgs.append(msg_string) - - if self.workspace_directory is not None and self.unique_id is not None: - break - - return other_msgs - - async def _send_json(self, message_type: str, data: Any): - # TODO: You breakpointed here, set it to disconnected, and then saw - # that even after reloading, it couldn't connect the server. - # Is this because there is an IDE registered without a websocket? - # This shouldn't count as registered in that case. - try: - if self.websocket.application_state == WebSocketState.DISCONNECTED: - logger.debug( - f"Tried to send message, but websocket is disconnected: {message_type}" - ) - return - # logger.debug(f"Sending IDE message: {message_type}") - await self.websocket.send_json({"messageType": message_type, "data": data}) - except RuntimeError as e: - logger.warning(f"Error sending IDE message, websocket probably closed: {e}") - - async def _receive_json(self, message_type: str, message=None) -> Any: - return await self.sub_queue.get(message_type) - - async def _send_and_receive_json( - self, data: Any, resp_model: Type[T], message_type: str - ) -> T: - async def try_with_timeout(timeout: int): - await self._send_json(message_type, data) - resp = await asyncio.wait_for( - self._receive_json(message_type, message=data), timeout=timeout - ) - return resp_model.parse_obj(resp) - - timeout = 1.0 - while True: - try: - return await try_with_timeout(timeout) - except asyncio.TimeoutError: - timeout *= 1.5 - if timeout > 10: - raise ContinueCustomException( - title=f"IDE Protocol _receive_json timed out: {message_type}", - message=f"IDE Protocol _receive_json timed out. The message sent was: {message or ''}", - ) - - async def handle_json(self, message_type: str, data: Any): - if message_type == "getSessionId": - await self.getSessionId() - elif message_type == "setFileOpen": - await self.setFileOpen(data["filepath"], data["open"]) - elif message_type == "setSuggestionsLocked": - await self.setSuggestionsLocked(data["filepath"], data["locked"]) - elif message_type == "fileEdits": - fileEdits = list( - map(lambda d: FileEditWithFullContents.parse_obj(d), data["fileEdits"]) - ) - self.onFileEdits(fileEdits) - elif message_type == "highlightedCodePush": - self.onHighlightedCodeUpdate( - [RangeInFileWithContents(**rif) for rif in data["highlightedCode"]], - edit=data.get("edit", False), - ) - elif message_type == "commandOutput": - output = data["output"] - self.onCommandOutput(output) - elif message_type == "debugTerminal": - content = data["contents"] - self.onDebugTerminal(content) - elif message_type == "acceptRejectSuggestion": - self.onAcceptRejectSuggestion(data["accepted"]) - elif message_type == "acceptRejectDiff": - self.onAcceptRejectDiff(data["accepted"], data["stepIndex"]) - elif message_type == "mainUserInput": - self.onMainUserInput(data["input"]) - elif message_type == "deleteAtIndex": - self.onDeleteAtIndex(data["index"]) - elif message_type in [ - "highlightedCode", - "openFiles", - "visibleFiles", - "readFile", - "editFile", - "getUserSecret", - "runCommand", - "getTerminalContents", - "listDirectoryContents", - "fileExists", - ]: - self.sub_queue.post(message_type, data) - elif message_type == "workspaceDirectory": - self.workspace_directory = data["workspaceDirectory"] - elif message_type == "uniqueId": - self.unique_id = data["uniqueId"] - elif message_type == "ide": - self.ide_info = data - elif message_type == "filesCreated": - self.onFilesCreated(data["filepaths"]) - elif message_type == "filesDeleted": - self.onFilesDeleted(data["filepaths"]) - elif message_type == "filesRenamed": - self.onFilesRenamed(data["old_filepaths"], data["new_filepaths"]) - elif message_type == "fileSaved": - self.onFileSaved(data["filepath"], data["contents"]) - elif message_type == "setTelemetryEnabled": - self.onTelemetryEnabledChanged(data["enabled"]) - else: - raise ValueError("Unknown message type", message_type) - - async def showSuggestion(self, file_edit: FileEdit): - await self._send_json("showSuggestion", {"edit": file_edit.dict()}) - - async def showDiff(self, filepath: str, replacement: str, step_index: int): - await self._send_json( - "showDiff", - { - "filepath": filepath, - "replacement": replacement, - "step_index": step_index, - }, - ) - - async def setFileOpen(self, filepath: str, open: bool = True): - # Autopilot needs access to this. - await self._send_json("setFileOpen", {"filepath": filepath, "open": open}) - - async def showMessage(self, message: str): - await self._send_json("showMessage", {"message": message}) - - async def showVirtualFile(self, name: str, contents: str): - await self._send_json("showVirtualFile", {"name": name, "contents": contents}) - - async def setSuggestionsLocked(self, filepath: str, locked: bool = True): - # Lock suggestions in the file so they don't ruin the offset before others are inserted - await self._send_json( - "setSuggestionsLocked", {"filepath": filepath, "locked": locked} - ) - - def onTelemetryEnabledChanged(self, enabled: bool): - if autopilot := self.__get_autopilot(): - - async def change_telemetry(): - await autopilot.set_config_attr( - ["allow_anonymous_telemetry"], "True" if enabled else "False" - ) - await autopilot.continue_sdk.load() - - create_async_task(change_telemetry(), self.on_error) - - async def getSessionId(self): - new_session = await asyncio.wait_for( - self.session_manager.new_session(self, self.session_id), timeout=5 - ) - session_id = new_session.session_id - logger.debug(f"Sending session id: {session_id}") - await self._send_json("getSessionId", {"sessionId": session_id}) - - async def highlightCode(self, range_in_file: RangeInFile, color: str = "#00ff0022"): - await self._send_json( - "highlightCode", {"rangeInFile": range_in_file.dict(), "color": color} - ) - - async def runCommand(self, command: str) -> str: - return ( - await self._send_and_receive_json( - {"command": command}, RunCommandResponse, "runCommand" - ) - ).output - - async def showSuggestionsAndWait(self, suggestions: List[FileEdit]) -> bool: - ids = [str(uuid.uuid4()) for _ in suggestions] - for i in range(len(suggestions)): - self._send_json( - "showSuggestion", {"suggestion": suggestions[i], "suggestionId": ids[i]} - ) - responses = await asyncio.gather( - *[ - self._receive_json(ShowSuggestionResponse) - for i in range(len(suggestions)) - ] - ) # WORKING ON THIS FLOW HERE. Fine now to just await for response, instead of doing something fancy with a "waiting" state on the autopilot. - # Just need connect the suggestionId to the IDE (and the gui) - return any([r.accepted for r in responses]) - - def on_error(self, e: Exception) -> Coroutine: - err_msg = "\n".join(traceback.format_exception(e)) - e_title = e.__str__() or e.__repr__() - return self.showMessage(f"Error in Continue server: {e_title}\n {err_msg}") - - def onAcceptRejectSuggestion(self, accepted: bool): - posthog_logger.capture_event("accept_reject_suggestion", {"accepted": accepted}) - dev_data_logger.capture("accept_reject_suggestion", {"accepted": accepted}) - - def onAcceptRejectDiff(self, accepted: bool, step_index: int): - posthog_logger.capture_event("accept_reject_diff", {"accepted": accepted}) - dev_data_logger.capture("accept_reject_diff", {"accepted": accepted}) - - if not accepted: - if autopilot := self.__get_autopilot(): - create_async_task( - autopilot.reject_diff(step_index), - self.on_error, - ) - - def onFileSystemUpdate(self, update: FileSystemEdit): - # Access to Autopilot (so SessionManager) - pass - - def onCloseGUI(self, session_id: str): - # Access to SessionManager - pass - - def onOpenGUIRequest(self): - pass - - def __get_autopilot(self): - if self.session_id not in self.session_manager.sessions: - return None - - autopilot = self.session_manager.sessions[self.session_id].autopilot - return autopilot if autopilot.started else None - - def onFileEdits(self, edits: List[FileEditWithFullContents]): - if autopilot := self.__get_autopilot(): - pass - - def onDeleteAtIndex(self, index: int): - if autopilot := self.__get_autopilot(): - create_async_task(autopilot.delete_at_index(index), self.on_error) - - def onCommandOutput(self, output: str): - if autopilot := self.__get_autopilot(): - create_async_task(autopilot.handle_command_output(output), self.on_error) - - def onDebugTerminal(self, content: str): - if autopilot := self.__get_autopilot(): - create_async_task(autopilot.handle_debug_terminal(content), self.on_error) - - def onHighlightedCodeUpdate( - self, - range_in_files: List[RangeInFileWithContents], - edit: Optional[bool] = False, - ): - if autopilot := self.__get_autopilot(): - create_async_task( - autopilot.handle_highlighted_code(range_in_files, edit), self.on_error - ) - - ## Subscriptions ## - - _files_created_callbacks = [] - _files_deleted_callbacks = [] - _files_renamed_callbacks = [] - _file_saved_callbacks = [] - - def call_callback(self, callback, *args, **kwargs): - if asyncio.iscoroutinefunction(callback): - create_async_task(callback(*args, **kwargs), self.on_error) - else: - callback(*args, **kwargs) - - def subscribeToFilesCreated(self, callback: Callable[[List[str]], None]): - self._files_created_callbacks.append(callback) - - def subscribeToFilesDeleted(self, callback: Callable[[List[str]], None]): - self._files_deleted_callbacks.append(callback) - - def subscribeToFilesRenamed(self, callback: Callable[[List[str], List[str]], None]): - self._files_renamed_callbacks.append(callback) - - def subscribeToFileSaved(self, callback: Callable[[str, str], None]): - self._file_saved_callbacks.append(callback) - - def onFilesCreated(self, filepaths: List[str]): - for callback in self._files_created_callbacks: - self.call_callback(callback, filepaths) - - def onFilesDeleted(self, filepaths: List[str]): - for callback in self._files_deleted_callbacks: - self.call_callback(callback, filepaths) - - def onFilesRenamed(self, old_filepaths: List[str], new_filepaths: List[str]): - for callback in self._files_renamed_callbacks: - self.call_callback(callback, old_filepaths, new_filepaths) - - def onFileSaved(self, filepath: str, contents: str): - for callback in self._file_saved_callbacks: - self.call_callback(callback, filepath, contents) - - # If ~/.continue/config.py was saved, auto-update the SDK - if filepath.endswith(".continue/config.py") or filepath.endswith( - ".continue\\config.py" - ): - if autopilot := self.__get_autopilot(): - create_async_task(autopilot.reload_config(), self.on_error) - - ## END Subscriptions ## - - def onMainUserInput(self, input: str): - if autopilot := self.__get_autopilot(): - create_async_task(autopilot.accept_user_input(input), self.on_error) - - # Request information. Session doesn't matter. - async def getOpenFiles(self) -> List[str]: - resp = await self._send_and_receive_json({}, OpenFilesResponse, "openFiles") - return resp.openFiles - - async def getVisibleFiles(self) -> List[str]: - resp = await self._send_and_receive_json( - {}, VisibleFilesResponse, "visibleFiles" - ) - return resp.visibleFiles - - async def getTerminalContents(self, commands: int = -1) -> str: - """Get the contents of the terminal, up to the last 'commands' commands, or all if commands is -1""" - resp = await self._send_and_receive_json( - {"commands": commands}, TerminalContentsResponse, "getTerminalContents" - ) - return resp.contents.strip() - - async def getHighlightedCode(self) -> List[RangeInFile]: - resp = await self._send_and_receive_json( - {}, HighlightedCodeResponse, "highlightedCode" - ) - return resp.highlightedCode - - async def readFile(self, filepath: str) -> str: - """Read a file""" - resp = await self._send_and_receive_json( - {"filepath": filepath}, ReadFileResponse, "readFile" - ) - return resp.contents - - async def fileExists(self, filepath: str) -> str: - """Check whether file exists""" - resp = await self._send_and_receive_json( - {"filepath": filepath}, FileExistsResponse, "fileExists" - ) - return resp.exists - - async def getUserSecret(self, key: str) -> str: - """Get a user secret""" - try: - resp = await self._send_and_receive_json( - {"key": key}, GetUserSecretResponse, "getUserSecret" - ) - return resp.value - except Exception as e: - logger.debug(f"Error getting user secret: {e}") - return "" - - async def saveFile(self, filepath: str): - """Save a file""" - await self._send_json("saveFile", {"filepath": filepath}) - - async def readRangeInFile(self, range_in_file: RangeInFile) -> str: - """Read a range in a file""" - full_contents = await self.readFile(range_in_file.filepath) - return FileSystem.read_range_in_str(full_contents, range_in_file.range) - - async def editFile(self, edit: FileEdit) -> FileEditWithFullContents: - """Edit a file""" - resp = await self._send_and_receive_json( - {"edit": edit.dict()}, EditFileResponse, "editFile" - ) - return resp.fileEdit - - async def listDirectoryContents( - self, directory: str, recursive: bool = False - ) -> List[str]: - """List the contents of a directory""" - resp = await self._send_and_receive_json( - {"directory": directory, "recursive": recursive}, - ListDirectoryContentsResponse, - "listDirectoryContents", - ) - return resp.contents - - async def applyFileSystemEdit(self, edit: FileSystemEdit) -> EditDiff: - """Apply a file edit""" - backward = None - fs = RealFileSystem() - if isinstance(edit, FileEdit): - file_edit = await self.editFile(edit) - _, diff = FileSystem.apply_edit_to_str( - file_edit.fileContents, file_edit.fileEdit - ) - backward = diff.backward - elif isinstance(edit, AddFile): - fs.write(edit.filepath, edit.content) - backward = DeleteFile(filepath=edit.filepath) - elif isinstance(edit, DeleteFile): - contents = await self.readFile(edit.filepath) - backward = AddFile(filepath=edit.filepath, content=contents) - fs.delete_file(edit.filepath) - elif isinstance(edit, RenameFile): - fs.rename_file(edit.filepath, edit.new_filepath) - backward = RenameFile( - filepath=edit.new_filepath, new_filepath=edit.filepath - ) - elif isinstance(edit, AddDirectory): - fs.add_directory(edit.path) - backward = DeleteDirectory(path=edit.path) - elif isinstance(edit, DeleteDirectory): - # This isn't atomic! - backward_edits = [] - for root, dirs, files in os.walk(edit.path, topdown=False): - for f in files: - path = os.path.join(root, f) - edit_diff = await self.applyFileSystemEdit( - DeleteFile(filepath=path) - ) - backward_edits.append(edit_diff) - for d in dirs: - path = os.path.join(root, d) - edit_diff = await self.applyFileSystemEdit( - DeleteDirectory(path=path) - ) - backward_edits.append(edit_diff) - - edit_diff = await self.applyFileSystemEdit(DeleteDirectory(path=edit.path)) - backward_edits.append(edit_diff) - backward_edits.reverse() - backward = SequentialFileSystemEdit(edits=backward_edits) - elif isinstance(edit, RenameDirectory): - fs.rename_directory(edit.path, edit.new_path) - backward = RenameDirectory(path=edit.new_path, new_path=edit.path) - elif isinstance(edit, FileSystemEdit): - diffs = [] - for edit in edit.next_edit(): - edit_diff = await self.applyFileSystemEdit(edit) - diffs.append(edit_diff) - backward = EditDiff.from_sequence(diffs=diffs).backward - else: - raise TypeError("Unknown FileSystemEdit type: " + str(type(edit))) - - return EditDiff(forward=edit, backward=backward) - - -@router.websocket("/ws") -async def websocket_endpoint(websocket: WebSocket, session_id: str = None): +@sio.event +async def message(sid, data): try: - # Accept the websocket connection - await websocket.accept() - logger.debug(f"Accepted websocket connection from {websocket.client}") - await websocket.send_json({"messageType": "connected", "data": {}}) + if isinstance(data, str): + data = json.loads(data) - # Message handler - def handle_msg(msg): - try: - message = json.loads(msg) - except json.JSONDecodeError: - logger.critical(f"Error decoding json: {msg}") - return + message = WebsocketsMessage.parse_obj(data) + except json.JSONDecodeError: + logger.critical(f"Error decoding json: {data}") + return + except ValidationError as e: + tb = "\n".join(traceback.format_exception(e, e, e.__traceback__)) + logger.critical(f"Error validating json: {tb}") + return - if "messageType" not in message or "data" not in message: - return - message_type = message["messageType"] - data = message["data"] - - # logger.debug(f"Received IDE message: {message_type}") - create_async_task( - ideProtocolServer.handle_json(message_type, data), - ideProtocolServer.on_error, - ) - - # Initialize the IDE Protocol Server - ideProtocolServer = IdeProtocolServer(session_manager, websocket) - if session_id is not None: - session_manager.registered_ides[session_id] = ideProtocolServer - other_msgs = await ideProtocolServer.initialize(session_id) - logger.debug(other_msgs) - # posthog_logger.capture_event( - # "session_started", {"session_id": ideProtocolServer.session_id} - # ) - - for other_msg in other_msgs: - logger.debug("processing....:") - handle_msg(other_msg) - - # Handle messages - while AppStatus.should_exit is False: - message = await websocket.receive_text() - handle_msg(message) - - except WebSocketDisconnect: - logger.debug("IDE websocket disconnected") + try: + if ide := window_manager.get_ide(sid): + await ide.handle_json(message) + else: + logger.critical(f"IDE not found for sid {sid}") except Exception as e: - logger.debug(f"Error in ide websocket: {e}") - err_msg = "\n".join(traceback.format_exception(e)) - posthog_logger.capture_event( - "gui_error", - {"error_title": e.__str__() or e.__repr__(), "error_message": err_msg}, - ) - - if session_id is not None and session_id in session_manager.sessions: - await session_manager.sessions[session_id].autopilot.continue_sdk.run_step( - DisplayErrorStep.from_exception(e) - ) - elif ideProtocolServer is not None: - await ideProtocolServer.showMessage(f"Error in Continue server: {err_msg}") - + tb = "\n".join(traceback.format_exception(e, e, e.__traceback__)) + logger.critical(f"Error handling message: {tb}") raise e - finally: - logger.debug("Closing ide websocket") - if ( - websocket.client_state != WebSocketState.DISCONNECTED - and websocket.application_state != WebSocketState.DISCONNECTED - ): - await websocket.close() - - posthog_logger.capture_event( - "session_ended", {"session_id": ideProtocolServer.session_id} - ) - if ideProtocolServer.session_id in session_manager.registered_ides: - session_manager.registered_ides.pop(ideProtocolServer.session_id) diff --git a/server/continuedev/server/main.py b/server/continuedev/server/main.py index 76c97ec65..efc050935 100644 --- a/server/continuedev/server/main.py +++ b/server/continuedev/server/main.py @@ -2,7 +2,10 @@ import argparse import asyncio import atexit from contextlib import asynccontextmanager -from typing import Optional +from typing import List, Optional + +from ..core.main import ContextProviderDescription, SlashCommandDescription +from ..core.config import ContinueConfig import uvicorn from fastapi import FastAPI @@ -10,11 +13,10 @@ from fastapi.middleware.cors import CORSMiddleware from ..libs.util.create_async_task import create_async_task from ..libs.util.logging import logger -from .gui import router as gui_router -from .ide import router as ide_router +from .gui import router as gui_router, sio_gui_app +from .ide import router as ide_router, sio_ide_app +from .sessions import router as sessions_router from .meilisearch_server import start_meilisearch, stop_meilisearch -from .session_manager import router as sessions_router -from .session_manager import session_manager from .global_config import global_config @@ -39,6 +41,9 @@ app.include_router(ide_router) app.include_router(gui_router) app.include_router(sessions_router) +app.mount("/ide", sio_ide_app) +app.mount("/gui", sio_gui_app) + # Add CORS support app.add_middleware( CORSMiddleware, @@ -48,6 +53,20 @@ app.add_middleware( allow_headers=["*"], ) +# region: Base endpoints + +root_config = ContinueConfig.load_default() + + +@app.get("/slash_commands") +def get_slash_commands() -> List[SlashCommandDescription]: + return root_config.get_slash_command_descriptions() + + +@app.get("/context_providers") +def get_context_providers() -> List[ContextProviderDescription]: + return root_config.get_context_provider_descriptions() + @app.get("/health") def health(): @@ -55,6 +74,9 @@ def health(): return {"status": "ok"} +# endregion + + def run_server( port: int = 65432, host: str = "127.0.0.1", meilisearch_url: Optional[str] = None ): @@ -80,9 +102,7 @@ def run_server( async def cleanup_coroutine(): - logger.debug("------ Cleaning Up ------") - for session_id in session_manager.sessions: - await session_manager.persist_session(session_id) + logger.debug("------ End logs ------") def cleanup(): diff --git a/server/continuedev/server/meilisearch_server.py b/server/continuedev/server/meilisearch_server.py index 87bc4d48d..416f0c24a 100644 --- a/server/continuedev/server/meilisearch_server.py +++ b/server/continuedev/server/meilisearch_server.py @@ -78,7 +78,7 @@ async def ensure_meilisearch_installed() -> bool: if meilisearchPath in existing_paths: try: os.remove(meilisearchPath) - except: + except Exception: pass existing_paths.remove(meilisearchPath) @@ -160,7 +160,7 @@ async def start_meilisearch(url: Optional[str] = None): shell=True, ) - logger.debug("Meilisearch started") + logger.info(f"Meilisearch started at {meilisearch_url}") def stop_meilisearch(): diff --git a/server/continuedev/server/protocols/gui.py b/server/continuedev/server/protocols/gui.py new file mode 100644 index 000000000..92c51d965 --- /dev/null +++ b/server/continuedev/server/protocols/gui.py @@ -0,0 +1,314 @@ +from typing import Any, Callable, Dict, List, Optional, TypeVar + +from ...core.config import ContinueConfig +from ...core.autopilot import Autopilot +import socketio +import uuid + +from pydantic import BaseModel + +from ...models.websockets import WebsocketsMessage +from ...core.main import ContextItem, SessionState, SessionUpdate, Step, StepDescription +from ...core.models import ALL_MODEL_ROLES, MODEL_CLASSES, MODEL_MODULE_NAMES +from ...core.steps import DisplayErrorStep +from ...libs.llm.prompts.chat import ( + llama2_template_messages, + sqlcoder_template_messages, + template_alpaca_messages, +) +from ...libs.llm.prompts.edit import codellama_edit_prompt, alpaca_edit_prompt +from ...libs.util.create_async_task import create_async_task +from ...libs.util.edit_config import ( + add_config_import, + create_obj_node, + display_llm_class, + edit_config_property, +) +from ...libs.util.telemetry import posthog_logger +from ..websockets_messenger import SocketIOMessenger + + +T = TypeVar("T", bound=BaseModel) + +# You should probably abstract away the websocket stuff into a separate class + + +class GUIProtocolServer: + window_id: str + messenger: SocketIOMessenger + + get_autopilot: Callable[[SessionState], Autopilot] + get_context_item: Callable[[str, str], ContextItem] + get_config: Callable[[], ContinueConfig] + reload_config: Callable[[], None] + + def __init__( + self, + window_id: str, + sio: socketio.AsyncServer, + sid: str, + get_autopilot: Callable[[SessionState], Autopilot], + get_context_item: Callable[[str, str], ContextItem], + get_config: Callable[[], ContinueConfig], + reload_config: Callable[[], None], + ): + self.window_id = window_id + self.messenger = SocketIOMessenger(sio, sid) + self.get_autopilot = get_autopilot + self.get_context_item = get_context_item + self.get_config = get_config + self.reload_config = reload_config + + def on_error(self, e: Exception): + # TODO + return self.session.autopilot.sdk.run_step(DisplayErrorStep.from_exception(e)) + + async def handle_json(self, msg: WebsocketsMessage): + data = msg.data + if msg.message_type == "run_from_state": + await self.run_from_state(SessionState.parse_obj(data["state"])) + elif msg.message_type == "stop_session": + await self.stop_session() + elif msg.message_type == "get_context_item": + return (await self.get_context_item(data["id"], data["query"])).dict() + elif msg.message_type == "get_session_title": + return await self.get_session_title( + [StepDescription(**step) for step in data["history"]] + ) + elif msg.message_type == "get_config": + return self.get_config().dict() + + elif msg.message_type == "show_context_virtual_file": + self.show_context_virtual_file(data.get("index", None)) + elif msg.message_type == "load_session": + self.load_session(data.get("session_id", None)) + elif msg.message_type == "set_system_message": + sys_message = data["system_message"] + ContinueConfig.set_system_message(sys_message) + posthog_logger.capture_event( + "set_system_message", {"system_message": sys_message} + ) + await self.reload_config() + await self.send_config_update() + elif msg.message_type == "set_temperature": + ContinueConfig.set_temperature(float(data["temperature"])) + await self.reload_config() + await self.send_config_update() + elif msg.message_type == "add_model_for_role": + await self.add_model_for_role( + data["role"], data["model_class"], data["model"] + ) + elif msg.message_type == "set_model_for_role_from_index": + await self.set_model_for_role_from_index(data["role"], data["index"]) + elif msg.message_type == "save_context_group": + self.save_context_group( + data["title"], [ContextItem(**item) for item in data["context_items"]] + ) + elif msg.message_type == "select_context_group": + self.select_context_group(data["id"]) + elif msg.message_type == "delete_context_group": + self.delete_context_group(data["id"]) + elif msg.message_type == "preview_context_item": + self.preview_context_item(data["id"]) + + def show_context_virtual_file(self, index: Optional[int] = None): + async def async_stuff(): + if index is None: + context_items = ( + await self.session.autopilot.context_manager.get_selected_items() + ) + elif index < len(self.session.autopilot.sdk.history.timeline): + context_items = self.session.autopilot.sdk.history.timeline[ + index + ].context_used + + ctx = "\n\n-----------------------------------\n\n".join( + ["These are the context items that will be passed to the LLM"] + + list(map(lambda x: x.content, context_items)) + ) + await self.session.autopilot.ide.showVirtualFile( + "Continue - Selected Context", ctx + ) + + create_async_task( + async_stuff(), + self.on_error, + ) + + def select_context_item(self, id: str, query: str): + """Called when user selects an item from the dropdown""" + create_async_task( + self.session.autopilot.select_context_item(id, query), self.on_error + ) + + def select_context_item_at_index(self, id: str, query: str, index: int): + """Called when user selects an item from the dropdown for prev UserInputStep""" + create_async_task( + self.session.autopilot.select_context_item_at_index(id, query, index), + self.on_error, + ) + + def preview_context_item(self, id: str): + """Called when user clicks on an item from the dropdown""" + create_async_task( + self.session.autopilot.context_manager.preview_context_item(id), + self.on_error, + ) + + # def load_session(self, session_id: Optional[str] = None): + # async def load_and_tell_to_reconnect(): + # new_session_id = await session_manager.load_session( + # self.session.session_id, session_id + # ) + # await self._send_json( + # "reconnect_at_session", {"session_id": new_session_id} + # ) + + # create_async_task(load_and_tell_to_reconnect(), self.on_error) + + # posthog_logger.capture_event("load_session", {"session_id": session_id}) + + async def set_model_for_role_from_index(self, role: str, index: int): + models = self.get_config().models + temp = models.default + models.default = models.saved[index] + models.saved[index] = temp + + ContinueConfig.set_models(models, role) + await self.reload_config() + await self.send_config_update() + + async def add_model_for_role(self, role: str, model_class: str, model: Any): + models = self.get_config().models + + model_copy = model.copy() + if "api_key" in model_copy: + del model_copy["api_key"] + if "hf_token" in model_copy: + del model_copy["hf_token"] + + posthog_logger.capture_event( + "select_model_for_role", + {"role": role, "model_class": model_class, "model": model_copy}, + ) + + if role == "*": + # Remove all previous models in roles and place in saved + saved_models = models.saved + existing_saved_models = set( + [display_llm_class(llm) for llm in saved_models] + ) + for role in ALL_MODEL_ROLES: + val = models.__getattribute__(role) + if ( + val is not None + and display_llm_class(val) not in existing_saved_models + ): + saved_models.append(val) + existing_saved_models.add(display_llm_class(val)) + models.__setattr__(role, None) + + # Add the requisite import to config.py + default_model_display_overrides = {} + add_config_import( + f"from continuedev.libs.llm.{MODEL_MODULE_NAMES[model_class]} import {model_class}" + ) + if "template_messages" in model: + add_config_import( + f"from continuedev.libs.llm.prompts.chat import {model['template_messages']}" + ) + sqtm = sqlcoder_template_messages("") + sqtm.__name__ = 'sqlcoder_template_messages("")' + model["template_messages"] = { + "llama2_template_messages": llama2_template_messages, + "template_alpaca_messages": template_alpaca_messages, + "sqlcoder_template_messages": sqtm, + }[model["template_messages"]] + + if "prompt_templates" in model and "edit" in model["prompt_templates"]: + default_model_display_overrides[ + "prompt_templates" + ] = f"""{{"edit": {model["prompt_templates"]["edit"]}}}""" + add_config_import( + f"from continuedev.libs.llm.prompts.edit import {model['prompt_templates']['edit']}" + ) + model["prompt_templates"]["edit"] = { + "codellama_edit_prompt": codellama_edit_prompt, + "alpaca_edit_prompt": alpaca_edit_prompt, + }[model["prompt_templates"]["edit"]] + + # Set the new default model + new_model = MODEL_CLASSES[model_class](**model) + models.default = new_model + + # Construct and set the new models object + JOINER = ",\n\t\t" + saved_model_strings = set([display_llm_class(llm) for llm in saved_models]) + models_args = { + "default": display_llm_class( + models.default, True, default_model_display_overrides + ), + "saved": f"[{JOINER.join(saved_model_strings)}]", + } + + edit_config_property( + ["models"], + create_obj_node("Models", models_args), + ) + await self.reload_config() + await self.send_config_update() + else: + # TODO + pass + + def save_context_group(self, title: str, context_items: List[ContextItem]): + create_async_task( + self.session.autopilot.save_context_group(title, context_items), + self.on_error, + ) + + def select_context_group(self, id: str): + create_async_task( + self.session.autopilot.select_context_group(id), self.on_error + ) + + def delete_context_group(self, id: str): + create_async_task( + self.session.autopilot.delete_context_group(id), self.on_error + ) + + # region: Send data to GUI + + _running_autopilots: Dict[str, Autopilot] = {} + + async def run_from_state(self, state: SessionState, step: Optional[Step] = None): + autopilot = self.get_autopilot(state) + cancel_token = str(uuid.uuid4()) + self._running_autopilots[cancel_token] = autopilot + await autopilot.run(step=step) + del self._running_autopilots[cancel_token] + + async def stop_session(self): + for autopilot in self._running_autopilots.values(): + autopilot.stopped = True + + async def send_session_update(self, session_update: SessionUpdate): + await self.messenger.send("session_update", session_update.dict()) + + async def get_session_state(self) -> SessionState: + return await self.messenger.send_and_receive( + {}, SessionState, "get_session_state" + ) + + async def add_context_item(self, item: ContextItem): + await self.messenger.send("add_context_item", item.dict()) + + async def send_config_update(self): + await self.messenger.send("config_update", self.get_config().dict()) + + async def get_session_title(self, history: List[StepDescription]) -> str: + return await self.get_autopilot( + SessionState(history=history, context_items=[]) + ).get_session_title() + + # endregion diff --git a/server/continuedev/server/protocols/gui_protocol.py b/server/continuedev/server/protocols/gui_protocol.py new file mode 100644 index 000000000..87075132d --- /dev/null +++ b/server/continuedev/server/protocols/gui_protocol.py @@ -0,0 +1,15 @@ +from ...models.websockets import WebsocketsMessage +from ...core.main import SessionUpdate +from abc import ABC, abstractmethod + + +class AbstractGUIProtocolServer(ABC): + window_id: str + + @abstractmethod + async def send_session_update(self, session_update: SessionUpdate): + ... + + @abstractmethod + async def handle_json(self, msg: WebsocketsMessage): + """Handle a json message""" diff --git a/server/continuedev/server/protocols/ide.py b/server/continuedev/server/protocols/ide.py new file mode 100644 index 000000000..23fac5774 --- /dev/null +++ b/server/continuedev/server/protocols/ide.py @@ -0,0 +1,474 @@ +# This is a separate server from server/main.py +import asyncio +import os +import traceback +from typing import ( + Any, + Callable, + Coroutine, + Dict, + List, + Optional, +) + +from ...libs.util.create_async_task import create_async_task +from ...models.filesystem import ( + FileSystem, + RangeInFile, + RangeInFileWithContents, + RealFileSystem, +) +from ...models.filesystem_edit import ( + AddDirectory, + AddFile, + DeleteDirectory, + DeleteFile, + EditDiff, + FileEdit, + FileEditWithFullContents, + FileSystemEdit, + RenameDirectory, + RenameFile, + SequentialFileSystemEdit, +) +from ...models.websockets import WebsocketsMessage +from ..websockets_messenger import SocketIOMessenger +from ...libs.util.logging import logger +from ...libs.util.telemetry import posthog_logger +from ...libs.util.devdata import dev_data_logger + +from pydantic import BaseModel + + +from .ide_protocol import AbstractIdeProtocolServer +import socketio + +# region: Types + + +class FileEditsUpdate(BaseModel): + fileEdits: List[FileEditWithFullContents] + + +class OpenFilesResponse(BaseModel): + openFiles: List[str] + + +class VisibleFilesResponse(BaseModel): + visibleFiles: List[str] + + +class HighlightedCodeResponse(BaseModel): + highlightedCode: List[RangeInFile] + + +class ShowSuggestionRequest(BaseModel): + suggestion: FileEdit + + +class ShowSuggestionResponse(BaseModel): + suggestion: FileEdit + accepted: bool + + +class ReadFileResponse(BaseModel): + contents: str + + +class EditFileResponse(BaseModel): + fileEdit: FileEditWithFullContents + + +class WorkspaceDirectoryResponse(BaseModel): + workspaceDirectory: str + + +class GetUserSecretResponse(BaseModel): + value: str + + +class RunCommandResponse(BaseModel): + output: str = "" + + +class UniqueIdResponse(BaseModel): + uniqueId: str + + +class TerminalContentsResponse(BaseModel): + contents: str + + +class ListDirectoryContentsResponse(BaseModel): + contents: List[str] + + +class FileExistsResponse(BaseModel): + exists: bool + + +# endregion + + +class WindowInfo(BaseModel): + window_id: str + workspace_directory: str + unique_id: str + ide_info: Dict[str, Any] + + +class cached_property_no_none: + def __init__(self, func): + self.func = func + + def __get__(self, instance, owner): + if instance is None: + return self + value = self.func(instance) + if value is not None: + setattr(instance, self.func.__name__, value) + return value + + def __repr__(self): + return f"" + + +class IdeProtocolServer(AbstractIdeProtocolServer): + messenger: SocketIOMessenger + window_info: WindowInfo + + @property + def workspace_directory(self) -> str: + return self.window_info.workspace_directory + + def __init__(self, window_info: WindowInfo, sio: socketio.AsyncServer, sid: str): + self.messenger = SocketIOMessenger(sio, sid) + self.window_info = window_info + + async def handle_json(self, msg: WebsocketsMessage): + data = msg.data + if msg.message_type == "setFileOpen": + await self.setFileOpen(data["filepath"], data["open"]) + elif msg.message_type == "setSuggestionsLocked": + await self.setSuggestionsLocked(data["filepath"], data["locked"]) + elif msg.message_type == "fileEdits": + fileEdits = list( + map(lambda d: FileEditWithFullContents.parse_obj(d), data["fileEdits"]) + ) + self.onFileEdits(fileEdits) + elif msg.message_type == "highlightedCodePush": + self.onHighlightedCodeUpdate( + [RangeInFileWithContents(**rif) for rif in data["highlightedCode"]], + edit=data.get("edit", False), + ) + elif msg.message_type == "debugTerminal": + content = data["contents"] + self.onDebugTerminal(content) + elif msg.message_type == "acceptRejectSuggestion": + self.onAcceptRejectSuggestion(data["accepted"]) + elif msg.message_type == "acceptRejectDiff": + self.onAcceptRejectDiff(data["accepted"], data["stepIndex"]) + elif msg.message_type in [ + "highlightedCode", + "openFiles", + "visibleFiles", + "readFile", + "editFile", + "getUserSecret", + "runCommand", + "getTerminalContents", + "listDirectoryContents", + "fileExists", + ]: + # self.messenger.post(msg) + pass + elif msg.message_type == "workspaceDirectory": + self.workspace_directory = data["workspaceDirectory"] + elif msg.message_type == "uniqueId": + self.unique_id = data["uniqueId"] + elif msg.message_type == "ide": + self.ide_info = data + elif msg.message_type == "filesCreated": + self.onFilesCreated(data["filepaths"]) + elif msg.message_type == "filesDeleted": + self.onFilesDeleted(data["filepaths"]) + elif msg.message_type == "filesRenamed": + self.onFilesRenamed(data["old_filepaths"], data["new_filepaths"]) + elif msg.message_type == "fileSaved": + self.onFileSaved(data["filepath"], data["contents"]) + elif msg.message_type == "setTelemetryEnabled": + self.onTelemetryEnabledChanged(data["enabled"]) + else: + raise ValueError("Unknown message type", msg.message_type) + + async def showSuggestion(self, file_edit: FileEdit): + await self.messenger.send("showSuggestion", {"edit": file_edit.dict()}) + + async def showDiff(self, filepath: str, replacement: str, step_index: int): + await self.messenger.send( + "showDiff", + { + "filepath": filepath, + "replacement": replacement, + "step_index": step_index, + }, + ) + + async def setFileOpen(self, filepath: str, open: bool = True): + # Autopilot needs access to this. + await self.messenger.send("setFileOpen", {"filepath": filepath, "open": open}) + + async def showMessage(self, message: str): + await self.messenger.send("showMessage", {"message": message}) + + async def showVirtualFile(self, name: str, contents: str): + await self.messenger.send( + "showVirtualFile", {"name": name, "contents": contents} + ) + + async def setSuggestionsLocked(self, filepath: str, locked: bool = True): + # Lock suggestions in the file so they don't ruin the offset before others are inserted + await self.messenger.send( + "setSuggestionsLocked", {"filepath": filepath, "locked": locked} + ) + + async def highlightCode(self, range_in_file: RangeInFile, color: str = "#00ff0022"): + await self.messenger.send( + "highlightCode", {"rangeInFile": range_in_file.dict(), "color": color} + ) + + async def runCommand(self, command: str) -> str: + return ( + await self.messenger.send_and_receive( + {"command": command}, RunCommandResponse, "runCommand" + ) + ).output + + def on_error(self, e: Exception) -> Coroutine: + err_msg = "\n".join(traceback.format_exception(e)) + e_title = e.__str__() or e.__repr__() + return self.showMessage(f"Error in Continue server: {e_title}\n {err_msg}") + + def onAcceptRejectSuggestion(self, accepted: bool): + posthog_logger.capture_event("accept_reject_suggestion", {"accepted": accepted}) + dev_data_logger.capture("accept_reject_suggestion", {"accepted": accepted}) + + def onAcceptRejectDiff(self, accepted: bool, step_index: int): + posthog_logger.capture_event("accept_reject_diff", {"accepted": accepted}) + dev_data_logger.capture("accept_reject_diff", {"accepted": accepted}) + + def onFileSystemUpdate(self, update: FileSystemEdit): + # Access to Autopilot (so SessionManager) + pass + + def onFileEdits(self, edits: List[FileEditWithFullContents]): + pass + + def onHighlightedCodeUpdate( + self, + range_in_files: List[RangeInFileWithContents], + edit: Optional[bool] = False, + ): + for callback in self._highlighted_code_callbacks: + self.call_callback(callback, range_in_files, edit) + + ## Subscriptions ## + + _highlighted_code_callbacks = [] + _files_created_callbacks = [] + _files_deleted_callbacks = [] + _files_renamed_callbacks = [] + _file_saved_callbacks = [] + _debug_terminal_callbacks = [] + _telemetry_enabled_callbacks = [] + + def call_callback(self, callback, *args, **kwargs): + if asyncio.iscoroutinefunction(callback): + create_async_task(callback(*args, **kwargs), self.on_error) + else: + callback(*args, **kwargs) + + def subscribeToTelemetryEnabled(self, callback: Callable[[bool], None]): + self._telemetry_enabled_callbacks.append(callback) + + def subscribeToDebugTerminal(self, callback: Callable[[str], None]): + self._debug_terminal_callbacks.append(callback) + + def subscribeToHighlightedCode( + self, callback: Callable[[List[RangeInFileWithContents], bool], None] + ): + self._highlighted_code_callbacks.append(callback) + + def subscribeToFilesCreated(self, callback: Callable[[List[str]], None]): + self._files_created_callbacks.append(callback) + + def subscribeToFilesDeleted(self, callback: Callable[[List[str]], None]): + self._files_deleted_callbacks.append(callback) + + def subscribeToFilesRenamed(self, callback: Callable[[List[str], List[str]], None]): + self._files_renamed_callbacks.append(callback) + + def subscribeToFileSaved(self, callback: Callable[[str, str], None]): + self._file_saved_callbacks.append(callback) + + def onTelemetryEnabledChanged(self, enabled: bool): + for callback in self._telemetry_enabled_callbacks: + self.call_callback(callback, enabled) + + def onDebugTerminal(self, content: str): + for callback in self._debug_terminal_callbacks: + self.call_callback(callback, content) + + def onFilesCreated(self, filepaths: List[str]): + for callback in self._files_created_callbacks: + self.call_callback(callback, filepaths) + + def onFilesDeleted(self, filepaths: List[str]): + for callback in self._files_deleted_callbacks: + self.call_callback(callback, filepaths) + + def onFilesRenamed(self, old_filepaths: List[str], new_filepaths: List[str]): + for callback in self._files_renamed_callbacks: + self.call_callback(callback, old_filepaths, new_filepaths) + + def onFileSaved(self, filepath: str, contents: str): + for callback in self._file_saved_callbacks: + self.call_callback(callback, filepath, contents) + + ## END Subscriptions ## + + # Request information. Session doesn't matter. + async def getOpenFiles(self) -> List[str]: + resp = await self.messenger.send_and_receive({}, OpenFilesResponse, "openFiles") + return resp.openFiles + + async def getVisibleFiles(self) -> List[str]: + resp = await self.messenger.send_and_receive( + {}, VisibleFilesResponse, "visibleFiles" + ) + return resp.visibleFiles + + async def getTerminalContents(self, commands: int = -1) -> str: + """Get the contents of the terminal, up to the last 'commands' commands, or all if commands is -1""" + resp = await self.messenger.send_and_receive( + {"commands": commands}, TerminalContentsResponse, "getTerminalContents" + ) + return resp.contents.strip() + + async def getHighlightedCode(self) -> List[RangeInFile]: + resp = await self.messenger.send_and_receive( + {}, HighlightedCodeResponse, "highlightedCode" + ) + return resp.highlightedCode + + async def readFile(self, filepath: str) -> str: + """Read a file""" + resp = await self.messenger.send_and_receive( + {"filepath": filepath}, ReadFileResponse, "readFile" + ) + return resp.contents + + async def fileExists(self, filepath: str) -> str: + """Check whether file exists""" + resp = await self.messenger.send_and_receive( + {"filepath": filepath}, FileExistsResponse, "fileExists" + ) + return resp.exists + + async def getUserSecret(self, key: str) -> str: + """Get a user secret""" + try: + resp = await self.messenger.send_and_receive( + {"key": key}, GetUserSecretResponse, "getUserSecret" + ) + return resp.value + except Exception as e: + logger.debug(f"Error getting user secret: {e}") + return "" + + async def saveFile(self, filepath: str): + """Save a file""" + await self.messenger.send("saveFile", {"filepath": filepath}) + + async def readRangeInFile(self, range_in_file: RangeInFile) -> str: + """Read a range in a file""" + full_contents = await self.readFile(range_in_file.filepath) + return FileSystem.read_range_in_str(full_contents, range_in_file.range) + + async def editFile(self, edit: FileEdit) -> FileEditWithFullContents: + """Edit a file""" + resp = await self.messenger.send_and_receive( + {"edit": edit.dict()}, EditFileResponse, "editFile" + ) + return resp.fileEdit + + async def listDirectoryContents( + self, directory: str, recursive: bool = False + ) -> List[str]: + """List the contents of a directory""" + resp = await self.messenger.send_and_receive( + {"directory": directory, "recursive": recursive}, + ListDirectoryContentsResponse, + "listDirectoryContents", + ) + return resp.contents + + async def applyFileSystemEdit(self, edit: FileSystemEdit) -> EditDiff: + """Apply a file edit""" + backward = None + fs = RealFileSystem() + if isinstance(edit, FileEdit): + file_edit = await self.editFile(edit) + _, diff = FileSystem.apply_edit_to_str( + file_edit.fileContents, file_edit.fileEdit + ) + backward = diff.backward + elif isinstance(edit, AddFile): + fs.write(edit.filepath, edit.content) + backward = DeleteFile(filepath=edit.filepath) + elif isinstance(edit, DeleteFile): + contents = await self.readFile(edit.filepath) + backward = AddFile(filepath=edit.filepath, content=contents) + fs.delete_file(edit.filepath) + elif isinstance(edit, RenameFile): + fs.rename_file(edit.filepath, edit.new_filepath) + backward = RenameFile( + filepath=edit.new_filepath, new_filepath=edit.filepath + ) + elif isinstance(edit, AddDirectory): + fs.add_directory(edit.path) + backward = DeleteDirectory(path=edit.path) + elif isinstance(edit, DeleteDirectory): + # This isn't atomic! + backward_edits = [] + for root, dirs, files in os.walk(edit.path, topdown=False): + for f in files: + path = os.path.join(root, f) + edit_diff = await self.applyFileSystemEdit( + DeleteFile(filepath=path) + ) + backward_edits.append(edit_diff) + for d in dirs: + path = os.path.join(root, d) + edit_diff = await self.applyFileSystemEdit( + DeleteDirectory(path=path) + ) + backward_edits.append(edit_diff) + + edit_diff = await self.applyFileSystemEdit(DeleteDirectory(path=edit.path)) + backward_edits.append(edit_diff) + backward_edits.reverse() + backward = SequentialFileSystemEdit(edits=backward_edits) + elif isinstance(edit, RenameDirectory): + fs.rename_directory(edit.path, edit.new_path) + backward = RenameDirectory(path=edit.new_path, new_path=edit.path) + elif isinstance(edit, FileSystemEdit): + diffs = [] + for edit in edit.next_edit(): + edit_diff = await self.applyFileSystemEdit(edit) + diffs.append(edit_diff) + backward = EditDiff.from_sequence(diffs=diffs).backward + else: + raise TypeError("Unknown FileSystemEdit type: " + str(type(edit))) + + return EditDiff(forward=edit, backward=backward) diff --git a/server/continuedev/server/ide_protocol.py b/server/continuedev/server/protocols/ide_protocol.py similarity index 83% rename from server/continuedev/server/ide_protocol.py rename to server/continuedev/server/protocols/ide_protocol.py index 832dd338d..26869def4 100644 --- a/server/continuedev/server/ide_protocol.py +++ b/server/continuedev/server/protocols/ide_protocol.py @@ -1,10 +1,12 @@ from abc import ABC, abstractmethod -from typing import Any, Callable, Dict, List, Optional, Union +from typing import Callable, Dict, List, Optional, Union + +from ...models.websockets import WebsocketsMessage from fastapi import WebSocket -from ..models.filesystem import RangeInFile, RangeInFileWithContents -from ..models.filesystem_edit import EditDiff, FileEdit, FileSystemEdit +from ...models.filesystem import RangeInFile, RangeInFileWithContents +from ...models.filesystem_edit import EditDiff, FileEdit, FileSystemEdit class AbstractIdeProtocolServer(ABC): @@ -13,7 +15,7 @@ class AbstractIdeProtocolServer(ABC): ide_info: Optional[Dict] = None @abstractmethod - async def handle_json(self, data: Any): + async def handle_json(self, msg: WebsocketsMessage): """Handle a json message""" @abstractmethod @@ -36,14 +38,6 @@ class AbstractIdeProtocolServer(ABC): async def setSuggestionsLocked(self, filepath: str, locked: bool = True): """Set whether suggestions are locked""" - @abstractmethod - async def getSessionId(self): - """Get a new session ID""" - - @abstractmethod - async def showSuggestionsAndWait(self, suggestions: List[FileEdit]) -> bool: - """Show suggestions to the user and wait for a response""" - @abstractmethod def onAcceptRejectSuggestion(self, accepted: bool): """Called when the user accepts or rejects a suggestion""" @@ -52,14 +46,6 @@ class AbstractIdeProtocolServer(ABC): def onFileSystemUpdate(self, update: FileSystemEdit): """Called when a file system update is received""" - @abstractmethod - def onCloseGUI(self, session_id: str): - """Called when a GUI is closed""" - - @abstractmethod - def onOpenGUIRequest(self): - """Called when a GUI is requested to be opened""" - @abstractmethod async def getOpenFiles(self) -> List[str]: """Get a list of open files""" @@ -112,10 +98,6 @@ class AbstractIdeProtocolServer(ABC): ): """Called when highlighted code is updated""" - @abstractmethod - def onDeleteAtIndex(self, index: int): - """Called when a step is deleted at a given index""" - @abstractmethod async def showDiff(self, filepath: str, replacement: str, step_index: int): """Show a diff""" diff --git a/server/continuedev/server/session_manager.py b/server/continuedev/server/session_manager.py deleted file mode 100644 index 62b2b3232..000000000 --- a/server/continuedev/server/session_manager.py +++ /dev/null @@ -1,195 +0,0 @@ -import json -import os -import traceback -from typing import Any, Coroutine, Dict, Optional, Union -from uuid import uuid4 - -from fastapi import APIRouter, WebSocket -from fastapi.websockets import WebSocketState - -from ..core.autopilot import Autopilot -from ..core.config import ContinueConfig -from ..core.main import FullState -from ..libs.util.create_async_task import create_async_task -from ..libs.util.logging import logger -from ..libs.util.paths import ( - getSessionFilePath, - getSessionsFolderPath, - getSessionsListFilePath, -) -from .ide_protocol import AbstractIdeProtocolServer - -router = APIRouter(prefix="/sessions", tags=["sessions"]) - - -class Session: - session_id: str - autopilot: Autopilot - # The GUI websocket for the session - ws: Union[WebSocket, None] - - def __init__(self, session_id: str, autopilot: Autopilot): - self.session_id = session_id - self.autopilot = autopilot - self.ws = None - - -class SessionManager: - sessions: Dict[str, Session] = {} - # Mapping of session_id to IDE, where the IDE is still alive - registered_ides: Dict[str, AbstractIdeProtocolServer] = {} - - async def get_session(self, session_id: str) -> Session: - if session_id not in self.sessions: - # Check then whether it is persisted by listing all files in the sessions folder - # And only if the IDE is still alive - sessions_folder = getSessionsFolderPath() - session_files = os.listdir(sessions_folder) - if ( - f"{session_id}.json" in session_files - and session_id in self.registered_ides - ): - if self.registered_ides[session_id].session_id is not None: - return await self.new_session( - self.registered_ides[session_id], session_id=session_id - ) - - raise KeyError("Session ID not recognized", session_id) - return self.sessions[session_id] - - async def new_session( - self, - ide: AbstractIdeProtocolServer, - session_id: Optional[str] = None, - config: Optional[ContinueConfig] = None, - ) -> Session: - logger.debug(f"New session: {session_id}") - - # Load the persisted state (not being used right now) - full_state = None - if session_id is not None and os.path.exists(getSessionFilePath(session_id)): - with open(getSessionFilePath(session_id), "r") as f: - full_state = FullState(**json.load(f)) - - # Register the session and ide (do this first so that the autopilot can access the session) - autopilot = Autopilot(ide=ide) - session_id = session_id or str(uuid4()) - ide.session_id = session_id - session = Session(session_id=session_id, autopilot=autopilot) - self.sessions[session_id] = session - self.registered_ides[session_id] = ide - - # Set up the autopilot to update the GUI - async def on_update(state: FullState): - await session_manager.send_ws_data( - session_id, "state_update", {"state": state.dict()} - ) - - autopilot.on_update(on_update) - - # Start the autopilot (must be after session is added to sessions) and the policy - try: - await autopilot.start(full_state=full_state, config=config) - except Exception as e: - await ide.on_error(e) - - def on_error(e: Exception) -> Coroutine: - err_msg = "\n".join(traceback.format_exception(e)) - return ide.showMessage(f"Error in Continue server: {err_msg}") - - create_async_task(autopilot.run_policy(), on_error) - return session - - async def remove_session(self, session_id: str): - logger.debug(f"Removing session: {session_id}") - if session_id in self.sessions: - if ( - session_id in self.registered_ides - and self.registered_ides[session_id] is not None - ): - ws_to_close = self.registered_ides[session_id].websocket - if ( - ws_to_close is not None - and ws_to_close.client_state != WebSocketState.DISCONNECTED - and ws_to_close.application_state != WebSocketState.DISCONNECTED - ): - await self.sessions[session_id].autopilot.ide.websocket.close() - - del self.sessions[session_id] - - async def persist_session(self, session_id: str): - """Save the session's FullState as a json file""" - full_state = await self.sessions[session_id].autopilot.get_full_state() - if full_state.session_info is None: - return - - with open(getSessionFilePath(session_id), "w") as f: - json.dump(full_state.dict(), f) - - # Read and update the sessions list - with open(getSessionsListFilePath(), "r") as f: - try: - sessions_list = json.load(f) - except json.JSONDecodeError: - raise Exception( - f"It looks like there is a JSON formatting error in your sessions.json file ({getSessionsListFilePath()}). Please fix this before creating a new session." - ) - - session_ids = [s["session_id"] for s in sessions_list] - if session_id not in session_ids: - sessions_list.append(full_state.session_info.dict()) - - for session_info in sessions_list: - if "workspace_directory" not in session_info: - session_info["workspace_directory"] = "" - - with open(getSessionsListFilePath(), "w") as f: - json.dump(sessions_list, f) - - async def load_session( - self, old_session_id: str, new_session_id: Optional[str] = None - ) -> str: - """Load the session's FullState from a json file""" - - # First persist the current state - await self.persist_session(old_session_id) - - # Delete the old session, but keep the IDE - ide = self.registered_ides[old_session_id] - del self.registered_ides[old_session_id] - - # Start the new session - new_session = await self.new_session(ide, session_id=new_session_id) - return new_session.session_id - - def register_websocket(self, session_id: str, ws: WebSocket): - self.sessions[session_id].ws = ws - logger.debug(f"Registered websocket for session {session_id}") - - async def send_ws_data(self, session_id: str, message_type: str, data: Any): - if session_id not in self.sessions: - logger.warning(f"Session {session_id} not found") - return - if self.sessions[session_id].ws is None: - return - - ws = self.sessions[session_id].ws - if ws.client_state != WebSocketState.DISCONNECTED and ws.application_state != WebSocketState.DISCONNECTED: - await ws.send_json( - {"messageType": message_type, "data": data} - ) - - -session_manager = SessionManager() - - -@router.get("/list") -async def list_sessions(): - """List all sessions""" - sessions_list_file = getSessionsListFilePath() - if not os.path.exists(sessions_list_file): - print("Returning empty sessions list") - return [] - sessions = json.load(open(sessions_list_file, "r")) - print("Returning sessions list: ", sessions) - return sessions diff --git a/server/continuedev/server/sessions.py b/server/continuedev/server/sessions.py new file mode 100644 index 000000000..cde1ddadd --- /dev/null +++ b/server/continuedev/server/sessions.py @@ -0,0 +1,129 @@ +import json +import os +import time +from typing import List +import uuid + +from pydantic import BaseModel +from ..core.main import SessionInfo, SessionState, StepDescription + +from fastapi import APIRouter + +from ..libs.util.paths import ( + getSessionFilePath, + getSessionsListFilePath, +) +from ..libs.util.logging import logger + +router = APIRouter(prefix="/sessions", tags=["sessions"]) + + +class PersistedSessionInfo(BaseModel): + session_state: SessionState + title: str + workspace_directory: str + session_id: str + + +@router.get("/list") +async def list_sessions(): + """List all sessions""" + sessions_list_file = getSessionsListFilePath() + if not os.path.exists(sessions_list_file): + print("Returning empty sessions list") + return [] + sessions = json.load(open(sessions_list_file, "r")) + print("Returning sessions list: ", sessions) + return sessions + + +@router.get("/{session_id}") +async def load_session(session_id: str) -> PersistedSessionInfo: + """Load a session""" + session_file = getSessionFilePath(session_id) + if not os.path.exists(session_file): + raise Exception(f"Session file {session_file} does not exist") + session_state = json.load(open(session_file, "r")) + try: + if "active" in session_state: + # Indicator of old version. Try to migrate + def migrate_node(node): + step = node["step"] + return StepDescription( + step_type=step["class_name"], + name=step["name"], + description=step["description"], + params={}, + hide=step["hide"], + depth=node["depth"], + observations=[], + logs=node["logs"] if "logs" in node else [], + ) + + migrated_state = SessionState( + context_items=session_state["selected_context_items"], + history=list(map(migrate_node, session_state["history"]["timeline"])), + ) + return PersistedSessionInfo( + session_state=migrated_state, + title=session_state["session_info"]["title"], + workspace_directory=session_state["session_info"][ + "workspace_directory" + ], + session_id=session_id, + ) + + else: + kwargs = session_state + kwargs.update({"session_id": session_id}) + return PersistedSessionInfo(**kwargs) + except Exception as e: + logger.warning(f"Error migrating session: {e}") + return PersistedSessionInfo( + session_state=SessionState(history=[], context_items=[]), + title="Old Session Format", + workspace_directory="", + session_id=session_id, + ) + + +@router.post("/save") +async def save_session(body: PersistedSessionInfo): + # Save the main session json file + with open(getSessionFilePath(body.session_id), "w") as f: + json.dump(body.dict(), f) + + # Read and update the sessions list + with open(getSessionsListFilePath(), "r") as f: + try: + sessions_list: List[SessionInfo] = json.load(f) + except json.JSONDecodeError: + raise Exception( + f"It looks like there is a JSON formatting error in your sessions.json file ({getSessionsListFilePath()}). Please fix this before creating a new session." + ) + + found = False + for session_info in sessions_list: + if session_info["session_id"] == body.session_id: + session_info["title"] = body.title + session_info["workspace_directory"] = body.workspace_directory + session_info["date_created"] = str(time.time()) + found = True + break + + if not found: + session_info = SessionInfo( + session_id=body.session_id, + title=body.title, + date_created=str(time.time()), + workspace_directory=body.workspace_directory, + ) + sessions_list.append(session_info.dict()) + + for session_info in sessions_list: + # A migration + if "workspace_directory" not in session_info: + session_info["workspace_directory"] = "" + + with open(getSessionsListFilePath(), "w") as f: + json.dump(sessions_list, f) diff --git a/server/continuedev/server/websockets_messenger.py b/server/continuedev/server/websockets_messenger.py new file mode 100644 index 000000000..f0f58dbb4 --- /dev/null +++ b/server/continuedev/server/websockets_messenger.py @@ -0,0 +1,142 @@ +import asyncio +from typing import Any, Dict, Optional, Type, TypeVar +import uuid +from ..core.main import ContinueCustomException + +from fastapi.websockets import WebSocketState +from pydantic import BaseModel +from ..models.websockets import WebsocketsMessage +from fastapi import WebSocket +from ..libs.util.queue import WebsocketsSubscriptionQueue +from ..libs.util.logging import logger +from socketio import AsyncServer + +T = TypeVar("T", bound=BaseModel) + + +class SocketIOMessenger: + sio: AsyncServer + sid: str + + futures: Dict[str, asyncio.Future] = {} + + def __init__(self, sio: AsyncServer, sid: str): + self.sio = sio + self.sid = sid + + async def send( + self, + message_type: str, + data: Dict[str, Any], + message_id: Optional[str] = None, + callback=None, + ): + msg = WebsocketsMessage( + message_type=message_type, + data=data, + message_id=message_id or uuid.uuid4().hex, + ) + await self.sio.send(msg.dict(), to=self.sid, callback=callback) + + async def receive(self, message_id: str) -> WebsocketsMessage: + if message_id not in self.futures: + self.futures[message_id] = asyncio.Future() + + return await self.futures[message_id] + + async def send_and_receive( + self, data: Dict[str, Any], resp_model: Type[T], message_type: str + ) -> T: + message_id = uuid.uuid4().hex + + async def try_with_timeout(timeout: int): + fut = asyncio.Future() + + def callback(ack_data): + fut.set_result(ack_data) + + await self.send( + message_type, data, message_id=message_id, callback=callback + ) + response = await fut + return resp_model.parse_obj(response["data"]) + + # await self.send(message_type, data, message_id=message_id) + # resp = await asyncio.wait_for(self.receive(message_id), timeout=timeout) + # return resp_model.parse_obj(resp.data) + + timeout = 1.0 + while True: + try: + return await try_with_timeout(timeout) + except asyncio.TimeoutError: + timeout *= 1.5 + if timeout > 10: + raise ContinueCustomException( + title=f"Timed out waiting for response to '{message_type}'", + message=f"Timed out waiting for response to '{message_type}'. The message sent was: {data or ''}", + ) + except asyncio.exceptions.CancelledError: + print(f"Cancelled task {message_type}") + + def post(self, msg: WebsocketsMessage): + if msg.message_id in self.futures: + self.futures[msg.message_id].set_result(msg) + del self.futures[msg.message_id] + + +class WebsocketsMessenger: + websocket: WebSocket + sub_queue: WebsocketsSubscriptionQueue = WebsocketsSubscriptionQueue() + + def __init__(self, ws: WebSocket): + self.ws = ws + + async def send( + self, message_type: str, data: Dict[str, Any], message_id: Optional[str] = None + ): + msg = WebsocketsMessage( + message_type=message_type, + data=data, + message_id=message_id or uuid.uuid4().hex, + ) + try: + if self.websocket.application_state == WebSocketState.DISCONNECTED: + logger.debug( + f"Tried to send message, but websocket is disconnected: {msg.message_type}" + ) + return + + await self.websocket.send_json(msg.dict()) + except RuntimeError as e: + logger.warning(f"Error sending message, websocket probably closed: {e}") + + async def receive(self, message_id: str) -> WebsocketsMessage: + resp = await self.sub_queue.get(message_id) + await self.sub_queue.delete(message_id) + return resp + + async def send_and_receive( + self, data: Dict[str, Any], resp_model: Type[T], message_type: str + ) -> T: + message_id = uuid.uuid4().hex + + async def try_with_timeout(timeout: int): + await self.send(message_type, data, message_id=message_id) + resp = await asyncio.wait_for(self.receive(message_id), timeout=timeout) + return resp_model.parse_obj(resp.data) + + timeout = 1.0 + while True: + try: + return await try_with_timeout(timeout) + except asyncio.TimeoutError: + timeout *= 1.5 + if timeout > 10: + raise ContinueCustomException( + title=f"Timed out waiting for response to '{message_type}'", + message=f"Timed out waiting for response to '{message_type}'. The message sent was: {data or ''}", + ) + + def post(self, msg: WebsocketsMessage): + self.sub_queue.post(msg) diff --git a/server/continuedev/server/window_manager.py b/server/continuedev/server/window_manager.py new file mode 100644 index 000000000..6414e7567 --- /dev/null +++ b/server/continuedev/server/window_manager.py @@ -0,0 +1,242 @@ +import traceback +from typing import Dict, Optional + +from ..plugins.steps.on_traceback import DefaultOnTracebackStep + +from ..core.context import ContextManager + +from ..plugins.context_providers.highlighted_code import HighlightedCodeContextProvider + +from ..plugins.context_providers.file import FileContextProvider + +from ..core.main import SessionState +from ..core.autopilot import Autopilot +from ..libs.util.paths import getConfigFilePath, getDiffsFolderPath +from ..core.config import ContinueConfig +from .protocols.ide import IdeProtocolServer, WindowInfo +from .protocols.gui import GUIProtocolServer +from ..libs.util.logging import logger +from ..libs.util.telemetry import posthog_logger +from ..libs.util.devdata import dev_data_logger + + +class Window: + ide: Optional[IdeProtocolServer] = None + gui: Optional[GUIProtocolServer] = None + config: Optional[ContinueConfig] = None + context_manager: ContextManager = ContextManager() + + _error_loading_config: Optional[Exception] = None + _last_valid_config: Optional[ContinueConfig] = None + + def load_config(self) -> ContinueConfig: + # Create necessary directories + getDiffsFolderPath() + + try: + return ContinueConfig.load_default() + except Exception as e: + logger.error(f"Failed to load config.py: {traceback.format_exception(e)}") + self._error_loading_config = e + + return ( + ContinueConfig() + if self._last_valid_config is None + else self._last_valid_config + ) + + def __init__(self, config: Optional[ContinueConfig] = None) -> None: + self.config = config or self.load_config() + + def get_autopilot(self, session_state: SessionState) -> Autopilot: + return Autopilot( + session_state=session_state, + ide=self.ide, + gui=self.gui, + config=self.config, + context_manager=self.context_manager, + ) + + def get_config(self) -> ContinueConfig: + return self.config + + def is_closed(self) -> bool: + return self.ide is None and self.gui is None + + async def reload_config(self): + self.config = self.load_config() + await self.config.models.start( + self.ide.window_info.unique_id, + self.config.system_message, + self.config.temperature, + ) + + async def load( + self, config: Optional[ContinueConfig] = None, only_reloading: bool = False + ): + # Need a non-step way of sending a notification to the GUI. Fine to be displayed similarly + + # formatted_err = "\n".join(traceback.format_exception(e)) + # msg_step = MessageStep( + # name="Invalid Continue Config File", message=formatted_err + # ) + # msg_step.description = f"Falling back to default config settings due to the following error in `~/.continue/config.py`.\n```\n{formatted_err}\n```\n\nIt's possible this was caused by an update to the Continue config format. If you'd like to see the new recommended default `config.py`, check [here](https://github.com/continuedev/continue/blob/main/server/continuedev/libs/constants/default_config.py)." + # self.history.add_node( + # HistoryNode(step=msg_step, observation=None, depth=0, active=False) + # ) + + if self._error_loading_config is not None: + await self.ide.setFileOpen(getConfigFilePath()) + + # Start models + await self.config.models.start( + self.ide.window_info.unique_id, + self.config.system_message, + self.config.temperature, + ) + + # When the config is loaded, setup posthog logger + posthog_logger.setup( + self.ide.window_info.unique_id, + self.config.allow_anonymous_telemetry, + self.ide.ide_info, + ) + dev_data_logger.setup(self.config.user_token, self.config.data_server_url) + + # Load documents into the search index + await self.context_manager.start( + self.config.context_providers + + [ + HighlightedCodeContextProvider(ide=self.ide), + FileContextProvider(workspace_dir=self.ide.workspace_directory), + ], + self.ide, + only_reloading=only_reloading, + ) + + async def onFileSavedCallback(filepath: str, contents: str): + if filepath.endswith(".continue/config.py") or filepath.endswith( + ".continue\\config.py" + ): + await self.reload_config() + if self.gui is not None: + await self.gui.send_config_update() + + self.ide.subscribeToFileSaved(onFileSavedCallback) + + async def onDebugCallback(terminal_contents: str): + if self.gui is not None: + # Does this really work though? Because you need to give the correct index + print("Debugging terminal") + session_state = await self.gui.get_session_state() + await self.gui.run_from_state( + session_state, DefaultOnTracebackStep(output=terminal_contents) + ) + + self.ide.subscribeToDebugTerminal(onDebugCallback) + + def onTelemetryChangeCallback(enabled: bool): + self.config.allow_anonymous_telemetry = enabled + ContinueConfig.set_telemetry_enabled(enabled) + + self.ide.subscribeToTelemetryEnabled(onTelemetryChangeCallback) + + # # Subscribe to highlighted code, pass to the context manager + # def onHighlightedCodeCallback( + # range_in_files: List[RangeInFileWithContents], edit: bool + # ): + # if "file" in self.context_manager.context_providers: + # self.context_manager.context_providers["file"].get_context_item + # await self.gui.add_context_item(item) + + # self.ide.subscribeToHighlightedCode(onHighlightedCodeCallback) + + # Load saved context groups + # context_groups_file = getSavedContextGroupsPath() + # try: + # with open(context_groups_file, "r") as f: + # json_ob = json.load(f) + # for title, context_group in json_ob.items(): + # self._saved_context_groups[title] = [ + # ContextItem(**item) for item in context_group + # ] + # except Exception as e: + # logger.warning( + # f"Failed to load saved_context_groups.json: {e}. Reverting to empty list." + # ) + # self._saved_context_groups = {} + # self._saved_context_groups = {} + + # async def reload_config(self): + # await self.load(config=None, only_reloading=True) + + +class WindowManager: + # window_id to Window + windows: Dict[str, Window] = {} + + # sid to ide/gui + guis: Dict[str, GUIProtocolServer] = {} + ides: Dict[str, IdeProtocolServer] = {} + + def get_window(self, sid: str) -> Window: + return self.windows[sid] + + def get_ide(self, sid: str) -> Optional[IdeProtocolServer]: + return self.ides.get(sid) + + async def register_ide(self, window_info: WindowInfo, sio: str, sid: str): + if window_info.window_id not in self.windows: + self.windows[window_info.window_id] = Window() + + ide = IdeProtocolServer(window_info, sio, sid) + self.windows[window_info.window_id].ide = ide + self.ides[sid] = ide + + if self.windows[window_info.window_id].gui is not None: + await self.windows[window_info.window_id].load() + + def remove_ide(self, sid: str): + ide = self.ides.pop(sid, None) + if ide is None: + return + + if window := self.windows.get(ide.window_info.window_id): + window.ide = None + if window.is_closed(): + del self.windows[ide.window_info.window_id] + + def get_gui(self, sid: str) -> Optional[GUIProtocolServer]: + return self.guis.get(sid) + + async def register_gui(self, window_id: str, sio, sid: str): + if window_id not in self.windows: + self.windows[window_id] = Window() + + gui = GUIProtocolServer( + window_id=window_id, + sio=sio, + sid=sid, + get_autopilot=self.windows[window_id].get_autopilot, + get_context_item=self.windows[window_id].context_manager.get_context_item, + get_config=self.windows[window_id].get_config, + reload_config=self.windows[window_id].reload_config, + ) + self.windows[window_id].gui = gui + self.guis[sid] = gui + + if self.windows[window_id].ide is not None: + await self.windows[window_id].load() + + def remove_gui(self, sid: str): + gui = self.guis.pop(sid, None) + if gui is None: + return + + if window := self.windows.get(gui.window_id): + window.gui = None + if window.is_closed(): + del self.windows[gui.window_id] + + +window_manager = WindowManager() diff --git a/server/poetry.lock b/server/poetry.lock index 2afc4d9f3..c5c6a9350 100644 --- a/server/poetry.lock +++ b/server/poetry.lock @@ -290,6 +290,22 @@ soupsieve = ">1.2" html5lib = ["html5lib"] lxml = ["lxml"] +[[package]] +name = "bidict" +version = "0.22.1" +description = "The bidirectional mapping library for Python." +optional = false +python-versions = ">=3.7" +files = [ + {file = "bidict-0.22.1-py3-none-any.whl", hash = "sha256:6ef212238eb884b664f28da76f33f1d28b260f665fc737b413b287d5487d1e7b"}, + {file = "bidict-0.22.1.tar.gz", hash = "sha256:1e0f7f74e4860e6d0943a05d4134c63a2fad86f3d4732fb265bd79e4e856d81d"}, +] + +[package.extras] +docs = ["furo", "sphinx", "sphinx-copybutton"] +lint = ["pre-commit"] +test = ["hypothesis", "pytest", "pytest-benchmark[histogram]", "pytest-cov", "pytest-xdist", "sortedcollections", "sortedcontainers", "sphinx"] + [[package]] name = "boltons" version = "23.0.0" @@ -1790,6 +1806,25 @@ files = [ [package.extras] cli = ["click (>=5.0)"] +[[package]] +name = "python-engineio" +version = "4.8.0" +description = "Engine.IO server and client for Python" +optional = false +python-versions = ">=3.6" +files = [ + {file = "python-engineio-4.8.0.tar.gz", hash = "sha256:2a32585d8fecd0118264fe0c39788670456ca9aa466d7c026d995cfff68af164"}, + {file = "python_engineio-4.8.0-py3-none-any.whl", hash = "sha256:6055ce35b7f32b70641d53846faf76e06f2af0107a714cedb2750595c69ade43"}, +] + +[package.dependencies] +simple-websocket = ">=0.10.0" + +[package.extras] +asyncio-client = ["aiohttp (>=3.4)"] +client = ["requests (>=2.21.0)", "websocket-client (>=0.54.0)"] +docs = ["sphinx"] + [[package]] name = "python-lsp-jsonrpc" version = "1.0.0" @@ -1840,6 +1875,26 @@ test = ["coverage", "flaky", "matplotlib", "numpy", "pandas", "pylint (>=2.5.0,< websockets = ["websockets (>=10.3)"] yapf = ["whatthepatch (>=1.0.2,<2.0.0)", "yapf (>=0.33.0)"] +[[package]] +name = "python-socketio" +version = "5.10.0" +description = "Socket.IO server and client for Python" +optional = false +python-versions = ">=3.6" +files = [ + {file = "python-socketio-5.10.0.tar.gz", hash = "sha256:01c616946fa9f67ed5cc3d1568e1c4940acfc64aeeb9ff621a53e80cabeb748a"}, + {file = "python_socketio-5.10.0-py3-none-any.whl", hash = "sha256:fb18d9b84cfb05289dc207b790c3de59cd242310d9b980b1c31e9faf4f79101a"}, +] + +[package.dependencies] +bidict = ">=0.21.0" +python-engineio = ">=4.8.0" + +[package.extras] +asyncio-client = ["aiohttp (>=3.4)"] +client = ["requests (>=2.21.0)", "websocket-client (>=0.54.0)"] +docs = ["sphinx"] + [[package]] name = "pyyaml" version = "6.0.1" @@ -2214,6 +2269,23 @@ docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments testing = ["build[virtualenv]", "filelock (>=3.4.0)", "flake8-2020", "ini2toml[lite] (>=0.9)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pip (>=19.1)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-perf", "pytest-ruff", "pytest-timeout", "pytest-xdist", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"] testing-integration = ["build[virtualenv]", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"] +[[package]] +name = "simple-websocket" +version = "1.0.0" +description = "Simple WebSocket server and client for Python" +optional = false +python-versions = ">=3.6" +files = [ + {file = "simple-websocket-1.0.0.tar.gz", hash = "sha256:17d2c72f4a2bd85174a97e3e4c88b01c40c3f81b7b648b0cc3ce1305968928c8"}, + {file = "simple_websocket-1.0.0-py3-none-any.whl", hash = "sha256:1d5bf585e415eaa2083e2bcf02a3ecf91f9712e7b3e6b9fa0b461ad04e0837bc"}, +] + +[package.dependencies] +wsproto = "*" + +[package.extras] +docs = ["sphinx"] + [[package]] name = "six" version = "1.16.0" @@ -2930,6 +3002,20 @@ files = [ {file = "wrapt-1.15.0.tar.gz", hash = "sha256:d06730c6aed78cee4126234cf2d071e01b44b915e725a6cb439a879ec9754a3a"}, ] +[[package]] +name = "wsproto" +version = "1.2.0" +description = "WebSockets state-machine based protocol implementation" +optional = false +python-versions = ">=3.7.0" +files = [ + {file = "wsproto-1.2.0-py3-none-any.whl", hash = "sha256:b9acddd652b585d75b20477888c56642fdade28bdfd3579aa24a4d2c037dd736"}, + {file = "wsproto-1.2.0.tar.gz", hash = "sha256:ad565f26ecb92588a3e43bc3d96164de84cd9902482b130d0ddbaa9664a85065"}, +] + +[package.dependencies] +h11 = ">=0.9.0,<1" + [[package]] name = "yarl" version = "1.9.2" @@ -3035,4 +3121,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "^3.8.1" -content-hash = "3cb831bcd0ce1c9cb2e1c353a0a7449fe0afe4ad8e1c3de2e806c27e80366207" +content-hash = "45324bfb4d1b83a0d82d54ffefb7d040b1d6f430f2413fc43c99812728dbf1d5" diff --git a/server/pyproject.toml b/server/pyproject.toml index 29042701b..e73de6c5a 100644 --- a/server/pyproject.toml +++ b/server/pyproject.toml @@ -37,6 +37,7 @@ chromadb = "^0.4.12" fastapi = "0.95.2" tree-sitter = "^0.20.2" tree-sitter-languages = "^1.7.0" +python-socketio = "^5.10.0" [tool.poetry.scripts] typegen = "continuedev.models.generate_json_schema:main" diff --git a/server/requirements.txt b/server/requirements.txt index 97ee881cc..fdecbcf70 100644 --- a/server/requirements.txt +++ b/server/requirements.txt @@ -27,4 +27,5 @@ python-lsp-server[websockets]==1.8.0 huggingface-hub==0.16.4 chromadb==0.4.12 tree-sitter==0.20.2 -tree-sitter-languages==1.7.0 \ No newline at end of file +tree-sitter-languages==1.7.0 +python-socketio==5.10.0 \ No newline at end of file From 0b08f06ceabf457fd58261aebeb3aefb5d7734cb Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 1 Nov 2023 02:02:46 -0700 Subject: [PATCH 09/19] =?UTF-8?q?=F0=9F=94=A5=20remove=20pypi=20publishing?= =?UTF-8?q?=20from=20preview.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/preview.yaml | 42 ---------------------------------- 1 file changed, 42 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index eb88e555f..bc51976b9 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -6,48 +6,6 @@ on: - preview jobs: - # pypi-deployment: - # runs-on: ubuntu-latest - # permissions: - # contents: write - # steps: - # - name: Check out code - # uses: actions/checkout@v2 - - # - name: Set up Python - # uses: actions/setup-python@v4 - # with: - # python-version: "3.10.8" - - # - name: Install dependencies - # run: | - # python -m pip install --upgrade pip - # pip install poetry - - # - name: Install project dependencies - # run: cd server && poetry install - - # - name: Configure Poetry Token - # run: cd server && poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} - - # - name: Bump the version - # run: cd server && poetry version patch - - # - name: Build and publish the package - # run: cd server && poetry publish --build - - # - name: Commit changes - # run: | - # git config --local user.email "action@github.com" - # git config --local user.name "GitHub Action" - # git commit -am "ci: 🏷 Update PyPI version [skip ci]" - - # - name: Push changes - # uses: ad-m/github-push-action@master - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # branch: ${{ github.ref }} - build: strategy: matrix: From 5b674b1b7bffb9c5094d6635a945f885619720c1 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 1 Nov 2023 09:04:09 +0000 Subject: [PATCH 10/19] =?UTF-8?q?ci:=20=F0=9F=8F=B7=20Update=20PyPI=20vers?= =?UTF-8?q?ion=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/pyproject.toml b/server/pyproject.toml index e73de6c5a..b6f1e024c 100644 --- a/server/pyproject.toml +++ b/server/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "continuedev" -version = "0.1.73" +version = "0.1.74" description = "" authors = ["Nate Sesti "] readme = "README.md" From a20bfa812d09e30ee6ebf0c6bd52861fecaeace7 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 1 Nov 2023 02:09:50 -0700 Subject: [PATCH 11/19] =?UTF-8?q?=F0=9F=92=9A=20fix=20main=20ci=20by=20usi?= =?UTF-8?q?ng=20pip,=20not=20poetry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yaml | 7 +++---- .github/workflows/preview.yaml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 19b947ec7..0957207bf 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -99,10 +99,9 @@ jobs: with: python-version: "3.11" - - name: Install dependencies + - name: Install Pyinstaller run: | - python -m pip install --upgrade pip - pip install poetry + pip install pyinstaller - name: Install Dependencies run: | @@ -286,7 +285,7 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git commit -am "ci: 🏷 Update PyPI version [skip ci]" + git commit -am "💚 Update package.json version [skip ci]" - name: Push changes uses: ad-m/github-push-action@master diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index bc51976b9..bb5c1e533 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -273,7 +273,7 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git commit -am "ci: 💚 Update package.json version [skip ci]" + git commit -am "💚 Update package.json version [skip ci]" - name: Push changes uses: ad-m/github-push-action@master From 76e815f82fd938940b1ebf6940a0802d9a7dddfa Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 1 Nov 2023 09:10:40 +0000 Subject: [PATCH 12/19] =?UTF-8?q?ci:=20=F0=9F=8F=B7=20Update=20PyPI=20vers?= =?UTF-8?q?ion=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/pyproject.toml b/server/pyproject.toml index b6f1e024c..c3d6830d5 100644 --- a/server/pyproject.toml +++ b/server/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "continuedev" -version = "0.1.74" +version = "0.1.75" description = "" authors = ["Nate Sesti "] readme = "README.md" From 7020e25256d7c942e8ad088c36c5e188198c4893 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 1 Nov 2023 09:23:28 +0000 Subject: [PATCH 13/19] =?UTF-8?q?=F0=9F=92=9A=20Update=20package.json=20ve?= =?UTF-8?q?rsion=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/package-lock.json | 4 ++-- extensions/vscode/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index dbad85420..955bf6b9c 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.1.40", + "version": "0.1.41", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "continue", - "version": "0.1.40", + "version": "0.1.41", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 9f4e19664..a22aac863 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -1,7 +1,7 @@ { "name": "continue", "icon": "media/icon.png", - "version": "0.1.40", + "version": "0.1.41", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From 20994cd4a139559ad265e0e936c57834cffb764d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B2=BD/DAXTF?= <82003678+Bogyie@users.noreply.github.com> Date: Thu, 2 Nov 2023 02:50:06 +0900 Subject: [PATCH 14/19] Fix query strip problem (#594) * add_func_remove_prefix_and_suffix_on_util * fix_query_strip_with_added_func --- .../continuedev/plugins/context_providers/dynamic.py | 4 ++-- .../continuedev/plugins/context_providers/search.py | 4 ++-- server/continuedev/plugins/context_providers/url.py | 4 ++-- server/continuedev/plugins/context_providers/util.py | 12 ++++++++++++ 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/server/continuedev/plugins/context_providers/dynamic.py b/server/continuedev/plugins/context_providers/dynamic.py index 505676213..727b6aa8c 100644 --- a/server/continuedev/plugins/context_providers/dynamic.py +++ b/server/continuedev/plugins/context_providers/dynamic.py @@ -4,7 +4,7 @@ from typing import List from ...core.context import ContextProvider from ...core.main import ContextItem, ContextItemDescription, ContextItemId from ...libs.util.create_async_task import create_async_task -from .util import remove_meilisearch_disallowed_chars +from .util import remove_meilisearch_disallowed_chars, remove_prefix class DynamicProvider(ContextProvider, ABC): @@ -40,7 +40,7 @@ class DynamicProvider(ContextProvider, ABC): if not id.provider_title == self.title: raise Exception("Invalid provider title for item") - query = query.lstrip(self.title + " ") + query = remove_prefix(text=query, prefix=self.title).strip() results = await self.get_content(query) ctx_item = self.BASE_CONTEXT_ITEM.copy() diff --git a/server/continuedev/plugins/context_providers/search.py b/server/continuedev/plugins/context_providers/search.py index 4c095aff3..5b4faa5b6 100644 --- a/server/continuedev/plugins/context_providers/search.py +++ b/server/continuedev/plugins/context_providers/search.py @@ -7,7 +7,7 @@ from ...core.context import ContextProvider from ...core.main import ContextItem, ContextItemDescription, ContextItemId from ...libs.util.logging import logger from ...libs.util.ripgrep import get_rg_path -from .util import remove_meilisearch_disallowed_chars +from .util import remove_meilisearch_disallowed_chars, remove_prefix class SearchContextProvider(ContextProvider): @@ -80,7 +80,7 @@ class SearchContextProvider(ContextProvider): if not id.provider_title == self.title: raise Exception("Invalid provider title for item") - query = query.lstrip("search ") + query = remove_prefix(text=query, prefix="search").strip() results = await self._search(query) ctx_item = self.BASE_CONTEXT_ITEM.copy() diff --git a/server/continuedev/plugins/context_providers/url.py b/server/continuedev/plugins/context_providers/url.py index 1ed7c18e9..a98d59399 100644 --- a/server/continuedev/plugins/context_providers/url.py +++ b/server/continuedev/plugins/context_providers/url.py @@ -6,7 +6,7 @@ from pydantic import Field from ...core.context import ContextProvider from ...core.main import ContextItem, ContextItemDescription, ContextItemId -from .util import remove_meilisearch_disallowed_chars +from .util import remove_meilisearch_disallowed_chars, remove_prefix class URLContextProvider(ContextProvider): @@ -92,7 +92,7 @@ class URLContextProvider(ContextProvider): raise Exception("Invalid provider title for item") # Generate the dynamic item - url = query.lstrip("url ").strip() + url = remove_prefix(text=query, prefix="url").strip() if url is None or url == "": return None content, title = self._get_url_text_contents_and_title(url) diff --git a/server/continuedev/plugins/context_providers/util.py b/server/continuedev/plugins/context_providers/util.py index 61bea8aa2..4368a8562 100644 --- a/server/continuedev/plugins/context_providers/util.py +++ b/server/continuedev/plugins/context_providers/util.py @@ -3,3 +3,15 @@ import re def remove_meilisearch_disallowed_chars(id: str) -> str: return re.sub(r"[^0-9a-zA-Z_-]", "", id) + + +def remove_prefix(text: str, prefix: str) -> str: + if text.startswith(prefix): + return text[len(prefix):] + return text + + +def remove_suffix(text: str, suffix: str) -> str: + if text.endswith(suffix): + return text[:-len(suffix)] + return text From 9942fe9b837410830abec979d82e0f905b7a8140 Mon Sep 17 00:00:00 2001 From: Benedict Lee Date: Thu, 2 Nov 2023 02:51:47 +0900 Subject: [PATCH 15/19] Prevent duplicate calls to keyDown events due to IME (#592) When typing non-latin characters (such as Korean, Japanese or Chinese) in the MainInputWindow, the KeyDown event is called duplicately due to IME. As a result, non-latin character input does not work properly. --- gui/src/components/ComboBox.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gui/src/components/ComboBox.tsx b/gui/src/components/ComboBox.tsx index de2986b7f..cb1aa3600 100644 --- a/gui/src/components/ComboBox.tsx +++ b/gui/src/components/ComboBox.tsx @@ -1107,6 +1107,11 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { setInputFocused(false); }, onKeyDown: (event) => { + // Prevent duplicate calls to keyDown events due to IME. + if (isComposing) { + return; + } + dispatch(setBottomMessage(undefined)); if (event.key === "Enter" && event.shiftKey) { // Prevent Downshift's default 'Enter' behavior. From 847bbf68ff24080bf7504af9b55c70e9d8d1585d Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 1 Nov 2023 12:40:00 -0700 Subject: [PATCH 16/19] =?UTF-8?q?=F0=9F=90=9B=20solve=20minified=20react?= =?UTF-8?q?=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/webview/assets/index.js | 82 +++++++++---------- extensions/vscode/gui/assets/index.js | 82 +++++++++---------- gui/src/components/TextDialog.tsx | 8 +- gui/src/pages/error.tsx | 5 +- gui/src/pages/gui.tsx | 2 +- server/continuedev/libs/llm/openai.py | 8 +- server/continuedev/libs/llm/proxy_server.py | 2 + server/continuedev/server/protocols/gui.py | 15 ++++ 8 files changed, 117 insertions(+), 87 deletions(-) diff --git a/extensions/intellij/src/main/resources/webview/assets/index.js b/extensions/intellij/src/main/resources/webview/assets/index.js index 5148d27da..ed209b663 100644 --- a/extensions/intellij/src/main/resources/webview/assets/index.js +++ b/extensions/intellij/src/main/resources/webview/assets/index.js @@ -6,7 +6,7 @@ var TW=Object.defineProperty;var SW=(e,t,n)=>t in e?TW(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Dp=Symbol.for("react.element"),AW=Symbol.for("react.portal"),CW=Symbol.for("react.fragment"),kW=Symbol.for("react.strict_mode"),xW=Symbol.for("react.profiler"),IW=Symbol.for("react.provider"),RW=Symbol.for("react.context"),NW=Symbol.for("react.forward_ref"),OW=Symbol.for("react.suspense"),DW=Symbol.for("react.memo"),LW=Symbol.for("react.lazy"),gA=Symbol.iterator;function MW(e){return e===null||typeof e!="object"?null:(e=gA&&e[gA]||e["@@iterator"],typeof e=="function"?e:null)}var MN={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},FN=Object.assign,PN={};function fc(e,t,n){this.props=e,this.context=t,this.refs=PN,this.updater=n||MN}fc.prototype.isReactComponent={};fc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function BN(){}BN.prototype=fc.prototype;function hE(e,t,n){this.props=e,this.context=t,this.refs=PN,this.updater=n||MN}var gE=hE.prototype=new BN;gE.constructor=hE;FN(gE,fc.prototype);gE.isPureReactComponent=!0;var mA=Array.isArray,UN=Object.prototype.hasOwnProperty,mE={current:null},$N={key:!0,ref:!0,__self:!0,__source:!0};function zN(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)UN.call(t,r)&&!$N.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1t in e?TW(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var WN=C,$i=WW;function Pe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eb=Object.prototype.hasOwnProperty,qW=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yA={},EA={};function KW(e){return eb.call(EA,e)?!0:eb.call(yA,e)?!1:qW.test(e)?EA[e]=!0:(yA[e]=!0,!1)}function YW(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XW(e,t,n,r){if(t===null||typeof t>"u"||YW(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function oi(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ir[e]=new oi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ir[t]=new oi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ir[e]=new oi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ir[e]=new oi(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ir[e]=new oi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ir[e]=new oi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ir[e]=new oi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ir[e]=new oi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ir[e]=new oi(e,5,!1,e.toLowerCase(),null,!1,!1)});var yE=/[\-:]([a-z])/g;function EE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ir[e]=new oi(e,1,!1,e.toLowerCase(),null,!1,!1)});Ir.xlinkHref=new oi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ir[e]=new oi(e,1,!1,e.toLowerCase(),null,!0,!0)});function vE(e,t,n,r){var i=Ir.hasOwnProperty(t)?Ir[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eb=Object.prototype.hasOwnProperty,qW=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yA={},EA={};function KW(e){return eb.call(EA,e)?!0:eb.call(yA,e)?!1:qW.test(e)?EA[e]=!0:(yA[e]=!0,!1)}function YW(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XW(e,t,n,r){if(t===null||typeof t>"u"||YW(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function oi(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ir[e]=new oi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ir[t]=new oi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ir[e]=new oi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ir[e]=new oi(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ir[e]=new oi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ir[e]=new oi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ir[e]=new oi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ir[e]=new oi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ir[e]=new oi(e,5,!1,e.toLowerCase(),null,!1,!1)});var yE=/[\-:]([a-z])/g;function EE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ir[e]=new oi(e,1,!1,e.toLowerCase(),null,!1,!1)});Ir.xlinkHref=new oi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ir[e]=new oi(e,1,!1,e.toLowerCase(),null,!0,!0)});function vE(e,t,n,r){var i=Ir.hasOwnProperty(t)?Ir[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var u=` -`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{n3=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ed(e):""}function ZW(e){switch(e.tag){case 5:return Ed(e.type);case 16:return Ed("Lazy");case 13:return Ed("Suspense");case 19:return Ed("SuspenseList");case 0:case 2:case 15:return e=r3(e.type,!1),e;case 11:return e=r3(e.type.render,!1),e;case 1:return e=r3(e.type,!0),e;default:return""}}function ib(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case h1:return"Fragment";case f1:return"Portal";case tb:return"Profiler";case _E:return"StrictMode";case nb:return"Suspense";case rb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case YN:return(e.displayName||"Context")+".Consumer";case KN:return(e._context.displayName||"Context")+".Provider";case TE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case SE:return t=e.displayName||null,t!==null?t:ib(e.type)||"Memo";case Hs:t=e._payload,e=e._init;try{return ib(e(t))}catch{}}return null}function QW(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ib(t);case 8:return t===_E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ZN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function JW(e){var t=ZN(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function u0(e){e._valueTracker||(e._valueTracker=JW(e))}function QN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ZN(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ab(e,t){var n=t.checked;return Ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _A(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function JN(e,t){t=t.checked,t!=null&&vE(e,"checked",t,!1)}function ob(e,t){JN(e,t);var n=hl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sb(e,t.type,n):t.hasOwnProperty("defaultValue")&&sb(e,t.type,hl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function TA(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sb(e,t,n){(t!=="number"||Jh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vd=Array.isArray;function P1(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=c0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eq=["Webkit","ms","Moz","O"];Object.keys(xd).forEach(function(e){eq.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xd[t]=xd[e]})});function rO(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xd.hasOwnProperty(e)&&xd[e]?(""+t).trim():t+"px"}function iO(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=rO(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var tq=Ln({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cb(e,t){if(t){if(tq[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pe(62))}}function db(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pb=null;function wE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fb=null,B1=null,U1=null;function AA(e){if(e=Fp(e)){if(typeof fb!="function")throw Error(Pe(280));var t=e.stateNode;t&&(t=fm(t),fb(e.stateNode,e.type,t))}}function aO(e){B1?U1?U1.push(e):U1=[e]:B1=e}function oO(){if(B1){var e=B1,t=U1;if(U1=B1=null,AA(e),t)for(e=0;e>>=0,e===0?32:31-(pq(e)/fq|0)|0}var d0=64,p0=4194304;function _d(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function rg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=_d(s):(a&=o,a!==0&&(r=_d(a)))}else o=n&~i,o!==0?r=_d(o):a!==0&&(r=_d(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Lp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ga(t),e[t]=n}function bq(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Rd),LA=String.fromCharCode(32),MA=!1;function CO(e,t){switch(e){case"keyup":return Vq.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var g1=!1;function qq(e,t){switch(e){case"compositionend":return kO(t);case"keypress":return t.which!==32?null:(MA=!0,LA);case"textInput":return e=t.data,e===LA&&MA?null:e;default:return null}}function Kq(e,t){if(g1)return e==="compositionend"||!OE&&CO(e,t)?(e=wO(),bh=IE=Xs=null,g1=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=UA(n)}}function NO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?NO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function OO(){for(var e=window,t=Jh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jh(e.document)}return t}function DE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function rK(e){var t=OO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&NO(n.ownerDocument.documentElement,n)){if(r!==null&&DE(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=$A(n,a);var o=$A(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,m1=null,Eb=null,Od=null,vb=!1;function zA(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vb||m1==null||m1!==Jh(r)||(r=m1,"selectionStart"in r&&DE(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Od&&up(Od,r)||(Od=r,r=og(Eb,"onSelect"),0E1||(e.current=Cb[E1],Cb[E1]=null,E1--)}function bn(e,t){E1++,Cb[E1]=e.current,e.current=t}var gl={},Gr=Tl(gl),Ei=Tl(!1),gu=gl;function Z1(e,t){var n=e.type.contextTypes;if(!n)return gl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vi(e){return e=e.childContextTypes,e!=null}function lg(){wn(Ei),wn(Gr)}function KA(e,t,n){if(Gr.current!==gl)throw Error(Pe(168));bn(Gr,t),bn(Ei,n)}function zO(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Pe(108,QW(e)||"Unknown",i));return Ln({},n,r)}function ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gl,gu=Gr.current,bn(Gr,e),bn(Ei,Ei.current),!0}function YA(e,t,n){var r=e.stateNode;if(!r)throw Error(Pe(169));n?(e=zO(e,t,gu),r.__reactInternalMemoizedMergedChildContext=e,wn(Ei),wn(Gr),bn(Gr,e)):wn(Ei),bn(Ei,n)}var Jo=null,hm=!1,b3=!1;function HO(e){Jo===null?Jo=[e]:Jo.push(e)}function gK(e){hm=!0,HO(e)}function Sl(){if(!b3&&Jo!==null){b3=!0;var e=0,t=on;try{var n=Jo;for(on=1;e>=o,i-=o,ts=1<<32-Ga(t)+i|n<B?(q=N,N=null):q=N.sibling;var P=m(E,N,w[B],A);if(P===null){N===null&&(N=q);break}e&&N&&P.alternate===null&&t(E,N),v=a(P,v,B),k===null?R=P:k.sibling=P,k=P,N=q}if(B===w.length)return n(E,N),xn&&Kl(E,B),R;if(N===null){for(;BB?(q=N,N=null):q=N.sibling;var Q=m(E,N,P.value,A);if(Q===null){N===null&&(N=q);break}e&&N&&Q.alternate===null&&t(E,N),v=a(Q,v,B),k===null?R=Q:k.sibling=Q,k=Q,N=q}if(P.done)return n(E,N),xn&&Kl(E,B),R;if(N===null){for(;!P.done;B++,P=w.next())P=f(E,P.value,A),P!==null&&(v=a(P,v,B),k===null?R=P:k.sibling=P,k=P);return xn&&Kl(E,B),R}for(N=r(E,N);!P.done;B++,P=w.next())P=g(N,E,B,P.value,A),P!==null&&(e&&P.alternate!==null&&N.delete(P.key===null?B:P.key),v=a(P,v,B),k===null?R=P:k.sibling=P,k=P);return e&&N.forEach(function($){return t(E,$)}),xn&&Kl(E,B),R}function T(E,v,w,A){if(typeof w=="object"&&w!==null&&w.type===h1&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case l0:e:{for(var R=w.key,k=v;k!==null;){if(k.key===R){if(R=w.type,R===h1){if(k.tag===7){n(E,k.sibling),v=i(k,w.props.children),v.return=E,E=v;break e}}else if(k.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Hs&&nC(R)===k.type){n(E,k.sibling),v=i(k,w.props),v.ref=Zc(E,k,w),v.return=E,E=v;break e}n(E,k);break}else t(E,k);k=k.sibling}w.type===h1?(v=du(w.props.children,E.mode,A,w.key),v.return=E,E=v):(A=Ah(w.type,w.key,w.props,null,E.mode,A),A.ref=Zc(E,v,w),A.return=E,E=A)}return o(E);case f1:e:{for(k=w.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(E,v.sibling),v=i(v,w.children||[]),v.return=E,E=v;break e}else{n(E,v);break}else t(E,v);v=v.sibling}v=A3(w,E.mode,A),v.return=E,E=v}return o(E);case Hs:return k=w._init,T(E,v,k(w._payload),A)}if(vd(w))return b(E,v,w,A);if(Wc(w))return y(E,v,w,A);E0(E,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(E,v.sibling),v=i(v,w),v.return=E,E=v):(n(E,v),v=w3(w,E.mode,A),v.return=E,E=v),o(E)):n(E,v)}return T}var J1=XO(!0),ZO=XO(!1),Pp={},_o=Tl(Pp),fp=Tl(Pp),hp=Tl(Pp);function iu(e){if(e===Pp)throw Error(Pe(174));return e}function HE(e,t){switch(bn(hp,t),bn(fp,e),bn(_o,Pp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ub(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ub(t,e)}wn(_o),bn(_o,t)}function ec(){wn(_o),wn(fp),wn(hp)}function QO(e){iu(hp.current);var t=iu(_o.current),n=ub(t,e.type);t!==n&&(bn(fp,e),bn(_o,n))}function jE(e){fp.current===e&&(wn(_o),wn(fp))}var On=Tl(0);function gg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var y3=[];function GE(){for(var e=0;en?n:4,e(!0);var r=E3.transition;E3.transition={};try{e(!1),t()}finally{on=n,E3.transition=r}}function hD(){return ya().memoizedState}function EK(e,t,n){var r=sl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gD(e))mD(t,n);else if(n=WO(e,t,n,r),n!==null){var i=ri();Va(n,e,r,i),bD(n,t,r)}}function vK(e,t,n){var r=sl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gD(e))mD(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ka(s,o)){var u=t.interleaved;u===null?(i.next=i,$E(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=WO(e,t,i,r),n!==null&&(i=ri(),Va(n,e,r,i),bD(n,t,r))}}function gD(e){var t=e.alternate;return e===Dn||t!==null&&t===Dn}function mD(e,t){Dd=mg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bD(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,CE(e,n)}}var bg={readContext:ba,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useMutableSource:Pr,useSyncExternalStore:Pr,useId:Pr,unstable_isNewReconciler:!1},_K={readContext:ba,useCallback:function(e,t){return co().memoizedState=[e,t===void 0?null:t],e},useContext:ba,useEffect:iC,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_h(4194308,4,uD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _h(4194308,4,e,t)},useInsertionEffect:function(e,t){return _h(4,2,e,t)},useMemo:function(e,t){var n=co();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=co();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=EK.bind(null,Dn,e),[r.memoizedState,e]},useRef:function(e){var t=co();return e={current:e},t.memoizedState=e},useState:rC,useDebugValue:YE,useDeferredValue:function(e){return co().memoizedState=e},useTransition:function(){var e=rC(!1),t=e[0];return e=yK.bind(null,e[1]),co().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Dn,i=co();if(xn){if(n===void 0)throw Error(Pe(407));n=n()}else{if(n=t(),fr===null)throw Error(Pe(349));bu&30||tD(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,iC(rD.bind(null,r,a,e),[e]),r.flags|=2048,bp(9,nD.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=co(),t=fr.identifierPrefix;if(xn){var n=ns,r=ts;n=(r&~(1<<32-Ga(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gp++,0")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{n3=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ed(e):""}function ZW(e){switch(e.tag){case 5:return Ed(e.type);case 16:return Ed("Lazy");case 13:return Ed("Suspense");case 19:return Ed("SuspenseList");case 0:case 2:case 15:return e=r3(e.type,!1),e;case 11:return e=r3(e.type.render,!1),e;case 1:return e=r3(e.type,!0),e;default:return""}}function ib(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case h1:return"Fragment";case f1:return"Portal";case tb:return"Profiler";case _E:return"StrictMode";case nb:return"Suspense";case rb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case YN:return(e.displayName||"Context")+".Consumer";case KN:return(e._context.displayName||"Context")+".Provider";case TE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case SE:return t=e.displayName||null,t!==null?t:ib(e.type)||"Memo";case Hs:t=e._payload,e=e._init;try{return ib(e(t))}catch{}}return null}function QW(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ib(t);case 8:return t===_E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ZN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function JW(e){var t=ZN(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function u0(e){e._valueTracker||(e._valueTracker=JW(e))}function QN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ZN(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ab(e,t){var n=t.checked;return Ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _A(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function JN(e,t){t=t.checked,t!=null&&vE(e,"checked",t,!1)}function ob(e,t){JN(e,t);var n=hl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sb(e,t.type,n):t.hasOwnProperty("defaultValue")&&sb(e,t.type,hl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function TA(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sb(e,t,n){(t!=="number"||Jh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vd=Array.isArray;function P1(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=c0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eq=["Webkit","ms","Moz","O"];Object.keys(xd).forEach(function(e){eq.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xd[t]=xd[e]})});function rO(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xd.hasOwnProperty(e)&&xd[e]?(""+t).trim():t+"px"}function iO(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=rO(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var tq=Ln({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cb(e,t){if(t){if(tq[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pe(62))}}function db(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pb=null;function wE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fb=null,B1=null,U1=null;function AA(e){if(e=Fp(e)){if(typeof fb!="function")throw Error(Pe(280));var t=e.stateNode;t&&(t=fm(t),fb(e.stateNode,e.type,t))}}function aO(e){B1?U1?U1.push(e):U1=[e]:B1=e}function oO(){if(B1){var e=B1,t=U1;if(U1=B1=null,AA(e),t)for(e=0;e>>=0,e===0?32:31-(pq(e)/fq|0)|0}var d0=64,p0=4194304;function _d(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function rg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=_d(s):(a&=o,a!==0&&(r=_d(a)))}else o=n&~i,o!==0?r=_d(o):a!==0&&(r=_d(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Lp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ga(t),e[t]=n}function bq(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Rd),LA=String.fromCharCode(32),MA=!1;function CO(e,t){switch(e){case"keyup":return Vq.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var g1=!1;function qq(e,t){switch(e){case"compositionend":return kO(t);case"keypress":return t.which!==32?null:(MA=!0,LA);case"textInput":return e=t.data,e===LA&&MA?null:e;default:return null}}function Kq(e,t){if(g1)return e==="compositionend"||!OE&&CO(e,t)?(e=wO(),bh=IE=Xs=null,g1=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=UA(n)}}function NO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?NO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function OO(){for(var e=window,t=Jh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jh(e.document)}return t}function DE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function rK(e){var t=OO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&NO(n.ownerDocument.documentElement,n)){if(r!==null&&DE(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=$A(n,a);var o=$A(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,m1=null,Eb=null,Od=null,vb=!1;function zA(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vb||m1==null||m1!==Jh(r)||(r=m1,"selectionStart"in r&&DE(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Od&&up(Od,r)||(Od=r,r=og(Eb,"onSelect"),0E1||(e.current=Cb[E1],Cb[E1]=null,E1--)}function bn(e,t){E1++,Cb[E1]=e.current,e.current=t}var gl={},Gr=Tl(gl),Ei=Tl(!1),gu=gl;function Z1(e,t){var n=e.type.contextTypes;if(!n)return gl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vi(e){return e=e.childContextTypes,e!=null}function lg(){wn(Ei),wn(Gr)}function KA(e,t,n){if(Gr.current!==gl)throw Error(Pe(168));bn(Gr,t),bn(Ei,n)}function zO(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Pe(108,QW(e)||"Unknown",i));return Ln({},n,r)}function ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gl,gu=Gr.current,bn(Gr,e),bn(Ei,Ei.current),!0}function YA(e,t,n){var r=e.stateNode;if(!r)throw Error(Pe(169));n?(e=zO(e,t,gu),r.__reactInternalMemoizedMergedChildContext=e,wn(Ei),wn(Gr),bn(Gr,e)):wn(Ei),bn(Ei,n)}var es=null,hm=!1,b3=!1;function HO(e){es===null?es=[e]:es.push(e)}function gK(e){hm=!0,HO(e)}function Sl(){if(!b3&&es!==null){b3=!0;var e=0,t=on;try{var n=es;for(on=1;e>=o,i-=o,ns=1<<32-Ga(t)+i|n<B?(q=N,N=null):q=N.sibling;var P=m(E,N,w[B],A);if(P===null){N===null&&(N=q);break}e&&N&&P.alternate===null&&t(E,N),v=a(P,v,B),k===null?R=P:k.sibling=P,k=P,N=q}if(B===w.length)return n(E,N),xn&&Kl(E,B),R;if(N===null){for(;BB?(q=N,N=null):q=N.sibling;var Q=m(E,N,P.value,A);if(Q===null){N===null&&(N=q);break}e&&N&&Q.alternate===null&&t(E,N),v=a(Q,v,B),k===null?R=Q:k.sibling=Q,k=Q,N=q}if(P.done)return n(E,N),xn&&Kl(E,B),R;if(N===null){for(;!P.done;B++,P=w.next())P=f(E,P.value,A),P!==null&&(v=a(P,v,B),k===null?R=P:k.sibling=P,k=P);return xn&&Kl(E,B),R}for(N=r(E,N);!P.done;B++,P=w.next())P=g(N,E,B,P.value,A),P!==null&&(e&&P.alternate!==null&&N.delete(P.key===null?B:P.key),v=a(P,v,B),k===null?R=P:k.sibling=P,k=P);return e&&N.forEach(function($){return t(E,$)}),xn&&Kl(E,B),R}function T(E,v,w,A){if(typeof w=="object"&&w!==null&&w.type===h1&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case l0:e:{for(var R=w.key,k=v;k!==null;){if(k.key===R){if(R=w.type,R===h1){if(k.tag===7){n(E,k.sibling),v=i(k,w.props.children),v.return=E,E=v;break e}}else if(k.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Hs&&nC(R)===k.type){n(E,k.sibling),v=i(k,w.props),v.ref=Zc(E,k,w),v.return=E,E=v;break e}n(E,k);break}else t(E,k);k=k.sibling}w.type===h1?(v=du(w.props.children,E.mode,A,w.key),v.return=E,E=v):(A=Ah(w.type,w.key,w.props,null,E.mode,A),A.ref=Zc(E,v,w),A.return=E,E=A)}return o(E);case f1:e:{for(k=w.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(E,v.sibling),v=i(v,w.children||[]),v.return=E,E=v;break e}else{n(E,v);break}else t(E,v);v=v.sibling}v=A3(w,E.mode,A),v.return=E,E=v}return o(E);case Hs:return k=w._init,T(E,v,k(w._payload),A)}if(vd(w))return b(E,v,w,A);if(Wc(w))return y(E,v,w,A);E0(E,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(E,v.sibling),v=i(v,w),v.return=E,E=v):(n(E,v),v=w3(w,E.mode,A),v.return=E,E=v),o(E)):n(E,v)}return T}var J1=XO(!0),ZO=XO(!1),Pp={},_o=Tl(Pp),fp=Tl(Pp),hp=Tl(Pp);function iu(e){if(e===Pp)throw Error(Pe(174));return e}function HE(e,t){switch(bn(hp,t),bn(fp,e),bn(_o,Pp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ub(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ub(t,e)}wn(_o),bn(_o,t)}function ec(){wn(_o),wn(fp),wn(hp)}function QO(e){iu(hp.current);var t=iu(_o.current),n=ub(t,e.type);t!==n&&(bn(fp,e),bn(_o,n))}function jE(e){fp.current===e&&(wn(_o),wn(fp))}var On=Tl(0);function gg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var y3=[];function GE(){for(var e=0;en?n:4,e(!0);var r=E3.transition;E3.transition={};try{e(!1),t()}finally{on=n,E3.transition=r}}function hD(){return ya().memoizedState}function EK(e,t,n){var r=sl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gD(e))mD(t,n);else if(n=WO(e,t,n,r),n!==null){var i=ri();Va(n,e,r,i),bD(n,t,r)}}function vK(e,t,n){var r=sl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gD(e))mD(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ka(s,o)){var u=t.interleaved;u===null?(i.next=i,$E(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=WO(e,t,i,r),n!==null&&(i=ri(),Va(n,e,r,i),bD(n,t,r))}}function gD(e){var t=e.alternate;return e===Dn||t!==null&&t===Dn}function mD(e,t){Dd=mg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bD(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,CE(e,n)}}var bg={readContext:ba,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useMutableSource:Pr,useSyncExternalStore:Pr,useId:Pr,unstable_isNewReconciler:!1},_K={readContext:ba,useCallback:function(e,t){return co().memoizedState=[e,t===void 0?null:t],e},useContext:ba,useEffect:iC,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_h(4194308,4,uD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _h(4194308,4,e,t)},useInsertionEffect:function(e,t){return _h(4,2,e,t)},useMemo:function(e,t){var n=co();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=co();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=EK.bind(null,Dn,e),[r.memoizedState,e]},useRef:function(e){var t=co();return e={current:e},t.memoizedState=e},useState:rC,useDebugValue:YE,useDeferredValue:function(e){return co().memoizedState=e},useTransition:function(){var e=rC(!1),t=e[0];return e=yK.bind(null,e[1]),co().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Dn,i=co();if(xn){if(n===void 0)throw Error(Pe(407));n=n()}else{if(n=t(),fr===null)throw Error(Pe(349));bu&30||tD(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,iC(rD.bind(null,r,a,e),[e]),r.flags|=2048,bp(9,nD.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=co(),t=fr.identifierPrefix;if(xn){var n=rs,r=ns;n=(r&~(1<<32-Ga(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[go]=t,e[pp]=r,CD(e,t,!1,!1),t.stateNode=e;e:{switch(o=db(n,r),n){case"dialog":_n("cancel",e),_n("close",e),i=r;break;case"iframe":case"object":case"embed":_n("load",e),i=r;break;case"video":case"audio":for(i=0;inc&&(t.flags|=128,r=!0,Qc(a,!1),t.lanes=4194304)}else{if(!r)if(e=gg(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qc(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!xn)return Br(t),null}else 2*Gn()-a.renderingStartTime>nc&&n!==1073741824&&(t.flags|=128,r=!0,Qc(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Gn(),t.sibling=null,n=On.current,bn(On,r?n&1|2:n&1),t):(Br(t),null);case 22:case 23:return t9(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Di&1073741824&&(Br(t),t.subtreeFlags&6&&(t.flags|=8192)):Br(t),null;case 24:return null;case 25:return null}throw Error(Pe(156,t.tag))}function IK(e,t){switch(ME(t),t.tag){case 1:return vi(t.type)&&lg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ec(),wn(Ei),wn(Gr),GE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jE(t),null;case 13:if(wn(On),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pe(340));Q1()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wn(On),null;case 4:return ec(),null;case 10:return UE(t.type._context),null;case 22:case 23:return t9(),null;case 24:return null;default:return null}}var _0=!1,zr=!1,RK=typeof WeakSet=="function"?WeakSet:Set,tt=null;function S1(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Bn(e,t,r)}else n.current=null}function Bb(e,t,n){try{n()}catch(r){Bn(e,t,r)}}var fC=!1;function NK(e,t){if(_b=ig,e=OO(),DE(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,c=0,p=0,f=e,m=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++c===i&&(s=o),m===a&&++p===r&&(u=o),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tb={focusedElem:e,selectionRange:n},ig=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){t=tt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var y=b.memoizedProps,T=b.memoizedState,E=t.stateNode,v=E.getSnapshotBeforeUpdate(t.elementType===t.type?y:Fa(t.type,y),T);E.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pe(163))}}catch(A){Bn(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}return b=fC,fC=!1,b}function Ld(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Bb(t,n,a)}i=i.next}while(i!==r)}}function bm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ub(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ID(e){var t=e.alternate;t!==null&&(e.alternate=null,ID(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[go],delete t[pp],delete t[Ab],delete t[fK],delete t[hK])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function RD(e){return e.tag===5||e.tag===3||e.tag===4}function hC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||RD(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $b(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sg));else if(r!==4&&(e=e.child,e!==null))for($b(e,t,n),e=e.sibling;e!==null;)$b(e,t,n),e=e.sibling}function zb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(zb(e,t,n),e=e.sibling;e!==null;)zb(e,t,n),e=e.sibling}var _r=null,Pa=!1;function Os(e,t,n){for(n=n.child;n!==null;)ND(e,t,n),n=n.sibling}function ND(e,t,n){if(vo&&typeof vo.onCommitFiberUnmount=="function")try{vo.onCommitFiberUnmount(um,n)}catch{}switch(n.tag){case 5:zr||S1(n,t);case 6:var r=_r,i=Pa;_r=null,Os(e,t,n),_r=r,Pa=i,_r!==null&&(Pa?(e=_r,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_r.removeChild(n.stateNode));break;case 18:_r!==null&&(Pa?(e=_r,n=n.stateNode,e.nodeType===8?m3(e.parentNode,n):e.nodeType===1&&m3(e,n),sp(e)):m3(_r,n.stateNode));break;case 4:r=_r,i=Pa,_r=n.stateNode.containerInfo,Pa=!0,Os(e,t,n),_r=r,Pa=i;break;case 0:case 11:case 14:case 15:if(!zr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Bb(n,t,o),i=i.next}while(i!==r)}Os(e,t,n);break;case 1:if(!zr&&(S1(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Bn(n,t,s)}Os(e,t,n);break;case 21:Os(e,t,n);break;case 22:n.mode&1?(zr=(r=zr)||n.memoizedState!==null,Os(e,t,n),zr=r):Os(e,t,n);break;default:Os(e,t,n)}}function gC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new RK),t.forEach(function(r){var i=$K.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ra(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=Gn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DK(r/1960))-r,10e?16:e,Zs===null)var r=!1;else{if(e=Zs,Zs=null,vg=0,Kt&6)throw Error(Pe(331));var i=Kt;for(Kt|=4,tt=e.current;tt!==null;){var a=tt,o=a.child;if(tt.flags&16){var s=a.deletions;if(s!==null){for(var u=0;uGn()-JE?cu(e,0):QE|=n),_i(e,t)}function UD(e,t){t===0&&(e.mode&1?(t=p0,p0<<=1,!(p0&130023424)&&(p0=4194304)):t=1);var n=ri();e=ls(e,t),e!==null&&(Lp(e,t,n),_i(e,n))}function UK(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),UD(e,n)}function $K(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Pe(314))}r!==null&&r.delete(t),UD(e,n)}var $D;$D=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ei.current)bi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bi=!1,kK(e,t,n);bi=!!(e.flags&131072)}else bi=!1,xn&&t.flags&1048576&&jO(t,dg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Th(e,t),e=t.pendingProps;var i=Z1(t,Gr.current);z1(t,n),i=WE(null,t,r,e,i,n);var a=qE();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)?(a=!0,ug(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zE(t),i.updater=gm,t.stateNode=i,i._reactInternals=t,Nb(t,r,e,n),t=Lb(null,t,r,!0,a,n)):(t.tag=0,xn&&a&&LE(t),Jr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Th(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=HK(r),e=Fa(r,e),i){case 0:t=Db(null,t,r,e,n);break e;case 1:t=cC(null,t,r,e,n);break e;case 11:t=lC(null,t,r,e,n);break e;case 14:t=uC(null,t,r,Fa(r.type,e),n);break e}throw Error(Pe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),Db(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),cC(e,t,r,i,n);case 3:e:{if(SD(t),e===null)throw Error(Pe(387));r=t.pendingProps,a=t.memoizedState,i=a.element,qO(e,t),hg(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=tc(Error(Pe(423)),t),t=dC(e,t,r,n,i);break e}else if(r!==i){i=tc(Error(Pe(424)),t),t=dC(e,t,r,n,i);break e}else for(Mi=il(t.stateNode.containerInfo.firstChild),Fi=t,xn=!0,$a=null,n=ZO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Q1(),r===i){t=us(e,t,n);break e}Jr(e,t,r,n)}t=t.child}return t;case 5:return QO(t),e===null&&xb(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Sb(r,i)?o=null:a!==null&&Sb(r,a)&&(t.flags|=32),TD(e,t),Jr(e,t,o,n),t.child;case 6:return e===null&&xb(t),null;case 13:return wD(e,t,n);case 4:return HE(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=J1(t,null,r,n):Jr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),lC(e,t,r,i,n);case 7:return Jr(e,t,t.pendingProps,n),t.child;case 8:return Jr(e,t,t.pendingProps.children,n),t.child;case 12:return Jr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,bn(pg,r._currentValue),r._currentValue=o,a!==null)if(Ka(a.value,o)){if(a.children===i.children&&!Ei.current){t=us(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(a.tag===1){u=is(-1,n&-n),u.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Ib(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Pe(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ib(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Jr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,z1(t,n),i=ba(i),r=r(i),t.flags|=1,Jr(e,t,r,n),t.child;case 14:return r=t.type,i=Fa(r,t.pendingProps),i=Fa(r.type,i),uC(e,t,r,i,n);case 15:return vD(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),Th(e,t),t.tag=1,vi(r)?(e=!0,ug(t)):e=!1,z1(t,n),YO(t,r,i),Nb(t,r,i,n),Lb(null,t,r,!0,e,n);case 19:return AD(e,t,n);case 22:return _D(e,t,n)}throw Error(Pe(156,t.tag))};function zD(e,t){return fO(e,t)}function zK(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pa(e,t,n,r){return new zK(e,t,n,r)}function r9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HK(e){if(typeof e=="function")return r9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===TE)return 11;if(e===SE)return 14}return 2}function ll(e,t){var n=e.alternate;return n===null?(n=pa(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ah(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")r9(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case h1:return du(n.children,i,a,t);case _E:o=8,i|=8;break;case tb:return e=pa(12,n,t,i|2),e.elementType=tb,e.lanes=a,e;case nb:return e=pa(13,n,t,i),e.elementType=nb,e.lanes=a,e;case rb:return e=pa(19,n,t,i),e.elementType=rb,e.lanes=a,e;case XN:return Em(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case KN:o=10;break e;case YN:o=9;break e;case TE:o=11;break e;case SE:o=14;break e;case Hs:o=16,r=null;break e}throw Error(Pe(130,e==null?e:typeof e,""))}return t=pa(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function du(e,t,n,r){return e=pa(7,e,r,t),e.lanes=n,e}function Em(e,t,n,r){return e=pa(22,e,r,t),e.elementType=XN,e.lanes=n,e.stateNode={isHidden:!1},e}function w3(e,t,n){return e=pa(6,e,null,t),e.lanes=n,e}function A3(e,t,n){return t=pa(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jK(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=a3(0),this.expirationTimes=a3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=a3(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function i9(e,t,n,r,i,a,o,s,u){return e=new jK(e,t,n,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pa(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zE(a),e}function GK(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(VD)}catch(e){console.error(e)}}VD(),jN.exports=Wi;var l9=jN.exports;const u9=Vi(l9);var SC=l9;J4.createRoot=SC.createRoot,J4.hydrateRoot=SC.hydrateRoot;var WD={exports:{}},sn={};/** +`+a.stack}return{value:e,source:t,stack:i,digest:null}}function T3(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ob(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wK=typeof WeakMap=="function"?WeakMap:Map;function yD(e,t,n){n=as(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Eg||(Eg=!0,Hb=r),Ob(e,t)},n}function ED(e,t,n){n=as(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ob(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Ob(e,t),typeof r!="function"&&(ol===null?ol=new Set([this]):ol.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function aC(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wK;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=BK.bind(null,e,t,n),t.then(e,e))}function oC(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function sC(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=as(-1,1),t.tag=2,al(n,t,1))),n.lanes|=1),e)}var AK=gs.ReactCurrentOwner,bi=!1;function Jr(e,t,n,r){t.child=e===null?ZO(t,null,n,r):J1(t,e.child,n,r)}function lC(e,t,n,r,i){n=n.render;var a=t.ref;return z1(t,i),r=WE(e,t,n,r,a,i),n=qE(),e!==null&&!bi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,cs(e,t,i)):(xn&&n&&LE(t),t.flags|=1,Jr(e,t,r,i),t.child)}function uC(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!r9(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,vD(e,t,a,r,i)):(e=Ah(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:up,n(o,r)&&e.ref===t.ref)return cs(e,t,i)}return t.flags|=1,e=ll(a,r),e.ref=t.ref,e.return=t,t.child=e}function vD(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(up(a,r)&&e.ref===t.ref)if(bi=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(bi=!0);else return t.lanes=e.lanes,cs(e,t,i)}return Db(e,t,n,r,i)}function _D(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},bn(w1,Di),Di|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,bn(w1,Di),Di|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,bn(w1,Di),Di|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,bn(w1,Di),Di|=r;return Jr(e,t,i,n),t.child}function TD(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Db(e,t,n,r,i){var a=vi(n)?gu:Gr.current;return a=Z1(t,a),z1(t,i),n=WE(e,t,n,r,a,i),r=qE(),e!==null&&!bi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,cs(e,t,i)):(xn&&r&&LE(t),t.flags|=1,Jr(e,t,n,i),t.child)}function cC(e,t,n,r,i){if(vi(n)){var a=!0;ug(t)}else a=!1;if(z1(t,i),t.stateNode===null)Th(e,t),YO(t,n,r),Nb(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=ba(c):(c=vi(n)?gu:Gr.current,c=Z1(t,c));var p=n.getDerivedStateFromProps,f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==c)&&tC(t,o,r,c),js=!1;var m=t.memoizedState;o.state=m,hg(t,r,o,i),u=t.memoizedState,s!==r||m!==u||Ei.current||js?(typeof p=="function"&&(Rb(t,n,p,r),u=t.memoizedState),(s=js||eC(t,n,s,r,m,u,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,qO(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Fa(t.type,s),o.props=c,f=t.pendingProps,m=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=ba(u):(u=vi(n)?gu:Gr.current,u=Z1(t,u));var g=n.getDerivedStateFromProps;(p=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||m!==u)&&tC(t,o,r,u),js=!1,m=t.memoizedState,o.state=m,hg(t,r,o,i);var b=t.memoizedState;s!==f||m!==b||Ei.current||js?(typeof g=="function"&&(Rb(t,n,g,r),b=t.memoizedState),(c=js||eC(t,n,c,r,m,b,u)||!1)?(p||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,b,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,b,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),o.props=r,o.state=b,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Lb(e,t,n,r,a,i)}function Lb(e,t,n,r,i,a){TD(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&YA(t,n,!1),cs(e,t,a);r=t.stateNode,AK.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=J1(t,e.child,null,a),t.child=J1(t,null,s,a)):Jr(e,t,s,a),t.memoizedState=r.state,i&&YA(t,n,!0),t.child}function SD(e){var t=e.stateNode;t.pendingContext?KA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&KA(e,t.context,!1),HE(e,t.containerInfo)}function dC(e,t,n,r,i){return Q1(),FE(i),t.flags|=256,Jr(e,t,n,r),t.child}var Mb={dehydrated:null,treeContext:null,retryLane:0};function Fb(e){return{baseLanes:e,cachePool:null,transitions:null}}function wD(e,t,n){var r=t.pendingProps,i=On.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),bn(On,i&1),e===null)return xb(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Em(o,r,0,null),e=du(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Fb(n),t.memoizedState=Mb,e):XE(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return CK(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ll(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=ll(s,a):(a=du(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Fb(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Mb,r}return a=e.child,e=a.sibling,r=ll(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function XE(e,t){return t=Em({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function v0(e,t,n,r){return r!==null&&FE(r),J1(t,e.child,null,n),e=XE(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function CK(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=T3(Error(Pe(422))),v0(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Em({mode:"visible",children:r.children},i,0,null),a=du(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&J1(t,e.child,null,o),t.child.memoizedState=Fb(o),t.memoizedState=Mb,a);if(!(t.mode&1))return v0(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(Pe(419)),r=T3(a,r,void 0),v0(e,t,o,r)}if(s=(o&e.childLanes)!==0,bi||s){if(r=fr,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,us(e,i),Va(r,e,i,-1))}return n9(),r=T3(Error(Pe(421))),v0(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=UK.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Mi=il(i.nextSibling),Fi=t,xn=!0,$a=null,e!==null&&(la[ua++]=ns,la[ua++]=rs,la[ua++]=mu,ns=e.id,rs=e.overflow,mu=t),t=XE(t,r.children),t.flags|=4096,t)}function pC(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ib(e.return,t,n)}function S3(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function AD(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Jr(e,t,r.children,n),r=On.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pC(e,n,t);else if(e.tag===19)pC(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(bn(On,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&gg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),S3(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&gg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}S3(t,!0,n,null,a);break;case"together":S3(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Th(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cs(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yu|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Pe(153));if(t.child!==null){for(e=t.child,n=ll(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ll(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kK(e,t,n){switch(t.tag){case 3:SD(t),Q1();break;case 5:QO(t);break;case 1:vi(t.type)&&ug(t);break;case 4:HE(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;bn(pg,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(bn(On,On.current&1),t.flags|=128,null):n&t.child.childLanes?wD(e,t,n):(bn(On,On.current&1),e=cs(e,t,n),e!==null?e.sibling:null);bn(On,On.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return AD(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),bn(On,On.current),r)break;return null;case 22:case 23:return t.lanes=0,_D(e,t,n)}return cs(e,t,n)}var CD,Pb,kD,xD;CD=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Pb=function(){};kD=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,iu(_o.current);var a=null;switch(n){case"input":i=ab(e,i),r=ab(e,r),a=[];break;case"select":i=Ln({},i,{value:void 0}),r=Ln({},r,{value:void 0}),a=[];break;case"textarea":i=lb(e,i),r=lb(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=sg)}cb(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(np.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(u!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(a=a||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(a=a||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(np.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&_n("scroll",e),a||s===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};xD=function(e,t,n,r){n!==r&&(t.flags|=4)};function Qc(e,t){if(!xn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Br(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xK(e,t,n){var r=t.pendingProps;switch(ME(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Br(t),null;case 1:return vi(t.type)&&lg(),Br(t),null;case 3:return r=t.stateNode,ec(),wn(Ei),wn(Gr),GE(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(y0(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$a!==null&&(Vb($a),$a=null))),Pb(e,t),Br(t),null;case 5:jE(t);var i=iu(hp.current);if(n=t.type,e!==null&&t.stateNode!=null)kD(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Pe(166));return Br(t),null}if(e=iu(_o.current),y0(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[go]=t,r[pp]=a,e=(t.mode&1)!==0,n){case"dialog":_n("cancel",r),_n("close",r);break;case"iframe":case"object":case"embed":_n("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[go]=t,e[pp]=r,CD(e,t,!1,!1),t.stateNode=e;e:{switch(o=db(n,r),n){case"dialog":_n("cancel",e),_n("close",e),i=r;break;case"iframe":case"object":case"embed":_n("load",e),i=r;break;case"video":case"audio":for(i=0;inc&&(t.flags|=128,r=!0,Qc(a,!1),t.lanes=4194304)}else{if(!r)if(e=gg(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qc(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!xn)return Br(t),null}else 2*Gn()-a.renderingStartTime>nc&&n!==1073741824&&(t.flags|=128,r=!0,Qc(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Gn(),t.sibling=null,n=On.current,bn(On,r?n&1|2:n&1),t):(Br(t),null);case 22:case 23:return t9(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Di&1073741824&&(Br(t),t.subtreeFlags&6&&(t.flags|=8192)):Br(t),null;case 24:return null;case 25:return null}throw Error(Pe(156,t.tag))}function IK(e,t){switch(ME(t),t.tag){case 1:return vi(t.type)&&lg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ec(),wn(Ei),wn(Gr),GE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jE(t),null;case 13:if(wn(On),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pe(340));Q1()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wn(On),null;case 4:return ec(),null;case 10:return UE(t.type._context),null;case 22:case 23:return t9(),null;case 24:return null;default:return null}}var _0=!1,zr=!1,RK=typeof WeakSet=="function"?WeakSet:Set,tt=null;function S1(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Bn(e,t,r)}else n.current=null}function Bb(e,t,n){try{n()}catch(r){Bn(e,t,r)}}var fC=!1;function NK(e,t){if(_b=ig,e=OO(),DE(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,c=0,p=0,f=e,m=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++c===i&&(s=o),m===a&&++p===r&&(u=o),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tb={focusedElem:e,selectionRange:n},ig=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){t=tt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var y=b.memoizedProps,T=b.memoizedState,E=t.stateNode,v=E.getSnapshotBeforeUpdate(t.elementType===t.type?y:Fa(t.type,y),T);E.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pe(163))}}catch(A){Bn(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}return b=fC,fC=!1,b}function Ld(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Bb(t,n,a)}i=i.next}while(i!==r)}}function bm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ub(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ID(e){var t=e.alternate;t!==null&&(e.alternate=null,ID(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[go],delete t[pp],delete t[Ab],delete t[fK],delete t[hK])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function RD(e){return e.tag===5||e.tag===3||e.tag===4}function hC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||RD(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $b(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sg));else if(r!==4&&(e=e.child,e!==null))for($b(e,t,n),e=e.sibling;e!==null;)$b(e,t,n),e=e.sibling}function zb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(zb(e,t,n),e=e.sibling;e!==null;)zb(e,t,n),e=e.sibling}var _r=null,Pa=!1;function Os(e,t,n){for(n=n.child;n!==null;)ND(e,t,n),n=n.sibling}function ND(e,t,n){if(vo&&typeof vo.onCommitFiberUnmount=="function")try{vo.onCommitFiberUnmount(um,n)}catch{}switch(n.tag){case 5:zr||S1(n,t);case 6:var r=_r,i=Pa;_r=null,Os(e,t,n),_r=r,Pa=i,_r!==null&&(Pa?(e=_r,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_r.removeChild(n.stateNode));break;case 18:_r!==null&&(Pa?(e=_r,n=n.stateNode,e.nodeType===8?m3(e.parentNode,n):e.nodeType===1&&m3(e,n),sp(e)):m3(_r,n.stateNode));break;case 4:r=_r,i=Pa,_r=n.stateNode.containerInfo,Pa=!0,Os(e,t,n),_r=r,Pa=i;break;case 0:case 11:case 14:case 15:if(!zr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Bb(n,t,o),i=i.next}while(i!==r)}Os(e,t,n);break;case 1:if(!zr&&(S1(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Bn(n,t,s)}Os(e,t,n);break;case 21:Os(e,t,n);break;case 22:n.mode&1?(zr=(r=zr)||n.memoizedState!==null,Os(e,t,n),zr=r):Os(e,t,n);break;default:Os(e,t,n)}}function gC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new RK),t.forEach(function(r){var i=$K.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ra(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=Gn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DK(r/1960))-r,10e?16:e,Zs===null)var r=!1;else{if(e=Zs,Zs=null,vg=0,Kt&6)throw Error(Pe(331));var i=Kt;for(Kt|=4,tt=e.current;tt!==null;){var a=tt,o=a.child;if(tt.flags&16){var s=a.deletions;if(s!==null){for(var u=0;uGn()-JE?cu(e,0):QE|=n),_i(e,t)}function UD(e,t){t===0&&(e.mode&1?(t=p0,p0<<=1,!(p0&130023424)&&(p0=4194304)):t=1);var n=ri();e=us(e,t),e!==null&&(Lp(e,t,n),_i(e,n))}function UK(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),UD(e,n)}function $K(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Pe(314))}r!==null&&r.delete(t),UD(e,n)}var $D;$D=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ei.current)bi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bi=!1,kK(e,t,n);bi=!!(e.flags&131072)}else bi=!1,xn&&t.flags&1048576&&jO(t,dg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Th(e,t),e=t.pendingProps;var i=Z1(t,Gr.current);z1(t,n),i=WE(null,t,r,e,i,n);var a=qE();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)?(a=!0,ug(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zE(t),i.updater=gm,t.stateNode=i,i._reactInternals=t,Nb(t,r,e,n),t=Lb(null,t,r,!0,a,n)):(t.tag=0,xn&&a&&LE(t),Jr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Th(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=HK(r),e=Fa(r,e),i){case 0:t=Db(null,t,r,e,n);break e;case 1:t=cC(null,t,r,e,n);break e;case 11:t=lC(null,t,r,e,n);break e;case 14:t=uC(null,t,r,Fa(r.type,e),n);break e}throw Error(Pe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),Db(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),cC(e,t,r,i,n);case 3:e:{if(SD(t),e===null)throw Error(Pe(387));r=t.pendingProps,a=t.memoizedState,i=a.element,qO(e,t),hg(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=tc(Error(Pe(423)),t),t=dC(e,t,r,n,i);break e}else if(r!==i){i=tc(Error(Pe(424)),t),t=dC(e,t,r,n,i);break e}else for(Mi=il(t.stateNode.containerInfo.firstChild),Fi=t,xn=!0,$a=null,n=ZO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Q1(),r===i){t=cs(e,t,n);break e}Jr(e,t,r,n)}t=t.child}return t;case 5:return QO(t),e===null&&xb(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Sb(r,i)?o=null:a!==null&&Sb(r,a)&&(t.flags|=32),TD(e,t),Jr(e,t,o,n),t.child;case 6:return e===null&&xb(t),null;case 13:return wD(e,t,n);case 4:return HE(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=J1(t,null,r,n):Jr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),lC(e,t,r,i,n);case 7:return Jr(e,t,t.pendingProps,n),t.child;case 8:return Jr(e,t,t.pendingProps.children,n),t.child;case 12:return Jr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,bn(pg,r._currentValue),r._currentValue=o,a!==null)if(Ka(a.value,o)){if(a.children===i.children&&!Ei.current){t=cs(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(a.tag===1){u=as(-1,n&-n),u.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Ib(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Pe(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ib(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Jr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,z1(t,n),i=ba(i),r=r(i),t.flags|=1,Jr(e,t,r,n),t.child;case 14:return r=t.type,i=Fa(r,t.pendingProps),i=Fa(r.type,i),uC(e,t,r,i,n);case 15:return vD(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),Th(e,t),t.tag=1,vi(r)?(e=!0,ug(t)):e=!1,z1(t,n),YO(t,r,i),Nb(t,r,i,n),Lb(null,t,r,!0,e,n);case 19:return AD(e,t,n);case 22:return _D(e,t,n)}throw Error(Pe(156,t.tag))};function zD(e,t){return fO(e,t)}function zK(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pa(e,t,n,r){return new zK(e,t,n,r)}function r9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HK(e){if(typeof e=="function")return r9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===TE)return 11;if(e===SE)return 14}return 2}function ll(e,t){var n=e.alternate;return n===null?(n=pa(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ah(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")r9(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case h1:return du(n.children,i,a,t);case _E:o=8,i|=8;break;case tb:return e=pa(12,n,t,i|2),e.elementType=tb,e.lanes=a,e;case nb:return e=pa(13,n,t,i),e.elementType=nb,e.lanes=a,e;case rb:return e=pa(19,n,t,i),e.elementType=rb,e.lanes=a,e;case XN:return Em(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case KN:o=10;break e;case YN:o=9;break e;case TE:o=11;break e;case SE:o=14;break e;case Hs:o=16,r=null;break e}throw Error(Pe(130,e==null?e:typeof e,""))}return t=pa(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function du(e,t,n,r){return e=pa(7,e,r,t),e.lanes=n,e}function Em(e,t,n,r){return e=pa(22,e,r,t),e.elementType=XN,e.lanes=n,e.stateNode={isHidden:!1},e}function w3(e,t,n){return e=pa(6,e,null,t),e.lanes=n,e}function A3(e,t,n){return t=pa(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jK(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=a3(0),this.expirationTimes=a3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=a3(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function i9(e,t,n,r,i,a,o,s,u){return e=new jK(e,t,n,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pa(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zE(a),e}function GK(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(VD)}catch(e){console.error(e)}}VD(),jN.exports=Wi;var l9=jN.exports;const u9=Vi(l9);var SC=l9;J4.createRoot=SC.createRoot,J4.hydrateRoot=SC.hydrateRoot;var WD={exports:{}},sn={};/** * @license React * react-is.production.min.js * @@ -52,19 +52,19 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var hr=typeof Symbol=="function"&&Symbol.for,f9=hr?Symbol.for("react.element"):60103,h9=hr?Symbol.for("react.portal"):60106,Lm=hr?Symbol.for("react.fragment"):60107,Mm=hr?Symbol.for("react.strict_mode"):60108,Fm=hr?Symbol.for("react.profiler"):60114,Pm=hr?Symbol.for("react.provider"):60109,Bm=hr?Symbol.for("react.context"):60110,g9=hr?Symbol.for("react.async_mode"):60111,Um=hr?Symbol.for("react.concurrent_mode"):60111,$m=hr?Symbol.for("react.forward_ref"):60112,zm=hr?Symbol.for("react.suspense"):60113,nY=hr?Symbol.for("react.suspense_list"):60120,Hm=hr?Symbol.for("react.memo"):60115,jm=hr?Symbol.for("react.lazy"):60116,rY=hr?Symbol.for("react.block"):60121,iY=hr?Symbol.for("react.fundamental"):60117,aY=hr?Symbol.for("react.responder"):60118,oY=hr?Symbol.for("react.scope"):60119;function Ki(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case f9:switch(e=e.type,e){case g9:case Um:case Lm:case Fm:case Mm:case zm:return e;default:switch(e=e&&e.$$typeof,e){case Bm:case $m:case jm:case Hm:case Pm:return e;default:return t}}case h9:return t}}}function YD(e){return Ki(e)===Um}ln.AsyncMode=g9;ln.ConcurrentMode=Um;ln.ContextConsumer=Bm;ln.ContextProvider=Pm;ln.Element=f9;ln.ForwardRef=$m;ln.Fragment=Lm;ln.Lazy=jm;ln.Memo=Hm;ln.Portal=h9;ln.Profiler=Fm;ln.StrictMode=Mm;ln.Suspense=zm;ln.isAsyncMode=function(e){return YD(e)||Ki(e)===g9};ln.isConcurrentMode=YD;ln.isContextConsumer=function(e){return Ki(e)===Bm};ln.isContextProvider=function(e){return Ki(e)===Pm};ln.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===f9};ln.isForwardRef=function(e){return Ki(e)===$m};ln.isFragment=function(e){return Ki(e)===Lm};ln.isLazy=function(e){return Ki(e)===jm};ln.isMemo=function(e){return Ki(e)===Hm};ln.isPortal=function(e){return Ki(e)===h9};ln.isProfiler=function(e){return Ki(e)===Fm};ln.isStrictMode=function(e){return Ki(e)===Mm};ln.isSuspense=function(e){return Ki(e)===zm};ln.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Lm||e===Um||e===Fm||e===Mm||e===zm||e===nY||typeof e=="object"&&e!==null&&(e.$$typeof===jm||e.$$typeof===Hm||e.$$typeof===Pm||e.$$typeof===Bm||e.$$typeof===$m||e.$$typeof===iY||e.$$typeof===aY||e.$$typeof===oY||e.$$typeof===rY)};ln.typeOf=Ki;KD.exports=ln;var sY=KD.exports,m9=sY,lY={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},uY={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},cY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},XD={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},b9={};b9[m9.ForwardRef]=cY;b9[m9.Memo]=XD;function AC(e){return m9.isMemo(e)?XD:b9[e.$$typeof]||lY}var dY=Object.defineProperty,pY=Object.getOwnPropertyNames,CC=Object.getOwnPropertySymbols,fY=Object.getOwnPropertyDescriptor,hY=Object.getPrototypeOf,kC=Object.prototype;function ZD(e,t,n){if(typeof t!="string"){if(kC){var r=hY(t);r&&r!==kC&&ZD(e,r,n)}var i=pY(t);CC&&(i=i.concat(CC(t)));for(var a=AC(e),o=AC(t),s=0;s1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var yY=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Bp(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var yY=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Bp(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=Pd&&(Pd=t+1),Ch.set(e,t),wg.set(t,e)},_Y="style["+rc+'][data-styled-version="5.3.11"]',TY=new RegExp("^"+rc+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),SY=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;c--){var p=u[c];if(p&&p.nodeType===1&&p.hasAttribute(rc))return p}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(rc,"active"),r.setAttribute("data-styled-version","5.3.11");var o=AY();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},CY=function(){function e(n){var r=this.element=QD(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=m+",")}),a+=""+c+p+'{content:"'+f+`"}/*!sc*/ -`}}}return a}(this)},e}(),RY=/(a)(d)/gi,NC=function(e){return String.fromCharCode(e+(e>25?39:97))};function qb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=NC(t%52)+n;return(NC(t%52)+n).replace(RY,"$1-$2")}var A1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eL=function(e){return A1(5381,e)};function NY(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=A1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var E=r(f,"."+T,void 0,i);n.insertRules(i,T,E)}a.push(T)}}return a.join(" ")},e}(),LY=/^\s*\/\/.*$/gm,MY=[":","[",".","#"];function FY(e){var t,n,r,i,a=e===void 0?ul:e,o=a.options,s=o===void 0?ul:o,u=a.plugins,c=u===void 0?Sg:u,p=new QK(s),f=[],m=function(y){function T(E){if(E)try{y(E+"}")}catch{}}return function(E,v,w,A,R,k,N,B,q,P){switch(E){case 1:if(q===0&&v.charCodeAt(0)===64)return y(v+";"),"";break;case 2:if(B===0)return v+"/*|*/";break;case 3:switch(B){case 102:case 112:return y(w[0]+v),"";default:return v+(P===0?"/*|*/":"")}case-2:v.split("/*|*/}").forEach(T)}}}(function(y){f.push(y)}),g=function(y,T,E){return T===0&&MY.indexOf(E[n.length])!==-1||E.match(i)?y:"."+t};function b(y,T,E,v){v===void 0&&(v="&");var w=y.replace(LY,""),A=T&&E?E+" "+T+" { "+w+" }":w;return t=v,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(E||!T?"":T,A)}return p.use([].concat(c,[function(y,T,E){y===2&&E.length&&E[0].lastIndexOf(n)>0&&(E[0]=E[0].replace(r,g))},m,function(y){if(y===-2){var T=f;return f=[],T}}])),b.hash=c.length?c.reduce(function(y,T){return T.name||Bp(15),A1(y,T.name)},5381).toString():"",b}var tL=ut.createContext();tL.Consumer;var nL=ut.createContext(),PY=(nL.Consumer,new JD),Kb=FY();function BY(){return C.useContext(tL)||PY}function UY(){return C.useContext(nL)||Kb}var rL=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Kb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Bp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Kb),this.name+t.hash},e}(),$Y=/([A-Z])/,zY=/([A-Z])/g,HY=/^ms-/,jY=function(e){return"-"+e.toLowerCase()};function OC(e){return $Y.test(e)?e.replace(zY,jY).replace(HY,"-ms-"):e}var DC=function(e){return e==null||e===!1||e===""};function ic(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,WY=/(^-|-$)/g;function C3(e){return e.replace(VY,"-").replace(WY,"")}var aL=function(e){return qb(eL(e)>>>0)};function A0(e){return typeof e=="string"&&!0}var Yb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},qY=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function KY(e,t,n){var r=e[n];Yb(t)&&Yb(r)?oL(r,t):e[n]=t}function oL(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),R=w&&w+"-"+(A0(v)?v:C3(IC(v)));return lL(v,rs({},A,{attrs:m,componentId:R}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(v){this._foldedDefaultProps=r?oL({},e.defaultProps,v):v}}),Object.defineProperty(b,"toString",{value:function(){return"."+b.styledComponentId}}),i&&mY(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Xb=function(e){return function t(n,r,i){if(i===void 0&&(i=ul),!p9.isValidElementType(r))return Bp(1,String(r));var a=function(){return n(r,i,iL.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,rs({},i,{},o))},a.attrs=function(o){return t(n,r,rs({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(lL,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Xb[e]=Xb(e)});function Gm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0;c--){var p=u[c];if(p&&p.nodeType===1&&p.hasAttribute(rc))return p}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(rc,"active"),r.setAttribute("data-styled-version","5.3.11");var o=AY();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},CY=function(){function e(n){var r=this.element=QD(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=m+",")}),a+=""+c+p+'{content:"'+f+`"}/*!sc*/ +`}}}return a}(this)},e}(),RY=/(a)(d)/gi,NC=function(e){return String.fromCharCode(e+(e>25?39:97))};function qb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=NC(t%52)+n;return(NC(t%52)+n).replace(RY,"$1-$2")}var A1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eL=function(e){return A1(5381,e)};function NY(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=A1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var E=r(f,"."+T,void 0,i);n.insertRules(i,T,E)}a.push(T)}}return a.join(" ")},e}(),LY=/^\s*\/\/.*$/gm,MY=[":","[",".","#"];function FY(e){var t,n,r,i,a=e===void 0?ul:e,o=a.options,s=o===void 0?ul:o,u=a.plugins,c=u===void 0?Sg:u,p=new QK(s),f=[],m=function(y){function T(E){if(E)try{y(E+"}")}catch{}}return function(E,v,w,A,R,k,N,B,q,P){switch(E){case 1:if(q===0&&v.charCodeAt(0)===64)return y(v+";"),"";break;case 2:if(B===0)return v+"/*|*/";break;case 3:switch(B){case 102:case 112:return y(w[0]+v),"";default:return v+(P===0?"/*|*/":"")}case-2:v.split("/*|*/}").forEach(T)}}}(function(y){f.push(y)}),g=function(y,T,E){return T===0&&MY.indexOf(E[n.length])!==-1||E.match(i)?y:"."+t};function b(y,T,E,v){v===void 0&&(v="&");var w=y.replace(LY,""),A=T&&E?E+" "+T+" { "+w+" }":w;return t=v,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(E||!T?"":T,A)}return p.use([].concat(c,[function(y,T,E){y===2&&E.length&&E[0].lastIndexOf(n)>0&&(E[0]=E[0].replace(r,g))},m,function(y){if(y===-2){var T=f;return f=[],T}}])),b.hash=c.length?c.reduce(function(y,T){return T.name||Bp(15),A1(y,T.name)},5381).toString():"",b}var tL=st.createContext();tL.Consumer;var nL=st.createContext(),PY=(nL.Consumer,new JD),Kb=FY();function BY(){return C.useContext(tL)||PY}function UY(){return C.useContext(nL)||Kb}var rL=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Kb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Bp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Kb),this.name+t.hash},e}(),$Y=/([A-Z])/,zY=/([A-Z])/g,HY=/^ms-/,jY=function(e){return"-"+e.toLowerCase()};function OC(e){return $Y.test(e)?e.replace(zY,jY).replace(HY,"-ms-"):e}var DC=function(e){return e==null||e===!1||e===""};function ic(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,WY=/(^-|-$)/g;function C3(e){return e.replace(VY,"-").replace(WY,"")}var aL=function(e){return qb(eL(e)>>>0)};function A0(e){return typeof e=="string"&&!0}var Yb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},qY=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function KY(e,t,n){var r=e[n];Yb(t)&&Yb(r)?oL(r,t):e[n]=t}function oL(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),R=w&&w+"-"+(A0(v)?v:C3(IC(v)));return lL(v,is({},A,{attrs:m,componentId:R}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(v){this._foldedDefaultProps=r?oL({},e.defaultProps,v):v}}),Object.defineProperty(b,"toString",{value:function(){return"."+b.styledComponentId}}),i&&mY(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Xb=function(e){return function t(n,r,i){if(i===void 0&&(i=ul),!p9.isValidElementType(r))return Bp(1,String(r));var a=function(){return n(r,i,iL.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,is({},i,{},o))},a.attrs=function(o){return t(n,r,is({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(lL,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Xb[e]=Xb(e)});function Gm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r({x:e,y:e}),XY={left:"right",right:"left",bottom:"top",top:"bottom"},ZY={start:"end",end:"start"};function Zb(e,t,n){return j1(e,vp(t,n))}function Up(e,t){return typeof e=="function"?e(t):e}function vu(e){return e.split("-")[0]}function $p(e){return e.split("-")[1]}function cL(e){return e==="x"?"y":"x"}function v9(e){return e==="y"?"height":"width"}function Vm(e){return["top","bottom"].includes(vu(e))?"y":"x"}function _9(e){return cL(Vm(e))}function QY(e,t,n){n===void 0&&(n=!1);const r=$p(e),i=_9(e),a=v9(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Cg(o)),[o,Cg(o)]}function JY(e){const t=Cg(e);return[Qb(e),t,Qb(t)]}function Qb(e){return e.replace(/start|end/g,t=>ZY[t])}function eX(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function tX(e,t,n,r){const i=$p(e);let a=eX(vu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Qb)))),a}function Cg(e){return e.replace(/left|right|bottom|top/g,t=>XY[t])}function nX(e){return{top:0,right:0,bottom:0,left:0,...e}}function dL(e){return typeof e!="number"?nX(e):{top:e,right:e,bottom:e,left:e}}function kg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function FC(e,t,n){let{reference:r,floating:i}=e;const a=Vm(t),o=_9(t),s=v9(o),u=vu(t),c=a==="y",p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let g;switch(u){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-i.width,y:f};break;default:g={x:r.x,y:r.y}}switch($p(t)){case"start":g[o]-=m*(n&&c?-1:1);break;case"end":g[o]+=m*(n&&c?-1:1);break}return g}const rX=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:f}=FC(c,r,u),m=r,g={},b=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s}=t,{element:u,padding:c=0}=Up(e,t)||{};if(u==null)return{};const p=dL(c),f={x:n,y:r},m=_9(i),g=v9(m),b=await o.getDimensions(u),y=m==="y",T=y?"top":"left",E=y?"bottom":"right",v=y?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[m]-f[m]-a.floating[g],A=f[m]-a.reference[m],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=R?R[v]:0;(!k||!await(o.isElement==null?void 0:o.isElement(R)))&&(k=s.floating[v]||a.floating[g]);const N=w/2-A/2,B=k/2-b[g]/2-1,q=vp(p[T],B),P=vp(p[E],B),Q=q,$=k-b[g]-P,oe=k/2-b[g]/2+N,fe=Zb(Q,oe,$),De=$p(i)!=null&&oe!=fe&&a.reference[g]/2-(oeQ<=0)){var B,q;const Q=(((B=i.flip)==null?void 0:B.index)||0)+1,$=A[Q];if($)return{data:{index:Q,overflows:N},reset:{placement:$}};let oe=(q=N.filter(fe=>fe.overflows[0]<=0).sort((fe,ce)=>fe.overflows[1]-ce.overflows[1])[0])==null?void 0:q.placement;if(!oe)switch(m){case"bestFit":{var P;const fe=(P=N.map(ce=>[ce.placement,ce.overflows.filter(De=>De>0).reduce((De,H)=>De+H,0)]).sort((ce,De)=>ce[1]-De[1])[0])==null?void 0:P[0];fe&&(oe=fe);break}case"initialPlacement":oe=o;break}if(r!==oe)return{reset:{placement:oe}}}return{}}}};async function oX(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=vu(n),s=$p(n),u=Vm(n)==="y",c=["left","top"].includes(o)?-1:1,p=a&&u?-1:1,f=Up(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),u?{x:g*p,y:m*c}:{x:m*c,y:g*p}}const sX=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await oX(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},lX=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:T=>{let{x:E,y:v}=T;return{x:E,y:v}}},...u}=Up(e,t),c={x:n,y:r},p=await pL(t,u),f=Vm(vu(i)),m=cL(f);let g=c[m],b=c[f];if(a){const T=m==="y"?"top":"left",E=m==="y"?"bottom":"right",v=g+p[T],w=g-p[E];g=Zb(v,g,w)}if(o){const T=f==="y"?"top":"left",E=f==="y"?"bottom":"right",v=b+p[T],w=b-p[E];b=Zb(v,b,w)}const y=s.fn({...t,[m]:g,[f]:b});return{...y,data:{x:y.x-n,y:y.y-r}}}}};function bl(e){return fL(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wl(e){var t;return(t=(fL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fL(e){return e instanceof Node||e instanceof Pi(e).Node}function cs(e){return e instanceof Element||e instanceof Pi(e).Element}function Ao(e){return e instanceof HTMLElement||e instanceof Pi(e).HTMLElement}function PC(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function zp(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ea(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function uX(e){return["table","td","th"].includes(bl(e))}function T9(e){const t=S9(),n=Ea(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function cX(e){let t=ac(e);for(;Ao(t)&&!Wm(t);){if(T9(t))return t;t=ac(t)}return null}function S9(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wm(e){return["html","body","#document"].includes(bl(e))}function Ea(e){return Pi(e).getComputedStyle(e)}function qm(e){return cs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ac(e){if(bl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||PC(e)&&e.host||wl(e);return PC(t)?t.host:t}function hL(e){const t=ac(e);return Wm(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ao(t)&&zp(t)?t:hL(t)}function gL(e,t){var n;t===void 0&&(t=[]);const r=hL(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(r);return i?t.concat(a,a.visualViewport||[],zp(r)?r:[]):t.concat(r,gL(r))}function mL(e){const t=Ea(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ao(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ag(n)!==a||Ag(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function bL(e){return cs(e)?e:e.contextElement}function G1(e){const t=bL(e);if(!Ao(t))return ml(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=mL(t);let o=(a?Ag(n.width):n.width)/r,s=(a?Ag(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const dX=ml(0);function yL(e){const t=Pi(e);return!S9()||!t.visualViewport?dX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pX(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pi(e)?!1:t}function _p(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=bL(e);let o=ml(1);t&&(r?cs(r)&&(o=G1(r)):o=G1(e));const s=pX(a,n,r)?yL(a):ml(0);let u=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,p=i.width/o.x,f=i.height/o.y;if(a){const m=Pi(a),g=r&&cs(r)?Pi(r):r;let b=m.frameElement;for(;b&&r&&g!==m;){const y=G1(b),T=b.getBoundingClientRect(),E=Ea(b),v=T.left+(b.clientLeft+parseFloat(E.paddingLeft))*y.x,w=T.top+(b.clientTop+parseFloat(E.paddingTop))*y.y;u*=y.x,c*=y.y,p*=y.x,f*=y.y,u+=v,c+=w,b=Pi(b).frameElement}}return kg({width:p,height:f,x:u,y:c})}function fX(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Ao(n),a=wl(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s=ml(1);const u=ml(0);if((i||!i&&r!=="fixed")&&((bl(n)!=="body"||zp(a))&&(o=qm(n)),Ao(n))){const c=_p(n);s=G1(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+u.x,y:t.y*s.y-o.scrollTop*s.y+u.y}}function hX(e){return Array.from(e.getClientRects())}function EL(e){return _p(wl(e)).left+qm(e).scrollLeft}function gX(e){const t=wl(e),n=qm(e),r=e.ownerDocument.body,i=j1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=j1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+EL(e);const s=-n.scrollTop;return Ea(r).direction==="rtl"&&(o+=j1(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function mX(e,t){const n=Pi(e),r=wl(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const c=S9();(!c||c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}function bX(e,t){const n=_p(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ao(e)?G1(e):ml(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=i*a.x,c=r*a.y;return{width:o,height:s,x:u,y:c}}function BC(e,t,n){let r;if(t==="viewport")r=mX(e,n);else if(t==="document")r=gX(wl(e));else if(cs(t))r=bX(t,n);else{const i=yL(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return kg(r)}function vL(e,t){const n=ac(e);return n===t||!cs(n)||Wm(n)?!1:Ea(n).position==="fixed"||vL(n,t)}function yX(e,t){const n=t.get(e);if(n)return n;let r=gL(e).filter(s=>cs(s)&&bl(s)!=="body"),i=null;const a=Ea(e).position==="fixed";let o=a?ac(e):e;for(;cs(o)&&!Wm(o);){const s=Ea(o),u=T9(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||zp(o)&&!u&&vL(e,o))?r=r.filter(p=>p!==o):i=s,o=ac(o)}return t.set(e,r),r}function EX(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?yX(t,this._c):[].concat(n),r],s=o[0],u=o.reduce((c,p)=>{const f=BC(t,p,i);return c.top=j1(f.top,c.top),c.right=vp(f.right,c.right),c.bottom=vp(f.bottom,c.bottom),c.left=j1(f.left,c.left),c},BC(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function vX(e){return mL(e)}function _X(e,t,n){const r=Ao(t),i=wl(t),a=n==="fixed",o=_p(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=ml(0);if(r||!r&&!a)if((bl(t)!=="body"||zp(i))&&(s=qm(t)),r){const c=_p(t,!0,a,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else i&&(u.x=EL(i));return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function UC(e,t){return!Ao(e)||Ea(e).position==="fixed"?null:t?t(e):e.offsetParent}function _L(e,t){const n=Pi(e);if(!Ao(e))return n;let r=UC(e,t);for(;r&&uX(r)&&Ea(r).position==="static";)r=UC(r,t);return r&&(bl(r)==="html"||bl(r)==="body"&&Ea(r).position==="static"&&!T9(r))?n:r||cX(e)||n}const TX=async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||_L,a=this.getDimensions;return{reference:_X(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}};function SX(e){return Ea(e).direction==="rtl"}const wX={convertOffsetParentRelativeRectToViewportRelativeRect:fX,getDocumentElement:wl,getClippingRect:EX,getOffsetParent:_L,getElementRects:TX,getClientRects:hX,getDimensions:vX,getScale:G1,isElement:cs,isRTL:SX},$C=(e,t,n)=>{const r=new Map,i={platform:wX,...n},a={...i.platform,_c:r};return rX(e,t,{...i,platform:a})};/* +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i({x:e,y:e}),XY={left:"right",right:"left",bottom:"top",top:"bottom"},ZY={start:"end",end:"start"};function Zb(e,t,n){return j1(e,vp(t,n))}function Up(e,t){return typeof e=="function"?e(t):e}function vu(e){return e.split("-")[0]}function $p(e){return e.split("-")[1]}function cL(e){return e==="x"?"y":"x"}function v9(e){return e==="y"?"height":"width"}function Vm(e){return["top","bottom"].includes(vu(e))?"y":"x"}function _9(e){return cL(Vm(e))}function QY(e,t,n){n===void 0&&(n=!1);const r=$p(e),i=_9(e),a=v9(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Cg(o)),[o,Cg(o)]}function JY(e){const t=Cg(e);return[Qb(e),t,Qb(t)]}function Qb(e){return e.replace(/start|end/g,t=>ZY[t])}function eX(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function tX(e,t,n,r){const i=$p(e);let a=eX(vu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Qb)))),a}function Cg(e){return e.replace(/left|right|bottom|top/g,t=>XY[t])}function nX(e){return{top:0,right:0,bottom:0,left:0,...e}}function dL(e){return typeof e!="number"?nX(e):{top:e,right:e,bottom:e,left:e}}function kg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function FC(e,t,n){let{reference:r,floating:i}=e;const a=Vm(t),o=_9(t),s=v9(o),u=vu(t),c=a==="y",p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let g;switch(u){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-i.width,y:f};break;default:g={x:r.x,y:r.y}}switch($p(t)){case"start":g[o]-=m*(n&&c?-1:1);break;case"end":g[o]+=m*(n&&c?-1:1);break}return g}const rX=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:f}=FC(c,r,u),m=r,g={},b=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s}=t,{element:u,padding:c=0}=Up(e,t)||{};if(u==null)return{};const p=dL(c),f={x:n,y:r},m=_9(i),g=v9(m),b=await o.getDimensions(u),y=m==="y",T=y?"top":"left",E=y?"bottom":"right",v=y?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[m]-f[m]-a.floating[g],A=f[m]-a.reference[m],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=R?R[v]:0;(!k||!await(o.isElement==null?void 0:o.isElement(R)))&&(k=s.floating[v]||a.floating[g]);const N=w/2-A/2,B=k/2-b[g]/2-1,q=vp(p[T],B),P=vp(p[E],B),Q=q,$=k-b[g]-P,oe=k/2-b[g]/2+N,fe=Zb(Q,oe,$),De=$p(i)!=null&&oe!=fe&&a.reference[g]/2-(oeQ<=0)){var B,q;const Q=(((B=i.flip)==null?void 0:B.index)||0)+1,$=A[Q];if($)return{data:{index:Q,overflows:N},reset:{placement:$}};let oe=(q=N.filter(fe=>fe.overflows[0]<=0).sort((fe,ce)=>fe.overflows[1]-ce.overflows[1])[0])==null?void 0:q.placement;if(!oe)switch(m){case"bestFit":{var P;const fe=(P=N.map(ce=>[ce.placement,ce.overflows.filter(De=>De>0).reduce((De,H)=>De+H,0)]).sort((ce,De)=>ce[1]-De[1])[0])==null?void 0:P[0];fe&&(oe=fe);break}case"initialPlacement":oe=o;break}if(r!==oe)return{reset:{placement:oe}}}return{}}}};async function oX(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=vu(n),s=$p(n),u=Vm(n)==="y",c=["left","top"].includes(o)?-1:1,p=a&&u?-1:1,f=Up(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),u?{x:g*p,y:m*c}:{x:m*c,y:g*p}}const sX=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await oX(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},lX=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:T=>{let{x:E,y:v}=T;return{x:E,y:v}}},...u}=Up(e,t),c={x:n,y:r},p=await pL(t,u),f=Vm(vu(i)),m=cL(f);let g=c[m],b=c[f];if(a){const T=m==="y"?"top":"left",E=m==="y"?"bottom":"right",v=g+p[T],w=g-p[E];g=Zb(v,g,w)}if(o){const T=f==="y"?"top":"left",E=f==="y"?"bottom":"right",v=b+p[T],w=b-p[E];b=Zb(v,b,w)}const y=s.fn({...t,[m]:g,[f]:b});return{...y,data:{x:y.x-n,y:y.y-r}}}}};function bl(e){return fL(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wl(e){var t;return(t=(fL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fL(e){return e instanceof Node||e instanceof Pi(e).Node}function ds(e){return e instanceof Element||e instanceof Pi(e).Element}function Ao(e){return e instanceof HTMLElement||e instanceof Pi(e).HTMLElement}function PC(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function zp(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ea(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function uX(e){return["table","td","th"].includes(bl(e))}function T9(e){const t=S9(),n=Ea(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function cX(e){let t=ac(e);for(;Ao(t)&&!Wm(t);){if(T9(t))return t;t=ac(t)}return null}function S9(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wm(e){return["html","body","#document"].includes(bl(e))}function Ea(e){return Pi(e).getComputedStyle(e)}function qm(e){return ds(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ac(e){if(bl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||PC(e)&&e.host||wl(e);return PC(t)?t.host:t}function hL(e){const t=ac(e);return Wm(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ao(t)&&zp(t)?t:hL(t)}function gL(e,t){var n;t===void 0&&(t=[]);const r=hL(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(r);return i?t.concat(a,a.visualViewport||[],zp(r)?r:[]):t.concat(r,gL(r))}function mL(e){const t=Ea(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ao(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ag(n)!==a||Ag(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function bL(e){return ds(e)?e:e.contextElement}function G1(e){const t=bL(e);if(!Ao(t))return ml(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=mL(t);let o=(a?Ag(n.width):n.width)/r,s=(a?Ag(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const dX=ml(0);function yL(e){const t=Pi(e);return!S9()||!t.visualViewport?dX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pX(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pi(e)?!1:t}function _p(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=bL(e);let o=ml(1);t&&(r?ds(r)&&(o=G1(r)):o=G1(e));const s=pX(a,n,r)?yL(a):ml(0);let u=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,p=i.width/o.x,f=i.height/o.y;if(a){const m=Pi(a),g=r&&ds(r)?Pi(r):r;let b=m.frameElement;for(;b&&r&&g!==m;){const y=G1(b),T=b.getBoundingClientRect(),E=Ea(b),v=T.left+(b.clientLeft+parseFloat(E.paddingLeft))*y.x,w=T.top+(b.clientTop+parseFloat(E.paddingTop))*y.y;u*=y.x,c*=y.y,p*=y.x,f*=y.y,u+=v,c+=w,b=Pi(b).frameElement}}return kg({width:p,height:f,x:u,y:c})}function fX(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Ao(n),a=wl(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s=ml(1);const u=ml(0);if((i||!i&&r!=="fixed")&&((bl(n)!=="body"||zp(a))&&(o=qm(n)),Ao(n))){const c=_p(n);s=G1(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+u.x,y:t.y*s.y-o.scrollTop*s.y+u.y}}function hX(e){return Array.from(e.getClientRects())}function EL(e){return _p(wl(e)).left+qm(e).scrollLeft}function gX(e){const t=wl(e),n=qm(e),r=e.ownerDocument.body,i=j1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=j1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+EL(e);const s=-n.scrollTop;return Ea(r).direction==="rtl"&&(o+=j1(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function mX(e,t){const n=Pi(e),r=wl(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const c=S9();(!c||c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}function bX(e,t){const n=_p(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ao(e)?G1(e):ml(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=i*a.x,c=r*a.y;return{width:o,height:s,x:u,y:c}}function BC(e,t,n){let r;if(t==="viewport")r=mX(e,n);else if(t==="document")r=gX(wl(e));else if(ds(t))r=bX(t,n);else{const i=yL(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return kg(r)}function vL(e,t){const n=ac(e);return n===t||!ds(n)||Wm(n)?!1:Ea(n).position==="fixed"||vL(n,t)}function yX(e,t){const n=t.get(e);if(n)return n;let r=gL(e).filter(s=>ds(s)&&bl(s)!=="body"),i=null;const a=Ea(e).position==="fixed";let o=a?ac(e):e;for(;ds(o)&&!Wm(o);){const s=Ea(o),u=T9(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||zp(o)&&!u&&vL(e,o))?r=r.filter(p=>p!==o):i=s,o=ac(o)}return t.set(e,r),r}function EX(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?yX(t,this._c):[].concat(n),r],s=o[0],u=o.reduce((c,p)=>{const f=BC(t,p,i);return c.top=j1(f.top,c.top),c.right=vp(f.right,c.right),c.bottom=vp(f.bottom,c.bottom),c.left=j1(f.left,c.left),c},BC(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function vX(e){return mL(e)}function _X(e,t,n){const r=Ao(t),i=wl(t),a=n==="fixed",o=_p(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=ml(0);if(r||!r&&!a)if((bl(t)!=="body"||zp(i))&&(s=qm(t)),r){const c=_p(t,!0,a,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else i&&(u.x=EL(i));return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function UC(e,t){return!Ao(e)||Ea(e).position==="fixed"?null:t?t(e):e.offsetParent}function _L(e,t){const n=Pi(e);if(!Ao(e))return n;let r=UC(e,t);for(;r&&uX(r)&&Ea(r).position==="static";)r=UC(r,t);return r&&(bl(r)==="html"||bl(r)==="body"&&Ea(r).position==="static"&&!T9(r))?n:r||cX(e)||n}const TX=async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||_L,a=this.getDimensions;return{reference:_X(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}};function SX(e){return Ea(e).direction==="rtl"}const wX={convertOffsetParentRelativeRectToViewportRelativeRect:fX,getDocumentElement:wl,getClippingRect:EX,getOffsetParent:_L,getElementRects:TX,getClientRects:hX,getDimensions:vX,getScale:G1,isElement:ds,isRTL:SX},$C=(e,t,n)=>{const r=new Map,i={platform:wX,...n},a={...i.platform,_c:r};return rX(e,t,{...i,platform:a})};/* * React Tooltip * {@link https://github.com/ReactTooltip/react-tooltip} * @copyright ReactTooltip Team * @license MIT -*/const AX="react-tooltip-core-styles",CX="react-tooltip-base-styles",zC={core:!1,base:!1};function HC({css:e,id:t=CX,type:n="base",ref:r}){var i,a;if(!e||typeof document>"u"||zC[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=AX),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),zC[n]=!0}const jC=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},kX="DEFAULT_TOOLTIP_ID",xX={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},IX=C.createContext({getTooltipData:()=>xX});function TL(e=kX){return C.useContext(IX).getTooltipData(e)}const RX=typeof window<"u"?C.useLayoutEffect:C.useEffect,NX=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},GC=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(NX(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},VC=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[sX(Number(i)),aX(),lX({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(iX({element:n,padding:5})),$C(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,b;const y={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:E}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},v=(b={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&b!==void 0?b:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const R=`${s}`.match(/(\d+)px/);A=R!=null&&R[1]?Number(R[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:E!=null?`${E}px`:"",right:"",bottom:"",...w,[v]:`-${4+A}px`},place:f}})):$C(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var OX="core-styles-module_tooltip__3vRRp",DX="core-styles-module_fixed__pcSol",LX="core-styles-module_arrow__cvMwQ",MX="core-styles-module_noArrow__xock6",FX="core-styles-module_clickable__ZuTTB",PX="core-styles-module_show__Nt9eE",x3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const BX=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:b=0,float:y=!1,hidden:T=!1,noArrow:E=!1,clickable:v=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:R=!1,style:k,position:N,afterShow:B,afterHide:q,content:P,contentWrapperRef:Q,isOpen:$,setIsOpen:oe,activeAnchor:fe,setActiveAnchor:ce,border:De,opacity:H})=>{const W=C.useRef(null),se=C.useRef(null),D=C.useRef(null),pe=C.useRef(null),[le,L]=C.useState(o),[ie,Se]=C.useState({}),[X,ke]=C.useState({}),[te,Me]=C.useState(!1),[Re,Ze]=C.useState(!1),We=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:je}=TL(e),pt=C.useRef(!1),[U,re]=C.useState([]),de=C.useRef(!1),xe=c||u.includes("click");RX(()=>(de.current=!0,()=>{de.current=!1}),[]),C.useEffect(()=>{if(!te){const ge=setTimeout(()=>{Ze(!1)},150);return()=>{clearTimeout(ge)}}return()=>null},[te]);const ye=ge=>{de.current&&(ge&&Ze(!0),setTimeout(()=>{de.current&&(oe==null||oe(ge),$===void 0&&Me(ge))},10))};C.useEffect(()=>{if($===void 0)return()=>null;$&&Ze(!0);const ge=setTimeout(()=>{Me($)},10);return()=>{clearTimeout(ge)}},[$]),C.useEffect(()=>{te!==We.current&&(We.current=te,te?B==null||B():q==null||q())},[te]);const Te=(ge=b)=>{pe.current&&clearTimeout(pe.current),pe.current=setTimeout(()=>{pt.current||ye(!1)},ge)},Le=ge=>{var G;if(!ge)return;const K=(G=ge.currentTarget)!==null&&G!==void 0?G:ge.target;if(!(K!=null&&K.isConnected))return ce(null),void je({current:null});g?(D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{ye(!0)},g)):ye(!0),ce(K),je({current:K}),pe.current&&clearTimeout(pe.current)},ze=()=>{v?Te(b||100):b?Te():ye(!1),D.current&&clearTimeout(D.current)},Ye=({x:ge,y:G})=>{VC({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:ge,y:G,width:0,height:0,top:G,left:ge,right:ge,bottom:G})},tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(K=>{Object.keys(K.tooltipStyles).length&&Se(K.tooltipStyles),Object.keys(K.tooltipArrowStyles).length&&ke(K.tooltipArrowStyles),L(K.place)})},jt=ge=>{if(!ge)return;const G=ge,K={x:G.clientX,y:G.clientY};Ye(K),dt.current=K},ue=ge=>{Le(ge),b&&Te()},Ee=ge=>{var G;[document.querySelector(`[id='${i}']`),...U].some(K=>K==null?void 0:K.contains(ge.target))||!((G=W.current)===null||G===void 0)&&G.contains(ge.target)||(ye(!1),D.current&&clearTimeout(D.current))},qe=jC(Le,50,!0),j=jC(ze,50,!0);C.useEffect(()=>{var ge,G;const K=new Set(ot);U.forEach(Qt=>{K.add({current:Qt})});const ne=document.querySelector(`[id='${i}']`);ne&&K.add({current:ne});const ve=()=>{ye(!1)},Qe=GC(fe),Fe=GC(W.current);A&&(window.addEventListener("scroll",ve),Qe==null||Qe.addEventListener("scroll",ve),Fe==null||Fe.addEventListener("scroll",ve)),R&&window.addEventListener("resize",ve);const at=Qt=>{Qt.key==="Escape"&&ye(!1)};w&&window.addEventListener("keydown",at);const rt=[];xe?(window.addEventListener("click",Ee),rt.push({event:"click",listener:ue})):(rt.push({event:"mouseenter",listener:qe},{event:"mouseleave",listener:j},{event:"focus",listener:qe},{event:"blur",listener:j}),y&&rt.push({event:"mousemove",listener:jt}));const Je=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return v&&!xe&&((ge=W.current)===null||ge===void 0||ge.addEventListener("mouseenter",Je),(G=W.current)===null||G===void 0||G.addEventListener("mouseleave",Rt)),rt.forEach(({event:Qt,listener:kt})=>{K.forEach(rn=>{var Xt;(Xt=rn.current)===null||Xt===void 0||Xt.addEventListener(Qt,kt)})}),()=>{var Qt,kt;A&&(window.removeEventListener("scroll",ve),Qe==null||Qe.removeEventListener("scroll",ve),Fe==null||Fe.removeEventListener("scroll",ve)),R&&window.removeEventListener("resize",ve),xe&&window.removeEventListener("click",Ee),w&&window.removeEventListener("keydown",at),v&&!xe&&((Qt=W.current)===null||Qt===void 0||Qt.removeEventListener("mouseenter",Je),(kt=W.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),rt.forEach(({event:rn,listener:Xt})=>{K.forEach(Wr=>{var qr;(qr=Wr.current)===null||qr===void 0||qr.removeEventListener(rn,Xt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let ge=a??"";!ge&&e&&(ge=`[data-tooltip-id='${e}']`);const G=new MutationObserver(K=>{const ne=[];K.forEach(ve=>{if(ve.type==="attributes"&&ve.attributeName==="data-tooltip-id"&&ve.target.getAttribute("data-tooltip-id")===e&&ne.push(ve.target),ve.type==="childList"&&(fe&&[...ve.removedNodes].some(Qe=>{var Fe;return!!(!((Fe=Qe==null?void 0:Qe.contains)===null||Fe===void 0)&&Fe.call(Qe,fe))&&(Ze(!1),ye(!1),ce(null),D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current),!0)}),ge))try{const Qe=[...ve.addedNodes].filter(Fe=>Fe.nodeType===1);ne.push(...Qe.filter(Fe=>Fe.matches(ge))),ne.push(...Qe.flatMap(Fe=>[...Fe.querySelectorAll(ge)]))}catch{}}),ne.length&&re(ve=>[...ve,...ne])});return G.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{G.disconnect()}},[e,a,fe]);const me=()=>{N?Ye(N):y?dt.current&&Ye(dt.current):VC({place:o,offset:s,elementReference:fe,tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(ge=>{de.current&&(Object.keys(ge.tooltipStyles).length&&Se(ge.tooltipStyles),Object.keys(ge.tooltipArrowStyles).length&&ke(ge.tooltipArrowStyles),L(ge.place))})};C.useEffect(()=>{me()},[te,fe,P,k,o,s,p,N]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const ge=new ResizeObserver(()=>{me()});return ge.observe(Q.current),()=>{ge.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var ge;const G=document.querySelector(`[id='${i}']`),K=[...U,G];fe&&K.includes(fe)||ce((ge=U[0])!==null&&ge!==void 0?ge:G)},[i,U,fe]),C.useEffect(()=>()=>{D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current)},[]),C.useEffect(()=>{let ge=a;if(!ge&&e&&(ge=`[data-tooltip-id='${e}']`),ge)try{const G=Array.from(document.querySelectorAll(ge));re(G)}catch{re([])}},[e,a]);const Ve=!T&&P&&te&&Object.keys(ie).length>0;return Re?ut.createElement(m,{id:e,role:"tooltip",className:MC("react-tooltip",OX,x3.tooltip,x3[r],t,`react-tooltip__place-${le}`,{[PX]:Ve,[DX]:p==="fixed",[FX]:v}),style:{...k,...ie,opacity:H!==void 0&&Ve?H:void 0},ref:W},P,ut.createElement(m,{className:MC("react-tooltip-arrow",LX,x3.arrow,n,{[MX]:E}),style:X,ref:se})):null},UX=({content:e})=>ut.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),$X=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:b=!1,positionStrategy:y="absolute",middlewares:T,delayShow:E=0,delayHide:v=0,float:w=!1,hidden:A=!1,noArrow:R=!1,clickable:k=!1,closeOnEsc:N=!1,closeOnScroll:B=!1,closeOnResize:q=!1,style:P,position:Q,isOpen:$,disableStyleInjection:oe=!1,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W})=>{const[se,D]=C.useState(r),[pe,le]=C.useState(i),[L,ie]=C.useState(c),[Se,X]=C.useState(u),[ke,te]=C.useState(p),[Me,Re]=C.useState(E),[Ze,We]=C.useState(v),[dt,ot]=C.useState(w),[je,pt]=C.useState(A),[U,re]=C.useState(f),[de,xe]=C.useState(g),[ye,Te]=C.useState(y),[Le,ze]=C.useState(null),Ye=C.useRef(oe),{anchorRefs:jt,activeAnchor:ue}=TL(e),Ee=ge=>ge==null?void 0:ge.getAttributeNames().reduce((G,K)=>{var ne;return K.startsWith("data-tooltip-")&&(G[K.replace(/^data-tooltip-/,"")]=(ne=ge==null?void 0:ge.getAttribute(K))!==null&&ne!==void 0?ne:null),G},{}),qe=ge=>{const G={place:K=>{var ne;ie((ne=K)!==null&&ne!==void 0?ne:c)},content:K=>{D(K??r)},html:K=>{le(K??i)},variant:K=>{var ne;X((ne=K)!==null&&ne!==void 0?ne:u)},offset:K=>{te(K===null?p:Number(K))},wrapper:K=>{var ne;re((ne=K)!==null&&ne!==void 0?ne:f)},events:K=>{const ne=K==null?void 0:K.split(" ");xe(ne??g)},"position-strategy":K=>{var ne;Te((ne=K)!==null&&ne!==void 0?ne:y)},"delay-show":K=>{Re(K===null?E:Number(K))},"delay-hide":K=>{We(K===null?v:Number(K))},float:K=>{ot(K===null?w:K==="true")},hidden:K=>{pt(K===null?A:K==="true")}};Object.values(G).forEach(K=>K(null)),Object.entries(ge).forEach(([K,ne])=>{var ve;(ve=G[K])===null||ve===void 0||ve.call(G,ne)})};C.useEffect(()=>{D(r)},[r]),C.useEffect(()=>{le(i)},[i]),C.useEffect(()=>{ie(c)},[c]),C.useEffect(()=>{X(u)},[u]),C.useEffect(()=>{te(p)},[p]),C.useEffect(()=>{Re(E)},[E]),C.useEffect(()=>{We(v)},[v]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Te(y)},[y]),C.useEffect(()=>{Ye.current!==oe&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[oe]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:oe==="core",disableBase:oe}}))},[]),C.useEffect(()=>{var ge;const G=new Set(jt);let K=n;if(!K&&e&&(K=`[data-tooltip-id='${e}']`),K)try{document.querySelectorAll(K).forEach(at=>{G.add({current:at})})}catch{console.warn(`[react-tooltip] "${K}" is not a valid CSS selector`)}const ne=document.querySelector(`[id='${t}']`);if(ne&&G.add({current:ne}),!G.size)return()=>null;const ve=(ge=Le??ne)!==null&&ge!==void 0?ge:ue.current,Qe=new MutationObserver(at=>{at.forEach(rt=>{var Je;if(!ve||rt.type!=="attributes"||!(!((Je=rt.attributeName)===null||Je===void 0)&&Je.startsWith("data-tooltip-")))return;const Rt=Ee(ve);qe(Rt)})}),Fe={attributes:!0,childList:!1,subtree:!1};if(ve){const at=Ee(ve);qe(at),Qe.observe(ve,Fe)}return()=>{Qe.disconnect()}},[jt,ue,Le,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),fe&&!CSS.supports("border",`${fe}`)&&console.warn(`[react-tooltip] "${fe}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),ce&&!CSS.supports("opacity",`${ce}`)&&console.warn(`[react-tooltip] "${ce}" is not a valid \`opacity\`.`)},[]);let j=m;const me=C.useRef(null);if(a){const ge=a({content:se??null,activeAnchor:Le});j=ge?ut.createElement("div",{ref:me,className:"react-tooltip-content-wrapper"},ge):null}else se&&(j=se);pe&&(j=ut.createElement(UX,{content:pe}));const Ve={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:j,contentWrapperRef:me,place:L,variant:Se,offset:ke,wrapper:U,events:de,openOnClick:b,positionStrategy:ye,middlewares:T,delayShow:Me,delayHide:Ze,float:dt,hidden:je,noArrow:R,clickable:k,closeOnEsc:N,closeOnScroll:B,closeOnResize:q,style:P,position:Q,isOpen:$,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W,activeAnchor:Le,setActiveAnchor:ge=>ze(ge)};return ut.createElement(BX,{...Ve})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||HC({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||HC({css:` +*/const AX="react-tooltip-core-styles",CX="react-tooltip-base-styles",zC={core:!1,base:!1};function HC({css:e,id:t=CX,type:n="base",ref:r}){var i,a;if(!e||typeof document>"u"||zC[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=AX),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),zC[n]=!0}const jC=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},kX="DEFAULT_TOOLTIP_ID",xX={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},IX=C.createContext({getTooltipData:()=>xX});function TL(e=kX){return C.useContext(IX).getTooltipData(e)}const RX=typeof window<"u"?C.useLayoutEffect:C.useEffect,NX=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},GC=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(NX(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},VC=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[sX(Number(i)),aX(),lX({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(iX({element:n,padding:5})),$C(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,b;const y={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:E}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},v=(b={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&b!==void 0?b:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const R=`${s}`.match(/(\d+)px/);A=R!=null&&R[1]?Number(R[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:E!=null?`${E}px`:"",right:"",bottom:"",...w,[v]:`-${4+A}px`},place:f}})):$C(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var OX="core-styles-module_tooltip__3vRRp",DX="core-styles-module_fixed__pcSol",LX="core-styles-module_arrow__cvMwQ",MX="core-styles-module_noArrow__xock6",FX="core-styles-module_clickable__ZuTTB",PX="core-styles-module_show__Nt9eE",x3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const BX=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:b=0,float:y=!1,hidden:T=!1,noArrow:E=!1,clickable:v=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:R=!1,style:k,position:N,afterShow:B,afterHide:q,content:P,contentWrapperRef:Q,isOpen:$,setIsOpen:oe,activeAnchor:fe,setActiveAnchor:ce,border:De,opacity:H})=>{const W=C.useRef(null),se=C.useRef(null),D=C.useRef(null),pe=C.useRef(null),[le,L]=C.useState(o),[ie,Se]=C.useState({}),[X,ke]=C.useState({}),[te,Me]=C.useState(!1),[Re,Ze]=C.useState(!1),We=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:je}=TL(e),pt=C.useRef(!1),[U,re]=C.useState([]),de=C.useRef(!1),xe=c||u.includes("click");RX(()=>(de.current=!0,()=>{de.current=!1}),[]),C.useEffect(()=>{if(!te){const ge=setTimeout(()=>{Ze(!1)},150);return()=>{clearTimeout(ge)}}return()=>null},[te]);const ye=ge=>{de.current&&(ge&&Ze(!0),setTimeout(()=>{de.current&&(oe==null||oe(ge),$===void 0&&Me(ge))},10))};C.useEffect(()=>{if($===void 0)return()=>null;$&&Ze(!0);const ge=setTimeout(()=>{Me($)},10);return()=>{clearTimeout(ge)}},[$]),C.useEffect(()=>{te!==We.current&&(We.current=te,te?B==null||B():q==null||q())},[te]);const Te=(ge=b)=>{pe.current&&clearTimeout(pe.current),pe.current=setTimeout(()=>{pt.current||ye(!1)},ge)},Le=ge=>{var G;if(!ge)return;const K=(G=ge.currentTarget)!==null&&G!==void 0?G:ge.target;if(!(K!=null&&K.isConnected))return ce(null),void je({current:null});g?(D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{ye(!0)},g)):ye(!0),ce(K),je({current:K}),pe.current&&clearTimeout(pe.current)},ze=()=>{v?Te(b||100):b?Te():ye(!1),D.current&&clearTimeout(D.current)},Ye=({x:ge,y:G})=>{VC({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:ge,y:G,width:0,height:0,top:G,left:ge,right:ge,bottom:G})},tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(K=>{Object.keys(K.tooltipStyles).length&&Se(K.tooltipStyles),Object.keys(K.tooltipArrowStyles).length&&ke(K.tooltipArrowStyles),L(K.place)})},jt=ge=>{if(!ge)return;const G=ge,K={x:G.clientX,y:G.clientY};Ye(K),dt.current=K},ue=ge=>{Le(ge),b&&Te()},Ee=ge=>{var G;[document.querySelector(`[id='${i}']`),...U].some(K=>K==null?void 0:K.contains(ge.target))||!((G=W.current)===null||G===void 0)&&G.contains(ge.target)||(ye(!1),D.current&&clearTimeout(D.current))},qe=jC(Le,50,!0),j=jC(ze,50,!0);C.useEffect(()=>{var ge,G;const K=new Set(ot);U.forEach(Qt=>{K.add({current:Qt})});const ne=document.querySelector(`[id='${i}']`);ne&&K.add({current:ne});const ve=()=>{ye(!1)},Qe=GC(fe),Fe=GC(W.current);A&&(window.addEventListener("scroll",ve),Qe==null||Qe.addEventListener("scroll",ve),Fe==null||Fe.addEventListener("scroll",ve)),R&&window.addEventListener("resize",ve);const at=Qt=>{Qt.key==="Escape"&&ye(!1)};w&&window.addEventListener("keydown",at);const rt=[];xe?(window.addEventListener("click",Ee),rt.push({event:"click",listener:ue})):(rt.push({event:"mouseenter",listener:qe},{event:"mouseleave",listener:j},{event:"focus",listener:qe},{event:"blur",listener:j}),y&&rt.push({event:"mousemove",listener:jt}));const Je=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return v&&!xe&&((ge=W.current)===null||ge===void 0||ge.addEventListener("mouseenter",Je),(G=W.current)===null||G===void 0||G.addEventListener("mouseleave",Rt)),rt.forEach(({event:Qt,listener:kt})=>{K.forEach(rn=>{var Xt;(Xt=rn.current)===null||Xt===void 0||Xt.addEventListener(Qt,kt)})}),()=>{var Qt,kt;A&&(window.removeEventListener("scroll",ve),Qe==null||Qe.removeEventListener("scroll",ve),Fe==null||Fe.removeEventListener("scroll",ve)),R&&window.removeEventListener("resize",ve),xe&&window.removeEventListener("click",Ee),w&&window.removeEventListener("keydown",at),v&&!xe&&((Qt=W.current)===null||Qt===void 0||Qt.removeEventListener("mouseenter",Je),(kt=W.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),rt.forEach(({event:rn,listener:Xt})=>{K.forEach(Wr=>{var qr;(qr=Wr.current)===null||qr===void 0||qr.removeEventListener(rn,Xt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let ge=a??"";!ge&&e&&(ge=`[data-tooltip-id='${e}']`);const G=new MutationObserver(K=>{const ne=[];K.forEach(ve=>{if(ve.type==="attributes"&&ve.attributeName==="data-tooltip-id"&&ve.target.getAttribute("data-tooltip-id")===e&&ne.push(ve.target),ve.type==="childList"&&(fe&&[...ve.removedNodes].some(Qe=>{var Fe;return!!(!((Fe=Qe==null?void 0:Qe.contains)===null||Fe===void 0)&&Fe.call(Qe,fe))&&(Ze(!1),ye(!1),ce(null),D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current),!0)}),ge))try{const Qe=[...ve.addedNodes].filter(Fe=>Fe.nodeType===1);ne.push(...Qe.filter(Fe=>Fe.matches(ge))),ne.push(...Qe.flatMap(Fe=>[...Fe.querySelectorAll(ge)]))}catch{}}),ne.length&&re(ve=>[...ve,...ne])});return G.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{G.disconnect()}},[e,a,fe]);const me=()=>{N?Ye(N):y?dt.current&&Ye(dt.current):VC({place:o,offset:s,elementReference:fe,tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(ge=>{de.current&&(Object.keys(ge.tooltipStyles).length&&Se(ge.tooltipStyles),Object.keys(ge.tooltipArrowStyles).length&&ke(ge.tooltipArrowStyles),L(ge.place))})};C.useEffect(()=>{me()},[te,fe,P,k,o,s,p,N]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const ge=new ResizeObserver(()=>{me()});return ge.observe(Q.current),()=>{ge.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var ge;const G=document.querySelector(`[id='${i}']`),K=[...U,G];fe&&K.includes(fe)||ce((ge=U[0])!==null&&ge!==void 0?ge:G)},[i,U,fe]),C.useEffect(()=>()=>{D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current)},[]),C.useEffect(()=>{let ge=a;if(!ge&&e&&(ge=`[data-tooltip-id='${e}']`),ge)try{const G=Array.from(document.querySelectorAll(ge));re(G)}catch{re([])}},[e,a]);const Ve=!T&&P&&te&&Object.keys(ie).length>0;return Re?st.createElement(m,{id:e,role:"tooltip",className:MC("react-tooltip",OX,x3.tooltip,x3[r],t,`react-tooltip__place-${le}`,{[PX]:Ve,[DX]:p==="fixed",[FX]:v}),style:{...k,...ie,opacity:H!==void 0&&Ve?H:void 0},ref:W},P,st.createElement(m,{className:MC("react-tooltip-arrow",LX,x3.arrow,n,{[MX]:E}),style:X,ref:se})):null},UX=({content:e})=>st.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),$X=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:b=!1,positionStrategy:y="absolute",middlewares:T,delayShow:E=0,delayHide:v=0,float:w=!1,hidden:A=!1,noArrow:R=!1,clickable:k=!1,closeOnEsc:N=!1,closeOnScroll:B=!1,closeOnResize:q=!1,style:P,position:Q,isOpen:$,disableStyleInjection:oe=!1,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W})=>{const[se,D]=C.useState(r),[pe,le]=C.useState(i),[L,ie]=C.useState(c),[Se,X]=C.useState(u),[ke,te]=C.useState(p),[Me,Re]=C.useState(E),[Ze,We]=C.useState(v),[dt,ot]=C.useState(w),[je,pt]=C.useState(A),[U,re]=C.useState(f),[de,xe]=C.useState(g),[ye,Te]=C.useState(y),[Le,ze]=C.useState(null),Ye=C.useRef(oe),{anchorRefs:jt,activeAnchor:ue}=TL(e),Ee=ge=>ge==null?void 0:ge.getAttributeNames().reduce((G,K)=>{var ne;return K.startsWith("data-tooltip-")&&(G[K.replace(/^data-tooltip-/,"")]=(ne=ge==null?void 0:ge.getAttribute(K))!==null&&ne!==void 0?ne:null),G},{}),qe=ge=>{const G={place:K=>{var ne;ie((ne=K)!==null&&ne!==void 0?ne:c)},content:K=>{D(K??r)},html:K=>{le(K??i)},variant:K=>{var ne;X((ne=K)!==null&&ne!==void 0?ne:u)},offset:K=>{te(K===null?p:Number(K))},wrapper:K=>{var ne;re((ne=K)!==null&&ne!==void 0?ne:f)},events:K=>{const ne=K==null?void 0:K.split(" ");xe(ne??g)},"position-strategy":K=>{var ne;Te((ne=K)!==null&&ne!==void 0?ne:y)},"delay-show":K=>{Re(K===null?E:Number(K))},"delay-hide":K=>{We(K===null?v:Number(K))},float:K=>{ot(K===null?w:K==="true")},hidden:K=>{pt(K===null?A:K==="true")}};Object.values(G).forEach(K=>K(null)),Object.entries(ge).forEach(([K,ne])=>{var ve;(ve=G[K])===null||ve===void 0||ve.call(G,ne)})};C.useEffect(()=>{D(r)},[r]),C.useEffect(()=>{le(i)},[i]),C.useEffect(()=>{ie(c)},[c]),C.useEffect(()=>{X(u)},[u]),C.useEffect(()=>{te(p)},[p]),C.useEffect(()=>{Re(E)},[E]),C.useEffect(()=>{We(v)},[v]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Te(y)},[y]),C.useEffect(()=>{Ye.current!==oe&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[oe]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:oe==="core",disableBase:oe}}))},[]),C.useEffect(()=>{var ge;const G=new Set(jt);let K=n;if(!K&&e&&(K=`[data-tooltip-id='${e}']`),K)try{document.querySelectorAll(K).forEach(at=>{G.add({current:at})})}catch{console.warn(`[react-tooltip] "${K}" is not a valid CSS selector`)}const ne=document.querySelector(`[id='${t}']`);if(ne&&G.add({current:ne}),!G.size)return()=>null;const ve=(ge=Le??ne)!==null&&ge!==void 0?ge:ue.current,Qe=new MutationObserver(at=>{at.forEach(rt=>{var Je;if(!ve||rt.type!=="attributes"||!(!((Je=rt.attributeName)===null||Je===void 0)&&Je.startsWith("data-tooltip-")))return;const Rt=Ee(ve);qe(Rt)})}),Fe={attributes:!0,childList:!1,subtree:!1};if(ve){const at=Ee(ve);qe(at),Qe.observe(ve,Fe)}return()=>{Qe.disconnect()}},[jt,ue,Le,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),fe&&!CSS.supports("border",`${fe}`)&&console.warn(`[react-tooltip] "${fe}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),ce&&!CSS.supports("opacity",`${ce}`)&&console.warn(`[react-tooltip] "${ce}" is not a valid \`opacity\`.`)},[]);let j=m;const me=C.useRef(null);if(a){const ge=a({content:se??null,activeAnchor:Le});j=ge?st.createElement("div",{ref:me,className:"react-tooltip-content-wrapper"},ge):null}else se&&(j=se);pe&&(j=st.createElement(UX,{content:pe}));const Ve={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:j,contentWrapperRef:me,place:L,variant:Se,offset:ke,wrapper:U,events:de,openOnClick:b,positionStrategy:ye,middlewares:T,delayShow:Me,delayHide:Ze,float:dt,hidden:je,noArrow:R,clickable:k,closeOnEsc:N,closeOnScroll:B,closeOnResize:q,style:P,position:Q,isOpen:$,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W,activeAnchor:Le,setActiveAnchor:ge=>ze(ge)};return st.createElement(BX,{...Ve})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||HC({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||HC({css:` .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px;transform:rotate(45deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function Km(){const e=window.navigator.platform.toUpperCase();return e.indexOf("MAC")>=0?"mac":e.indexOf("LINUX")>=0?"linux":e.indexOf("WIN")>=0?"windows":"unknown"}function xg(e){switch(Km()){case"mac":return e.metaKey;case"linux":case"windows":return e.ctrlKey;default:return e.metaKey}}function zX(){switch(Km()){case"mac":return"⌘";case"linux":case"windows":return"^";default:return"⌘"}}function pr(){const e=localStorage.getItem("fontSize");return e?parseInt(e):14}function WC(e){switch(e.split(".").pop()){case"py":return"python";case"js":return"javascript";case"ts":return"typescript";case"java":return"java";case"go":return"go";case"rb":return"ruby";case"rs":return"rust";case"c":return"c";case"cpp":return"cpp";case"cs":return"csharp";case"php":return"php";case"scala":return"scala";case"swift":return"swift";case"kt":return"kotlin";case"md":return"markdown";case"json":return"json";case"html":return"html";case"css":return"css";case"sh":return"shell";case"yaml":return"yaml";case"toml":return"toml";case"tex":return"latex";case"sql":return"sql";default:return""}}const It="5px",Et="#646464",ha="#1bbe84",Vt="var(--vscode-list-hoverBackground, rgb(45 45 45))",Ht="var(--vscode-editor-background, rgb(30 30 30))",Yt="var(--vscode-editor-foreground, #fff)";if(typeof document<"u"){const e=localStorage.getItem("--vscode-editor-foreground"),t=localStorage.getItem("--vscode-editor-background"),n=localStorage.getItem("--vscode-list-hoverBackground");e&&document.body.style.setProperty("--vscode-editor-foreground",e),t&&document.body.style.setProperty("--vscode-editor-background",t),n&&document.body.style.setProperty("--vscode-list-hoverBackground",n)}const oc=Ge.button` padding: 10px 12px; margin: 8px 0; @@ -235,7 +235,7 @@ Error generating stack: `+a.message+` justify-content: center; gap: 4px; padding: 2px; -`,VX=C.createContext(null),I3={didCatch:!1,error:null};class WX extends C.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=I3}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,i=arguments.length,a=new Array(i),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function KX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))}const YX=C.forwardRef(KX),mc=YX;function XX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"}))}const ZX=C.forwardRef(XX),QX=ZX;function JX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"}))}const eZ=C.forwardRef(JX),tZ=eZ;function nZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 19.5l-15-15m0 0v11.25m0-11.25h11.25"}))}const rZ=C.forwardRef(nZ),iZ=rZ;function aZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))}const oZ=C.forwardRef(aZ),sZ=oZ;function lZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"}))}const uZ=C.forwardRef(lZ),SL=uZ;function cZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}const dZ=C.forwardRef(cZ),pZ=dZ;function fZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}const hZ=C.forwardRef(fZ),gZ=hZ;function mZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))}const bZ=C.forwardRef(mZ),yZ=bZ;function EZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"}))}const vZ=C.forwardRef(EZ),_Z=vZ;function TZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75L16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0020.25 18V6A2.25 2.25 0 0018 3.75H6A2.25 2.25 0 003.75 6v12A2.25 2.25 0 006 20.25z"}))}const SZ=C.forwardRef(TZ),wZ=SZ;function AZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const CZ=C.forwardRef(AZ),kZ=CZ;function xZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}const IZ=C.forwardRef(xZ),wL=IZ;function RZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"}))}const NZ=C.forwardRef(RZ),OZ=NZ;function DZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const LZ=C.forwardRef(DZ),MZ=LZ;function FZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}const PZ=C.forwardRef(FZ),BZ=PZ;function UZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42"}))}const $Z=C.forwardRef(UZ),zZ=$Z;function HZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"}))}const jZ=C.forwardRef(HZ),AL=jZ;function GZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const VZ=C.forwardRef(GZ),CL=VZ;function WZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"}))}const qZ=C.forwardRef(WZ),KZ=qZ;function YZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"}))}const XZ=C.forwardRef(YZ),ZZ=XZ;function QZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"}))}const JZ=C.forwardRef(QZ),eQ=JZ;function tQ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}const nQ=C.forwardRef(tQ),kL=nQ;function rQ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const iQ=C.forwardRef(rQ),w9=iQ,zi=ut.forwardRef((e,t)=>{const[n,r]=C.useState(!1),i=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(GX,{"data-tooltip-id":`header_button_${e.text}`,inverted:e.inverted,disabled:e.disabled,onMouseEnter:()=>{e.disabled||r(!0)},onMouseLeave:()=>{r(!1)},onClick:e.onClick,onKeyDown:e.onKeyDown,className:e.className,ref:t,tabIndex:e.tabIndex,children:e.children}),i&&u9.createPortal(I.jsx(au,{id:`header_button_${e.text}`,place:"bottom",children:e.text}),i)]})});function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}const KC=["http","https","mailto","tel"];function aQ(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! +`,VX=C.createContext(null),I3={didCatch:!1,error:null};class WX extends C.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=I3}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,i=arguments.length,a=new Array(i),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function KX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))}const YX=C.forwardRef(KX),mc=YX;function XX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"}))}const ZX=C.forwardRef(XX),QX=ZX;function JX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"}))}const eZ=C.forwardRef(JX),tZ=eZ;function nZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 19.5l-15-15m0 0v11.25m0-11.25h11.25"}))}const rZ=C.forwardRef(nZ),iZ=rZ;function aZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))}const oZ=C.forwardRef(aZ),sZ=oZ;function lZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"}))}const uZ=C.forwardRef(lZ),SL=uZ;function cZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}const dZ=C.forwardRef(cZ),pZ=dZ;function fZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}const hZ=C.forwardRef(fZ),gZ=hZ;function mZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))}const bZ=C.forwardRef(mZ),yZ=bZ;function EZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"}))}const vZ=C.forwardRef(EZ),_Z=vZ;function TZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75L16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0020.25 18V6A2.25 2.25 0 0018 3.75H6A2.25 2.25 0 003.75 6v12A2.25 2.25 0 006 20.25z"}))}const SZ=C.forwardRef(TZ),wZ=SZ;function AZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const CZ=C.forwardRef(AZ),kZ=CZ;function xZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}const IZ=C.forwardRef(xZ),wL=IZ;function RZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"}))}const NZ=C.forwardRef(RZ),OZ=NZ;function DZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const LZ=C.forwardRef(DZ),MZ=LZ;function FZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}const PZ=C.forwardRef(FZ),BZ=PZ;function UZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42"}))}const $Z=C.forwardRef(UZ),zZ=$Z;function HZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"}))}const jZ=C.forwardRef(HZ),AL=jZ;function GZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const VZ=C.forwardRef(GZ),CL=VZ;function WZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"}))}const qZ=C.forwardRef(WZ),KZ=qZ;function YZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"}))}const XZ=C.forwardRef(YZ),ZZ=XZ;function QZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"}))}const JZ=C.forwardRef(QZ),eQ=JZ;function tQ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}const nQ=C.forwardRef(tQ),kL=nQ;function rQ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const iQ=C.forwardRef(rQ),w9=iQ,zi=st.forwardRef((e,t)=>{const[n,r]=C.useState(!1),i=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(GX,{"data-tooltip-id":`header_button_${e.text}`,inverted:e.inverted,disabled:e.disabled,onMouseEnter:()=>{e.disabled||r(!0)},onMouseLeave:()=>{r(!1)},onClick:e.onClick,onKeyDown:e.onKeyDown,className:e.className,ref:t,tabIndex:e.tabIndex,children:e.children}),i&&u9.createPortal(I.jsx(au,{id:`header_button_${e.text}`,place:"bottom",children:e.text}),i)]})});function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}const KC=["http","https","mailto","tel"];function aQ(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh @@ -253,7 +253,7 @@ Error generating stack: `+a.message+` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:` `}]}}function eM(e,t){const n=lte(e,t),r=n.one(e,null),i=fte(n);return i&&r.children.push({type:"text",value:` `},i),Array.isArray(r)?{type:"root",children:r}:r}const hte=function(e,t){return e&&"run"in e?mte(e,t):bte(e||t)},gte=hte;function mte(e,t){return(n,r,i)=>{e.run(eM(n,t),r,a=>{i(a)})}}function bte(e){return t=>eM(t,e)}var tM={exports:{}},yte="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ete=yte,vte=Ete;function nM(){}function rM(){}rM.resetWarningCache=nM;var _te=function(){function e(r,i,a,o,s,u){if(u!==vte){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rM,resetWarningCache:nM};return n.PropTypes=n,n};tM.exports=_te();var Tte=tM.exports;const be=Vi(Tte);class Vp{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Vp.prototype.property={};Vp.prototype.normal={};Vp.prototype.space=null;function iM(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&kte.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ak,Rte);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ak.test(a)){let o=a.replace(xte,Ite);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=k9}return new i(r,t)}function Ite(e){return"-"+e.toLowerCase()}function Rte(e){return e.charAt(1).toUpperCase()}const Ck={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"},Iu=iM([sM,oM,cM,dM,Ate],"html"),Cl=iM([sM,oM,cM,dM,Cte],"svg");function Nte(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Hi(t,"element",(n,r,i)=>{const a=i;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(n,r,a)),o&&typeof r=="number")return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}function pM(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function Dg(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function x9(e){return e.join(" ").trim()}function Sp(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function I9(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var R9={exports:{}},kk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ote=/\n/g,Dte=/^\s*/,Lte=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Mte=/^:\s*/,Fte=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Pte=/^[;\s]*/,Bte=/^\s+|\s+$/g,Ute=` -`,xk="/",Ik="*",eu="",$te="comment",zte="declaration",Hte=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(b){var y=b.match(Ote);y&&(n+=y.length);var T=b.lastIndexOf(Ute);r=~T?b.length-T:r+b.length}function a(){var b={line:n,column:r};return function(y){return y.position=new o(b),c(),y}}function o(b){this.start=b,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(b){var y=new Error(t.source+":"+n+":"+r+": "+b);if(y.reason=b,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function u(b){var y=b.exec(e);if(y){var T=y[0];return i(T),e=e.slice(T.length),y}}function c(){u(Dte)}function p(b){var y;for(b=b||[];y=f();)y!==!1&&b.push(y);return b}function f(){var b=a();if(!(xk!=e.charAt(0)||Ik!=e.charAt(1))){for(var y=2;eu!=e.charAt(y)&&(Ik!=e.charAt(y)||xk!=e.charAt(y+1));)++y;if(y+=2,eu===e.charAt(y-1))return s("End of comment missing");var T=e.slice(2,y-2);return r+=2,i(T),e=e.slice(y),r+=2,b({type:$te,comment:T})}}function m(){var b=a(),y=u(Lte);if(y){if(f(),!u(Mte))return s("property missing ':'");var T=u(Fte),E=b({type:zte,property:Rk(y[0].replace(kk,eu)),value:T?Rk(T[0].replace(kk,eu)):eu});return u(Pte),E}}function g(){var b=[];p(b);for(var y;y=m();)y!==!1&&(b.push(y),p(b));return b}return c(),g()};function Rk(e){return e?e.replace(Bte,eu):eu}var jte=Hte;function fM(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=jte(e),a=typeof t=="function",o,s,u=0,c=i.length;u0?ut.createElement(g,u,f):ut.createElement(g,u)}function Kte(e){let t=-1;for(;++t for more info)`),delete k0[a]}const t=_Q().use(Cee).use(e.remarkPlugins||[]).use(gte,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Nte,e),n=new IL;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=ut.createElement(ut.Fragment,{},hM({options:e,schema:Iu,listDepth:0},r));return e.className&&(i=ut.createElement("div",{className:e.className},i)),i}N9.propTypes={children:be.string,className:be.string,allowElement:be.func,allowedElements:be.arrayOf(be.string),disallowedElements:be.arrayOf(be.string),unwrapDisallowed:be.bool,remarkPlugins:be.arrayOf(be.oneOfType([be.object,be.func,be.arrayOf(be.oneOfType([be.bool,be.string,be.object,be.func,be.arrayOf(be.any)]))])),rehypePlugins:be.arrayOf(be.oneOfType([be.object,be.func,be.arrayOf(be.oneOfType([be.bool,be.string,be.object,be.func,be.arrayOf(be.any)]))])),sourcePos:be.bool,rawSourcePos:be.bool,skipHtml:be.bool,includeElementIndex:be.bool,transformLinkUri:be.oneOfType([be.func,be.bool]),linkTarget:be.oneOfType([be.func,be.string]),transformImageUri:be.func,components:be.object};const ene={tokenize:one,partial:!0},gM={tokenize:sne,partial:!0},mM={tokenize:lne,partial:!0},bM={tokenize:une,partial:!0},tne={tokenize:cne,partial:!0},yM={tokenize:ine,previous:vM},EM={tokenize:ane,previous:_M},gs={tokenize:rne,previous:TM},xo={},nne={text:xo};let zl=48;for(;zl<123;)xo[zl]=gs,zl++,zl===58?zl=65:zl===91&&(zl=97);xo[43]=gs;xo[45]=gs;xo[46]=gs;xo[95]=gs;xo[72]=[gs,EM];xo[104]=[gs,EM];xo[87]=[gs,yM];xo[119]=[gs,yM];function rne(e,t,n){const r=this;let i,a;return o;function o(f){return!sy(f)||!TM.call(r,r.previous)||O9(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return sy(f)?(e.consume(f),s):f===64?(e.consume(f),u):n(f)}function u(f){return f===46?e.check(tne,p,c)(f):f===45||f===95||jr(f)?(a=!0,e.consume(f),u):p(f)}function c(f){return e.consume(f),i=!0,u}function p(f){return a&&i&&ti(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function ine(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!vM.call(r,r.previous)||O9(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ene,e.attempt(gM,e.attempt(mM,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function ane(e,t,n){const r=this;let i="",a=!1;return o;function o(f){return(f===72||f===104)&&_M.call(r,r.previous)&&!O9(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(ti(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(f),u}return n(f)}function u(f){return f===47?(e.consume(f),a?c:(a=!0,u)):n(f)}function c(f){return f===null||Rg(f)||gn(f)||_u(f)||Ym(f)?n(f):e.attempt(gM,e.attempt(mM,p),n)(f)}function p(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function one(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function sne(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(bM,u,s)(c):c===null||gn(c)||_u(c)||c!==45&&Ym(c)?u(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function u(c){return i||r||!a?n(c):t(c)}}function lne(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const dne={tokenize:Ene,partial:!0};function pne(){return{document:{91:{tokenize:mne,continuation:{tokenize:bne},exit:yne}},text:{91:{tokenize:gne},93:{add:"after",tokenize:fne,resolveTo:hne}}}}function fne(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const c=Wa(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function hne(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function gne(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(a>999||f===93&&!o||f===null||f===91||gn(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Wa(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return gn(f)||(o=!0),a++,e.consume(f),f===92?p:c}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function mne(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(o>999||b===93&&!s||b===null||b===91||gn(b))return n(b);if(b===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=Wa(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return gn(b)||(s=!0),o++,e.consume(b),b===92?f:p}function f(b){return b===91||b===92||b===93?(e.consume(b),o++,p):p(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Gt(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function bne(e,t,n){return e.check(jp,t,e.attempt(dne,t,n))}function yne(e){e.exit("gfmFootnoteDefinition")}function Ene(e,t,n){const r=this;return Gt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function vne(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u1?u(b):(o.consume(b),f++,g);if(f<2&&!n)return u(b);const T=o.exit("strikethroughSequenceTemporary"),E=Ng(b);return T._open=!E||E===2&&!!y,T._close=!y||y===2&&!!E,s(b)}}}class _ne{constructor(){this.map=[]}add(t,n,r){Tne(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Tne(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const fe=r.events[Q][1].type;if(fe==="lineEnding"||fe==="linePrefix")Q--;else break}const $=Q>-1?r.events[Q][1].type:null,oe=$==="tableHead"||$==="tableRow"?k:u;return oe===k&&r.parser.lazy[r.now().line]?n(P):oe(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(o=!0,a+=1),p(P)}function p(P){return P===null?n(P):gt(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),g):n(P):Dt(P)?Gt(e,p,"whitespace")(P):(a+=1,o&&(o=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||gn(P)?(e.exit("data"),p(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function g(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),o=!1,Dt(P)?Gt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?T(P):P===124?(o=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),y):R(P)}function y(P){return Dt(P)?Gt(e,T,"whitespace")(P):T(P)}function T(P){return P===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),E):P===45?(a+=1,E(P)):P===null||gt(P)?A(P):R(P)}function E(P){return P===45?(e.enter("tableDelimiterFiller"),v(P)):R(P)}function v(P){return P===45?(e.consume(P),v):P===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(P))}function w(P){return Dt(P)?Gt(e,A,"whitespace")(P):A(P)}function A(P){return P===124?b(P):P===null||gt(P)?!o||i!==a?R(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):R(P)}function R(P){return n(P)}function k(P){return e.enter("tableRow"),N(P)}function N(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),N):P===null||gt(P)?(e.exit("tableRow"),t(P)):Dt(P)?Gt(e,N,"whitespace")(P):(e.enter("data"),B(P))}function B(P){return P===null||P===124||gn(P)?(e.exit("data"),N(P)):(e.consume(P),P===92?q:B)}function q(P){return P===92||P===124?(e.consume(P),B):B(P)}}function Cne(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,c,p,f;const m=new _ne;for(;++nn[2]+1){const b=n[2]+1,y=n[3]-n[2]-1;e.add(b,y,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},s1(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Ok(e,t,n,r,i){const a=[],o=s1(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function s1(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const kne={tokenize:Ine},xne={text:{91:kne}};function Ine(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return gn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return gt(u)?t(u):Dt(u)?e.check({tokenize:Rne},t,n)(u):n(u)}}function Rne(e,t,n){return Gt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Nne(e){return LL([nne,pne(),vne(e),wne,xne])}function Dk(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function One(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Dne={}.hasOwnProperty,Lne=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=Qm(i.ignore||[]),s=Mne(a);let u=-1;for(;++u0?{type:"text",value:N}:void 0),N!==!1&&(T!==R&&w.push({type:"text",value:f.value.slice(T,R)}),Array.isArray(N)?w.push(...N):N&&w.push(N),T=R+A[0].length,v=!0),!b.global)break;A=b.exec(f.value)}return v?(Te}const $3="phrasing",z3=["autolink","link","image","label"],Fne={transforms:[jne],enter:{literalAutolink:Bne,literalAutolinkEmail:H3,literalAutolinkHttp:H3,literalAutolinkWww:H3},exit:{literalAutolink:Hne,literalAutolinkEmail:zne,literalAutolinkHttp:Une,literalAutolinkWww:$ne}},Pne={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$3,notInConstruct:z3},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$3,notInConstruct:z3},{character:":",before:"[ps]",after:"\\/",inConstruct:$3,notInConstruct:z3}]};function Bne(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function H3(e){this.config.enter.autolinkProtocol.call(this,e)}function Une(e){this.config.exit.autolinkProtocol.call(this,e)}function $ne(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function zne(e){this.config.exit.autolinkEmail.call(this,e)}function Hne(e){this.exit(e)}function jne(e){Lne(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Gne],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Vne]],{ignore:["link","linkReference"]})}function Gne(e,t,n,r,i){let a="";if(!SM(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Wne(n)))return!1;const o=qne(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Vne(e,t,n,r){return!SM(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Wne(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function qne(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Dk(e,"(");let a=Dk(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function SM(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||_u(n)||Ym(n))&&(!t||n!==47)}function wM(e){return e.label||!e.identifier?e.label||"":VL(e.identifier)}function Kne(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s0?st.createElement(g,u,f):st.createElement(g,u)}function Kte(e){let t=-1;for(;++t for more info)`),delete k0[a]}const t=_Q().use(Cee).use(e.remarkPlugins||[]).use(gte,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Nte,e),n=new IL;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=st.createElement(st.Fragment,{},hM({options:e,schema:Iu,listDepth:0},r));return e.className&&(i=st.createElement("div",{className:e.className},i)),i}N9.propTypes={children:be.string,className:be.string,allowElement:be.func,allowedElements:be.arrayOf(be.string),disallowedElements:be.arrayOf(be.string),unwrapDisallowed:be.bool,remarkPlugins:be.arrayOf(be.oneOfType([be.object,be.func,be.arrayOf(be.oneOfType([be.bool,be.string,be.object,be.func,be.arrayOf(be.any)]))])),rehypePlugins:be.arrayOf(be.oneOfType([be.object,be.func,be.arrayOf(be.oneOfType([be.bool,be.string,be.object,be.func,be.arrayOf(be.any)]))])),sourcePos:be.bool,rawSourcePos:be.bool,skipHtml:be.bool,includeElementIndex:be.bool,transformLinkUri:be.oneOfType([be.func,be.bool]),linkTarget:be.oneOfType([be.func,be.string]),transformImageUri:be.func,components:be.object};const ene={tokenize:one,partial:!0},gM={tokenize:sne,partial:!0},mM={tokenize:lne,partial:!0},bM={tokenize:une,partial:!0},tne={tokenize:cne,partial:!0},yM={tokenize:ine,previous:vM},EM={tokenize:ane,previous:_M},ms={tokenize:rne,previous:TM},xo={},nne={text:xo};let zl=48;for(;zl<123;)xo[zl]=ms,zl++,zl===58?zl=65:zl===91&&(zl=97);xo[43]=ms;xo[45]=ms;xo[46]=ms;xo[95]=ms;xo[72]=[ms,EM];xo[104]=[ms,EM];xo[87]=[ms,yM];xo[119]=[ms,yM];function rne(e,t,n){const r=this;let i,a;return o;function o(f){return!sy(f)||!TM.call(r,r.previous)||O9(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return sy(f)?(e.consume(f),s):f===64?(e.consume(f),u):n(f)}function u(f){return f===46?e.check(tne,p,c)(f):f===45||f===95||jr(f)?(a=!0,e.consume(f),u):p(f)}function c(f){return e.consume(f),i=!0,u}function p(f){return a&&i&&ti(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function ine(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!vM.call(r,r.previous)||O9(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ene,e.attempt(gM,e.attempt(mM,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function ane(e,t,n){const r=this;let i="",a=!1;return o;function o(f){return(f===72||f===104)&&_M.call(r,r.previous)&&!O9(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(ti(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(f),u}return n(f)}function u(f){return f===47?(e.consume(f),a?c:(a=!0,u)):n(f)}function c(f){return f===null||Rg(f)||gn(f)||_u(f)||Ym(f)?n(f):e.attempt(gM,e.attempt(mM,p),n)(f)}function p(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function one(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function sne(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(bM,u,s)(c):c===null||gn(c)||_u(c)||c!==45&&Ym(c)?u(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function u(c){return i||r||!a?n(c):t(c)}}function lne(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const dne={tokenize:Ene,partial:!0};function pne(){return{document:{91:{tokenize:mne,continuation:{tokenize:bne},exit:yne}},text:{91:{tokenize:gne},93:{add:"after",tokenize:fne,resolveTo:hne}}}}function fne(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const c=Wa(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function hne(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function gne(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(a>999||f===93&&!o||f===null||f===91||gn(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Wa(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return gn(f)||(o=!0),a++,e.consume(f),f===92?p:c}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function mne(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(o>999||b===93&&!s||b===null||b===91||gn(b))return n(b);if(b===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=Wa(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return gn(b)||(s=!0),o++,e.consume(b),b===92?f:p}function f(b){return b===91||b===92||b===93?(e.consume(b),o++,p):p(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Gt(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function bne(e,t,n){return e.check(jp,t,e.attempt(dne,t,n))}function yne(e){e.exit("gfmFootnoteDefinition")}function Ene(e,t,n){const r=this;return Gt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function vne(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u1?u(b):(o.consume(b),f++,g);if(f<2&&!n)return u(b);const T=o.exit("strikethroughSequenceTemporary"),E=Ng(b);return T._open=!E||E===2&&!!y,T._close=!y||y===2&&!!E,s(b)}}}class _ne{constructor(){this.map=[]}add(t,n,r){Tne(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Tne(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const fe=r.events[Q][1].type;if(fe==="lineEnding"||fe==="linePrefix")Q--;else break}const $=Q>-1?r.events[Q][1].type:null,oe=$==="tableHead"||$==="tableRow"?k:u;return oe===k&&r.parser.lazy[r.now().line]?n(P):oe(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(o=!0,a+=1),p(P)}function p(P){return P===null?n(P):gt(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),g):n(P):Dt(P)?Gt(e,p,"whitespace")(P):(a+=1,o&&(o=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||gn(P)?(e.exit("data"),p(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function g(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),o=!1,Dt(P)?Gt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?T(P):P===124?(o=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),y):R(P)}function y(P){return Dt(P)?Gt(e,T,"whitespace")(P):T(P)}function T(P){return P===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),E):P===45?(a+=1,E(P)):P===null||gt(P)?A(P):R(P)}function E(P){return P===45?(e.enter("tableDelimiterFiller"),v(P)):R(P)}function v(P){return P===45?(e.consume(P),v):P===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(P))}function w(P){return Dt(P)?Gt(e,A,"whitespace")(P):A(P)}function A(P){return P===124?b(P):P===null||gt(P)?!o||i!==a?R(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):R(P)}function R(P){return n(P)}function k(P){return e.enter("tableRow"),N(P)}function N(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),N):P===null||gt(P)?(e.exit("tableRow"),t(P)):Dt(P)?Gt(e,N,"whitespace")(P):(e.enter("data"),B(P))}function B(P){return P===null||P===124||gn(P)?(e.exit("data"),N(P)):(e.consume(P),P===92?q:B)}function q(P){return P===92||P===124?(e.consume(P),B):B(P)}}function Cne(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,c,p,f;const m=new _ne;for(;++nn[2]+1){const b=n[2]+1,y=n[3]-n[2]-1;e.add(b,y,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},s1(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Ok(e,t,n,r,i){const a=[],o=s1(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function s1(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const kne={tokenize:Ine},xne={text:{91:kne}};function Ine(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return gn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return gt(u)?t(u):Dt(u)?e.check({tokenize:Rne},t,n)(u):n(u)}}function Rne(e,t,n){return Gt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Nne(e){return LL([nne,pne(),vne(e),wne,xne])}function Dk(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function One(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Dne={}.hasOwnProperty,Lne=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=Qm(i.ignore||[]),s=Mne(a);let u=-1;for(;++u0?{type:"text",value:N}:void 0),N!==!1&&(T!==R&&w.push({type:"text",value:f.value.slice(T,R)}),Array.isArray(N)?w.push(...N):N&&w.push(N),T=R+A[0].length,v=!0),!b.global)break;A=b.exec(f.value)}return v?(Te}const $3="phrasing",z3=["autolink","link","image","label"],Fne={transforms:[jne],enter:{literalAutolink:Bne,literalAutolinkEmail:H3,literalAutolinkHttp:H3,literalAutolinkWww:H3},exit:{literalAutolink:Hne,literalAutolinkEmail:zne,literalAutolinkHttp:Une,literalAutolinkWww:$ne}},Pne={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$3,notInConstruct:z3},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$3,notInConstruct:z3},{character:":",before:"[ps]",after:"\\/",inConstruct:$3,notInConstruct:z3}]};function Bne(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function H3(e){this.config.enter.autolinkProtocol.call(this,e)}function Une(e){this.config.exit.autolinkProtocol.call(this,e)}function $ne(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function zne(e){this.config.exit.autolinkEmail.call(this,e)}function Hne(e){this.exit(e)}function jne(e){Lne(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Gne],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Vne]],{ignore:["link","linkReference"]})}function Gne(e,t,n,r,i){let a="";if(!SM(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Wne(n)))return!1;const o=qne(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Vne(e,t,n,r){return!SM(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Wne(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function qne(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Dk(e,"(");let a=Dk(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function SM(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||_u(n)||Ym(n))&&(!t||n!==47)}function wM(e){return e.label||!e.identifier?e.label||"":VL(e.identifier)}function Kne(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++su&&(u=e[c].length);++Ts[T])&&(s[T]=v)}b.push(E)}a[c]=b,o[c]=y}let p=-1;if(typeof n=="object"&&"length"in n)for(;++ps[p]&&(s[p]=E),m[p]=E),f[p]=v}a.splice(1,0,f),o.splice(1,0,m),c=-1;const g=[];for(;++cn==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function Are(e){this.exit(e),this.setData("inTable")}function Cre(e){this.enter({type:"tableRow",children:[]},e)}function j3(e){this.exit(e)}function Uk(e){this.enter({type:"tableCell",children:[]},e)}function kre(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,xre));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function xre(e,t){return t==="|"?t:e}function Ire(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";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:o,tableRow:s,tableCell:u,inlineCode:m}};function o(g,b,y,T){return c(p(g,y,T),g.align)}function s(g,b,y,T){const E=f(g,y,T),v=c([E]);return v.slice(0,v.indexOf(` -`))}function u(g,b,y,T){const E=y.enter("tableCell"),v=y.enter("phrasing"),w=xM(g,y,{...T,before:a,after:a});return v(),E(),w}function c(g,b){return vre(g,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function p(g,b,y){const T=g.children;let E=-1;const v=[],w=b.enter("table");for(;++E-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),p);return u(),c;function p(f,m,g){return m?(g?"":" ".repeat(o))+f:(g?a:a+" ".repeat(o-a.length))+f}}const Dre={exit:{taskListCheckValueChecked:$k,taskListCheckValueUnchecked:$k,paragraph:Mre}},Lre={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Fre}};function $k(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Mre(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a=55296&&e<=57343};Xa.isSurrogatePair=function(e){return e>=56320&&e<=57343};Xa.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Xa.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Xa.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||$re.indexOf(e)>-1};var D9={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"};const l1=Xa,G3=D9,Hl=l1.CODE_POINTS,zre=65536;let Hre=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=zre}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(l1.isSurrogatePair(n))return this.pos++,this._addGap(),l1.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Hl.EOF;return this._err(G3.surrogateInInputStream),t}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(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+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,Hl.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Hl.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Hl.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Hl.LINE_FEED):(this.skipNextNewLine=!1,l1.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Hl.LINE_FEED||t===Hl.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){l1.isControlCodePoint(t)?this._err(G3.controlCharacterInInputStream):l1.isUndefinedCodePoint(t)&&this._err(G3.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var jre=Hre,Gre=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]);const Vre=jre,cn=Xa,ou=Gre,Ae=D9,V=cn.CODE_POINTS,jl=cn.CODE_POINT_SEQUENCES,Wre={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},NM=1,OM=2,DM=4,qre=NM|OM|DM,Ot="DATA_STATE",u1="RCDATA_STATE",Sd="RAWTEXT_STATE",Xo="SCRIPT_DATA_STATE",LM="PLAINTEXT_STATE",zk="TAG_OPEN_STATE",Hk="END_TAG_OPEN_STATE",V3="TAG_NAME_STATE",jk="RCDATA_LESS_THAN_SIGN_STATE",Gk="RCDATA_END_TAG_OPEN_STATE",Vk="RCDATA_END_TAG_NAME_STATE",Wk="RAWTEXT_LESS_THAN_SIGN_STATE",qk="RAWTEXT_END_TAG_OPEN_STATE",Kk="RAWTEXT_END_TAG_NAME_STATE",Yk="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Xk="SCRIPT_DATA_END_TAG_OPEN_STATE",Zk="SCRIPT_DATA_END_TAG_NAME_STATE",Qk="SCRIPT_DATA_ESCAPE_START_STATE",Jk="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Na="SCRIPT_DATA_ESCAPED_STATE",ex="SCRIPT_DATA_ESCAPED_DASH_STATE",W3="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",I0="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",tx="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",nx="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",rx="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",zo="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",ix="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",ax="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",R0="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",ox="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",so="BEFORE_ATTRIBUTE_NAME_STATE",N0="ATTRIBUTE_NAME_STATE",q3="AFTER_ATTRIBUTE_NAME_STATE",K3="BEFORE_ATTRIBUTE_VALUE_STATE",O0="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",D0="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",L0="ATTRIBUTE_VALUE_UNQUOTED_STATE",Y3="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Ls="SELF_CLOSING_START_TAG_STATE",td="BOGUS_COMMENT_STATE",sx="MARKUP_DECLARATION_OPEN_STATE",lx="COMMENT_START_STATE",ux="COMMENT_START_DASH_STATE",Ms="COMMENT_STATE",cx="COMMENT_LESS_THAN_SIGN_STATE",dx="COMMENT_LESS_THAN_SIGN_BANG_STATE",px="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",fx="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",M0="COMMENT_END_DASH_STATE",F0="COMMENT_END_STATE",hx="COMMENT_END_BANG_STATE",gx="DOCTYPE_STATE",P0="BEFORE_DOCTYPE_NAME_STATE",B0="DOCTYPE_NAME_STATE",mx="AFTER_DOCTYPE_NAME_STATE",bx="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",yx="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",X3="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Z3="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Q3="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Ex="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",vx="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",_x="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",nd="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",rd="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",J3="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ho="BOGUS_DOCTYPE_STATE",U0="CDATA_SECTION_STATE",Tx="CDATA_SECTION_BRACKET_STATE",Sx="CDATA_SECTION_END_STATE",Ju="CHARACTER_REFERENCE_STATE",wx="NAMED_CHARACTER_REFERENCE_STATE",Ax="AMBIGUOS_AMPERSAND_STATE",Cx="NUMERIC_CHARACTER_REFERENCE_STATE",kx="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",xx="DECIMAL_CHARACTER_REFERENCE_START_STATE",Ix="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Rx="DECIMAL_CHARACTER_REFERENCE_STATE",id="NUMERIC_CHARACTER_REFERENCE_END_STATE";function vn(e){return e===V.SPACE||e===V.LINE_FEED||e===V.TABULATION||e===V.FORM_FEED}function zd(e){return e>=V.DIGIT_0&&e<=V.DIGIT_9}function La(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_Z}function Xl(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_Z}function Us(e){return Xl(e)||La(e)}function e4(e){return Us(e)||zd(e)}function MM(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_F}function FM(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_F}function Kre(e){return zd(e)||MM(e)||FM(e)}function Ih(e){return e+32}function Fn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Fs(e){return String.fromCharCode(Ih(e))}function Nx(e,t){const n=ou[++e];let r=++e,i=r+n-1;for(;r<=i;){const a=r+i>>>1,o=ou[a];if(ot)i=a-1;else return ou[a+n]}return-1}let wa=class fi{constructor(){this.preprocessor=new Vre,this.tokenQueue=[],this.allowCDATA=!1,this.state=Ot,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(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:fi.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,a=!0;const o=t.length;let s=0,u=n,c;for(;s0&&(u=this._consume(),i++),u===V.EOF){a=!1;break}if(c=t[s],u!==c&&(r||u!==Ih(c))){a=!1;break}}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==jl.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(Ae.endTagWithAttributes),t.selfClosing&&this._err(Ae.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=fi.CHARACTER_TOKEN;vn(t)?n=fi.WHITESPACE_CHARACTER_TOKEN:t===V.NULL&&(n=fi.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Fn(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const a=ou[i],o=a")):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=Na,this._emitChars(cn.REPLACEMENT_CHARACTER)):t===V.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Na,this._emitCodePoint(t))}[I0](t){t===V.SOLIDUS?(this.tempBuff=[],this.state=tx):Us(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(rx)):(this._emitChars("<"),this._reconsumeInState(Na))}[tx](t){Us(t)?(this._createEndTagToken(),this._reconsumeInState(nx)):(this._emitChars("")):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=zo,this._emitChars(cn.REPLACEMENT_CHARACTER)):t===V.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=zo,this._emitCodePoint(t))}[R0](t){t===V.SOLIDUS?(this.tempBuff=[],this.state=ox,this._emitChars("/")):this._reconsumeInState(zo)}[ox](t){vn(t)||t===V.SOLIDUS||t===V.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Na:zo,this._emitCodePoint(t)):La(t)?(this.tempBuff.push(Ih(t)),this._emitCodePoint(t)):Xl(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(zo)}[so](t){vn(t)||(t===V.SOLIDUS||t===V.GREATER_THAN_SIGN||t===V.EOF?this._reconsumeInState(q3):t===V.EQUALS_SIGN?(this._err(Ae.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=N0):(this._createAttr(""),this._reconsumeInState(N0)))}[N0](t){vn(t)||t===V.SOLIDUS||t===V.GREATER_THAN_SIGN||t===V.EOF?(this._leaveAttrName(q3),this._unconsume()):t===V.EQUALS_SIGN?this._leaveAttrName(K3):La(t)?this.currentAttr.name+=Fs(t):t===V.QUOTATION_MARK||t===V.APOSTROPHE||t===V.LESS_THAN_SIGN?(this._err(Ae.unexpectedCharacterInAttributeName),this.currentAttr.name+=Fn(t)):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.name+=cn.REPLACEMENT_CHARACTER):this.currentAttr.name+=Fn(t)}[q3](t){vn(t)||(t===V.SOLIDUS?this.state=Ls:t===V.EQUALS_SIGN?this.state=K3:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(N0)))}[K3](t){vn(t)||(t===V.QUOTATION_MARK?this.state=O0:t===V.APOSTROPHE?this.state=D0:t===V.GREATER_THAN_SIGN?(this._err(Ae.missingAttributeValue),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(L0))}[O0](t){t===V.QUOTATION_MARK?this.state=Y3:t===V.AMPERSAND?(this.returnState=O0,this.state=Ju):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[D0](t){t===V.APOSTROPHE?this.state=Y3:t===V.AMPERSAND?(this.returnState=D0,this.state=Ju):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[L0](t){vn(t)?this._leaveAttrValue(so):t===V.AMPERSAND?(this.returnState=L0,this.state=Ju):t===V.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.QUOTATION_MARK||t===V.APOSTROPHE||t===V.LESS_THAN_SIGN||t===V.EQUALS_SIGN||t===V.GRAVE_ACCENT?(this._err(Ae.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Fn(t)):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[Y3](t){vn(t)?this._leaveAttrValue(so):t===V.SOLIDUS?this._leaveAttrValue(Ls):t===V.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBetweenAttributes),this._reconsumeInState(so))}[Ls](t){t===V.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.unexpectedSolidusInTag),this._reconsumeInState(so))}[td](t){t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=cn.REPLACEMENT_CHARACTER):this.currentToken.data+=Fn(t)}[sx](t){this._consumeSequenceIfMatch(jl.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=lx):this._consumeSequenceIfMatch(jl.DOCTYPE_STRING,t,!1)?this.state=gx:this._consumeSequenceIfMatch(jl.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=U0:(this._err(Ae.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=td):this._ensureHibernation()||(this._err(Ae.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(td))}[lx](t){t===V.HYPHEN_MINUS?this.state=ux:t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(Ms)}[ux](t){t===V.HYPHEN_MINUS?this.state=F0:t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ms))}[Ms](t){t===V.HYPHEN_MINUS?this.state=M0:t===V.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=cx):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Fn(t)}[cx](t){t===V.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=dx):t===V.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Ms)}[dx](t){t===V.HYPHEN_MINUS?this.state=px:this._reconsumeInState(Ms)}[px](t){t===V.HYPHEN_MINUS?this.state=fx:this._reconsumeInState(M0)}[fx](t){t!==V.GREATER_THAN_SIGN&&t!==V.EOF&&this._err(Ae.nestedComment),this._reconsumeInState(F0)}[M0](t){t===V.HYPHEN_MINUS?this.state=F0:t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ms))}[F0](t){t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EXCLAMATION_MARK?this.state=hx:t===V.HYPHEN_MINUS?this.currentToken.data+="-":t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Ms))}[hx](t){t===V.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=M0):t===V.GREATER_THAN_SIGN?(this._err(Ae.incorrectlyClosedComment),this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Ms))}[gx](t){vn(t)?this.state=P0:t===V.GREATER_THAN_SIGN?this._reconsumeInState(P0):t===V.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(P0))}[P0](t){vn(t)||(La(t)?(this._createDoctypeToken(Fs(t)),this.state=B0):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this._createDoctypeToken(cn.REPLACEMENT_CHARACTER),this.state=B0):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Fn(t)),this.state=B0))}[B0](t){vn(t)?this.state=mx:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):La(t)?this.currentToken.name+=Fs(t):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.name+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Fn(t)}[mx](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(jl.PUBLIC_STRING,t,!1)?this.state=bx:this._consumeSequenceIfMatch(jl.SYSTEM_STRING,t,!1)?this.state=vx:this._ensureHibernation()||(this._err(Ae.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[bx](t){vn(t)?this.state=yx:t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=X3):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Z3):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho))}[yx](t){vn(t)||(t===V.QUOTATION_MARK?(this.currentToken.publicId="",this.state=X3):t===V.APOSTROPHE?(this.currentToken.publicId="",this.state=Z3):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[X3](t){t===V.QUOTATION_MARK?this.state=Q3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fn(t)}[Z3](t){t===V.APOSTROPHE?this.state=Q3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fn(t)}[Q3](t){vn(t)?this.state=Ex:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=rd):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho))}[Ex](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.QUOTATION_MARK?(this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this.currentToken.systemId="",this.state=rd):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[vx](t){vn(t)?this.state=_x:t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=rd):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho))}[_x](t){vn(t)||(t===V.QUOTATION_MARK?(this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this.currentToken.systemId="",this.state=rd):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[nd](t){t===V.QUOTATION_MARK?this.state=J3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fn(t)}[rd](t){t===V.APOSTROPHE?this.state=J3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fn(t)}[J3](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Ho)))}[Ho](t){t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.NULL?this._err(Ae.unexpectedNullCharacter):t===V.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[U0](t){t===V.RIGHT_SQUARE_BRACKET?this.state=Tx:t===V.EOF?(this._err(Ae.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Tx](t){t===V.RIGHT_SQUARE_BRACKET?this.state=Sx:(this._emitChars("]"),this._reconsumeInState(U0))}[Sx](t){t===V.GREATER_THAN_SIGN?this.state=Ot:t===V.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(U0))}[Ju](t){this.tempBuff=[V.AMPERSAND],t===V.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Cx):e4(t)?this._reconsumeInState(wx):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[wx](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[V.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===V.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Ae.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Ax}[Ax](t){e4(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Fn(t):this._emitCodePoint(t):(t===V.SEMICOLON&&this._err(Ae.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Cx](t){this.charRefCode=0,t===V.LATIN_SMALL_X||t===V.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=kx):this._reconsumeInState(xx)}[kx](t){Kre(t)?this._reconsumeInState(Ix):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[xx](t){zd(t)?this._reconsumeInState(Rx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ix](t){MM(t)?this.charRefCode=this.charRefCode*16+t-55:FM(t)?this.charRefCode=this.charRefCode*16+t-87:zd(t)?this.charRefCode=this.charRefCode*16+t-48:t===V.SEMICOLON?this.state=id:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(id))}[Rx](t){zd(t)?this.charRefCode=this.charRefCode*10+t-48:t===V.SEMICOLON?this.state=id:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(id))}[id](){if(this.charRefCode===V.NULL)this._err(Ae.nullCharacterReference),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Ae.characterReferenceOutsideUnicodeRange),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(cn.isSurrogate(this.charRefCode))this._err(Ae.surrogateCharacterReference),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(cn.isUndefinedCodePoint(this.charRefCode))this._err(Ae.noncharacterCharacterReference);else if(cn.isControlCodePoint(this.charRefCode)||this.charRefCode===V.CARRIAGE_RETURN){this._err(Ae.controlCharacterReference);const t=Wre[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};wa.CHARACTER_TOKEN="CHARACTER_TOKEN";wa.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";wa.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";wa.START_TAG_TOKEN="START_TAG_TOKEN";wa.END_TAG_TOKEN="END_TAG_TOKEN";wa.COMMENT_TOKEN="COMMENT_TOKEN";wa.DOCTYPE_TOKEN="DOCTYPE_TOKEN";wa.EOF_TOKEN="EOF_TOKEN";wa.HIBERNATION_TOKEN="HIBERNATION_TOKEN";wa.MODE={DATA:Ot,RCDATA:u1,RAWTEXT:Sd,SCRIPT_DATA:Xo,PLAINTEXT:LM};wa.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var t2=wa,Za={};const t4=Za.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/"};Za.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Za.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const $e=Za.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"};Za.SPECIAL_ELEMENTS={[t4.HTML]:{[$e.ADDRESS]:!0,[$e.APPLET]:!0,[$e.AREA]:!0,[$e.ARTICLE]:!0,[$e.ASIDE]:!0,[$e.BASE]:!0,[$e.BASEFONT]:!0,[$e.BGSOUND]:!0,[$e.BLOCKQUOTE]:!0,[$e.BODY]:!0,[$e.BR]:!0,[$e.BUTTON]:!0,[$e.CAPTION]:!0,[$e.CENTER]:!0,[$e.COL]:!0,[$e.COLGROUP]:!0,[$e.DD]:!0,[$e.DETAILS]:!0,[$e.DIR]:!0,[$e.DIV]:!0,[$e.DL]:!0,[$e.DT]:!0,[$e.EMBED]:!0,[$e.FIELDSET]:!0,[$e.FIGCAPTION]:!0,[$e.FIGURE]:!0,[$e.FOOTER]:!0,[$e.FORM]:!0,[$e.FRAME]:!0,[$e.FRAMESET]:!0,[$e.H1]:!0,[$e.H2]:!0,[$e.H3]:!0,[$e.H4]:!0,[$e.H5]:!0,[$e.H6]:!0,[$e.HEAD]:!0,[$e.HEADER]:!0,[$e.HGROUP]:!0,[$e.HR]:!0,[$e.HTML]:!0,[$e.IFRAME]:!0,[$e.IMG]:!0,[$e.INPUT]:!0,[$e.LI]:!0,[$e.LINK]:!0,[$e.LISTING]:!0,[$e.MAIN]:!0,[$e.MARQUEE]:!0,[$e.MENU]:!0,[$e.META]:!0,[$e.NAV]:!0,[$e.NOEMBED]:!0,[$e.NOFRAMES]:!0,[$e.NOSCRIPT]:!0,[$e.OBJECT]:!0,[$e.OL]:!0,[$e.P]:!0,[$e.PARAM]:!0,[$e.PLAINTEXT]:!0,[$e.PRE]:!0,[$e.SCRIPT]:!0,[$e.SECTION]:!0,[$e.SELECT]:!0,[$e.SOURCE]:!0,[$e.STYLE]:!0,[$e.SUMMARY]:!0,[$e.TABLE]:!0,[$e.TBODY]:!0,[$e.TD]:!0,[$e.TEMPLATE]:!0,[$e.TEXTAREA]:!0,[$e.TFOOT]:!0,[$e.TH]:!0,[$e.THEAD]:!0,[$e.TITLE]:!0,[$e.TR]:!0,[$e.TRACK]:!0,[$e.UL]:!0,[$e.WBR]:!0,[$e.XMP]:!0},[t4.MATHML]:{[$e.MI]:!0,[$e.MO]:!0,[$e.MN]:!0,[$e.MS]:!0,[$e.MTEXT]:!0,[$e.ANNOTATION_XML]:!0},[t4.SVG]:{[$e.TITLE]:!0,[$e.FOREIGN_OBJECT]:!0,[$e.DESC]:!0}};const PM=Za,He=PM.TAG_NAMES,dn=PM.NAMESPACES;function Ox(e){switch(e.length){case 1:return e===He.P;case 2:return e===He.RB||e===He.RP||e===He.RT||e===He.DD||e===He.DT||e===He.LI;case 3:return e===He.RTC;case 6:return e===He.OPTION;case 8:return e===He.OPTGROUP}return!1}function Yre(e){switch(e.length){case 1:return e===He.P;case 2:return e===He.RB||e===He.RP||e===He.RT||e===He.DD||e===He.DT||e===He.LI||e===He.TD||e===He.TH||e===He.TR;case 3:return e===He.RTC;case 5:return e===He.TBODY||e===He.TFOOT||e===He.THEAD;case 6:return e===He.OPTION;case 7:return e===He.CAPTION;case 8:return e===He.OPTGROUP||e===He.COLGROUP}return!1}function $0(e,t){switch(e.length){case 2:if(e===He.TD||e===He.TH)return t===dn.HTML;if(e===He.MI||e===He.MO||e===He.MN||e===He.MS)return t===dn.MATHML;break;case 4:if(e===He.HTML)return t===dn.HTML;if(e===He.DESC)return t===dn.SVG;break;case 5:if(e===He.TABLE)return t===dn.HTML;if(e===He.MTEXT)return t===dn.MATHML;if(e===He.TITLE)return t===dn.SVG;break;case 6:return(e===He.APPLET||e===He.OBJECT)&&t===dn.HTML;case 7:return(e===He.CAPTION||e===He.MARQUEE)&&t===dn.HTML;case 8:return e===He.TEMPLATE&&t===dn.HTML;case 13:return e===He.FOREIGN_OBJECT&&t===dn.SVG;case 14:return e===He.ANNOTATION_XML&&t===dn.MATHML}return!1}let Xre=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===He.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===dn.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(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===dn.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===He.H1||t===He.H2||t===He.H3||t===He.H4||t===He.H5||t===He.H6&&n===dn.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===He.TD||t===He.TH&&n===dn.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==He.TABLE&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==He.TBODY&&this.currentTagName!==He.TFOOT&&this.currentTagName!==He.THEAD&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==He.TR&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===He.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===He.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if($0(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===He.H1||n===He.H2||n===He.H3||n===He.H4||n===He.H5||n===He.H6)&&r===dn.HTML)return!0;if($0(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if((r===He.UL||r===He.OL)&&i===dn.HTML||$0(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if(r===He.BUTTON&&i===dn.HTML||$0(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===dn.HTML){if(r===t)return!0;if(r===He.TABLE||r===He.TEMPLATE||r===He.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===dn.HTML){if(n===He.TBODY||n===He.THEAD||n===He.TFOOT)return!0;if(n===He.TABLE||n===He.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===dn.HTML){if(r===t)return!0;if(r!==He.OPTION&&r!==He.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Ox(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Yre(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Ox(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var Zre=Xre;const z0=3;let L9=class $s{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=z0){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===$s.MARKER_ENTRY)break;const u=s.element,c=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===a&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length=z0-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:$s.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:$s.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:$s.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===$s.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===$s.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===$s.ELEMENT_ENTRY&&r.element===t)return r}return null}};L9.MARKER_ENTRY="MARKER_ENTRY";L9.ELEMENT_ENTRY="ELEMENT_ENTRY";var Qre=L9;let BM=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};BM.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),p);return u(),c;function p(f,m,g){return m?(g?"":" ".repeat(o))+f:(g?a:a+" ".repeat(o-a.length))+f}}const Dre={exit:{taskListCheckValueChecked:$k,taskListCheckValueUnchecked:$k,paragraph:Mre}},Lre={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Fre}};function $k(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Mre(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a=55296&&e<=57343};Xa.isSurrogatePair=function(e){return e>=56320&&e<=57343};Xa.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Xa.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Xa.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||$re.indexOf(e)>-1};var D9={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"};const l1=Xa,G3=D9,Hl=l1.CODE_POINTS,zre=65536;let Hre=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=zre}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(l1.isSurrogatePair(n))return this.pos++,this._addGap(),l1.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Hl.EOF;return this._err(G3.surrogateInInputStream),t}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(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+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,Hl.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Hl.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Hl.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Hl.LINE_FEED):(this.skipNextNewLine=!1,l1.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Hl.LINE_FEED||t===Hl.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){l1.isControlCodePoint(t)?this._err(G3.controlCharacterInInputStream):l1.isUndefinedCodePoint(t)&&this._err(G3.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var jre=Hre,Gre=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]);const Vre=jre,cn=Xa,ou=Gre,Ae=D9,V=cn.CODE_POINTS,jl=cn.CODE_POINT_SEQUENCES,Wre={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},NM=1,OM=2,DM=4,qre=NM|OM|DM,Ot="DATA_STATE",u1="RCDATA_STATE",Sd="RAWTEXT_STATE",Zo="SCRIPT_DATA_STATE",LM="PLAINTEXT_STATE",zk="TAG_OPEN_STATE",Hk="END_TAG_OPEN_STATE",V3="TAG_NAME_STATE",jk="RCDATA_LESS_THAN_SIGN_STATE",Gk="RCDATA_END_TAG_OPEN_STATE",Vk="RCDATA_END_TAG_NAME_STATE",Wk="RAWTEXT_LESS_THAN_SIGN_STATE",qk="RAWTEXT_END_TAG_OPEN_STATE",Kk="RAWTEXT_END_TAG_NAME_STATE",Yk="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Xk="SCRIPT_DATA_END_TAG_OPEN_STATE",Zk="SCRIPT_DATA_END_TAG_NAME_STATE",Qk="SCRIPT_DATA_ESCAPE_START_STATE",Jk="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Na="SCRIPT_DATA_ESCAPED_STATE",ex="SCRIPT_DATA_ESCAPED_DASH_STATE",W3="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",I0="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",tx="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",nx="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",rx="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Ho="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",ix="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",ax="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",R0="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",ox="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",so="BEFORE_ATTRIBUTE_NAME_STATE",N0="ATTRIBUTE_NAME_STATE",q3="AFTER_ATTRIBUTE_NAME_STATE",K3="BEFORE_ATTRIBUTE_VALUE_STATE",O0="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",D0="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",L0="ATTRIBUTE_VALUE_UNQUOTED_STATE",Y3="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Ls="SELF_CLOSING_START_TAG_STATE",td="BOGUS_COMMENT_STATE",sx="MARKUP_DECLARATION_OPEN_STATE",lx="COMMENT_START_STATE",ux="COMMENT_START_DASH_STATE",Ms="COMMENT_STATE",cx="COMMENT_LESS_THAN_SIGN_STATE",dx="COMMENT_LESS_THAN_SIGN_BANG_STATE",px="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",fx="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",M0="COMMENT_END_DASH_STATE",F0="COMMENT_END_STATE",hx="COMMENT_END_BANG_STATE",gx="DOCTYPE_STATE",P0="BEFORE_DOCTYPE_NAME_STATE",B0="DOCTYPE_NAME_STATE",mx="AFTER_DOCTYPE_NAME_STATE",bx="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",yx="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",X3="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Z3="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Q3="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Ex="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",vx="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",_x="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",nd="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",rd="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",J3="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",jo="BOGUS_DOCTYPE_STATE",U0="CDATA_SECTION_STATE",Tx="CDATA_SECTION_BRACKET_STATE",Sx="CDATA_SECTION_END_STATE",Ju="CHARACTER_REFERENCE_STATE",wx="NAMED_CHARACTER_REFERENCE_STATE",Ax="AMBIGUOS_AMPERSAND_STATE",Cx="NUMERIC_CHARACTER_REFERENCE_STATE",kx="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",xx="DECIMAL_CHARACTER_REFERENCE_START_STATE",Ix="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Rx="DECIMAL_CHARACTER_REFERENCE_STATE",id="NUMERIC_CHARACTER_REFERENCE_END_STATE";function vn(e){return e===V.SPACE||e===V.LINE_FEED||e===V.TABULATION||e===V.FORM_FEED}function zd(e){return e>=V.DIGIT_0&&e<=V.DIGIT_9}function La(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_Z}function Xl(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_Z}function Us(e){return Xl(e)||La(e)}function e4(e){return Us(e)||zd(e)}function MM(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_F}function FM(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_F}function Kre(e){return zd(e)||MM(e)||FM(e)}function Ih(e){return e+32}function Fn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Fs(e){return String.fromCharCode(Ih(e))}function Nx(e,t){const n=ou[++e];let r=++e,i=r+n-1;for(;r<=i;){const a=r+i>>>1,o=ou[a];if(ot)i=a-1;else return ou[a+n]}return-1}let wa=class fi{constructor(){this.preprocessor=new Vre,this.tokenQueue=[],this.allowCDATA=!1,this.state=Ot,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(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:fi.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,a=!0;const o=t.length;let s=0,u=n,c;for(;s0&&(u=this._consume(),i++),u===V.EOF){a=!1;break}if(c=t[s],u!==c&&(r||u!==Ih(c))){a=!1;break}}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==jl.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(Ae.endTagWithAttributes),t.selfClosing&&this._err(Ae.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=fi.CHARACTER_TOKEN;vn(t)?n=fi.WHITESPACE_CHARACTER_TOKEN:t===V.NULL&&(n=fi.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Fn(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const a=ou[i],o=a")):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=Na,this._emitChars(cn.REPLACEMENT_CHARACTER)):t===V.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Na,this._emitCodePoint(t))}[I0](t){t===V.SOLIDUS?(this.tempBuff=[],this.state=tx):Us(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(rx)):(this._emitChars("<"),this._reconsumeInState(Na))}[tx](t){Us(t)?(this._createEndTagToken(),this._reconsumeInState(nx)):(this._emitChars("")):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=Ho,this._emitChars(cn.REPLACEMENT_CHARACTER)):t===V.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Ho,this._emitCodePoint(t))}[R0](t){t===V.SOLIDUS?(this.tempBuff=[],this.state=ox,this._emitChars("/")):this._reconsumeInState(Ho)}[ox](t){vn(t)||t===V.SOLIDUS||t===V.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Na:Ho,this._emitCodePoint(t)):La(t)?(this.tempBuff.push(Ih(t)),this._emitCodePoint(t)):Xl(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Ho)}[so](t){vn(t)||(t===V.SOLIDUS||t===V.GREATER_THAN_SIGN||t===V.EOF?this._reconsumeInState(q3):t===V.EQUALS_SIGN?(this._err(Ae.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=N0):(this._createAttr(""),this._reconsumeInState(N0)))}[N0](t){vn(t)||t===V.SOLIDUS||t===V.GREATER_THAN_SIGN||t===V.EOF?(this._leaveAttrName(q3),this._unconsume()):t===V.EQUALS_SIGN?this._leaveAttrName(K3):La(t)?this.currentAttr.name+=Fs(t):t===V.QUOTATION_MARK||t===V.APOSTROPHE||t===V.LESS_THAN_SIGN?(this._err(Ae.unexpectedCharacterInAttributeName),this.currentAttr.name+=Fn(t)):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.name+=cn.REPLACEMENT_CHARACTER):this.currentAttr.name+=Fn(t)}[q3](t){vn(t)||(t===V.SOLIDUS?this.state=Ls:t===V.EQUALS_SIGN?this.state=K3:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(N0)))}[K3](t){vn(t)||(t===V.QUOTATION_MARK?this.state=O0:t===V.APOSTROPHE?this.state=D0:t===V.GREATER_THAN_SIGN?(this._err(Ae.missingAttributeValue),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(L0))}[O0](t){t===V.QUOTATION_MARK?this.state=Y3:t===V.AMPERSAND?(this.returnState=O0,this.state=Ju):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[D0](t){t===V.APOSTROPHE?this.state=Y3:t===V.AMPERSAND?(this.returnState=D0,this.state=Ju):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[L0](t){vn(t)?this._leaveAttrValue(so):t===V.AMPERSAND?(this.returnState=L0,this.state=Ju):t===V.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.QUOTATION_MARK||t===V.APOSTROPHE||t===V.LESS_THAN_SIGN||t===V.EQUALS_SIGN||t===V.GRAVE_ACCENT?(this._err(Ae.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Fn(t)):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[Y3](t){vn(t)?this._leaveAttrValue(so):t===V.SOLIDUS?this._leaveAttrValue(Ls):t===V.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBetweenAttributes),this._reconsumeInState(so))}[Ls](t){t===V.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.unexpectedSolidusInTag),this._reconsumeInState(so))}[td](t){t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=cn.REPLACEMENT_CHARACTER):this.currentToken.data+=Fn(t)}[sx](t){this._consumeSequenceIfMatch(jl.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=lx):this._consumeSequenceIfMatch(jl.DOCTYPE_STRING,t,!1)?this.state=gx:this._consumeSequenceIfMatch(jl.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=U0:(this._err(Ae.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=td):this._ensureHibernation()||(this._err(Ae.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(td))}[lx](t){t===V.HYPHEN_MINUS?this.state=ux:t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(Ms)}[ux](t){t===V.HYPHEN_MINUS?this.state=F0:t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ms))}[Ms](t){t===V.HYPHEN_MINUS?this.state=M0:t===V.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=cx):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Fn(t)}[cx](t){t===V.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=dx):t===V.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Ms)}[dx](t){t===V.HYPHEN_MINUS?this.state=px:this._reconsumeInState(Ms)}[px](t){t===V.HYPHEN_MINUS?this.state=fx:this._reconsumeInState(M0)}[fx](t){t!==V.GREATER_THAN_SIGN&&t!==V.EOF&&this._err(Ae.nestedComment),this._reconsumeInState(F0)}[M0](t){t===V.HYPHEN_MINUS?this.state=F0:t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ms))}[F0](t){t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EXCLAMATION_MARK?this.state=hx:t===V.HYPHEN_MINUS?this.currentToken.data+="-":t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Ms))}[hx](t){t===V.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=M0):t===V.GREATER_THAN_SIGN?(this._err(Ae.incorrectlyClosedComment),this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Ms))}[gx](t){vn(t)?this.state=P0:t===V.GREATER_THAN_SIGN?this._reconsumeInState(P0):t===V.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(P0))}[P0](t){vn(t)||(La(t)?(this._createDoctypeToken(Fs(t)),this.state=B0):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this._createDoctypeToken(cn.REPLACEMENT_CHARACTER),this.state=B0):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Fn(t)),this.state=B0))}[B0](t){vn(t)?this.state=mx:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):La(t)?this.currentToken.name+=Fs(t):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.name+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Fn(t)}[mx](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(jl.PUBLIC_STRING,t,!1)?this.state=bx:this._consumeSequenceIfMatch(jl.SYSTEM_STRING,t,!1)?this.state=vx:this._ensureHibernation()||(this._err(Ae.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo)))}[bx](t){vn(t)?this.state=yx:t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=X3):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Z3):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo))}[yx](t){vn(t)||(t===V.QUOTATION_MARK?(this.currentToken.publicId="",this.state=X3):t===V.APOSTROPHE?(this.currentToken.publicId="",this.state=Z3):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo)))}[X3](t){t===V.QUOTATION_MARK?this.state=Q3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fn(t)}[Z3](t){t===V.APOSTROPHE?this.state=Q3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fn(t)}[Q3](t){vn(t)?this.state=Ex:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=rd):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo))}[Ex](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.QUOTATION_MARK?(this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this.currentToken.systemId="",this.state=rd):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo)))}[vx](t){vn(t)?this.state=_x:t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=rd):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo))}[_x](t){vn(t)||(t===V.QUOTATION_MARK?(this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this.currentToken.systemId="",this.state=rd):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo)))}[nd](t){t===V.QUOTATION_MARK?this.state=J3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fn(t)}[rd](t){t===V.APOSTROPHE?this.state=J3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fn(t)}[J3](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(jo)))}[jo](t){t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.NULL?this._err(Ae.unexpectedNullCharacter):t===V.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[U0](t){t===V.RIGHT_SQUARE_BRACKET?this.state=Tx:t===V.EOF?(this._err(Ae.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Tx](t){t===V.RIGHT_SQUARE_BRACKET?this.state=Sx:(this._emitChars("]"),this._reconsumeInState(U0))}[Sx](t){t===V.GREATER_THAN_SIGN?this.state=Ot:t===V.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(U0))}[Ju](t){this.tempBuff=[V.AMPERSAND],t===V.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Cx):e4(t)?this._reconsumeInState(wx):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[wx](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[V.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===V.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Ae.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Ax}[Ax](t){e4(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Fn(t):this._emitCodePoint(t):(t===V.SEMICOLON&&this._err(Ae.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Cx](t){this.charRefCode=0,t===V.LATIN_SMALL_X||t===V.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=kx):this._reconsumeInState(xx)}[kx](t){Kre(t)?this._reconsumeInState(Ix):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[xx](t){zd(t)?this._reconsumeInState(Rx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ix](t){MM(t)?this.charRefCode=this.charRefCode*16+t-55:FM(t)?this.charRefCode=this.charRefCode*16+t-87:zd(t)?this.charRefCode=this.charRefCode*16+t-48:t===V.SEMICOLON?this.state=id:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(id))}[Rx](t){zd(t)?this.charRefCode=this.charRefCode*10+t-48:t===V.SEMICOLON?this.state=id:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(id))}[id](){if(this.charRefCode===V.NULL)this._err(Ae.nullCharacterReference),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Ae.characterReferenceOutsideUnicodeRange),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(cn.isSurrogate(this.charRefCode))this._err(Ae.surrogateCharacterReference),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(cn.isUndefinedCodePoint(this.charRefCode))this._err(Ae.noncharacterCharacterReference);else if(cn.isControlCodePoint(this.charRefCode)||this.charRefCode===V.CARRIAGE_RETURN){this._err(Ae.controlCharacterReference);const t=Wre[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};wa.CHARACTER_TOKEN="CHARACTER_TOKEN";wa.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";wa.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";wa.START_TAG_TOKEN="START_TAG_TOKEN";wa.END_TAG_TOKEN="END_TAG_TOKEN";wa.COMMENT_TOKEN="COMMENT_TOKEN";wa.DOCTYPE_TOKEN="DOCTYPE_TOKEN";wa.EOF_TOKEN="EOF_TOKEN";wa.HIBERNATION_TOKEN="HIBERNATION_TOKEN";wa.MODE={DATA:Ot,RCDATA:u1,RAWTEXT:Sd,SCRIPT_DATA:Zo,PLAINTEXT:LM};wa.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var t2=wa,Za={};const t4=Za.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/"};Za.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Za.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const $e=Za.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"};Za.SPECIAL_ELEMENTS={[t4.HTML]:{[$e.ADDRESS]:!0,[$e.APPLET]:!0,[$e.AREA]:!0,[$e.ARTICLE]:!0,[$e.ASIDE]:!0,[$e.BASE]:!0,[$e.BASEFONT]:!0,[$e.BGSOUND]:!0,[$e.BLOCKQUOTE]:!0,[$e.BODY]:!0,[$e.BR]:!0,[$e.BUTTON]:!0,[$e.CAPTION]:!0,[$e.CENTER]:!0,[$e.COL]:!0,[$e.COLGROUP]:!0,[$e.DD]:!0,[$e.DETAILS]:!0,[$e.DIR]:!0,[$e.DIV]:!0,[$e.DL]:!0,[$e.DT]:!0,[$e.EMBED]:!0,[$e.FIELDSET]:!0,[$e.FIGCAPTION]:!0,[$e.FIGURE]:!0,[$e.FOOTER]:!0,[$e.FORM]:!0,[$e.FRAME]:!0,[$e.FRAMESET]:!0,[$e.H1]:!0,[$e.H2]:!0,[$e.H3]:!0,[$e.H4]:!0,[$e.H5]:!0,[$e.H6]:!0,[$e.HEAD]:!0,[$e.HEADER]:!0,[$e.HGROUP]:!0,[$e.HR]:!0,[$e.HTML]:!0,[$e.IFRAME]:!0,[$e.IMG]:!0,[$e.INPUT]:!0,[$e.LI]:!0,[$e.LINK]:!0,[$e.LISTING]:!0,[$e.MAIN]:!0,[$e.MARQUEE]:!0,[$e.MENU]:!0,[$e.META]:!0,[$e.NAV]:!0,[$e.NOEMBED]:!0,[$e.NOFRAMES]:!0,[$e.NOSCRIPT]:!0,[$e.OBJECT]:!0,[$e.OL]:!0,[$e.P]:!0,[$e.PARAM]:!0,[$e.PLAINTEXT]:!0,[$e.PRE]:!0,[$e.SCRIPT]:!0,[$e.SECTION]:!0,[$e.SELECT]:!0,[$e.SOURCE]:!0,[$e.STYLE]:!0,[$e.SUMMARY]:!0,[$e.TABLE]:!0,[$e.TBODY]:!0,[$e.TD]:!0,[$e.TEMPLATE]:!0,[$e.TEXTAREA]:!0,[$e.TFOOT]:!0,[$e.TH]:!0,[$e.THEAD]:!0,[$e.TITLE]:!0,[$e.TR]:!0,[$e.TRACK]:!0,[$e.UL]:!0,[$e.WBR]:!0,[$e.XMP]:!0},[t4.MATHML]:{[$e.MI]:!0,[$e.MO]:!0,[$e.MN]:!0,[$e.MS]:!0,[$e.MTEXT]:!0,[$e.ANNOTATION_XML]:!0},[t4.SVG]:{[$e.TITLE]:!0,[$e.FOREIGN_OBJECT]:!0,[$e.DESC]:!0}};const PM=Za,He=PM.TAG_NAMES,dn=PM.NAMESPACES;function Ox(e){switch(e.length){case 1:return e===He.P;case 2:return e===He.RB||e===He.RP||e===He.RT||e===He.DD||e===He.DT||e===He.LI;case 3:return e===He.RTC;case 6:return e===He.OPTION;case 8:return e===He.OPTGROUP}return!1}function Yre(e){switch(e.length){case 1:return e===He.P;case 2:return e===He.RB||e===He.RP||e===He.RT||e===He.DD||e===He.DT||e===He.LI||e===He.TD||e===He.TH||e===He.TR;case 3:return e===He.RTC;case 5:return e===He.TBODY||e===He.TFOOT||e===He.THEAD;case 6:return e===He.OPTION;case 7:return e===He.CAPTION;case 8:return e===He.OPTGROUP||e===He.COLGROUP}return!1}function $0(e,t){switch(e.length){case 2:if(e===He.TD||e===He.TH)return t===dn.HTML;if(e===He.MI||e===He.MO||e===He.MN||e===He.MS)return t===dn.MATHML;break;case 4:if(e===He.HTML)return t===dn.HTML;if(e===He.DESC)return t===dn.SVG;break;case 5:if(e===He.TABLE)return t===dn.HTML;if(e===He.MTEXT)return t===dn.MATHML;if(e===He.TITLE)return t===dn.SVG;break;case 6:return(e===He.APPLET||e===He.OBJECT)&&t===dn.HTML;case 7:return(e===He.CAPTION||e===He.MARQUEE)&&t===dn.HTML;case 8:return e===He.TEMPLATE&&t===dn.HTML;case 13:return e===He.FOREIGN_OBJECT&&t===dn.SVG;case 14:return e===He.ANNOTATION_XML&&t===dn.MATHML}return!1}let Xre=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===He.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===dn.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(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===dn.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===He.H1||t===He.H2||t===He.H3||t===He.H4||t===He.H5||t===He.H6&&n===dn.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===He.TD||t===He.TH&&n===dn.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==He.TABLE&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==He.TBODY&&this.currentTagName!==He.TFOOT&&this.currentTagName!==He.THEAD&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==He.TR&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===He.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===He.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if($0(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===He.H1||n===He.H2||n===He.H3||n===He.H4||n===He.H5||n===He.H6)&&r===dn.HTML)return!0;if($0(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if((r===He.UL||r===He.OL)&&i===dn.HTML||$0(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if(r===He.BUTTON&&i===dn.HTML||$0(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===dn.HTML){if(r===t)return!0;if(r===He.TABLE||r===He.TEMPLATE||r===He.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===dn.HTML){if(n===He.TBODY||n===He.THEAD||n===He.TFOOT)return!0;if(n===He.TABLE||n===He.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===dn.HTML){if(r===t)return!0;if(r!==He.OPTION&&r!==He.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Ox(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Yre(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Ox(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var Zre=Xre;const z0=3;let L9=class $s{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=z0){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===$s.MARKER_ENTRY)break;const u=s.element,c=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===a&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length=z0-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:$s.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:$s.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:$s.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===$s.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===$s.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===$s.ELEMENT_ENTRY&&r.element===t)return r}return null}};L9.MARKER_ENTRY="MARKER_ENTRY";L9.ELEMENT_ENTRY="ELEMENT_ENTRY";var Qre=L9;let BM=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};BM.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i{const a=n4.MODE[i];r[a]=function(o){t.ctLoc=t._getCurrentLocation(),n[a].call(this,o)}}),r}};var $M=nie;const rie=ms;let iie=class extends rie{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var aie=iie;const r4=ms,Lx=t2,oie=$M,sie=aie,lie=Za,i4=lie.TAG_NAMES;let uie=class extends r4{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===Lx.END_TAG_TOKEN&&a===n.tagName,s={};o?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const a=r4.install(this.tokenizer,oie);t.posTracker=a.posTracker,r4.install(this.openElements,sie,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===Lx.END_TAG_TOKEN&&(r.tagName===i4.HTML||r.tagName===i4.BODY&&this.openElements.hasInScope(i4.BODY)))for(let a=this.openElements.stackTop;a>=0;a--){const o=this.openElements.items[a];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),a=i.length;for(let o=0;o(Object.keys(i).forEach(a=>{r[a]=i[a]}),r),Object.create(null))},n2={};const{DOCUMENT_MODE:e1}=Za,jM="html",Nie="about:legacy-compat",Oie="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",GM=["+//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//"],Die=GM.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),Lie=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],VM=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Mie=VM.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Fx(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Px(e,t){for(let n=0;n-1)return e1.QUIRKS;let r=t===null?Die:GM;if(Px(n,r))return e1.QUIRKS;if(r=t===null?VM:Mie,Px(n,r))return e1.LIMITED_QUIRKS}return e1.NO_QUIRKS};n2.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Fx(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Fx(n)),r};var kl={};const a4=t2,F9=Za,ft=F9.TAG_NAMES,Tr=F9.NAMESPACES,Rh=F9.ATTRS,Bx={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Fie="definitionurl",Pie="definitionURL",Bie={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"},Uie={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Tr.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Tr.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Tr.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Tr.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Tr.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Tr.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Tr.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Tr.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Tr.XML},"xml:space":{prefix:"xml",name:"space",namespace:Tr.XML},xmlns:{prefix:"",name:"xmlns",namespace:Tr.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Tr.XMLNS}},$ie=kl.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"},zie={[ft.B]:!0,[ft.BIG]:!0,[ft.BLOCKQUOTE]:!0,[ft.BODY]:!0,[ft.BR]:!0,[ft.CENTER]:!0,[ft.CODE]:!0,[ft.DD]:!0,[ft.DIV]:!0,[ft.DL]:!0,[ft.DT]:!0,[ft.EM]:!0,[ft.EMBED]:!0,[ft.H1]:!0,[ft.H2]:!0,[ft.H3]:!0,[ft.H4]:!0,[ft.H5]:!0,[ft.H6]:!0,[ft.HEAD]:!0,[ft.HR]:!0,[ft.I]:!0,[ft.IMG]:!0,[ft.LI]:!0,[ft.LISTING]:!0,[ft.MENU]:!0,[ft.META]:!0,[ft.NOBR]:!0,[ft.OL]:!0,[ft.P]:!0,[ft.PRE]:!0,[ft.RUBY]:!0,[ft.S]:!0,[ft.SMALL]:!0,[ft.SPAN]:!0,[ft.STRONG]:!0,[ft.STRIKE]:!0,[ft.SUB]:!0,[ft.SUP]:!0,[ft.TABLE]:!0,[ft.TT]:!0,[ft.U]:!0,[ft.UL]:!0,[ft.VAR]:!0};kl.causesExit=function(e){const t=e.tagName;return t===ft.FONT&&(a4.getTokenAttr(e,Rh.COLOR)!==null||a4.getTokenAttr(e,Rh.SIZE)!==null||a4.getTokenAttr(e,Rh.FACE)!==null)?!0:zie[t]};kl.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),a=Jie[i];if(a){this.insertionMode=a;break}else if(!n&&(i===S.TD||i===S.TH)){this.insertionMode=o2;break}else if(!n&&i===S.HEAD){this.insertionMode=vc;break}else if(i===S.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===S.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===S.HTML){this.insertionMode=this.headElement?i2:r2;break}else if(n){this.insertionMode=To;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===S.TEMPLATE)break;if(i===S.TABLE){this.insertionMode=U9;return}}this.insertionMode=B9}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);if(i===S.TEMPLATE&&a===nt.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===S.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Ru.SPECIAL_ELEMENTS[r][n]}}var nae=tae;function rae(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ma(e,t),n}function iae(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function aae(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),u=s&&a>=Qie;!s||u?(u&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=oae(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function oae(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function sae(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===S.TEMPLATE&&i===nt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function lae(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Gs(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==S.TEMPLATE&&e._err(xr.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(xr.endTagWithoutMatchingOpenElement)}function Gd(e,t){e.openElements.pop(),e.insertionMode=i2,e._processToken(t)}function gae(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.BASEFONT||n===S.BGSOUND||n===S.HEAD||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.STYLE?dr(e,t):n===S.NOSCRIPT?e._err(xr.nestedNoscriptInHead):Vd(e,t)}function mae(e,t){const n=t.tagName;n===S.NOSCRIPT?(e.openElements.pop(),e.insertionMode=vc):n===S.BR?Vd(e,t):e._err(xr.endTagWithoutMatchingOpenElement)}function Vd(e,t){const n=t.type===Y.EOF_TOKEN?xr.openElementsLeftAfterEof:xr.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=vc,e._processToken(t)}function bae(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.BODY?(e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=To):n===S.FRAMESET?(e._insertElement(t,nt.HTML),e.insertionMode=s2):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.SCRIPT||n===S.STYLE||n===S.TEMPLATE||n===S.TITLE?(e._err(xr.abandonedHeadElementChild),e.openElements.push(e.headElement),dr(e,t),e.openElements.remove(e.headElement)):n===S.HEAD?e._err(xr.misplacedStartTagForHeadElement):Wd(e,t)}function yae(e,t){const n=t.tagName;n===S.BODY||n===S.HTML||n===S.BR?Wd(e,t):n===S.TEMPLATE?Nu(e,t):e._err(xr.endTagWithoutMatchingOpenElement)}function Wd(e,t){e._insertFakeElement(S.BODY),e.insertionMode=To,e._processToken(t)}function Gl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function j0(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Eae(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function vae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function _ae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,nt.HTML),e.insertionMode=s2)}function jo(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Tae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6)&&e.openElements.pop(),e._insertElement(t,nt.HTML)}function Gx(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Sae(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),n||(e.formElement=e.openElements.current))}function wae(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],a=e.treeAdapter.getTagName(i);let o=null;if(n===S.LI&&a===S.LI?o=S.LI:(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)&&(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Aae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.tokenizer.state=Y.MODE.PLAINTEXT}function Cae(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1}function kae(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);n&&(Gs(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function t1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xae(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(Gs(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Vx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Iae(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ru.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=Hr}function c1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Rae(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML);const n=Y.getTokenAttr(t,WM.TYPE);(!n||n.toLowerCase()!==qM)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Wx(e,t){e._appendElement(t,nt.HTML),t.ackSelfClosing=!0}function Nae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Oae(e,t){t.tagName=S.IMG,c1(e,t)}function Dae(e,t){e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Y.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Lg}function Lae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function Mae(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function qx(e,t){e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function Fae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode===Hr||e.insertionMode===a2||e.insertionMode===ga||e.insertionMode===ds||e.insertionMode===o2?e.insertionMode=U9:e.insertionMode=B9}function Kx(e,t){e.openElements.currentTagName===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function Yx(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,nt.HTML)}function Pae(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,nt.HTML)}function Bae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Uae(e,t){e._reconstructActiveFormattingElements(),mo.adjustTokenMathMLAttrs(t),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,nt.MATHML):e._insertElement(t,nt.MATHML),t.ackSelfClosing=!0}function $ae(e,t){e._reconstructActiveFormattingElements(),mo.adjustTokenSVGAttrs(t),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,nt.SVG):e._insertElement(t,nt.SVG),t.ackSelfClosing=!0}function ra(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function Ti(e,t){const n=t.tagName;switch(n.length){case 1:n===S.I||n===S.S||n===S.B||n===S.U?t1(e,t):n===S.P?jo(e,t):n===S.A?kae(e,t):ra(e,t);break;case 2:n===S.DL||n===S.OL||n===S.UL?jo(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?Tae(e,t):n===S.LI||n===S.DD||n===S.DT?wae(e,t):n===S.EM||n===S.TT?t1(e,t):n===S.BR?c1(e,t):n===S.HR?Nae(e,t):n===S.RB?Yx(e,t):n===S.RT||n===S.RP?Pae(e,t):n!==S.TH&&n!==S.TD&&n!==S.TR&&ra(e,t);break;case 3:n===S.DIV||n===S.DIR||n===S.NAV?jo(e,t):n===S.PRE?Gx(e,t):n===S.BIG?t1(e,t):n===S.IMG||n===S.WBR?c1(e,t):n===S.XMP?Lae(e,t):n===S.SVG?$ae(e,t):n===S.RTC?Yx(e,t):n!==S.COL&&ra(e,t);break;case 4:n===S.HTML?Eae(e,t):n===S.BASE||n===S.LINK||n===S.META?dr(e,t):n===S.BODY?vae(e,t):n===S.MAIN||n===S.MENU?jo(e,t):n===S.FORM?Sae(e,t):n===S.CODE||n===S.FONT?t1(e,t):n===S.NOBR?xae(e,t):n===S.AREA?c1(e,t):n===S.MATH?Uae(e,t):n===S.MENU?Bae(e,t):n!==S.HEAD&&ra(e,t);break;case 5:n===S.STYLE||n===S.TITLE?dr(e,t):n===S.ASIDE?jo(e,t):n===S.SMALL?t1(e,t):n===S.TABLE?Iae(e,t):n===S.EMBED?c1(e,t):n===S.INPUT?Rae(e,t):n===S.PARAM||n===S.TRACK?Wx(e,t):n===S.IMAGE?Oae(e,t):n!==S.FRAME&&n!==S.TBODY&&n!==S.TFOOT&&n!==S.THEAD&&ra(e,t);break;case 6:n===S.SCRIPT?dr(e,t):n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?jo(e,t):n===S.BUTTON?Cae(e,t):n===S.STRIKE||n===S.STRONG?t1(e,t):n===S.APPLET||n===S.OBJECT?Vx(e,t):n===S.KEYGEN?c1(e,t):n===S.SOURCE?Wx(e,t):n===S.IFRAME?Mae(e,t):n===S.SELECT?Fae(e,t):n===S.OPTION?Kx(e,t):ra(e,t);break;case 7:n===S.BGSOUND?dr(e,t):n===S.DETAILS||n===S.ADDRESS||n===S.ARTICLE||n===S.SECTION||n===S.SUMMARY?jo(e,t):n===S.LISTING?Gx(e,t):n===S.MARQUEE?Vx(e,t):n===S.NOEMBED?qx(e,t):n!==S.CAPTION&&ra(e,t);break;case 8:n===S.BASEFONT?dr(e,t):n===S.FRAMESET?_ae(e,t):n===S.FIELDSET?jo(e,t):n===S.TEXTAREA?Dae(e,t):n===S.TEMPLATE?dr(e,t):n===S.NOSCRIPT?e.options.scriptingEnabled?qx(e,t):ra(e,t):n===S.OPTGROUP?Kx(e,t):n!==S.COLGROUP&&ra(e,t);break;case 9:n===S.PLAINTEXT?Aae(e,t):ra(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?jo(e,t):ra(e,t);break;default:ra(e,t)}}function zae(e){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=$9)}function Hae(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=$9,e._processToken(t))}function Ps(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function jae(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):e.openElements.remove(n))}function Gae(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(S.P),e._closePElement()}function Vae(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function Wae(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function qae(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Xx(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Kae(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(S.BR),e.openElements.pop(),e.framesetOk=!1}function Ma(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function z9(e,t){const n=t.tagName;switch(n.length){case 1:n===S.A||n===S.B||n===S.I||n===S.S||n===S.U?Gs(e,t):n===S.P?Gae(e):Ma(e,t);break;case 2:n===S.DL||n===S.UL||n===S.OL?Ps(e,t):n===S.LI?Vae(e):n===S.DD||n===S.DT?Wae(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?qae(e):n===S.BR?Kae(e):n===S.EM||n===S.TT?Gs(e,t):Ma(e,t);break;case 3:n===S.BIG?Gs(e,t):n===S.DIR||n===S.DIV||n===S.NAV||n===S.PRE?Ps(e,t):Ma(e,t);break;case 4:n===S.BODY?zae(e):n===S.HTML?Hae(e,t):n===S.FORM?jae(e):n===S.CODE||n===S.FONT||n===S.NOBR?Gs(e,t):n===S.MAIN||n===S.MENU?Ps(e,t):Ma(e,t);break;case 5:n===S.ASIDE?Ps(e,t):n===S.SMALL?Gs(e,t):Ma(e,t);break;case 6:n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Ps(e,t):n===S.APPLET||n===S.OBJECT?Xx(e,t):n===S.STRIKE||n===S.STRONG?Gs(e,t):Ma(e,t);break;case 7:n===S.ADDRESS||n===S.ARTICLE||n===S.DETAILS||n===S.SECTION||n===S.SUMMARY||n===S.LISTING?Ps(e,t):n===S.MARQUEE?Xx(e,t):Ma(e,t);break;case 8:n===S.FIELDSET?Ps(e,t):n===S.TEMPLATE?Nu(e,t):Ma(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Ps(e,t):Ma(e,t);break;default:Ma(e,t)}}function Go(e,t){e.tmplInsertionModeStackTop>-1?nF(e,t):e.stopped=!0}function Yae(e,t){t.tagName===S.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Xae(e,t){e._err(xr.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Vo(e,t){const n=e.openElements.currentTagName;n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=XM,e._processToken(t)):ia(e,t)}function Zae(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,nt.HTML),e.insertionMode=a2}function Qae(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=Wp}function Jae(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.COLGROUP),e.insertionMode=Wp,e._processToken(t)}function eoe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=ga}function toe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.TBODY),e.insertionMode=ga,e._processToken(t)}function noe(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processToken(t))}function roe(e,t){const n=Y.getTokenAttr(t,WM.TYPE);n&&n.toLowerCase()===qM?e._appendElement(t,nt.HTML):ia(e,t),t.ackSelfClosing=!0}function ioe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,nt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function H9(e,t){const n=t.tagName;switch(n.length){case 2:n===S.TD||n===S.TH||n===S.TR?toe(e,t):ia(e,t);break;case 3:n===S.COL?Jae(e,t):ia(e,t);break;case 4:n===S.FORM?ioe(e,t):ia(e,t);break;case 5:n===S.TABLE?noe(e,t):n===S.STYLE?dr(e,t):n===S.TBODY||n===S.TFOOT||n===S.THEAD?eoe(e,t):n===S.INPUT?roe(e,t):ia(e,t);break;case 6:n===S.SCRIPT?dr(e,t):ia(e,t);break;case 7:n===S.CAPTION?Zae(e,t):ia(e,t);break;case 8:n===S.COLGROUP?Qae(e,t):n===S.TEMPLATE?dr(e,t):ia(e,t);break;default:ia(e,t)}}function j9(e,t){const n=t.tagName;n===S.TABLE?e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode()):n===S.TEMPLATE?Nu(e,t):n!==S.BODY&&n!==S.CAPTION&&n!==S.COL&&n!==S.COLGROUP&&n!==S.HTML&&n!==S.TBODY&&n!==S.TD&&n!==S.TFOOT&&n!==S.TH&&n!==S.THEAD&&n!==S.TR&&ia(e,t)}function ia(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function aoe(e,t){e.pendingCharacterTokens.push(t)}function ooe(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function sd(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function _oe(e,t){t.tagName===S.HTML?Ti(e,t):Pg(e,t)}function Toe(e,t){t.tagName===S.HTML?e.fragmentContext||(e.insertionMode=QM):Pg(e,t)}function Pg(e,t){e.insertionMode=To,e._processToken(t)}function Soe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.FRAMESET?e._insertElement(t,nt.HTML):n===S.FRAME?(e._appendElement(t,nt.HTML),t.ackSelfClosing=!0):n===S.NOFRAMES&&dr(e,t)}function woe(e,t){t.tagName===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==S.FRAMESET&&(e.insertionMode=ZM))}function Aoe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.NOFRAMES&&dr(e,t)}function Coe(e,t){t.tagName===S.HTML&&(e.insertionMode=JM)}function koe(e,t){t.tagName===S.HTML?Ti(e,t):Nh(e,t)}function Nh(e,t){e.insertionMode=To,e._processToken(t)}function xoe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.NOFRAMES&&dr(e,t)}function Ioe(e,t){t.chars=Yie.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Roe(e,t){e._insertCharacters(t),e.framesetOk=!1}function Noe(e,t){if(mo.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==nt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===nt.MATHML?mo.adjustTokenMathMLAttrs(t):r===nt.SVG&&(mo.adjustTokenSVGTagName(t),mo.adjustTokenSVGAttrs(t)),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Ooe(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===nt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Doe=Vi(nae),Zx=/[#.]/g;function Loe(e,t){const n=e||"",r={};let i=0,a,o;for(;i-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function a(o){const s=o&&o.line,u=o&&o.column;if(typeof s=="number"&&typeof u=="number"&&!Number.isNaN(s)&&!Number.isNaN(u)&&s-1 in n){const c=(n[s-2]||0)+u-1||0;if(c>-1&&c{const P=N;if(P.value.stitch&&q!==null&&B!==null)return q.children[B]=P.value.stitch,B}),e.type!=="root"&&f.type==="root"&&f.children.length===1)return f.children[0];return f;function m(){const N={nodeName:"template",tagName:"template",attrs:[],namespaceURI:wp.html,childNodes:[]},B={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:wp.html,childNodes:[]},q={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(B,N),i._pushTmplInsertionMode(ase),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),i._adoptNodes(B.childNodes[0],q),q}function g(){const N=i.treeAdapter.createDocument();if(i._bootstrap(N,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),N}function b(N){let B=-1;if(N)for(;++BsF(t,n,e)}const vse=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,_se=Object.hasOwnProperty;class Tse{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Sse(t,n===!0);const a=i;for(;_se.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Sse(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(vse,"").replace(/ /g,"-"))}const wse={}.hasOwnProperty;function Vr(e,t){const n=typeof t=="string"&&Ase(e)&&e.type==="element"&&e.properties&&wse.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}function Ase(e){return!!(e&&typeof e=="object"&&"type"in e)}function lF(e){const t=e&&e.type==="element"&&e.tagName.toLowerCase()||"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}function R1(e){return"children"in e?uF(e):"value"in e?e.value:""}function Cse(e){return e.type==="text"?e.value:"children"in e?uF(e):""}function uF(e){let t=-1;const n=[];for(;++t{tI.reset(),Hi(n,"element",r=>{lF(r)&&r.properties&&!Vr(r,"id")&&(r.properties.id=t+tI.slug(R1(r)))})}}const cF=function(e){if(e==null)return W9;if(typeof e=="string")return Ise(e);if(typeof e=="object")return xse(e);if(typeof e=="function")return dF(e);throw new Error("Expected function, string, or array as test")};function xse(e){const t=[];let n=-1;for(;++n{Hi(g,"element",(b,y,T)=>{if(lF(b)&&Vr(b,"id")&&a(b,y,T))return o(b,y,T)})};function s(g){return g.children[n==="prepend"?"unshift":"push"](m(g,k1(!0,{},t),p(r,g))),[$d]}function u(g,b,y){if(typeof b!="number"||!y)return;const T=m(g,k1(!0,{},t),p(r,g));let E=n==="before"?[T,g]:[g,T];if(i){const v=f(i,g);v&&!Array.isArray(v)&&v.type==="element"&&(v.children=E,E=[v])}return y.children.splice(b,1,...E),[$d,b+E.length]}function c(g){return g.children=[m(g,k1(!0,{},t),g.children)],[$d]}function p(g,b){const y=f(g,b);return Array.isArray(y)?y:[y]}function f(g,b){return typeof g=="function"?g(b):k1(!0,Array.isArray(g)?[]:{},g)}function m(g,b,y){return{type:"element",tagName:"a",properties:Object.assign({},b,{href:"#"+(g.properties||{}).id}),children:y}}}const Ose=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Dse=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},pF=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?pF(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},nI=({value:e=""})=>{const t=Ose(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},rI=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Lse=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Hi(r,"element",(i,a,o)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&o&&Array.isArray(o.children)&&o.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof a=="number"){const u=Dse(o.children,a);if(u){const c=nI(u);Object.keys(c).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=rI(s.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&o&&Array.isArray(o.children)&&typeof a=="number"){const s=pF(o.children,a,"",n);if(s){const u=nI(s);Object.keys(u).length>0&&(i.properties=rI(i.properties,u,t))}}})}},Mse=Lse,Fse=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Hi(r,(i,a,o)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let c=(u.value||"").trim();if(c=c.replace(/^/,"$1"),c===t)return s=!0,!1;if(c===n)return s=!1,!1}return!s})}})}},Pse=Fse,Bse={}.hasOwnProperty,Use=function(e,t,n){const r=Qm(n||t),i=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,a=i??!0;return o(e);function o(s,u,c){const p=[];if(!r(s,u,c))return null;if(s.children){let g=-1;for(;++g0&&p.length===0)return null}const f={};let m;for(m in s)Bse.call(s,m)&&(f[m]=m==="children"?p:s[m]);return f}};var cy={exports:{}};(function(e,t){function n(r){let i=[],a;for(let o of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(o))i.push(parseInt(o,10));else if(a=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,u,c,p]=a;if(u&&p){u=parseInt(u),p=parseInt(p);const f=u]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Qa.displayName="c";Qa.aliases=[];function Qa(e){e.register(Lt),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Ou.displayName="cpp";Ou.aliases=[];function Ou(e){e.register(Qa),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}u2.displayName="arduino";u2.aliases=["ino"];function u2(e){e.register(Ou),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}qp.displayName="bash";qp.aliases=["sh","shell"];function qp(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=i.variable[1].inside,s=0;s>/g,function(le,L){return"(?:"+pe[+L]+")"})}function r(D,pe,le){return RegExp(n(D,pe),le||"")}function i(D,pe){for(var le=0;le>/g,function(){return"(?:"+D+")"});return D.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(D){return"\\b(?:"+D.trim().replace(/ /g,"|")+")\\b"}var s=o(a.typeDeclaration),u=RegExp(o(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=o(a.typeDeclaration+" "+a.contextual+" "+a.other),p=o(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,b=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),y=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,b]),T=/\[\s*(?:,\s*)*\]/.source,E=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,T]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,m,T]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),A=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,T]),R={keyword:u,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,N=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,A]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,b]),lookbehind:!0,inside:R},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:R},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[E]),lookbehind:!0,inside:R},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[A,p,g]),inside:R}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:R},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[A,y]),inside:R,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[A]),lookbehind:!0,inside:R,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:R}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,b,g,A,u.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,m]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(A),greedy:!0,inside:R},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var q=N+"|"+k,P=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[q]),Q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),$=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,oe=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,Q]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[$,oe]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[$]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[Q]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var fe=/:[^}\r\n]+/.source,ce=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),De=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ce,fe]),H=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[q]),2),W=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,fe]);function se(D,pe){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[D]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[pe,fe]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[De]),lookbehind:!0,greedy:!0,inside:se(De,ce)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[W]),lookbehind:!0,greedy:!0,inside:se(W,H)}],char:{pattern:RegExp(k),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}gr.displayName="markup";gr.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function gr(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}xl.displayName="css";xl.aliases=[];function xl(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}c2.displayName="diff";c2.aliases=[];function c2(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r +`)&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}};var UM=eie;const Dx=bs,n4=t2,tie=UM;let nie=class extends Dx{constructor(t){super(t),this.tokenizer=t,this.posTracker=Dx.install(t.preprocessor,tie),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;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,a){n._createCharacterToken.call(this,i,a),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===n4.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(n4.MODE).forEach(i=>{const a=n4.MODE[i];r[a]=function(o){t.ctLoc=t._getCurrentLocation(),n[a].call(this,o)}}),r}};var $M=nie;const rie=bs;let iie=class extends rie{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var aie=iie;const r4=bs,Lx=t2,oie=$M,sie=aie,lie=Za,i4=lie.TAG_NAMES;let uie=class extends r4{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===Lx.END_TAG_TOKEN&&a===n.tagName,s={};o?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const a=r4.install(this.tokenizer,oie);t.posTracker=a.posTracker,r4.install(this.openElements,sie,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===Lx.END_TAG_TOKEN&&(r.tagName===i4.HTML||r.tagName===i4.BODY&&this.openElements.hasInScope(i4.BODY)))for(let a=this.openElements.stackTop;a>=0;a--){const o=this.openElements.items[a];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),a=i.length;for(let o=0;o(Object.keys(i).forEach(a=>{r[a]=i[a]}),r),Object.create(null))},n2={};const{DOCUMENT_MODE:e1}=Za,jM="html",Nie="about:legacy-compat",Oie="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",GM=["+//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//"],Die=GM.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),Lie=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],VM=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Mie=VM.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Fx(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Px(e,t){for(let n=0;n-1)return e1.QUIRKS;let r=t===null?Die:GM;if(Px(n,r))return e1.QUIRKS;if(r=t===null?VM:Mie,Px(n,r))return e1.LIMITED_QUIRKS}return e1.NO_QUIRKS};n2.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Fx(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Fx(n)),r};var kl={};const a4=t2,F9=Za,ft=F9.TAG_NAMES,Tr=F9.NAMESPACES,Rh=F9.ATTRS,Bx={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Fie="definitionurl",Pie="definitionURL",Bie={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"},Uie={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Tr.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Tr.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Tr.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Tr.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Tr.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Tr.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Tr.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Tr.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Tr.XML},"xml:space":{prefix:"xml",name:"space",namespace:Tr.XML},xmlns:{prefix:"",name:"xmlns",namespace:Tr.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Tr.XMLNS}},$ie=kl.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"},zie={[ft.B]:!0,[ft.BIG]:!0,[ft.BLOCKQUOTE]:!0,[ft.BODY]:!0,[ft.BR]:!0,[ft.CENTER]:!0,[ft.CODE]:!0,[ft.DD]:!0,[ft.DIV]:!0,[ft.DL]:!0,[ft.DT]:!0,[ft.EM]:!0,[ft.EMBED]:!0,[ft.H1]:!0,[ft.H2]:!0,[ft.H3]:!0,[ft.H4]:!0,[ft.H5]:!0,[ft.H6]:!0,[ft.HEAD]:!0,[ft.HR]:!0,[ft.I]:!0,[ft.IMG]:!0,[ft.LI]:!0,[ft.LISTING]:!0,[ft.MENU]:!0,[ft.META]:!0,[ft.NOBR]:!0,[ft.OL]:!0,[ft.P]:!0,[ft.PRE]:!0,[ft.RUBY]:!0,[ft.S]:!0,[ft.SMALL]:!0,[ft.SPAN]:!0,[ft.STRONG]:!0,[ft.STRIKE]:!0,[ft.SUB]:!0,[ft.SUP]:!0,[ft.TABLE]:!0,[ft.TT]:!0,[ft.U]:!0,[ft.UL]:!0,[ft.VAR]:!0};kl.causesExit=function(e){const t=e.tagName;return t===ft.FONT&&(a4.getTokenAttr(e,Rh.COLOR)!==null||a4.getTokenAttr(e,Rh.SIZE)!==null||a4.getTokenAttr(e,Rh.FACE)!==null)?!0:zie[t]};kl.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),a=Jie[i];if(a){this.insertionMode=a;break}else if(!n&&(i===S.TD||i===S.TH)){this.insertionMode=o2;break}else if(!n&&i===S.HEAD){this.insertionMode=vc;break}else if(i===S.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===S.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===S.HTML){this.insertionMode=this.headElement?i2:r2;break}else if(n){this.insertionMode=To;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===S.TEMPLATE)break;if(i===S.TABLE){this.insertionMode=U9;return}}this.insertionMode=B9}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);if(i===S.TEMPLATE&&a===nt.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===S.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Ru.SPECIAL_ELEMENTS[r][n]}}var nae=tae;function rae(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ma(e,t),n}function iae(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function aae(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),u=s&&a>=Qie;!s||u?(u&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=oae(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function oae(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function sae(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===S.TEMPLATE&&i===nt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function lae(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Gs(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==S.TEMPLATE&&e._err(xr.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(xr.endTagWithoutMatchingOpenElement)}function Gd(e,t){e.openElements.pop(),e.insertionMode=i2,e._processToken(t)}function gae(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.BASEFONT||n===S.BGSOUND||n===S.HEAD||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.STYLE?dr(e,t):n===S.NOSCRIPT?e._err(xr.nestedNoscriptInHead):Vd(e,t)}function mae(e,t){const n=t.tagName;n===S.NOSCRIPT?(e.openElements.pop(),e.insertionMode=vc):n===S.BR?Vd(e,t):e._err(xr.endTagWithoutMatchingOpenElement)}function Vd(e,t){const n=t.type===Y.EOF_TOKEN?xr.openElementsLeftAfterEof:xr.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=vc,e._processToken(t)}function bae(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.BODY?(e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=To):n===S.FRAMESET?(e._insertElement(t,nt.HTML),e.insertionMode=s2):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.SCRIPT||n===S.STYLE||n===S.TEMPLATE||n===S.TITLE?(e._err(xr.abandonedHeadElementChild),e.openElements.push(e.headElement),dr(e,t),e.openElements.remove(e.headElement)):n===S.HEAD?e._err(xr.misplacedStartTagForHeadElement):Wd(e,t)}function yae(e,t){const n=t.tagName;n===S.BODY||n===S.HTML||n===S.BR?Wd(e,t):n===S.TEMPLATE?Nu(e,t):e._err(xr.endTagWithoutMatchingOpenElement)}function Wd(e,t){e._insertFakeElement(S.BODY),e.insertionMode=To,e._processToken(t)}function Gl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function j0(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Eae(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function vae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function _ae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,nt.HTML),e.insertionMode=s2)}function Go(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Tae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6)&&e.openElements.pop(),e._insertElement(t,nt.HTML)}function Gx(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Sae(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),n||(e.formElement=e.openElements.current))}function wae(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],a=e.treeAdapter.getTagName(i);let o=null;if(n===S.LI&&a===S.LI?o=S.LI:(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)&&(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Aae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.tokenizer.state=Y.MODE.PLAINTEXT}function Cae(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1}function kae(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);n&&(Gs(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function t1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xae(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(Gs(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Vx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Iae(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ru.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=Hr}function c1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Rae(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML);const n=Y.getTokenAttr(t,WM.TYPE);(!n||n.toLowerCase()!==qM)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Wx(e,t){e._appendElement(t,nt.HTML),t.ackSelfClosing=!0}function Nae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Oae(e,t){t.tagName=S.IMG,c1(e,t)}function Dae(e,t){e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Y.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Lg}function Lae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function Mae(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function qx(e,t){e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function Fae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode===Hr||e.insertionMode===a2||e.insertionMode===ga||e.insertionMode===ps||e.insertionMode===o2?e.insertionMode=U9:e.insertionMode=B9}function Kx(e,t){e.openElements.currentTagName===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function Yx(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,nt.HTML)}function Pae(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,nt.HTML)}function Bae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Uae(e,t){e._reconstructActiveFormattingElements(),mo.adjustTokenMathMLAttrs(t),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,nt.MATHML):e._insertElement(t,nt.MATHML),t.ackSelfClosing=!0}function $ae(e,t){e._reconstructActiveFormattingElements(),mo.adjustTokenSVGAttrs(t),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,nt.SVG):e._insertElement(t,nt.SVG),t.ackSelfClosing=!0}function ra(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function Ti(e,t){const n=t.tagName;switch(n.length){case 1:n===S.I||n===S.S||n===S.B||n===S.U?t1(e,t):n===S.P?Go(e,t):n===S.A?kae(e,t):ra(e,t);break;case 2:n===S.DL||n===S.OL||n===S.UL?Go(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?Tae(e,t):n===S.LI||n===S.DD||n===S.DT?wae(e,t):n===S.EM||n===S.TT?t1(e,t):n===S.BR?c1(e,t):n===S.HR?Nae(e,t):n===S.RB?Yx(e,t):n===S.RT||n===S.RP?Pae(e,t):n!==S.TH&&n!==S.TD&&n!==S.TR&&ra(e,t);break;case 3:n===S.DIV||n===S.DIR||n===S.NAV?Go(e,t):n===S.PRE?Gx(e,t):n===S.BIG?t1(e,t):n===S.IMG||n===S.WBR?c1(e,t):n===S.XMP?Lae(e,t):n===S.SVG?$ae(e,t):n===S.RTC?Yx(e,t):n!==S.COL&&ra(e,t);break;case 4:n===S.HTML?Eae(e,t):n===S.BASE||n===S.LINK||n===S.META?dr(e,t):n===S.BODY?vae(e,t):n===S.MAIN||n===S.MENU?Go(e,t):n===S.FORM?Sae(e,t):n===S.CODE||n===S.FONT?t1(e,t):n===S.NOBR?xae(e,t):n===S.AREA?c1(e,t):n===S.MATH?Uae(e,t):n===S.MENU?Bae(e,t):n!==S.HEAD&&ra(e,t);break;case 5:n===S.STYLE||n===S.TITLE?dr(e,t):n===S.ASIDE?Go(e,t):n===S.SMALL?t1(e,t):n===S.TABLE?Iae(e,t):n===S.EMBED?c1(e,t):n===S.INPUT?Rae(e,t):n===S.PARAM||n===S.TRACK?Wx(e,t):n===S.IMAGE?Oae(e,t):n!==S.FRAME&&n!==S.TBODY&&n!==S.TFOOT&&n!==S.THEAD&&ra(e,t);break;case 6:n===S.SCRIPT?dr(e,t):n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Go(e,t):n===S.BUTTON?Cae(e,t):n===S.STRIKE||n===S.STRONG?t1(e,t):n===S.APPLET||n===S.OBJECT?Vx(e,t):n===S.KEYGEN?c1(e,t):n===S.SOURCE?Wx(e,t):n===S.IFRAME?Mae(e,t):n===S.SELECT?Fae(e,t):n===S.OPTION?Kx(e,t):ra(e,t);break;case 7:n===S.BGSOUND?dr(e,t):n===S.DETAILS||n===S.ADDRESS||n===S.ARTICLE||n===S.SECTION||n===S.SUMMARY?Go(e,t):n===S.LISTING?Gx(e,t):n===S.MARQUEE?Vx(e,t):n===S.NOEMBED?qx(e,t):n!==S.CAPTION&&ra(e,t);break;case 8:n===S.BASEFONT?dr(e,t):n===S.FRAMESET?_ae(e,t):n===S.FIELDSET?Go(e,t):n===S.TEXTAREA?Dae(e,t):n===S.TEMPLATE?dr(e,t):n===S.NOSCRIPT?e.options.scriptingEnabled?qx(e,t):ra(e,t):n===S.OPTGROUP?Kx(e,t):n!==S.COLGROUP&&ra(e,t);break;case 9:n===S.PLAINTEXT?Aae(e,t):ra(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Go(e,t):ra(e,t);break;default:ra(e,t)}}function zae(e){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=$9)}function Hae(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=$9,e._processToken(t))}function Ps(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function jae(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):e.openElements.remove(n))}function Gae(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(S.P),e._closePElement()}function Vae(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function Wae(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function qae(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Xx(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Kae(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(S.BR),e.openElements.pop(),e.framesetOk=!1}function Ma(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function z9(e,t){const n=t.tagName;switch(n.length){case 1:n===S.A||n===S.B||n===S.I||n===S.S||n===S.U?Gs(e,t):n===S.P?Gae(e):Ma(e,t);break;case 2:n===S.DL||n===S.UL||n===S.OL?Ps(e,t):n===S.LI?Vae(e):n===S.DD||n===S.DT?Wae(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?qae(e):n===S.BR?Kae(e):n===S.EM||n===S.TT?Gs(e,t):Ma(e,t);break;case 3:n===S.BIG?Gs(e,t):n===S.DIR||n===S.DIV||n===S.NAV||n===S.PRE?Ps(e,t):Ma(e,t);break;case 4:n===S.BODY?zae(e):n===S.HTML?Hae(e,t):n===S.FORM?jae(e):n===S.CODE||n===S.FONT||n===S.NOBR?Gs(e,t):n===S.MAIN||n===S.MENU?Ps(e,t):Ma(e,t);break;case 5:n===S.ASIDE?Ps(e,t):n===S.SMALL?Gs(e,t):Ma(e,t);break;case 6:n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Ps(e,t):n===S.APPLET||n===S.OBJECT?Xx(e,t):n===S.STRIKE||n===S.STRONG?Gs(e,t):Ma(e,t);break;case 7:n===S.ADDRESS||n===S.ARTICLE||n===S.DETAILS||n===S.SECTION||n===S.SUMMARY||n===S.LISTING?Ps(e,t):n===S.MARQUEE?Xx(e,t):Ma(e,t);break;case 8:n===S.FIELDSET?Ps(e,t):n===S.TEMPLATE?Nu(e,t):Ma(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Ps(e,t):Ma(e,t);break;default:Ma(e,t)}}function Vo(e,t){e.tmplInsertionModeStackTop>-1?nF(e,t):e.stopped=!0}function Yae(e,t){t.tagName===S.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Xae(e,t){e._err(xr.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Wo(e,t){const n=e.openElements.currentTagName;n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=XM,e._processToken(t)):ia(e,t)}function Zae(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,nt.HTML),e.insertionMode=a2}function Qae(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=Wp}function Jae(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.COLGROUP),e.insertionMode=Wp,e._processToken(t)}function eoe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=ga}function toe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.TBODY),e.insertionMode=ga,e._processToken(t)}function noe(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processToken(t))}function roe(e,t){const n=Y.getTokenAttr(t,WM.TYPE);n&&n.toLowerCase()===qM?e._appendElement(t,nt.HTML):ia(e,t),t.ackSelfClosing=!0}function ioe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,nt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function H9(e,t){const n=t.tagName;switch(n.length){case 2:n===S.TD||n===S.TH||n===S.TR?toe(e,t):ia(e,t);break;case 3:n===S.COL?Jae(e,t):ia(e,t);break;case 4:n===S.FORM?ioe(e,t):ia(e,t);break;case 5:n===S.TABLE?noe(e,t):n===S.STYLE?dr(e,t):n===S.TBODY||n===S.TFOOT||n===S.THEAD?eoe(e,t):n===S.INPUT?roe(e,t):ia(e,t);break;case 6:n===S.SCRIPT?dr(e,t):ia(e,t);break;case 7:n===S.CAPTION?Zae(e,t):ia(e,t);break;case 8:n===S.COLGROUP?Qae(e,t):n===S.TEMPLATE?dr(e,t):ia(e,t);break;default:ia(e,t)}}function j9(e,t){const n=t.tagName;n===S.TABLE?e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode()):n===S.TEMPLATE?Nu(e,t):n!==S.BODY&&n!==S.CAPTION&&n!==S.COL&&n!==S.COLGROUP&&n!==S.HTML&&n!==S.TBODY&&n!==S.TD&&n!==S.TFOOT&&n!==S.TH&&n!==S.THEAD&&n!==S.TR&&ia(e,t)}function ia(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function aoe(e,t){e.pendingCharacterTokens.push(t)}function ooe(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function sd(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function _oe(e,t){t.tagName===S.HTML?Ti(e,t):Pg(e,t)}function Toe(e,t){t.tagName===S.HTML?e.fragmentContext||(e.insertionMode=QM):Pg(e,t)}function Pg(e,t){e.insertionMode=To,e._processToken(t)}function Soe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.FRAMESET?e._insertElement(t,nt.HTML):n===S.FRAME?(e._appendElement(t,nt.HTML),t.ackSelfClosing=!0):n===S.NOFRAMES&&dr(e,t)}function woe(e,t){t.tagName===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==S.FRAMESET&&(e.insertionMode=ZM))}function Aoe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.NOFRAMES&&dr(e,t)}function Coe(e,t){t.tagName===S.HTML&&(e.insertionMode=JM)}function koe(e,t){t.tagName===S.HTML?Ti(e,t):Nh(e,t)}function Nh(e,t){e.insertionMode=To,e._processToken(t)}function xoe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.NOFRAMES&&dr(e,t)}function Ioe(e,t){t.chars=Yie.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Roe(e,t){e._insertCharacters(t),e.framesetOk=!1}function Noe(e,t){if(mo.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==nt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===nt.MATHML?mo.adjustTokenMathMLAttrs(t):r===nt.SVG&&(mo.adjustTokenSVGTagName(t),mo.adjustTokenSVGAttrs(t)),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Ooe(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===nt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Doe=Vi(nae),Zx=/[#.]/g;function Loe(e,t){const n=e||"",r={};let i=0,a,o;for(;i-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function a(o){const s=o&&o.line,u=o&&o.column;if(typeof s=="number"&&typeof u=="number"&&!Number.isNaN(s)&&!Number.isNaN(u)&&s-1 in n){const c=(n[s-2]||0)+u-1||0;if(c>-1&&c{const P=N;if(P.value.stitch&&q!==null&&B!==null)return q.children[B]=P.value.stitch,B}),e.type!=="root"&&f.type==="root"&&f.children.length===1)return f.children[0];return f;function m(){const N={nodeName:"template",tagName:"template",attrs:[],namespaceURI:wp.html,childNodes:[]},B={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:wp.html,childNodes:[]},q={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(B,N),i._pushTmplInsertionMode(ase),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),i._adoptNodes(B.childNodes[0],q),q}function g(){const N=i.treeAdapter.createDocument();if(i._bootstrap(N,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),N}function b(N){let B=-1;if(N)for(;++BsF(t,n,e)}const vse=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,_se=Object.hasOwnProperty;class Tse{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Sse(t,n===!0);const a=i;for(;_se.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Sse(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(vse,"").replace(/ /g,"-"))}const wse={}.hasOwnProperty;function Vr(e,t){const n=typeof t=="string"&&Ase(e)&&e.type==="element"&&e.properties&&wse.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}function Ase(e){return!!(e&&typeof e=="object"&&"type"in e)}function lF(e){const t=e&&e.type==="element"&&e.tagName.toLowerCase()||"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}function R1(e){return"children"in e?uF(e):"value"in e?e.value:""}function Cse(e){return e.type==="text"?e.value:"children"in e?uF(e):""}function uF(e){let t=-1;const n=[];for(;++t{tI.reset(),Hi(n,"element",r=>{lF(r)&&r.properties&&!Vr(r,"id")&&(r.properties.id=t+tI.slug(R1(r)))})}}const cF=function(e){if(e==null)return W9;if(typeof e=="string")return Ise(e);if(typeof e=="object")return xse(e);if(typeof e=="function")return dF(e);throw new Error("Expected function, string, or array as test")};function xse(e){const t=[];let n=-1;for(;++n{Hi(g,"element",(b,y,T)=>{if(lF(b)&&Vr(b,"id")&&a(b,y,T))return o(b,y,T)})};function s(g){return g.children[n==="prepend"?"unshift":"push"](m(g,k1(!0,{},t),p(r,g))),[$d]}function u(g,b,y){if(typeof b!="number"||!y)return;const T=m(g,k1(!0,{},t),p(r,g));let E=n==="before"?[T,g]:[g,T];if(i){const v=f(i,g);v&&!Array.isArray(v)&&v.type==="element"&&(v.children=E,E=[v])}return y.children.splice(b,1,...E),[$d,b+E.length]}function c(g){return g.children=[m(g,k1(!0,{},t),g.children)],[$d]}function p(g,b){const y=f(g,b);return Array.isArray(y)?y:[y]}function f(g,b){return typeof g=="function"?g(b):k1(!0,Array.isArray(g)?[]:{},g)}function m(g,b,y){return{type:"element",tagName:"a",properties:Object.assign({},b,{href:"#"+(g.properties||{}).id}),children:y}}}const Ose=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Dse=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},pF=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?pF(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},nI=({value:e=""})=>{const t=Ose(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},rI=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Lse=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Hi(r,"element",(i,a,o)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&o&&Array.isArray(o.children)&&o.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof a=="number"){const u=Dse(o.children,a);if(u){const c=nI(u);Object.keys(c).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=rI(s.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&o&&Array.isArray(o.children)&&typeof a=="number"){const s=pF(o.children,a,"",n);if(s){const u=nI(s);Object.keys(u).length>0&&(i.properties=rI(i.properties,u,t))}}})}},Mse=Lse,Fse=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Hi(r,(i,a,o)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let c=(u.value||"").trim();if(c=c.replace(/^/,"$1"),c===t)return s=!0,!1;if(c===n)return s=!1,!1}return!s})}})}},Pse=Fse,Bse={}.hasOwnProperty,Use=function(e,t,n){const r=Qm(n||t),i=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,a=i??!0;return o(e);function o(s,u,c){const p=[];if(!r(s,u,c))return null;if(s.children){let g=-1;for(;++g0&&p.length===0)return null}const f={};let m;for(m in s)Bse.call(s,m)&&(f[m]=m==="children"?p:s[m]);return f}};var cy={exports:{}};(function(e,t){function n(r){let i=[],a;for(let o of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(o))i.push(parseInt(o,10));else if(a=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,u,c,p]=a;if(u&&p){u=parseInt(u),p=parseInt(p);const f=u]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Qa.displayName="c";Qa.aliases=[];function Qa(e){e.register(Lt),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Ou.displayName="cpp";Ou.aliases=[];function Ou(e){e.register(Qa),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}u2.displayName="arduino";u2.aliases=["ino"];function u2(e){e.register(Ou),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}qp.displayName="bash";qp.aliases=["sh","shell"];function qp(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=i.variable[1].inside,s=0;s>/g,function(le,L){return"(?:"+pe[+L]+")"})}function r(D,pe,le){return RegExp(n(D,pe),le||"")}function i(D,pe){for(var le=0;le>/g,function(){return"(?:"+D+")"});return D.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(D){return"\\b(?:"+D.trim().replace(/ /g,"|")+")\\b"}var s=o(a.typeDeclaration),u=RegExp(o(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=o(a.typeDeclaration+" "+a.contextual+" "+a.other),p=o(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,b=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),y=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,b]),T=/\[\s*(?:,\s*)*\]/.source,E=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,T]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,m,T]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),A=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,T]),R={keyword:u,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,N=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,A]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,b]),lookbehind:!0,inside:R},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:R},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[E]),lookbehind:!0,inside:R},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[A,p,g]),inside:R}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:R},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[A,y]),inside:R,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[A]),lookbehind:!0,inside:R,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:R}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,b,g,A,u.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,m]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(A),greedy:!0,inside:R},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var q=N+"|"+k,P=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[q]),Q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),$=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,oe=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,Q]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[$,oe]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[$]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[Q]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var fe=/:[^}\r\n]+/.source,ce=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),De=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ce,fe]),H=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[q]),2),W=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,fe]);function se(D,pe){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[D]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[pe,fe]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[De]),lookbehind:!0,greedy:!0,inside:se(De,ce)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[W]),lookbehind:!0,greedy:!0,inside:se(W,H)}],char:{pattern:RegExp(k),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}gr.displayName="markup";gr.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function gr(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}xl.displayName="css";xl.aliases=[];function xl(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}c2.displayName="diff";c2.aliases=[];function c2(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| |(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}d2.displayName="go";d2.aliases=[];function d2(e){e.register(Lt),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}p2.displayName="ini";p2.aliases=[];function p2(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}Lu.displayName="java";Lu.aliases=[];function Lu(e){e.register(Lt),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}f2.displayName="regex";f2.aliases=[];function f2(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",s=RegExp(o+"-"+o),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}Tc.displayName="json";Tc.aliases=["webmanifest"];function Tc(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}h2.displayName="kotlin";h2.aliases=["kt","kts"];function h2(e){e.register(Lt),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}g2.displayName="less";g2.aliases=[];function g2(e){e.register(xl),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Kp.displayName="lua";Kp.aliases=[];function Kp(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}m2.displayName="makefile";m2.aliases=[];function m2(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}Yp.displayName="yaml";Yp.aliases=["yml"];function Yp(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return u});return RegExp(p,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}b2.displayName="markdown";b2.aliases=["md"];function b2(e){e.register(gr),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(u){s!==u&&(t.languages.markdown[s].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function u(c){if(!(!c||typeof c=="string"))for(var p=0,f=c.length;p]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}E2.displayName="perl";E2.aliases=[];function E2(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Nr.displayName="markup-templating";Nr.aliases=[];function Nr(e){e.register(gr),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,o){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(a,function(u){if(typeof o=="function"&&!o(u))return u;for(var c=s.length,p;r.code.indexOf(p=n(i,c))!==-1;)++c;return s[c]=u,p}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,o=Object.keys(r.tokenStack);function s(u){for(var c=0;c=o.length);c++){var p=u[c];if(typeof p=="string"||p.content&&typeof p.content=="string"){var f=o[a],m=r.tokenStack[f],g=typeof p=="string"?p:p.content,b=n(i,f),y=g.indexOf(b);if(y>-1){++a;var T=g.substring(0,y),E=new t.Token(i,t.tokenize(m,r.grammar),"language-"+i,m),v=g.substring(y+b.length),w=[];T&&w.push.apply(w,s([T])),w.push(E),v&&w.push.apply(w,s([v])),typeof p=="string"?u.splice.apply(u,[c,1].concat(w)):p.content=w}}else p.content&&s(p.content)}return u}s(r.tokens)}}})}(e)}Mu.displayName="php";Mu.aliases=[];function Mu(e){e.register(Nr),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",p)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(e)}Xp.displayName="python";Xp.aliases=["py"];function Xp(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}v2.displayName="r";v2.aliases=[];function v2(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}Fu.displayName="ruby";Fu.aliases=["rb"];function Fu(e){e.register(Lt),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}_2.displayName="rust";_2.aliases=[];function _2(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}T2.displayName="sass";T2.aliases=[];function T2(e){e.register(xl),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}S2.displayName="scss";S2.aliases=[];function S2(e){e.register(xl),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}Sc.displayName="sql";Sc.aliases=[];function Sc(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}w2.displayName="swift";w2.aliases=[];function w2(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}wc.displayName="typescript";wc.aliases=["ts"];function wc(e){e.register(Rr),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}Zp.displayName="basic";Zp.aliases=[];function Zp(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Qp.displayName="vbnet";Qp.aliases=[];function Qp(e){e.register(Zp),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const iI=/[#.]/g;function Hse(e,t){const n=e||"",r={};let i=0,a,o;for(;i=48&&t<=57}function Zse(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Qse(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function sI(e){return Qse(e)||fF(e)}const n1=String.fromCharCode,Jse=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function ele(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,o="",s,u;t.position&&("start"in t.position||"indent"in t.position?(u=t.position.indent,s=t.position.start):s=t.position);let c=(s?s.line:0)||1,p=(s?s.column:0)||1,f=g(),m;for(i--;++i<=e.length;)if(m===10&&(p=(u?u[a]:0)||1),m=e.charCodeAt(i),m===38){const T=e.charCodeAt(i+1);if(T===9||T===10||T===12||T===32||T===38||T===60||Number.isNaN(T)||n&&T===n){o+=n1(m),p++;continue}const E=i+1;let v=E,w=E,A;if(T===35){w=++v;const $=e.charCodeAt(w);$===88||$===120?(A="hexadecimal",w=++v):A="decimal"}else A="named";let R="",k="",N="";const B=A==="named"?sI:A==="decimal"?fF:Zse;for(w--;++w<=e.length;){const $=e.charCodeAt(w);if(!B($))break;N+=n1($),A==="named"&&Xse.includes(N)&&(R=N,k=Tp(N))}let q=e.charCodeAt(w)===59;if(q){w++;const $=A==="named"?Tp(N):!1;$&&(R=N,k=$)}let P=1+w-E,Q="";if(!(!q&&t.nonTerminated===!1))if(!N)A!=="named"&&b(4,P);else if(A==="named"){if(q&&!k)b(5,1);else if(R!==N&&(w=v+R.length,P=1+w-v,q=!1),!q){const $=R?1:3;if(t.attribute){const oe=e.charCodeAt(w);oe===61?(b($,P),k=""):sI(oe)?k="":b($,P)}else b($,P)}Q=k}else{q||b(2,P);let $=Number.parseInt(N,A==="hexadecimal"?16:10);if(tle($))b(7,P),Q=n1(65533);else if($ in oI)b(6,P),Q=oI[$];else{let oe="";nle($)&&b(6,P),$>65535&&($-=65536,oe+=n1($>>>10|55296),$=56320|$&1023),Q=oe+n1($)}}if(Q){y(),f=g(),i=w-1,p+=w-E+1,r.push(Q);const $=g();$.offset++,t.reference&&t.reference.call(t.referenceContext,Q,{start:f,end:$},e.slice(E-1,w)),f=$}else N=e.slice(E-1,w),o+=N,p+=N.length,i=w-1}else m===10&&(c++,a++,p=0),Number.isNaN(m)?y():(o+=n1(m),p++);return r.join("");function g(){return{line:c,column:p,offset:i+((s?s.offset:0)||0)}}function b(T,E){let v;t.warning&&(v=g(),v.column+=E,v.offset+=E,t.warning.call(t.warningContext,Jse[T],v,T))}function y(){o&&(r.push(o),t.text&&t.text.call(t.textContext,o,{start:f,end:g()}),o="")}}function tle(e){return e>=55296&&e<=57343||e>1114111}function nle(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var rle=0,G0={},lr={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++rle}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(lr.util.type(t)){case"Object":if(i=lr.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=lr.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(o,s){r[s]=e(o,n)}),r);default:return t}}},languages:{plain:G0,plaintext:G0,text:G0,txt:G0,extend:function(e,t){var n=lr.util.clone(lr.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||lr.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var u=r[e];return r[e]=a,lr.languages.DFS(lr.languages,function(c,p){p===u&&c!=e&&(this[c]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=lr.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],u=lr.util.type(s);u==="Object"&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):u==="Array"&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(lr.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=lr.tokenize(r.code,r.grammar),lr.hooks.run("after-tokenize",r),qd.stringify(lr.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new ile;return Dh(i,i.head,e),hF(e,i,t,i.head,0),ole(i)},hooks:{all:{},add:function(e,t){var n=lr.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=lr.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:qd};function qd(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function lI(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function hF(e,t,n,r,i,a){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var u=0;u=a.reach);E+=T.value.length,T=T.next){var v=T.value;if(t.length>e.length)return;if(!(v instanceof qd)){var w=1,A;if(m){if(A=lI(y,E,e,f),!A||A.index>=e.length)break;var B=A.index,R=A.index+A[0].length,k=E;for(k+=T.value.length;B>=k;)T=T.next,k+=T.value.length;if(k-=T.value.length,E=k,T.value instanceof qd)continue;for(var N=T;N!==t.tail&&(ka.reach&&(a.reach=$);var oe=T.prev;P&&(oe=Dh(t,oe,P),E+=P.length),ale(t,oe,w);var fe=new qd(o,p?lr.tokenize(q,p):q,g,q);if(T=Dh(t,oe,fe),Q&&Dh(t,T,Q),w>1){var ce={cause:o+","+u,reach:$};hF(e,t,n,T.prev,E,ce),a&&ce.reach>a.reach&&(a.reach=ce.reach)}}}}}}function ile(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Dh(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function ale(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}K9.displayName="abnf";K9.aliases=[];function K9(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}Y9.displayName="actionscript";Y9.aliases=[];function Y9(e){e.register(Rr),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}X9.displayName="ada";X9.aliases=[];function X9(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}Z9.displayName="agda";Z9.aliases=[];function Z9(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}Q9.displayName="al";Q9.aliases=[];function Q9(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}J9.displayName="antlr4";J9.aliases=["g4"];function J9(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}ev.displayName="apacheconf";ev.aliases=[];function ev(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}tv.displayName="apex";tv.aliases=[];function tv(e){e.register(Lt),e.register(Sc),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(o){return RegExp(o.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}nv.displayName="apl";nv.aliases=[];function nv(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}rv.displayName="applescript";rv.aliases=[];function rv(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}iv.displayName="aql";iv.aliases=[];function iv(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}av.displayName="arff";av.aliases=[];function av(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}ov.displayName="armasm";ov.aliases=["arm-asm"];function ov(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}sv.displayName="arturo";sv.aliases=["art"];function sv(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}lv.displayName="asciidoc";lv.aliases=["adoc"];function lv(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var o={},s=0,u=a.length;s/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}cv.displayName="asm6502";cv.aliases=[];function cv(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}dv.displayName="asmatmel";dv.aliases=[];function dv(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}pv.displayName="autohotkey";pv.aliases=[];function pv(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}fv.displayName="autoit";fv.aliases=[];function fv(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}hv.displayName="avisynth";hv.aliases=["avs"];function hv(e){(function(t){function n(c,p){return c.replace(/<<(\d+)>>/g,function(f,m){return p[+m]})}function r(c,p,f){return RegExp(n(c,p),f||"")}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),o=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),s=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[a,o,s].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}gv.displayName="avro-idl";gv.aliases=["avdl"];function gv(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}mv.displayName="awk";mv.aliases=["gawk"];function mv(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}bv.displayName="batch";bv.aliases=[];function bv(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}yv.displayName="bbcode";yv.aliases=["shortcode"];function yv(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}Ev.displayName="bbj";Ev.aliases=[];function Ev(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}vv.displayName="bicep";vv.aliases=[];function vv(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}_v.displayName="birb";_v.aliases=[];function _v(e){e.register(Lt),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}Tv.displayName="bison";Tv.aliases=[];function Tv(e){e.register(Qa),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Sv.displayName="bnf";Sv.aliases=["rbnf"];function Sv(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}wv.displayName="bqn";wv.aliases=[];function wv(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}Av.displayName="brainfuck";Av.aliases=[];function Av(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}Cv.displayName="brightscript";Cv.aliases=[];function Cv(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}kv.displayName="bro";kv.aliases=[];function kv(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}xv.displayName="bsl";xv.aliases=["oscript"];function xv(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}Iv.displayName="cfscript";Iv.aliases=["cfc"];function Iv(e){e.register(Lt),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}Rv.displayName="chaiscript";Rv.aliases=[];function Rv(e){e.register(Lt),e.register(Ou),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Nv.displayName="cil";Nv.aliases=[];function Nv(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}Ov.displayName="cilkc";Ov.aliases=["cilk-c"];function Ov(e){e.register(Qa),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}Dv.displayName="cilkcpp";Dv.aliases=["cilk","cilk-cpp"];function Dv(e){e.register(Ou),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}Lv.displayName="clojure";Lv.aliases=[];function Lv(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}Mv.displayName="cmake";Mv.aliases=[];function Mv(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}Fv.displayName="cobol";Fv.aliases=[];function Fv(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}Pv.displayName="coffeescript";Pv.aliases=["coffee"];function Pv(e){e.register(Rr),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}Bv.displayName="concurnas";Bv.aliases=["conc"];function Bv(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}Uv.displayName="csp";Uv.aliases=[];function Uv(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}$v.displayName="cooklang";$v.aliases=[];function $v(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,o=/(?:h|hours|hrs|m|min|minutes)/.source,s={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+o+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}zv.displayName="coq";zv.aliases=[];function zv(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Hv.displayName="crystal";Hv.aliases=[];function Hv(e){e.register(Fu),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}jv.displayName="css-extras";jv.aliases=[];function jv(e){e.register(xl),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}Gv.displayName="csv";Gv.aliases=[];function Gv(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}Vv.displayName="cue";Vv.aliases=[];function Vv(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}Wv.displayName="cypher";Wv.aliases=[];function Wv(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}qv.displayName="d";qv.aliases=[];function qv(e){e.register(Lt),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}Kv.displayName="dart";Kv.aliases=[];function Kv(e){e.register(Lt),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}Yv.displayName="dataweave";Yv.aliases=[];function Yv(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}Xv.displayName="dax";Xv.aliases=[];function Xv(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}Zv.displayName="dhall";Zv.aliases=[];function Zv(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}Qv.displayName="django";Qv.aliases=["jinja2"];function Qv(e){e.register(Nr),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}Jv.displayName="dns-zone-file";Jv.aliases=["dns-zone"];function Jv(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}e6.displayName="docker";e6.aliases=["dockerfile"];function e6(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),o={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(c,p){return c=c.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(c,p)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}t6.displayName="dot";t6.aliases=["gv"];function t6(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,o){return RegExp(a.replace(//g,function(){return n}),o)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}n6.displayName="ebnf";n6.aliases=[];function n6(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}r6.displayName="editorconfig";r6.aliases=[];function r6(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}i6.displayName="eiffel";i6.aliases=[];function i6(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}a6.displayName="ejs";a6.aliases=["eta"];function a6(e){e.register(Rr),e.register(Nr),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}o6.displayName="elixir";o6.aliases=[];function o6(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}s6.displayName="elm";s6.aliases=[];function s6(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}l6.displayName="etlua";l6.aliases=[];function l6(e){e.register(Kp),e.register(Nr),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}u6.displayName="erb";u6.aliases=[];function u6(e){e.register(Nr),e.register(Fu),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}c6.displayName="erlang";c6.aliases=[];function c6(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}d6.displayName="excel-formula";d6.aliases=["xls","xlsx"];function d6(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}p6.displayName="fsharp";p6.aliases=[];function p6(e){e.register(Lt),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}f6.displayName="factor";f6.aliases=[];function f6(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(c){return new RegExp("(^|\\s)(?:"+c.map(a).join("|")+")(?=\\s|$)")},s={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(s).forEach(function(c){i[c].pattern=o(s[c])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=o(u),t.languages.factor=i})(e)}h6.displayName="false";h6.aliases=[];function h6(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}m6.displayName="flow";m6.aliases=[];function m6(e){e.register(Rr),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}b6.displayName="fortran";b6.aliases=[];function b6(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}y6.displayName="ftl";y6.aliases=[];function y6(e){e.register(Nr),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",o)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}E6.displayName="gml";E6.aliases=["gamemakerlanguage"];function E6(e){e.register(Lt),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}v6.displayName="gap";v6.aliases=[];function v6(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}_6.displayName="gcode";_6.aliases=[];function _6(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}T6.displayName="gdscript";T6.aliases=[];function T6(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}S6.displayName="gedcom";S6.aliases=[];function S6(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}w6.displayName="gettext";w6.aliases=["po"];function w6(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}A6.displayName="gherkin";A6.aliases=[];function A6(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}C6.displayName="git";C6.aliases=[];function C6(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}k6.displayName="glsl";k6.aliases=[];function k6(e){e.register(Qa),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}x6.displayName="gn";x6.aliases=["gni"];function x6(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}I6.displayName="linker-script";I6.aliases=["ld"];function I6(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}R6.displayName="go-module";R6.aliases=["go-mod"];function R6(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}N6.displayName="gradle";N6.aliases=[];function N6(e){e.register(Lt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}O6.displayName="graphql";O6.aliases=[];function O6(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function a(T){return r[i+T]}function o(T,E){E=E||0;for(var v=0;v0)){var g=s(/^\{$/,/^\}$/);if(g===-1)continue;for(var b=i;b=0&&u(y,"variable-input")}}}}})}D6.displayName="groovy";D6.aliases=[];function D6(e){e.register(Lt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}L6.displayName="textile";L6.aliases=[];function L6(e){e.register(gr),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,m){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),m||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),s=o.phrase.inside,u={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=s.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=s.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark}(e)}M6.displayName="haml";M6.aliases=[];function M6(e){e.register(Fu),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,o=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}Jp.displayName="haskell";Jp.aliases=["hs"];function Jp(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}P6.displayName="haxe";P6.aliases=[];function P6(e){e.register(Lt),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}B6.displayName="hcl";B6.aliases=[];function B6(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}U6.displayName="hlsl";U6.aliases=[];function U6(e){e.register(Qa),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}$6.displayName="hoon";$6.aliases=[];function $6(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}z6.displayName="hpkp";z6.aliases=[];function z6(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}H6.displayName="hsts";H6.aliases=[];function H6(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}j6.displayName="uri";j6.aliases=["url"];function j6(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}G6.displayName="http";G6.aliases=[];function G6(e){(function(t){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function o(p){var f=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var s;for(var u in i)if(i[u]){s=s||{};var c=a[u]?o(u):u;s[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}s&&t.languages.insertBefore("http","header",s)})(e)}V6.displayName="ichigojam";V6.aliases=[];function V6(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}W6.displayName="icon";W6.aliases=[];function W6(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}q6.displayName="icu-message-format";q6.aliases=[];function q6(e){(function(t){function n(u,c){return c<=0?/[]/.source:u.replace(//g,function(){return n(u,c-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},o=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(o),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":s,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":s,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},s.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}K6.displayName="idris";K6.aliases=["idr"];function K6(e){e.register(Jp),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}Y6.displayName="ignore";Y6.aliases=["gitignore","hgignore","npmignore"];function Y6(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}X6.displayName="inform7";X6.aliases=[];function X6(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}Z6.displayName="io";Z6.aliases=[];function Z6(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}Cc.displayName="javadoclike";Cc.aliases=[];function Cc(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,o){var s="doc-comment",u=t.languages[a];if(u){var c=u[s];if(!c){var p={};p[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=t.languages.insertBefore(a,"comment",p),c=u[s]}if(c instanceof RegExp&&(c=u[s]={pattern:c}),Array.isArray(c))for(var f=0,m=c.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}e8.displayName="javadoc";e8.aliases=[];function e8(e){e.register(Lu),e.register(Cc),e.register(gr),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}t8.displayName="javastacktrace";t8.aliases=[];function t8(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}n8.displayName="jexl";n8.aliases=[];function n8(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}r8.displayName="jolie";r8.aliases=[];function r8(e){e.register(Lt),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}i8.displayName="jq";i8.aliases=[];function i8(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}a8.displayName="js-templates";a8.aliases=[];function a8(e){e.register(Rr),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],o=i.pattern.source;function s(b,y){if(t.languages[b])return{pattern:RegExp("((?:"+y+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function u(b,y){return"___"+y.toUpperCase()+"_"+b+"___"}function c(b,y,T){var E={code:b,grammar:y,language:T};return t.hooks.run("before-tokenize",E),E.tokens=t.tokenize(E.code,E.grammar),t.hooks.run("after-tokenize",E),E.tokens}function p(b){var y={};y["interpolation-punctuation"]=a;var T=t.tokenize(b,y);if(T.length===3){var E=[1,1];E.push.apply(E,c(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,E)}return new t.Token("interpolation",T,i.alias,b)}function f(b,y,T){var E=t.tokenize(b,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),v=0,w={},A=E.map(function(B){if(typeof B=="string")return B;for(var q=B.content,P;b.indexOf(P=u(v++,T))!==-1;);return w[P]=q,P}).join(""),R=c(A,y,T),k=Object.keys(w);v=0;function N(B){for(var q=0;q=k.length)return;var P=B[q];if(typeof P=="string"||typeof P.content=="string"){var Q=k[v],$=typeof P=="string"?P:P.content,oe=$.indexOf(Q);if(oe!==-1){++v;var fe=$.substring(0,oe),ce=p(w[Q]),De=$.substring(oe+Q.length),H=[];if(fe&&H.push(fe),H.push(ce),De){var W=[De];N(W),H.push.apply(H,W)}typeof P=="string"?(B.splice.apply(B,[q,1].concat(H)),q+=H.length-1):P.content=H}}else{var se=P.content;Array.isArray(se)?N(se):N([se])}}}return N(R),new t.Token(T,R,"language-"+T,b)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(b){if(!(b.language in m))return;function y(T){for(var E=0,v=T.length;E\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}s8.displayName="n4js";s8.aliases=["n4jsd"];function s8(e){e.register(Rr),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}l8.displayName="js-extras";l8.aliases=[];function l8(e){e.register(Rr),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(u,c){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}p8.displayName="julia";p8.aliases=[];function p8(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}f8.displayName="keepalived";f8.aliases=[];function f8(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}h8.displayName="keyman";h8.aliases=[];function h8(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}g8.displayName="kumir";g8.aliases=["kum"];function g8(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}m8.displayName="kusto";m8.aliases=[];function m8(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}b8.displayName="latex";b8.aliases=["context","tex"];function b8(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}y8.displayName="latte";y8.aliases=[];function y8(e){e.register(Lt),e.register(Nr),e.register(Mu),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}ef.displayName="scheme";ef.aliases=[];function ef(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}E8.displayName="lilypond";E8.aliases=["ly"];function E8(e){e.register(ef),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}v8.displayName="liquid";v8.aliases=[];function v8(e){e.register(Nr),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var o=a[1];if(o==="raw"&&!r)return r=!0,!0;if(o==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}_8.displayName="lisp";_8.aliases=["elisp","emacs","emacs-lisp"];function _8(e){(function(t){function n(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function r(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,o="(\\()",s="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(o+c+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:f},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=g,p.defun.inside.arguments=t.util.clone(g),p.defun.inside.arguments.inside.sublist=g,t.languages.lisp=p,t.languages.elisp=p,t.languages.emacs=p,t.languages["emacs-lisp"]=p})(e)}T8.displayName="livescript";T8.aliases=[];function T8(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}S8.displayName="llvm";S8.aliases=[];function S8(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}w8.displayName="log";w8.aliases=[];function w8(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}A8.displayName="lolcode";A8.aliases=[];function A8(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}C8.displayName="magma";C8.aliases=[];function C8(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}A2.displayName="mata";A2.aliases=[];function A2(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}k8.displayName="matlab";k8.aliases=[];function k8(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}x8.displayName="maxscript";x8.aliases=[];function x8(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}I8.displayName="mel";I8.aliases=[];function I8(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}R8.displayName="mermaid";R8.aliases=[];function R8(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}N8.displayName="metafont";N8.aliases=[];function N8(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}O8.displayName="mizar";O8.aliases=[];function O8(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}D8.displayName="mongodb";D8.aliases=[];function D8(e){e.register(Rr),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}L8.displayName="monkey";L8.aliases=[];function L8(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}M8.displayName="moonscript";M8.aliases=["moon"];function M8(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}F8.displayName="n1ql";F8.aliases=[];function F8(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}P8.displayName="nand2tetris-hdl";P8.aliases=[];function P8(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}B8.displayName="naniscript";B8.aliases=["nani"];function B8(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(o){var s=o.tokens;s.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=a(u);i(c)||(u.type="bad-line",u.content=c)}})});function i(o){for(var s="[]{}",u=[],c=0;c=&|$!]/}}$8.displayName="neon";$8.aliases=[];function $8(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}z8.displayName="nevod";z8.aliases=[];function z8(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}H8.displayName="nginx";H8.aliases=[];function H8(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}j8.displayName="nim";j8.aliases=[];function j8(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}G8.displayName="nix";G8.aliases=[];function G8(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}V8.displayName="nsis";V8.aliases=[];function V8(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}W8.displayName="ocaml";W8.aliases=[];function W8(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}q8.displayName="odin";q8.aliases=[];function q8(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}K8.displayName="opencl";K8.aliases=[];function K8(e){e.register(Qa),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}Y8.displayName="openqasm";Y8.aliases=["qasm"];function Y8(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}X8.displayName="oz";X8.aliases=[];function X8(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}Z8.displayName="parigp";Z8.aliases=[];function Z8(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}Q8.displayName="parser";Q8.aliases=[];function Q8(e){e.register(gr),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}J8.displayName="pascal";J8.aliases=["objectpascal"];function J8(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}e_.displayName="pascaligo";e_.aliases=[];function e_(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,s){return o[s]=i[s],o},{});i["class-name"].forEach(function(o){o.inside=a})})(e)}t_.displayName="psl";t_.aliases=[];function t_(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}n_.displayName="pcaxis";n_.aliases=["px"];function n_(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}r_.displayName="peoplecode";r_.aliases=["pcode"];function r_(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}i_.displayName="phpdoc";i_.aliases=[];function i_(e){e.register(Cc),e.register(Mu),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}a_.displayName="php-extras";a_.aliases=[];function a_(e){e.register(Mu),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}o_.displayName="plant-uml";o_.aliases=["plantuml"];function o_(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",o=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,u=/[[?]?[ox]?/.source,c=/[ox]?[\]?]?/.source,p=u+"(?:"+a+s+"|"+o+a+"(?:"+s+")?)"+c;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+p+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}s_.displayName="plsql";s_.aliases=[];function s_(e){e.register(Sc),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}l_.displayName="powerquery";l_.aliases=["mscript","pq"];function l_(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}u_.displayName="powershell";u_.aliases=[];function u_(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}c_.displayName="processing";c_.aliases=[];function c_(e){e.register(Lt),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}d_.displayName="prolog";d_.aliases=[];function d_(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}p_.displayName="promql";p_.aliases=[];function p_(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}f_.displayName="properties";f_.aliases=[];function f_(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}h_.displayName="protobuf";h_.aliases=[];function h_(e){e.register(Lt),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}g_.displayName="stylus";g_.aliases=[];function g_(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}m_.displayName="twig";m_.aliases=[];function m_(e){e.register(Nr),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}b_.displayName="pug";b_.aliases=[];function b_(e){e.register(Rr),e.register(gr),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,o=r.length;a",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}y_.displayName="puppet";y_.aliases=[];function y_(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}E_.displayName="pure";E_.aliases=[];function E_(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var o={};o["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},o["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",o)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}v_.displayName="purebasic";v_.aliases=["pbfasm"];function v_(e){e.register(Lt),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}__.displayName="purescript";__.aliases=["purs"];function __(e){e.register(Jp),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}T_.displayName="qsharp";T_.aliases=["qs"];function T_(e){e.register(Lt),function(t){function n(g,b){return g.replace(/<<(\d+)>>/g,function(y,T){return"(?:"+b[+T]+")"})}function r(g,b,y){return RegExp(n(g,b),y||"")}function i(g,b){for(var y=0;y>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function o(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(o(a.type+" "+a.other)),u=/\b[A-Za-z_]\w*\b/.source,c=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:s,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:p},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:p}],keyword:s,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}S_.displayName="q";S_.aliases=[];function S_(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}w_.displayName="qml";w_.aliases=[];function w_(e){e.register(Rr),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}A_.displayName="qore";A_.aliases=[];function A_(e){e.register(Lt),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}C_.displayName="racket";C_.aliases=["rkt"];function C_(e){e.register(ef),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}k_.displayName="cshtml";k_.aliases=["razor"];function k_(e){e.register(Du),e.register(gr),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(v,w){for(var A=0;A/g,function(){return"(?:"+v+")"});return v.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),o=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),u=i(/<(?:[^<>'"@/]||)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+u+")?"+a+"|"+o+")*"+/(?![?!\.(\[]|<(?!\/))/.source,p=/@(?![\w()])/.source+"|"+c,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+p+`)[^"'@]*)+["'])`,m=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+m+/\s*\/?>/.source,b=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function o(c,p){return c=c.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(c,p)}a=o(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(s).join(""):""},u=function(c){for(var p=[],f=0;f0&&p[p.length-1].tagName===s(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:s(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:g=!0),(g||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var b=s(m);f0&&(typeof c[f-1]=="string"||c[f-1].type==="plain-text")&&(b=s(c[f-1])+b,c.splice(f-1,1),f--),c[f]=new t.Token("plain-text",b,null,b)}m.content&&typeof m.content!="string"&&u(m.content)}};t.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})}(e)}x_.displayName="tsx";x_.aliases=[];function x_(e){e.register(C2),e.register(wc),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}I_.displayName="reason";I_.aliases=[];function I_(e){e.register(Lt),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}R_.displayName="rego";R_.aliases=[];function R_(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}N_.displayName="renpy";N_.aliases=["rpy"];function N_(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}O_.displayName="rescript";O_.aliases=["res"];function O_(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}D_.displayName="rest";D_.aliases=[];function D_(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}L_.displayName="rip";L_.aliases=[];function L_(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}M_.displayName="roboconf";M_.aliases=[];function M_(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}F_.displayName="robotframework";F_.aliases=["robot"];function F_(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,c){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in c)p[f]=c[f];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=r,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:p}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":o,documentation:a,property:s}),keywords:i("Keywords",{"keyword-name":o,documentation:a,property:s}),tasks:i("Tasks",{"task-name":o,documentation:a,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}P_.displayName="sas";P_.aliases=[];function P_(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},y={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},E=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,v={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return E}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return E}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:f,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:r,"numeric-constant":i,punctuation:p,string:c}},w={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":y,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:w,"submit-statement":T,"global-statements":y,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:w,"submit-statement":T,"global-statements":y,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":v,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:s,keyword:w,function:f,format:g,altformat:b,"global-statements":y,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:m},"macro-keyword":o,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":v,comment:u,function:f,format:g,altformat:b,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:c,step:s,keyword:w,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(e)}B_.displayName="shell-session";B_.aliases=["sh-session","shellsession"];function B_(e){e.register(qp),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}U_.displayName="smali";U_.aliases=[];function U_(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}$_.displayName="smalltalk";$_.aliases=[];function $_(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}z_.displayName="smarty";z_.aliases=[];function z_(e){e.register(Nr),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",o="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(u){return u===o&&(s=!1),s?!1:(u===a&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}H_.displayName="sml";H_.aliases=["smlnj"];function H_(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}j_.displayName="solidity";j_.aliases=["sol"];function j_(e){e.register(Lt),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}G_.displayName="solution-file";G_.aliases=["sln"];function G_(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}V_.displayName="soy";V_.aliases=[];function V_(e){e.register(Nr),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",s="{/literal}",u=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(c){return c===s&&(u=!1),u?!1:(c===o&&(u=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}k2.displayName="turtle";k2.aliases=["trig"];function k2(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}W_.displayName="sparql";W_.aliases=["rq"];function W_(e){e.register(k2),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}q_.displayName="splunk-spl";q_.aliases=[];function q_(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}K_.displayName="sqf";K_.aliases=[];function K_(e){e.register(Lt),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}Y_.displayName="squirrel";Y_.aliases=[];function Y_(e){e.register(Lt),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}X_.displayName="stan";X_.aliases=[];function X_(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}Z_.displayName="stata";Z_.aliases=[];function Z_(e){e.register(Lu),e.register(A2),e.register(Xp),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}Q_.displayName="iecst";Q_.aliases=[];function Q_(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}J_.displayName="supercollider";J_.aliases=["sclang"];function J_(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}e7.displayName="systemd";e7.aliases=[];function e7(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r ]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}tf.displayName="t4-templating";tf.aliases=[];function tf(e){(function(t){function n(i,a,o){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:o}}}}function r(i){var a=t.languages[i],o="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,o),"class-feature":n("\\+",a,o),standard:n("",a,o)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}t7.displayName="t4-cs";t7.aliases=["t4"];function t7(e){e.register(Du),e.register(tf),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}n7.displayName="t4-vb";n7.aliases=[];function n7(e){e.register(tf),e.register(Qp),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}r7.displayName="tap";r7.aliases=[];function r7(e){e.register(Yp),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}i7.displayName="tcl";i7.aliases=[];function i7(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}a7.displayName="tt2";a7.aliases=[];function a7(e){e.register(Lt),e.register(Nr),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}o7.displayName="toml";o7.aliases=[];function o7(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}s7.displayName="tremor";s7.aliases=["trickle","troy"];function s7(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}l7.displayName="typoscript";l7.aliases=["tsconfig"];function l7(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}u7.displayName="unrealscript";u7.aliases=["uc","uscript"];function u7(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}c7.displayName="uorazor";c7.aliases=[];function c7(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}d7.displayName="v";d7.aliases=[];function d7(e){e.register(Lt),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}p7.displayName="vala";p7.aliases=[];function p7(e){e.register(Lt),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}f7.displayName="velocity";f7.aliases=[];function f7(e){e.register(gr),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}h7.displayName="verilog";h7.aliases=[];function h7(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}g7.displayName="vhdl";g7.aliases=[];function g7(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}m7.displayName="vim";m7.aliases=[];function m7(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}b7.displayName="visual-basic";b7.aliases=["vb","vba"];function b7(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}y7.displayName="warpscript";y7.aliases=[];function y7(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}E7.displayName="wasm";E7.aliases=[];function E7(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}v7.displayName="web-idl";v7.aliases=["webidl"];function v7(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}_7.displayName="wgsl";_7.aliases=[];function _7(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}T7.displayName="wiki";T7.aliases=[];function T7(e){e.register(gr),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}S7.displayName="wolfram";S7.aliases=["mathematica","nb","wl"];function S7(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}w7.displayName="wren";w7.aliases=[];function w7(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}A7.displayName="xeora";A7.aliases=["xeoracube"];function A7(e){e.register(gr),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}C7.displayName="xml-doc";C7.aliases=[];function C7(e){e.register(gr),function(t){function n(o,s){t.languages[o]&&t.languages.insertBefore(o,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}k7.displayName="xojo";k7.aliases=[];function k7(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}x7.displayName="xquery";x7.aliases=[];function x7(e){e.register(gr),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],o=0;o0&&a[a.length-1].tagName===n(s.content[0].content[1])&&a.pop():s.content[s.content.length-1].content==="/>"||a.push({tagName:n(s.content[0].content[1]),openedBraces:0}):a.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[o+1]||i[o+1].type!=="punctuation"||i[o+1].content!=="{")&&(!i[o-1]||i[o-1].type!=="plain-text"||i[o-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?a[a.length-1].openedBraces--:s.type!=="comment"&&(u=!0)),(u||typeof s=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var c=n(s);o0&&(typeof i[o-1]=="string"||i[o-1].type==="plain-text")&&(c=n(i[o-1])+c,i.splice(o-1,1),o--),/^\s+$/.test(c)?i[o]=c:i[o]=new t.Token("plain-text",c,null,c)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}I7.displayName="yang";I7.aliases=[];function I7(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}R7.displayName="zig";R7.aliases=[];function R7(e){(function(t){function n(c){return function(){return c}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),u="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+s+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=t.languages.zig)})})(e)}O.register(gr);O.register(xl);O.register(Lt);O.register(f2);O.register(Rr);O.register(q9);O.register(K9);O.register(Y9);O.register(X9);O.register(Z9);O.register(Q9);O.register(J9);O.register(ev);O.register(Sc);O.register(tv);O.register(nv);O.register(rv);O.register(iv);O.register(Qa);O.register(Ou);O.register(u2);O.register(av);O.register(ov);O.register(qp);O.register(Yp);O.register(b2);O.register(sv);O.register(lv);O.register(Du);O.register(uv);O.register(cv);O.register(dv);O.register(pv);O.register(fv);O.register(hv);O.register(gv);O.register(mv);O.register(Zp);O.register(bv);O.register(yv);O.register(Ev);O.register(vv);O.register(_v);O.register(Tv);O.register(Sv);O.register(wv);O.register(Av);O.register(Cv);O.register(kv);O.register(xv);O.register(Iv);O.register(Rv);O.register(Nv);O.register(Ov);O.register(Dv);O.register(Lv);O.register(Mv);O.register(Fv);O.register(Pv);O.register(Bv);O.register(Uv);O.register($v);O.register(zv);O.register(Fu);O.register(Hv);O.register(jv);O.register(Gv);O.register(Vv);O.register(Wv);O.register(qv);O.register(Kv);O.register(Yv);O.register(Xv);O.register(Zv);O.register(c2);O.register(Nr);O.register(Qv);O.register(Jv);O.register(e6);O.register(t6);O.register(n6);O.register(r6);O.register(i6);O.register(a6);O.register(o6);O.register(s6);O.register(Kp);O.register(l6);O.register(u6);O.register(c6);O.register(d6);O.register(p6);O.register(f6);O.register(h6);O.register(g6);O.register(m6);O.register(b6);O.register(y6);O.register(E6);O.register(v6);O.register(_6);O.register(T6);O.register(S6);O.register(w6);O.register(A6);O.register(C6);O.register(k6);O.register(x6);O.register(I6);O.register(d2);O.register(R6);O.register(N6);O.register(O6);O.register(D6);O.register(g2);O.register(S2);O.register(L6);O.register(M6);O.register(F6);O.register(Jp);O.register(P6);O.register(B6);O.register(U6);O.register($6);O.register(z6);O.register(H6);O.register(Tc);O.register(j6);O.register(G6);O.register(V6);O.register(W6);O.register(q6);O.register(K6);O.register(Y6);O.register(X6);O.register(p2);O.register(Z6);O.register(Q6);O.register(Lu);O.register(Mu);O.register(Cc);O.register(J6);O.register(e8);O.register(t8);O.register(n8);O.register(r8);O.register(i8);O.register(a8);O.register(wc);O.register(o8);O.register(s8);O.register(l8);O.register(u8);O.register(c8);O.register(d8);O.register(p8);O.register(f8);O.register(h8);O.register(h2);O.register(g8);O.register(m8);O.register(b8);O.register(y8);O.register(ef);O.register(E8);O.register(v8);O.register(_8);O.register(T8);O.register(S8);O.register(w8);O.register(A8);O.register(C8);O.register(m2);O.register(A2);O.register(k8);O.register(x8);O.register(I8);O.register(R8);O.register(N8);O.register(O8);O.register(D8);O.register(L8);O.register(M8);O.register(F8);O.register(P8);O.register(B8);O.register(U8);O.register($8);O.register(z8);O.register(H8);O.register(j8);O.register(G8);O.register(V8);O.register(y2);O.register(W8);O.register(q8);O.register(K8);O.register(Y8);O.register(X8);O.register(Z8);O.register(Q8);O.register(J8);O.register(e_);O.register(t_);O.register(n_);O.register(r_);O.register(E2);O.register(i_);O.register(a_);O.register(o_);O.register(s_);O.register(l_);O.register(u_);O.register(c_);O.register(d_);O.register(p_);O.register(f_);O.register(h_);O.register(g_);O.register(m_);O.register(b_);O.register(y_);O.register(E_);O.register(v_);O.register(__);O.register(Xp);O.register(T_);O.register(S_);O.register(w_);O.register(A_);O.register(v2);O.register(C_);O.register(k_);O.register(C2);O.register(x_);O.register(I_);O.register(R_);O.register(N_);O.register(O_);O.register(D_);O.register(L_);O.register(M_);O.register(F_);O.register(_2);O.register(P_);O.register(T2);O.register(B_);O.register(U_);O.register($_);O.register(z_);O.register(H_);O.register(j_);O.register(G_);O.register(V_);O.register(k2);O.register(W_);O.register(q_);O.register(K_);O.register(Y_);O.register(X_);O.register(Z_);O.register(Q_);O.register(J_);O.register(w2);O.register(e7);O.register(tf);O.register(t7);O.register(Qp);O.register(n7);O.register(r7);O.register(i7);O.register(a7);O.register(o7);O.register(s7);O.register(l7);O.register(u7);O.register(c7);O.register(d7);O.register(p7);O.register(f7);O.register(h7);O.register(g7);O.register(m7);O.register(b7);O.register(y7);O.register(E7);O.register(v7);O.register(_7);O.register(T7);O.register(S7);O.register(w7);O.register(A7);O.register(C7);O.register(k7);O.register(x7);O.register(I7);O.register(R7);function hy(){hy=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,o){var s=new RegExp(i,a);return t.set(s,o||t.get(i)),Bg(s,n.prototype)}function r(i,a){var o=t.get(a);return Object.keys(o).reduce(function(s,u){return s[u]=i[o[u]],s},Object.create(null))}return hle(n,RegExp),n.prototype.exec=function(i){var a=e.exec.call(this,i);return a&&(a.groups=r(a,this)),a},n.prototype[Symbol.replace]=function(i,a){if(typeof a=="string"){var o=t.get(this);return e[Symbol.replace].call(this,i,a.replace(/\$<([^>]+)>/g,function(u,c){return"$"+o[c]}))}if(typeof a=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(r(u,s)),a.apply(this,u)})}return e[Symbol.replace].call(this,i,a)},hy.apply(this,arguments)}function hle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bg(e,t)}function Bg(e,t){return Bg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Bg(e,t)}function uI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. @@ -278,7 +278,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,position:{start:{line:p+fe,column:1},end:{line:p+fe,column:1}}})}return p+=q,k}if(Object.prototype.hasOwnProperty.call(N,"children")){var De=p;return N.children=A(N.children),k.push(N),N.position={start:{line:De,column:1},end:{line:p,column:1}},k}return k.push(N),k},[])})(c.children),c.position=c.children.length>0?{start:{line:c.children[0].position.start.line,column:0},end:{line:c.children[c.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var g,b=function(A){var R=/{([\d,-]+)}/,k=A.split(",").map(function(q){return q.trim()}).join();if(R.test(k)){var N=R.exec(k)[1],B=zse(N);return function(q){return B.includes(q+1)}}return function(){return!1}}(u),y=function(A){var R=hy(/showLineNumbers=([0-9]+)/i,{lines:1});if(R.test(A)){var k=R.exec(A);return Number(k.groups.lines)}return 1}(u),T=function(A){for(var R=new Array(A),k=0;k=R+1});k.children=N.children,!u.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||E.some(function(B){return u.toLowerCase().includes(B)})||(k.properties.line=[(R+y).toString()],k.properties.className.push("line-number")),b(R)&&k.properties.className.push("highlight-line"),(f==="diff"||f!=null&&f.includes("diff-"))&&R1(k).substring(0,1)==="-"?k.properties.className.push("deleted"):(f==="diff"||f!=null&&f.includes("diff-"))&&R1(k).substring(0,1)==="+"&&k.properties.className.push("inserted")},w=o4(T.entries());!(g=w()).done;)v();T.length>0&&R1(T[T.length-1]).trim()===""&&T.pop(),r.children=T}}}},mle=gle(O);const bF="֑-߿יִ-﷽ﹰ-ﻼ",yF="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",ble=new RegExp("^[^"+yF+"]*["+bF+"]"),yle=new RegExp("^[^"+bF+"]*["+yF+"]");function Ele(e){const t=String(e||"");return ble.test(t)?"rtl":yle.test(t)?"ltr":"neutral"}function vle(e,t){const n=e.schema,r=e.language,i=e.direction,a=e.editableOrEditingHost;let o;if(t.type==="element"&&t.properties){const c=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",f=cI(t);c!=null&&(e.language=String(c)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Cl),f==="rtl"?o=f:f==="ltr"||f!=="auto"&&t.tagName==="html"||f!=="auto"&&t.tagName==="input"&&p==="tel"?o="ltr":(f==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?o=s4(R1(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?o=t.properties.value?s4(t.properties.value):"ltr":Hi(t,u)),o&&(e.direction=o)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return s;function s(){e.schema=n,e.language=r,e.direction=i,e.editableOrEditingHost=a}function u(c){if(c.type==="text")return o=s4(c.value),o?iy:void 0;if(c!==t&&c.type==="element"&&(c.tagName==="bdi"||c.tagName==="script"||c.tagName==="style"||c.tagName==="textare"||cI(c)))return $d}}function s4(e){const t=Ele(e);return t==="neutral"?void 0:t}function cI(e){const t=e.type==="element"&&e.properties&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}const _le=l2("operator",{unknown:Rle,invalid:Sle,handlers:{"=":wle,"~=":Ale,"|=":Cle,"^=":kle,"$=":xle,"*=":Ile}});function Tle(e,t,n){const r=e.attrs;let i=-1;for(;++i=pI&&e.charCodeAt(t)<=Ple;)c=c*10+(e.charCodeAt(t)-pI),t++;return t===u?null:c}function s(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?fI.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function hI(e){return $le(Ble(e))}const zle=hI.default||hI,Hle=l2("name",{unknown:fue,invalid:pue,handlers:{any:gy,"any-link":jle,blank:Gle,checked:Vle,dir:Wle,disabled:vF,empty:qle,enabled:Kle,"first-child":Yle,"first-of-type":Xle,has:Zle,lang:Qle,"last-child":Jle,"last-of-type":eue,matches:gy,not:tue,"nth-child":nue,"nth-last-child":rue,"nth-of-type":aue,"nth-last-of-type":iue,"only-child":oue,"only-of-type":sue,optional:lue,"read-only":uue,"read-write":_F,required:TF,root:cue,scope:due}});EF.needsIndex=["any","first-child","first-of-type","last-child","last-of-type","matches","not","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];function EF(e,t,n,r,i){const a=e.pseudos;let o=-1;for(;++o0}function Qle(e,t,n,r,i){return i.language!==""&&i.language!==void 0&&Mle(i.language,Sp(e.value)).length>0}function Jle(e,t,n,r,i){return Io(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function eue(e,t,n,r,i){return Io(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function gy(e,t,n,r,i){const a={...i,found:!1,shallow:!1,one:!0,scopeElements:[t],results:[],rootQuery:N7(e.value)};return O7(a,t),a.results[0]===t}function tue(e,t,n,r,i){return!gy(e,t,n,r,i)}function nue(e,t,n,r,i){const a=x2(e);return Io(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function rue(e,t,n,r,i){const a=x2(e);return Io(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function iue(e,t,n,r,i){const a=x2(e);return Io(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function aue(e,t,n,r,i){const a=x2(e);return Io(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function oue(e,t,n,r,i){return Io(i,e),i.elementCount===1}function sue(e,t,n,r,i){return Io(i,e),i.typeCount===1}function lue(e,t){return!TF(e,t)}function uue(e,t,n,r,i){return!_F(e,t,n,r,i)}function _F(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Vr(t,"readOnly")&&!Vr(t,"disabled"):!!i.editableOrEditingHost}function TF(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Vr(t,"required")}function cue(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function due(e,t,n,r,i){return i.scopeElements.includes(t)}function pue(){throw new Error("Invalid pseudo-selector")}function fue(e){throw e.name?new Error("Unknown pseudo-selector `"+e.name+"`"):new Error("Unexpected pseudo-element or empty pseudo-class")}function SF(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";l4(a,p,c)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.rule.nestingOperator===null?l4(a,"descendant",s):s.rule.nestingOperator==="~"&&l4(a,"generalSibling",s)}return a}function Lh(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:gue}function l4(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function gI(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}var AF={},D7={},L7={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o==="-"||o==="_"}e.isIdentStart=t;function n(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o>="0"&&o<="9"||o==="-"||o==="_"}e.isIdent=n;function r(o){return o>="a"&&o<="f"||o>="A"&&o<="F"||o>="0"&&o<="9"}e.isHex=r;function i(o){for(var s=o.length,u="",c=0;c="A"&&p<="Z"||p>="a"&&p<="z"||c!==0&&p>="0"&&p<="9")u+=p;else{var f=p.charCodeAt(0);if((f&63488)===55296){var m=o.charCodeAt(c++);if((f&64512)!==55296||(m&64512)!==56320)throw Error("UCS-2(decode): illegal sequence");f=((f&1023)<<10)+(m&1023)+65536}u+="\\"+f.toString(16)+" "}c++}return u}e.escapeIdentifier=i;function a(o){for(var s=o.length,u="",c=0,p;c":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},e.strReplacementsRev={"\n":"\\n","\r":"\\r"," ":"\\t","\f":"\\f","\v":"\\v"},e.singleQuoteEscapeChars={n:` `,r:"\r",t:" ",f:"\f","\\":"\\","'":"'"},e.doubleQuotesEscapeChars={n:` `,r:"\r",t:" ",f:"\f","\\":"\\",'"':'"'}})(L7);Object.defineProperty(D7,"__esModule",{value:!0});var Oa=L7;function yue(e,t,n,r,i,a){var o=e.length,s="";function u(y,T){var E="";for(t++,s=e.charAt(t);t=o)throw Error("Expected symbol but end of file reached.");if(s=e.charAt(t),Oa.identSpecialChars[s])y+=s;else if(Oa.isHex(s)){var T=s;for(t++,s=e.charAt(t);Oa.isHex(s);)T+=s,t++,s=e.charAt(t);s===" "&&(t++,s=e.charAt(t)),y+=String.fromCharCode(parseInt(T,16));continue}else y+=s}else return y;t++,s=e.charAt(t)}return y}function p(){s=e.charAt(t);for(var y=!1;s===" "||s===" "||s===` -`||s==="\r"||s==="\f";)y=!0,t++,s=e.charAt(t);return y}function f(){var y=m();if(t=o||s===","||s===")"));)if(i[s]){var v=s;if(t++,p(),T=b(),!T)throw Error('Rule expected after "'+v+'".');T.nestingOperator=v}else T=b(),T&&(T.nestingOperator=null);return y}function b(){for(var y=null;t=o)throw Error('Expected "=" but end of file reached.');if(s!=="=")throw Error('Expected "=" but "'+s+'" found.');T.operator=E+"=",t++,p();var v="";if(T.valueType="string",s==='"')v=u('"',Oa.doubleQuotesEscapeChars);else if(s==="'")v=u("'",Oa.singleQuoteEscapeChars);else if(a&&s==="$")t++,v=c(),T.valueType="substitute";else{for(;t=o)throw Error('Expected "]" but end of file reached.');if(s!=="]")throw Error('Expected "]" but "'+s+'" found.');t++,T.value=v}y=y||{},(y.attrs=y.attrs||[]).push(T)}else if(s===":"){t++;var w=c(),A={name:w};if(s==="("){t++;var R="";if(p(),n[w]==="selector")A.valueType="selector",R=m();else{if(A.valueType=n[w]||"string",s==='"')R=u('"',Oa.doubleQuotesEscapeChars);else if(s==="'")R=u("'",Oa.singleQuoteEscapeChars);else if(a&&s==="$")t++,R=c(),A.valueType="substitute";else{for(;t=o)throw Error('Expected ")" but end of file reached.');if(s!==")")throw Error('Expected ")" but "'+s+'" found.');t++,A.value=R}y=y||{},(y.pseudos=y.pseudos||[]).push(A)}else break;return y}return f()}D7.parseCssSelector=yue;var M7={};Object.defineProperty(M7,"__esModule",{value:!0});var Ri=L7;function Mh(e){var t="";switch(e.type){case"ruleSet":for(var n=e.rule,r=[];n;)n.nestingOperator&&r.push(n.nestingOperator),r.push(Mh(n)),n=n.rule;t=r.join(" ");break;case"selectors":t=e.selectors.map(Mh).join(", ");break;case"rule":e.tagName&&(e.tagName==="*"?t="*":t=Ri.escapeIdentifier(e.tagName)),e.id&&(t+="#"+Ri.escapeIdentifier(e.id)),e.classNames&&(t+=e.classNames.map(function(i){return"."+Ri.escapeIdentifier(i)}).join("")),e.attrs&&(t+=e.attrs.map(function(i){return"operator"in i?i.valueType==="substitute"?"["+Ri.escapeIdentifier(i.name)+i.operator+"$"+i.value+"]":"["+Ri.escapeIdentifier(i.name)+i.operator+Ri.escapeStr(i.value)+"]":"["+Ri.escapeIdentifier(i.name)+"]"}).join("")),e.pseudos&&(t+=e.pseudos.map(function(i){return i.valueType?i.valueType==="selector"?":"+Ri.escapeIdentifier(i.name)+"("+Mh(i.value)+")":i.valueType==="substitute"?":"+Ri.escapeIdentifier(i.name)+"($"+i.value+")":i.valueType==="numeric"?":"+Ri.escapeIdentifier(i.name)+"("+i.value+")":":"+Ri.escapeIdentifier(i.name)+"("+Ri.escapeIdentifier(i.value)+")":":"+Ri.escapeIdentifier(i.name)}).join(""));break;default:throw Error('Unknown entity type: "'+e.type+'".')}return t}M7.renderEntity=Mh;Object.defineProperty(AF,"__esModule",{value:!0});var Eue=D7,vue=M7,_ue=function(){function e(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return e.prototype.registerSelectorPseudos=function(){for(var t=[],n=0;n","+","~");function Sue(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return I2.parse(e)}function wue(e,t,n){const r=Aue(e,t,n);return O7(r,t||void 0),r.results}function Aue(e,t,n){return{rootQuery:N7(Sue(e)),results:[],scopeElements:t?t.type==="root"?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:n==="svg"?Cl:Iu,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}const CF=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=CF(n.children))}),t),Cue=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=wue(t,r);i&&i.length>0&&Hi(r,i,(a,o,s)=>{n(a,o,s)});return}Hi(r,(i,a,o)=>{n(i,a,o)})}}},kue=Cue;var xue={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Iue(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}function Rue(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function kF(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?kF(t.parentElement):null}function Nue(e){var t=n=>{var r=kF(n.target);r&&(r.classList.add("active"),Rue(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};C.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var Oue=function(t){return n=>{Hi(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=nn({},r.properties,{"data-meta":String(r.data.meta)}))})}},Due=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"];const Lue=ut.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:o=!1,skipHtml:s=!0,onScroll:u,onMouseOver:c,pluginsFilter:p,rehypeRewrite:f,wrapperElement:m={},warpperElement:g={}}=e,b=C1(e,Due),y=ut.useRef(null);C.useImperativeHandle(t,()=>nn({},e,{mdp:y}),[y,e]);var T=(n||"")+" "+(r||"");Nue(y);var E=(k,N,B)=>{if(k.type==="element"&&B&&B.type==="root"&&/h(1|2|3|4|5|6)/.test(k.tagName)){var q=k.children&&k.children[0];q&&q.properties&&q.properties.ariaHidden==="true"&&(q.properties=nn({class:"anchor"},q.properties),q.children=[xue])}if(k.type==="element"&&k.tagName==="pre"&&!o){var P=CF(k.children);k.children.push(Iue(P))}f&&f(k,N,B)},v=[Oue,[mle,{ignoreMissing:!0}],kse,Nse,Pse,[kue,{rewrite:E}],[Mse,{properties:"attr"}],...b.rehypePlugins||[]],w={allowElement:(k,N,B)=>b.allowElement?b.allowElement(k,N,B):/^[A-Za-z0-9]+$/.test(k.tagName)};s&&v.push(Ese);var A=[...b.remarkPlugins||[],Ure],R=nn({},g,m);return I.jsx("div",nn({ref:y,onScroll:u,onMouseOver:c},R,{className:T,style:a,children:I.jsx(N9,nn({},w,b,{skipHtml:s,rehypePlugins:p?p("rehype",v):v,remarkPlugins:p?p("remark",A):A,children:i||""}))}))}),Mue=Ge(Lue)` +`||s==="\r"||s==="\f";)y=!0,t++,s=e.charAt(t);return y}function f(){var y=m();if(t=o||s===","||s===")"));)if(i[s]){var v=s;if(t++,p(),T=b(),!T)throw Error('Rule expected after "'+v+'".');T.nestingOperator=v}else T=b(),T&&(T.nestingOperator=null);return y}function b(){for(var y=null;t=o)throw Error('Expected "=" but end of file reached.');if(s!=="=")throw Error('Expected "=" but "'+s+'" found.');T.operator=E+"=",t++,p();var v="";if(T.valueType="string",s==='"')v=u('"',Oa.doubleQuotesEscapeChars);else if(s==="'")v=u("'",Oa.singleQuoteEscapeChars);else if(a&&s==="$")t++,v=c(),T.valueType="substitute";else{for(;t=o)throw Error('Expected "]" but end of file reached.');if(s!=="]")throw Error('Expected "]" but "'+s+'" found.');t++,T.value=v}y=y||{},(y.attrs=y.attrs||[]).push(T)}else if(s===":"){t++;var w=c(),A={name:w};if(s==="("){t++;var R="";if(p(),n[w]==="selector")A.valueType="selector",R=m();else{if(A.valueType=n[w]||"string",s==='"')R=u('"',Oa.doubleQuotesEscapeChars);else if(s==="'")R=u("'",Oa.singleQuoteEscapeChars);else if(a&&s==="$")t++,R=c(),A.valueType="substitute";else{for(;t=o)throw Error('Expected ")" but end of file reached.');if(s!==")")throw Error('Expected ")" but "'+s+'" found.');t++,A.value=R}y=y||{},(y.pseudos=y.pseudos||[]).push(A)}else break;return y}return f()}D7.parseCssSelector=yue;var M7={};Object.defineProperty(M7,"__esModule",{value:!0});var Ri=L7;function Mh(e){var t="";switch(e.type){case"ruleSet":for(var n=e.rule,r=[];n;)n.nestingOperator&&r.push(n.nestingOperator),r.push(Mh(n)),n=n.rule;t=r.join(" ");break;case"selectors":t=e.selectors.map(Mh).join(", ");break;case"rule":e.tagName&&(e.tagName==="*"?t="*":t=Ri.escapeIdentifier(e.tagName)),e.id&&(t+="#"+Ri.escapeIdentifier(e.id)),e.classNames&&(t+=e.classNames.map(function(i){return"."+Ri.escapeIdentifier(i)}).join("")),e.attrs&&(t+=e.attrs.map(function(i){return"operator"in i?i.valueType==="substitute"?"["+Ri.escapeIdentifier(i.name)+i.operator+"$"+i.value+"]":"["+Ri.escapeIdentifier(i.name)+i.operator+Ri.escapeStr(i.value)+"]":"["+Ri.escapeIdentifier(i.name)+"]"}).join("")),e.pseudos&&(t+=e.pseudos.map(function(i){return i.valueType?i.valueType==="selector"?":"+Ri.escapeIdentifier(i.name)+"("+Mh(i.value)+")":i.valueType==="substitute"?":"+Ri.escapeIdentifier(i.name)+"($"+i.value+")":i.valueType==="numeric"?":"+Ri.escapeIdentifier(i.name)+"("+i.value+")":":"+Ri.escapeIdentifier(i.name)+"("+Ri.escapeIdentifier(i.value)+")":":"+Ri.escapeIdentifier(i.name)}).join(""));break;default:throw Error('Unknown entity type: "'+e.type+'".')}return t}M7.renderEntity=Mh;Object.defineProperty(AF,"__esModule",{value:!0});var Eue=D7,vue=M7,_ue=function(){function e(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return e.prototype.registerSelectorPseudos=function(){for(var t=[],n=0;n","+","~");function Sue(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return I2.parse(e)}function wue(e,t,n){const r=Aue(e,t,n);return O7(r,t||void 0),r.results}function Aue(e,t,n){return{rootQuery:N7(Sue(e)),results:[],scopeElements:t?t.type==="root"?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:n==="svg"?Cl:Iu,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}const CF=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=CF(n.children))}),t),Cue=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=wue(t,r);i&&i.length>0&&Hi(r,i,(a,o,s)=>{n(a,o,s)});return}Hi(r,(i,a,o)=>{n(i,a,o)})}}},kue=Cue;var xue={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Iue(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}function Rue(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function kF(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?kF(t.parentElement):null}function Nue(e){var t=n=>{var r=kF(n.target);r&&(r.classList.add("active"),Rue(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};C.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var Oue=function(t){return n=>{Hi(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=nn({},r.properties,{"data-meta":String(r.data.meta)}))})}},Due=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"];const Lue=st.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:o=!1,skipHtml:s=!0,onScroll:u,onMouseOver:c,pluginsFilter:p,rehypeRewrite:f,wrapperElement:m={},warpperElement:g={}}=e,b=C1(e,Due),y=st.useRef(null);C.useImperativeHandle(t,()=>nn({},e,{mdp:y}),[y,e]);var T=(n||"")+" "+(r||"");Nue(y);var E=(k,N,B)=>{if(k.type==="element"&&B&&B.type==="root"&&/h(1|2|3|4|5|6)/.test(k.tagName)){var q=k.children&&k.children[0];q&&q.properties&&q.properties.ariaHidden==="true"&&(q.properties=nn({class:"anchor"},q.properties),q.children=[xue])}if(k.type==="element"&&k.tagName==="pre"&&!o){var P=CF(k.children);k.children.push(Iue(P))}f&&f(k,N,B)},v=[Oue,[mle,{ignoreMissing:!0}],kse,Nse,Pse,[kue,{rewrite:E}],[Mse,{properties:"attr"}],...b.rehypePlugins||[]],w={allowElement:(k,N,B)=>b.allowElement?b.allowElement(k,N,B):/^[A-Za-z0-9]+$/.test(k.tagName)};s&&v.push(Ese);var A=[...b.remarkPlugins||[],Ure],R=nn({},g,m);return I.jsx("div",nn({ref:y,onScroll:u,onMouseOver:c},R,{className:T,style:a,children:I.jsx(N9,nn({},w,b,{skipHtml:s,rehypePlugins:p?p("rehype",v):v,remarkPlugins:p?p("remark",A):A,children:i||""}))}))}),Mue=Ge(Lue)` pre { background-color: ${e=>e.light?Ht:Vt}; border-radius: ${It}; @@ -337,8 +337,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var R2=60103,N2=60106,nf=60107,rf=60108,af=60114,of=60109,sf=60110,lf=60112,uf=60113,F7=60120,cf=60115,df=60116,xF=60121,IF=60122,RF=60117,NF=60129,OF=60131;if(typeof Symbol=="function"&&Symbol.for){var yr=Symbol.for;R2=yr("react.element"),N2=yr("react.portal"),nf=yr("react.fragment"),rf=yr("react.strict_mode"),af=yr("react.profiler"),of=yr("react.provider"),sf=yr("react.context"),lf=yr("react.forward_ref"),uf=yr("react.suspense"),F7=yr("react.suspense_list"),cf=yr("react.memo"),df=yr("react.lazy"),xF=yr("react.block"),IF=yr("react.server.block"),RF=yr("react.fundamental"),NF=yr("react.debug_trace_mode"),OF=yr("react.legacy_hidden")}function Ja(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R2:switch(e=e.type,e){case nf:case af:case rf:case uf:case F7:return e;default:switch(e=e&&e.$$typeof,e){case sf:case lf:case df:case cf:case of:return e;default:return t}}case N2:return t}}}var $ue=of,zue=R2,Hue=lf,jue=nf,Gue=df,Vue=cf,Wue=N2,que=af,Kue=rf,Yue=uf;yn.ContextConsumer=sf;yn.ContextProvider=$ue;yn.Element=zue;yn.ForwardRef=Hue;yn.Fragment=jue;yn.Lazy=Gue;yn.Memo=Vue;yn.Portal=Wue;yn.Profiler=que;yn.StrictMode=Kue;yn.Suspense=Yue;yn.isAsyncMode=function(){return!1};yn.isConcurrentMode=function(){return!1};yn.isContextConsumer=function(e){return Ja(e)===sf};yn.isContextProvider=function(e){return Ja(e)===of};yn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R2};yn.isForwardRef=function(e){return Ja(e)===lf};yn.isFragment=function(e){return Ja(e)===nf};yn.isLazy=function(e){return Ja(e)===df};yn.isMemo=function(e){return Ja(e)===cf};yn.isPortal=function(e){return Ja(e)===N2};yn.isProfiler=function(e){return Ja(e)===af};yn.isStrictMode=function(e){return Ja(e)===rf};yn.isSuspense=function(e){return Ja(e)===uf};yn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nf||e===af||e===NF||e===rf||e===uf||e===F7||e===OF||typeof e=="object"&&e!==null&&(e.$$typeof===df||e.$$typeof===cf||e.$$typeof===of||e.$$typeof===sf||e.$$typeof===lf||e.$$typeof===RF||e.$$typeof===xF||e[0]===IF)};yn.typeOf=Ja;let mI=e=>typeof e=="object"&&e!=null&&e.nodeType===1,bI=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",u4=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,Xue=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var Zue=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:fe=>fe!==f;if(!mI(e))throw new TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,y=[],T=e;for(;mI(T)&&g(T);){if(T=Xue(T),T===b){y.push(T);break}T!=null&&T===document.body&&u4(T)&&!u4(document.documentElement)||T!=null&&u4(T,m)&&y.push(T)}let E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:R,width:k,top:N,right:B,bottom:q,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?N:c==="end"?q:N+R/2,$=p==="center"?P+k/2:p==="end"?B:P,oe=[];for(let fe=0;fe=0&&P>=0&&q<=v&&B<=E&&N>=W&&q<=D&&P>=pe&&B<=se)return oe;let le=getComputedStyle(ce),L=parseInt(le.borderLeftWidth,10),ie=parseInt(le.borderTopWidth,10),Se=parseInt(le.borderRightWidth,10),X=parseInt(le.borderBottomWidth,10),ke=0,te=0,Me="offsetWidth"in ce?ce.offsetWidth-ce.clientWidth-L-Se:0,Re="offsetHeight"in ce?ce.offsetHeight-ce.clientHeight-ie-X:0,Ze="offsetWidth"in ce?ce.offsetWidth===0?0:H/ce.offsetWidth:0,We="offsetHeight"in ce?ce.offsetHeight===0?0:De/ce.offsetHeight:0;if(b===ce)ke=c==="start"?Q:c==="end"?Q-v:c==="nearest"?V0(A,A+v,v,ie,X,A+Q,A+Q+R,R):Q-v/2,te=p==="start"?$:p==="center"?$-E/2:p==="end"?$-E:V0(w,w+E,E,L,Se,w+$,w+$+k,k),ke=Math.max(0,ke+A),te=Math.max(0,te+w);else{ke=c==="start"?Q-W-ie:c==="end"?Q-D+X+Re:c==="nearest"?V0(W,D,De,ie,X+Re,Q,Q+R,R):Q-(W+De/2)+Re/2,te=p==="start"?$-pe-L:p==="center"?$-(pe+H/2)+Me/2:p==="end"?$-se+Se+Me:V0(pe,se,H,L,Se+Me,$,$+k,k);let{scrollLeft:dt,scrollTop:ot}=ce;ke=Math.max(0,Math.min(ot+ke/We,ce.scrollHeight-De/We+Re)),te=Math.max(0,Math.min(dt+te/Ze,ce.scrollWidth-H/Ze+Me)),Q+=ot-ke,$+=dt-te}oe.push({el:ce,top:ke,left:te})}return oe},$g=function(){return $g=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function q0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=Ap(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function Ap(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?Ap(1,0,n,r,!1):Ap(-1,n-1,n,r,!1):-1}function EI(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(yI(i,e,n)||r&&yI(i,n.document.activeElement,n))})}var r1e=LF(function(e){FF(e).textContent=""},500);function i1e(e,t){var n=FF(t);e&&(n.textContent=e,r1e(t))}function FF(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var a1e=["isInitialMount","highlightedIndex","items","environment"],PF={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function o1e(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){s1e(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(nn({type:i},a))}function s1e(e,t,n,r){var i=t.props,a=t.type,o="on"+P7(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](nn({type:a},r))}function l1e(e,t){return t.changes}function u1e(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var c1e=LF(function(e,t){i1e(e(),t)},200),d1e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function p1e(e){var t=e.id,n=t===void 0?"downshift-"+e1e():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function f1e(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function h1e(e){return e?String(e):""}function P7(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function BF(e){var t=C.useRef(e);return t.current=e,t}function g1e(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=my(m,g.props);var b=e(m,g),y=g.props.stateReducer(m,nn({},g,{changes:b}));return y},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=BF(n),p=C.useCallback(function(m){return u(nn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&o1e(f,my(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Kd={itemToString:h1e,stateReducer:l1e,getA11ySelectionMessage:u1e,scrollIntoView:Jue,environment:typeof window>"u"?{}:window};function bo(e,t,n){n===void 0&&(n=PF);var r=e["default"+P7(t)];return r!==void 0?r:n[t]}function K0(e,t,n){n===void 0&&(n=PF);var r=e[t];if(r!==void 0)return r;var i=e["initial"+P7(t)];return i!==void 0?i:bo(e,t,n)}function m1e(e){var t=K0(e,"selectedItem"),n=K0(e,"isOpen"),r=K0(e,"highlightedIndex"),i=K0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Yd(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function b1e(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!EI(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!EI(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var y1e=function(){return DF};function vI(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=C1(n,a1e);C.useEffect(function(){r||c1e(function(){return e(nn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function E1e(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return d1e(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var v1e=DF;function _I(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return nn({isOpen:!1,highlightedIndex:-1},i&&nn({selectedItem:e.items[t],isOpen:bo(e,"isOpen"),highlightedIndex:bo(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function _1e(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Yd(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:bo(i,"highlightedIndex"),isOpen:bo(i,"isOpen"),selectedItem:bo(i,"selectedItem"),inputValue:bo(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return nn({},e,a)}be.array.isRequired,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.func,be.string,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function T1e(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}$g($g({},Kd),{getA11yStatusMessage:T1e});var B7=0,U7=1,$7=2,z7=3,H7=4,j7=5,G7=6,V7=7,W7=8,zg=9,q7=10,UF=11,$F=12,K7=13,zF=14,HF=15,jF=16,GF=17,VF=18,Y7=19,WF=20,qF=21,X7=22,KF=Object.freeze({__proto__:null,InputKeyDownArrowDown:B7,InputKeyDownArrowUp:U7,InputKeyDownEscape:$7,InputKeyDownHome:z7,InputKeyDownEnd:H7,InputKeyDownPageUp:j7,InputKeyDownPageDown:G7,InputKeyDownEnter:V7,InputChange:W7,InputBlur:zg,InputFocus:q7,MenuMouseLeave:UF,ItemMouseMove:$F,ItemClick:K7,ToggleButtonClick:zF,FunctionToggleMenu:HF,FunctionOpenMenu:jF,FunctionCloseMenu:GF,FunctionSetHighlightedIndex:VF,FunctionSelectItem:Y7,FunctionSetInputValue:WF,FunctionReset:qF,ControlledPropUpdatedSelectedItem:X7});function S1e(e){var t=m1e(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),nn({},t,{inputValue:r})}be.array.isRequired,be.func,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.string,be.string,be.string,be.func,be.string,be.string,be.func,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function w1e(e,t,n){var r=C.useRef(),i=g1e(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){MF(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:X7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[my(a,n),o]}var A1e=nn({},Kd,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:t1e});function C1e(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case K7:o={isOpen:bo(i,"isOpen"),highlightedIndex:bo(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case B7:e.isOpen?o={highlightedIndex:q0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Yd(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case U7:e.isOpen?a?o=_I(i,e.highlightedIndex):o={highlightedIndex:q0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Yd(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case V7:o=_I(i,e.highlightedIndex);break;case $7:o=nn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case j7:o={highlightedIndex:q0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case G7:o={highlightedIndex:q0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case z7:o={highlightedIndex:Ap(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case H7:o={highlightedIndex:Ap(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case zg:o=nn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case W7:o={isOpen:!0,highlightedIndex:bo(i,"highlightedIndex"),inputValue:t.inputValue};break;case q7:o={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case Y7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case X7:o={inputValue:t.inputValue};break;default:return _1e(e,t,KF)}return nn({},e,o)}var k1e=["onMouseLeave","refKey","ref"],x1e=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],I1e=["onClick","onPress","refKey","ref"],R1e=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];YF.stateChangeTypes=KF;function YF(e){e===void 0&&(e={});var t=nn({},A1e,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=S1e(t),f=w1e(C1e,p,t),m=f[0],g=f[1],b=m.isOpen,y=m.highlightedIndex,T=m.selectedItem,E=m.inputValue,v=C.useRef(null),w=C.useRef({}),A=C.useRef(null),R=C.useRef(null),k=C.useRef(!0),N=p1e(t),B=C.useRef(),q=BF({state:m,props:t}),P=C.useCallback(function(ke){return w.current[N.getItemId(ke)]},[N]);vI(s,[b,y,E,i],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),vI(u,[T],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=E1e({menuElement:v.current,highlightedIndex:y,isOpen:b,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});v1e({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var ke=n||r||b;ke&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var $=b1e(b,[A,v,R],o,function(){g({type:zg,selectItem:!1})}),oe=y1e();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var ke;if(!b)w.current={};else if(((ke=o.document)==null?void 0:ke.activeElement)!==A.current){var te;A==null||(te=A.current)==null||te.focus()}},[b,o]);var fe=C.useMemo(function(){return{ArrowDown:function(te){te.preventDefault(),g({type:B7,altKey:te.altKey,getItemNodeFromIndex:P})},ArrowUp:function(te){te.preventDefault(),g({type:U7,altKey:te.altKey,getItemNodeFromIndex:P})},Home:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:z7,getItemNodeFromIndex:P}))},End:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:H7,getItemNodeFromIndex:P}))},Escape:function(te){var Me=q.current.state;(Me.isOpen||Me.inputValue||Me.selectedItem||Me.highlightedIndex>-1)&&(te.preventDefault(),g({type:$7}))},Enter:function(te){var Me=q.current.state;!Me.isOpen||te.which===229||(te.preventDefault(),g({type:V7,getItemNodeFromIndex:P}))},PageUp:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:j7,getItemNodeFromIndex:P}))},PageDown:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:G7,getItemNodeFromIndex:P}))}}},[g,q,P]),ce=C.useCallback(function(ke){return nn({id:N.labelId,htmlFor:N.inputId},ke)},[N]),De=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onMouseLeave,We=Re.refKey,dt=We===void 0?"ref":We,ot=Re.ref,je=C1(Re,k1e),pt=te===void 0?{}:te;return pt.suppressRefError,nn((Me={},Me[dt]=W0(ot,function(U){v.current=U}),Me.id=N.menuId,Me.role="listbox",Me["aria-labelledby"]=je&&je["aria-label"]?void 0:""+N.labelId,Me.onMouseLeave=Wo(Ze,function(){g({type:UF})}),Me),je)},[g,oe,N]),H=C.useCallback(function(ke){var te,Me,Re=ke===void 0?{}:ke,Ze=Re.item,We=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,je=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,re=Re.onClick;Re.onPress;var de=Re.disabled,xe=C1(Re,x1e),ye=q.current,Te=ye.props,Le=ye.state,ze=f1e(Ze,We,Te.items,"Pass either item or index to getItemProps!"),Ye=ze[1],jt="onClick",ue=re,Ee=function(){Ye!==Le.highlightedIndex&&(Q.current=!1,g({type:$F,index:Ye,disabled:de}))},qe=function(){g({type:K7,index:Ye})},j=function(Ve){return Ve.preventDefault()};return nn((te={},te[ot]=W0(je,function(me){me&&(w.current[N.getItemId(Ye)]=me)}),te.disabled=de,te.role="option",te["aria-selected"]=""+(Ye===Le.highlightedIndex),te.id=N.getItemId(Ye),te),!de&&(Me={},Me[jt]=Wo(ue,qe),Me),{onMouseMove:Wo(pt,Ee),onMouseDown:Wo(U,j)},xe)},[g,q,Q,N]),W=C.useCallback(function(ke){var te,Me=ke===void 0?{}:ke,Re=Me.onClick;Me.onPress;var Ze=Me.refKey,We=Ze===void 0?"ref":Ze,dt=Me.ref,ot=C1(Me,I1e),je=q.current.state,pt=function(){g({type:zF})};return nn((te={},te[We]=W0(dt,function(U){R.current=U}),te["aria-controls"]=N.menuId,te["aria-expanded"]=je.isOpen,te.id=N.toggleButtonId,te.tabIndex=-1,te),!ot.disabled&&nn({},{onClick:Wo(Re,pt)}),ot)},[g,q,N]),se=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onKeyDown,We=Re.onChange,dt=Re.onInput,ot=Re.onFocus,je=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,re=Re.ref,de=C1(Re,R1e),xe=te===void 0?{}:te;xe.suppressRefError;var ye=q.current.state,Te=function(j){var me=n1e(j);me&&fe[me]&&fe[me](j)},Le=function(j){g({type:W7,inputValue:j.target.value})},ze=function(j){if(ye.isOpen&&!$.current.isMouseDown){var me=j.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:zg,selectItem:!me})}},Ye=function(){ye.isOpen||g({type:q7})},jt="onChange",ue={};if(!de.disabled){var Ee;ue=(Ee={},Ee[jt]=Wo(We,dt,Le),Ee.onKeyDown=Wo(Ze,Te),Ee.onBlur=Wo(je,ze),Ee.onFocus=Wo(ot,Ye),Ee)}return nn((Me={},Me[U]=W0(re,function(qe){A.current=qe}),Me["aria-activedescendant"]=ye.isOpen&&ye.highlightedIndex>-1?N.getItemId(ye.highlightedIndex):"",Me["aria-autocomplete"]="list",Me["aria-controls"]=N.menuId,Me["aria-expanded"]=ye.isOpen,Me["aria-labelledby"]=de&&de["aria-label"]?void 0:""+N.labelId,Me.autoComplete="off",Me.id=N.inputId,Me.role="combobox",Me.value=ye.inputValue,Me),ue,de)},[oe,q,N,fe,g,$,o]),D=C.useCallback(function(){g({type:HF})},[g]),pe=C.useCallback(function(){g({type:GF})},[g]),le=C.useCallback(function(){g({type:jF})},[g]),L=C.useCallback(function(ke){g({type:VF,highlightedIndex:ke})},[g]),ie=C.useCallback(function(ke){g({type:Y7,selectedItem:ke})},[g]),Se=C.useCallback(function(ke){g({type:WF,inputValue:ke})},[g]),X=C.useCallback(function(){g({type:qF})},[g]);return{getItemProps:H,getLabelProps:ce,getMenuProps:De,getInputProps:se,getToggleButtonProps:W,toggleMenu:D,openMenu:le,closeMenu:pe,setHighlightedIndex:L,setInputValue:Se,selectItem:ie,reset:X,highlightedIndex:y,isOpen:b,selectedItem:T,inputValue:E}}function N1e(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}be.array,be.array,be.array,be.func,be.func,be.func,be.number,be.number,be.number,be.func,be.func,be.string,be.string,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});Kd.itemToString,Kd.stateReducer,Kd.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:XF,setPrototypeOf:TI,isFrozen:O1e,getPrototypeOf:D1e,getOwnPropertyDescriptor:ZF}=Object;let{freeze:ii,seal:Ya,create:QF}=Object,{apply:by,construct:yy}=typeof Reflect<"u"&&Reflect;ii||(ii=function(t){return t});Ya||(Ya=function(t){return t});by||(by=function(t,n,r){return t.apply(n,r)});yy||(yy=function(t,n){return new t(...n)});const Y0=va(Array.prototype.forEach),SI=va(Array.prototype.pop),ld=va(Array.prototype.push),Fh=va(String.prototype.toLowerCase),c4=va(String.prototype.toString),L1e=va(String.prototype.match),ud=va(String.prototype.replace),M1e=va(String.prototype.indexOf),F1e=va(String.prototype.trim),Ni=va(RegExp.prototype.test),cd=P1e(TypeError);function va(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Fh;TI&&TI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(O1e(t)||(t[r]=a),i=a)}e[i]=!0}return e}function r1(e){const t=QF(null);for(const[n,r]of XF(e))ZF(e,n)!==void 0&&(t[n]=r);return t}function X0(e,t){for(;e!==null;){const r=ZF(e,t);if(r){if(r.get)return va(r.get);if(typeof r.value=="function")return va(r.value)}e=D1e(e)}function n(r){return console.warn("fallback value for",r),null}return n}const wI=ii(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),d4=ii(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),p4=ii(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B1e=ii(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),f4=ii(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U1e=ii(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),AI=ii(["#text"]),CI=ii(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),h4=ii(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kI=ii(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z0=ii(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$1e=Ya(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z1e=Ya(/<%[\w\W]*|[\w\W]*%>/gm),H1e=Ya(/\${[\w\W]*}/gm),j1e=Ya(/^data-[\-\w.\u00B7-\uFFFF]/),G1e=Ya(/^aria-[\-\w]+$/),JF=Ya(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V1e=Ya(/^(?:\w+script|data):/i),W1e=Ya(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eP=Ya(/^html$/i);var xI=Object.freeze({__proto__:null,MUSTACHE_EXPR:$1e,ERB_EXPR:z1e,TMPLIT_EXPR:H1e,DATA_ATTR:j1e,ARIA_ATTR:G1e,IS_ALLOWED_URI:JF,IS_SCRIPT_OR_DATA:V1e,ATTR_WHITESPACE:W1e,DOCTYPE_NAME:eP});const q1e=function(){return typeof window>"u"?null:window},K1e=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function tP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q1e();const t=Ke=>tP(Ke);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,b=u.prototype,y=X0(b,"cloneNode"),T=X0(b,"nextSibling"),E=X0(b,"childNodes"),v=X0(b,"parentNode");if(typeof o=="function"){const Ke=n.createElement("template");Ke.content&&Ke.content.ownerDocument&&(n=Ke.content.ownerDocument)}let w,A="";const{implementation:R,createNodeIterator:k,createDocumentFragment:N,getElementsByTagName:B}=n,{importNode:q}=r;let P={};t.isSupported=typeof XF=="function"&&typeof v=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:$,TMPLIT_EXPR:oe,DATA_ATTR:fe,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:H}=xI;let{IS_ALLOWED_URI:W}=xI,se=null;const D=At({},[...wI,...d4,...p4,...f4,...AI]);let pe=null;const le=At({},[...CI,...h4,...kI,...Z0]);let L=Object.seal(QF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Se=null,X=!0,ke=!0,te=!1,Me=!0,Re=!1,Ze=!1,We=!1,dt=!1,ot=!1,je=!1,pt=!1,U=!0,re=!1;const de="user-content-";let xe=!0,ye=!1,Te={},Le=null;const ze=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ye=null;const jt=At({},["audio","video","img","source","image","track"]);let ue=null;const Ee=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",j="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let Ve=me,ge=!1,G=null;const K=At({},[qe,j,me],c4);let ne=null;const ve=["application/xhtml+xml","text/html"],Qe="text/html";let Fe=null,at=null;const rt=n.createElement("form"),Je=function(J){return J instanceof RegExp||J instanceof Function},Rt=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(at&&at===J)){if((!J||typeof J!="object")&&(J={}),J=r1(J),ne=ve.indexOf(J.PARSER_MEDIA_TYPE)===-1?ne=Qe:ne=J.PARSER_MEDIA_TYPE,Fe=ne==="application/xhtml+xml"?c4:Fh,se="ALLOWED_TAGS"in J?At({},J.ALLOWED_TAGS,Fe):D,pe="ALLOWED_ATTR"in J?At({},J.ALLOWED_ATTR,Fe):le,G="ALLOWED_NAMESPACES"in J?At({},J.ALLOWED_NAMESPACES,c4):K,ue="ADD_URI_SAFE_ATTR"in J?At(r1(Ee),J.ADD_URI_SAFE_ATTR,Fe):Ee,Ye="ADD_DATA_URI_TAGS"in J?At(r1(jt),J.ADD_DATA_URI_TAGS,Fe):jt,Le="FORBID_CONTENTS"in J?At({},J.FORBID_CONTENTS,Fe):ze,ie="FORBID_TAGS"in J?At({},J.FORBID_TAGS,Fe):{},Se="FORBID_ATTR"in J?At({},J.FORBID_ATTR,Fe):{},Te="USE_PROFILES"in J?J.USE_PROFILES:!1,X=J.ALLOW_ARIA_ATTR!==!1,ke=J.ALLOW_DATA_ATTR!==!1,te=J.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=J.SAFE_FOR_TEMPLATES||!1,Ze=J.WHOLE_DOCUMENT||!1,ot=J.RETURN_DOM||!1,je=J.RETURN_DOM_FRAGMENT||!1,pt=J.RETURN_TRUSTED_TYPE||!1,dt=J.FORCE_BODY||!1,U=J.SANITIZE_DOM!==!1,re=J.SANITIZE_NAMED_PROPS||!1,xe=J.KEEP_CONTENT!==!1,ye=J.IN_PLACE||!1,W=J.ALLOWED_URI_REGEXP||JF,Ve=J.NAMESPACE||me,L=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(ke=!1),je&&(ot=!0),Te&&(se=At({},[...AI]),pe=[],Te.html===!0&&(At(se,wI),At(pe,CI)),Te.svg===!0&&(At(se,d4),At(pe,h4),At(pe,Z0)),Te.svgFilters===!0&&(At(se,p4),At(pe,h4),At(pe,Z0)),Te.mathMl===!0&&(At(se,f4),At(pe,kI),At(pe,Z0))),J.ADD_TAGS&&(se===D&&(se=r1(se)),At(se,J.ADD_TAGS,Fe)),J.ADD_ATTR&&(pe===le&&(pe=r1(pe)),At(pe,J.ADD_ATTR,Fe)),J.ADD_URI_SAFE_ATTR&&At(ue,J.ADD_URI_SAFE_ATTR,Fe),J.FORBID_CONTENTS&&(Le===ze&&(Le=r1(Le)),At(Le,J.FORBID_CONTENTS,Fe)),xe&&(se["#text"]=!0),Ze&&At(se,["html","head","body"]),se.table&&(At(se,["tbody"]),delete ie.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=J.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=K1e(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ii&&ii(J),at=J}},Qt=At({},["mi","mo","mn","ms","mtext"]),kt=At({},["foreignobject","desc","title","annotation-xml"]),rn=At({},["title","style","font","a","script"]),Xt=At({},d4);At(Xt,p4),At(Xt,B1e);const Wr=At({},f4);At(Wr,U1e);const qr=function(J){let Be=v(J);(!Be||!Be.tagName)&&(Be={namespaceURI:Ve,tagName:"template"});const it=Fh(J.tagName),un=Fh(Be.tagName);return G[J.namespaceURI]?J.namespaceURI===j?Be.namespaceURI===me?it==="svg":Be.namespaceURI===qe?it==="svg"&&(un==="annotation-xml"||Qt[un]):!!Xt[it]:J.namespaceURI===qe?Be.namespaceURI===me?it==="math":Be.namespaceURI===j?it==="math"&&kt[un]:!!Wr[it]:J.namespaceURI===me?Be.namespaceURI===j&&!kt[un]||Be.namespaceURI===qe&&!Qt[un]?!1:!Wr[it]&&(rn[it]||!Xt[it]):!!(ne==="application/xhtml+xml"&&G[J.namespaceURI]):!1},Kr=function(J){ld(t.removed,{element:J});try{J.parentNode.removeChild(J)}catch{J.remove()}},Aa=function(J,Be){try{ld(t.removed,{attribute:Be.getAttributeNode(J),from:Be})}catch{ld(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(J),J==="is"&&!pe[J])if(ot||je)try{Kr(Be)}catch{}else try{Be.setAttribute(J,"")}catch{}},si=function(J){let Be=null,it=null;if(dt)J=""+J;else{const or=L1e(J,/^[\r\n\t ]+/);it=or&&or[0]}ne==="application/xhtml+xml"&&Ve===me&&(J=''+J+"");const un=w?w.createHTML(J):J;if(Ve===me)try{Be=new m().parseFromString(un,ne)}catch{}if(!Be||!Be.documentElement){Be=R.createDocument(Ve,"template",null);try{Be.documentElement.innerHTML=ge?A:un}catch{}}const ar=Be.body||Be.documentElement;return J&&it&&ar.insertBefore(n.createTextNode(it),ar.childNodes[0]||null),Ve===me?B.call(Be,Ze?"html":"body")[0]:Ze?Be.documentElement:ar},Or=function(J){return k.call(J.ownerDocument||J,J,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Es=function(J){return J instanceof f&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof p)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},vs=function(J){return typeof s=="function"&&J instanceof s},Yr=function(J,Be,it){P[J]&&Y0(P[J],un=>{un.call(t,Be,it,at)})},_s=function(J){let Be=null;if(Yr("beforeSanitizeElements",J,null),Es(J))return Kr(J),!0;const it=Fe(J.nodeName);if(Yr("uponSanitizeElement",J,{tagName:it,allowedTags:se}),J.hasChildNodes()&&!vs(J.firstElementChild)&&Ni(/<[/\w]/g,J.innerHTML)&&Ni(/<[/\w]/g,J.textContent))return Kr(J),!0;if(!se[it]||ie[it]){if(!ie[it]&&Dr(it)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it)))return!1;if(xe&&!Le[it]){const un=v(J)||J.parentNode,ar=E(J)||J.childNodes;if(ar&&un){const or=ar.length;for(let Zn=or-1;Zn>=0;--Zn)un.insertBefore(y(ar[Zn],!0),T(J))}}return Kr(J),!0}return J instanceof u&&!qr(J)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ni(/<\/no(script|embed|frames)/i,J.innerHTML)?(Kr(J),!0):(Re&&J.nodeType===3&&(Be=J.textContent,Y0([Q,$,oe],un=>{Be=ud(Be,un," ")}),J.textContent!==Be&&(ld(t.removed,{element:J.cloneNode()}),J.textContent=Be)),Yr("afterSanitizeElements",J,null),!1)},qt=function(J,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in rt))return!1;if(!(ke&&!Se[Be]&&Ni(fe,Be))){if(!(X&&Ni(ce,Be))){if(!pe[Be]||Se[Be]){if(!(Dr(J)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,J)||L.tagNameCheck instanceof Function&&L.tagNameCheck(J))&&(L.attributeNameCheck instanceof RegExp&&Ni(L.attributeNameCheck,Be)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(Be))||Be==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ni(W,ud(it,H,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&J!=="script"&&M1e(it,"data:")===0&&Ye[J])){if(!(te&&!Ni(De,ud(it,H,"")))){if(it)return!1}}}}}}return!0},Dr=function(J){return J.indexOf("-")>0},Si=function(J){Yr("beforeSanitizeAttributes",J,null);const{attributes:Be}=J;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};let un=Be.length;for(;un--;){const ar=Be[un],{name:or,namespaceURI:Zn,value:No}=ar,no=Fe(or);let Lr=or==="value"?No:F1e(No);if(it.attrName=no,it.attrValue=Lr,it.keepAttr=!0,it.forceKeepAttr=void 0,Yr("uponSanitizeAttribute",J,it),Lr=it.attrValue,it.forceKeepAttr||(Aa(or,J),!it.keepAttr))continue;if(!Me&&Ni(/\/>/i,Lr)){Aa(or,J);continue}Re&&Y0([Q,$,oe],vf=>{Lr=ud(Lr,vf," ")});const Ef=Fe(J.nodeName);if(qt(Ef,no,Lr)){if(re&&(no==="id"||no==="name")&&(Aa(or,J),Lr=de+Lr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Zn)switch(g.getAttributeType(Ef,no)){case"TrustedHTML":{Lr=w.createHTML(Lr);break}case"TrustedScriptURL":{Lr=w.createScriptURL(Lr);break}}try{Zn?J.setAttributeNS(Zn,or,Lr):J.setAttribute(or,Lr),SI(t.removed)}catch{}}}Yr("afterSanitizeAttributes",J,null)},Nl=function Ke(J){let Be=null;const it=Or(J);for(Yr("beforeSanitizeShadowDOM",J,null);Be=it.nextNode();)Yr("uponSanitizeShadowNode",Be,null),!_s(Be)&&(Be.content instanceof a&&Ke(Be.content),Si(Be));Yr("afterSanitizeShadowDOM",J,null)};return t.sanitize=function(Ke){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,un=null,ar=null;if(ge=!Ke,ge&&(Ke=""),typeof Ke!="string"&&!vs(Ke))if(typeof Ke.toString=="function"){if(Ke=Ke.toString(),typeof Ke!="string")throw cd("dirty is not a string, aborting")}else throw cd("toString is not a function");if(!t.isSupported)return Ke;if(We||Rt(J),t.removed=[],typeof Ke=="string"&&(ye=!1),ye){if(Ke.nodeName){const No=Fe(Ke.nodeName);if(!se[No]||ie[No])throw cd("root node is forbidden and cannot be sanitized in-place")}}else if(Ke instanceof s)Be=si(""),it=Be.ownerDocument.importNode(Ke,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Ze&&Ke.indexOf("<")===-1)return w&&pt?w.createHTML(Ke):Ke;if(Be=si(Ke),!Be)return ot?null:pt?A:""}Be&&dt&&Kr(Be.firstChild);const or=Or(ye?Ke:Be);for(;un=or.nextNode();)_s(un)||(un.content instanceof a&&Nl(un.content),Si(un));if(ye)return Ke;if(ot){if(je)for(ar=N.call(Be.ownerDocument);Be.firstChild;)ar.appendChild(Be.firstChild);else ar=Be;return(pe.shadowroot||pe.shadowrootmode)&&(ar=q.call(r,ar,!0)),ar}let Zn=Ze?Be.outerHTML:Be.innerHTML;return Ze&&se["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ni(eP,Be.ownerDocument.doctype.name)&&(Zn=" -`+Zn),Re&&Y0([Q,$,oe],No=>{Zn=ud(Zn,No," ")}),w&&pt?w.createHTML(Zn):Zn},t.setConfig=function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rt(Ke),We=!0},t.clearConfig=function(){at=null,We=!1},t.isValidAttribute=function(Ke,J,Be){at||Rt({});const it=Fe(Ke),un=Fe(J);return qt(it,un,Be)},t.addHook=function(Ke,J){typeof J=="function"&&(P[Ke]=P[Ke]||[],ld(P[Ke],J))},t.removeHook=function(Ke){if(P[Ke])return SI(P[Ke])},t.removeHooks=function(Ke){P[Ke]&&(P[Ke]=[])},t.removeAllHooks=function(){P={}},t}var Y1e=tP(),Z7={};const X1e={folder:["folder","white"],"karma.conf.js":["karma","green"],"karma.conf.coffee":["karma","green"],"README.md":["info","blue"],"CHANGELOG.md":["clock","blue"],CHANGELOG:["clock","blue"],"CHANGES.md":["clock","blue"],"VERSION.md":["clock","blue"],VERSION:["clock","blue"],mvnw:["maven","red"],"tsconfig.json":["tsconfig","blue"],"swagger.json":["json","green"],"swagger.yml":["json","green"],"swagger.yaml":["json","green"],"mime.types":["config","grey-light"],Jenkinsfile:["jenkins","red"],"babel.config.js":["babel","yellow"],"babel.config.json":["babel","yellow"],"babel.config.cjs":["babel","yellow"],"bower.json":["bower","orange"],"Bower.json":["bower","orange"],"firebase.json":["firebase","orange"],geckodriver:["firefox","orange"],"Gruntfile.js":["grunt","orange"],"gruntfile.babel.js":["grunt","orange"],"Gruntfile.babel.js":["grunt","orange"],"gruntfile.js":["grunt","orange"],"Gruntfile.coffee":["grunt","orange"],"gruntfile.coffee":["grunt","orange"],"ionic.config.json":["ionic","blue"],"Ionic.config.json":["ionic","blue"],"ionic.project":["ionic","blue"],"Ionic.project":["ionic","blue"],"platformio.ini":["platformio","orange"],"rollup.config.js":["rollup","red"],"sass-lint.yml":["sass","pink"],"stylelint.config.js":["stylelint","white"],"stylelint.config.cjs":["stylelint","white"],"yarn.clean":["yarn","blue"],"yarn.lock":["yarn","blue"],"webpack.config.js":["webpack","blue"],"webpack.config.build.js":["webpack","blue"],"webpack.common.js":["webpack","blue"],"webpack.dev.js":["webpack","blue"],"webpack.prod.js":["webpack","blue"],"npm-debug.log":["npm_ignored","ignore"]},Z1e={".bsl":["bsl","red"],".mdo":["mdo","red"],".cls":["salesforce","blue"],".apex":["salesforce","blue"],".asm":["asm","red"],".s":["asm","red"],".bicep":["bicep","blue"],".c":["c","blue"],".h":["c","purple"],".m":["c","yellow"],".cs":["c-sharp","blue"],".cshtml":["html","blue"],".aspx":["html","blue"],".ascx":["html","green"],".asax":["html","yellow"],".master":["html","yellow"],".cc":["cpp","blue"],".cpp":["cpp","blue"],".cxx":["cpp","blue"],".c++":["cpp","blue"],".hh":["cpp","purple"],".hpp":["cpp","purple"],".hxx":["cpp","purple"],".h++":["cpp","purple"],".mm":["cpp","yellow"],".clj":["clojure","green"],".cljs":["clojure","green"],".cljc":["clojure","green"],".edn":["clojure","blue"],".cfc":["coldfusion","blue"],".cfm":["coldfusion","blue"],".coffee":["coffee","yellow"],".litcoffee":["coffee","yellow"],".config":["config","grey-light"],".cfg":["config","grey-light"],".conf":["config","grey-light"],".cr":["crystal","white"],".ecr":["crystal_embedded","white"],".slang":["crystal_embedded","white"],".cson":["json","yellow"],".css":["css","blue"],".css.map":["css","blue"],".sss":["css","blue"],".csv":["csv","green"],".xls":["xls","green"],".xlsx":["xls","green"],".cu":["cu","green"],".cuh":["cu","purple"],".hu":["cu","purple"],".cake":["cake","red"],".ctp":["cake_php","red"],".d":["d","red"],".doc":["word","blue"],".docx":["word","blue"],".ejs":["ejs","yellow"],".ex":["elixir","purple"],".exs":["elixir_script","purple"],".elm":["elm","blue"],".ico":["favicon","yellow"],".fs":["f-sharp","blue"],".fsx":["f-sharp","blue"],".gitignore":["git","ignore"],".gitconfig":["git","ignore"],".gitkeep":["git","ignore"],".gitattributes":["git","ignore"],".gitmodules":["git","ignore"],".go":["go2","blue"],".slide":["go","blue"],".article":["go","blue"],".gd":["godot","blue"],".godot":["godot","red"],".tres":["godot","yellow"],".tscn":["godot","purple"],".gradle":["gradle","blue"],".groovy":["grails","green"],".gsp":["grails","green"],".gql":["graphql","pink"],".graphql":["graphql","pink"],".graphqls":["graphql","pink"],".hack":["hacklang","orange"],".haml":["haml","red"],".handlebars":["mustache","orange"],".hbs":["mustache","orange"],".hjs":["mustache","orange"],".hs":["haskell","purple"],".lhs":["haskell","purple"],".hx":["haxe","orange"],".hxs":["haxe","yellow"],".hxp":["haxe","blue"],".hxml":["haxe","purple"],".html":["html","orange"],".jade":["jade","red"],".java":["java","red"],".class":["java","red"],".classpath":["java","red"],".properties":["java","red"],".js":["javascript","yellow"],".js.map":["javascript","yellow"],".spec.js":["javascript","orange"],".test.js":["javascript","orange"],".es":["javascript","yellow"],".es5":["javascript","yellow"],".es6":["javascript","yellow"],".es7":["javascript","yellow"],".jinja":["jinja","red"],".jinja2":["jinja","red"],".json":["json","yellow"],".jl":["julia","purple"],".kt":["kotlin","orange"],".kts":["kotlin","orange"],".dart":["dart","blue"],".less":["less","blue"],".liquid":["liquid","green"],".ls":["livescript","blue"],".lua":["lua","blue"],".markdown":["markdown","blue"],".md":["markdown","blue"],".argdown":["argdown","blue"],".ad":["argdown","blue"],".mustache":["mustache","orange"],".stache":["mustache","orange"],".nim":["nim","yellow"],".nims":["nim","yellow"],".github-issues":["github","white"],".ipynb":["notebook","blue"],".njk":["nunjucks","green"],".nunjucks":["nunjucks","green"],".nunjs":["nunjucks","green"],".nunj":["nunjucks","green"],".njs":["nunjucks","green"],".nj":["nunjucks","green"],".npm-debug.log":["npm","ignore"],".npmignore":["npm","red"],".npmrc":["npm","red"],".ml":["ocaml","orange"],".mli":["ocaml","orange"],".cmx":["ocaml","orange"],".cmxa":["ocaml","orange"],".odata":["odata","orange"],".pl":["perl","blue"],".php":["php","purple"],".php.inc":["php","purple"],".pipeline":["pipeline","orange"],".pddl":["pddl","purple"],".plan":["plan","green"],".happenings":["happenings","blue"],".ps1":["powershell","blue"],".psd1":["powershell","blue"],".psm1":["powershell","blue"],".prisma":["prisma","blue"],".pug":["pug","red"],".pp":["puppet","yellow"],".epp":["puppet","yellow"],".purs":["purescript","white"],".py":["python","blue"],".jsx":["react","blue"],".spec.jsx":["react","orange"],".test.jsx":["react","orange"],".cjsx":["react","blue"],".spec.tsx":["react","orange"],".test.tsx":["react","orange"],".re":["reasonml","red"],".res":["rescript","red"],".resi":["rescript","pink"],".R":["R","blue"],".rmd":["R","blue"],".rb":["ruby","red"],".erb":["html_erb","red"],".erb.html":["html_erb","red"],".html.erb":["html_erb","red"],".rs":["rust","grey-light"],".sass":["sass","pink"],".scss":["sass","pink"],".springBeans":["spring","green"],".slim":["slim","orange"],".smarty.tpl":["smarty","yellow"],".tpl":["smarty","yellow"],".sbt":["sbt","blue"],".scala":["scala","red"],".sol":["ethereum","blue"],".styl":["stylus","green"],".svelte":["svelte","red"],".swift":["swift","orange"],".sql":["db","pink"],".soql":["db","blue"],".tf":["terraform","purple"],".tf.json":["terraform","purple"],".tfvars":["terraform","purple"],".tex":["tex","blue"],".sty":["tex","yellow"],".dtx":["tex","orange"],".ins":["tex","white"],".txt":["default","white"],".toml":["config","grey-light"],".twig":["twig","green"],".ts":["typescript","blue"],".tsx":["typescript","blue"],".spec.ts":["typescript","orange"],".test.ts":["typescript","orange"],".vala":["vala","grey-light"],".vapi":["vala","grey-light"],".component":["html","orange"],".vue":["vue","green"],".wasm":["wasm","purple"],".wat":["wat","purple"],".xml":["xml","orange"],".yml":["yml","purple"],".yaml":["yml","purple"],".pro":["prolog","orange"],".jar":["zip","red"],".zip":["zip","grey-light"],".wgt":["wgt","blue"],".ai":["illustrator","yellow"],".psd":["photoshop","blue"],".pdf":["pdf","red"],".eot":["font","red"],".ttf":["font","red"],".woff":["font","red"],".woff2":["font","red"],".gif":["image","purple"],".jpg":["image","purple"],".jpeg":["image","purple"],".png":["image","purple"],".pxm":["image","purple"],".svg":["svg","purple"],".svgx":["image","purple"],".tiff":["image","purple"],".webp":["image","purple"],".sublime-project":["sublime","orange"],".sublime-workspace":["sublime","orange"],".code-search":["code-search","purple"],".sh":["shell","green"],".zsh":["shell","green"],".fish":["shell","green"],".zshrc":["shell","green"],".bashrc":["shell","green"],".mov":["video","pink"],".ogv":["video","pink"],".webm":["video","pink"],".avi":["video","pink"],".mpg":["video","pink"],".mp4":["video","pink"],".mp3":["audio","purple"],".ogg":["audio","purple"],".wav":["audio","purple"],".flac":["audio","purple"],".3ds":["svg","blue"],".3dm":["svg","blue"],".stl":["svg","blue"],".obj":["svg","blue"],".dae":["svg","blue"],".bat":["windows","blue"],".cmd":["windows","blue"],".babelrc":["babel","yellow"],".babelrc.js":["babel","yellow"],".babelrc.cjs":["babel","yellow"],".bowerrc":["bower","orange"],".codeclimate.yml":["code-climate","green"],".eslintrc":["eslint","purple"],".eslintrc.js":["eslint","purple"],".eslintrc.cjs":["eslint","purple"],".eslintrc.yaml":["eslint","purple"],".eslintrc.yml":["eslint","purple"],".eslintrc.json":["eslint","purple"],".eslintignore":["eslint","grey"],".firebaserc":["firebase","orange"],".jshintrc":["javascript","blue"],".jscsrc":["javascript","blue"],".stylelintrc":["stylelint","white"],".stylelintrc.json":["stylelint","white"],".stylelintrc.yaml":["stylelint","white"],".stylelintrc.yml":["stylelint","white"],".stylelintrc.js":["stylelint","white"],".stylelintignore":["stylelint","grey"],".direnv":["config","grey-light"],".env":["config","grey-light"],".static":["config","grey-light"],".editorconfig":["config","grey-light"],".slugignore":["config","grey-light"],".tmp":["clock","grey-light"],".htaccess":["config","grey-light"],".key":["lock","green"],".cert":["lock","green"],".cer":["lock","green"],".crt":["lock","green"],".pem":["lock","green"],".DS_Store":["ignored","ignore"]},Q1e=[["TODO",["todo","blue"]],["Procfile",["heroku","purple"]],["cmakelists.txt",["makefile","blue"]],["CMakeLists.txt",["makefile","blue"]],["CMAKELISTS.txt",["makefile","blue"]],["CMAKELISTS.TXT",["makefile","blue"]],["omakefile",["makefile","grey-light"]],["OMakefile",["makefile","grey-light"]],["OMAKEFILE",["makefile","grey-light"]],["qmakefile",["makefile","purple"]],["QMakefile",["makefile","purple"]],["QMAKEFILE",["makefile","purple"]],["makefile",["makefile","orange"]],["Makefile",["makefile","orange"]],["MAKEFILE",["makefile","orange"]],["CONTRIBUTING",["license","red"]],["COMPILING",["license","orange"]],["COPYING",["license","yellow"]],["LICENCE.md",["license","yellow"]],["LICENSE.md",["license","yellow"]],["LICENCE",["license","yellow"]],["LICENSE",["license","yellow"]],["gulpfile.js",["gulp","red"]],["gulpfile",["gulp","red"]],["Gulpfile",["gulp","red"]],["GULPFILE",["gulp","red"]],["docker-compose.override.yaml",["docker","pink"]],["docker-compose.override.yml",["docker","pink"]],["docker-compose.yaml",["docker","pink"]],["docker-compose.yml",["docker","pink"]],["docker-healthcheck",["docker","green"]],[".dockerignore",["docker","grey"]],["DOCKERFILE",["docker","blue"]],["Dockerfile",["docker","blue"]],["dockerfile",["docker","blue"]],["gemfile",["ruby","red"]],["Gemfile",["ruby","red"]],["mix",["hex","red"]]],J1e={files:X1e,extensions:Z1e,partials:Q1e,default:["default","white"]},ece='',tce='',nce='',rce='',ice='',ace='',oce='',sce='',lce='',uce='',cce='',dce='',pce='',fce='',hce='',gce='',mce='',bce='',yce='',Ece='',vce='',_ce='',Tce='',Sce='',wce='',Ace='',Cce='',kce='',xce='',Ice='',Rce='',Nce='',Oce='',Dce='',Lce='',Mce='',Fce='',Pce='',Bce='',Uce='',$ce='',zce='',Hce='',jce='',Gce='',Vce='',Wce='',qce='',Kce='',Yce='',Xce='',Zce='',Qce='',Jce='',ede='',tde='',nde='',rde='',ide='',ade='',ode='',sde='',lde='',ude='',cde='',dde='',pde='',fde='',hde='',gde='',mde='',bde='',yde='',Ede='',vde='',_de='',Tde='',Sde='',wde='',Ade='',Cde='',kde='',xde='',Ide='',Rde='',Nde='',Ode='',Dde='',Lde='',Mde='',Fde='',Pde='',Bde='',Ude='',$de='',zde='',Hde='',jde='',Gde='',Vde='',Wde='',qde='',Kde='',Yde='',Xde='',Zde='',Qde='',Jde='',epe='',tpe='',npe='',rpe='',ipe='',ape='',ope='',spe='',lpe='',upe='',cpe='',dpe='',ppe='',fpe='',hpe='',gpe='',mpe='',bpe='',ype='',Epe='',vpe='',_pe='',Tpe='',Spe='',wpe='',Ape='',Cpe='',kpe='',xpe='',Ipe='',Rpe='',Npe='',Ope='',Dpe='',Lpe='',Mpe={folder:ece,bsl:tce,mdo:nce,salesforce:rce,asm:ice,bicep:ace,c:oce,"c-sharp":'',html:sce,cpp:lce,clojure:uce,coldfusion:cce,coffee:dce,config:pce,crystal:fce,crystal_embedded:hce,json:gce,css:mce,csv:bce,xls:yce,cu:Ece,cake:vce,cake_php:_ce,d:Tce,word:Sce,ejs:wce,elixir:Ace,elixir_script:Cce,hex:kce,elm:xce,favicon:Ice,"f-sharp":'',git:Rce,go2:Nce,go:Oce,godot:Dce,gradle:Lce,grails:Mce,graphql:Fce,hacklang:Pce,haml:Bce,mustache:Uce,haskell:$ce,haxe:zce,jade:Hce,java:jce,javascript:Gce,jinja:Vce,julia:Wce,karma:qce,kotlin:Kce,dart:Yce,less:Xce,liquid:Zce,livescript:Qce,lua:Jce,markdown:ede,argdown:tde,info:nde,clock:rde,maven:ide,nim:ade,github:ode,notebook:sde,nunjucks:lde,npm:ude,ocaml:cde,odata:dde,perl:pde,php:fde,pipeline:hde,pddl:gde,plan:mde,happenings:bde,powershell:yde,prisma:Ede,pug:vde,puppet:_de,purescript:Tde,python:Sde,react:wde,reasonml:Ade,rescript:Cde,R:kde,ruby:xde,html_erb:Ide,rust:Rde,sass:Nde,spring:Ode,slim:Dde,smarty:Lde,sbt:Mde,scala:Fde,ethereum:Pde,stylus:Bde,svelte:Ude,swift:$de,db:zde,terraform:Hde,tex:jde,default:'',twig:Gde,typescript:Vde,tsconfig:Wde,vala:qde,vue:Kde,wasm:Yde,wat:Xde,xml:Zde,yml:Qde,prolog:Jde,zip:epe,wgt:tpe,illustrator:npe,photoshop:rpe,pdf:ipe,font:ape,image:ope,svg:spe,sublime:lpe,"code-search":'',shell:upe,video:cpe,audio:dpe,windows:ppe,jenkins:fpe,babel:hpe,bower:gpe,docker:mpe,"code-climate":'',eslint:bpe,firebase:ype,firefox:Epe,grunt:vpe,gulp:_pe,ionic:Tpe,platformio:Spe,rollup:wpe,stylelint:Ape,yarn:Cpe,webpack:kpe,lock:xpe,license:Ipe,makefile:Rpe,heroku:Npe,todo:Ope,npm_ignored:Dpe,ignored:Lpe};var Hg=Jl&&Jl.__assign||function(){return Hg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return i[1]}return i1.default},nP=function(e){var t=Upe(e),n=t[0],r=t[1];return{svg:Bpe[n],color:r}};Z7.getIcon=nP;var $pe=function(e){return function(t){var n=nP(t);return Hg(Hg({},n),{color:e[n.color]})}},zpe=Z7.themeIcons=$pe;const Ey=({filename:e,height:t,width:n})=>{const r=zpe({blue:"#268bd2",grey:"#657b83","grey-light":"#839496",green:"#859900",orange:"#cb4b16",pink:"#d33682",purple:"#6c71c4",red:"#dc322f",white:"#fdf6e3",yellow:"#b58900",ignore:"#586e75"}),{svg:i,color:a}=r(e),o=Y1e.sanitize(i);return I.jsx("div",{dangerouslySetInnerHTML:{__html:o},style:{width:n,height:t,fill:a}})};var Q7={};Object.defineProperty(Q7,"__esModule",{value:!0});Q7.testFunc=void 0;var Hpe=function(){console.log("test")};Q7.testFunc=Hpe;function jpe(e,t){var n;if(typeof vscode>"u"){if(localStorage.getItem("ide"),window.postIntellijMessage===void 0)throw console.log("Unable to send message: postIntellijMessage is undefined. ",e,t),new Error("postIntellijMessage is undefined");(n=window.postIntellijMessage)==null||n.call(window,e,t);return}vscode.postMessage({type:e,...t})}function qa(e,t,n=0){try{jpe(e,t)}catch(r){n<5?(console.log(`Attempt ${n} failed. Retrying...`),setTimeout(()=>qa(e,t,n+1),Math.pow(2,n)*1e3)):console.error("Max attempts reached. Message could not be sent.",r)}}var rP={exports:{}},iP={};/** + */var R2=60103,N2=60106,nf=60107,rf=60108,af=60114,of=60109,sf=60110,lf=60112,uf=60113,F7=60120,cf=60115,df=60116,xF=60121,IF=60122,RF=60117,NF=60129,OF=60131;if(typeof Symbol=="function"&&Symbol.for){var yr=Symbol.for;R2=yr("react.element"),N2=yr("react.portal"),nf=yr("react.fragment"),rf=yr("react.strict_mode"),af=yr("react.profiler"),of=yr("react.provider"),sf=yr("react.context"),lf=yr("react.forward_ref"),uf=yr("react.suspense"),F7=yr("react.suspense_list"),cf=yr("react.memo"),df=yr("react.lazy"),xF=yr("react.block"),IF=yr("react.server.block"),RF=yr("react.fundamental"),NF=yr("react.debug_trace_mode"),OF=yr("react.legacy_hidden")}function Ja(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R2:switch(e=e.type,e){case nf:case af:case rf:case uf:case F7:return e;default:switch(e=e&&e.$$typeof,e){case sf:case lf:case df:case cf:case of:return e;default:return t}}case N2:return t}}}var $ue=of,zue=R2,Hue=lf,jue=nf,Gue=df,Vue=cf,Wue=N2,que=af,Kue=rf,Yue=uf;yn.ContextConsumer=sf;yn.ContextProvider=$ue;yn.Element=zue;yn.ForwardRef=Hue;yn.Fragment=jue;yn.Lazy=Gue;yn.Memo=Vue;yn.Portal=Wue;yn.Profiler=que;yn.StrictMode=Kue;yn.Suspense=Yue;yn.isAsyncMode=function(){return!1};yn.isConcurrentMode=function(){return!1};yn.isContextConsumer=function(e){return Ja(e)===sf};yn.isContextProvider=function(e){return Ja(e)===of};yn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R2};yn.isForwardRef=function(e){return Ja(e)===lf};yn.isFragment=function(e){return Ja(e)===nf};yn.isLazy=function(e){return Ja(e)===df};yn.isMemo=function(e){return Ja(e)===cf};yn.isPortal=function(e){return Ja(e)===N2};yn.isProfiler=function(e){return Ja(e)===af};yn.isStrictMode=function(e){return Ja(e)===rf};yn.isSuspense=function(e){return Ja(e)===uf};yn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nf||e===af||e===NF||e===rf||e===uf||e===F7||e===OF||typeof e=="object"&&e!==null&&(e.$$typeof===df||e.$$typeof===cf||e.$$typeof===of||e.$$typeof===sf||e.$$typeof===lf||e.$$typeof===RF||e.$$typeof===xF||e[0]===IF)};yn.typeOf=Ja;let mI=e=>typeof e=="object"&&e!=null&&e.nodeType===1,bI=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",u4=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,Xue=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var Zue=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:fe=>fe!==f;if(!mI(e))throw new TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,y=[],T=e;for(;mI(T)&&g(T);){if(T=Xue(T),T===b){y.push(T);break}T!=null&&T===document.body&&u4(T)&&!u4(document.documentElement)||T!=null&&u4(T,m)&&y.push(T)}let E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:R,width:k,top:N,right:B,bottom:q,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?N:c==="end"?q:N+R/2,$=p==="center"?P+k/2:p==="end"?B:P,oe=[];for(let fe=0;fe=0&&P>=0&&q<=v&&B<=E&&N>=W&&q<=D&&P>=pe&&B<=se)return oe;let le=getComputedStyle(ce),L=parseInt(le.borderLeftWidth,10),ie=parseInt(le.borderTopWidth,10),Se=parseInt(le.borderRightWidth,10),X=parseInt(le.borderBottomWidth,10),ke=0,te=0,Me="offsetWidth"in ce?ce.offsetWidth-ce.clientWidth-L-Se:0,Re="offsetHeight"in ce?ce.offsetHeight-ce.clientHeight-ie-X:0,Ze="offsetWidth"in ce?ce.offsetWidth===0?0:H/ce.offsetWidth:0,We="offsetHeight"in ce?ce.offsetHeight===0?0:De/ce.offsetHeight:0;if(b===ce)ke=c==="start"?Q:c==="end"?Q-v:c==="nearest"?V0(A,A+v,v,ie,X,A+Q,A+Q+R,R):Q-v/2,te=p==="start"?$:p==="center"?$-E/2:p==="end"?$-E:V0(w,w+E,E,L,Se,w+$,w+$+k,k),ke=Math.max(0,ke+A),te=Math.max(0,te+w);else{ke=c==="start"?Q-W-ie:c==="end"?Q-D+X+Re:c==="nearest"?V0(W,D,De,ie,X+Re,Q,Q+R,R):Q-(W+De/2)+Re/2,te=p==="start"?$-pe-L:p==="center"?$-(pe+H/2)+Me/2:p==="end"?$-se+Se+Me:V0(pe,se,H,L,Se+Me,$,$+k,k);let{scrollLeft:dt,scrollTop:ot}=ce;ke=Math.max(0,Math.min(ot+ke/We,ce.scrollHeight-De/We+Re)),te=Math.max(0,Math.min(dt+te/Ze,ce.scrollWidth-H/Ze+Me)),Q+=ot-ke,$+=dt-te}oe.push({el:ce,top:ke,left:te})}return oe},$g=function(){return $g=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function q0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=Ap(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function Ap(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?Ap(1,0,n,r,!1):Ap(-1,n-1,n,r,!1):-1}function EI(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(yI(i,e,n)||r&&yI(i,n.document.activeElement,n))})}var r1e=LF(function(e){FF(e).textContent=""},500);function i1e(e,t){var n=FF(t);e&&(n.textContent=e,r1e(t))}function FF(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var a1e=["isInitialMount","highlightedIndex","items","environment"],PF={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function o1e(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){s1e(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(nn({type:i},a))}function s1e(e,t,n,r){var i=t.props,a=t.type,o="on"+P7(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](nn({type:a},r))}function l1e(e,t){return t.changes}function u1e(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var c1e=LF(function(e,t){i1e(e(),t)},200),d1e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function p1e(e){var t=e.id,n=t===void 0?"downshift-"+e1e():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function f1e(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function h1e(e){return e?String(e):""}function P7(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function BF(e){var t=C.useRef(e);return t.current=e,t}function g1e(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=my(m,g.props);var b=e(m,g),y=g.props.stateReducer(m,nn({},g,{changes:b}));return y},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=BF(n),p=C.useCallback(function(m){return u(nn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&o1e(f,my(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Kd={itemToString:h1e,stateReducer:l1e,getA11ySelectionMessage:u1e,scrollIntoView:Jue,environment:typeof window>"u"?{}:window};function bo(e,t,n){n===void 0&&(n=PF);var r=e["default"+P7(t)];return r!==void 0?r:n[t]}function K0(e,t,n){n===void 0&&(n=PF);var r=e[t];if(r!==void 0)return r;var i=e["initial"+P7(t)];return i!==void 0?i:bo(e,t,n)}function m1e(e){var t=K0(e,"selectedItem"),n=K0(e,"isOpen"),r=K0(e,"highlightedIndex"),i=K0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Yd(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function b1e(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!EI(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!EI(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var y1e=function(){return DF};function vI(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=C1(n,a1e);C.useEffect(function(){r||c1e(function(){return e(nn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function E1e(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return d1e(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var v1e=DF;function _I(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return nn({isOpen:!1,highlightedIndex:-1},i&&nn({selectedItem:e.items[t],isOpen:bo(e,"isOpen"),highlightedIndex:bo(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function _1e(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Yd(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:bo(i,"highlightedIndex"),isOpen:bo(i,"isOpen"),selectedItem:bo(i,"selectedItem"),inputValue:bo(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return nn({},e,a)}be.array.isRequired,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.func,be.string,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function T1e(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}$g($g({},Kd),{getA11yStatusMessage:T1e});var B7=0,U7=1,$7=2,z7=3,H7=4,j7=5,G7=6,V7=7,W7=8,zg=9,q7=10,UF=11,$F=12,K7=13,zF=14,HF=15,jF=16,GF=17,VF=18,Y7=19,WF=20,qF=21,X7=22,KF=Object.freeze({__proto__:null,InputKeyDownArrowDown:B7,InputKeyDownArrowUp:U7,InputKeyDownEscape:$7,InputKeyDownHome:z7,InputKeyDownEnd:H7,InputKeyDownPageUp:j7,InputKeyDownPageDown:G7,InputKeyDownEnter:V7,InputChange:W7,InputBlur:zg,InputFocus:q7,MenuMouseLeave:UF,ItemMouseMove:$F,ItemClick:K7,ToggleButtonClick:zF,FunctionToggleMenu:HF,FunctionOpenMenu:jF,FunctionCloseMenu:GF,FunctionSetHighlightedIndex:VF,FunctionSelectItem:Y7,FunctionSetInputValue:WF,FunctionReset:qF,ControlledPropUpdatedSelectedItem:X7});function S1e(e){var t=m1e(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),nn({},t,{inputValue:r})}be.array.isRequired,be.func,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.string,be.string,be.string,be.func,be.string,be.string,be.func,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function w1e(e,t,n){var r=C.useRef(),i=g1e(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){MF(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:X7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[my(a,n),o]}var A1e=nn({},Kd,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:t1e});function C1e(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case K7:o={isOpen:bo(i,"isOpen"),highlightedIndex:bo(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case B7:e.isOpen?o={highlightedIndex:q0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Yd(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case U7:e.isOpen?a?o=_I(i,e.highlightedIndex):o={highlightedIndex:q0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Yd(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case V7:o=_I(i,e.highlightedIndex);break;case $7:o=nn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case j7:o={highlightedIndex:q0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case G7:o={highlightedIndex:q0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case z7:o={highlightedIndex:Ap(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case H7:o={highlightedIndex:Ap(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case zg:o=nn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case W7:o={isOpen:!0,highlightedIndex:bo(i,"highlightedIndex"),inputValue:t.inputValue};break;case q7:o={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case Y7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case X7:o={inputValue:t.inputValue};break;default:return _1e(e,t,KF)}return nn({},e,o)}var k1e=["onMouseLeave","refKey","ref"],x1e=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],I1e=["onClick","onPress","refKey","ref"],R1e=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];YF.stateChangeTypes=KF;function YF(e){e===void 0&&(e={});var t=nn({},A1e,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=S1e(t),f=w1e(C1e,p,t),m=f[0],g=f[1],b=m.isOpen,y=m.highlightedIndex,T=m.selectedItem,E=m.inputValue,v=C.useRef(null),w=C.useRef({}),A=C.useRef(null),R=C.useRef(null),k=C.useRef(!0),N=p1e(t),B=C.useRef(),q=BF({state:m,props:t}),P=C.useCallback(function(ke){return w.current[N.getItemId(ke)]},[N]);vI(s,[b,y,E,i],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),vI(u,[T],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=E1e({menuElement:v.current,highlightedIndex:y,isOpen:b,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});v1e({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var ke=n||r||b;ke&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var $=b1e(b,[A,v,R],o,function(){g({type:zg,selectItem:!1})}),oe=y1e();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var ke;if(!b)w.current={};else if(((ke=o.document)==null?void 0:ke.activeElement)!==A.current){var te;A==null||(te=A.current)==null||te.focus()}},[b,o]);var fe=C.useMemo(function(){return{ArrowDown:function(te){te.preventDefault(),g({type:B7,altKey:te.altKey,getItemNodeFromIndex:P})},ArrowUp:function(te){te.preventDefault(),g({type:U7,altKey:te.altKey,getItemNodeFromIndex:P})},Home:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:z7,getItemNodeFromIndex:P}))},End:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:H7,getItemNodeFromIndex:P}))},Escape:function(te){var Me=q.current.state;(Me.isOpen||Me.inputValue||Me.selectedItem||Me.highlightedIndex>-1)&&(te.preventDefault(),g({type:$7}))},Enter:function(te){var Me=q.current.state;!Me.isOpen||te.which===229||(te.preventDefault(),g({type:V7,getItemNodeFromIndex:P}))},PageUp:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:j7,getItemNodeFromIndex:P}))},PageDown:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:G7,getItemNodeFromIndex:P}))}}},[g,q,P]),ce=C.useCallback(function(ke){return nn({id:N.labelId,htmlFor:N.inputId},ke)},[N]),De=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onMouseLeave,We=Re.refKey,dt=We===void 0?"ref":We,ot=Re.ref,je=C1(Re,k1e),pt=te===void 0?{}:te;return pt.suppressRefError,nn((Me={},Me[dt]=W0(ot,function(U){v.current=U}),Me.id=N.menuId,Me.role="listbox",Me["aria-labelledby"]=je&&je["aria-label"]?void 0:""+N.labelId,Me.onMouseLeave=qo(Ze,function(){g({type:UF})}),Me),je)},[g,oe,N]),H=C.useCallback(function(ke){var te,Me,Re=ke===void 0?{}:ke,Ze=Re.item,We=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,je=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,re=Re.onClick;Re.onPress;var de=Re.disabled,xe=C1(Re,x1e),ye=q.current,Te=ye.props,Le=ye.state,ze=f1e(Ze,We,Te.items,"Pass either item or index to getItemProps!"),Ye=ze[1],jt="onClick",ue=re,Ee=function(){Ye!==Le.highlightedIndex&&(Q.current=!1,g({type:$F,index:Ye,disabled:de}))},qe=function(){g({type:K7,index:Ye})},j=function(Ve){return Ve.preventDefault()};return nn((te={},te[ot]=W0(je,function(me){me&&(w.current[N.getItemId(Ye)]=me)}),te.disabled=de,te.role="option",te["aria-selected"]=""+(Ye===Le.highlightedIndex),te.id=N.getItemId(Ye),te),!de&&(Me={},Me[jt]=qo(ue,qe),Me),{onMouseMove:qo(pt,Ee),onMouseDown:qo(U,j)},xe)},[g,q,Q,N]),W=C.useCallback(function(ke){var te,Me=ke===void 0?{}:ke,Re=Me.onClick;Me.onPress;var Ze=Me.refKey,We=Ze===void 0?"ref":Ze,dt=Me.ref,ot=C1(Me,I1e),je=q.current.state,pt=function(){g({type:zF})};return nn((te={},te[We]=W0(dt,function(U){R.current=U}),te["aria-controls"]=N.menuId,te["aria-expanded"]=je.isOpen,te.id=N.toggleButtonId,te.tabIndex=-1,te),!ot.disabled&&nn({},{onClick:qo(Re,pt)}),ot)},[g,q,N]),se=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onKeyDown,We=Re.onChange,dt=Re.onInput,ot=Re.onFocus,je=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,re=Re.ref,de=C1(Re,R1e),xe=te===void 0?{}:te;xe.suppressRefError;var ye=q.current.state,Te=function(j){var me=n1e(j);me&&fe[me]&&fe[me](j)},Le=function(j){g({type:W7,inputValue:j.target.value})},ze=function(j){if(ye.isOpen&&!$.current.isMouseDown){var me=j.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:zg,selectItem:!me})}},Ye=function(){ye.isOpen||g({type:q7})},jt="onChange",ue={};if(!de.disabled){var Ee;ue=(Ee={},Ee[jt]=qo(We,dt,Le),Ee.onKeyDown=qo(Ze,Te),Ee.onBlur=qo(je,ze),Ee.onFocus=qo(ot,Ye),Ee)}return nn((Me={},Me[U]=W0(re,function(qe){A.current=qe}),Me["aria-activedescendant"]=ye.isOpen&&ye.highlightedIndex>-1?N.getItemId(ye.highlightedIndex):"",Me["aria-autocomplete"]="list",Me["aria-controls"]=N.menuId,Me["aria-expanded"]=ye.isOpen,Me["aria-labelledby"]=de&&de["aria-label"]?void 0:""+N.labelId,Me.autoComplete="off",Me.id=N.inputId,Me.role="combobox",Me.value=ye.inputValue,Me),ue,de)},[oe,q,N,fe,g,$,o]),D=C.useCallback(function(){g({type:HF})},[g]),pe=C.useCallback(function(){g({type:GF})},[g]),le=C.useCallback(function(){g({type:jF})},[g]),L=C.useCallback(function(ke){g({type:VF,highlightedIndex:ke})},[g]),ie=C.useCallback(function(ke){g({type:Y7,selectedItem:ke})},[g]),Se=C.useCallback(function(ke){g({type:WF,inputValue:ke})},[g]),X=C.useCallback(function(){g({type:qF})},[g]);return{getItemProps:H,getLabelProps:ce,getMenuProps:De,getInputProps:se,getToggleButtonProps:W,toggleMenu:D,openMenu:le,closeMenu:pe,setHighlightedIndex:L,setInputValue:Se,selectItem:ie,reset:X,highlightedIndex:y,isOpen:b,selectedItem:T,inputValue:E}}function N1e(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}be.array,be.array,be.array,be.func,be.func,be.func,be.number,be.number,be.number,be.func,be.func,be.string,be.string,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});Kd.itemToString,Kd.stateReducer,Kd.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:XF,setPrototypeOf:TI,isFrozen:O1e,getPrototypeOf:D1e,getOwnPropertyDescriptor:ZF}=Object;let{freeze:ii,seal:Ya,create:QF}=Object,{apply:by,construct:yy}=typeof Reflect<"u"&&Reflect;ii||(ii=function(t){return t});Ya||(Ya=function(t){return t});by||(by=function(t,n,r){return t.apply(n,r)});yy||(yy=function(t,n){return new t(...n)});const Y0=va(Array.prototype.forEach),SI=va(Array.prototype.pop),ld=va(Array.prototype.push),Fh=va(String.prototype.toLowerCase),c4=va(String.prototype.toString),L1e=va(String.prototype.match),ud=va(String.prototype.replace),M1e=va(String.prototype.indexOf),F1e=va(String.prototype.trim),Ni=va(RegExp.prototype.test),cd=P1e(TypeError);function va(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Fh;TI&&TI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(O1e(t)||(t[r]=a),i=a)}e[i]=!0}return e}function r1(e){const t=QF(null);for(const[n,r]of XF(e))ZF(e,n)!==void 0&&(t[n]=r);return t}function X0(e,t){for(;e!==null;){const r=ZF(e,t);if(r){if(r.get)return va(r.get);if(typeof r.value=="function")return va(r.value)}e=D1e(e)}function n(r){return console.warn("fallback value for",r),null}return n}const wI=ii(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),d4=ii(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),p4=ii(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B1e=ii(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),f4=ii(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U1e=ii(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),AI=ii(["#text"]),CI=ii(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),h4=ii(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kI=ii(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z0=ii(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$1e=Ya(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z1e=Ya(/<%[\w\W]*|[\w\W]*%>/gm),H1e=Ya(/\${[\w\W]*}/gm),j1e=Ya(/^data-[\-\w.\u00B7-\uFFFF]/),G1e=Ya(/^aria-[\-\w]+$/),JF=Ya(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V1e=Ya(/^(?:\w+script|data):/i),W1e=Ya(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eP=Ya(/^html$/i);var xI=Object.freeze({__proto__:null,MUSTACHE_EXPR:$1e,ERB_EXPR:z1e,TMPLIT_EXPR:H1e,DATA_ATTR:j1e,ARIA_ATTR:G1e,IS_ALLOWED_URI:JF,IS_SCRIPT_OR_DATA:V1e,ATTR_WHITESPACE:W1e,DOCTYPE_NAME:eP});const q1e=function(){return typeof window>"u"?null:window},K1e=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function tP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q1e();const t=Ke=>tP(Ke);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,b=u.prototype,y=X0(b,"cloneNode"),T=X0(b,"nextSibling"),E=X0(b,"childNodes"),v=X0(b,"parentNode");if(typeof o=="function"){const Ke=n.createElement("template");Ke.content&&Ke.content.ownerDocument&&(n=Ke.content.ownerDocument)}let w,A="";const{implementation:R,createNodeIterator:k,createDocumentFragment:N,getElementsByTagName:B}=n,{importNode:q}=r;let P={};t.isSupported=typeof XF=="function"&&typeof v=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:$,TMPLIT_EXPR:oe,DATA_ATTR:fe,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:H}=xI;let{IS_ALLOWED_URI:W}=xI,se=null;const D=At({},[...wI,...d4,...p4,...f4,...AI]);let pe=null;const le=At({},[...CI,...h4,...kI,...Z0]);let L=Object.seal(QF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Se=null,X=!0,ke=!0,te=!1,Me=!0,Re=!1,Ze=!1,We=!1,dt=!1,ot=!1,je=!1,pt=!1,U=!0,re=!1;const de="user-content-";let xe=!0,ye=!1,Te={},Le=null;const ze=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ye=null;const jt=At({},["audio","video","img","source","image","track"]);let ue=null;const Ee=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",j="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let Ve=me,ge=!1,G=null;const K=At({},[qe,j,me],c4);let ne=null;const ve=["application/xhtml+xml","text/html"],Qe="text/html";let Fe=null,at=null;const rt=n.createElement("form"),Je=function(J){return J instanceof RegExp||J instanceof Function},Rt=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(at&&at===J)){if((!J||typeof J!="object")&&(J={}),J=r1(J),ne=ve.indexOf(J.PARSER_MEDIA_TYPE)===-1?ne=Qe:ne=J.PARSER_MEDIA_TYPE,Fe=ne==="application/xhtml+xml"?c4:Fh,se="ALLOWED_TAGS"in J?At({},J.ALLOWED_TAGS,Fe):D,pe="ALLOWED_ATTR"in J?At({},J.ALLOWED_ATTR,Fe):le,G="ALLOWED_NAMESPACES"in J?At({},J.ALLOWED_NAMESPACES,c4):K,ue="ADD_URI_SAFE_ATTR"in J?At(r1(Ee),J.ADD_URI_SAFE_ATTR,Fe):Ee,Ye="ADD_DATA_URI_TAGS"in J?At(r1(jt),J.ADD_DATA_URI_TAGS,Fe):jt,Le="FORBID_CONTENTS"in J?At({},J.FORBID_CONTENTS,Fe):ze,ie="FORBID_TAGS"in J?At({},J.FORBID_TAGS,Fe):{},Se="FORBID_ATTR"in J?At({},J.FORBID_ATTR,Fe):{},Te="USE_PROFILES"in J?J.USE_PROFILES:!1,X=J.ALLOW_ARIA_ATTR!==!1,ke=J.ALLOW_DATA_ATTR!==!1,te=J.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=J.SAFE_FOR_TEMPLATES||!1,Ze=J.WHOLE_DOCUMENT||!1,ot=J.RETURN_DOM||!1,je=J.RETURN_DOM_FRAGMENT||!1,pt=J.RETURN_TRUSTED_TYPE||!1,dt=J.FORCE_BODY||!1,U=J.SANITIZE_DOM!==!1,re=J.SANITIZE_NAMED_PROPS||!1,xe=J.KEEP_CONTENT!==!1,ye=J.IN_PLACE||!1,W=J.ALLOWED_URI_REGEXP||JF,Ve=J.NAMESPACE||me,L=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(ke=!1),je&&(ot=!0),Te&&(se=At({},[...AI]),pe=[],Te.html===!0&&(At(se,wI),At(pe,CI)),Te.svg===!0&&(At(se,d4),At(pe,h4),At(pe,Z0)),Te.svgFilters===!0&&(At(se,p4),At(pe,h4),At(pe,Z0)),Te.mathMl===!0&&(At(se,f4),At(pe,kI),At(pe,Z0))),J.ADD_TAGS&&(se===D&&(se=r1(se)),At(se,J.ADD_TAGS,Fe)),J.ADD_ATTR&&(pe===le&&(pe=r1(pe)),At(pe,J.ADD_ATTR,Fe)),J.ADD_URI_SAFE_ATTR&&At(ue,J.ADD_URI_SAFE_ATTR,Fe),J.FORBID_CONTENTS&&(Le===ze&&(Le=r1(Le)),At(Le,J.FORBID_CONTENTS,Fe)),xe&&(se["#text"]=!0),Ze&&At(se,["html","head","body"]),se.table&&(At(se,["tbody"]),delete ie.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=J.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=K1e(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ii&&ii(J),at=J}},Qt=At({},["mi","mo","mn","ms","mtext"]),kt=At({},["foreignobject","desc","title","annotation-xml"]),rn=At({},["title","style","font","a","script"]),Xt=At({},d4);At(Xt,p4),At(Xt,B1e);const Wr=At({},f4);At(Wr,U1e);const qr=function(J){let Be=v(J);(!Be||!Be.tagName)&&(Be={namespaceURI:Ve,tagName:"template"});const it=Fh(J.tagName),un=Fh(Be.tagName);return G[J.namespaceURI]?J.namespaceURI===j?Be.namespaceURI===me?it==="svg":Be.namespaceURI===qe?it==="svg"&&(un==="annotation-xml"||Qt[un]):!!Xt[it]:J.namespaceURI===qe?Be.namespaceURI===me?it==="math":Be.namespaceURI===j?it==="math"&&kt[un]:!!Wr[it]:J.namespaceURI===me?Be.namespaceURI===j&&!kt[un]||Be.namespaceURI===qe&&!Qt[un]?!1:!Wr[it]&&(rn[it]||!Xt[it]):!!(ne==="application/xhtml+xml"&&G[J.namespaceURI]):!1},Kr=function(J){ld(t.removed,{element:J});try{J.parentNode.removeChild(J)}catch{J.remove()}},Aa=function(J,Be){try{ld(t.removed,{attribute:Be.getAttributeNode(J),from:Be})}catch{ld(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(J),J==="is"&&!pe[J])if(ot||je)try{Kr(Be)}catch{}else try{Be.setAttribute(J,"")}catch{}},si=function(J){let Be=null,it=null;if(dt)J=""+J;else{const or=L1e(J,/^[\r\n\t ]+/);it=or&&or[0]}ne==="application/xhtml+xml"&&Ve===me&&(J=''+J+"");const un=w?w.createHTML(J):J;if(Ve===me)try{Be=new m().parseFromString(un,ne)}catch{}if(!Be||!Be.documentElement){Be=R.createDocument(Ve,"template",null);try{Be.documentElement.innerHTML=ge?A:un}catch{}}const ar=Be.body||Be.documentElement;return J&&it&&ar.insertBefore(n.createTextNode(it),ar.childNodes[0]||null),Ve===me?B.call(Be,Ze?"html":"body")[0]:Ze?Be.documentElement:ar},Or=function(J){return k.call(J.ownerDocument||J,J,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Es=function(J){return J instanceof f&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof p)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},vs=function(J){return typeof s=="function"&&J instanceof s},Yr=function(J,Be,it){P[J]&&Y0(P[J],un=>{un.call(t,Be,it,at)})},_s=function(J){let Be=null;if(Yr("beforeSanitizeElements",J,null),Es(J))return Kr(J),!0;const it=Fe(J.nodeName);if(Yr("uponSanitizeElement",J,{tagName:it,allowedTags:se}),J.hasChildNodes()&&!vs(J.firstElementChild)&&Ni(/<[/\w]/g,J.innerHTML)&&Ni(/<[/\w]/g,J.textContent))return Kr(J),!0;if(!se[it]||ie[it]){if(!ie[it]&&Dr(it)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it)))return!1;if(xe&&!Le[it]){const un=v(J)||J.parentNode,ar=E(J)||J.childNodes;if(ar&&un){const or=ar.length;for(let Zn=or-1;Zn>=0;--Zn)un.insertBefore(y(ar[Zn],!0),T(J))}}return Kr(J),!0}return J instanceof u&&!qr(J)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ni(/<\/no(script|embed|frames)/i,J.innerHTML)?(Kr(J),!0):(Re&&J.nodeType===3&&(Be=J.textContent,Y0([Q,$,oe],un=>{Be=ud(Be,un," ")}),J.textContent!==Be&&(ld(t.removed,{element:J.cloneNode()}),J.textContent=Be)),Yr("afterSanitizeElements",J,null),!1)},qt=function(J,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in rt))return!1;if(!(ke&&!Se[Be]&&Ni(fe,Be))){if(!(X&&Ni(ce,Be))){if(!pe[Be]||Se[Be]){if(!(Dr(J)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,J)||L.tagNameCheck instanceof Function&&L.tagNameCheck(J))&&(L.attributeNameCheck instanceof RegExp&&Ni(L.attributeNameCheck,Be)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(Be))||Be==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ni(W,ud(it,H,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&J!=="script"&&M1e(it,"data:")===0&&Ye[J])){if(!(te&&!Ni(De,ud(it,H,"")))){if(it)return!1}}}}}}return!0},Dr=function(J){return J.indexOf("-")>0},Si=function(J){Yr("beforeSanitizeAttributes",J,null);const{attributes:Be}=J;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};let un=Be.length;for(;un--;){const ar=Be[un],{name:or,namespaceURI:Zn,value:Oo}=ar,no=Fe(or);let Lr=or==="value"?Oo:F1e(Oo);if(it.attrName=no,it.attrValue=Lr,it.keepAttr=!0,it.forceKeepAttr=void 0,Yr("uponSanitizeAttribute",J,it),Lr=it.attrValue,it.forceKeepAttr||(Aa(or,J),!it.keepAttr))continue;if(!Me&&Ni(/\/>/i,Lr)){Aa(or,J);continue}Re&&Y0([Q,$,oe],vf=>{Lr=ud(Lr,vf," ")});const Ef=Fe(J.nodeName);if(qt(Ef,no,Lr)){if(re&&(no==="id"||no==="name")&&(Aa(or,J),Lr=de+Lr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Zn)switch(g.getAttributeType(Ef,no)){case"TrustedHTML":{Lr=w.createHTML(Lr);break}case"TrustedScriptURL":{Lr=w.createScriptURL(Lr);break}}try{Zn?J.setAttributeNS(Zn,or,Lr):J.setAttribute(or,Lr),SI(t.removed)}catch{}}}Yr("afterSanitizeAttributes",J,null)},Nl=function Ke(J){let Be=null;const it=Or(J);for(Yr("beforeSanitizeShadowDOM",J,null);Be=it.nextNode();)Yr("uponSanitizeShadowNode",Be,null),!_s(Be)&&(Be.content instanceof a&&Ke(Be.content),Si(Be));Yr("afterSanitizeShadowDOM",J,null)};return t.sanitize=function(Ke){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,un=null,ar=null;if(ge=!Ke,ge&&(Ke=""),typeof Ke!="string"&&!vs(Ke))if(typeof Ke.toString=="function"){if(Ke=Ke.toString(),typeof Ke!="string")throw cd("dirty is not a string, aborting")}else throw cd("toString is not a function");if(!t.isSupported)return Ke;if(We||Rt(J),t.removed=[],typeof Ke=="string"&&(ye=!1),ye){if(Ke.nodeName){const Oo=Fe(Ke.nodeName);if(!se[Oo]||ie[Oo])throw cd("root node is forbidden and cannot be sanitized in-place")}}else if(Ke instanceof s)Be=si(""),it=Be.ownerDocument.importNode(Ke,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Ze&&Ke.indexOf("<")===-1)return w&&pt?w.createHTML(Ke):Ke;if(Be=si(Ke),!Be)return ot?null:pt?A:""}Be&&dt&&Kr(Be.firstChild);const or=Or(ye?Ke:Be);for(;un=or.nextNode();)_s(un)||(un.content instanceof a&&Nl(un.content),Si(un));if(ye)return Ke;if(ot){if(je)for(ar=N.call(Be.ownerDocument);Be.firstChild;)ar.appendChild(Be.firstChild);else ar=Be;return(pe.shadowroot||pe.shadowrootmode)&&(ar=q.call(r,ar,!0)),ar}let Zn=Ze?Be.outerHTML:Be.innerHTML;return Ze&&se["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ni(eP,Be.ownerDocument.doctype.name)&&(Zn=" +`+Zn),Re&&Y0([Q,$,oe],Oo=>{Zn=ud(Zn,Oo," ")}),w&&pt?w.createHTML(Zn):Zn},t.setConfig=function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rt(Ke),We=!0},t.clearConfig=function(){at=null,We=!1},t.isValidAttribute=function(Ke,J,Be){at||Rt({});const it=Fe(Ke),un=Fe(J);return qt(it,un,Be)},t.addHook=function(Ke,J){typeof J=="function"&&(P[Ke]=P[Ke]||[],ld(P[Ke],J))},t.removeHook=function(Ke){if(P[Ke])return SI(P[Ke])},t.removeHooks=function(Ke){P[Ke]&&(P[Ke]=[])},t.removeAllHooks=function(){P={}},t}var Y1e=tP(),Z7={};const X1e={folder:["folder","white"],"karma.conf.js":["karma","green"],"karma.conf.coffee":["karma","green"],"README.md":["info","blue"],"CHANGELOG.md":["clock","blue"],CHANGELOG:["clock","blue"],"CHANGES.md":["clock","blue"],"VERSION.md":["clock","blue"],VERSION:["clock","blue"],mvnw:["maven","red"],"tsconfig.json":["tsconfig","blue"],"swagger.json":["json","green"],"swagger.yml":["json","green"],"swagger.yaml":["json","green"],"mime.types":["config","grey-light"],Jenkinsfile:["jenkins","red"],"babel.config.js":["babel","yellow"],"babel.config.json":["babel","yellow"],"babel.config.cjs":["babel","yellow"],"bower.json":["bower","orange"],"Bower.json":["bower","orange"],"firebase.json":["firebase","orange"],geckodriver:["firefox","orange"],"Gruntfile.js":["grunt","orange"],"gruntfile.babel.js":["grunt","orange"],"Gruntfile.babel.js":["grunt","orange"],"gruntfile.js":["grunt","orange"],"Gruntfile.coffee":["grunt","orange"],"gruntfile.coffee":["grunt","orange"],"ionic.config.json":["ionic","blue"],"Ionic.config.json":["ionic","blue"],"ionic.project":["ionic","blue"],"Ionic.project":["ionic","blue"],"platformio.ini":["platformio","orange"],"rollup.config.js":["rollup","red"],"sass-lint.yml":["sass","pink"],"stylelint.config.js":["stylelint","white"],"stylelint.config.cjs":["stylelint","white"],"yarn.clean":["yarn","blue"],"yarn.lock":["yarn","blue"],"webpack.config.js":["webpack","blue"],"webpack.config.build.js":["webpack","blue"],"webpack.common.js":["webpack","blue"],"webpack.dev.js":["webpack","blue"],"webpack.prod.js":["webpack","blue"],"npm-debug.log":["npm_ignored","ignore"]},Z1e={".bsl":["bsl","red"],".mdo":["mdo","red"],".cls":["salesforce","blue"],".apex":["salesforce","blue"],".asm":["asm","red"],".s":["asm","red"],".bicep":["bicep","blue"],".c":["c","blue"],".h":["c","purple"],".m":["c","yellow"],".cs":["c-sharp","blue"],".cshtml":["html","blue"],".aspx":["html","blue"],".ascx":["html","green"],".asax":["html","yellow"],".master":["html","yellow"],".cc":["cpp","blue"],".cpp":["cpp","blue"],".cxx":["cpp","blue"],".c++":["cpp","blue"],".hh":["cpp","purple"],".hpp":["cpp","purple"],".hxx":["cpp","purple"],".h++":["cpp","purple"],".mm":["cpp","yellow"],".clj":["clojure","green"],".cljs":["clojure","green"],".cljc":["clojure","green"],".edn":["clojure","blue"],".cfc":["coldfusion","blue"],".cfm":["coldfusion","blue"],".coffee":["coffee","yellow"],".litcoffee":["coffee","yellow"],".config":["config","grey-light"],".cfg":["config","grey-light"],".conf":["config","grey-light"],".cr":["crystal","white"],".ecr":["crystal_embedded","white"],".slang":["crystal_embedded","white"],".cson":["json","yellow"],".css":["css","blue"],".css.map":["css","blue"],".sss":["css","blue"],".csv":["csv","green"],".xls":["xls","green"],".xlsx":["xls","green"],".cu":["cu","green"],".cuh":["cu","purple"],".hu":["cu","purple"],".cake":["cake","red"],".ctp":["cake_php","red"],".d":["d","red"],".doc":["word","blue"],".docx":["word","blue"],".ejs":["ejs","yellow"],".ex":["elixir","purple"],".exs":["elixir_script","purple"],".elm":["elm","blue"],".ico":["favicon","yellow"],".fs":["f-sharp","blue"],".fsx":["f-sharp","blue"],".gitignore":["git","ignore"],".gitconfig":["git","ignore"],".gitkeep":["git","ignore"],".gitattributes":["git","ignore"],".gitmodules":["git","ignore"],".go":["go2","blue"],".slide":["go","blue"],".article":["go","blue"],".gd":["godot","blue"],".godot":["godot","red"],".tres":["godot","yellow"],".tscn":["godot","purple"],".gradle":["gradle","blue"],".groovy":["grails","green"],".gsp":["grails","green"],".gql":["graphql","pink"],".graphql":["graphql","pink"],".graphqls":["graphql","pink"],".hack":["hacklang","orange"],".haml":["haml","red"],".handlebars":["mustache","orange"],".hbs":["mustache","orange"],".hjs":["mustache","orange"],".hs":["haskell","purple"],".lhs":["haskell","purple"],".hx":["haxe","orange"],".hxs":["haxe","yellow"],".hxp":["haxe","blue"],".hxml":["haxe","purple"],".html":["html","orange"],".jade":["jade","red"],".java":["java","red"],".class":["java","red"],".classpath":["java","red"],".properties":["java","red"],".js":["javascript","yellow"],".js.map":["javascript","yellow"],".spec.js":["javascript","orange"],".test.js":["javascript","orange"],".es":["javascript","yellow"],".es5":["javascript","yellow"],".es6":["javascript","yellow"],".es7":["javascript","yellow"],".jinja":["jinja","red"],".jinja2":["jinja","red"],".json":["json","yellow"],".jl":["julia","purple"],".kt":["kotlin","orange"],".kts":["kotlin","orange"],".dart":["dart","blue"],".less":["less","blue"],".liquid":["liquid","green"],".ls":["livescript","blue"],".lua":["lua","blue"],".markdown":["markdown","blue"],".md":["markdown","blue"],".argdown":["argdown","blue"],".ad":["argdown","blue"],".mustache":["mustache","orange"],".stache":["mustache","orange"],".nim":["nim","yellow"],".nims":["nim","yellow"],".github-issues":["github","white"],".ipynb":["notebook","blue"],".njk":["nunjucks","green"],".nunjucks":["nunjucks","green"],".nunjs":["nunjucks","green"],".nunj":["nunjucks","green"],".njs":["nunjucks","green"],".nj":["nunjucks","green"],".npm-debug.log":["npm","ignore"],".npmignore":["npm","red"],".npmrc":["npm","red"],".ml":["ocaml","orange"],".mli":["ocaml","orange"],".cmx":["ocaml","orange"],".cmxa":["ocaml","orange"],".odata":["odata","orange"],".pl":["perl","blue"],".php":["php","purple"],".php.inc":["php","purple"],".pipeline":["pipeline","orange"],".pddl":["pddl","purple"],".plan":["plan","green"],".happenings":["happenings","blue"],".ps1":["powershell","blue"],".psd1":["powershell","blue"],".psm1":["powershell","blue"],".prisma":["prisma","blue"],".pug":["pug","red"],".pp":["puppet","yellow"],".epp":["puppet","yellow"],".purs":["purescript","white"],".py":["python","blue"],".jsx":["react","blue"],".spec.jsx":["react","orange"],".test.jsx":["react","orange"],".cjsx":["react","blue"],".spec.tsx":["react","orange"],".test.tsx":["react","orange"],".re":["reasonml","red"],".res":["rescript","red"],".resi":["rescript","pink"],".R":["R","blue"],".rmd":["R","blue"],".rb":["ruby","red"],".erb":["html_erb","red"],".erb.html":["html_erb","red"],".html.erb":["html_erb","red"],".rs":["rust","grey-light"],".sass":["sass","pink"],".scss":["sass","pink"],".springBeans":["spring","green"],".slim":["slim","orange"],".smarty.tpl":["smarty","yellow"],".tpl":["smarty","yellow"],".sbt":["sbt","blue"],".scala":["scala","red"],".sol":["ethereum","blue"],".styl":["stylus","green"],".svelte":["svelte","red"],".swift":["swift","orange"],".sql":["db","pink"],".soql":["db","blue"],".tf":["terraform","purple"],".tf.json":["terraform","purple"],".tfvars":["terraform","purple"],".tex":["tex","blue"],".sty":["tex","yellow"],".dtx":["tex","orange"],".ins":["tex","white"],".txt":["default","white"],".toml":["config","grey-light"],".twig":["twig","green"],".ts":["typescript","blue"],".tsx":["typescript","blue"],".spec.ts":["typescript","orange"],".test.ts":["typescript","orange"],".vala":["vala","grey-light"],".vapi":["vala","grey-light"],".component":["html","orange"],".vue":["vue","green"],".wasm":["wasm","purple"],".wat":["wat","purple"],".xml":["xml","orange"],".yml":["yml","purple"],".yaml":["yml","purple"],".pro":["prolog","orange"],".jar":["zip","red"],".zip":["zip","grey-light"],".wgt":["wgt","blue"],".ai":["illustrator","yellow"],".psd":["photoshop","blue"],".pdf":["pdf","red"],".eot":["font","red"],".ttf":["font","red"],".woff":["font","red"],".woff2":["font","red"],".gif":["image","purple"],".jpg":["image","purple"],".jpeg":["image","purple"],".png":["image","purple"],".pxm":["image","purple"],".svg":["svg","purple"],".svgx":["image","purple"],".tiff":["image","purple"],".webp":["image","purple"],".sublime-project":["sublime","orange"],".sublime-workspace":["sublime","orange"],".code-search":["code-search","purple"],".sh":["shell","green"],".zsh":["shell","green"],".fish":["shell","green"],".zshrc":["shell","green"],".bashrc":["shell","green"],".mov":["video","pink"],".ogv":["video","pink"],".webm":["video","pink"],".avi":["video","pink"],".mpg":["video","pink"],".mp4":["video","pink"],".mp3":["audio","purple"],".ogg":["audio","purple"],".wav":["audio","purple"],".flac":["audio","purple"],".3ds":["svg","blue"],".3dm":["svg","blue"],".stl":["svg","blue"],".obj":["svg","blue"],".dae":["svg","blue"],".bat":["windows","blue"],".cmd":["windows","blue"],".babelrc":["babel","yellow"],".babelrc.js":["babel","yellow"],".babelrc.cjs":["babel","yellow"],".bowerrc":["bower","orange"],".codeclimate.yml":["code-climate","green"],".eslintrc":["eslint","purple"],".eslintrc.js":["eslint","purple"],".eslintrc.cjs":["eslint","purple"],".eslintrc.yaml":["eslint","purple"],".eslintrc.yml":["eslint","purple"],".eslintrc.json":["eslint","purple"],".eslintignore":["eslint","grey"],".firebaserc":["firebase","orange"],".jshintrc":["javascript","blue"],".jscsrc":["javascript","blue"],".stylelintrc":["stylelint","white"],".stylelintrc.json":["stylelint","white"],".stylelintrc.yaml":["stylelint","white"],".stylelintrc.yml":["stylelint","white"],".stylelintrc.js":["stylelint","white"],".stylelintignore":["stylelint","grey"],".direnv":["config","grey-light"],".env":["config","grey-light"],".static":["config","grey-light"],".editorconfig":["config","grey-light"],".slugignore":["config","grey-light"],".tmp":["clock","grey-light"],".htaccess":["config","grey-light"],".key":["lock","green"],".cert":["lock","green"],".cer":["lock","green"],".crt":["lock","green"],".pem":["lock","green"],".DS_Store":["ignored","ignore"]},Q1e=[["TODO",["todo","blue"]],["Procfile",["heroku","purple"]],["cmakelists.txt",["makefile","blue"]],["CMakeLists.txt",["makefile","blue"]],["CMAKELISTS.txt",["makefile","blue"]],["CMAKELISTS.TXT",["makefile","blue"]],["omakefile",["makefile","grey-light"]],["OMakefile",["makefile","grey-light"]],["OMAKEFILE",["makefile","grey-light"]],["qmakefile",["makefile","purple"]],["QMakefile",["makefile","purple"]],["QMAKEFILE",["makefile","purple"]],["makefile",["makefile","orange"]],["Makefile",["makefile","orange"]],["MAKEFILE",["makefile","orange"]],["CONTRIBUTING",["license","red"]],["COMPILING",["license","orange"]],["COPYING",["license","yellow"]],["LICENCE.md",["license","yellow"]],["LICENSE.md",["license","yellow"]],["LICENCE",["license","yellow"]],["LICENSE",["license","yellow"]],["gulpfile.js",["gulp","red"]],["gulpfile",["gulp","red"]],["Gulpfile",["gulp","red"]],["GULPFILE",["gulp","red"]],["docker-compose.override.yaml",["docker","pink"]],["docker-compose.override.yml",["docker","pink"]],["docker-compose.yaml",["docker","pink"]],["docker-compose.yml",["docker","pink"]],["docker-healthcheck",["docker","green"]],[".dockerignore",["docker","grey"]],["DOCKERFILE",["docker","blue"]],["Dockerfile",["docker","blue"]],["dockerfile",["docker","blue"]],["gemfile",["ruby","red"]],["Gemfile",["ruby","red"]],["mix",["hex","red"]]],J1e={files:X1e,extensions:Z1e,partials:Q1e,default:["default","white"]},ece='',tce='',nce='',rce='',ice='',ace='',oce='',sce='',lce='',uce='',cce='',dce='',pce='',fce='',hce='',gce='',mce='',bce='',yce='',Ece='',vce='',_ce='',Tce='',Sce='',wce='',Ace='',Cce='',kce='',xce='',Ice='',Rce='',Nce='',Oce='',Dce='',Lce='',Mce='',Fce='',Pce='',Bce='',Uce='',$ce='',zce='',Hce='',jce='',Gce='',Vce='',Wce='',qce='',Kce='',Yce='',Xce='',Zce='',Qce='',Jce='',ede='',tde='',nde='',rde='',ide='',ade='',ode='',sde='',lde='',ude='',cde='',dde='',pde='',fde='',hde='',gde='',mde='',bde='',yde='',Ede='',vde='',_de='',Tde='',Sde='',wde='',Ade='',Cde='',kde='',xde='',Ide='',Rde='',Nde='',Ode='',Dde='',Lde='',Mde='',Fde='',Pde='',Bde='',Ude='',$de='',zde='',Hde='',jde='',Gde='',Vde='',Wde='',qde='',Kde='',Yde='',Xde='',Zde='',Qde='',Jde='',epe='',tpe='',npe='',rpe='',ipe='',ape='',ope='',spe='',lpe='',upe='',cpe='',dpe='',ppe='',fpe='',hpe='',gpe='',mpe='',bpe='',ype='',Epe='',vpe='',_pe='',Tpe='',Spe='',wpe='',Ape='',Cpe='',kpe='',xpe='',Ipe='',Rpe='',Npe='',Ope='',Dpe='',Lpe='',Mpe={folder:ece,bsl:tce,mdo:nce,salesforce:rce,asm:ice,bicep:ace,c:oce,"c-sharp":'',html:sce,cpp:lce,clojure:uce,coldfusion:cce,coffee:dce,config:pce,crystal:fce,crystal_embedded:hce,json:gce,css:mce,csv:bce,xls:yce,cu:Ece,cake:vce,cake_php:_ce,d:Tce,word:Sce,ejs:wce,elixir:Ace,elixir_script:Cce,hex:kce,elm:xce,favicon:Ice,"f-sharp":'',git:Rce,go2:Nce,go:Oce,godot:Dce,gradle:Lce,grails:Mce,graphql:Fce,hacklang:Pce,haml:Bce,mustache:Uce,haskell:$ce,haxe:zce,jade:Hce,java:jce,javascript:Gce,jinja:Vce,julia:Wce,karma:qce,kotlin:Kce,dart:Yce,less:Xce,liquid:Zce,livescript:Qce,lua:Jce,markdown:ede,argdown:tde,info:nde,clock:rde,maven:ide,nim:ade,github:ode,notebook:sde,nunjucks:lde,npm:ude,ocaml:cde,odata:dde,perl:pde,php:fde,pipeline:hde,pddl:gde,plan:mde,happenings:bde,powershell:yde,prisma:Ede,pug:vde,puppet:_de,purescript:Tde,python:Sde,react:wde,reasonml:Ade,rescript:Cde,R:kde,ruby:xde,html_erb:Ide,rust:Rde,sass:Nde,spring:Ode,slim:Dde,smarty:Lde,sbt:Mde,scala:Fde,ethereum:Pde,stylus:Bde,svelte:Ude,swift:$de,db:zde,terraform:Hde,tex:jde,default:'',twig:Gde,typescript:Vde,tsconfig:Wde,vala:qde,vue:Kde,wasm:Yde,wat:Xde,xml:Zde,yml:Qde,prolog:Jde,zip:epe,wgt:tpe,illustrator:npe,photoshop:rpe,pdf:ipe,font:ape,image:ope,svg:spe,sublime:lpe,"code-search":'',shell:upe,video:cpe,audio:dpe,windows:ppe,jenkins:fpe,babel:hpe,bower:gpe,docker:mpe,"code-climate":'',eslint:bpe,firebase:ype,firefox:Epe,grunt:vpe,gulp:_pe,ionic:Tpe,platformio:Spe,rollup:wpe,stylelint:Ape,yarn:Cpe,webpack:kpe,lock:xpe,license:Ipe,makefile:Rpe,heroku:Npe,todo:Ope,npm_ignored:Dpe,ignored:Lpe};var Hg=Jl&&Jl.__assign||function(){return Hg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return i[1]}return i1.default},nP=function(e){var t=Upe(e),n=t[0],r=t[1];return{svg:Bpe[n],color:r}};Z7.getIcon=nP;var $pe=function(e){return function(t){var n=nP(t);return Hg(Hg({},n),{color:e[n.color]})}},zpe=Z7.themeIcons=$pe;const Ey=({filename:e,height:t,width:n})=>{const r=zpe({blue:"#268bd2",grey:"#657b83","grey-light":"#839496",green:"#859900",orange:"#cb4b16",pink:"#d33682",purple:"#6c71c4",red:"#dc322f",white:"#fdf6e3",yellow:"#b58900",ignore:"#586e75"}),{svg:i,color:a}=r(e),o=Y1e.sanitize(i);return I.jsx("div",{dangerouslySetInnerHTML:{__html:o},style:{width:n,height:t,fill:a}})};var Q7={};Object.defineProperty(Q7,"__esModule",{value:!0});Q7.testFunc=void 0;var Hpe=function(){console.log("test")};Q7.testFunc=Hpe;function jpe(e,t){var n;if(typeof vscode>"u"){if(localStorage.getItem("ide"),window.postIntellijMessage===void 0)throw console.log("Unable to send message: postIntellijMessage is undefined. ",e,t),new Error("postIntellijMessage is undefined");(n=window.postIntellijMessage)==null||n.call(window,e,t);return}vscode.postMessage({type:e,...t})}function qa(e,t,n=0){try{jpe(e,t)}catch(r){n<5?(console.log(`Attempt ${n} failed. Retrying...`),setTimeout(()=>qa(e,t,n+1),Math.pow(2,n)*1e3)):console.error("Max attempts reached. Message could not be sent.",r)}}var rP={exports:{}},iP={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -354,7 +354,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var O2=C,efe=Jpe;function tfe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nfe=typeof Object.is=="function"?Object.is:tfe,rfe=efe.useSyncExternalStore,ife=O2.useRef,afe=O2.useEffect,ofe=O2.useMemo,sfe=O2.useDebugValue;oP.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=ife(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=ofe(function(){function u(g){if(!c){if(c=!0,p=g,g=r(g),i!==void 0&&o.hasValue){var b=o.value;if(i(b,g))return f=b}return f=g}if(b=f,nfe(p,g))return b;var y=r(g);return i!==void 0&&i(b,y)?b:(p=g,f=y)}var c=!1,p,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,i]);var s=rfe(e,a[0],a[1]);return afe(function(){o.hasValue=!0,o.value=s},[s]),sfe(s),s};aP.exports=oP;var lfe=aP.exports;function ufe(e){e()}let sP=ufe;const cfe=e=>sP=e,dfe=()=>sP,II=Symbol.for("react-redux-context"),RI=typeof globalThis<"u"?globalThis:{};function pfe(){var e;if(!C.createContext)return{};const t=(e=RI[II])!=null?e:RI[II]=new Map;let n=t.get(C.createContext);return n||(n=C.createContext(null),t.set(C.createContext,n)),n}const yl=pfe();function J7(e=yl){return function(){return C.useContext(e)}}const lP=J7(),ffe=()=>{throw new Error("uSES not initialized!")};let uP=ffe;const hfe=e=>{uP=e},gfe=(e,t)=>e===t;function mfe(e=yl){const t=e===yl?lP:J7(e);return function(r,i={}){const{equalityFn:a=gfe,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:p,stabilityCheck:f,noopCheck:m}=t();C.useRef(!0);const g=C.useCallback({[r.name](y){return r(y)}}[r.name],[r,f,o]),b=uP(c.addNestedSub,u.getState,p||u.getState,g,a);return C.useDebugValue(b),b}}const zt=mfe();function bfe(){const e=dfe();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,a=n={callback:r,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const NI={notify(){},get:()=>[]};function yfe(e,t){let n,r=NI;function i(f){return u(),r.subscribe(f)}function a(){r.notify()}function o(){p.onStateChange&&p.onStateChange()}function s(){return!!n}function u(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=bfe())}function c(){n&&(n(),n=void 0,r.clear(),r=NI)}const p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:u,tryUnsubscribe:c,getListeners:()=>r};return p}const Efe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vfe=Efe?C.useLayoutEffect:C.useEffect;function _fe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:a="once"}){const o=C.useMemo(()=>{const c=yfe(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:a}},[e,r,i,a]),s=C.useMemo(()=>e.getState(),[e]);vfe(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,s]);const u=t||yl;return C.createElement(u.Provider,{value:o},n)}function cP(e=yl){const t=e===yl?lP:J7(e);return function(){const{store:r}=t();return r}}const Tfe=cP();function Sfe(e=yl){const t=e===yl?Tfe:cP(e);return function(){return t().dispatch}}const eo=Sfe();hfe(lfe.useSyncExternalStoreWithSelector);cfe(l9.unstable_batchedUpdates);function za(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:eT(e)?2:tT(e)?3:0}function W1(e,t){return xc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function wfe(e,t){return xc(e)===2?e.get(t):e[t]}function dP(e,t,n){var r=xc(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function pP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function eT(e){return Rfe&&e instanceof Map}function tT(e){return Nfe&&e instanceof Set}function Zl(e){return e.o||e.t}function nT(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hP(e);delete t[kn];for(var n=q1(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Afe),Object.freeze(e),t&&Su(e,function(n,r){return rT(r,!0)},!0)),e}function Afe(){za(2)}function iT(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function So(e){var t=Sy[e];return t||za(18,e),t}function Cfe(e,t){Sy[e]||(Sy[e]=t)}function vy(){return Cp}function m4(e,t){t&&(So("Patches"),e.u=[],e.s=[],e.v=t)}function jg(e){_y(e),e.p.forEach(kfe),e.p=null}function _y(e){e===Cp&&(Cp=e.l)}function OI(e){return Cp={p:[],l:Cp,h:e,m:!0,_:0}}function kfe(e){var t=e[kn];t.i===0||t.i===1?t.j():t.g=!0}function b4(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||So("ES5").S(t,e,r),r?(n[kn].P&&(jg(t),za(4)),ps(e)&&(e=Gg(t,e),t.l||Vg(t,e)),t.u&&So("Patches").M(n[kn].t,e,t.u,t.s)):e=Gg(t,n,[]),jg(t),t.u&&t.v(t.u,t.s),e!==fP?e:void 0}function Gg(e,t,n){if(iT(t))return t;var r=t[kn];if(!r)return Su(t,function(s,u){return DI(e,r,t,s,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Vg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=nT(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),Su(a,function(s,u){return DI(e,r,i,s,u,n,o)}),Vg(e,i,!1),n&&e.u&&So("Patches").N(r,n,e.u,e.s)}return r.o}function DI(e,t,n,r,i,a,o){if(El(i)){var s=Gg(e,i,a&&t&&t.i!==3&&!W1(t.R,r)?a.concat(r):void 0);if(dP(n,r,s),!El(s))return;e.m=!1}else o&&n.add(i);if(ps(i)&&!iT(i)){if(!e.h.D&&e._<1)return;Gg(e,i),t&&t.A.l||Vg(e,i)}}function Vg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&rT(t,n)}function y4(e,t){var n=e[kn];return(n?Zl(n):e)[t]}function LI(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ks(e){e.P||(e.P=!0,e.l&&Ks(e.l))}function E4(e){e.o||(e.o=nT(e.t))}function Ty(e,t,n){var r=eT(t)?So("MapSet").F(t,n):tT(t)?So("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:vy(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,c=kp;o&&(u=[s],c=wd);var p=Proxy.revocable(u,c),f=p.revoke,m=p.proxy;return s.k=m,s.j=f,m}(t,n):So("ES5").J(t,n);return(n?n.A:vy()).p.push(r),r}function xfe(e){return El(e)||za(22,e),function t(n){if(!ps(n))return n;var r,i=n[kn],a=xc(n);if(i){if(!i.P&&(i.i<4||!So("ES5").K(i)))return i.t;i.I=!0,r=MI(n,a),i.I=!1}else r=MI(n,a);return Su(r,function(o,s){i&&wfe(i.t,o)===s||dP(r,o,t(s))}),a===3?new Set(r):r}(e)}function MI(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return nT(e)}function Ife(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var u=this[kn];return kp.get(u,a)},set:function(u){var c=this[kn];kp.set(c,a,u)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][kn];if(!s.P)switch(s.i){case 5:r(s)&&Ks(s);break;case 4:n(s)&&Ks(s)}}}function n(a){for(var o=a.t,s=a.k,u=q1(s),c=u.length-1;c>=0;c--){var p=u[c];if(p!==kn){var f=o[p];if(f===void 0&&!W1(o,p))return!0;var m=s[p],g=m&&m[kn];if(g?g.t!==f:!pP(m,f))return!0}}var b=!!o[kn];return u.length!==q1(o).length+(b?0:1)}function r(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var u=0;u1?E-1:0),w=1;w1?p-1:0),m=1;m=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=So("Patches").$;return El(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),ji=new Dfe,gP=ji.produce;ji.produceWithPatches.bind(ji);ji.setAutoFreeze.bind(ji);ji.setUseProxies.bind(ji);ji.applyPatches.bind(ji);ji.createDraft.bind(ji);ji.finishDraft.bind(ji);function xp(e){"@babel/helpers - typeof";return xp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xp(e)}function Lfe(e,t){if(xp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mfe(e){var t=Lfe(e,"string");return xp(t)==="symbol"?t:String(t)}function Ffe(e,t,n){return t=Mfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $I(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ur(1));return n(oT)(e,t)}if(typeof e!="function")throw new Error(Ur(2));var i=e,a=t,o=[],s=o,u=!1;function c(){s===o&&(s=o.slice())}function p(){if(u)throw new Error(Ur(3));return a}function f(y){if(typeof y!="function")throw new Error(Ur(4));if(u)throw new Error(Ur(5));var T=!0;return c(),s.push(y),function(){if(T){if(u)throw new Error(Ur(6));T=!1,c();var v=s.indexOf(y);s.splice(v,1),o=null}}}function m(y){if(!Pfe(y))throw new Error(Ur(7));if(typeof y.type>"u")throw new Error(Ur(8));if(u)throw new Error(Ur(9));try{u=!0,a=i(a,y)}finally{u=!1}for(var T=o=s,E=0;E"u")throw new Error(Ur(12));if(typeof n(void 0,{type:Wg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ur(13))})}function mP(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Ur(14));f[g]=T,p=p||T!==y}return p=p||a.length!==Object.keys(u).length,p?f:u}}function qg(){for(var e=arguments.length,t=new Array(e),n=0;n0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]{let n=e.active;typeof t.stop=="boolean"?n=!t.stop:n=!0;let r;t.index>e.history.length?r={...t.update}:t.delta===!0?(r={...e.history[t.index]},t.update.name&&(r.name=(r.name??"")+t.update.name),t.update.description&&(r.description=(r.description??"")+t.update.description),t.update.observations&&(r.observations=[...r.observations??[],...t.update.observations]),t.update.logs&&(r.logs=[...r.logs??[],...t.update.logs])):t.delta===!1&&(r={...e.history[t.index],...t.update});let i=[...e.history];return r&&(t.index>=i.length?i.push(r):i[t.index]=r),{...e,history:i,active:n}},newSession:(e,{payload:t})=>t?(console.log("NEW SESSION"),{...e,history:t.session_state.history,context_items:t.session_state.context_items,contextItemsAtIndex:{},active:!1,title:t.title,session_id:t.session_id}):{...e,history:[],context_items:[],contextItemsAtIndex:{},active:!1,title:"New Session",session_id:Xd()},setTitle:(e,{payload:t})=>({...e,title:t}),setActive:(e,{payload:t})=>({...e,active:t}),setHistory:(e,{payload:t})=>({...e,history:t}),deleteAtIndex:(e,{payload:t})=>{let n=[...e.history];return n[t]={...n[t],hide:!0},{...e,history:n}},addContextItem:(e,{payload:t})=>(console.log("HERE...",t),{...e,context_items:[...e.context_items,t]}),addContextItemAtIndex:(e,{payload:t})=>({...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:[...e.contextItemsAtIndex[t.index]??[],t.item]}}),addHighlightedCode:(e,{payload:t})=>{let n=[...e.context_items].map(a=>({...a,editing:!1}));const r=t.rangeInFileWithContents.filepath.split(/[\\/]/).pop();for(let a=0;aparseInt(g)-1);if(s>p||u{const n=t.ids.map(r=>`${r.provider_title}-${r.item_id}`);return typeof t.index>"u"?{...e,context_items:e.context_items.filter(r=>!n.includes(`${r.description.id.provider_title}-${r.description.id.item_id}`))}:{...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:(e.contextItemsAtIndex[t.index]??[]).filter(r=>!n.includes(`${r.description.id.provider_title}-${r.description.id.item_id}`))}}},setEditingAtIds:(e,{payload:t})=>{const n=t.ids.map(r=>r.item_id);return typeof t.index>"u"?{...e,context_items:e.context_items.map(r=>({...r,editing:n.includes(r.description.id.item_id)}))}:{...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:(e.contextItemsAtIndex[t.index]??[]).map(r=>({...r,editing:n.includes(r.description.id.item_id)}))}}}}}),{setActive:Zd,setHistory:KI,processSessionUpdate:g0e,newSession:uc,deleteAtIndex:S4,addContextItem:TP,addContextItemAtIndex:SP,addHighlightedCode:m0e,deleteContextWithIds:w4,setTitle:wP,setEditingAtIds:b0e}=_P.actions,y0e=_P.reducer,E0e=Ge.button` + */var O2=C,efe=Jpe;function tfe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nfe=typeof Object.is=="function"?Object.is:tfe,rfe=efe.useSyncExternalStore,ife=O2.useRef,afe=O2.useEffect,ofe=O2.useMemo,sfe=O2.useDebugValue;oP.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=ife(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=ofe(function(){function u(g){if(!c){if(c=!0,p=g,g=r(g),i!==void 0&&o.hasValue){var b=o.value;if(i(b,g))return f=b}return f=g}if(b=f,nfe(p,g))return b;var y=r(g);return i!==void 0&&i(b,y)?b:(p=g,f=y)}var c=!1,p,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,i]);var s=rfe(e,a[0],a[1]);return afe(function(){o.hasValue=!0,o.value=s},[s]),sfe(s),s};aP.exports=oP;var lfe=aP.exports;function ufe(e){e()}let sP=ufe;const cfe=e=>sP=e,dfe=()=>sP,II=Symbol.for("react-redux-context"),RI=typeof globalThis<"u"?globalThis:{};function pfe(){var e;if(!C.createContext)return{};const t=(e=RI[II])!=null?e:RI[II]=new Map;let n=t.get(C.createContext);return n||(n=C.createContext(null),t.set(C.createContext,n)),n}const yl=pfe();function J7(e=yl){return function(){return C.useContext(e)}}const lP=J7(),ffe=()=>{throw new Error("uSES not initialized!")};let uP=ffe;const hfe=e=>{uP=e},gfe=(e,t)=>e===t;function mfe(e=yl){const t=e===yl?lP:J7(e);return function(r,i={}){const{equalityFn:a=gfe,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:p,stabilityCheck:f,noopCheck:m}=t();C.useRef(!0);const g=C.useCallback({[r.name](y){return r(y)}}[r.name],[r,f,o]),b=uP(c.addNestedSub,u.getState,p||u.getState,g,a);return C.useDebugValue(b),b}}const zt=mfe();function bfe(){const e=dfe();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,a=n={callback:r,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const NI={notify(){},get:()=>[]};function yfe(e,t){let n,r=NI;function i(f){return u(),r.subscribe(f)}function a(){r.notify()}function o(){p.onStateChange&&p.onStateChange()}function s(){return!!n}function u(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=bfe())}function c(){n&&(n(),n=void 0,r.clear(),r=NI)}const p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:u,tryUnsubscribe:c,getListeners:()=>r};return p}const Efe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vfe=Efe?C.useLayoutEffect:C.useEffect;function _fe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:a="once"}){const o=C.useMemo(()=>{const c=yfe(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:a}},[e,r,i,a]),s=C.useMemo(()=>e.getState(),[e]);vfe(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,s]);const u=t||yl;return C.createElement(u.Provider,{value:o},n)}function cP(e=yl){const t=e===yl?lP:J7(e);return function(){const{store:r}=t();return r}}const Tfe=cP();function Sfe(e=yl){const t=e===yl?Tfe:cP(e);return function(){return t().dispatch}}const eo=Sfe();hfe(lfe.useSyncExternalStoreWithSelector);cfe(l9.unstable_batchedUpdates);function za(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:eT(e)?2:tT(e)?3:0}function W1(e,t){return xc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function wfe(e,t){return xc(e)===2?e.get(t):e[t]}function dP(e,t,n){var r=xc(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function pP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function eT(e){return Rfe&&e instanceof Map}function tT(e){return Nfe&&e instanceof Set}function Zl(e){return e.o||e.t}function nT(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hP(e);delete t[kn];for(var n=q1(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Afe),Object.freeze(e),t&&Su(e,function(n,r){return rT(r,!0)},!0)),e}function Afe(){za(2)}function iT(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function So(e){var t=Sy[e];return t||za(18,e),t}function Cfe(e,t){Sy[e]||(Sy[e]=t)}function vy(){return Cp}function m4(e,t){t&&(So("Patches"),e.u=[],e.s=[],e.v=t)}function jg(e){_y(e),e.p.forEach(kfe),e.p=null}function _y(e){e===Cp&&(Cp=e.l)}function OI(e){return Cp={p:[],l:Cp,h:e,m:!0,_:0}}function kfe(e){var t=e[kn];t.i===0||t.i===1?t.j():t.g=!0}function b4(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||So("ES5").S(t,e,r),r?(n[kn].P&&(jg(t),za(4)),fs(e)&&(e=Gg(t,e),t.l||Vg(t,e)),t.u&&So("Patches").M(n[kn].t,e,t.u,t.s)):e=Gg(t,n,[]),jg(t),t.u&&t.v(t.u,t.s),e!==fP?e:void 0}function Gg(e,t,n){if(iT(t))return t;var r=t[kn];if(!r)return Su(t,function(s,u){return DI(e,r,t,s,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Vg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=nT(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),Su(a,function(s,u){return DI(e,r,i,s,u,n,o)}),Vg(e,i,!1),n&&e.u&&So("Patches").N(r,n,e.u,e.s)}return r.o}function DI(e,t,n,r,i,a,o){if(El(i)){var s=Gg(e,i,a&&t&&t.i!==3&&!W1(t.R,r)?a.concat(r):void 0);if(dP(n,r,s),!El(s))return;e.m=!1}else o&&n.add(i);if(fs(i)&&!iT(i)){if(!e.h.D&&e._<1)return;Gg(e,i),t&&t.A.l||Vg(e,i)}}function Vg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&rT(t,n)}function y4(e,t){var n=e[kn];return(n?Zl(n):e)[t]}function LI(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ks(e){e.P||(e.P=!0,e.l&&Ks(e.l))}function E4(e){e.o||(e.o=nT(e.t))}function Ty(e,t,n){var r=eT(t)?So("MapSet").F(t,n):tT(t)?So("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:vy(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,c=kp;o&&(u=[s],c=wd);var p=Proxy.revocable(u,c),f=p.revoke,m=p.proxy;return s.k=m,s.j=f,m}(t,n):So("ES5").J(t,n);return(n?n.A:vy()).p.push(r),r}function xfe(e){return El(e)||za(22,e),function t(n){if(!fs(n))return n;var r,i=n[kn],a=xc(n);if(i){if(!i.P&&(i.i<4||!So("ES5").K(i)))return i.t;i.I=!0,r=MI(n,a),i.I=!1}else r=MI(n,a);return Su(r,function(o,s){i&&wfe(i.t,o)===s||dP(r,o,t(s))}),a===3?new Set(r):r}(e)}function MI(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return nT(e)}function Ife(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var u=this[kn];return kp.get(u,a)},set:function(u){var c=this[kn];kp.set(c,a,u)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][kn];if(!s.P)switch(s.i){case 5:r(s)&&Ks(s);break;case 4:n(s)&&Ks(s)}}}function n(a){for(var o=a.t,s=a.k,u=q1(s),c=u.length-1;c>=0;c--){var p=u[c];if(p!==kn){var f=o[p];if(f===void 0&&!W1(o,p))return!0;var m=s[p],g=m&&m[kn];if(g?g.t!==f:!pP(m,f))return!0}}var b=!!o[kn];return u.length!==q1(o).length+(b?0:1)}function r(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var u=0;u1?E-1:0),w=1;w1?p-1:0),m=1;m=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=So("Patches").$;return El(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),ji=new Dfe,gP=ji.produce;ji.produceWithPatches.bind(ji);ji.setAutoFreeze.bind(ji);ji.setUseProxies.bind(ji);ji.applyPatches.bind(ji);ji.createDraft.bind(ji);ji.finishDraft.bind(ji);function xp(e){"@babel/helpers - typeof";return xp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xp(e)}function Lfe(e,t){if(xp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mfe(e){var t=Lfe(e,"string");return xp(t)==="symbol"?t:String(t)}function Ffe(e,t,n){return t=Mfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $I(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ur(1));return n(oT)(e,t)}if(typeof e!="function")throw new Error(Ur(2));var i=e,a=t,o=[],s=o,u=!1;function c(){s===o&&(s=o.slice())}function p(){if(u)throw new Error(Ur(3));return a}function f(y){if(typeof y!="function")throw new Error(Ur(4));if(u)throw new Error(Ur(5));var T=!0;return c(),s.push(y),function(){if(T){if(u)throw new Error(Ur(6));T=!1,c();var v=s.indexOf(y);s.splice(v,1),o=null}}}function m(y){if(!Pfe(y))throw new Error(Ur(7));if(typeof y.type>"u")throw new Error(Ur(8));if(u)throw new Error(Ur(9));try{u=!0,a=i(a,y)}finally{u=!1}for(var T=o=s,E=0;E"u")throw new Error(Ur(12));if(typeof n(void 0,{type:Wg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ur(13))})}function mP(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Ur(14));f[g]=T,p=p||T!==y}return p=p||a.length!==Object.keys(u).length,p?f:u}}function qg(){for(var e=arguments.length,t=new Array(e),n=0;n0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]{let n=e.active;typeof t.stop=="boolean"?n=!t.stop:n=!0;let r;t.index>e.history.length?r={...t.update}:t.delta===!0?(r={...e.history[t.index]},t.update.name&&(r.name=(r.name??"")+t.update.name),t.update.description&&(r.description=(r.description??"")+t.update.description),t.update.observations&&(r.observations=[...r.observations??[],...t.update.observations]),t.update.logs&&(r.logs=[...r.logs??[],...t.update.logs])):t.delta===!1&&(r={...e.history[t.index],...t.update});let i=[...e.history];return r&&(t.index>=i.length?i.push(r):i[t.index]=r),{...e,history:i,active:n}},newSession:(e,{payload:t})=>t?(console.log("NEW SESSION"),{...e,history:t.session_state.history,context_items:t.session_state.context_items,contextItemsAtIndex:{},active:!1,title:t.title,session_id:t.session_id}):{...e,history:[],context_items:[],contextItemsAtIndex:{},active:!1,title:"New Session",session_id:Xd()},setTitle:(e,{payload:t})=>({...e,title:t}),setActive:(e,{payload:t})=>({...e,active:t}),setHistory:(e,{payload:t})=>({...e,history:t}),deleteAtIndex:(e,{payload:t})=>{let n=[...e.history];return n[t]={...n[t],hide:!0},{...e,history:n}},addContextItem:(e,{payload:t})=>(console.log("HERE...",t),{...e,context_items:[...e.context_items,t]}),addContextItemAtIndex:(e,{payload:t})=>({...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:[...e.contextItemsAtIndex[t.index]??[],t.item]}}),addHighlightedCode:(e,{payload:t})=>{let n=[...e.context_items].map(a=>({...a,editing:!1}));const r=t.rangeInFileWithContents.filepath.split(/[\\/]/).pop();for(let a=0;aparseInt(g)-1);if(s>p||u{const n=t.ids.map(r=>`${r.provider_title}-${r.item_id}`);return typeof t.index>"u"?{...e,context_items:e.context_items.filter(r=>!n.includes(`${r.description.id.provider_title}-${r.description.id.item_id}`))}:{...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:(e.contextItemsAtIndex[t.index]??[]).filter(r=>!n.includes(`${r.description.id.provider_title}-${r.description.id.item_id}`))}}},setEditingAtIds:(e,{payload:t})=>{const n=t.ids.map(r=>r.item_id);return typeof t.index>"u"?{...e,context_items:e.context_items.map(r=>({...r,editing:n.includes(r.description.id.item_id)}))}:{...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:(e.contextItemsAtIndex[t.index]??[]).map(r=>({...r,editing:n.includes(r.description.id.item_id)}))}}}}}),{setActive:Zd,setHistory:KI,processSessionUpdate:g0e,newSession:uc,deleteAtIndex:S4,addContextItem:TP,addContextItemAtIndex:SP,addHighlightedCode:m0e,deleteContextWithIds:w4,setTitle:wP,setEditingAtIds:b0e}=_P.actions,y0e=_P.reducer,E0e=Ge.button` border: none; color: ${Yt}; background-color: ${Vt}; @@ -606,7 +606,7 @@ Hint: It might not be working because maybe you're not up to date with the Meili ${({isLastItem:e})=>e&&"border-bottom: 1px solid gray;"} cursor: pointer; z-index: 500; -`,QI=ut.forwardRef((e,t)=>{var Te,Le,ze,Ye,jt,ue,Ee,qe;const n=zt(j=>j.serverState.meilisearchUrl||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const j=new G0e({host:n});i(j)},[n]);const a=C.useContext(to),o=eo(),s=zt(j=>j.config.workspacePaths);zt(j=>j.sessionState.history);const[u,c]=ut.useState([]),[p,f]=ut.useState(0),[m,g]=ut.useState([]),b=ut.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Te=b.current)==null?void 0:Te.scrollHeight,(Le=b.current)==null?void 0:Le.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[y,T]=C.useState(!1),[E,v]=C.useState(void 0),[w,A]=C.useState(void 0),R=zt(j=>{var me;return((me=j.serverState.slashCommands)==null?void 0:me.map(Ve=>({name:`/${Ve.name}`,description:Ve.description})))||[]}),k=zt(j=>typeof e.index<"u"?j.sessionState.contextItemsAtIndex[e.index]||[]:j.sessionState.context_items||[]),N=zt(j=>j.sessionState.history),B=zt(j=>j.sessionState.active);C.useEffect(()=>{y||(v(void 0),A(void 0))},[y]);const q=zt(j=>j.serverState.contextProviders),P=()=>{T(!1),v(void 0),A(void 0),H.setInputValue("@")};C.useEffect(()=>{E||g((q==null?void 0:q.map(j=>({name:j.display_title,description:j.description,id:j.title})).sort((j,me)=>j.id==="file"?-1:1))||[])},[E]);const[Q,$]=C.useState(""),oe=C.useCallback(async(j,me)=>{const Ve=await(a==null?void 0:a.getContextItem(j,me));e.isMainInput?o(TP(Ve)):typeof e.index<"u"&&o(SP({item:Ve,index:e.index}))},[a,e.index]),fe=C.useCallback(({inputValue:j,highlightedIndex:me})=>{var Ve;if(!j){g([]),v(void 0),T(!1);return}if(Q===""&&(q!=null&&q.some(ge=>ge.display_title===j))){H.setInputValue(""),$("");return}if($(j),w&&!j.startsWith(`@${w.title}`)&&A(void 0),(Ve=e.onInputValueChange)==null||Ve.call(e,j),j.endsWith("@")||y){const ge=(j==null?void 0:j.split("@"))||[];if(ge.length>1){T(!0);const G=ge[ge.length-1]||"";if(E&&!j.endsWith("@")){const K=G.split(" ");ce(E.title,K.length>1?K[1]:"").then(ne=>{g(ne)})}else{const K=(q==null?void 0:q.filter(ne=>`@${ne.title}`.toLowerCase().startsWith(j.toLowerCase())||`@${ne.display_title}`.toLowerCase().startsWith(j.toLowerCase())).map(ne=>({name:ne.display_title,description:ne.description,id:ne.title})).sort((ne,ve)=>ne.id==="file"?-1:1))||[];g(K),T(!0)}return}else T(!1),v(void 0)}v(void 0),g((R==null?void 0:R.filter(ge=>{const G=ge.name.toLowerCase(),K=j.toLowerCase();return G.startsWith(K)&&G!==K}))||[]),(j.startsWith("/")||j.startsWith("@"))&&o(Ad(null))},[R,y,E,w]),ce=async(j,me)=>{const Ve=s&&s.length>0?`workspace_dir IN [ ${s.map(ge=>`"${ge}"`).join(", ")} ] AND provider_name = '${j}'`:void 0;try{const ge=await(r==null?void 0:r.index(J0e).search(me,{filter:Ve}));return(ge==null?void 0:ge.hits.map(G=>({name:G.name,description:G.description,id:G.id,content:G.content})))||[]}catch(ge){return console.log("Error searching context items",ge),[]}},{getInputProps:De,...H}=YF({onInputValueChange:fe,items:m,itemToString(j){return j?j.name:""}});C.useEffect(()=>{H.highlightedIndex<0&&H.setHighlightedIndex(0)},[H.inputValue]);const W=ut.useRef(null),se=ut.useRef(null),D=()=>{var j;return(((j=W.current)==null?void 0:j.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>RP};C.useImperativeHandle(t,()=>H,[H]);const pe=ut.useRef(null),le=C.useCallback(()=>{var ge;if(ye(!0),!pe.current)return;const j=pe.current.querySelectorAll(`.pill-button-${e.index||"main"}`),me=Array.from(j),Ve=me.findIndex(G=>G===document.activeElement);if(Ve===me.length-1)(ge=b.current)==null||ge.focus();else if(Ve!==-1){const G=me[(Ve+1)%me.length];G==null||G.focus()}else{const G=me[0];G==null||G.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const j=me=>{me.key==="Tab"&&(me.preventDefault(),le())};return b.current.addEventListener("keydown",j),()=>{var me;(me=b.current)==null||me.removeEventListener("keydown",j)}}},[b.current]),C.useEffect(()=>{e.value&&H.setInputValue(e.value)},[e.value,H.setInputValue]);const[L,ie]=C.useState(!1);C.useLayoutEffect(()=>{se.current&&H.setHighlightedIndex(0)},[m,H.setHighlightedIndex,se.current]);const[Se,X]=C.useState(!1),[ke,te]=C.useState(!1);C.useEffect(()=>{const j=Ve=>{Ve.key==="Meta"&&X(!0)},me=Ve=>{Ve.key==="Meta"&&X(!1)};return window.addEventListener("keydown",j),window.addEventListener("keyup",me),()=>{window.removeEventListener("keydown",j),window.removeEventListener("keyup",me)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const j=me=>{var Ve;me.data.type==="focusContinueInput"?(b.current.focus(),o(Ad(null))):me.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(Ve=b.current)!=null&&Ve.value.startsWith("/edit")||H.setInputValue("/edit "),o(Ad(null))):me.data.type==="focusContinueInputWithNewSession"&&(a==null||a.stopSession(),o(uc()),o(Ad(null)))};return window.addEventListener("message",j),()=>{window.removeEventListener("message",j)}},[b.current,e.isMainInput]);const Me=ut.useRef(null),Re=C.useCallback(j=>{const me=m[H.highlightedIndex],Ve=me==null?void 0:me.name,ge=q.find(G=>G.display_title===Ve);if(ge){if(ge.dynamic&&ge.requires_query){A(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}else if(ge.dynamic){if(!me.id)return;const G=H.inputValue.split("@"),K=G[G.length-1];if(oe(me.id,K),H.inputValue.includes("@")){const ne=q.find(ve=>ve.title===me.id);!E&&!(ne!=null&&ne.dynamic)?(H.setInputValue(`@${me.id} `),v(ne)):H.setInputValue("")}H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}}else{if(E&&me.id){oe(me.id,""),H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}v(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault(),ce(ge.title,"").then(G=>g(G))},[m,H.highlightedIndex,q,E,H.inputValue,oe]),[Ze,We]=C.useState(!1),[dt,ot]=C.useState(!1),[je,pt]=C.useState(void 0),[U,re]=C.useState(void 0),de=ut.useRef(null),[xe,ye]=C.useState(!1);return C.useEffect(()=>{ke||ye(!1)},[ke]),I.jsxs("div",{ref:de,style:{paddingTop:"4px",backgroundColor:Ht},children:[k.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",paddingTop:pr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var j;H.setInputValue("@"),(j=b.current)==null||j.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Ye=H.inputValue)==null?void 0:Ye.startsWith("/edit"))||ke&&Se&&((jt=H.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||k.length>0&&xe?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:pe,style:{backgroundColor:Ht},children:[k.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:j=>{ot(me=>!me)},id:"toggle-context-div",children:dt?I.jsx(gZ,{width:"14px",height:"14px",color:Et}):I.jsx(yZ,{width:"14px",height:"14px",color:Et})}),I.jsx(nhe,{className:k.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var j;o(w4({ids:k.map(me=>me.description.id),index:e.index})),(j=b.current)==null||j.focus(),pt(void 0),re(void 0)},onKeyDown:j=>{var me;j.key==="Backspace"&&(o(w4({ids:k.map(Ve=>Ve.description.id),index:e.index})),(me=b.current)==null||me.focus(),pt(void 0),re(void 0))},children:I.jsx(kL,{width:"1.4em",height:"1.4em"})}),k.map((j,me)=>{var Ve,ge,G,K;return I.jsx(A0e,{inputIndex:e.index,areMultipleItems:k.length>1,item:j,editing:j.editing&&((ge=(Ve=b.current)==null?void 0:Ve.value)==null?void 0:ge.startsWith("/edit")),editingAny:(K=(G=b.current)==null?void 0:G.value)==null?void 0:K.startsWith("/edit"),stepIndex:e.index,index:me,onDelete:()=>{var ne;o(w4({ids:[j.description.id],index:e.index})),(ne=b.current)==null||ne.focus(),(j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name||j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name)&&(pt(void 0),re(void 0))},onClick:ne=>{j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name?re(void 0):re(j)},onBlur:()=>{re(void 0)},toggleViewContent:()=>{pt(ne=>{if(!ne)return j;if(!(ne.description.id.item_id===j.description.id.item_id&&ne.description.id.provider_name===j.description.id.provider_name))return j})},previewing:j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name,focusing:j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name,prefixInputWithEdit:ne=>{var ve,Qe,Fe;!ne&&((ve=b.current)!=null&&ve.value.startsWith("/edit"))&&H.setInputValue((Qe=b.current)==null?void 0:Qe.value.replace("/edit ","")),!H.inputValue.startsWith("/edit")&&(H.setInputValue(`/edit ${H.inputValue}`),(Fe=b.current)==null||Fe.focus())}},`${j.description.id.item_id}${me}`)})]}):k.length>0&&I.jsxs("div",{onClick:()=>{var j;(j=b.current)==null||j.focus(),ye(!0)},style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",cursor:"default",paddingTop:pr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",k.length," ","context item",k.length===1?"":"s"]}),je&&I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(je.description.description)} +`,QI=st.forwardRef((e,t)=>{var Te,Le,ze,Ye,jt,ue,Ee,qe;const n=zt(j=>j.serverState.meilisearchUrl||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const j=new G0e({host:n});i(j)},[n]);const a=C.useContext(to),o=eo(),s=zt(j=>j.config.workspacePaths);zt(j=>j.sessionState.history);const[u,c]=st.useState([]),[p,f]=st.useState(0),[m,g]=st.useState([]),b=st.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Te=b.current)==null?void 0:Te.scrollHeight,(Le=b.current)==null?void 0:Le.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[y,T]=C.useState(!1),[E,v]=C.useState(void 0),[w,A]=C.useState(void 0),R=zt(j=>{var me;return((me=j.serverState.slashCommands)==null?void 0:me.map(Ve=>({name:`/${Ve.name}`,description:Ve.description})))||[]}),k=zt(j=>typeof e.index<"u"?j.sessionState.contextItemsAtIndex[e.index]||[]:j.sessionState.context_items||[]),N=zt(j=>j.sessionState.history),B=zt(j=>j.sessionState.active);C.useEffect(()=>{y||(v(void 0),A(void 0))},[y]);const q=zt(j=>j.serverState.contextProviders),P=()=>{T(!1),v(void 0),A(void 0),H.setInputValue("@")};C.useEffect(()=>{E||g((q==null?void 0:q.map(j=>({name:j.display_title,description:j.description,id:j.title})).sort((j,me)=>j.id==="file"?-1:1))||[])},[E]);const[Q,$]=C.useState(""),oe=C.useCallback(async(j,me)=>{const Ve=await(a==null?void 0:a.getContextItem(j,me));e.isMainInput?o(TP(Ve)):typeof e.index<"u"&&o(SP({item:Ve,index:e.index}))},[a,e.index]),fe=C.useCallback(({inputValue:j,highlightedIndex:me})=>{var Ve;if(!j){g([]),v(void 0),T(!1);return}if(Q===""&&(q!=null&&q.some(ge=>ge.display_title===j))){H.setInputValue(""),$("");return}if($(j),w&&!j.startsWith(`@${w.title}`)&&A(void 0),(Ve=e.onInputValueChange)==null||Ve.call(e,j),j.endsWith("@")||y){const ge=(j==null?void 0:j.split("@"))||[];if(ge.length>1){T(!0);const G=ge[ge.length-1]||"";if(E&&!j.endsWith("@")){const K=G.split(" ");ce(E.title,K.length>1?K[1]:"").then(ne=>{g(ne)})}else{const K=(q==null?void 0:q.filter(ne=>`@${ne.title}`.toLowerCase().startsWith(j.toLowerCase())||`@${ne.display_title}`.toLowerCase().startsWith(j.toLowerCase())).map(ne=>({name:ne.display_title,description:ne.description,id:ne.title})).sort((ne,ve)=>ne.id==="file"?-1:1))||[];g(K),T(!0)}return}else T(!1),v(void 0)}v(void 0),g((R==null?void 0:R.filter(ge=>{const G=ge.name.toLowerCase(),K=j.toLowerCase();return G.startsWith(K)&&G!==K}))||[]),(j.startsWith("/")||j.startsWith("@"))&&o(Ad(null))},[R,y,E,w]),ce=async(j,me)=>{const Ve=s&&s.length>0?`workspace_dir IN [ ${s.map(ge=>`"${ge}"`).join(", ")} ] AND provider_name = '${j}'`:void 0;try{const ge=await(r==null?void 0:r.index(J0e).search(me,{filter:Ve}));return(ge==null?void 0:ge.hits.map(G=>({name:G.name,description:G.description,id:G.id,content:G.content})))||[]}catch(ge){return console.log("Error searching context items",ge),[]}},{getInputProps:De,...H}=YF({onInputValueChange:fe,items:m,itemToString(j){return j?j.name:""}});C.useEffect(()=>{H.highlightedIndex<0&&H.setHighlightedIndex(0)},[H.inputValue]);const W=st.useRef(null),se=st.useRef(null),D=()=>{var j;return(((j=W.current)==null?void 0:j.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>RP};C.useImperativeHandle(t,()=>H,[H]);const pe=st.useRef(null),le=C.useCallback(()=>{var ge;if(ye(!0),!pe.current)return;const j=pe.current.querySelectorAll(`.pill-button-${e.index||"main"}`),me=Array.from(j),Ve=me.findIndex(G=>G===document.activeElement);if(Ve===me.length-1)(ge=b.current)==null||ge.focus();else if(Ve!==-1){const G=me[(Ve+1)%me.length];G==null||G.focus()}else{const G=me[0];G==null||G.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const j=me=>{me.key==="Tab"&&(me.preventDefault(),le())};return b.current.addEventListener("keydown",j),()=>{var me;(me=b.current)==null||me.removeEventListener("keydown",j)}}},[b.current]),C.useEffect(()=>{e.value&&H.setInputValue(e.value)},[e.value,H.setInputValue]);const[L,ie]=C.useState(!1);C.useLayoutEffect(()=>{se.current&&H.setHighlightedIndex(0)},[m,H.setHighlightedIndex,se.current]);const[Se,X]=C.useState(!1),[ke,te]=C.useState(!1);C.useEffect(()=>{const j=Ve=>{Ve.key==="Meta"&&X(!0)},me=Ve=>{Ve.key==="Meta"&&X(!1)};return window.addEventListener("keydown",j),window.addEventListener("keyup",me),()=>{window.removeEventListener("keydown",j),window.removeEventListener("keyup",me)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const j=me=>{var Ve;me.data.type==="focusContinueInput"?(b.current.focus(),o(Ad(null))):me.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(Ve=b.current)!=null&&Ve.value.startsWith("/edit")||H.setInputValue("/edit "),o(Ad(null))):me.data.type==="focusContinueInputWithNewSession"&&(a==null||a.stopSession(),o(uc()),o(Ad(null)))};return window.addEventListener("message",j),()=>{window.removeEventListener("message",j)}},[b.current,e.isMainInput]);const Me=st.useRef(null),Re=C.useCallback(j=>{const me=m[H.highlightedIndex],Ve=me==null?void 0:me.name,ge=q.find(G=>G.display_title===Ve);if(ge){if(ge.dynamic&&ge.requires_query){A(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}else if(ge.dynamic){if(!me.id)return;const G=H.inputValue.split("@"),K=G[G.length-1];if(oe(me.id,K),H.inputValue.includes("@")){const ne=q.find(ve=>ve.title===me.id);!E&&!(ne!=null&&ne.dynamic)?(H.setInputValue(`@${me.id} `),v(ne)):H.setInputValue("")}H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}}else{if(E&&me.id){oe(me.id,""),H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}v(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault(),ce(ge.title,"").then(G=>g(G))},[m,H.highlightedIndex,q,E,H.inputValue,oe]),[Ze,We]=C.useState(!1),[dt,ot]=C.useState(!1),[je,pt]=C.useState(void 0),[U,re]=C.useState(void 0),de=st.useRef(null),[xe,ye]=C.useState(!1);return C.useEffect(()=>{ke||ye(!1)},[ke]),I.jsxs("div",{ref:de,style:{paddingTop:"4px",backgroundColor:Ht},children:[k.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",paddingTop:pr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var j;H.setInputValue("@"),(j=b.current)==null||j.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Ye=H.inputValue)==null?void 0:Ye.startsWith("/edit"))||ke&&Se&&((jt=H.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||k.length>0&&xe?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:pe,style:{backgroundColor:Ht},children:[k.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:j=>{ot(me=>!me)},id:"toggle-context-div",children:dt?I.jsx(gZ,{width:"14px",height:"14px",color:Et}):I.jsx(yZ,{width:"14px",height:"14px",color:Et})}),I.jsx(nhe,{className:k.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var j;o(w4({ids:k.map(me=>me.description.id),index:e.index})),(j=b.current)==null||j.focus(),pt(void 0),re(void 0)},onKeyDown:j=>{var me;j.key==="Backspace"&&(o(w4({ids:k.map(Ve=>Ve.description.id),index:e.index})),(me=b.current)==null||me.focus(),pt(void 0),re(void 0))},children:I.jsx(kL,{width:"1.4em",height:"1.4em"})}),k.map((j,me)=>{var Ve,ge,G,K;return I.jsx(A0e,{inputIndex:e.index,areMultipleItems:k.length>1,item:j,editing:j.editing&&((ge=(Ve=b.current)==null?void 0:Ve.value)==null?void 0:ge.startsWith("/edit")),editingAny:(K=(G=b.current)==null?void 0:G.value)==null?void 0:K.startsWith("/edit"),stepIndex:e.index,index:me,onDelete:()=>{var ne;o(w4({ids:[j.description.id],index:e.index})),(ne=b.current)==null||ne.focus(),(j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name||j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name)&&(pt(void 0),re(void 0))},onClick:ne=>{j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name?re(void 0):re(j)},onBlur:()=>{re(void 0)},toggleViewContent:()=>{pt(ne=>{if(!ne)return j;if(!(ne.description.id.item_id===j.description.id.item_id&&ne.description.id.provider_name===j.description.id.provider_name))return j})},previewing:j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name,focusing:j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name,prefixInputWithEdit:ne=>{var ve,Qe,Fe;!ne&&((ve=b.current)!=null&&ve.value.startsWith("/edit"))&&H.setInputValue((Qe=b.current)==null?void 0:Qe.value.replace("/edit ","")),!H.inputValue.startsWith("/edit")&&(H.setInputValue(`/edit ${H.inputValue}`),(Fe=b.current)==null||Fe.focus())}},`${j.description.id.item_id}${me}`)})]}):k.length>0&&I.jsxs("div",{onClick:()=>{var j;(j=b.current)==null||j.focus(),ye(!0)},style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",cursor:"default",paddingTop:pr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",k.length," ","context item",k.length===1?"":"s"]}),je&&I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(je.description.description)} ${je.content} \`\`\``,maxHeight:200})}),dt&&I.jsx("div",{children:k.map(j=>I.jsxs(rhe,{children:[I.jsxs(ihe,{children:[I.jsx(Ey,{height:"20px",width:"20px",filename:j.description.name}),j.description.name]}),I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(j.description.description)} ${j.content} @@ -615,7 +615,7 @@ ${j.content} `+N.filter((Ve,ge)=>{var G;return(G=e.groupIndices)==null?void 0:G.includes(ge)}).flatMap(Ve=>Ve.logs||[]).join(` `);qa("showVirtualFile",{name:"inspect_prompt.md",content:me})}},text:"Inspect Prompt",children:I.jsx(iZ,{width:"1.3em",height:"1.3em"})}),I.jsx(zi,{onClick:j=>{var me;j.stopPropagation(),e.active&&e.groupIndices?a==null||a.stopSession():(me=e.onDelete)==null||me.call(e)},text:e.active?`Stop (${zX()}⌫)`:"Delete",children:e.active?null:I.jsx(w9,{width:"1.4em",height:"1.4em"})})]})})})]}),w&&I.jsxs(she,{children:["Enter ",w.display_title," Query"]}),I.jsxs(lhe,{...H.getMenuProps({ref:se}),isMainInput:e.isMainInput,showAbove:D(),ulHeightPixels:((ue=se.current)==null?void 0:ue.getBoundingClientRect().height)||0,hidden:!H.isOpen||m.length===0||((Ee=b.current)==null?void 0:Ee.value)==="",fontSize:pr(),children:[E&&I.jsxs("div",{style:{backgroundColor:Vt,borderBottom:`0.5px solid ${Et}`,display:"flex",gap:"4px",position:"sticky",top:"0px"},className:"py-2 px-4 my-0",children:[I.jsx(mc,{width:"1.4em",height:"1.4em",className:"cursor-pointer",onClick:j=>{var me;P(),(me=b.current)==null||me.focus()}}),E.display_title," -"," ",E.description]}),H.isOpen&&m.map((j,me)=>I.jsxs(ZI,{style:{borderTop:me===0?"none":`0.5px solid ${Et}`},...H.getItemProps({item:j,index:me}),highlighted:H.highlightedIndex===me,selected:H.selectedItem===j,onClick:Ve=>{var ge;Re(Ve),Ve.stopPropagation(),Ve.preventDefault(),(ge=b.current)==null||ge.focus()},children:[I.jsxs("span",{className:"flex justify-between w-full items-center",children:[I.jsxs("div",{className:"flex items-center justify-center",children:[E&&I.jsx(Ey,{height:"20px",width:"20px",filename:j.name}),j.name," "]}),I.jsx("span",{style:{color:Et,float:"right",textAlign:"right"},children:j.description})]}),(q==null?void 0:q.filter(Ve=>!Ve.dynamic||Ve.requires_query).find(Ve=>Ve.title===j.id))&&I.jsx(tZ,{width:"1.2em",height:"1.2em",color:Et,className:"ml-2 flex-shrink-0"})]},`${j.name}${me}`)),H.isOpen&&m.length===0&&I.jsx(ZI,{highlighted:!1,selected:!1,isLastItem:!1,children:I.jsx("span",{style:{color:Et,float:"right",textAlign:"right",display:"flex",width:"100%",cursor:"default"},children:"No items found"})},"empty-items-li")]})]}),e.isMainInput&&I.jsx(xP,{disabled:!B&&(!((qe=b.current)!=null&&qe.value)||typeof a>"u"),onClick:()=>{var j;B?(a==null||a.stopSession(),o(Zd(!1))):(j=e.onEnter)==null||j.call(e,void 0)},showStop:B})]})});function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t=0||(p[u]=o[u]);return p}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function che(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function OP(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Xg(e);if(t){var i=Xg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return che(this,n)}}function Co(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var a,o,s=[],u=!0,c=!1;try{for(i=i.call(n);!(u=(a=i.next()).done)&&(s.push(a.value),!r||s.length!==r);u=!0);}catch(p){c=!0,o=p}finally{try{u||i.return==null||i.return()}finally{if(c)throw o}}return s}}(e,t)||lT(e,t)||function(){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 xy(e){return function(t){if(Array.isArray(t))return Iy(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||lT(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function lT(e,t){if(e){if(typeof e=="string")return Iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iy(e,t):void 0}}function Iy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function lT(e,t){if(e){if(typeof e=="string")return Iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iy(e,t):void 0}}function Iy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var ma={DEBUG:!1,LIB_VERSION:"1.75.2"};/** * uuidv7: An experimental implementation of the proposed UUID Version 7 * @@ -624,10 +624,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * @packageDocumentation * * from https://github.com/LiosK/uuidv7/blob/e501462ea3d23241de13192ceae726956f9b3b7d/src/index.ts - */Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e});var tR="0123456789abcdef",dhe=function(){function e(t){if(Un(this,e),this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}return $n(e,[{key:"toString",value:function(){for(var t="",n=0;n>>4)+tR.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(t){return this.compareTo(t)===0}},{key:"compareTo",value:function(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var a=new Uint8Array(16);return a[0]=t/Math.pow(2,40),a[1]=t/Math.pow(2,32),a[2]=t/Math.pow(2,24),a[3]=t/Math.pow(2,16),a[4]=t/Math.pow(2,8),a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}}]),e}(),phe=function(){function e(){Un(this,e),ct(this,"timestamp",0),ct(this,"counter",0),ct(this,"random",new fhe)}return $n(e,[{key:"generate",value:function(){var t=this.generateOrAbort();if(t!==void 0)return t;this.timestamp=0;var n=this.generateOrAbort();if(n===void 0)throw new Error("Could not generate UUID after timestamp reset");return n}},{key:"generateOrAbort",value:function(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return dhe.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),DP=function(e){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t=this.buffer.length&&(DP(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),hhe=function(){return(nR||(nR=new phe)).generate()},LP=Array.prototype,MP=Object.prototype,uT=MP.toString,ghe=MP.hasOwnProperty,ht=typeof window<"u"?window:{},Ql=ht.navigator||{userAgent:""},jn=ht.document||{},aa=Ql.userAgent,mhe=["localhost","127.0.0.1"],rR=LP.forEach,iR=LP.indexOf,bhe=Array.isArray,cT={},In={log:function(){if(ma.DEBUG&&!ja(window.console)&&window.console){for(var e=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r0&&(t[r]=n)}),t},Ehe=["$performance_raw"];function vhe(e,t){return n=e,r=function(a,o){return o&&Ehe.indexOf(o)>-1?a:typeof a=="string"&&t!==null?a.slice(0,t):a},i=new Set,function a(o,s){return o!==Object(o)?r?r(o,s):o:i.has(o)?void 0:(i.add(o),es(o)?(u=[],as(o,function(c){u.push(a(c))})):(u={},hn(o,function(c,p){i.has(c)||(u[p]=a(c,p))})),u);var u}(n);var n,r,i}function dT(e){var t,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",p=[];if(!e)return e;e=_he(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,p[u++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s>>4)+tR.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(t){return this.compareTo(t)===0}},{key:"compareTo",value:function(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var a=new Uint8Array(16);return a[0]=t/Math.pow(2,40),a[1]=t/Math.pow(2,32),a[2]=t/Math.pow(2,24),a[3]=t/Math.pow(2,16),a[4]=t/Math.pow(2,8),a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}}]),e}(),phe=function(){function e(){Un(this,e),ct(this,"timestamp",0),ct(this,"counter",0),ct(this,"random",new fhe)}return $n(e,[{key:"generate",value:function(){var t=this.generateOrAbort();if(t!==void 0)return t;this.timestamp=0;var n=this.generateOrAbort();if(n===void 0)throw new Error("Could not generate UUID after timestamp reset");return n}},{key:"generateOrAbort",value:function(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return dhe.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),DP=function(e){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t=this.buffer.length&&(DP(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),hhe=function(){return(nR||(nR=new phe)).generate()},LP=Array.prototype,MP=Object.prototype,uT=MP.toString,ghe=MP.hasOwnProperty,ht=typeof window<"u"?window:{},Ql=ht.navigator||{userAgent:""},jn=ht.document||{},aa=Ql.userAgent,mhe=["localhost","127.0.0.1"],rR=LP.forEach,iR=LP.indexOf,bhe=Array.isArray,cT={},In={log:function(){if(ma.DEBUG&&!ja(window.console)&&window.console){for(var e=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r0&&(t[r]=n)}),t},Ehe=["$performance_raw"];function vhe(e,t){return n=e,r=function(a,o){return o&&Ehe.indexOf(o)>-1?a:typeof a=="string"&&t!==null?a.slice(0,t):a},i=new Set,function a(o,s){return o!==Object(o)?r?r(o,s):o:i.has(o)?void 0:(i.add(o),ts(o)?(u=[],os(o,function(c){u.push(a(c))})):(u={},hn(o,function(c,p){i.has(c)||(u[p]=a(c,p))})),u);var u}(n);var n,r,i}function dT(e){var t,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",p=[];if(!e)return e;e=_he(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,p[u++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},aR=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=aa,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return hhe().toString()}},The=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},oR=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{In.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},sR=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Qd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;FP(p)&&(m=p(f));var b=c.call(u,f);return m!==!1&&b!==!1||(g=!1),g}}}(t,r,s)}else In.error("No valid element provided to register_event")}}();function pT(e,t){var n=function(){var r=jn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=jn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):jn.body.appendChild(r)};jn.body?n():jn.addEventListener("DOMContentLoaded",n)}var Sr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return hn(t,function(r){var i=oR(jn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=jn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=Sr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=oR(jn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||fn(e," OPR/")?fn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":fn(e,"IEMobile")||fn(e,"WPDesktop")?"Internet Explorer Mobile":fn(e,"SamsungBrowser/")?"Samsung Internet":fn(e,"Edge")||fn(e,"Edg/")?"Microsoft Edge":fn(e,"FBIOS")?"Facebook Mobile":fn(e,"Chrome")?"Chrome":fn(e,"CriOS")?"Chrome iOS":fn(e,"UCWEB")||fn(e,"UCBrowser")?"UC Browser":fn(e,"FxiOS")?"Firefox iOS":fn(t,"Apple")?fn(e,"Mobile")?"Mobile Safari":"Safari":fn(e,"Android")?"Android Mobile":fn(e,"Konqueror")?"Konqueror":fn(e,"Firefox")?"Firefox":fn(e,"MSIE")||fn(e,"Trident/")?"Internet Explorer":fn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Sr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Ql.language||Ql.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return jn.referrer||"$direct"},referringDomain:function(){if(!jn.referrer)return"$direct";var e=jn.createElement("a");return e.href=jn.referrer,e.host},properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera),$device:Sr.device(aa),$device_type:Sr.deviceType(aa)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera),$browser_language:Sr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:ma.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:BP()/1e3})},people_properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera)}),{$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera)})}};function Zg(e){switch(pl(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Qg(e){var t="";return Ph(e)&&!zP(e)&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){$P(n)&&n.textContent&&(t+=Ry(n.textContent).split(/(\s+)/).filter(N1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Ry(t)}function lR(e){return!!e&&e.nodeType===1}function fu(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function $P(e){return!!e&&e.nodeType===3}function uR(e){return!!e&&e.nodeType===11}var k4=["a","button","form","input","select","textarea","label"];function Ph(e){for(var t=e;t.parentNode&&!fu(t,"body");t=t.parentNode){var n=Zg(t).split(" ");if(fn(n,"ph-sensitive")||fn(n,"ph-no-capture"))return!1}if(fn(Zg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function zP(e){return!!(fu(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||fu(e,"select")||fu(e,"textarea")||e.getAttribute("contenteditable")==="true")}function N1(e){return!(e===null||ja(e)||typeof e=="string"&&(e=Ry(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function cR(e){var t=Qg(e);return N1(t="".concat(t," ").concat(HP(e)).trim())?t:""}function HP(e){var t="";return e&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Qg(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(HP(n)).trim())}catch(a){console.error(a)}}),t}var She=function(){function e(t){Un(this,e),this.clicks=[],this.enabled=t}return $n(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),whe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,yo={is_supported:function(){return!0},error:function(e){In.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=cR(e):i.$el_text=Qg(e));var a=Zg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),hn(e.attributes,function(c){var p;zP(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&N1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return hn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),N1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return hn(this._customProperties,function(r){hn(r.event_selectors,function(i){hn(document.querySelectorAll(i),function(a){fn(e,a)&&Ph(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if($P(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||fu(g,"html")||!lR(g))return!1;if(y!=null&&y.url_allowlist){var T=window.location.href,E=y.url_allowlist;if(E&&!E.some(function($){return T.match($)}))return!1}if(y!=null&&y.dom_event_allowlist){var v=y.dom_event_allowlist;if(v&&!v.some(function($){return b.type===$}))return!1}if(y!=null&&y.element_allowlist){var w=y.element_allowlist;if(w&&!w.some(function($){return g.tagName.toLowerCase()===$}))return!1}if(y!=null&&y.css_selector_allowlist){var A=y.css_selector_allowlist;if(A&&!A.some(function($){return g.matches($)}))return!1}for(var R=!1,k=[g],N=!0,B=g;B.parentNode&&!fu(B,"body");)if(uR(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(N=B.parentNode||!1))break;if(k4.indexOf(N.tagName.toLowerCase())>-1)R=!0;else{var q=window.getComputedStyle(N);q&&q.getPropertyValue("cursor")==="pointer"&&(R=!0)}k.push(N),B=N}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&b.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return b.type==="submit";case"input":case"select":case"textarea":return b.type==="change"||b.type==="click";default:return R?b.type==="click":b.type==="click"&&(k4.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!fu(s,"body");)uR(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(hn(o,function(g){var b=Ph(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=b&&N1(u)&&u),fn(Zg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var y=r._getAugmentPropertiesFromElement(g);$r(p,y)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=cR(a):c[0].$el_text=Qg(a)),u&&(c[0].attr__href=u),f)return!1;var m=$r(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Qd(document,"submit",n,!1,!0),Qd(document,"change",n,!1,!0),Qd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new She(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?In.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},dR,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=ja(t)?10:t,n=ja(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Jg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Jg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Fy);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},Fy,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(D1)||{};this.instance.register(ct({},D1,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(D1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Vs)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=vt(vt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Vs,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Vs)||{};this.instance.register(ct({},Vs,vt(vt({},n),{},ct({},t,{}))))}else this.instance.unregister(Vs)}}]),e}(),Ihe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",bR=2,Rhe=4,GP=3,Nhe=6,Ohe=0,Dhe=5e6,Lhe="rrweb/console@1",fo,Mhe=$n(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Un(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,b;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(b=o.adds)===null||b===void 0?void 0:b.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==GP||o.data.source!==Ohe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,b=Co(i.getNodeOrRelevantParent(p.id),2),y=b[0],T=b[1];return i.mutationBuckets[y]===0?!1:(i.mutationBuckets[y]=(f=i.mutationBuckets[y])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[y]=Math.max(i.mutationBuckets[y]-1,0),i.mutationBuckets[y]===0&&(i.loggedTracker[y]||(i.loggedTracker[y]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,y,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Fhe="/s/",VP="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(fo||(fo={}));var Phe=[fo.MouseMove,fo.MouseInteraction,fo.Scroll,fo.ViewportResize,fo.Input,fo.TouchMove,fo.MediaInteraction,fo.Drag],Bhe=function(){function e(t){var n=this;Un(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Fhe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return $n(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(Ly),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(pR),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(fR);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},Ly,!!t.sessionRecording),ct(o,pR,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,fR,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:BP()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?pT(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(ma.LIB_VERSION),function(r){if(r)return In.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===GP&&Phe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[bR,Rhe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return In.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aDhe){var c,p=fs(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Ihe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&pl(u)==="object"&&u.type===Nhe&&pl(u.data)==="object"&&u.data.plugin===Lhe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:VP,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===bR}})}}]),e}(),lo={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Uhe=["first-input","navigation","paint","resource"],$he=["/s/","/e/"],zhe=function(){function e(t){Un(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return $n(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!mhe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Uhe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else In.log("PostHog Peformance observer not started because we are on localhost.");else In.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if($he.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[lo.timeOrigin]=s,o[lo.timestamp]=Math.floor(s+t.startTime),lo)a[u]!==void 0&&(o[lo[u]]=a[u]);if(this.capturePerformanceEvent(o),Hhe(t)){var c,p=fs(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},lo.timeOrigin,s),ct(f,lo.timestamp,Math.floor(s+t.startTime)),ct(f,lo.name,m.name),ct(f,lo.duration,m.duration),ct(f,lo.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[lo.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Hhe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},jhe=function(){function e(t){Un(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return $n(e,[{key:"call",value:function(){var t=this,n=dT(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(D1),group_properties:this.instance.get_property(Vs),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),Ys.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=fs(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=fs(t.siteApps);try{var m=function(){var g=c.value,b=g.id,y=g.url,T=[p,p[p.length-1]==="/"&&y[0]==="/"?y.substring(1):y].join("");window["__$$ph_site_app_".concat(b)]=a.instance,pT(T,function(E){E&&console.error("Error while initializing PostHog app with config id ".concat(b),E)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Ghe=["https://app.posthog.com","https://eu.posthog.com"],Vhe=["source"],Whe=function(){function e(t){Un(this,e),this.instance=t}return $n(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(vt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=sR(t.hash,"__posthog")||sR(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Ghe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=vt(vt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=uhe(s,Vhe);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),pT(a,function(c){c?In.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Qd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),qhe="__ph_opt_in_out_";function Khe(e,t){qP(!0,e,t)}function Yhe(e,t){qP(!1,e,t)}function Xhe(e,t){return WP(e,t)==="1"}function yR(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return hn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){fn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||WP(e,t)==="0"}function Zhe(e,t){fT(t=t||{}).remove(hT(e,t),!!t.crossSubdomainCookie)}function fT(e){return(e=e||{}).persistenceType==="localStorage"?Kn:e.persistenceType==="localStorage+cookie"?Dy:yo}function hT(e,t){return((t=t||{}).persistencePrefix||qhe)+e}function WP(e,t){return fT(t).get(hT(e,t))}function qP(e,t,n){PP(t)&&t.length?(fT(n=n||{}).set(hT(t,n),e?1:0,yhe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var KP=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Un(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return $n(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),Qhe=function(e){NP(n,KP);var t=OP(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Un(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return $n(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;hn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(xy(a.filter(function(o){return o.url.indexOf("/e")===0})),xy(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,vt(vt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return hn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),Jhe=function(){function e(t){Un(this,e),this.enabled=t,this.metrics={}}return $n(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Ui=Uint8Array,ni=Uint16Array,dc=Uint32Array,gT=new Ui([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mT=new Ui([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ER=new Ui([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),YP=function(e,t){for(var n=new ni(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Sn)<<1;ql=(61680&(ql=(52428&ql)>>>2|(13107&ql)<<2))>>>4|(3855&ql)<<4,zy[Sn]=((65280&ql)>>>8|(255&ql)<<8)>>>1}var Jd=function(e,t,n){for(var r=e.length,i=0,a=new ni(t);i>>u]=c}else for(o=new ni(r),i=0;i>>15-e[i];return o},wu=new Ui(288);for(Sn=0;Sn<144;++Sn)wu[Sn]=8;for(Sn=144;Sn<256;++Sn)wu[Sn]=9;for(Sn=256;Sn<280;++Sn)wu[Sn]=7;for(Sn=280;Sn<288;++Sn)wu[Sn]=8;var em=new Ui(32);for(Sn=0;Sn<32;++Sn)em[Sn]=5;var tu,tge=Jd(wu,9,0),nge=Jd(em,5,0),ZP=function(e){return(e/8>>0)+(7&e&&1)},QP=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof ni?ni:e instanceof dc?dc:Ui)(n-t);return r.set(e.subarray(t,n)),r},qo=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},dd=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},R4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new ni(m+1),b=rge(n[p-1],g,0);if(b>t){r=0;var y=0,T=b-t,E=1<t))break;y+=E-(1<>>=T;y>0;){var w=a[r].s;g[w]=0&&y;--r){var A=a[r].s;g[A]==t&&(--g[A],++y)}b=t}return[new Ui(g),b]},rge=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},_R=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ni(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},pd=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[ER[$-1]];--$);var oe,fe,ce,De,H=c+5<<3,W=pd(i,wu)+pd(a,em)+o,se=pd(i,m)+pd(a,y)+o+14+3*$+pd(N,P)+(2*N[16]+3*N[17]+7*N[18]);if(H<=W&&H<=se)return Uh(t,p,e.subarray(u,u+c));if(qo(t,p,1+(se15&&(qo(t,p,L[B]>>>5&127),p+=L[B]>>>12)}}}else oe=tge,fe=wu,ce=nge,De=em;for(B=0;B255){ie=r[B]>>>18&31,dd(t,p,oe[ie+257]),p+=fe[ie+257],ie>7&&(qo(t,p,r[B]>>>23&31),p+=gT[ie]);var Se=31&r[B];dd(t,p,ce[Se]),p+=De[Se],Se>3&&(dd(t,p,r[B]>>>5&8191),p+=mT[Se])}else dd(t,p,oe[r[B]]),p+=fe[r[B]];return dd(t,p,oe[256]),p+fe[256]},ige=new dc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),age=new Ui(0),oge=function(){for(var e=new dc(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),sge=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},lge=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Ui(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),b=0;if(!o||f<8)for(var y=0;y<=f;y+=65535){var T=y+65535;T>>13,w=8191&E,A=(1<7e3||ce>24576)&&pe>423){b=TR(a,g,0,P,Q,$,fe,ce,H,y-H,b),ce=oe=fe=0,H=y;for(var le=0;le<286;++le)Q[le]=0;for(le=0;le<30;++le)$[le]=0}var L=2,ie=0,Se=w,X=se-D&32767;if(pe>2&&W==q(y-X))for(var ke=Math.min(v,pe)-1,te=Math.min(32767,y),Me=Math.min(258,pe);X<=te&&--Se&&se!=D;){if(a[y+L]==a[y+L-X]){for(var Re=0;ReL){if(L=Re,ie=X,Re>ke)break;var Ze=Math.min(X,Re-2),We=0;for(le=0;leWe&&(We=ot,D=dt)}}}X+=(se=D)-(D=R[se])+32768&32767}if(ie){P[ce++]=268435456|$y[L]<<18|vR[ie];var je=31&$y[L],pt=31&vR[ie];fe+=gT[je]+mT[pt],++Q[257+je],++$[pt],De=y+L,++oe}else P[ce++]=a[y],++Q[a[y]]}}b=TR(a,g,p,P,Q,$,fe,ce,H,y-H,b),p||(b=Uh(g,b,age))}return QP(m,0,u+ZP(b)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},Hy=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},uge=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&Hy(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},cge=function(e){return 10+(e.filename&&e.filename.length+1||0)};function dge(e,t){t===void 0&&(t={});var n=sge(),r=e.length;n.p(e);var i=lge(e,t,cge(t),8),a=i.length;return uge(i,t),Hy(i,a-8,n.d()),Hy(i,a-4,r),i}function pge(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Ui(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Ui(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return QP(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(tu||(tu={}));var fge=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=ma.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=fs(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return hn(c,function(b,y){p=encodeURIComponent(b.toString()),f=encodeURIComponent(y),g[g.length]=f+"="+p}),g.join(m)}(r)},bT=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},JP=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var b=bT(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),hn(r,function(y,T){g.setRequestHeader(T,y)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var y;try{y=JSON.parse(g.responseText)}catch(T){return void In.error(T)}o(y)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(b)},hge=18e5,gge=function(e){NP(n,KP);var t=OP(n);function n(r,i,a){var o;return Un(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return $n(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(hge,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=fs(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=fs(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))ma.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,bT(s,vt(vt({},u),{},{sendBeacon:!0})))}catch(c){ma.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?ma.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):JP({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),rh=1800,SR=60,mge=864e5,bge=function(){function e(t,n,r){Un(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||rh;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=rh):a>rh?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=Co(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>mge,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),yge=$n(function e(t,n,r,i){Un(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],b={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",b),o})}}),Ege=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},vge=function(){function e(t){Un(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return $n(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function wR(e){return typeof Event<"u"&&eB(e,Event)}function eB(e,t){try{return e instanceof t}catch{return!1}}function AR(e){return e===null||pl(e)!=="object"&&typeof e!="function"}function $h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function N4(e){return $h(e,"DOMError")}var CR=/\(error: (.*)\)/,kR=50,zh="?";function O4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var _ge=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Tge=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Age=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Cge=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` -`),u=a;u1024)){var p=CR.test(c)?c.replace(CR,"$1"):c;if(!p.match(/\S*Error: /)){var f,m=fs(r);try{for(m.s();!(f=m.n()).done;){var g=(0,f.value)(p);if(g){o.push(g);break}}}catch(b){m.e(b)}finally{m.f()}if(o.length>=kR)break}}}return function(b){if(!b.length)return[];var y=b.slice(0,kR);return y.reverse(),y.map(function(T){return vt(vt({},T),{},{filename:T.filename||y[y.length-1].filename,function:T.function||"?"})})}(o)}}).apply(void 0,[[30,function(e){var t=_ge.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){var n=Tge.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=Co(xR(t[1]||zh,t[2]),2),i=r[0];return O4(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=Sge.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=wge.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||zh,a=Co(xR(i,r),2);return i=a[0],O4(r=a[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=Age.exec(e);return t?O4(t[2],t[1]||zh,+t[3],t[4]?+t[4]:void 0):void 0}]]),xR=function(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:zh,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},kge=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,xge=/Minified React error #\d+;/i;function Ige(e){var t=e.stacktrace||e.stack||"",n=function(r){if(r){if(typeof r.framesToPop=="number")return r.framesToPop;if(xge.test(r.message))return 1}return 0}(e);try{return Cge(t,n)}catch{}return[]}function D4(e){var t=Ige(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function Rge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:40,n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:"".concat(i.slice(0,t),"...")}return""}function IR(e){var t=Co(e,5),n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s={};if(o===void 0&&typeof n=="string"){var u="Error",c=n,p=n.match(kge);p&&(u=p[1],c=p[2]),s={$exception_type:u,$exception_message:c}}var f=o||n;if(N4(f)||function(y){return $h(y,"DOMException")}(f)){var m=f;if(function(y){return"stack"in y}(f))s=D4(f);else{var g=m.name||(N4(m)?"DOMError":"DOMException"),b=m.message?"".concat(g,": ").concat(m.message):g;s=function(y){return{$exception_type:"Error",$exception_message:y}}(b),s.$exception_type=N4(m)?"DOMError":"DOMException",s.$exception_message=s.$exception_message||b}"code"in m&&(s.$exception_DOMException_code="".concat(m.code))}else(function(y){return $h(y,"ErrorEvent")})(f)&&f.error?s=D4(f.error):function(y){switch(Object.prototype.toString.call(y)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return eB(y,Error)}}(f)?s=D4(f):function(y){return $h(y,"Object")}(f)||wR(f)?(s=function(y){return{$exception_type:wR(y)?y.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",Rge(y))}}(f),s.$exception_is_synthetic=!0):(s.$exception_type=s.$exception_type||"Error",s.$exception_message=s.$exception_message||f,s.$exception_is_synthetic=!0);return vt(vt(vt(vt({},s),{},{$exception_type:s.$exception_type||"UnknownErrorType",$exception_message:s.$exception_message||""},r?{$exception_source:r}:{}),i?{$exception_lineno:i}:{}),a?{$exception_colno:a}:{})}var RR,NR,Nge=function(){function e(t){Un(this,e),ct(this,"originalOnErrorHandler",void 0),ct(this,"originalOnUnhandledRejectionHandler",void 0),ct(this,"errorsToIgnore",[]),this.instance=t}return $n(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var t,n=arguments.length,r=new Array(n),i=0;i1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Py);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.surveys;return n.instance.persistence.register(ct({},Py,o)),t(o)})}},{key:"getActiveMatchingSurveys",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(i){var a=i.filter(function(o){return!(!o.start_date||o.end_date)}).filter(function(o){var s,u;if(!o.conditions)return!0;var c=(s=o.conditions)===null||s===void 0||!s.url||window.location.href.indexOf(o.conditions.url)>-1,p=(u=o.conditions)===null||u===void 0||!u.selector||document.querySelector(o.conditions.selector);return c&&p}).filter(function(o){if(!o.linked_flag_key&&!o.targeting_flag_key)return!0;var s=!o.linked_flag_key||n.instance.featureFlags.isFeatureEnabled(o.linked_flag_key),u=!o.targeting_flag_key||n.instance.featureFlags.isFeatureEnabled(o.targeting_flag_key);return s&&u});return t(a)},r)}}]),e}(),Dge={"X-PostHog-Retry-After-Recordings":VP,"X-PostHog-Retry-After-Events":"events"},Lge=function(){function e(){Un(this,e),ct(this,"limits",{})}return $n(e,[{key:"isRateLimited",value:function(t){var n=this.limits[t||"events"]||!1;return n!==!1&&new Date().getTime()1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,c={segmentRegister:!1,syncCode:!1},p=function(A){return function(){c[A]||(c[A]=!0,c.segmentRegister&&c.syncCode&&(s==null||s(i)))}};if(this.set_config($r({},OR(),a,{name:o,token:t,callback_fn:(o===gi?o:gi+"."+o)+"._jsc"})),this.uuidFn=aR(this.config.uuid_version||"og"),this._jsc=function(){},(ht!=null&&(n=ht.rrweb)!==null&&n!==void 0&&n.record||ht!=null&&ht.rrwebRecord)&&(this.__loaded_recorder_version=ht==null||(u=ht.rrweb)===null||u===void 0?void 0:u.version),this.persistence=new hR(this.config),this._captureMetrics=new Jhe(this.get_config("_capture_metrics")),this._requestQueue=new Qhe(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new gge(this._captureMetrics,this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new bge(this.config,this.persistence,this.uuidFn),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new hR(vt(vt({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(p("segmentRegister"))):p("segmentRegister")(),((r=a.bootstrap)===null||r===void 0?void 0:r.distinctID)!==void 0){var f,m,g=this.get_config("get_device_id")(this.uuidFn()),b=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?g:a.bootstrap.distinctID;this.persistence.set_user_state((m=a.bootstrap)!==null&&m!==void 0&&m.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:b})}if(this._hasBootstrappedFeatureFlags()){var y,T,E=Object.keys(((y=a.bootstrap)===null||y===void 0?void 0:y.featureFlags)||{}).filter(function(A){var R,k;return!((R=a.bootstrap)===null||R===void 0||(k=R.featureFlags)===null||k===void 0||!k[A])}).reduce(function(A,R){var k,N;return A[R]=((k=a.bootstrap)===null||k===void 0||(N=k.featureFlags)===null||N===void 0?void 0:N[R])||!1,A},{}),v=Object.keys(((T=a.bootstrap)===null||T===void 0?void 0:T.featureFlagPayloads)||{}).filter(function(A){return E[A]}).reduce(function(A,R){var k,N,B,q;return(k=a.bootstrap)!==null&&k!==void 0&&(N=k.featureFlagPayloads)!==null&&N!==void 0&&N[R]&&(A[R]=(B=a.bootstrap)===null||B===void 0||(q=B.featureFlagPayloads)===null||q===void 0?void 0:q[R]),A},{});this.featureFlags.receivedFeatureFlags({featureFlags:E,featureFlagPayloads:v})}if(!this.get_distinct_id()){var w=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_user_state("anonymous")}ht.addEventListener&&ht.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),p("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(t){console.error("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:jn.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new jhe(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var t=this;this.has_opted_out_capturing()||as(this.__request_queue,function(n){t._send_request.apply(t,xy(n))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(t,n){if(ja(t))return null;if(Hh)return function(o){t(o,n)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],t(o,n)},a}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(t,n,r){var i=JSON.stringify(n);this.__compress_and_send_json_request(t,i,r||ih,jy)}},{key:"__compress_and_send_json_request",value:function(t,n,r,i){var a=function(c,p,f){return c===tu.GZipJS?[dge(pge(p),{mtime:0}),vt(vt({},f),{},{blob:!0,urlQueryArgs:{compression:tu.GZipJS}})]:[{data:dT(p)},f]}(this.compression[tu.GZipJS]?tu.GZipJS:tu.Base64,n,r),o=Co(a,2),s=o[0],u=o[1];this._send_request(t,s,u,i)}},{key:"_send_request",value:function(t,n,r,i){if(this.rateLimiter.isRateLimited(r._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(tB)this.__request_queue.push([t,n,r,i]);else{var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=$r(a,r||{}),Hh||(r.method="GET");var o="sendBeacon"in ht.navigator&&r.transport==="sendBeacon";if(t=fge(t,r.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{ht.navigator.sendBeacon(t,bT(n,vt(vt({},r),{},{sendBeacon:!0})))}catch{}else if(Hh)try{JP({url:t,data:n,headers:this.get_config("xhr_headers"),options:r,captureMetrics:this._captureMetrics,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(p){console.error(p)}else{var s,u=jn.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=t;var c=jn.getElementsByTagName("script")[0];(s=c.parentNode)===null||s===void 0||s.insertBefore(u,c)}}}},{key:"_execute_array",value:function(t){var n,r=this,i=[],a=[],o=[];as(t,function(u){u&&(n=u[0],es(n)?o.push(u):typeof u=="function"?u.call(r):es(u)&&n==="alias"?i.push(u):es(u)&&n.indexOf("capture")!==-1&&typeof r[n]=="function"?o.push(u):a.push(u))});var s=function(u,c){as(u,function(p){if(es(p[0])){var f=c;hn(p,function(m){f=f[m[0]].apply(f,m.slice(1))})}else this[p[0]].apply(this,p.slice(1))},c)};s(i,this),s(a,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var t,n;return((t=this.config.bootstrap)===null||t===void 0?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)===null||n===void 0?void 0:n.featureFlags).length>0||!1}},{key:"push",value:function(t){this._execute_array([t])}},{key:"captureException",value:function(t,n){var r;(r=this.exceptionAutocapture)===null||r===void 0||r.captureException([t.name,void 0,void 0,void 0,t],n)}},{key:"capture",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ih;if(this.__loaded&&!function(c,p){var f=!1;try{var m=c.get_config("token"),g=c.get_config("respect_dnt"),b=c.get_config("opt_out_capturing_persistence_type"),y=c.get_config("opt_out_capturing_cookie_prefix")||void 0,T=c.get_config("window");m&&(f=yR(m,{respectDnt:g,persistenceType:b,persistencePrefix:y,window:T}))}catch(E){p||console.error("Unexpected error when checking capturing opt-out status: "+E)}return f}(this,!1)){this._captureMetrics.incr("capture"),t==="$snapshot"&&this._captureMetrics.incr("snapshot");var i=(r=r||ih).transport;if(i&&(r.transport=i),ja(t)||typeof t!="string")console.error("No event name provided to posthog.capture");else if(!The(aa)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var a={uuid:this.uuidFn("v7"),event:t,properties:this._calculate_event_properties(t,n||{})};t==="$identify"&&(a.$set=r.$set,a.$set_once=r.$set_once),(a=vhe(a,r._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=r.timestamp||new Date,this.get_config("debug")&&In.log("PostHog.js send",a);var o=JSON.stringify(a),s=this.get_config("api_host")+(r.endpoint||"/e/"),u=r!==ih;return!this.get_config("request_batching")||u&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(s,o,r):this._requestQueue.enqueue(s,a,r),this._invokeCaptureHooks(t,a),a}}}},{key:"_addCaptureHook",value:function(t){this.__captureHooks.push(t)}},{key:"_invokeCaptureHooks",value:function(t,n){this.config._onCapture(t,n),hn(this.__captureHooks,function(r){return r(t)})}},{key:"_calculate_event_properties",value:function(t,n){var r,i=this.persistence.remove_event_timer(t),a=vt({},n);if(a.token=this.get_config("token"),t==="$snapshot"){var o=vt(vt({},this.persistence.properties()),this.sessionPersistence.properties());return a.distinct_id=o.distinct_id,a}var s=Sr.properties();if(this.sessionManager){var u=this.sessionManager.checkAndGetSessionAndWindowId(),c=u.sessionId,p=u.windowId;a.$session_id=c,a.$window_id=p}if((r=this.webPerformance)!==null&&r!==void 0&&r.isEnabled&&(t==="$pageview"&&this.pageViewIdManager.onPageview(),a=$r(a,{$pageview_id:this.pageViewIdManager.getPageViewId()})),t==="$pageview"&&(a.title=jn.title),t==="$performance_event"){var f=this.persistence.properties();return a.distinct_id=f.distinct_id,a.$current_url=s.$current_url,a}if(i!==void 0){var m=new Date().getTime()-i;a.$duration=parseFloat((m/1e3).toFixed(3))}a=$r({},Sr.properties(),this.persistence.properties(),this.sessionPersistence.properties(),a);var g=this.get_config("property_blacklist");es(g)?hn(g,function(y){delete a[y]}):console.error("Invalid value for property_blacklist config: "+g);var b=this.get_config("sanitize_properties");return b&&(a=b(a,t)),a}},{key:"register",value:function(t,n){this.persistence.register(t,n)}},{key:"register_once",value:function(t,n,r){this.persistence.register_once(t,n,r)}},{key:"register_for_session",value:function(t){this.sessionPersistence.register(t)}},{key:"unregister",value:function(t){this.persistence.unregister(t)}},{key:"unregister_for_session",value:function(t){this.sessionPersistence.unregister(t)}},{key:"_register_single",value:function(t,n){this.register(ct({},t,n))}},{key:"getFeatureFlag",value:function(t,n){return this.featureFlags.getFeatureFlag(t,n)}},{key:"getFeatureFlagPayload",value:function(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}},{key:"isFeatureEnabled",value:function(t,n){return this.featureFlags.isFeatureEnabled(t,n)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}},{key:"getEarlyAccessFeatures",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,n)}},{key:"onFeatureFlags",value:function(t){return this.featureFlags.onFeatureFlags(t)}},{key:"onSessionId",value:function(t){return this.sessionManager.onSessionId(t)}},{key:"getSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(t,n)}},{key:"getActiveMatchingSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(t,n)}},{key:"identify",value:function(t,n,r){if(t){this._captureMetrics.incr("identify");var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var a=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:a},"")}t!==i&&t!==this.get_property(Bh)&&(this.unregister(Bh),this.register({distinct_id:t}));var o=this.persistence.get_user_state()==="anonymous";t!==i&&o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(n||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Jg))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(t,n){(t||n)&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:n||{}}))}},{key:"group",value:function(t,n,r){if(t&&n){this._captureMetrics.incr("group");var i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:vt(vt({},i),{},ct({},t,n))}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags(ct({},t,r))),i[t]===n||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,n)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(t,n)}},{key:"resetGroupPropertiesForFlags",value:function(t){this.featureFlags.resetGroupPropertiesForFlags(t)}},{key:"reset",value:function(t){var n=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var r=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:r,$device_id:t?r:n},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(t){var n=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=r.sessionId,a=r.sessionStartTimestamp,o=n+"/replay/"+i;if(t!=null&&t.withTimestamp&&a){var s,u=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!a)return o;var c=Math.max(Math.floor((new Date().getTime()-a)/1e3)-u,0);o+="?t=".concat(c)}return o}},{key:"alias",value:function(t,n){return t===this.get_property(jP)?(In.critical("Attempting to create alias for existing People user - aborting."),-2):(ja(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(Bh,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(t),-1))}},{key:"set_config",value:function(t){var n=vt({},this.config);Ny(t)&&($r(this.config,t),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),Kn.is_supported()&&Kn.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(ma.DEBUG=!0),this.sessionRecording&&t.disable_session_recording!==void 0&&n.disable_session_recording!==t.disable_session_recording&&(t.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var t;return!((t=this.sessionRecording)===null||t===void 0||!t.started())}},{key:"loadToolbar",value:function(t){return this.toolbar.loadToolbar(t)}},{key:"get_config",value:function(t){var n;return(n=this.config)===null||n===void 0?void 0:n[t]}},{key:"get_property",value:function(t){return this.persistence.props[t]}},{key:"getSessionProperty",value:function(t){return this.sessionPersistence.props[t]}},{key:"toString",value:function(){var t,n=(t=this.get_config("name"))!==null&&t!==void 0?t:gi;return n!==gi&&(n=gi+"."+n),n}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&Kn.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!yo.get("ph_optout")||(yo.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(t){var n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),this.get_config("disable_persistence")||this.sessionPersistence.disabled===n||this.sessionPersistence.set_disabled(n)}},{key:"_gdpr_call_func",value:function(t,n){return n=$r({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},n||{}),Kn.is_supported()||n.persistence_type!=="localStorage"||(n.persistence_type="cookie"),t(this.get_config("token"),{capture:n.capture,captureEventName:n.capture_event_name,captureProperties:n.capture_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieExpiration:n.cookie_expiration,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie})}},{key:"opt_in_capturing",value:function(t){t=$r({enable_persistence:!0},t||{}),this._gdpr_call_func(Khe,t),this._gdpr_update_persistence(t)}},{key:"opt_out_capturing",value:function(t){var n=$r({clear_persistence:!0},t||{});this._gdpr_call_func(Yhe,n),this._gdpr_update_persistence(n)}},{key:"has_opted_in_capturing",value:function(t){return this._gdpr_call_func(Xhe,t)}},{key:"has_opted_out_capturing",value:function(t){return this._gdpr_call_func(yR,t)}},{key:"clear_opt_in_out_capturing",value:function(t){var n=$r({enable_persistence:!0},t??{});this._gdpr_call_func(Zhe,n),this._gdpr_update_persistence(n)}},{key:"debug",value:function(t){t===!1?(ht.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(ht.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();(function(e,t){for(var n=0;n127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},aR=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=aa,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return hhe().toString()}},The=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},oR=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{In.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},sR=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Qd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;FP(p)&&(m=p(f));var b=c.call(u,f);return m!==!1&&b!==!1||(g=!1),g}}}(t,r,s)}else In.error("No valid element provided to register_event")}}();function pT(e,t){var n=function(){var r=jn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=jn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):jn.body.appendChild(r)};jn.body?n():jn.addEventListener("DOMContentLoaded",n)}var Sr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return hn(t,function(r){var i=oR(jn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=jn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=Sr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=oR(jn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||fn(e," OPR/")?fn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":fn(e,"IEMobile")||fn(e,"WPDesktop")?"Internet Explorer Mobile":fn(e,"SamsungBrowser/")?"Samsung Internet":fn(e,"Edge")||fn(e,"Edg/")?"Microsoft Edge":fn(e,"FBIOS")?"Facebook Mobile":fn(e,"Chrome")?"Chrome":fn(e,"CriOS")?"Chrome iOS":fn(e,"UCWEB")||fn(e,"UCBrowser")?"UC Browser":fn(e,"FxiOS")?"Firefox iOS":fn(t,"Apple")?fn(e,"Mobile")?"Mobile Safari":"Safari":fn(e,"Android")?"Android Mobile":fn(e,"Konqueror")?"Konqueror":fn(e,"Firefox")?"Firefox":fn(e,"MSIE")||fn(e,"Trident/")?"Internet Explorer":fn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Sr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Ql.language||Ql.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return jn.referrer||"$direct"},referringDomain:function(){if(!jn.referrer)return"$direct";var e=jn.createElement("a");return e.href=jn.referrer,e.host},properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera),$device:Sr.device(aa),$device_type:Sr.deviceType(aa)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera),$browser_language:Sr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:ma.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:BP()/1e3})},people_properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera)}),{$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera)})}};function Zg(e){switch(pl(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Qg(e){var t="";return Ph(e)&&!zP(e)&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){$P(n)&&n.textContent&&(t+=Ry(n.textContent).split(/(\s+)/).filter(N1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Ry(t)}function lR(e){return!!e&&e.nodeType===1}function fu(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function $P(e){return!!e&&e.nodeType===3}function uR(e){return!!e&&e.nodeType===11}var k4=["a","button","form","input","select","textarea","label"];function Ph(e){for(var t=e;t.parentNode&&!fu(t,"body");t=t.parentNode){var n=Zg(t).split(" ");if(fn(n,"ph-sensitive")||fn(n,"ph-no-capture"))return!1}if(fn(Zg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function zP(e){return!!(fu(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||fu(e,"select")||fu(e,"textarea")||e.getAttribute("contenteditable")==="true")}function N1(e){return!(e===null||ja(e)||typeof e=="string"&&(e=Ry(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function cR(e){var t=Qg(e);return N1(t="".concat(t," ").concat(HP(e)).trim())?t:""}function HP(e){var t="";return e&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Qg(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(HP(n)).trim())}catch(a){console.error(a)}}),t}var She=function(){function e(t){Un(this,e),this.clicks=[],this.enabled=t}return $n(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),whe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,yo={is_supported:function(){return!0},error:function(e){In.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=cR(e):i.$el_text=Qg(e));var a=Zg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),hn(e.attributes,function(c){var p;zP(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&N1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return hn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),N1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return hn(this._customProperties,function(r){hn(r.event_selectors,function(i){hn(document.querySelectorAll(i),function(a){fn(e,a)&&Ph(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if($P(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||fu(g,"html")||!lR(g))return!1;if(y!=null&&y.url_allowlist){var T=window.location.href,E=y.url_allowlist;if(E&&!E.some(function($){return T.match($)}))return!1}if(y!=null&&y.dom_event_allowlist){var v=y.dom_event_allowlist;if(v&&!v.some(function($){return b.type===$}))return!1}if(y!=null&&y.element_allowlist){var w=y.element_allowlist;if(w&&!w.some(function($){return g.tagName.toLowerCase()===$}))return!1}if(y!=null&&y.css_selector_allowlist){var A=y.css_selector_allowlist;if(A&&!A.some(function($){return g.matches($)}))return!1}for(var R=!1,k=[g],N=!0,B=g;B.parentNode&&!fu(B,"body");)if(uR(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(N=B.parentNode||!1))break;if(k4.indexOf(N.tagName.toLowerCase())>-1)R=!0;else{var q=window.getComputedStyle(N);q&&q.getPropertyValue("cursor")==="pointer"&&(R=!0)}k.push(N),B=N}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&b.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return b.type==="submit";case"input":case"select":case"textarea":return b.type==="change"||b.type==="click";default:return R?b.type==="click":b.type==="click"&&(k4.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!fu(s,"body");)uR(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(hn(o,function(g){var b=Ph(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=b&&N1(u)&&u),fn(Zg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var y=r._getAugmentPropertiesFromElement(g);$r(p,y)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=cR(a):c[0].$el_text=Qg(a)),u&&(c[0].attr__href=u),f)return!1;var m=$r(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Qd(document,"submit",n,!1,!0),Qd(document,"change",n,!1,!0),Qd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new She(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?In.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},dR,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=ja(t)?10:t,n=ja(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Jg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Jg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Fy);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},Fy,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(D1)||{};this.instance.register(ct({},D1,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(D1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Vs)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=vt(vt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Vs,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Vs)||{};this.instance.register(ct({},Vs,vt(vt({},n),{},ct({},t,{}))))}else this.instance.unregister(Vs)}}]),e}(),Ihe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",bR=2,Rhe=4,GP=3,Nhe=6,Ohe=0,Dhe=5e6,Lhe="rrweb/console@1",fo,Mhe=$n(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Un(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,b;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(b=o.adds)===null||b===void 0?void 0:b.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==GP||o.data.source!==Ohe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,b=Co(i.getNodeOrRelevantParent(p.id),2),y=b[0],T=b[1];return i.mutationBuckets[y]===0?!1:(i.mutationBuckets[y]=(f=i.mutationBuckets[y])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[y]=Math.max(i.mutationBuckets[y]-1,0),i.mutationBuckets[y]===0&&(i.loggedTracker[y]||(i.loggedTracker[y]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,y,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Fhe="/s/",VP="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(fo||(fo={}));var Phe=[fo.MouseMove,fo.MouseInteraction,fo.Scroll,fo.ViewportResize,fo.Input,fo.TouchMove,fo.MediaInteraction,fo.Drag],Bhe=function(){function e(t){var n=this;Un(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Fhe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return $n(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(Ly),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(pR),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(fR);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},Ly,!!t.sessionRecording),ct(o,pR,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,fR,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:BP()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?pT(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(ma.LIB_VERSION),function(r){if(r)return In.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===GP&&Phe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[bR,Rhe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return In.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aDhe){var c,p=hs(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Ihe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&pl(u)==="object"&&u.type===Nhe&&pl(u.data)==="object"&&u.data.plugin===Lhe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:VP,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===bR}})}}]),e}(),lo={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Uhe=["first-input","navigation","paint","resource"],$he=["/s/","/e/"],zhe=function(){function e(t){Un(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return $n(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!mhe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Uhe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else In.log("PostHog Peformance observer not started because we are on localhost.");else In.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if($he.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[lo.timeOrigin]=s,o[lo.timestamp]=Math.floor(s+t.startTime),lo)a[u]!==void 0&&(o[lo[u]]=a[u]);if(this.capturePerformanceEvent(o),Hhe(t)){var c,p=hs(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},lo.timeOrigin,s),ct(f,lo.timestamp,Math.floor(s+t.startTime)),ct(f,lo.name,m.name),ct(f,lo.duration,m.duration),ct(f,lo.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[lo.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Hhe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},jhe=function(){function e(t){Un(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return $n(e,[{key:"call",value:function(){var t=this,n=dT(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(D1),group_properties:this.instance.get_property(Vs),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),Ys.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=hs(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=hs(t.siteApps);try{var m=function(){var g=c.value,b=g.id,y=g.url,T=[p,p[p.length-1]==="/"&&y[0]==="/"?y.substring(1):y].join("");window["__$$ph_site_app_".concat(b)]=a.instance,pT(T,function(E){E&&console.error("Error while initializing PostHog app with config id ".concat(b),E)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Ghe=["https://app.posthog.com","https://eu.posthog.com"],Vhe=["source"],Whe=function(){function e(t){Un(this,e),this.instance=t}return $n(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(vt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=sR(t.hash,"__posthog")||sR(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Ghe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=vt(vt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=uhe(s,Vhe);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),pT(a,function(c){c?In.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Qd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),qhe="__ph_opt_in_out_";function Khe(e,t){qP(!0,e,t)}function Yhe(e,t){qP(!1,e,t)}function Xhe(e,t){return WP(e,t)==="1"}function yR(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return hn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){fn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||WP(e,t)==="0"}function Zhe(e,t){fT(t=t||{}).remove(hT(e,t),!!t.crossSubdomainCookie)}function fT(e){return(e=e||{}).persistenceType==="localStorage"?Kn:e.persistenceType==="localStorage+cookie"?Dy:yo}function hT(e,t){return((t=t||{}).persistencePrefix||qhe)+e}function WP(e,t){return fT(t).get(hT(e,t))}function qP(e,t,n){PP(t)&&t.length?(fT(n=n||{}).set(hT(t,n),e?1:0,yhe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var KP=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Un(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return $n(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),Qhe=function(e){NP(n,KP);var t=OP(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Un(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return $n(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;hn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(xy(a.filter(function(o){return o.url.indexOf("/e")===0})),xy(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,vt(vt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return hn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),Jhe=function(){function e(t){Un(this,e),this.enabled=t,this.metrics={}}return $n(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Ui=Uint8Array,ni=Uint16Array,dc=Uint32Array,gT=new Ui([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mT=new Ui([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ER=new Ui([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),YP=function(e,t){for(var n=new ni(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Sn)<<1;ql=(61680&(ql=(52428&ql)>>>2|(13107&ql)<<2))>>>4|(3855&ql)<<4,zy[Sn]=((65280&ql)>>>8|(255&ql)<<8)>>>1}var Jd=function(e,t,n){for(var r=e.length,i=0,a=new ni(t);i>>u]=c}else for(o=new ni(r),i=0;i>>15-e[i];return o},wu=new Ui(288);for(Sn=0;Sn<144;++Sn)wu[Sn]=8;for(Sn=144;Sn<256;++Sn)wu[Sn]=9;for(Sn=256;Sn<280;++Sn)wu[Sn]=7;for(Sn=280;Sn<288;++Sn)wu[Sn]=8;var em=new Ui(32);for(Sn=0;Sn<32;++Sn)em[Sn]=5;var tu,tge=Jd(wu,9,0),nge=Jd(em,5,0),ZP=function(e){return(e/8>>0)+(7&e&&1)},QP=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof ni?ni:e instanceof dc?dc:Ui)(n-t);return r.set(e.subarray(t,n)),r},Ko=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},dd=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},R4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new ni(m+1),b=rge(n[p-1],g,0);if(b>t){r=0;var y=0,T=b-t,E=1<t))break;y+=E-(1<>>=T;y>0;){var w=a[r].s;g[w]=0&&y;--r){var A=a[r].s;g[A]==t&&(--g[A],++y)}b=t}return[new Ui(g),b]},rge=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},_R=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ni(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},pd=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[ER[$-1]];--$);var oe,fe,ce,De,H=c+5<<3,W=pd(i,wu)+pd(a,em)+o,se=pd(i,m)+pd(a,y)+o+14+3*$+pd(N,P)+(2*N[16]+3*N[17]+7*N[18]);if(H<=W&&H<=se)return Uh(t,p,e.subarray(u,u+c));if(Ko(t,p,1+(se15&&(Ko(t,p,L[B]>>>5&127),p+=L[B]>>>12)}}}else oe=tge,fe=wu,ce=nge,De=em;for(B=0;B255){ie=r[B]>>>18&31,dd(t,p,oe[ie+257]),p+=fe[ie+257],ie>7&&(Ko(t,p,r[B]>>>23&31),p+=gT[ie]);var Se=31&r[B];dd(t,p,ce[Se]),p+=De[Se],Se>3&&(dd(t,p,r[B]>>>5&8191),p+=mT[Se])}else dd(t,p,oe[r[B]]),p+=fe[r[B]];return dd(t,p,oe[256]),p+fe[256]},ige=new dc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),age=new Ui(0),oge=function(){for(var e=new dc(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),sge=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},lge=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Ui(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),b=0;if(!o||f<8)for(var y=0;y<=f;y+=65535){var T=y+65535;T>>13,w=8191&E,A=(1<7e3||ce>24576)&&pe>423){b=TR(a,g,0,P,Q,$,fe,ce,H,y-H,b),ce=oe=fe=0,H=y;for(var le=0;le<286;++le)Q[le]=0;for(le=0;le<30;++le)$[le]=0}var L=2,ie=0,Se=w,X=se-D&32767;if(pe>2&&W==q(y-X))for(var ke=Math.min(v,pe)-1,te=Math.min(32767,y),Me=Math.min(258,pe);X<=te&&--Se&&se!=D;){if(a[y+L]==a[y+L-X]){for(var Re=0;ReL){if(L=Re,ie=X,Re>ke)break;var Ze=Math.min(X,Re-2),We=0;for(le=0;leWe&&(We=ot,D=dt)}}}X+=(se=D)-(D=R[se])+32768&32767}if(ie){P[ce++]=268435456|$y[L]<<18|vR[ie];var je=31&$y[L],pt=31&vR[ie];fe+=gT[je]+mT[pt],++Q[257+je],++$[pt],De=y+L,++oe}else P[ce++]=a[y],++Q[a[y]]}}b=TR(a,g,p,P,Q,$,fe,ce,H,y-H,b),p||(b=Uh(g,b,age))}return QP(m,0,u+ZP(b)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},Hy=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},uge=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&Hy(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},cge=function(e){return 10+(e.filename&&e.filename.length+1||0)};function dge(e,t){t===void 0&&(t={});var n=sge(),r=e.length;n.p(e);var i=lge(e,t,cge(t),8),a=i.length;return uge(i,t),Hy(i,a-8,n.d()),Hy(i,a-4,r),i}function pge(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Ui(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Ui(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return QP(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(tu||(tu={}));var fge=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=ma.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=hs(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return hn(c,function(b,y){p=encodeURIComponent(b.toString()),f=encodeURIComponent(y),g[g.length]=f+"="+p}),g.join(m)}(r)},bT=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},JP=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var b=bT(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),hn(r,function(y,T){g.setRequestHeader(T,y)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var y;try{y=JSON.parse(g.responseText)}catch(T){return void In.error(T)}o(y)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(b)},hge=18e5,gge=function(e){NP(n,KP);var t=OP(n);function n(r,i,a){var o;return Un(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return $n(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(hge,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=hs(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=hs(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))ma.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,bT(s,vt(vt({},u),{},{sendBeacon:!0})))}catch(c){ma.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?ma.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):JP({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),rh=1800,SR=60,mge=864e5,bge=function(){function e(t,n,r){Un(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||rh;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=rh):a>rh?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=Co(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>mge,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),yge=$n(function e(t,n,r,i){Un(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],b={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",b),o})}}),Ege=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},vge=function(){function e(t){Un(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return $n(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function wR(e){return typeof Event<"u"&&eB(e,Event)}function eB(e,t){try{return e instanceof t}catch{return!1}}function AR(e){return e===null||pl(e)!=="object"&&typeof e!="function"}function $h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function N4(e){return $h(e,"DOMError")}var CR=/\(error: (.*)\)/,kR=50,zh="?";function O4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var _ge=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Tge=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Age=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Cge=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` +`),u=a;u1024)){var p=CR.test(c)?c.replace(CR,"$1"):c;if(!p.match(/\S*Error: /)){var f,m=hs(r);try{for(m.s();!(f=m.n()).done;){var g=(0,f.value)(p);if(g){o.push(g);break}}}catch(b){m.e(b)}finally{m.f()}if(o.length>=kR)break}}}return function(b){if(!b.length)return[];var y=b.slice(0,kR);return y.reverse(),y.map(function(T){return vt(vt({},T),{},{filename:T.filename||y[y.length-1].filename,function:T.function||"?"})})}(o)}}).apply(void 0,[[30,function(e){var t=_ge.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){var n=Tge.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=Co(xR(t[1]||zh,t[2]),2),i=r[0];return O4(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=Sge.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=wge.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||zh,a=Co(xR(i,r),2);return i=a[0],O4(r=a[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=Age.exec(e);return t?O4(t[2],t[1]||zh,+t[3],t[4]?+t[4]:void 0):void 0}]]),xR=function(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:zh,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},kge=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,xge=/Minified React error #\d+;/i;function Ige(e){var t=e.stacktrace||e.stack||"",n=function(r){if(r){if(typeof r.framesToPop=="number")return r.framesToPop;if(xge.test(r.message))return 1}return 0}(e);try{return Cge(t,n)}catch{}return[]}function D4(e){var t=Ige(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function Rge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:40,n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:"".concat(i.slice(0,t),"...")}return""}function IR(e){var t=Co(e,5),n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s={};if(o===void 0&&typeof n=="string"){var u="Error",c=n,p=n.match(kge);p&&(u=p[1],c=p[2]),s={$exception_type:u,$exception_message:c}}var f=o||n;if(N4(f)||function(y){return $h(y,"DOMException")}(f)){var m=f;if(function(y){return"stack"in y}(f))s=D4(f);else{var g=m.name||(N4(m)?"DOMError":"DOMException"),b=m.message?"".concat(g,": ").concat(m.message):g;s=function(y){return{$exception_type:"Error",$exception_message:y}}(b),s.$exception_type=N4(m)?"DOMError":"DOMException",s.$exception_message=s.$exception_message||b}"code"in m&&(s.$exception_DOMException_code="".concat(m.code))}else(function(y){return $h(y,"ErrorEvent")})(f)&&f.error?s=D4(f.error):function(y){switch(Object.prototype.toString.call(y)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return eB(y,Error)}}(f)?s=D4(f):function(y){return $h(y,"Object")}(f)||wR(f)?(s=function(y){return{$exception_type:wR(y)?y.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",Rge(y))}}(f),s.$exception_is_synthetic=!0):(s.$exception_type=s.$exception_type||"Error",s.$exception_message=s.$exception_message||f,s.$exception_is_synthetic=!0);return vt(vt(vt(vt({},s),{},{$exception_type:s.$exception_type||"UnknownErrorType",$exception_message:s.$exception_message||""},r?{$exception_source:r}:{}),i?{$exception_lineno:i}:{}),a?{$exception_colno:a}:{})}var RR,NR,Nge=function(){function e(t){Un(this,e),ct(this,"originalOnErrorHandler",void 0),ct(this,"originalOnUnhandledRejectionHandler",void 0),ct(this,"errorsToIgnore",[]),this.instance=t}return $n(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var t,n=arguments.length,r=new Array(n),i=0;i1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Py);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.surveys;return n.instance.persistence.register(ct({},Py,o)),t(o)})}},{key:"getActiveMatchingSurveys",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(i){var a=i.filter(function(o){return!(!o.start_date||o.end_date)}).filter(function(o){var s,u;if(!o.conditions)return!0;var c=(s=o.conditions)===null||s===void 0||!s.url||window.location.href.indexOf(o.conditions.url)>-1,p=(u=o.conditions)===null||u===void 0||!u.selector||document.querySelector(o.conditions.selector);return c&&p}).filter(function(o){if(!o.linked_flag_key&&!o.targeting_flag_key)return!0;var s=!o.linked_flag_key||n.instance.featureFlags.isFeatureEnabled(o.linked_flag_key),u=!o.targeting_flag_key||n.instance.featureFlags.isFeatureEnabled(o.targeting_flag_key);return s&&u});return t(a)},r)}}]),e}(),Dge={"X-PostHog-Retry-After-Recordings":VP,"X-PostHog-Retry-After-Events":"events"},Lge=function(){function e(){Un(this,e),ct(this,"limits",{})}return $n(e,[{key:"isRateLimited",value:function(t){var n=this.limits[t||"events"]||!1;return n!==!1&&new Date().getTime()1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,c={segmentRegister:!1,syncCode:!1},p=function(A){return function(){c[A]||(c[A]=!0,c.segmentRegister&&c.syncCode&&(s==null||s(i)))}};if(this.set_config($r({},OR(),a,{name:o,token:t,callback_fn:(o===gi?o:gi+"."+o)+"._jsc"})),this.uuidFn=aR(this.config.uuid_version||"og"),this._jsc=function(){},(ht!=null&&(n=ht.rrweb)!==null&&n!==void 0&&n.record||ht!=null&&ht.rrwebRecord)&&(this.__loaded_recorder_version=ht==null||(u=ht.rrweb)===null||u===void 0?void 0:u.version),this.persistence=new hR(this.config),this._captureMetrics=new Jhe(this.get_config("_capture_metrics")),this._requestQueue=new Qhe(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new gge(this._captureMetrics,this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new bge(this.config,this.persistence,this.uuidFn),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new hR(vt(vt({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(p("segmentRegister"))):p("segmentRegister")(),((r=a.bootstrap)===null||r===void 0?void 0:r.distinctID)!==void 0){var f,m,g=this.get_config("get_device_id")(this.uuidFn()),b=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?g:a.bootstrap.distinctID;this.persistence.set_user_state((m=a.bootstrap)!==null&&m!==void 0&&m.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:b})}if(this._hasBootstrappedFeatureFlags()){var y,T,E=Object.keys(((y=a.bootstrap)===null||y===void 0?void 0:y.featureFlags)||{}).filter(function(A){var R,k;return!((R=a.bootstrap)===null||R===void 0||(k=R.featureFlags)===null||k===void 0||!k[A])}).reduce(function(A,R){var k,N;return A[R]=((k=a.bootstrap)===null||k===void 0||(N=k.featureFlags)===null||N===void 0?void 0:N[R])||!1,A},{}),v=Object.keys(((T=a.bootstrap)===null||T===void 0?void 0:T.featureFlagPayloads)||{}).filter(function(A){return E[A]}).reduce(function(A,R){var k,N,B,q;return(k=a.bootstrap)!==null&&k!==void 0&&(N=k.featureFlagPayloads)!==null&&N!==void 0&&N[R]&&(A[R]=(B=a.bootstrap)===null||B===void 0||(q=B.featureFlagPayloads)===null||q===void 0?void 0:q[R]),A},{});this.featureFlags.receivedFeatureFlags({featureFlags:E,featureFlagPayloads:v})}if(!this.get_distinct_id()){var w=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_user_state("anonymous")}ht.addEventListener&&ht.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),p("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(t){console.error("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:jn.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new jhe(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var t=this;this.has_opted_out_capturing()||os(this.__request_queue,function(n){t._send_request.apply(t,xy(n))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(t,n){if(ja(t))return null;if(Hh)return function(o){t(o,n)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],t(o,n)},a}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(t,n,r){var i=JSON.stringify(n);this.__compress_and_send_json_request(t,i,r||ih,jy)}},{key:"__compress_and_send_json_request",value:function(t,n,r,i){var a=function(c,p,f){return c===tu.GZipJS?[dge(pge(p),{mtime:0}),vt(vt({},f),{},{blob:!0,urlQueryArgs:{compression:tu.GZipJS}})]:[{data:dT(p)},f]}(this.compression[tu.GZipJS]?tu.GZipJS:tu.Base64,n,r),o=Co(a,2),s=o[0],u=o[1];this._send_request(t,s,u,i)}},{key:"_send_request",value:function(t,n,r,i){if(this.rateLimiter.isRateLimited(r._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(tB)this.__request_queue.push([t,n,r,i]);else{var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=$r(a,r||{}),Hh||(r.method="GET");var o="sendBeacon"in ht.navigator&&r.transport==="sendBeacon";if(t=fge(t,r.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{ht.navigator.sendBeacon(t,bT(n,vt(vt({},r),{},{sendBeacon:!0})))}catch{}else if(Hh)try{JP({url:t,data:n,headers:this.get_config("xhr_headers"),options:r,captureMetrics:this._captureMetrics,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(p){console.error(p)}else{var s,u=jn.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=t;var c=jn.getElementsByTagName("script")[0];(s=c.parentNode)===null||s===void 0||s.insertBefore(u,c)}}}},{key:"_execute_array",value:function(t){var n,r=this,i=[],a=[],o=[];os(t,function(u){u&&(n=u[0],ts(n)?o.push(u):typeof u=="function"?u.call(r):ts(u)&&n==="alias"?i.push(u):ts(u)&&n.indexOf("capture")!==-1&&typeof r[n]=="function"?o.push(u):a.push(u))});var s=function(u,c){os(u,function(p){if(ts(p[0])){var f=c;hn(p,function(m){f=f[m[0]].apply(f,m.slice(1))})}else this[p[0]].apply(this,p.slice(1))},c)};s(i,this),s(a,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var t,n;return((t=this.config.bootstrap)===null||t===void 0?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)===null||n===void 0?void 0:n.featureFlags).length>0||!1}},{key:"push",value:function(t){this._execute_array([t])}},{key:"captureException",value:function(t,n){var r;(r=this.exceptionAutocapture)===null||r===void 0||r.captureException([t.name,void 0,void 0,void 0,t],n)}},{key:"capture",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ih;if(this.__loaded&&!function(c,p){var f=!1;try{var m=c.get_config("token"),g=c.get_config("respect_dnt"),b=c.get_config("opt_out_capturing_persistence_type"),y=c.get_config("opt_out_capturing_cookie_prefix")||void 0,T=c.get_config("window");m&&(f=yR(m,{respectDnt:g,persistenceType:b,persistencePrefix:y,window:T}))}catch(E){p||console.error("Unexpected error when checking capturing opt-out status: "+E)}return f}(this,!1)){this._captureMetrics.incr("capture"),t==="$snapshot"&&this._captureMetrics.incr("snapshot");var i=(r=r||ih).transport;if(i&&(r.transport=i),ja(t)||typeof t!="string")console.error("No event name provided to posthog.capture");else if(!The(aa)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var a={uuid:this.uuidFn("v7"),event:t,properties:this._calculate_event_properties(t,n||{})};t==="$identify"&&(a.$set=r.$set,a.$set_once=r.$set_once),(a=vhe(a,r._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=r.timestamp||new Date,this.get_config("debug")&&In.log("PostHog.js send",a);var o=JSON.stringify(a),s=this.get_config("api_host")+(r.endpoint||"/e/"),u=r!==ih;return!this.get_config("request_batching")||u&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(s,o,r):this._requestQueue.enqueue(s,a,r),this._invokeCaptureHooks(t,a),a}}}},{key:"_addCaptureHook",value:function(t){this.__captureHooks.push(t)}},{key:"_invokeCaptureHooks",value:function(t,n){this.config._onCapture(t,n),hn(this.__captureHooks,function(r){return r(t)})}},{key:"_calculate_event_properties",value:function(t,n){var r,i=this.persistence.remove_event_timer(t),a=vt({},n);if(a.token=this.get_config("token"),t==="$snapshot"){var o=vt(vt({},this.persistence.properties()),this.sessionPersistence.properties());return a.distinct_id=o.distinct_id,a}var s=Sr.properties();if(this.sessionManager){var u=this.sessionManager.checkAndGetSessionAndWindowId(),c=u.sessionId,p=u.windowId;a.$session_id=c,a.$window_id=p}if((r=this.webPerformance)!==null&&r!==void 0&&r.isEnabled&&(t==="$pageview"&&this.pageViewIdManager.onPageview(),a=$r(a,{$pageview_id:this.pageViewIdManager.getPageViewId()})),t==="$pageview"&&(a.title=jn.title),t==="$performance_event"){var f=this.persistence.properties();return a.distinct_id=f.distinct_id,a.$current_url=s.$current_url,a}if(i!==void 0){var m=new Date().getTime()-i;a.$duration=parseFloat((m/1e3).toFixed(3))}a=$r({},Sr.properties(),this.persistence.properties(),this.sessionPersistence.properties(),a);var g=this.get_config("property_blacklist");ts(g)?hn(g,function(y){delete a[y]}):console.error("Invalid value for property_blacklist config: "+g);var b=this.get_config("sanitize_properties");return b&&(a=b(a,t)),a}},{key:"register",value:function(t,n){this.persistence.register(t,n)}},{key:"register_once",value:function(t,n,r){this.persistence.register_once(t,n,r)}},{key:"register_for_session",value:function(t){this.sessionPersistence.register(t)}},{key:"unregister",value:function(t){this.persistence.unregister(t)}},{key:"unregister_for_session",value:function(t){this.sessionPersistence.unregister(t)}},{key:"_register_single",value:function(t,n){this.register(ct({},t,n))}},{key:"getFeatureFlag",value:function(t,n){return this.featureFlags.getFeatureFlag(t,n)}},{key:"getFeatureFlagPayload",value:function(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}},{key:"isFeatureEnabled",value:function(t,n){return this.featureFlags.isFeatureEnabled(t,n)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}},{key:"getEarlyAccessFeatures",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,n)}},{key:"onFeatureFlags",value:function(t){return this.featureFlags.onFeatureFlags(t)}},{key:"onSessionId",value:function(t){return this.sessionManager.onSessionId(t)}},{key:"getSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(t,n)}},{key:"getActiveMatchingSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(t,n)}},{key:"identify",value:function(t,n,r){if(t){this._captureMetrics.incr("identify");var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var a=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:a},"")}t!==i&&t!==this.get_property(Bh)&&(this.unregister(Bh),this.register({distinct_id:t}));var o=this.persistence.get_user_state()==="anonymous";t!==i&&o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(n||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Jg))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(t,n){(t||n)&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:n||{}}))}},{key:"group",value:function(t,n,r){if(t&&n){this._captureMetrics.incr("group");var i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:vt(vt({},i),{},ct({},t,n))}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags(ct({},t,r))),i[t]===n||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,n)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(t,n)}},{key:"resetGroupPropertiesForFlags",value:function(t){this.featureFlags.resetGroupPropertiesForFlags(t)}},{key:"reset",value:function(t){var n=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var r=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:r,$device_id:t?r:n},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(t){var n=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=r.sessionId,a=r.sessionStartTimestamp,o=n+"/replay/"+i;if(t!=null&&t.withTimestamp&&a){var s,u=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!a)return o;var c=Math.max(Math.floor((new Date().getTime()-a)/1e3)-u,0);o+="?t=".concat(c)}return o}},{key:"alias",value:function(t,n){return t===this.get_property(jP)?(In.critical("Attempting to create alias for existing People user - aborting."),-2):(ja(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(Bh,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(t),-1))}},{key:"set_config",value:function(t){var n=vt({},this.config);Ny(t)&&($r(this.config,t),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),Kn.is_supported()&&Kn.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(ma.DEBUG=!0),this.sessionRecording&&t.disable_session_recording!==void 0&&n.disable_session_recording!==t.disable_session_recording&&(t.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var t;return!((t=this.sessionRecording)===null||t===void 0||!t.started())}},{key:"loadToolbar",value:function(t){return this.toolbar.loadToolbar(t)}},{key:"get_config",value:function(t){var n;return(n=this.config)===null||n===void 0?void 0:n[t]}},{key:"get_property",value:function(t){return this.persistence.props[t]}},{key:"getSessionProperty",value:function(t){return this.sessionPersistence.props[t]}},{key:"toString",value:function(){var t,n=(t=this.get_config("name"))!==null&&t!==void 0?t:gi;return n!==gi&&(n=gi+"."+n),n}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&Kn.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!yo.get("ph_optout")||(yo.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(t){var n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),this.get_config("disable_persistence")||this.sessionPersistence.disabled===n||this.sessionPersistence.set_disabled(n)}},{key:"_gdpr_call_func",value:function(t,n){return n=$r({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},n||{}),Kn.is_supported()||n.persistence_type!=="localStorage"||(n.persistence_type="cookie"),t(this.get_config("token"),{capture:n.capture,captureEventName:n.capture_event_name,captureProperties:n.capture_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieExpiration:n.cookie_expiration,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie})}},{key:"opt_in_capturing",value:function(t){t=$r({enable_persistence:!0},t||{}),this._gdpr_call_func(Khe,t),this._gdpr_update_persistence(t)}},{key:"opt_out_capturing",value:function(t){var n=$r({clear_persistence:!0},t||{});this._gdpr_call_func(Yhe,n),this._gdpr_update_persistence(n)}},{key:"has_opted_in_capturing",value:function(t){return this._gdpr_call_func(Xhe,t)}},{key:"has_opted_out_capturing",value:function(t){return this._gdpr_call_func(yR,t)}},{key:"clear_opt_in_out_capturing",value:function(t){var n=$r({enable_persistence:!0},t??{});this._gdpr_call_func(Zhe,n),this._gdpr_update_persistence(n)}},{key:"debug",value:function(t){t===!1?(ht.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(ht.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();(function(e,t){for(var n=0;nu.pathnameBase)),o=C.useRef(!1);return gB(()=>{o.current=!0}),C.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){n.go(u);return}let p=aB(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:fl([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,i,e])}const Fme=C.createContext(null);function Pme(e){let t=C.useContext(Il).outlet;return t&&C.createElement(Fme.Provider,{value:e},t)}function Bme(){let{matches:e}=C.useContext(Il),t=e[e.length-1];return t?t.params:{}}function Ume(e,t,n){P2()||$t(!1);let{navigator:r}=C.useContext(M2),{matches:i}=C.useContext(Il),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=TT(),c;if(t){var p;let y=typeof t=="string"?Ro(t):t;s==="/"||(p=y.pathname)!=null&&p.startsWith(s)||$t(!1),c=y}else c=u;let f=c.pathname||"/",m=s==="/"?f:f.slice(s.length)||"/",g=L1(e,{pathname:m}),b=Gme(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:fl([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:fl([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n);return t&&b?C.createElement(F2.Provider,{value:{location:Np({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Wn.Pop}},b):b}function $me(){let e=bB(),t=sB(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,a)}const zme=C.createElement($me,null);class Hme extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?C.createElement(Il.Provider,{value:this.props.routeContext},C.createElement(hB.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jme(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(L2);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Il.Provider,{value:t},r)}function Gme(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let s=a.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id]));s>=0||$t(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,u,c)=>{let p=u.route.id?o==null?void 0:o[u.route.id]:null,f=null;n&&(f=u.route.errorElement||zme);let m=t.concat(a.slice(0,c+1)),g=()=>{let b;return p?b=f:u.route.Component?b=C.createElement(u.route.Component,null):u.route.element?b=u.route.element:b=s,C.createElement(jme,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:b})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?C.createElement(Hme,{location:n.location,revalidation:n.revalidation,component:f,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var Xy;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Xy||(Xy={}));var Op;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(Op||(Op={}));function Vme(e){let t=C.useContext(L2);return t||$t(!1),t}function Wme(e){let t=C.useContext(fB);return t||$t(!1),t}function qme(e){let t=C.useContext(Il);return t||$t(!1),t}function mB(e){let t=qme(),n=t.matches[t.matches.length-1];return n.route.id||$t(!1),n.route.id}function bB(){var e;let t=C.useContext(hB),n=Wme(Op.UseRouteError),r=mB(Op.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Kme(){let{router:e}=Vme(Xy.UseNavigateStable),t=mB(Op.UseNavigateStable),n=C.useRef(!1);return gB(()=>{n.current=!0}),C.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Np({fromRouteId:t},a)))},[e,t])}const Yme="startTransition",VR=Q4[Yme];function Xme(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=C.useState(n.state),{v7_startTransition:o}=r||{},s=C.useCallback(f=>{o&&VR?VR(()=>a(f)):a(f)},[a,o]);C.useLayoutEffect(()=>n.subscribe(s),[n,s]);let u=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,m,g)=>n.navigate(f,{state:m,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(f,m,g)=>n.navigate(f,{replace:!0,state:m,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[n]),c=n.basename||"/",p=C.useMemo(()=>({router:n,navigator:u,static:!1,basename:c}),[n,u,c]);return C.createElement(C.Fragment,null,C.createElement(L2.Provider,{value:p},C.createElement(fB.Provider,{value:i},C.createElement(Jme,{basename:c,location:i.location,navigationType:i.historyAction,navigator:u},i.initialized?C.createElement(Zme,{routes:n.routes,state:i}):t))),null)}function Zme(e){let{routes:t,state:n}=e;return Ume(t,void 0,n)}function Qme(e){return Pme(e.context)}function Jme(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Wn.Pop,navigator:a,static:o=!1}=e;P2()&&$t(!1);let s=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=Ro(r));let{pathname:c="/",search:p="",hash:f="",state:m=null,key:g="default"}=r,b=C.useMemo(()=>{let y=hf(c,s);return y==null?null:{location:{pathname:y,search:p,hash:f,state:m,key:g},navigationType:i}},[s,c,p,f,m,g,i]);return b==null?null:C.createElement(M2.Provider,{value:u},C.createElement(F2.Provider,{children:n,value:b}))}var WR;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(WR||(WR={}));new Promise(()=>{});function e2e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:C.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function t2e(e,t){return Sme({basename:t==null?void 0:t.basename,future:Np({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:qge({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:e2e}).initialize()}const n2e=Ge.div` + */function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),o=C.useRef(!1);return gB(()=>{o.current=!0}),C.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){n.go(u);return}let p=aB(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:fl([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,i,e])}const Fme=C.createContext(null);function Pme(e){let t=C.useContext(Il).outlet;return t&&C.createElement(Fme.Provider,{value:e},t)}function Bme(){let{matches:e}=C.useContext(Il),t=e[e.length-1];return t?t.params:{}}function Ume(e,t,n){P2()||$t(!1);let{navigator:r}=C.useContext(M2),{matches:i}=C.useContext(Il),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=TT(),c;if(t){var p;let y=typeof t=="string"?Ro(t):t;s==="/"||(p=y.pathname)!=null&&p.startsWith(s)||$t(!1),c=y}else c=u;let f=c.pathname||"/",m=s==="/"?f:f.slice(s.length)||"/",g=L1(e,{pathname:m}),b=Gme(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:fl([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:fl([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n);return t&&b?C.createElement(F2.Provider,{value:{location:Np({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Wn.Pop}},b):b}function $me(){let e=bB(),t=sB(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,a)}const zme=C.createElement($me,null);class Hme extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?C.createElement(Il.Provider,{value:this.props.routeContext},C.createElement(hB.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jme(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(L2);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Il.Provider,{value:t},r)}function Gme(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let s=a.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id]));s>=0||$t(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,u,c)=>{let p=u.route.id?o==null?void 0:o[u.route.id]:null,f=null;n&&(f=u.route.errorElement||zme);let m=t.concat(a.slice(0,c+1)),g=()=>{let b;return p?b=f:u.route.Component?b=C.createElement(u.route.Component,null):u.route.element?b=u.route.element:b=s,C.createElement(jme,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:b})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?C.createElement(Hme,{location:n.location,revalidation:n.revalidation,component:f,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var Xy;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Xy||(Xy={}));var Op;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(Op||(Op={}));function Vme(e){let t=C.useContext(L2);return t||$t(!1),t}function Wme(e){let t=C.useContext(fB);return t||$t(!1),t}function qme(e){let t=C.useContext(Il);return t||$t(!1),t}function mB(e){let t=qme(),n=t.matches[t.matches.length-1];return n.route.id||$t(!1),n.route.id}function bB(){var e;let t=C.useContext(hB),n=Wme(Op.UseRouteError),r=mB(Op.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Kme(){let{router:e}=Vme(Xy.UseNavigateStable),t=mB(Op.UseNavigateStable),n=C.useRef(!1);return gB(()=>{n.current=!0}),C.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Np({fromRouteId:t},a)))},[e,t])}const Yme="startTransition",VR=Q4[Yme];function Xme(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=C.useState(n.state),{v7_startTransition:o}=r||{},s=C.useCallback(f=>{o&&VR?VR(()=>a(f)):a(f)},[a,o]);C.useLayoutEffect(()=>n.subscribe(s),[n,s]);let u=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,m,g)=>n.navigate(f,{state:m,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(f,m,g)=>n.navigate(f,{replace:!0,state:m,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[n]),c=n.basename||"/",p=C.useMemo(()=>({router:n,navigator:u,static:!1,basename:c}),[n,u,c]);return C.createElement(C.Fragment,null,C.createElement(L2.Provider,{value:p},C.createElement(fB.Provider,{value:i},C.createElement(Jme,{basename:c,location:i.location,navigationType:i.historyAction,navigator:u},i.initialized?C.createElement(Zme,{routes:n.routes,state:i}):t))),null)}function Zme(e){let{routes:t,state:n}=e;return Ume(t,void 0,n)}function Qme(e){return Pme(e.context)}function Jme(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Wn.Pop,navigator:a,static:o=!1}=e;P2()&&$t(!1);let s=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=Ro(r));let{pathname:c="/",search:p="",hash:f="",state:m=null,key:g="default"}=r,b=C.useMemo(()=>{let y=hf(c,s);return y==null?null:{location:{pathname:y,search:p,hash:f,state:m,key:g},navigationType:i}},[s,c,p,f,m,g,i]);return b==null?null:C.createElement(M2.Provider,{value:u},C.createElement(F2.Provider,{children:n,value:b}))}var WR;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(WR||(WR={}));new Promise(()=>{});function e2e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:C.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function t2e(e,t){return Sme({basename:t==null?void 0:t.basename,future:Np({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:qge({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:e2e}).initialize()}const n2e=Ge.div` display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; align-items: center; -`;function r2e(){const e=bs(),[t,n]=ut.useState(""),r=C.useContext(to),i=eo();return I.jsxs("div",{className:"p-4",children:[I.jsx("h3",{children:"Free Trial Limit Reached"}),I.jsxs("p",{children:["You've reached the free trial limit of 250 free inputs with Continue's OpenAI API key. To keep using Continue, you can either use your own API key, or use a local LLM. To read more about the options, see our"," ",I.jsx("a",{href:"https://continue.dev/docs/customization/models",target:"_blank",children:"documentation"}),". If you're just looking for fastest way to keep going, type '/config' to open your Continue config file and paste your API key into the OpenAIFreeTrial object."]}),I.jsx(Ig,{type:"text",placeholder:"Enter your OpenAI API key",value:t,onChange:a=>n(a.target.value)}),I.jsxs(n2e,{children:[I.jsx(oc,{onClick:()=>{i(cc(!1)),e("/models")},children:"Select model"}),I.jsx(oc,{disabled:!t,onClick:()=>{r==null||r.addModelForRole("*","OpenAI",{model:"gpt-4",api_key:t,title:"GPT-4"}),i(cc(!1))},children:"Use my API key"})]})]})}const i2e=Ge.div` +`;function r2e(){const e=No(),[t,n]=st.useState(""),r=C.useContext(to),i=eo();return I.jsxs("div",{className:"p-4",children:[I.jsx("h3",{children:"Free Trial Limit Reached"}),I.jsxs("p",{children:["You've reached the free trial limit of 250 free inputs with Continue's OpenAI API key. To keep using Continue, you can either use your own API key, or use a local LLM. To read more about the options, see our"," ",I.jsx("a",{href:"https://continue.dev/docs/customization/models",target:"_blank",children:"documentation"}),". If you're just looking for fastest way to keep going, type '/config' to open your Continue config file and paste your API key into the OpenAIFreeTrial object."]}),I.jsx(Ig,{type:"text",placeholder:"Enter your OpenAI API key",value:t,onChange:a=>n(a.target.value)}),I.jsxs(n2e,{children:[I.jsx(oc,{onClick:()=>{i(cc(!1)),e("/models")},children:"Select model"}),I.jsx(oc,{disabled:!t,onClick:()=>{r==null||r.addModelForRole("*","OpenAI",{model:"gpt-4",api_key:t,title:"GPT-4"}),i(cc(!1))},children:"Use my API key"})]})]})}const i2e=Ge.div` overflow-y: scroll; scrollbar-width: none; /* Firefox */ @@ -755,7 +755,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 0; z-index: 100; background-color: ${Ht}; -`;function l2e({error:e,resetErrorBoundary:t}){return I.jsxs("div",{role:"alert",children:[I.jsx("p",{children:"Something went wrong:"}),I.jsx("pre",{style:{color:"red"},children:e.message}),I.jsx(oc,{onClick:t,children:"Restart"})]})}function qR(e){var ce,De;const t=C.useContext(to),n=Bge(),r=eo(),i=bs(),a=zt(H=>H.sessionState),o=zt(H=>{var W;return(W=H.serverState.config.models)==null?void 0:W.default}),s=zt(H=>H.misc.serverStatusMessage),u=zt(H=>H.sessionState.title),c=zt(H=>H.sessionState.active),[p,f]=C.useState(!1),[m,g]=C.useState([]);C.useState(!0);const[b,y]=C.useState(!1);C.useEffect(()=>{setTimeout(()=>{y(!0)},5e3)},[]);const T=C.useRef(null),E=C.useRef(null),v=C.useRef(null),w=zt(H=>H.uiState.bottomMessage),A=zt(H=>H.misc.takenAction);C.useEffect(()=>{v.current&&r(W0e(v.current.getBoundingClientRect().top{var W;const H=()=>{var L,ie;const D=((L=E.current)==null?void 0:L.scrollTop)||0,pe=((ie=E.current)==null?void 0:ie.scrollHeight)||0,le=window.innerHeight||0;D+le+-25>=pe?k(!1):k(!0)};return(W=E.current)==null||W.addEventListener("scroll",H),()=>{window.removeEventListener("scroll",H)}},[E.current]),C.useLayoutEffect(()=>{var H,W;R||(W=E.current)==null||W.scrollTo({top:(H=E.current)==null?void 0:H.scrollHeight,behavior:"instant"})},[(ce=E.current)==null?void 0:ce.scrollHeight,a.history]),C.useEffect(()=>{const H=W=>{W.key==="Backspace"&&xg(W)&&!W.shiftKey?(t==null||t.stopSession(),r(Zd(!1))):W.key==="Escape"&&r(pu(void 0))};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[t,c]);const N=C.useCallback(H=>{if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!H.startsWith("/")||H.startsWith("/edit"))){const pe=localStorage.getItem("ftc");if(pe){const le=parseInt(pe);if(localStorage.setItem("ftc",(le+1).toString()),le>=250){r(cc(!0)),r(C4(I.jsx(r2e,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}f(!0);const W=[...a.history,{name:"User Input",description:H,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:H},hide:!1,depth:0}],se={history:W,context_items:a.context_items};for(let pe of a.context_items)r(SP({item:pe,index:W.length-1}));t.runFromState(se),W.push({name:"Generating Response...",description:" ",observations:[],logs:[],step_type:"SimpleChatStep",params:{},hide:!1,depth:0}),r(KI(W)),r(Zd(!0));const D=localStorage.getItem("mainTextEntryCounter");if(D){let pe=parseInt(D);localStorage.setItem("mainTextEntryCounter",(pe+1).toString()),pe===300&&(r(C4(I.jsxs("div",{className:"text-center p-4",children:["👋 Thanks for using Continue. We are a beta product and love working closely with our first users. If you're interested in speaking, enter your name and email. We won't use this information for anything other than reaching out.",I.jsx("br",{}),I.jsx("br",{}),I.jsxs("form",{onSubmit:le=>{le.preventDefault(),n==null||n.capture("user_interest_form",{name:le.target.elements[0].value,email:le.target.elements[1].value}),r(C4(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(V0e(!1)),r(cc(!0)))}else localStorage.setItem("mainTextEntryCounter","1")},[t,a.history,a.context_items]);C.useEffect(()=>{const H=W=>{W.data.type==="userInput"&&N(W.data.input)};return window.addEventListener("message",H),()=>window.removeEventListener("message",H)},[N]);const B=H=>{if(r(Ad(null)),T.current&&t){let W=T.current.inputValue;if(W.trim()==="")return;if(W.startsWith("#")&&(W.length===7||W.length===4)){localStorage.setItem("continueButtonColor",W),T.current.setInputValue("");return}H&&xg(H)&&(W=`/edit ${W}`),T.current.setInputValue(""),N(W)}},q=(H,W)=>{t&&t.sendStepUserInput(H,W)},P=C.useCallback(H=>{let W=!1;for(let se=H+1;se{const W=[];let se=-1;for(let D=H;D>=0;D--)if(typeof a.history[D]<"u"&&a.history[D].name==="User Input"&&a.history[D].hide===!1){W.push(D),se=D;break}if(W.length===0)return[];for(let D=se+1;D{const W=Q(H),se=W[0];g(D=>{const pe=[...D];return pe[H]=!pe[H],!W.some((L,ie)=>ie>0&&pe[L])?pe[se]=!1:!W.some((ie,Se)=>Se>0&&!pe[ie])&&(pe[se]=!0),pe})},[Q]);C.useEffect(()=>{u&&fe(u)},[u]);const[oe,fe]=C.useState(u||"New Session");return I.jsxs(i2e,{ref:E,onKeyDown:H=>{H.key==="Enter"&&H.ctrlKey&&B()},children:[I.jsxs(s2e,{children:[I.jsx(a2e,{onClick:H=>{H.target.setSelectionRange(0,H.target.value.length)},value:oe,onChange:H=>fe(H.target.value),onBlur:H=>{H.target.value===u||typeof u>"u"&&H.target.value==="New Session"||r(wP(H.target.value))},onKeyDown:H=>{H.key==="Enter"?(H.preventDefault(),H.target.blur()):H.key==="Escape"&&(fe(u||"New Session"),H.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[I.jsx(zi,{onClick:()=>{t==null||t.stopSession(),r(uc())},text:"New Session (⌥⌘N)",children:I.jsx(CL,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(OZ,{width:"1.4em",height:"1.4em"})})]})]}),A&&b&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(zge,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{qa("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(o2e,{children:(De=a==null?void 0:a.history)==null?void 0:De.map((H,W)=>H.hide?null:I.jsx(C.Fragment,{children:I.jsx(WX,{FallbackComponent:l2e,onReset:()=>{t==null||t.stopSession(),r(uc())},children:H.name==="User Input"?H.hide||I.jsx(QI,{isMainInput:!1,value:H.description,active:c&&P(W),onEnter:(se,D)=>{if(D){t==null||t.stopSession();const pe=[...a.history.slice(0,W),{name:"User Input",description:D,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:D},hide:!1,depth:0}];r(KI(pe)),r(Zd(!0));const le={history:pe,context_items:a.context_items};console.log("State: ",le),t.runFromState(le)}se==null||se.stopPropagation(),se==null||se.preventDefault()},groupIndices:Q(W),onToggle:se=>{g(D=>{const pe=[...D];return Q(W).forEach(le=>{pe[le]=se}),pe})},onToggleAll:se=>{g(D=>D.map(pe=>se))},isToggleOpen:typeof m[W]>"u"?!0:m[W],index:W,onDelete:()=>{Q(W).forEach(se=>{console.log(se),r(S4(se))})}}):I.jsx(Gge,{historyNode:H,iconElement:H.step_type==="DefaultModelEditCodeStep"?I.jsx(wZ,{width:"16px",height:"16px"}):H.error?I.jsx(wL,{width:"16px",height:"16px",color:"red"}):I.jsx(SL,{width:"16px",height:"16px"}),open:typeof m[W]>"u"?!H.error:m[W],onToggle:()=>$(W),children:H.error?I.jsx(Wge,{onClose:()=>$(W),error:H.error,onDelete:()=>{r(S4(W))}}):I.jsx(Uue,{index:W,isLast:W===a.history.length-1,isFirst:W===0,open:typeof m[W]>"u"?!0:m[W],onUserInput:se=>{q(se,W)},step:H,onReverse:()=>{t==null||t.reverseToIndex(W)},onRetry:()=>{t==null||t.retryAtIndex(W),f(!0)},onDelete:()=>{r(S4(W))},noUserInputParent:Q(W).length===0},W)})})},W))}),I.jsx("div",{ref:v}),I.jsx(QI,{isMainInput:!0,ref:T,onEnter:(H,W)=>{B(H),H==null||H.stopPropagation(),H==null||H.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const u2e=Ge.div` +`;function l2e({error:e,resetErrorBoundary:t}){return I.jsxs("div",{role:"alert",children:[I.jsx("p",{children:"Something went wrong:"}),I.jsx("pre",{style:{color:"red"},children:e.message}),I.jsx(oc,{onClick:t,children:"Restart"})]})}function qR(e){var ce,De;const t=C.useContext(to),n=Bge(),r=eo(),i=No(),a=zt(H=>H.sessionState),o=zt(H=>{var W;return(W=H.serverState.config.models)==null?void 0:W.default}),s=zt(H=>H.misc.serverStatusMessage),u=zt(H=>H.sessionState.title),c=zt(H=>H.sessionState.active),[p,f]=C.useState(!1),[m,g]=C.useState([]);C.useState(!0);const[b,y]=C.useState(!1);C.useEffect(()=>{setTimeout(()=>{y(!0)},5e3)},[]);const T=C.useRef(null),E=C.useRef(null),v=C.useRef(null),w=zt(H=>H.uiState.bottomMessage),A=zt(H=>H.misc.takenAction);C.useEffect(()=>{v.current&&r(W0e(v.current.getBoundingClientRect().top{var W;const H=()=>{var L,ie;const D=((L=E.current)==null?void 0:L.scrollTop)||0,pe=((ie=E.current)==null?void 0:ie.scrollHeight)||0,le=window.innerHeight||0;D+le+-25>=pe?k(!1):k(!0)};return(W=E.current)==null||W.addEventListener("scroll",H),()=>{window.removeEventListener("scroll",H)}},[E.current]),C.useLayoutEffect(()=>{var H,W;R||(W=E.current)==null||W.scrollTo({top:(H=E.current)==null?void 0:H.scrollHeight,behavior:"instant"})},[(ce=E.current)==null?void 0:ce.scrollHeight,a.history]),C.useEffect(()=>{const H=W=>{W.key==="Backspace"&&xg(W)&&!W.shiftKey?(t==null||t.stopSession(),r(Zd(!1))):W.key==="Escape"&&r(pu(void 0))};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[t,c]);const N=C.useCallback(H=>{if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!H.startsWith("/")||H.startsWith("/edit"))){const pe=localStorage.getItem("ftc");if(pe){const le=parseInt(pe);if(localStorage.setItem("ftc",(le+1).toString()),le>=250){console.log(o,"FTC"),r(cc(!0)),r(C4(I.jsx(r2e,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}f(!0);const W=[...a.history,{name:"User Input",description:H,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:H},hide:!1,depth:0}],se={history:W,context_items:a.context_items};for(let pe of a.context_items)r(SP({item:pe,index:W.length-1}));t.runFromState(se),W.push({name:"Generating Response...",description:" ",observations:[],logs:[],step_type:"SimpleChatStep",params:{},hide:!1,depth:0}),r(KI(W)),r(Zd(!0));const D=localStorage.getItem("mainTextEntryCounter");if(D){let pe=parseInt(D);localStorage.setItem("mainTextEntryCounter",(pe+1).toString()),pe===300&&(r(C4(I.jsxs("div",{className:"text-center p-4",children:["👋 Thanks for using Continue. We are a beta product and love working closely with our first users. If you're interested in speaking, enter your name and email. We won't use this information for anything other than reaching out.",I.jsx("br",{}),I.jsx("br",{}),I.jsxs("form",{onSubmit:le=>{le.preventDefault(),n==null||n.capture("user_interest_form",{name:le.target.elements[0].value,email:le.target.elements[1].value}),r(C4(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(V0e(!1)),r(cc(!0)))}else localStorage.setItem("mainTextEntryCounter","1")},[t,a.history,a.context_items,o]);C.useEffect(()=>{const H=W=>{W.data.type==="userInput"&&N(W.data.input)};return window.addEventListener("message",H),()=>window.removeEventListener("message",H)},[N]);const B=H=>{if(r(Ad(null)),T.current&&t){let W=T.current.inputValue;if(W.trim()==="")return;if(W.startsWith("#")&&(W.length===7||W.length===4)){localStorage.setItem("continueButtonColor",W),T.current.setInputValue("");return}H&&xg(H)&&(W=`/edit ${W}`),T.current.setInputValue(""),N(W)}},q=(H,W)=>{t&&t.sendStepUserInput(H,W)},P=C.useCallback(H=>{let W=!1;for(let se=H+1;se{const W=[];let se=-1;for(let D=H;D>=0;D--)if(typeof a.history[D]<"u"&&a.history[D].name==="User Input"&&a.history[D].hide===!1){W.push(D),se=D;break}if(W.length===0)return[];for(let D=se+1;D{const W=Q(H),se=W[0];g(D=>{const pe=[...D];return pe[H]=!pe[H],!W.some((L,ie)=>ie>0&&pe[L])?pe[se]=!1:!W.some((ie,Se)=>Se>0&&!pe[ie])&&(pe[se]=!0),pe})},[Q]);C.useEffect(()=>{u&&fe(u)},[u]);const[oe,fe]=C.useState(u||"New Session");return I.jsxs(i2e,{ref:E,onKeyDown:H=>{H.key==="Enter"&&H.ctrlKey&&B()},children:[I.jsxs(s2e,{children:[I.jsx(a2e,{onClick:H=>{H.target.setSelectionRange(0,H.target.value.length)},value:oe,onChange:H=>fe(H.target.value),onBlur:H=>{H.target.value===u||typeof u>"u"&&H.target.value==="New Session"||r(wP(H.target.value))},onKeyDown:H=>{H.key==="Enter"?(H.preventDefault(),H.target.blur()):H.key==="Escape"&&(fe(u||"New Session"),H.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[I.jsx(zi,{onClick:()=>{t==null||t.stopSession(),r(uc())},text:"New Session (⌥⌘N)",children:I.jsx(CL,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(OZ,{width:"1.4em",height:"1.4em"})})]})]}),A&&b&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(zge,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{qa("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(o2e,{children:(De=a==null?void 0:a.history)==null?void 0:De.map((H,W)=>H.hide?null:I.jsx(C.Fragment,{children:I.jsx(WX,{FallbackComponent:l2e,onReset:()=>{t==null||t.stopSession(),r(uc())},children:H.name==="User Input"?H.hide||I.jsx(QI,{isMainInput:!1,value:H.description,active:c&&P(W),onEnter:(se,D)=>{if(D){t==null||t.stopSession();const pe=[...a.history.slice(0,W),{name:"User Input",description:D,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:D},hide:!1,depth:0}];r(KI(pe)),r(Zd(!0));const le={history:pe,context_items:a.context_items};console.log("State: ",le),t.runFromState(le)}se==null||se.stopPropagation(),se==null||se.preventDefault()},groupIndices:Q(W),onToggle:se=>{g(D=>{const pe=[...D];return Q(W).forEach(le=>{pe[le]=se}),pe})},onToggleAll:se=>{g(D=>D.map(pe=>se))},isToggleOpen:typeof m[W]>"u"?!0:m[W],index:W,onDelete:()=>{Q(W).forEach(se=>{console.log(se),r(S4(se))})}}):I.jsx(Gge,{historyNode:H,iconElement:H.step_type==="DefaultModelEditCodeStep"?I.jsx(wZ,{width:"16px",height:"16px"}):H.error?I.jsx(wL,{width:"16px",height:"16px",color:"red"}):I.jsx(SL,{width:"16px",height:"16px"}),open:typeof m[W]>"u"?!H.error:m[W],onToggle:()=>$(W),children:H.error?I.jsx(Wge,{onClose:()=>$(W),error:H.error,onDelete:()=>{r(S4(W))}}):I.jsx(Uue,{index:W,isLast:W===a.history.length-1,isFirst:W===0,open:typeof m[W]>"u"?!0:m[W],onUserInput:se=>{q(se,W)},step:H,onReverse:()=>{t==null||t.reverseToIndex(W)},onRetry:()=>{t==null||t.retryAtIndex(W),f(!0)},onDelete:()=>{r(S4(W))},noUserInputParent:Q(W).length===0},W)})})},W))}),I.jsx("div",{ref:v}),I.jsx(QI,{isMainInput:!0,ref:T,onEnter:(H,W)=>{B(H),H==null||H.stopPropagation(),H==null||H.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const u2e=Ge.div` display: flex; flex-direction: row; align-items: center; @@ -803,7 +803,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho padding-right: 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem; -`;function KR(e){const t=e.includes("/")?"/":"\\";return e.split(t).pop()||e}function f2e(){const e=bs(),t=eo(),[n,r]=C.useState([]),[i,a]=C.useState([]),o=C.useContext(to),s=zt(E=>E.config.apiUrl),u=zt(E=>E.config.workspacePaths),c=zt(E=>E.sessionState),p=zt(E=>{var v;return((v=E.config.workspacePaths)==null?void 0:v[0])||""}),[f,m]=C.useState(!1);C.useEffect(()=>{(async()=>{if(!s)return;const v=await fetch(`${s}/sessions/list`);if(!v.ok)throw new Error(`HTTP error! status: ${v.status}`);const w=await v.json();r(w)})()},[o]),C.useEffect(()=>{a(n.filter(E=>!f||typeof u>"u"||typeof E.workspace_directory>"u"?!0:u.includes(E.workspace_directory)).sort((E,v)=>oh(v.date_created).getTime()-oh(E.date_created).getTime()))},[f,n]);const g=new Date(Date.now()-1e3*60*60*24),b=new Date(Date.now()-1e3*60*60*24*7),y=new Date(Date.now()-1e3*60*60*24*30),T=new Date(0);return I.jsxs("div",{className:"overflow-y-scroll",style:{fontSize:pr()},children:[I.jsxs("div",{className:"sticky top-0",style:{backgroundColor:Ht},children:[I.jsxs("div",{className:"items-center flex m-0 p-0",style:{borderBottom:`0.5px solid ${Et}`},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"History"})]}),u&&u.length>0&&I.jsx(c2e,{checked:f,onClick:()=>m(E=>!E),title:`Show only sessions from ${KR(u[u.length-1])}/`})]}),n.filter(E=>!f||typeof u>"u"||typeof E.workspace_directory>"u"?!0:u.includes(E.workspace_directory)).length===0&&I.jsxs("div",{className:"text-center m-4",children:['No past sessions found. To start a new session, either click the "+" button or use the keyboard shortcut: ',I.jsx("b",{children:"Option + Command + N"})]}),I.jsxs("div",{children:[I.jsx("table",{className:"w-full border-spacing-0 border-collapse",children:I.jsx("tbody",{children:i.map((E,v)=>{const w=v>0?oh(i[v-1].date_created):T,A=oh(E.date_created);return I.jsxs(C.Fragment,{children:[v===0&&A>g&&I.jsx(F4,{children:"Today"}),Ab&&w>g&&I.jsx(F4,{children:"This Week"}),Ay&&w>b&&I.jsx(F4,{children:"This Month"}),I.jsx(d2e,{children:I.jsx("td",{children:I.jsxs(p2e,{onClick:async()=>{const R={session_state:{history:c.history,context_items:c.context_items},title:c.title,workspace_directory:p,session_id:c.session_id};console.log(R),await fetch(`${s}/sessions/save`,{method:"POST",body:JSON.stringify(R),headers:{"Content-Type":"application/json"}});const k=await fetch(`${s}/sessions/${E.session_id}`);if(!k.ok)throw new Error(`HTTP error! status: ${k.status}`);const N=await k.json();o==null||o.stopSession(),t(uc(N)),e("/")},children:[I.jsx("div",{className:"text-md",children:E.title}),I.jsxs("div",{className:"text-gray-400",children:[A.toLocaleString("en-US",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"numeric",minute:"2-digit",hour12:!0})," | ",KR(E.workspace_directory||""),"/"]})]})})},v)]},v)})})}),I.jsx("br",{}),I.jsx("i",{className:"text-sm ml-4",children:"All session data is saved in ~/.continue/sessions"})]})]})}const h2e=Ge.div` +`;function KR(e){const t=e.includes("/")?"/":"\\";return e.split(t).pop()||e}function f2e(){const e=No(),t=eo(),[n,r]=C.useState([]),[i,a]=C.useState([]),o=C.useContext(to),s=zt(E=>E.config.apiUrl),u=zt(E=>E.config.workspacePaths),c=zt(E=>E.sessionState),p=zt(E=>{var v;return((v=E.config.workspacePaths)==null?void 0:v[0])||""}),[f,m]=C.useState(!1);C.useEffect(()=>{(async()=>{if(!s)return;const v=await fetch(`${s}/sessions/list`);if(!v.ok)throw new Error(`HTTP error! status: ${v.status}`);const w=await v.json();r(w)})()},[o]),C.useEffect(()=>{a(n.filter(E=>!f||typeof u>"u"||typeof E.workspace_directory>"u"?!0:u.includes(E.workspace_directory)).sort((E,v)=>oh(v.date_created).getTime()-oh(E.date_created).getTime()))},[f,n]);const g=new Date(Date.now()-1e3*60*60*24),b=new Date(Date.now()-1e3*60*60*24*7),y=new Date(Date.now()-1e3*60*60*24*30),T=new Date(0);return I.jsxs("div",{className:"overflow-y-scroll",style:{fontSize:pr()},children:[I.jsxs("div",{className:"sticky top-0",style:{backgroundColor:Ht},children:[I.jsxs("div",{className:"items-center flex m-0 p-0",style:{borderBottom:`0.5px solid ${Et}`},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"History"})]}),u&&u.length>0&&I.jsx(c2e,{checked:f,onClick:()=>m(E=>!E),title:`Show only sessions from ${KR(u[u.length-1])}/`})]}),n.filter(E=>!f||typeof u>"u"||typeof E.workspace_directory>"u"?!0:u.includes(E.workspace_directory)).length===0&&I.jsxs("div",{className:"text-center m-4",children:['No past sessions found. To start a new session, either click the "+" button or use the keyboard shortcut: ',I.jsx("b",{children:"Option + Command + N"})]}),I.jsxs("div",{children:[I.jsx("table",{className:"w-full border-spacing-0 border-collapse",children:I.jsx("tbody",{children:i.map((E,v)=>{const w=v>0?oh(i[v-1].date_created):T,A=oh(E.date_created);return I.jsxs(C.Fragment,{children:[v===0&&A>g&&I.jsx(F4,{children:"Today"}),Ab&&w>g&&I.jsx(F4,{children:"This Week"}),Ay&&w>b&&I.jsx(F4,{children:"This Month"}),I.jsx(d2e,{children:I.jsx("td",{children:I.jsxs(p2e,{onClick:async()=>{const R={session_state:{history:c.history,context_items:c.context_items},title:c.title,workspace_directory:p,session_id:c.session_id};console.log(R),await fetch(`${s}/sessions/save`,{method:"POST",body:JSON.stringify(R),headers:{"Content-Type":"application/json"}});const k=await fetch(`${s}/sessions/${E.session_id}`);if(!k.ok)throw new Error(`HTTP error! status: ${k.status}`);const N=await k.json();o==null||o.stopSession(),t(uc(N)),e("/")},children:[I.jsx("div",{className:"text-md",children:E.title}),I.jsxs("div",{className:"text-gray-400",children:[A.toLocaleString("en-US",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"numeric",minute:"2-digit",hour12:!0})," | ",KR(E.workspace_directory||""),"/"]})]})})},v)]},v)})})}),I.jsx("br",{}),I.jsx("i",{className:"text-sm ml-4",children:"All session data is saved in ~/.continue/sessions"})]})]})}const h2e=Ge.div` display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-gap: 2rem; @@ -836,7 +836,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &:hover { background-color: ${e=>e.backgroundColor||Et}; } -`;function YR(){const e=bs();return I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Help Center"})]}),I.jsxs("div",{className:"grid grid-cols-2 grid-rows-2",children:[I.jsx(sh,{backgroundColor:"rgb(234, 51, 35)",children:I.jsx("a",{href:"https://youtu.be/3Ocrc-WX4iQ?si=eDLYtkc6CXQoHsEc",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5.2 -4.5 60 60",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M 44.898438 14.5 C 44.5 12.300781 42.601563 10.699219 40.398438 10.199219 C 37.101563 9.5 31 9 24.398438 9 C 17.800781 9 11.601563 9.5 8.300781 10.199219 C 6.101563 10.699219 4.199219 12.199219 3.800781 14.5 C 3.398438 17 3 20.5 3 25 C 3 29.5 3.398438 33 3.898438 35.5 C 4.300781 37.699219 6.199219 39.300781 8.398438 39.800781 C 11.898438 40.5 17.898438 41 24.5 41 C 31.101563 41 37.101563 40.5 40.601563 39.800781 C 42.800781 39.300781 44.699219 37.800781 45.101563 35.5 C 45.5 33 46 29.398438 46.101563 25 C 45.898438 20.5 45.398438 17 44.898438 14.5 Z M 19 32 L 19 18 L 31.199219 25 Z"})})})}),I.jsx(sh,{backgroundColor:ha,children:I.jsx("a",{href:"https://continue.dev/docs/how-to-use-continue",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2.2 -2 28 28",fill:Yt,className:"w-full h-full flex items-center justify-center",children:I.jsx("path",{d:"M11.25 4.533A9.707 9.707 0 006 3a9.735 9.735 0 00-3.25.555.75.75 0 00-.5.707v14.25a.75.75 0 001 .707A8.237 8.237 0 016 18.75c1.995 0 3.823.707 5.25 1.886V4.533zM12.75 20.636A8.214 8.214 0 0118 18.75c.966 0 1.89.166 2.75.47a.75.75 0 001-.708V4.262a.75.75 0 00-.5-.707A9.735 9.735 0 0018 3a9.707 9.707 0 00-5.25 1.533v16.103z"})})})}),I.jsx(sh,{backgroundColor:"rgb(88, 98, 227)",children:I.jsx("a",{href:"https://discord.gg/vapESyrFmJ",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5 -5.5 60 60",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M 41.625 10.769531 C 37.644531 7.566406 31.347656 7.023438 31.078125 7.003906 C 30.660156 6.96875 30.261719 7.203125 30.089844 7.589844 C 30.074219 7.613281 29.9375 7.929688 29.785156 8.421875 C 32.417969 8.867188 35.652344 9.761719 38.578125 11.578125 C 39.046875 11.867188 39.191406 12.484375 38.902344 12.953125 C 38.710938 13.261719 38.386719 13.429688 38.050781 13.429688 C 37.871094 13.429688 37.6875 13.378906 37.523438 13.277344 C 32.492188 10.15625 26.210938 10 25 10 C 23.789063 10 17.503906 10.15625 12.476563 13.277344 C 12.007813 13.570313 11.390625 13.425781 11.101563 12.957031 C 10.808594 12.484375 10.953125 11.871094 11.421875 11.578125 C 14.347656 9.765625 17.582031 8.867188 20.214844 8.425781 C 20.0625 7.929688 19.925781 7.617188 19.914063 7.589844 C 19.738281 7.203125 19.34375 6.960938 18.921875 7.003906 C 18.652344 7.023438 12.355469 7.566406 8.320313 10.8125 C 6.214844 12.761719 2 24.152344 2 34 C 2 34.175781 2.046875 34.34375 2.132813 34.496094 C 5.039063 39.605469 12.972656 40.941406 14.78125 41 C 14.789063 41 14.800781 41 14.8125 41 C 15.132813 41 15.433594 40.847656 15.621094 40.589844 L 17.449219 38.074219 C 12.515625 36.800781 9.996094 34.636719 9.851563 34.507813 C 9.4375 34.144531 9.398438 33.511719 9.765625 33.097656 C 10.128906 32.683594 10.761719 32.644531 11.175781 33.007813 C 11.234375 33.0625 15.875 37 25 37 C 34.140625 37 38.78125 33.046875 38.828125 33.007813 C 39.242188 32.648438 39.871094 32.683594 40.238281 33.101563 C 40.601563 33.515625 40.5625 34.144531 40.148438 34.507813 C 40.003906 34.636719 37.484375 36.800781 32.550781 38.074219 L 34.378906 40.589844 C 34.566406 40.847656 34.867188 41 35.1875 41 C 35.199219 41 35.210938 41 35.21875 41 C 37.027344 40.941406 44.960938 39.605469 47.867188 34.496094 C 47.953125 34.34375 48 34.175781 48 34 C 48 24.152344 43.785156 12.761719 41.625 10.769531 Z M 18.5 30 C 16.566406 30 15 28.210938 15 26 C 15 23.789063 16.566406 22 18.5 22 C 20.433594 22 22 23.789063 22 26 C 22 28.210938 20.433594 30 18.5 30 Z M 31.5 30 C 29.566406 30 28 28.210938 28 26 C 28 23.789063 29.566406 22 31.5 22 C 33.433594 22 35 23.789063 35 26 C 35 28.210938 33.433594 30 31.5 30 Z"})})})}),I.jsx(sh,{children:I.jsx("a",{href:"https://github.com/continuedev/continue/issues/new/choose",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-1.2 -1.2 32 32",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"})})})})]}),I.jsx(E2e,{})]})}const v2e=Ge.div` +`;function YR(){const e=No();return I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Help Center"})]}),I.jsxs("div",{className:"grid grid-cols-2 grid-rows-2",children:[I.jsx(sh,{backgroundColor:"rgb(234, 51, 35)",children:I.jsx("a",{href:"https://youtu.be/3Ocrc-WX4iQ?si=eDLYtkc6CXQoHsEc",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5.2 -4.5 60 60",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M 44.898438 14.5 C 44.5 12.300781 42.601563 10.699219 40.398438 10.199219 C 37.101563 9.5 31 9 24.398438 9 C 17.800781 9 11.601563 9.5 8.300781 10.199219 C 6.101563 10.699219 4.199219 12.199219 3.800781 14.5 C 3.398438 17 3 20.5 3 25 C 3 29.5 3.398438 33 3.898438 35.5 C 4.300781 37.699219 6.199219 39.300781 8.398438 39.800781 C 11.898438 40.5 17.898438 41 24.5 41 C 31.101563 41 37.101563 40.5 40.601563 39.800781 C 42.800781 39.300781 44.699219 37.800781 45.101563 35.5 C 45.5 33 46 29.398438 46.101563 25 C 45.898438 20.5 45.398438 17 44.898438 14.5 Z M 19 32 L 19 18 L 31.199219 25 Z"})})})}),I.jsx(sh,{backgroundColor:ha,children:I.jsx("a",{href:"https://continue.dev/docs/how-to-use-continue",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2.2 -2 28 28",fill:Yt,className:"w-full h-full flex items-center justify-center",children:I.jsx("path",{d:"M11.25 4.533A9.707 9.707 0 006 3a9.735 9.735 0 00-3.25.555.75.75 0 00-.5.707v14.25a.75.75 0 001 .707A8.237 8.237 0 016 18.75c1.995 0 3.823.707 5.25 1.886V4.533zM12.75 20.636A8.214 8.214 0 0118 18.75c.966 0 1.89.166 2.75.47a.75.75 0 001-.708V4.262a.75.75 0 00-.5-.707A9.735 9.735 0 0018 3a9.707 9.707 0 00-5.25 1.533v16.103z"})})})}),I.jsx(sh,{backgroundColor:"rgb(88, 98, 227)",children:I.jsx("a",{href:"https://discord.gg/vapESyrFmJ",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5 -5.5 60 60",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M 41.625 10.769531 C 37.644531 7.566406 31.347656 7.023438 31.078125 7.003906 C 30.660156 6.96875 30.261719 7.203125 30.089844 7.589844 C 30.074219 7.613281 29.9375 7.929688 29.785156 8.421875 C 32.417969 8.867188 35.652344 9.761719 38.578125 11.578125 C 39.046875 11.867188 39.191406 12.484375 38.902344 12.953125 C 38.710938 13.261719 38.386719 13.429688 38.050781 13.429688 C 37.871094 13.429688 37.6875 13.378906 37.523438 13.277344 C 32.492188 10.15625 26.210938 10 25 10 C 23.789063 10 17.503906 10.15625 12.476563 13.277344 C 12.007813 13.570313 11.390625 13.425781 11.101563 12.957031 C 10.808594 12.484375 10.953125 11.871094 11.421875 11.578125 C 14.347656 9.765625 17.582031 8.867188 20.214844 8.425781 C 20.0625 7.929688 19.925781 7.617188 19.914063 7.589844 C 19.738281 7.203125 19.34375 6.960938 18.921875 7.003906 C 18.652344 7.023438 12.355469 7.566406 8.320313 10.8125 C 6.214844 12.761719 2 24.152344 2 34 C 2 34.175781 2.046875 34.34375 2.132813 34.496094 C 5.039063 39.605469 12.972656 40.941406 14.78125 41 C 14.789063 41 14.800781 41 14.8125 41 C 15.132813 41 15.433594 40.847656 15.621094 40.589844 L 17.449219 38.074219 C 12.515625 36.800781 9.996094 34.636719 9.851563 34.507813 C 9.4375 34.144531 9.398438 33.511719 9.765625 33.097656 C 10.128906 32.683594 10.761719 32.644531 11.175781 33.007813 C 11.234375 33.0625 15.875 37 25 37 C 34.140625 37 38.78125 33.046875 38.828125 33.007813 C 39.242188 32.648438 39.871094 32.683594 40.238281 33.101563 C 40.601563 33.515625 40.5625 34.144531 40.148438 34.507813 C 40.003906 34.636719 37.484375 36.800781 32.550781 38.074219 L 34.378906 40.589844 C 34.566406 40.847656 34.867188 41 35.1875 41 C 35.199219 41 35.210938 41 35.21875 41 C 37.027344 40.941406 44.960938 39.605469 47.867188 34.496094 C 47.953125 34.34375 48 34.175781 48 34 C 48 24.152344 43.785156 12.761719 41.625 10.769531 Z M 18.5 30 C 16.566406 30 15 28.210938 15 26 C 15 23.789063 16.566406 22 18.5 22 C 20.433594 22 22 23.789063 22 26 C 22 28.210938 20.433594 30 18.5 30 Z M 31.5 30 C 29.566406 30 28 28.210938 28 26 C 28 23.789063 29.566406 22 31.5 22 C 33.433594 22 35 23.789063 35 26 C 35 28.210938 33.433594 30 31.5 30 Z"})})})}),I.jsx(sh,{children:I.jsx("a",{href:"https://github.com/continuedev/continue/issues/new/choose",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-1.2 -1.2 32 32",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"})})})})]}),I.jsx(E2e,{})]})}const v2e=Ge.div` position: fixed; width: 100%; height: 100%; @@ -873,10 +873,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `;Ge.p` color: ${Yt}; margin: 8px auto; -`;const S2e=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),I.jsx(v2e,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(_2e,{onClick:t=>{t.stopPropagation()},children:I.jsx(T2e,{children:typeof e.message=="string"?I.jsx(N9,{children:e.message||""}):e.message})})}));var w2e=Object.defineProperty,A2e=(e,t,n)=>t in e?w2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P4=(e,t,n)=>(A2e(e,typeof t!="symbol"?t+"":t,n),n);let C2e=class{constructor(){P4(this,"current",this.detect()),P4(this,"handoffState","pending"),P4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},hu=new C2e,Gi=(e,t)=>{hu.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function wo(e){let t=C.useRef(e);return Gi(()=>{t.current=e},[e]),t}function yB(e,t){let[n,r]=C.useState(e),i=wo(e);return Gi(()=>r(i.current),[i,r,...t]),n}function k2e(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function vl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return k2e(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=vl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function pc(){let[e]=C.useState(vl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Zt=function(e){let t=wo(e);return ut.useCallback((...n)=>t.current(...n),[t])};function x2e(){let e=typeof document>"u";return"useSyncExternalStore"in Q4?(t=>t.useSyncExternalStore)(Q4)(()=>()=>{},()=>!1,()=>!e):!1}function ST(){let e=x2e(),[t,n]=C.useState(hu.isHandoffComplete);return t&&hu.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>hu.handoff(),[]),e?!1:t}var XR;let B2=(XR=ut.useId)!=null?XR:function(){let e=ST(),[t,n]=ut.useState(e?()=>hu.nextId():null);return Gi(()=>{t===null&&n(hu.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Cr),r}function EB(e){return hu.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZR=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var I2e=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(I2e||{}),R2e=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(R2e||{}),N2e=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(N2e||{}),wT=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wT||{});function vB(e,t=0){var n;return e===((n=EB(e))==null?void 0:n.body)?!1:Cr(t,{0(){return e.matches(ZR)},1(){let r=e;for(;r!==null;){if(r.matches(ZR))return!0;r=r.parentElement}return!1}})}var O2e=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(O2e||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function D2e(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lh(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function L2e(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function M2e(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!vB(u,wT.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);lh("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),lh("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),L2e("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QR(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function F2e(e,t){let[n,r]=C.useState(()=>QR(e));return Gi(()=>{r(QR(e))},[e.type,e.as]),Gi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let P2e=Symbol();function Pu(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Zt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[P2e]))?void 0:n}function B2e(e){throw new Error("Unexpected object: "+e)}var yi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(yi||{});function U2e(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:B2e(e)}})();return a===-1?r:a}function tm(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var nm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(nm||{}),Qs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qs||{});function Rl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=_B(t,e);if(a)return uh(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return uh(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Cr(c?0:1,{0(){return null},1(){return uh({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return uh(s,n,r,o)}function uh(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=B4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,b]of Object.entries(t))typeof b=="boolean"&&(f=!0),b===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(Zy(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(b=>` - ${b}`).join(` +`;const S2e=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),I.jsx(v2e,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(_2e,{onClick:t=>{t.stopPropagation()},children:I.jsx(T2e,{children:typeof e.message=="string"?I.jsx(N9,{children:e.message||""}):st.isValidElement(e.message)?e.message:null})})}));var w2e=Object.defineProperty,A2e=(e,t,n)=>t in e?w2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P4=(e,t,n)=>(A2e(e,typeof t!="symbol"?t+"":t,n),n);let C2e=class{constructor(){P4(this,"current",this.detect()),P4(this,"handoffState","pending"),P4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},hu=new C2e,Gi=(e,t)=>{hu.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function wo(e){let t=C.useRef(e);return Gi(()=>{t.current=e},[e]),t}function yB(e,t){let[n,r]=C.useState(e),i=wo(e);return Gi(()=>r(i.current),[i,r,...t]),n}function k2e(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function vl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return k2e(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=vl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function pc(){let[e]=C.useState(vl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Zt=function(e){let t=wo(e);return st.useCallback((...n)=>t.current(...n),[t])};function x2e(){let e=typeof document>"u";return"useSyncExternalStore"in Q4?(t=>t.useSyncExternalStore)(Q4)(()=>()=>{},()=>!1,()=>!e):!1}function ST(){let e=x2e(),[t,n]=C.useState(hu.isHandoffComplete);return t&&hu.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>hu.handoff(),[]),e?!1:t}var XR;let B2=(XR=st.useId)!=null?XR:function(){let e=ST(),[t,n]=st.useState(e?()=>hu.nextId():null);return Gi(()=>{t===null&&n(hu.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Cr),r}function EB(e){return hu.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZR=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var I2e=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(I2e||{}),R2e=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(R2e||{}),N2e=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(N2e||{}),wT=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wT||{});function vB(e,t=0){var n;return e===((n=EB(e))==null?void 0:n.body)?!1:Cr(t,{0(){return e.matches(ZR)},1(){let r=e;for(;r!==null;){if(r.matches(ZR))return!0;r=r.parentElement}return!1}})}var O2e=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(O2e||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function D2e(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lh(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function L2e(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function M2e(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!vB(u,wT.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);lh("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),lh("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),L2e("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QR(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function F2e(e,t){let[n,r]=C.useState(()=>QR(e));return Gi(()=>{r(QR(e))},[e.type,e.as]),Gi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let P2e=Symbol();function Pu(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Zt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[P2e]))?void 0:n}function B2e(e){throw new Error("Unexpected object: "+e)}var yi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(yi||{});function U2e(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:B2e(e)}})();return a===-1?r:a}function tm(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var nm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(nm||{}),Qs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qs||{});function Rl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=_B(t,e);if(a)return uh(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return uh(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Cr(c?0:1,{0(){return null},1(){return uh({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return uh(s,n,r,o)}function uh(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=B4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,b]of Object.entries(t))typeof b=="boolean"&&(f=!0),b===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(Zy(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(b=>` - ${b}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(b=>` - ${b}`).join(` `)].join(` -`));let f=c.props,m=typeof(f==null?void 0:f.className)=="function"?(...b)=>tm(f==null?void 0:f.className(...b),s.className):tm(f==null?void 0:f.className,s.className),g=m?{className:m}:{};return C.cloneElement(c,Object.assign({},_B(c.props,Zy(B4(s,["ref"]))),p,u,$2e(c.ref,u.ref),g))}return C.createElement(i,Object.assign({},B4(s,["ref"]),i!==C.Fragment&&u,i!==C.Fragment&&p),c)}function $2e(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function _B(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...a)}}});return t}function ys(e){var t;return Object.assign(C.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Zy(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function B4(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function z2e(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&H2e(n)?!1:r}function H2e(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function TB(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))wB(n,SB(t,r),i);return n}function SB(e,t){return e?e+"["+t+"]":t}function wB(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())wB(e,SB(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):TB(n,t,e)}let j2e="div";var AB=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(AB||{});function G2e(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Rl({ourProps:i,theirProps:r,slot:{},defaultTag:j2e,name:"Hidden"})}let V2e=ys(G2e),AT=C.createContext(null);AT.displayName="OpenClosedContext";var Li=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Li||{});function CT(){return C.useContext(AT)}function CB({value:e,children:t}){return ut.createElement(AT.Provider,{value:e},t)}var ur=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ur||{});function W2e(e,t,n){let[r,i]=C.useState(n),a=e!==void 0,o=C.useRef(a),s=C.useRef(!1),u=C.useRef(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!u.current&&(u.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Zt(c=>(a||i(c),t==null?void 0:t(c)))]}function JR(e){return[e.screenX,e.screenY]}function q2e(){let e=C.useRef([-1,-1]);return{wasMoved(t){let n=JR(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=JR(t)}}}function kT(){let e=C.useRef(!1);return Gi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let eN=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tN(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return eN.test(o)&&(o=o.replace(eN,"")),o}function K2e(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():tN(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return tN(e).trim()}function Y2e(e){let t=C.useRef(""),n=C.useRef("");return Zt(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=K2e(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var X2e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(X2e||{}),Z2e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Z2e||{}),Q2e=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Q2e||{}),J2e=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(J2e||{});function U4(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=D2e(t(e.options.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let e5e={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=U4(e),i=U2e(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var s;return!o.dataRef.current.disabled&&((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=U4(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=U4(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},xT=C.createContext(null);xT.displayName="ListboxActionsContext";function gf(e){let t=C.useContext(xT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gf),n}return t}let IT=C.createContext(null);IT.displayName="ListboxDataContext";function mf(e){let t=C.useContext(IT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,mf),n}return t}function t5e(e,t){return Cr(t.type,e5e,e,t)}let n5e=C.Fragment;function r5e(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(ie,Se)=>ie===Se,disabled:u=!1,horizontal:c=!1,multiple:p=!1,...f}=e;const m=c?"horizontal":"vertical";let g=Pu(t),[b=p?[]:void 0,y]=W2e(n,o,r),[T,E]=C.useReducer(t5e,{dataRef:C.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=C.useRef({static:!1,hold:!1}),w=C.useRef(null),A=C.useRef(null),R=C.useRef(null),k=Zt(typeof s=="string"?(ie,Se)=>{let X=s;return(ie==null?void 0:ie[X])===(Se==null?void 0:Se[X])}:s),N=C.useCallback(ie=>Cr(B.mode,{1:()=>b.some(Se=>k(Se,ie)),0:()=>k(b,ie)}),[b]),B=C.useMemo(()=>({...T,value:b,disabled:u,mode:p?1:0,orientation:m,compare:k,isSelected:N,optionsPropsRef:v,labelRef:w,buttonRef:A,optionsRef:R}),[b,u,p,T]);Gi(()=>{T.dataRef.current=B},[B]),M2e([B.buttonRef,B.optionsRef],(ie,Se)=>{var X;E({type:1}),vB(Se,wT.Loose)||(ie.preventDefault(),(X=B.buttonRef.current)==null||X.focus())},B.listboxState===0);let q=C.useMemo(()=>({open:B.listboxState===0,disabled:u,value:b}),[B,u,b]),P=Zt(ie=>{let Se=B.options.find(X=>X.id===ie);Se&&H(Se.dataRef.current.value)}),Q=Zt(()=>{if(B.activeOptionIndex!==null){let{dataRef:ie,id:Se}=B.options[B.activeOptionIndex];H(ie.current.value),E({type:2,focus:yi.Specific,id:Se})}}),$=Zt(()=>E({type:0})),oe=Zt(()=>E({type:1})),fe=Zt((ie,Se,X)=>ie===yi.Specific?E({type:2,focus:yi.Specific,id:Se,trigger:X}):E({type:2,focus:ie,trigger:X})),ce=Zt((ie,Se)=>(E({type:5,id:ie,dataRef:Se}),()=>E({type:6,id:ie}))),De=Zt(ie=>(E({type:7,id:ie}),()=>E({type:7,id:null}))),H=Zt(ie=>Cr(B.mode,{0(){return y==null?void 0:y(ie)},1(){let Se=B.value.slice(),X=Se.findIndex(ke=>k(ke,ie));return X===-1?Se.push(ie):Se.splice(X,1),y==null?void 0:y(Se)}})),W=Zt(ie=>E({type:3,value:ie})),se=Zt(()=>E({type:4})),D=C.useMemo(()=>({onChange:H,registerOption:ce,registerLabel:De,goToOption:fe,closeListbox:oe,openListbox:$,selectActiveOption:Q,selectOption:P,search:W,clearSearch:se}),[]),pe={ref:g},le=C.useRef(null),L=pc();return C.useEffect(()=>{le.current&&r!==void 0&&L.addEventListener(le.current,"reset",()=>{y==null||y(r)})},[le,y]),ut.createElement(xT.Provider,{value:D},ut.createElement(IT.Provider,{value:B},ut.createElement(CB,{value:Cr(B.listboxState,{0:Li.Open,1:Li.Closed})},a!=null&&b!=null&&TB({[a]:b}).map(([ie,Se],X)=>ut.createElement(V2e,{features:AB.Hidden,ref:X===0?ke=>{var te;le.current=(te=ke==null?void 0:ke.closest("form"))!=null?te:null}:void 0,...Zy({key:ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:ie,value:Se})})),Rl({ourProps:pe,theirProps:f,slot:q,defaultTag:n5e,name:"Listbox"}))))}let i5e="button";function a5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-button-${r}`,...a}=e,o=mf("Listbox.Button"),s=gf("Listbox.Button"),u=Pu(o.buttonRef,t),c=pc(),p=Zt(T=>{switch(T.key){case ur.Space:case ur.Enter:case ur.ArrowDown:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.First)});break;case ur.ArrowUp:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.Last)});break}}),f=Zt(T=>{switch(T.key){case ur.Space:T.preventDefault();break}}),m=Zt(T=>{if(z2e(T.currentTarget))return T.preventDefault();o.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var E;return(E=o.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})})):(T.preventDefault(),s.openListbox())}),g=yB(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),b=C.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),y={ref:u,id:i,type:F2e(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":g,disabled:o.disabled,onKeyDown:p,onKeyUp:f,onClick:m};return Rl({ourProps:y,theirProps:a,slot:b,defaultTag:i5e,name:"Listbox.Button"})}let o5e="label";function s5e(e,t){let n=B2(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,a=mf("Listbox.Label"),o=gf("Listbox.Label"),s=Pu(a.labelRef,t);Gi(()=>o.registerLabel(r),[r]);let u=Zt(()=>{var p;return(p=a.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=C.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return Rl({ourProps:{ref:s,id:r,onClick:u},theirProps:i,slot:c,defaultTag:o5e,name:"Listbox.Label"})}let l5e="ul",u5e=nm.RenderStrategy|nm.Static;function c5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-options-${r}`,...a}=e,o=mf("Listbox.Options"),s=gf("Listbox.Options"),u=Pu(o.optionsRef,t),c=pc(),p=pc(),f=CT(),m=(()=>f!==null?(f&Li.Open)===Li.Open:o.listboxState===0)();C.useEffect(()=>{var E;let v=o.optionsRef.current;v&&o.listboxState===0&&v!==((E=EB(v))==null?void 0:E.activeElement)&&v.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let g=Zt(E=>{switch(p.dispose(),E.key){case ur.Space:if(o.searchQuery!=="")return E.preventDefault(),E.stopPropagation(),s.search(E.key);case ur.Enter:if(E.preventDefault(),E.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:v}=o.options[o.activeOptionIndex];s.onChange(v.current.value)}o.mode===0&&(s.closeListbox(),vl().nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})}));break;case Cr(o.orientation,{vertical:ur.ArrowDown,horizontal:ur.ArrowRight}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Next);case Cr(o.orientation,{vertical:ur.ArrowUp,horizontal:ur.ArrowLeft}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Previous);case ur.Home:case ur.PageUp:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.First);case ur.End:case ur.PageDown:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Last);case ur.Escape:return E.preventDefault(),E.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})});case ur.Tab:E.preventDefault(),E.stopPropagation();break;default:E.key.length===1&&(s.search(E.key),p.setTimeout(()=>s.clearSearch(),350));break}}),b=yB(()=>{var E,v,w;return(w=(E=o.labelRef.current)==null?void 0:E.id)!=null?w:(v=o.buttonRef.current)==null?void 0:v.id},[o.labelRef.current,o.buttonRef.current]),y=C.useMemo(()=>({open:o.listboxState===0}),[o]),T={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":b,"aria-orientation":o.orientation,id:i,onKeyDown:g,role:"listbox",tabIndex:0,ref:u};return Rl({ourProps:T,theirProps:a,slot:y,defaultTag:l5e,features:u5e,visible:m,name:"Listbox.Options"})}let d5e="li";function p5e(e,t){let n=B2(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...o}=e,s=mf("Listbox.Option"),u=gf("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===r:!1,p=s.isSelected(a),f=C.useRef(null),m=Y2e(f),g=wo({disabled:i,value:a,domRef:f,get textValue(){return m()}}),b=Pu(t,f);Gi(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let k=vl();return k.requestAnimationFrame(()=>{var N,B;(B=(N=f.current)==null?void 0:N.scrollIntoView)==null||B.call(N,{block:"nearest"})}),k.dispose},[f,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Gi(()=>u.registerOption(r,g),[g,r]);let y=Zt(k=>{if(i)return k.preventDefault();u.onChange(a),s.mode===0&&(u.closeListbox(),vl().nextFrame(()=>{var N;return(N=s.buttonRef.current)==null?void 0:N.focus({preventScroll:!0})}))}),T=Zt(()=>{if(i)return u.goToOption(yi.Nothing);u.goToOption(yi.Specific,r)}),E=q2e(),v=Zt(k=>E.update(k)),w=Zt(k=>{E.wasMoved(k)&&(i||c||u.goToOption(yi.Specific,r,0))}),A=Zt(k=>{E.wasMoved(k)&&(i||c&&u.goToOption(yi.Nothing))}),R=C.useMemo(()=>({active:c,selected:p,disabled:i}),[c,p,i]);return Rl({ourProps:{id:r,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:y,onFocus:T,onPointerEnter:v,onMouseEnter:v,onPointerMove:w,onMouseMove:w,onPointerLeave:A,onMouseLeave:A},theirProps:o,slot:R,defaultTag:d5e,name:"Listbox.Option"})}let f5e=ys(r5e),h5e=ys(a5e),g5e=ys(s5e),m5e=ys(c5e),b5e=ys(p5e),U2=Object.assign(f5e,{Button:h5e,Label:g5e,Options:m5e,Option:b5e});function y5e(e=0){let[t,n]=C.useState(e),r=kT(),i=C.useCallback(u=>{r.current&&n(c=>c|u)},[t,r]),a=C.useCallback(u=>!!(t&u),[t]),o=C.useCallback(u=>{r.current&&n(c=>c&~u)},[n,r]),s=C.useCallback(u=>{r.current&&n(c=>c^u)},[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:s}}function E5e(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function $4(e,...t){e&&t.length>0&&e.classList.add(...t)}function z4(e,...t){e&&t.length>0&&e.classList.remove(...t)}function v5e(e,t){let n=vl();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,f)=>f-p);return c}),s=a+o;if(s!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let u=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return n.add(()=>t()),n.dispose}function _5e(e,t,n,r){let i=n?"enter":"leave",a=vl(),o=r!==void 0?E5e(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Cr(i,{enter:()=>t.enter,leave:()=>t.leave}),u=Cr(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Cr(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return z4(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),$4(e,...t.base,...s,...c),a.nextFrame(()=>{z4(e,...t.base,...s,...c),$4(e,...t.base,...s,...u),v5e(e,()=>(z4(e,...t.base,...s),$4(e,...t.base,...t.entered),o()))}),a.dispose}function T5e({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=kT(),s=pc(),u=wo(n);Gi(()=>{e&&(u.current="enter")},[e]),Gi(()=>{let c=vl();s.add(c.dispose);let p=t.current;if(p&&u.current!=="idle"&&o.current)return c.dispose(),i.current(u.current),c.add(_5e(p,r.current,u.current==="enter",()=>{c.dispose(),a.current(u.current)})),c.dispose},[n])}function Bs(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let $2=C.createContext(null);$2.displayName="TransitionContext";var S5e=(e=>(e.Visible="visible",e.Hidden="hidden",e))(S5e||{});function w5e(){let e=C.useContext($2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function A5e(){let e=C.useContext(z2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let z2=C.createContext(null);z2.displayName="NestingContext";function H2(e){return"children"in e?H2(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function kB(e,t){let n=wo(e),r=C.useRef([]),i=kT(),a=pc(),o=Zt((g,b=Qs.Hidden)=>{let y=r.current.findIndex(({el:T})=>T===g);y!==-1&&(Cr(b,{[Qs.Unmount](){r.current.splice(y,1)},[Qs.Hidden](){r.current[y].state="hidden"}}),a.microTask(()=>{var T;!H2(r)&&i.current&&((T=n.current)==null||T.call(n))}))}),s=Zt(g=>{let b=r.current.find(({el:y})=>y===g);return b?b.state!=="visible"&&(b.state="visible"):r.current.push({el:g,state:"visible"}),()=>o(g,Qs.Unmount)}),u=C.useRef([]),c=C.useRef(Promise.resolve()),p=C.useRef({enter:[],leave:[],idle:[]}),f=Zt((g,b,y)=>{u.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([T])=>T!==g)),t==null||t.chains.current[b].push([g,new Promise(T=>{u.current.push(T)})]),t==null||t.chains.current[b].push([g,new Promise(T=>{Promise.all(p.current[b].map(([E,v])=>v)).then(()=>T())})]),b==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(b)):y(b)}),m=Zt((g,b,y)=>{Promise.all(p.current[b].splice(0).map(([T,E])=>E)).then(()=>{var T;(T=u.current.shift())==null||T()}).then(()=>y(b))});return C.useMemo(()=>({children:r,register:s,unregister:o,onStart:f,onStop:m,wait:c,chains:p}),[s,o,r,f,m,p,c])}function C5e(){}let k5e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nN(e){var t;let n={};for(let r of k5e)n[r]=(t=e[r])!=null?t:C5e;return n}function x5e(e){let t=C.useRef(nN(e));return C.useEffect(()=>{t.current=nN(e)},[e]),t}let I5e="div",xB=nm.RenderStrategy;function R5e(e,t){var n,r;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s,enter:u,enterFrom:c,enterTo:p,entered:f,leave:m,leaveFrom:g,leaveTo:b,...y}=e,T=C.useRef(null),E=Pu(T,t),v=(n=y.unmount)==null||n?Qs.Unmount:Qs.Hidden,{show:w,appear:A,initial:R}=w5e(),[k,N]=C.useState(w?"visible":"hidden"),B=A5e(),{register:q,unregister:P}=B;C.useEffect(()=>q(T),[q,T]),C.useEffect(()=>{if(v===Qs.Hidden&&T.current){if(w&&k!=="visible"){N("visible");return}return Cr(k,{hidden:()=>P(T),visible:()=>q(T)})}},[k,T,q,P,w,v]);let Q=wo({base:Bs(y.className),enter:Bs(u),enterFrom:Bs(c),enterTo:Bs(p),entered:Bs(f),leave:Bs(m),leaveFrom:Bs(g),leaveTo:Bs(b)}),$=x5e({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s}),oe=ST();C.useEffect(()=>{if(oe&&k==="visible"&&T.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[T,k,oe]);let fe=R&&!A,ce=A&&w&&R,De=(()=>!oe||fe?"idle":w?"enter":"leave")(),H=y5e(0),W=Zt(L=>Cr(L,{enter:()=>{H.addFlag(Li.Opening),$.current.beforeEnter()},leave:()=>{H.addFlag(Li.Closing),$.current.beforeLeave()},idle:()=>{}})),se=Zt(L=>Cr(L,{enter:()=>{H.removeFlag(Li.Opening),$.current.afterEnter()},leave:()=>{H.removeFlag(Li.Closing),$.current.afterLeave()},idle:()=>{}})),D=kB(()=>{N("hidden"),P(T)},B);T5e({immediate:ce,container:T,classes:Q,direction:De,onStart:wo(L=>{D.onStart(T,L,W)}),onStop:wo(L=>{D.onStop(T,L,se),L==="leave"&&!H2(D)&&(N("hidden"),P(T))})});let pe=y,le={ref:E};return ce?pe={...pe,className:tm(y.className,...Q.current.enter,...Q.current.enterFrom)}:(pe.className=tm(y.className,(r=T.current)==null?void 0:r.className),pe.className===""&&delete pe.className),ut.createElement(z2.Provider,{value:D},ut.createElement(CB,{value:Cr(k,{visible:Li.Open,hidden:Li.Closed})|H.flags},Rl({ourProps:le,theirProps:pe,defaultTag:I5e,features:xB,visible:k==="visible",name:"Transition.Child"})))}function N5e(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=C.useRef(null),s=Pu(o,t);ST();let u=CT();if(n===void 0&&u!==null&&(n=(u&Li.Open)===Li.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,p]=C.useState(n?"visible":"hidden"),f=kB(()=>{p("hidden")}),[m,g]=C.useState(!0),b=C.useRef([n]);Gi(()=>{m!==!1&&b.current[b.current.length-1]!==n&&(b.current.push(n),g(!1))},[b,n]);let y=C.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);C.useEffect(()=>{if(n)p("visible");else if(!H2(f))p("hidden");else{let w=o.current;if(!w)return;let A=w.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&p("hidden")}},[n,f]);let T={unmount:i},E=Zt(()=>{var w;m&&g(!1),(w=e.beforeEnter)==null||w.call(e)}),v=Zt(()=>{var w;m&&g(!1),(w=e.beforeLeave)==null||w.call(e)});return ut.createElement(z2.Provider,{value:f},ut.createElement($2.Provider,{value:y},Rl({ourProps:{...T,as:C.Fragment,children:ut.createElement(IB,{ref:s,...T,...a,beforeEnter:E,beforeLeave:v})},theirProps:{},defaultTag:C.Fragment,features:xB,visible:c==="visible",name:"Transition"})))}function O5e(e,t){let n=C.useContext($2)!==null,r=CT()!==null;return ut.createElement(ut.Fragment,null,!n&&r?ut.createElement(Qy,{ref:t,...e}):ut.createElement(IB,{ref:t,...e}))}let Qy=ys(N5e),IB=ys(R5e),D5e=ys(O5e),L5e=Object.assign(Qy,{Child:D5e,Root:Qy});const M5e=Ge.div` +`));let f=c.props,m=typeof(f==null?void 0:f.className)=="function"?(...b)=>tm(f==null?void 0:f.className(...b),s.className):tm(f==null?void 0:f.className,s.className),g=m?{className:m}:{};return C.cloneElement(c,Object.assign({},_B(c.props,Zy(B4(s,["ref"]))),p,u,$2e(c.ref,u.ref),g))}return C.createElement(i,Object.assign({},B4(s,["ref"]),i!==C.Fragment&&u,i!==C.Fragment&&p),c)}function $2e(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function _B(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...a)}}});return t}function ys(e){var t;return Object.assign(C.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Zy(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function B4(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function z2e(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&H2e(n)?!1:r}function H2e(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function TB(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))wB(n,SB(t,r),i);return n}function SB(e,t){return e?e+"["+t+"]":t}function wB(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())wB(e,SB(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):TB(n,t,e)}let j2e="div";var AB=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(AB||{});function G2e(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Rl({ourProps:i,theirProps:r,slot:{},defaultTag:j2e,name:"Hidden"})}let V2e=ys(G2e),AT=C.createContext(null);AT.displayName="OpenClosedContext";var Li=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Li||{});function CT(){return C.useContext(AT)}function CB({value:e,children:t}){return st.createElement(AT.Provider,{value:e},t)}var ur=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ur||{});function W2e(e,t,n){let[r,i]=C.useState(n),a=e!==void 0,o=C.useRef(a),s=C.useRef(!1),u=C.useRef(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!u.current&&(u.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Zt(c=>(a||i(c),t==null?void 0:t(c)))]}function JR(e){return[e.screenX,e.screenY]}function q2e(){let e=C.useRef([-1,-1]);return{wasMoved(t){let n=JR(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=JR(t)}}}function kT(){let e=C.useRef(!1);return Gi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let eN=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tN(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return eN.test(o)&&(o=o.replace(eN,"")),o}function K2e(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():tN(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return tN(e).trim()}function Y2e(e){let t=C.useRef(""),n=C.useRef("");return Zt(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=K2e(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var X2e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(X2e||{}),Z2e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Z2e||{}),Q2e=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Q2e||{}),J2e=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(J2e||{});function U4(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=D2e(t(e.options.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let e5e={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=U4(e),i=U2e(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var s;return!o.dataRef.current.disabled&&((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=U4(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=U4(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},xT=C.createContext(null);xT.displayName="ListboxActionsContext";function gf(e){let t=C.useContext(xT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gf),n}return t}let IT=C.createContext(null);IT.displayName="ListboxDataContext";function mf(e){let t=C.useContext(IT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,mf),n}return t}function t5e(e,t){return Cr(t.type,e5e,e,t)}let n5e=C.Fragment;function r5e(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(ie,Se)=>ie===Se,disabled:u=!1,horizontal:c=!1,multiple:p=!1,...f}=e;const m=c?"horizontal":"vertical";let g=Pu(t),[b=p?[]:void 0,y]=W2e(n,o,r),[T,E]=C.useReducer(t5e,{dataRef:C.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=C.useRef({static:!1,hold:!1}),w=C.useRef(null),A=C.useRef(null),R=C.useRef(null),k=Zt(typeof s=="string"?(ie,Se)=>{let X=s;return(ie==null?void 0:ie[X])===(Se==null?void 0:Se[X])}:s),N=C.useCallback(ie=>Cr(B.mode,{1:()=>b.some(Se=>k(Se,ie)),0:()=>k(b,ie)}),[b]),B=C.useMemo(()=>({...T,value:b,disabled:u,mode:p?1:0,orientation:m,compare:k,isSelected:N,optionsPropsRef:v,labelRef:w,buttonRef:A,optionsRef:R}),[b,u,p,T]);Gi(()=>{T.dataRef.current=B},[B]),M2e([B.buttonRef,B.optionsRef],(ie,Se)=>{var X;E({type:1}),vB(Se,wT.Loose)||(ie.preventDefault(),(X=B.buttonRef.current)==null||X.focus())},B.listboxState===0);let q=C.useMemo(()=>({open:B.listboxState===0,disabled:u,value:b}),[B,u,b]),P=Zt(ie=>{let Se=B.options.find(X=>X.id===ie);Se&&H(Se.dataRef.current.value)}),Q=Zt(()=>{if(B.activeOptionIndex!==null){let{dataRef:ie,id:Se}=B.options[B.activeOptionIndex];H(ie.current.value),E({type:2,focus:yi.Specific,id:Se})}}),$=Zt(()=>E({type:0})),oe=Zt(()=>E({type:1})),fe=Zt((ie,Se,X)=>ie===yi.Specific?E({type:2,focus:yi.Specific,id:Se,trigger:X}):E({type:2,focus:ie,trigger:X})),ce=Zt((ie,Se)=>(E({type:5,id:ie,dataRef:Se}),()=>E({type:6,id:ie}))),De=Zt(ie=>(E({type:7,id:ie}),()=>E({type:7,id:null}))),H=Zt(ie=>Cr(B.mode,{0(){return y==null?void 0:y(ie)},1(){let Se=B.value.slice(),X=Se.findIndex(ke=>k(ke,ie));return X===-1?Se.push(ie):Se.splice(X,1),y==null?void 0:y(Se)}})),W=Zt(ie=>E({type:3,value:ie})),se=Zt(()=>E({type:4})),D=C.useMemo(()=>({onChange:H,registerOption:ce,registerLabel:De,goToOption:fe,closeListbox:oe,openListbox:$,selectActiveOption:Q,selectOption:P,search:W,clearSearch:se}),[]),pe={ref:g},le=C.useRef(null),L=pc();return C.useEffect(()=>{le.current&&r!==void 0&&L.addEventListener(le.current,"reset",()=>{y==null||y(r)})},[le,y]),st.createElement(xT.Provider,{value:D},st.createElement(IT.Provider,{value:B},st.createElement(CB,{value:Cr(B.listboxState,{0:Li.Open,1:Li.Closed})},a!=null&&b!=null&&TB({[a]:b}).map(([ie,Se],X)=>st.createElement(V2e,{features:AB.Hidden,ref:X===0?ke=>{var te;le.current=(te=ke==null?void 0:ke.closest("form"))!=null?te:null}:void 0,...Zy({key:ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:ie,value:Se})})),Rl({ourProps:pe,theirProps:f,slot:q,defaultTag:n5e,name:"Listbox"}))))}let i5e="button";function a5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-button-${r}`,...a}=e,o=mf("Listbox.Button"),s=gf("Listbox.Button"),u=Pu(o.buttonRef,t),c=pc(),p=Zt(T=>{switch(T.key){case ur.Space:case ur.Enter:case ur.ArrowDown:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.First)});break;case ur.ArrowUp:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.Last)});break}}),f=Zt(T=>{switch(T.key){case ur.Space:T.preventDefault();break}}),m=Zt(T=>{if(z2e(T.currentTarget))return T.preventDefault();o.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var E;return(E=o.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})})):(T.preventDefault(),s.openListbox())}),g=yB(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),b=C.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),y={ref:u,id:i,type:F2e(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":g,disabled:o.disabled,onKeyDown:p,onKeyUp:f,onClick:m};return Rl({ourProps:y,theirProps:a,slot:b,defaultTag:i5e,name:"Listbox.Button"})}let o5e="label";function s5e(e,t){let n=B2(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,a=mf("Listbox.Label"),o=gf("Listbox.Label"),s=Pu(a.labelRef,t);Gi(()=>o.registerLabel(r),[r]);let u=Zt(()=>{var p;return(p=a.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=C.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return Rl({ourProps:{ref:s,id:r,onClick:u},theirProps:i,slot:c,defaultTag:o5e,name:"Listbox.Label"})}let l5e="ul",u5e=nm.RenderStrategy|nm.Static;function c5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-options-${r}`,...a}=e,o=mf("Listbox.Options"),s=gf("Listbox.Options"),u=Pu(o.optionsRef,t),c=pc(),p=pc(),f=CT(),m=(()=>f!==null?(f&Li.Open)===Li.Open:o.listboxState===0)();C.useEffect(()=>{var E;let v=o.optionsRef.current;v&&o.listboxState===0&&v!==((E=EB(v))==null?void 0:E.activeElement)&&v.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let g=Zt(E=>{switch(p.dispose(),E.key){case ur.Space:if(o.searchQuery!=="")return E.preventDefault(),E.stopPropagation(),s.search(E.key);case ur.Enter:if(E.preventDefault(),E.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:v}=o.options[o.activeOptionIndex];s.onChange(v.current.value)}o.mode===0&&(s.closeListbox(),vl().nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})}));break;case Cr(o.orientation,{vertical:ur.ArrowDown,horizontal:ur.ArrowRight}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Next);case Cr(o.orientation,{vertical:ur.ArrowUp,horizontal:ur.ArrowLeft}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Previous);case ur.Home:case ur.PageUp:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.First);case ur.End:case ur.PageDown:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Last);case ur.Escape:return E.preventDefault(),E.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})});case ur.Tab:E.preventDefault(),E.stopPropagation();break;default:E.key.length===1&&(s.search(E.key),p.setTimeout(()=>s.clearSearch(),350));break}}),b=yB(()=>{var E,v,w;return(w=(E=o.labelRef.current)==null?void 0:E.id)!=null?w:(v=o.buttonRef.current)==null?void 0:v.id},[o.labelRef.current,o.buttonRef.current]),y=C.useMemo(()=>({open:o.listboxState===0}),[o]),T={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":b,"aria-orientation":o.orientation,id:i,onKeyDown:g,role:"listbox",tabIndex:0,ref:u};return Rl({ourProps:T,theirProps:a,slot:y,defaultTag:l5e,features:u5e,visible:m,name:"Listbox.Options"})}let d5e="li";function p5e(e,t){let n=B2(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...o}=e,s=mf("Listbox.Option"),u=gf("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===r:!1,p=s.isSelected(a),f=C.useRef(null),m=Y2e(f),g=wo({disabled:i,value:a,domRef:f,get textValue(){return m()}}),b=Pu(t,f);Gi(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let k=vl();return k.requestAnimationFrame(()=>{var N,B;(B=(N=f.current)==null?void 0:N.scrollIntoView)==null||B.call(N,{block:"nearest"})}),k.dispose},[f,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Gi(()=>u.registerOption(r,g),[g,r]);let y=Zt(k=>{if(i)return k.preventDefault();u.onChange(a),s.mode===0&&(u.closeListbox(),vl().nextFrame(()=>{var N;return(N=s.buttonRef.current)==null?void 0:N.focus({preventScroll:!0})}))}),T=Zt(()=>{if(i)return u.goToOption(yi.Nothing);u.goToOption(yi.Specific,r)}),E=q2e(),v=Zt(k=>E.update(k)),w=Zt(k=>{E.wasMoved(k)&&(i||c||u.goToOption(yi.Specific,r,0))}),A=Zt(k=>{E.wasMoved(k)&&(i||c&&u.goToOption(yi.Nothing))}),R=C.useMemo(()=>({active:c,selected:p,disabled:i}),[c,p,i]);return Rl({ourProps:{id:r,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:y,onFocus:T,onPointerEnter:v,onMouseEnter:v,onPointerMove:w,onMouseMove:w,onPointerLeave:A,onMouseLeave:A},theirProps:o,slot:R,defaultTag:d5e,name:"Listbox.Option"})}let f5e=ys(r5e),h5e=ys(a5e),g5e=ys(s5e),m5e=ys(c5e),b5e=ys(p5e),U2=Object.assign(f5e,{Button:h5e,Label:g5e,Options:m5e,Option:b5e});function y5e(e=0){let[t,n]=C.useState(e),r=kT(),i=C.useCallback(u=>{r.current&&n(c=>c|u)},[t,r]),a=C.useCallback(u=>!!(t&u),[t]),o=C.useCallback(u=>{r.current&&n(c=>c&~u)},[n,r]),s=C.useCallback(u=>{r.current&&n(c=>c^u)},[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:s}}function E5e(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function $4(e,...t){e&&t.length>0&&e.classList.add(...t)}function z4(e,...t){e&&t.length>0&&e.classList.remove(...t)}function v5e(e,t){let n=vl();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,f)=>f-p);return c}),s=a+o;if(s!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let u=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return n.add(()=>t()),n.dispose}function _5e(e,t,n,r){let i=n?"enter":"leave",a=vl(),o=r!==void 0?E5e(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Cr(i,{enter:()=>t.enter,leave:()=>t.leave}),u=Cr(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Cr(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return z4(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),$4(e,...t.base,...s,...c),a.nextFrame(()=>{z4(e,...t.base,...s,...c),$4(e,...t.base,...s,...u),v5e(e,()=>(z4(e,...t.base,...s),$4(e,...t.base,...t.entered),o()))}),a.dispose}function T5e({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=kT(),s=pc(),u=wo(n);Gi(()=>{e&&(u.current="enter")},[e]),Gi(()=>{let c=vl();s.add(c.dispose);let p=t.current;if(p&&u.current!=="idle"&&o.current)return c.dispose(),i.current(u.current),c.add(_5e(p,r.current,u.current==="enter",()=>{c.dispose(),a.current(u.current)})),c.dispose},[n])}function Bs(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let $2=C.createContext(null);$2.displayName="TransitionContext";var S5e=(e=>(e.Visible="visible",e.Hidden="hidden",e))(S5e||{});function w5e(){let e=C.useContext($2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function A5e(){let e=C.useContext(z2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let z2=C.createContext(null);z2.displayName="NestingContext";function H2(e){return"children"in e?H2(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function kB(e,t){let n=wo(e),r=C.useRef([]),i=kT(),a=pc(),o=Zt((g,b=Qs.Hidden)=>{let y=r.current.findIndex(({el:T})=>T===g);y!==-1&&(Cr(b,{[Qs.Unmount](){r.current.splice(y,1)},[Qs.Hidden](){r.current[y].state="hidden"}}),a.microTask(()=>{var T;!H2(r)&&i.current&&((T=n.current)==null||T.call(n))}))}),s=Zt(g=>{let b=r.current.find(({el:y})=>y===g);return b?b.state!=="visible"&&(b.state="visible"):r.current.push({el:g,state:"visible"}),()=>o(g,Qs.Unmount)}),u=C.useRef([]),c=C.useRef(Promise.resolve()),p=C.useRef({enter:[],leave:[],idle:[]}),f=Zt((g,b,y)=>{u.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([T])=>T!==g)),t==null||t.chains.current[b].push([g,new Promise(T=>{u.current.push(T)})]),t==null||t.chains.current[b].push([g,new Promise(T=>{Promise.all(p.current[b].map(([E,v])=>v)).then(()=>T())})]),b==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(b)):y(b)}),m=Zt((g,b,y)=>{Promise.all(p.current[b].splice(0).map(([T,E])=>E)).then(()=>{var T;(T=u.current.shift())==null||T()}).then(()=>y(b))});return C.useMemo(()=>({children:r,register:s,unregister:o,onStart:f,onStop:m,wait:c,chains:p}),[s,o,r,f,m,p,c])}function C5e(){}let k5e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nN(e){var t;let n={};for(let r of k5e)n[r]=(t=e[r])!=null?t:C5e;return n}function x5e(e){let t=C.useRef(nN(e));return C.useEffect(()=>{t.current=nN(e)},[e]),t}let I5e="div",xB=nm.RenderStrategy;function R5e(e,t){var n,r;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s,enter:u,enterFrom:c,enterTo:p,entered:f,leave:m,leaveFrom:g,leaveTo:b,...y}=e,T=C.useRef(null),E=Pu(T,t),v=(n=y.unmount)==null||n?Qs.Unmount:Qs.Hidden,{show:w,appear:A,initial:R}=w5e(),[k,N]=C.useState(w?"visible":"hidden"),B=A5e(),{register:q,unregister:P}=B;C.useEffect(()=>q(T),[q,T]),C.useEffect(()=>{if(v===Qs.Hidden&&T.current){if(w&&k!=="visible"){N("visible");return}return Cr(k,{hidden:()=>P(T),visible:()=>q(T)})}},[k,T,q,P,w,v]);let Q=wo({base:Bs(y.className),enter:Bs(u),enterFrom:Bs(c),enterTo:Bs(p),entered:Bs(f),leave:Bs(m),leaveFrom:Bs(g),leaveTo:Bs(b)}),$=x5e({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s}),oe=ST();C.useEffect(()=>{if(oe&&k==="visible"&&T.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[T,k,oe]);let fe=R&&!A,ce=A&&w&&R,De=(()=>!oe||fe?"idle":w?"enter":"leave")(),H=y5e(0),W=Zt(L=>Cr(L,{enter:()=>{H.addFlag(Li.Opening),$.current.beforeEnter()},leave:()=>{H.addFlag(Li.Closing),$.current.beforeLeave()},idle:()=>{}})),se=Zt(L=>Cr(L,{enter:()=>{H.removeFlag(Li.Opening),$.current.afterEnter()},leave:()=>{H.removeFlag(Li.Closing),$.current.afterLeave()},idle:()=>{}})),D=kB(()=>{N("hidden"),P(T)},B);T5e({immediate:ce,container:T,classes:Q,direction:De,onStart:wo(L=>{D.onStart(T,L,W)}),onStop:wo(L=>{D.onStop(T,L,se),L==="leave"&&!H2(D)&&(N("hidden"),P(T))})});let pe=y,le={ref:E};return ce?pe={...pe,className:tm(y.className,...Q.current.enter,...Q.current.enterFrom)}:(pe.className=tm(y.className,(r=T.current)==null?void 0:r.className),pe.className===""&&delete pe.className),st.createElement(z2.Provider,{value:D},st.createElement(CB,{value:Cr(k,{visible:Li.Open,hidden:Li.Closed})|H.flags},Rl({ourProps:le,theirProps:pe,defaultTag:I5e,features:xB,visible:k==="visible",name:"Transition.Child"})))}function N5e(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=C.useRef(null),s=Pu(o,t);ST();let u=CT();if(n===void 0&&u!==null&&(n=(u&Li.Open)===Li.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,p]=C.useState(n?"visible":"hidden"),f=kB(()=>{p("hidden")}),[m,g]=C.useState(!0),b=C.useRef([n]);Gi(()=>{m!==!1&&b.current[b.current.length-1]!==n&&(b.current.push(n),g(!1))},[b,n]);let y=C.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);C.useEffect(()=>{if(n)p("visible");else if(!H2(f))p("hidden");else{let w=o.current;if(!w)return;let A=w.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&p("hidden")}},[n,f]);let T={unmount:i},E=Zt(()=>{var w;m&&g(!1),(w=e.beforeEnter)==null||w.call(e)}),v=Zt(()=>{var w;m&&g(!1),(w=e.beforeLeave)==null||w.call(e)});return st.createElement(z2.Provider,{value:f},st.createElement($2.Provider,{value:y},Rl({ourProps:{...T,as:C.Fragment,children:st.createElement(IB,{ref:s,...T,...a,beforeEnter:E,beforeLeave:v})},theirProps:{},defaultTag:C.Fragment,features:xB,visible:c==="visible",name:"Transition"})))}function O5e(e,t){let n=C.useContext($2)!==null,r=CT()!==null;return st.createElement(st.Fragment,null,!n&&r?st.createElement(Qy,{ref:t,...e}):st.createElement(IB,{ref:t,...e}))}let Qy=ys(N5e),IB=ys(R5e),D5e=ys(O5e),L5e=Object.assign(Qy,{Child:D5e,Root:Qy});const M5e=Ge.div` display: grid; grid-template-columns: 1fr auto; align-items: center; @@ -971,7 +971,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &:hover { background-color: ${ha}44; } -`;function H4(e){return e!=null&&e.title?e==null?void 0:e.title:(e==null?void 0:e.model)!==void 0&&(e==null?void 0:e.model.trim())!==""?e!=null&&e.class_name?`${e==null?void 0:e.class_name} - ${e==null?void 0:e.model}`:e==null?void 0:e.model:e==null?void 0:e.class_name}function z5e(e){const t=C.useContext(to),n=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.default}),r=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.saved}),i=bs(),a={value:JSON.stringify({t:"default",idx:-1}),title:"GPT-4"},[o,s]=C.useState([a]);C.useEffect(()=>{if(!n&&!r){s([a]);return}const c=[];n&&c.push({value:JSON.stringify({t:"default",idx:-1}),title:H4(n)}),r==null||r.forEach((p,f)=>{c.push({value:JSON.stringify({t:"saved",idx:f}),title:H4(p)})}),s(c)},[n,r]);const u=document.getElementById("model-select-top-div");return I.jsx(I.Fragment,{children:I.jsxs(M5e,{children:[I.jsx(P5e,{value:JSON.stringify({t:"default",idx:-1}),onChange:c=>{const p=JSON.parse(c);p.t==="saved"&&(t==null||t.setModelForRoleFromIndex("*",p.idx))},defaultValue:"0",children:I.jsxs("div",{className:"relative",children:[I.jsxs(B5e,{children:[I.jsx("div",{children:H4(n)||"GPT-4"}),I.jsx("div",{className:"pointer-events-none flex items-center",children:I.jsx(_Z,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),u&&u9.createPortal(I.jsx(L5e,{as:C.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:I.jsx(U5e,{children:o.map((c,p)=>I.jsx($5e,{selected:c.value===JSON.stringify({t:"default",idx:-1}),value:c.value,children:I.jsx("span",{children:c.title})},p))})}),u)]})}),I.jsx(F5e,{width:"1.3em",height:"1.3em",onClick:()=>{i("/models")}})]})})}const H5e=Ge.div` +`;function H4(e){return e!=null&&e.title?e==null?void 0:e.title:(e==null?void 0:e.model)!==void 0&&(e==null?void 0:e.model.trim())!==""?e!=null&&e.class_name?`${e==null?void 0:e.class_name} - ${e==null?void 0:e.model}`:e==null?void 0:e.model:e==null?void 0:e.class_name}function z5e(e){const t=C.useContext(to),n=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.default}),r=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.saved}),i=No(),a={value:JSON.stringify({t:"default",idx:-1}),title:"GPT-4"},[o,s]=C.useState([a]);C.useEffect(()=>{if(!n&&!r){s([a]);return}const c=[];n&&c.push({value:JSON.stringify({t:"default",idx:-1}),title:H4(n)}),r==null||r.forEach((p,f)=>{c.push({value:JSON.stringify({t:"saved",idx:f}),title:H4(p)})}),s(c)},[n,r]);const u=document.getElementById("model-select-top-div");return I.jsx(I.Fragment,{children:I.jsxs(M5e,{children:[I.jsx(P5e,{value:JSON.stringify({t:"default",idx:-1}),onChange:c=>{const p=JSON.parse(c);p.t==="saved"&&(t==null||t.setModelForRoleFromIndex("*",p.idx))},defaultValue:"0",children:I.jsxs("div",{className:"relative",children:[I.jsxs(B5e,{children:[I.jsx("div",{children:H4(n)||"GPT-4"}),I.jsx("div",{className:"pointer-events-none flex items-center",children:I.jsx(_Z,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),u&&u9.createPortal(I.jsx(L5e,{as:C.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:I.jsx(U5e,{children:o.map((c,p)=>I.jsx($5e,{selected:c.value===JSON.stringify({t:"default",idx:-1}),value:c.value,children:I.jsx("span",{children:c.title})},p))})}),u)]})}),I.jsx(F5e,{width:"1.3em",height:"1.3em",onClick:()=>{i("/models")}})]})})}const H5e=Ge.div` width: 100px; height: 6px; border-radius: 6px; @@ -1053,7 +1053,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin-left: 8px; z-index: 200; font-size: ${pr()}; -`,J5e=()=>{const e=bs(),t=TT(),n=C.useContext(to),r=eo(),i=zt(p=>p.uiState.dialogMessage),a=zt(p=>p.uiState.showDialog),o=zt(p=>{var f;return(f=p.serverState.config.models)==null?void 0:f.default}),s=zt(p=>p.uiState.bottomMessage),u=zt(p=>p.uiState.displayBottomMessageOnBottom),c=zt(p=>p.sessionState.history);return C.useEffect(()=>{const p=f=>{var m;if(f.metaKey&&f.altKey&&f.code==="KeyN"&&(n==null||n.stopSession(),r(uc())),(f.metaKey||f.ctrlKey)&&f.code==="KeyC"){const g=(m=window.getSelection())==null?void 0:m.toString();g&&setTimeout(()=>{navigator.clipboard.writeText(g)},100)}};return window.addEventListener("keydown",p),()=>{window.removeEventListener("keydown",p)}},[n,c]),C.useEffect(()=>{const p=f=>{f.data.type==="addModel"?e("/models"):f.data.type==="openSettings"&&e("/settings")};return window.addEventListener("message",p),()=>{window.removeEventListener("message",p)}},[]),I.jsxs(K5e,{children:[I.jsxs("div",{style:{scrollbarGutter:"stable both-edges",minHeight:"100%",display:"grid",gridTemplateRows:"1fr auto"},children:[I.jsx(S2e,{showDialog:a,onEnter:()=>{r(cc(!1))},onClose:()=>{r(cc(!1))},message:i}),I.jsxs(Z5e,{children:[I.jsx(Qme,{}),I.jsx(Q5e,{id:"model-select-top-div"}),I.jsxs(X5e,{children:[I.jsxs("div",{className:"mr-auto flex gap-2 items-center",children:[localStorage.getItem("ide")==="jetbrains"||localStorage.getItem("hideFeature")==="true"||I.jsx(ZZ,{className:"cursor-pointer",onClick:()=>{localStorage.setItem("hideFeature","true")},onMouseEnter:()=>{r(pu("🎁 New Feature: Use ⌘⇧R automatically debug errors in the terminal (you can click the sparkle icon to make it go away)"))},onMouseLeave:()=>{r(XI(setTimeout(()=>{r(pu(void 0))},2e3)))},width:"1.3em",height:"1.3em",color:"yellow"}),I.jsx(z5e,{}),(o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(t.pathname==="/settings"||parseInt(localStorage.getItem("ftc")||"0")>=125)&&I.jsx(W5e,{completed:parseInt(localStorage.getItem("ftc")||"0"),total:250})]}),I.jsx(zi,{text:"Help",onClick:()=>{e("/help")},children:I.jsx(KZ,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{e("/settings")},text:"Settings",children:I.jsx(kZ,{width:"1.4em",height:"1.4em"})})]})]}),I.jsx(Y5e,{displayOnBottom:u,onMouseEnter:()=>{r(XI(void 0))},onMouseLeave:p=>{p.buttons||r(pu(void 0))},hidden:!s,children:s})]}),I.jsx("div",{className:"text-sm",id:"tooltip-portal-div"})]})};class e3e{}const ko=Object.create(null);ko.open="0";ko.close="1";ko.ping="2";ko.pong="3";ko.message="4";ko.upgrade="5";ko.noop="6";const jh=Object.create(null);Object.keys(ko).forEach(e=>{jh[ko[e]]=e});const Jy={type:"error",data:"parser error"},RB=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",NB=typeof ArrayBuffer=="function",OB=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,RT=({type:e,data:t},n,r)=>RB&&t instanceof Blob?n?r(t):rN(t,r):NB&&(t instanceof ArrayBuffer||OB(t))?n?r(t):rN(new Blob([t]),r):r(ko[e]+(t||"")),rN=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function iN(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let j4;function t3e(e,t){if(RB&&e.data instanceof Blob)return e.data.arrayBuffer().then(iN).then(t);if(NB&&(e.data instanceof ArrayBuffer||OB(e.data)))return t(iN(e.data));RT(e,!1,n=>{j4||(j4=new TextEncoder),t(j4.encode(n))})}const aN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kd=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,i=0,a,o,s,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),p=new Uint8Array(c);for(r=0;r>4,p[i++]=(o&15)<<4|s>>2,p[i++]=(s&3)<<6|u&63;return c},r3e=typeof ArrayBuffer=="function",NT=(e,t)=>{if(typeof e!="string")return{type:"message",data:DB(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:i3e(e.substring(1),t)}:jh[n]?e.length>1?{type:jh[n],data:e.substring(1)}:{type:jh[n]}:Jy},i3e=(e,t)=>{if(r3e){const n=n3e(e);return DB(n,t)}else return{base64:!0,data:e}},DB=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},LB=String.fromCharCode(30),a3e=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((a,o)=>{RT(a,!1,s=>{r[o]=s,++i===n&&t(r.join(LB))})})},o3e=(e,t)=>{const n=e.split(LB),r=[];for(let i=0;i{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const a=new DataView(i.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{i=new Uint8Array(9);const a=new DataView(i.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let G4;function ch(e){return e.reduce((t,n)=>t+n.length,0)}function dh(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;iMath.pow(2,53-32)-1){s.enqueue(Jy);break}i=p*Math.pow(2,32)+c.getUint32(4),r=3}else{if(ch(n)e){s.enqueue(Jy);break}}}})}const MB=4;function Xn(e){if(e)return u3e(e)}function u3e(e){for(var t in Xn.prototype)e[t]=Xn.prototype[t];return e}Xn.prototype.on=Xn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Xn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Xn.prototype.off=Xn.prototype.removeListener=Xn.prototype.removeAllListeners=Xn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function FB(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const c3e=da.setTimeout,d3e=da.clearTimeout;function j2(e,t){t.useNativeTimers?(e.setTimeoutFn=c3e.bind(da),e.clearTimeoutFn=d3e.bind(da)):(e.setTimeoutFn=da.setTimeout.bind(da),e.clearTimeoutFn=da.clearTimeout.bind(da))}const p3e=1.33;function f3e(e){return typeof e=="string"?h3e(e):Math.ceil((e.byteLength||e.size)*p3e)}function h3e(e){let t=0,n=0;for(let r=0,i=e.length;r=57344?n+=3:(r++,n+=4);return n}function g3e(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function m3e(e){let t={},n=e.split("&");for(let r=0,i=n.length;r0);return t}function BB(){const e=lN(+new Date);return e!==sN?(oN=0,sN=e):e+"."+lN(oN++)}for(;ph{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};o3e(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,a3e(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=BB()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Y1(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,a)=>{this.onError("xhr post error",i,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Y1=class Gh extends Xn{constructor(t,n){super(),j2(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=FB(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new $B(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Gh.requestsCount++,Gh.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=v3e,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Gh.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Y1.requestsCount=0;Y1.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",uN);else if(typeof addEventListener=="function"){const e="onpagehide"in da?"pagehide":"unload";addEventListener(e,uN,!1)}}function uN(){for(let e in Y1.requests)Y1.requests.hasOwnProperty(e)&&Y1.requests[e].abort()}const DT=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),fh=da.WebSocket||da.MozWebSocket,cN=!0,S3e="arraybuffer",dN=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class w3e extends OT{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=dN?{}:FB(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=cN&&!dN?n?new fh(t,n):new fh(t):new fh(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const o={};try{cN&&this.ws.send(a)}catch{}i&&DT(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=BB()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!fh}}class A3e extends OT{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=l3e(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=s3e();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const a=()=>{r.read().then(({done:s,value:u})=>{s||(this.onPacket(u),a())}).catch(s=>{})};a();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{i&&DT(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const C3e={websocket:w3e,webtransport:A3e,polling:T3e},k3e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,x3e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function tE(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=k3e.exec(e||""),a={},o=14;for(;o--;)a[x3e[o]]=i[o]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=I3e(a,a.path),a.queryKey=R3e(a,a.query),a}function I3e(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function R3e(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,a){i&&(n[i]=a)}),n}let zB=class p1 extends Xn{constructor(t,n={}){super(),this.binaryType=S3e,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=tE(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=tE(n.host).host),j2(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=m3e(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=MB,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new C3e[t](r)}open(){let t;if(this.opts.rememberUpgrade&&p1.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;p1.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;p1.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function a(){r||(r=!0,p(),n.close(),n=null)}const o=f=>{const m=new Error("probe error: "+f);m.transport=n.name,a(),this.emitReserved("upgradeError",m)};function s(){o("transport closed")}function u(){o("socket closed")}function c(f){n&&f.name!==n.name&&a()}const p=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",s),this.off("close",u),this.off("upgrading",c)};n.once("open",i),n.once("error",o),n.once("close",s),this.once("close",u),this.once("upgrading",c),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",p1.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){p1.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,HB=Object.prototype.toString,L3e=typeof Blob=="function"||typeof Blob<"u"&&HB.call(Blob)==="[object BlobConstructor]",M3e=typeof File=="function"||typeof File<"u"&&HB.call(File)==="[object FileConstructor]";function LT(e){return O3e&&(e instanceof ArrayBuffer||D3e(e))||L3e&&e instanceof Blob||M3e&&e instanceof File}function Vh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let o=0;o{this.io.clearTimeoutFn(a),n.apply(this,[null,...o])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,a)=>{n.push((o,s)=>r?o?a(o):i(s):i(o)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...a)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ut.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ut.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ut.EVENT:case Ut.BINARY_EVENT:this.onevent(t);break;case Ut.ACK:case Ut.BINARY_ACK:this.onack(t);break;case Ut.DISCONNECT:this.ondisconnect();break;case Ut.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:Ut.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ut.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ic.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Ic.prototype.reset=function(){this.attempts=0};Ic.prototype.setMin=function(e){this.ms=e};Ic.prototype.setMax=function(e){this.max=e};Ic.prototype.setJitter=function(e){this.jitter=e};class iE extends Xn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,j2(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ic({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||H3e;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new zB(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Ua(n,"open",function(){r.onopen(),t&&t()}),a=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},o=Ua(n,"error",a);if(this._timeout!==!1){const s=this._timeout,u=this.setTimeoutFn(()=>{i(),a(new Error("timeout")),n.close()},s);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Ua(t,"ping",this.onping.bind(this)),Ua(t,"data",this.ondata.bind(this)),Ua(t,"error",this.onerror.bind(this)),Ua(t,"close",this.onclose.bind(this)),Ua(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){DT(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new jB(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const bd={};function Wh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=N3e(e,t.path||"/socket.io"),r=n.source,i=n.id,a=n.path,o=bd[i]&&a in bd[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let u;return s?u=new iE(r,t):(bd[i]||(bd[i]=new iE(r,t)),u=bd[i]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(Wh,{Manager:iE,Socket:jB,io:Wh,connect:Wh});class GB{}class G3e extends GB{constructor(n){super();Ns(this,"socket");console.log("Connecting to socket.io endpoint: ",n,window.windowId),this.socket=Wh(`${n}?window_id=${window.windowId}`,{path:"/gui/socket.io",transports:["websocket","polling","flashsocket"]})}send(n,r){this.socket.emit("message",{message_type:n,data:r,message_id:Xd()})}ackWithMessageMetadata(n,r,i){return a=>{n({message_id:r,message_type:i,data:a})}}onMessageType(n,r){this.socket.on("message",({message_type:i,data:a},o)=>{n===i&&r(a,this.ackWithMessageMetadata(o,"lolidk",n))})}onMessage(n){this.socket.on("message",({message_type:r,data:i},a)=>{n(r,i,this.ackWithMessageMetadata(a,"lolidk",r))})}onOpen(n){this.socket.on("connect",n)}onClose(n){this.socket.on("disconnect",n)}async sendAndReceive(n,r){return new Promise((i,a)=>{this.socket.emit("message",{message_type:n,data:r,message_id:Xd()},o=>{o&&o.error?a(o.error):i(o)})})}onError(n){this.socket.on("error",n)}close(){this.socket.disconnect()}}class V3e extends GB{constructor(n){super();Ns(this,"serverUrl");this.serverUrl=n,qa("websocketForwardingOpen",{url:this.serverUrl})}send(n,r){qa("websocketForwardingMessage",{message:{messageType:n,data:r},url:this.serverUrl})}onMessageType(n,r){window.addEventListener("message",i=>{if(i.data.type==="websocketForwardingMessage"){const a=JSON.parse(i.data.data);a.messageType===n&&r(a.data)}})}onMessage(n){window.addEventListener("message",r=>{if(r.data.type==="websocketForwardingMessage"){const i=JSON.parse(r.data.data);n(i.messageType,i.data)}})}onError(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingError"&&n(r.data.error)})}sendAndReceive(n,r){return new Promise(i=>{const a=o=>{if(o.data.type==="websocketForwardingMessage"){const s=JSON.parse(o.data.data);s.messageType===n&&(window.removeEventListener("message",a),i(s.data))}};window.addEventListener("message",a),this.send(n,r)})}onOpen(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingOpen"&&n()})}onClose(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingClose"&&n()})}close(){qa("websocketForwardingClose",{url:this.serverUrl})}}class W3e extends e3e{constructor(n,r,i){super();Ns(this,"messenger");Ns(this,"serverUrl");Ns(this,"useVscodeMessagePassing");Ns(this,"getSessionState");Ns(this,"onStateUpdateCallbacks",[]);this.serverUrl=n,this.useVscodeMessagePassing=r,this.getSessionState=i,this.serverUrl=n,this.useVscodeMessagePassing=r,this.messenger=r?new V3e(n):new G3e(n),this.messenger.onClose(()=>{console.log("GUI Connection closed: ",n)}),this.messenger.onError(a=>{console.log("GUI Connection error: ",a)}),this.messenger.onOpen(()=>{console.log("GUI Connection opened: ",n)}),this.messenger.onMessage((a,o,s)=>{this.handleMessage(a,o,s)})}onConnected(n){var r;(r=this.messenger)==null||r.onOpen(n)}handleMessage(n,r,i){switch(n){case"state_update":if(r.state)for(const o of this.onStateUpdateCallbacks)o(r.state);break;case"get_session_state":const a=this.getSessionState();i({history:a.history,context_items:a.context_items});break}}loadSession(n){var r;(r=this.messenger)==null||r.send("load_session",{session_id:n})}sendMainInput(n){var r;(r=this.messenger)==null||r.send("main_input",{input:n})}runFromState(n){var r;(r=this.messenger)==null||r.send("run_from_state",{state:n})}async getSessionTitle(n){var r;return await((r=this.messenger)==null?void 0:r.sendAndReceive("get_session_title",{history:n}))}reverseToIndex(n){var r;(r=this.messenger)==null||r.send("reverse_to_index",{index:n})}sendRefinementInput(n,r){var i;(i=this.messenger)==null||i.send("refinement_input",{input:n,index:r})}sendStepUserInput(n,r){var i;(i=this.messenger)==null||i.send("step_user_input",{input:n,index:r})}onStateUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("state_update",i=>{i.state&&n(i.state)}),this.onStateUpdateCallbacks.push(n)}onSessionUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("session_update",i=>{n(i)})}onConfigUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("config_update",i=>{n(i)})}getConfig(){var n;return(n=this.messenger)==null?void 0:n.sendAndReceive("get_config",{})}onAddContextItem(n){var r;(r=this.messenger)==null||r.onMessageType("add_context_item",i=>{n(i)})}onAvailableSlashCommands(n){var r;(r=this.messenger)==null||r.onMessageType("available_slash_commands",i=>{i.commands&&n(i.commands)})}stopSession(){var n;(n=this.messenger)==null||n.send("stop_session",{})}sendClear(){var n;(n=this.messenger)==null||n.send("clear_history",{})}retryAtIndex(n){var r;(r=this.messenger)==null||r.send("retry_at_index",{index:n})}deleteContextWithIds(n,r){var i;(i=this.messenger)==null||i.send("delete_context_with_ids",{ids:n.map(a=>`${a.provider_title}-${a.item_id}`),index:r})}setEditingAtIds(n){var r;(r=this.messenger)==null||r.send("set_editing_at_ids",{ids:n})}toggleAddingHighlightedCode(){var n;(n=this.messenger)==null||n.send("toggle_adding_highlighted_code",{})}showContextVirtualFile(n){var r;(r=this.messenger)==null||r.send("show_context_virtual_file",{index:n})}selectContextItem(n,r){var i;(i=this.messenger)==null||i.send("select_context_item",{id:n,query:r})}async getContextItem(n,r){var i;return await((i=this.messenger)==null?void 0:i.sendAndReceive("get_context_item",{id:n,query:r}))}selectContextItemAtIndex(n,r,i){var a;(a=this.messenger)==null||a.send("select_context_item_at_index",{id:n,query:r,index:i})}editStepAtIndex(n,r){var i;(i=this.messenger)==null||i.send("edit_step_at_index",{user_input:n,index:r})}setSystemMessage(n){var r;(r=this.messenger)==null||r.send("set_system_message",{system_message:n})}setTemperature(n){var r;(r=this.messenger)==null||r.send("set_temperature",{temperature:n})}addModelForRole(n,r,i){var a;(a=this.messenger)==null||a.send("add_model_for_role",{role:n,model:i,model_class:r})}setModelForRoleFromIndex(n,r){var i;(i=this.messenger)==null||i.send("set_model_for_role_from_index",{role:n,index:r})}saveContextGroup(n,r){var i;(i=this.messenger)==null||i.send("save_context_group",{context_items:r,title:n})}selectContextGroup(n){var r;(r=this.messenger)==null||r.send("select_context_group",{id:n})}deleteContextGroup(n){var r;(r=this.messenger)==null||r.send("delete_context_group",{id:n})}}function VB(e=!0){const[t,n]=C.useState(void 0),r=zt(a=>a.sessionState),i=()=>({history:r.history,context_items:r.context_items});return C.useEffect(()=>{t&&(t.getSessionState=i)},[r]),C.useEffect(()=>{const a=window.serverUrl,o=window.windowId;if(a==null||o==null)return;console.log("Creating GUI websocket",a,e);const s=new W3e(a,e,i);s.onConnected(()=>{n(s)})},[window.windowId]),t}function q3e(){const e=bB();console.error(e);const t=eo(),n=VB(!1);return I.jsxs("div",{id:"error-page",className:"text-center",style:{backgroundColor:Ht},children:[I.jsx("h1",{children:"Error in Continue React App"}),I.jsx("p",{children:I.jsx("i",{children:e.statusText||e.message})}),I.jsx("br",{}),I.jsx("p",{children:"Click below to Continue"}),I.jsx("br",{}),I.jsx(xP,{disabled:!1,showStop:!1,onClick:()=>{n==null||n.stopSession(),t(uc())}})]})}const WB="28px",K3e=Ge.div` +`,J5e=()=>{const e=No(),t=TT(),n=C.useContext(to),r=eo(),i=zt(p=>p.uiState.dialogMessage),a=zt(p=>p.uiState.showDialog),o=zt(p=>{var f;return(f=p.serverState.config.models)==null?void 0:f.default}),s=zt(p=>p.uiState.bottomMessage),u=zt(p=>p.uiState.displayBottomMessageOnBottom),c=zt(p=>p.sessionState.history);return C.useEffect(()=>{const p=f=>{var m;if(f.metaKey&&f.altKey&&f.code==="KeyN"&&(n==null||n.stopSession(),r(uc())),(f.metaKey||f.ctrlKey)&&f.code==="KeyC"){const g=(m=window.getSelection())==null?void 0:m.toString();g&&setTimeout(()=>{navigator.clipboard.writeText(g)},100)}};return window.addEventListener("keydown",p),()=>{window.removeEventListener("keydown",p)}},[n,c]),C.useEffect(()=>{const p=f=>{f.data.type==="addModel"?e("/models"):f.data.type==="openSettings"&&e("/settings")};return window.addEventListener("message",p),()=>{window.removeEventListener("message",p)}},[]),I.jsxs(K5e,{children:[I.jsxs("div",{style:{scrollbarGutter:"stable both-edges",minHeight:"100%",display:"grid",gridTemplateRows:"1fr auto"},children:[I.jsx(S2e,{showDialog:a,onEnter:()=>{r(cc(!1))},onClose:()=>{r(cc(!1))},message:i}),I.jsxs(Z5e,{children:[I.jsx(Qme,{}),I.jsx(Q5e,{id:"model-select-top-div"}),I.jsxs(X5e,{children:[I.jsxs("div",{className:"mr-auto flex gap-2 items-center",children:[localStorage.getItem("ide")==="jetbrains"||localStorage.getItem("hideFeature")==="true"||I.jsx(ZZ,{className:"cursor-pointer",onClick:()=>{localStorage.setItem("hideFeature","true")},onMouseEnter:()=>{r(pu("🎁 New Feature: Use ⌘⇧R automatically debug errors in the terminal (you can click the sparkle icon to make it go away)"))},onMouseLeave:()=>{r(XI(setTimeout(()=>{r(pu(void 0))},2e3)))},width:"1.3em",height:"1.3em",color:"yellow"}),I.jsx(z5e,{}),(o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(t.pathname==="/settings"||parseInt(localStorage.getItem("ftc")||"0")>=125)&&I.jsx(W5e,{completed:parseInt(localStorage.getItem("ftc")||"0"),total:250})]}),I.jsx(zi,{text:"Help",onClick:()=>{e("/help")},children:I.jsx(KZ,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{e("/settings")},text:"Settings",children:I.jsx(kZ,{width:"1.4em",height:"1.4em"})})]})]}),I.jsx(Y5e,{displayOnBottom:u,onMouseEnter:()=>{r(XI(void 0))},onMouseLeave:p=>{p.buttons||r(pu(void 0))},hidden:!s,children:s})]}),I.jsx("div",{className:"text-sm",id:"tooltip-portal-div"})]})};class e3e{}const ko=Object.create(null);ko.open="0";ko.close="1";ko.ping="2";ko.pong="3";ko.message="4";ko.upgrade="5";ko.noop="6";const jh=Object.create(null);Object.keys(ko).forEach(e=>{jh[ko[e]]=e});const Jy={type:"error",data:"parser error"},RB=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",NB=typeof ArrayBuffer=="function",OB=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,RT=({type:e,data:t},n,r)=>RB&&t instanceof Blob?n?r(t):rN(t,r):NB&&(t instanceof ArrayBuffer||OB(t))?n?r(t):rN(new Blob([t]),r):r(ko[e]+(t||"")),rN=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function iN(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let j4;function t3e(e,t){if(RB&&e.data instanceof Blob)return e.data.arrayBuffer().then(iN).then(t);if(NB&&(e.data instanceof ArrayBuffer||OB(e.data)))return t(iN(e.data));RT(e,!1,n=>{j4||(j4=new TextEncoder),t(j4.encode(n))})}const aN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kd=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,i=0,a,o,s,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),p=new Uint8Array(c);for(r=0;r>4,p[i++]=(o&15)<<4|s>>2,p[i++]=(s&3)<<6|u&63;return c},r3e=typeof ArrayBuffer=="function",NT=(e,t)=>{if(typeof e!="string")return{type:"message",data:DB(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:i3e(e.substring(1),t)}:jh[n]?e.length>1?{type:jh[n],data:e.substring(1)}:{type:jh[n]}:Jy},i3e=(e,t)=>{if(r3e){const n=n3e(e);return DB(n,t)}else return{base64:!0,data:e}},DB=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},LB=String.fromCharCode(30),a3e=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((a,o)=>{RT(a,!1,s=>{r[o]=s,++i===n&&t(r.join(LB))})})},o3e=(e,t)=>{const n=e.split(LB),r=[];for(let i=0;i{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const a=new DataView(i.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{i=new Uint8Array(9);const a=new DataView(i.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let G4;function ch(e){return e.reduce((t,n)=>t+n.length,0)}function dh(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;iMath.pow(2,53-32)-1){s.enqueue(Jy);break}i=p*Math.pow(2,32)+c.getUint32(4),r=3}else{if(ch(n)e){s.enqueue(Jy);break}}}})}const MB=4;function Xn(e){if(e)return u3e(e)}function u3e(e){for(var t in Xn.prototype)e[t]=Xn.prototype[t];return e}Xn.prototype.on=Xn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Xn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Xn.prototype.off=Xn.prototype.removeListener=Xn.prototype.removeAllListeners=Xn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function FB(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const c3e=da.setTimeout,d3e=da.clearTimeout;function j2(e,t){t.useNativeTimers?(e.setTimeoutFn=c3e.bind(da),e.clearTimeoutFn=d3e.bind(da)):(e.setTimeoutFn=da.setTimeout.bind(da),e.clearTimeoutFn=da.clearTimeout.bind(da))}const p3e=1.33;function f3e(e){return typeof e=="string"?h3e(e):Math.ceil((e.byteLength||e.size)*p3e)}function h3e(e){let t=0,n=0;for(let r=0,i=e.length;r=57344?n+=3:(r++,n+=4);return n}function g3e(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function m3e(e){let t={},n=e.split("&");for(let r=0,i=n.length;r0);return t}function BB(){const e=lN(+new Date);return e!==sN?(oN=0,sN=e):e+"."+lN(oN++)}for(;ph{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};o3e(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,a3e(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=BB()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Y1(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,a)=>{this.onError("xhr post error",i,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Y1=class Gh extends Xn{constructor(t,n){super(),j2(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=FB(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new $B(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Gh.requestsCount++,Gh.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=v3e,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Gh.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Y1.requestsCount=0;Y1.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",uN);else if(typeof addEventListener=="function"){const e="onpagehide"in da?"pagehide":"unload";addEventListener(e,uN,!1)}}function uN(){for(let e in Y1.requests)Y1.requests.hasOwnProperty(e)&&Y1.requests[e].abort()}const DT=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),fh=da.WebSocket||da.MozWebSocket,cN=!0,S3e="arraybuffer",dN=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class w3e extends OT{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=dN?{}:FB(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=cN&&!dN?n?new fh(t,n):new fh(t):new fh(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const o={};try{cN&&this.ws.send(a)}catch{}i&&DT(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=BB()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!fh}}class A3e extends OT{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=l3e(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=s3e();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const a=()=>{r.read().then(({done:s,value:u})=>{s||(this.onPacket(u),a())}).catch(s=>{})};a();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{i&&DT(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const C3e={websocket:w3e,webtransport:A3e,polling:T3e},k3e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,x3e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function tE(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=k3e.exec(e||""),a={},o=14;for(;o--;)a[x3e[o]]=i[o]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=I3e(a,a.path),a.queryKey=R3e(a,a.query),a}function I3e(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function R3e(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,a){i&&(n[i]=a)}),n}let zB=class p1 extends Xn{constructor(t,n={}){super(),this.binaryType=S3e,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=tE(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=tE(n.host).host),j2(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=m3e(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=MB,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new C3e[t](r)}open(){let t;if(this.opts.rememberUpgrade&&p1.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;p1.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;p1.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function a(){r||(r=!0,p(),n.close(),n=null)}const o=f=>{const m=new Error("probe error: "+f);m.transport=n.name,a(),this.emitReserved("upgradeError",m)};function s(){o("transport closed")}function u(){o("socket closed")}function c(f){n&&f.name!==n.name&&a()}const p=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",s),this.off("close",u),this.off("upgrading",c)};n.once("open",i),n.once("error",o),n.once("close",s),this.once("close",u),this.once("upgrading",c),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",p1.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){p1.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,HB=Object.prototype.toString,L3e=typeof Blob=="function"||typeof Blob<"u"&&HB.call(Blob)==="[object BlobConstructor]",M3e=typeof File=="function"||typeof File<"u"&&HB.call(File)==="[object FileConstructor]";function LT(e){return O3e&&(e instanceof ArrayBuffer||D3e(e))||L3e&&e instanceof Blob||M3e&&e instanceof File}function Vh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let o=0;o{this.io.clearTimeoutFn(a),n.apply(this,[null,...o])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,a)=>{n.push((o,s)=>r?o?a(o):i(s):i(o)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...a)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ut.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ut.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ut.EVENT:case Ut.BINARY_EVENT:this.onevent(t);break;case Ut.ACK:case Ut.BINARY_ACK:this.onack(t);break;case Ut.DISCONNECT:this.ondisconnect();break;case Ut.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:Ut.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ut.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ic.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Ic.prototype.reset=function(){this.attempts=0};Ic.prototype.setMin=function(e){this.ms=e};Ic.prototype.setMax=function(e){this.max=e};Ic.prototype.setJitter=function(e){this.jitter=e};class iE extends Xn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,j2(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ic({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||H3e;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new zB(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Ua(n,"open",function(){r.onopen(),t&&t()}),a=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},o=Ua(n,"error",a);if(this._timeout!==!1){const s=this._timeout,u=this.setTimeoutFn(()=>{i(),a(new Error("timeout")),n.close()},s);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Ua(t,"ping",this.onping.bind(this)),Ua(t,"data",this.ondata.bind(this)),Ua(t,"error",this.onerror.bind(this)),Ua(t,"close",this.onclose.bind(this)),Ua(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){DT(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new jB(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const bd={};function Wh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=N3e(e,t.path||"/socket.io"),r=n.source,i=n.id,a=n.path,o=bd[i]&&a in bd[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let u;return s?u=new iE(r,t):(bd[i]||(bd[i]=new iE(r,t)),u=bd[i]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(Wh,{Manager:iE,Socket:jB,io:Wh,connect:Wh});class GB{}class G3e extends GB{constructor(n){super();Ns(this,"socket");console.log("Connecting to socket.io endpoint: ",n,window.windowId),this.socket=Wh(`${n}?window_id=${window.windowId}`,{path:"/gui/socket.io",transports:["websocket","polling","flashsocket"]})}send(n,r){this.socket.emit("message",{message_type:n,data:r,message_id:Xd()})}ackWithMessageMetadata(n,r,i){return a=>{n({message_id:r,message_type:i,data:a})}}onMessageType(n,r){this.socket.on("message",({message_type:i,data:a},o)=>{n===i&&r(a,this.ackWithMessageMetadata(o,"lolidk",n))})}onMessage(n){this.socket.on("message",({message_type:r,data:i},a)=>{n(r,i,this.ackWithMessageMetadata(a,"lolidk",r))})}onOpen(n){this.socket.on("connect",n)}onClose(n){this.socket.on("disconnect",n)}async sendAndReceive(n,r){return new Promise((i,a)=>{this.socket.emit("message",{message_type:n,data:r,message_id:Xd()},o=>{o&&o.error?a(o.error):i(o)})})}onError(n){this.socket.on("error",n)}close(){this.socket.disconnect()}}class V3e extends GB{constructor(n){super();Ns(this,"serverUrl");this.serverUrl=n,qa("websocketForwardingOpen",{url:this.serverUrl})}send(n,r){qa("websocketForwardingMessage",{message:{messageType:n,data:r},url:this.serverUrl})}onMessageType(n,r){window.addEventListener("message",i=>{if(i.data.type==="websocketForwardingMessage"){const a=JSON.parse(i.data.data);a.messageType===n&&r(a.data)}})}onMessage(n){window.addEventListener("message",r=>{if(r.data.type==="websocketForwardingMessage"){const i=JSON.parse(r.data.data);n(i.messageType,i.data)}})}onError(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingError"&&n(r.data.error)})}sendAndReceive(n,r){return new Promise(i=>{const a=o=>{if(o.data.type==="websocketForwardingMessage"){const s=JSON.parse(o.data.data);s.messageType===n&&(window.removeEventListener("message",a),i(s.data))}};window.addEventListener("message",a),this.send(n,r)})}onOpen(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingOpen"&&n()})}onClose(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingClose"&&n()})}close(){qa("websocketForwardingClose",{url:this.serverUrl})}}class W3e extends e3e{constructor(n,r,i){super();Ns(this,"messenger");Ns(this,"serverUrl");Ns(this,"useVscodeMessagePassing");Ns(this,"getSessionState");Ns(this,"onStateUpdateCallbacks",[]);this.serverUrl=n,this.useVscodeMessagePassing=r,this.getSessionState=i,this.serverUrl=n,this.useVscodeMessagePassing=r,this.messenger=r?new V3e(n):new G3e(n),this.messenger.onClose(()=>{console.log("GUI Connection closed: ",n)}),this.messenger.onError(a=>{console.log("GUI Connection error: ",a)}),this.messenger.onOpen(()=>{console.log("GUI Connection opened: ",n)}),this.messenger.onMessage((a,o,s)=>{this.handleMessage(a,o,s)})}onConnected(n){var r;(r=this.messenger)==null||r.onOpen(n)}handleMessage(n,r,i){switch(n){case"state_update":if(r.state)for(const o of this.onStateUpdateCallbacks)o(r.state);break;case"get_session_state":const a=this.getSessionState();i({history:a.history,context_items:a.context_items});break}}loadSession(n){var r;(r=this.messenger)==null||r.send("load_session",{session_id:n})}sendMainInput(n){var r;(r=this.messenger)==null||r.send("main_input",{input:n})}runFromState(n){var r;(r=this.messenger)==null||r.send("run_from_state",{state:n})}async getSessionTitle(n){var r;return await((r=this.messenger)==null?void 0:r.sendAndReceive("get_session_title",{history:n}))}reverseToIndex(n){var r;(r=this.messenger)==null||r.send("reverse_to_index",{index:n})}sendRefinementInput(n,r){var i;(i=this.messenger)==null||i.send("refinement_input",{input:n,index:r})}sendStepUserInput(n,r){var i;(i=this.messenger)==null||i.send("step_user_input",{input:n,index:r})}onStateUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("state_update",i=>{i.state&&n(i.state)}),this.onStateUpdateCallbacks.push(n)}onSessionUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("session_update",i=>{n(i)})}onConfigUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("config_update",i=>{n(i)})}getConfig(){var n;return(n=this.messenger)==null?void 0:n.sendAndReceive("get_config",{})}onAddContextItem(n){var r;(r=this.messenger)==null||r.onMessageType("add_context_item",i=>{n(i)})}onAvailableSlashCommands(n){var r;(r=this.messenger)==null||r.onMessageType("available_slash_commands",i=>{i.commands&&n(i.commands)})}stopSession(){var n;(n=this.messenger)==null||n.send("stop_session",{})}sendClear(){var n;(n=this.messenger)==null||n.send("clear_history",{})}retryAtIndex(n){var r;(r=this.messenger)==null||r.send("retry_at_index",{index:n})}deleteContextWithIds(n,r){var i;(i=this.messenger)==null||i.send("delete_context_with_ids",{ids:n.map(a=>`${a.provider_title}-${a.item_id}`),index:r})}setEditingAtIds(n){var r;(r=this.messenger)==null||r.send("set_editing_at_ids",{ids:n})}toggleAddingHighlightedCode(){var n;(n=this.messenger)==null||n.send("toggle_adding_highlighted_code",{})}showContextVirtualFile(n){var r;(r=this.messenger)==null||r.send("show_context_virtual_file",{index:n})}selectContextItem(n,r){var i;(i=this.messenger)==null||i.send("select_context_item",{id:n,query:r})}async getContextItem(n,r){var i;return await((i=this.messenger)==null?void 0:i.sendAndReceive("get_context_item",{id:n,query:r}))}selectContextItemAtIndex(n,r,i){var a;(a=this.messenger)==null||a.send("select_context_item_at_index",{id:n,query:r,index:i})}editStepAtIndex(n,r){var i;(i=this.messenger)==null||i.send("edit_step_at_index",{user_input:n,index:r})}setSystemMessage(n){var r;(r=this.messenger)==null||r.send("set_system_message",{system_message:n})}setTemperature(n){var r;(r=this.messenger)==null||r.send("set_temperature",{temperature:n})}addModelForRole(n,r,i){var a;(a=this.messenger)==null||a.send("add_model_for_role",{role:n,model:i,model_class:r})}setModelForRoleFromIndex(n,r){var i;(i=this.messenger)==null||i.send("set_model_for_role_from_index",{role:n,index:r})}saveContextGroup(n,r){var i;(i=this.messenger)==null||i.send("save_context_group",{context_items:r,title:n})}selectContextGroup(n){var r;(r=this.messenger)==null||r.send("select_context_group",{id:n})}deleteContextGroup(n){var r;(r=this.messenger)==null||r.send("delete_context_group",{id:n})}}function VB(e=!0){const[t,n]=C.useState(void 0),r=zt(a=>a.sessionState),i=()=>({history:r.history,context_items:r.context_items});return C.useEffect(()=>{t&&(t.getSessionState=i)},[r]),C.useEffect(()=>{const a=window.serverUrl,o=window.windowId;if(a==null||o==null)return;console.log("Creating GUI websocket",a,e);const s=new W3e(a,e,i);s.onConnected(()=>{n(s)})},[window.windowId]),t}function q3e(){const e=bB();console.error(e);const t=eo(),n=VB(!1),r=No();return I.jsxs("div",{id:"error-page",className:"text-center",style:{backgroundColor:Ht},children:[I.jsx("h1",{children:"Error in Continue React App"}),I.jsx("p",{children:I.jsx("i",{children:e.statusText||e.message})}),I.jsx("br",{}),I.jsx("p",{children:"Click below to Continue"}),I.jsx("br",{}),I.jsx(xP,{disabled:!1,showStop:!1,onClick:()=>{n==null||n.stopSession(),t(uc()),localStorage.removeItem("persist:root"),r("/")}})]})}const WB="28px",K3e=Ge.div` margin-top: 16px; margin: auto; width: ${WB}; @@ -1069,7 +1069,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.4; } } -`;function Y3e(e){const t=window.vscMediaUrl;return I.jsx(K3e,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(AL,{width:e.size||WB})})}const aE=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(MZ,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&u9.createPortal(I.jsx(au,{id:t,place:"bottom",children:e}),n)]})};var bf=e=>e.type==="checkbox",F1=e=>e instanceof Date,ei=e=>e==null;const qB=e=>typeof e=="object";var ir=e=>!ei(e)&&!Array.isArray(e)&&qB(e)&&!F1(e),X3e=e=>ir(e)&&e.target?bf(e.target)?e.target.checked:e.target.value:e,Z3e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Q3e=(e,t)=>e.has(Z3e(t)),J3e=e=>{const t=e.constructor&&e.constructor.prototype;return ir(t)&&t.hasOwnProperty("isPrototypeOf")},FT=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Zo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(FT&&(e instanceof Blob||e instanceof FileList))&&(n||ir(e)))if(t=n?[]:{},!n&&!J3e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Zo(e[r]));else return e;return t}var yf=e=>Array.isArray(e)?e.filter(Boolean):[],qn=e=>e===void 0,lt=(e,t,n)=>{if(!t||!ir(e))return n;const r=yf(t.split(/[,[\].]+?/)).reduce((i,a)=>ei(i)?i:i[a],e);return qn(r)||r===e?qn(e[t])?n:e[t]:r},lu=e=>typeof e=="boolean";const fN={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ha={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ko={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},e4e=ut.createContext(null),KB=e=>{const{children:t,...n}=e;return ut.createElement(e4e.Provider,{value:n},t)};var t4e=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ha.all&&(t._proxyFormState[o]=!r||Ha.all),n&&(n[o]=!0),e[o]}});return i},sa=e=>ir(e)&&!Object.keys(e).length,n4e=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return sa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ha.all))},V4=e=>Array.isArray(e)?e:[e];function r4e(e){const t=ut.useRef(e);t.current=e,ut.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var Eo=e=>typeof e=="string",i4e=(e,t,n,r,i)=>Eo(e)?(r&&t.watch.add(e),lt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),lt(n,a))):(r&&(t.watchAll=!0),n),PT=e=>/^\w*$/.test(e),YB=e=>yf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Cn(e,t,n){let r=-1;const i=PT(t)?[t]:YB(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const oE=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=lt(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else ir(o)&&oE(o,t)}}};var hN=e=>({isOnSubmit:!e||e===Ha.onSubmit,isOnBlur:e===Ha.onBlur,isOnChange:e===Ha.onChange,isOnAll:e===Ha.all,isOnTouch:e===Ha.onTouched}),gN=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),o4e=(e,t,n)=>{const r=yf(lt(e,n));return Cn(r,"root",t[n]),Cn(e,n,r),e},BT=e=>e.type==="file",Js=e=>typeof e=="function",rm=e=>{if(!FT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},qh=e=>Eo(e),UT=e=>e.type==="radio",im=e=>e instanceof RegExp;const mN={value:!1,isValid:!1},bN={value:!0,isValid:!0};var XB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qn(e[0].attributes.value)?qn(e[0].value)||e[0].value===""?bN:{value:e[0].value,isValid:!0}:bN:mN}return mN};const yN={isValid:!1,value:null};var ZB=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,yN):yN;function EN(e,t,n="validate"){if(qh(e)||Array.isArray(e)&&e.every(qh)||lu(e)&&!e)return{type:n,message:qh(e)?e:"",ref:t}}var a1=e=>ir(e)&&!im(e)?e:{value:e,message:""},vN=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:b,valueAsNumber:y,mount:T,disabled:E}=e._f,v=lt(t,b);if(!T||E)return{};const w=o?o[0]:a,A=$=>{r&&w.reportValidity&&(w.setCustomValidity(lu($)?"":$||""),w.reportValidity())},R={},k=UT(a),N=bf(a),B=k||N,q=(y||BT(a))&&qn(a.value)&&qn(v)||rm(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,P=a4e.bind(null,b,n,R),Q=($,oe,fe,ce=Ko.maxLength,De=Ko.minLength)=>{const H=$?oe:fe;R[b]={type:$?ce:De,message:H,ref:a,...P($?ce:De,H)}};if(i?!Array.isArray(v)||!v.length:s&&(!B&&(q||ei(v))||lu(v)&&!v||N&&!XB(o).isValid||k&&!ZB(o).isValid)){const{value:$,message:oe}=qh(s)?{value:!!s,message:s}:a1(s);if($&&(R[b]={type:Ko.required,message:oe,ref:w,...P(Ko.required,oe)},!n))return A(oe),R}if(!q&&(!ei(p)||!ei(f))){let $,oe;const fe=a1(f),ce=a1(p);if(!ei(v)&&!isNaN(v)){const De=a.valueAsNumber||v&&+v;ei(fe.value)||($=De>fe.value),ei(ce.value)||(oe=Denew Date(new Date().toDateString()+" "+D),W=a.type=="time",se=a.type=="week";Eo(fe.value)&&v&&($=W?H(v)>H(fe.value):se?v>fe.value:De>new Date(fe.value)),Eo(ce.value)&&v&&(oe=W?H(v)+$.value,ce=!ei(oe.value)&&v.length<+oe.value;if((fe||ce)&&(Q(fe,$.message,oe.message),!n))return A(R[b].message),R}if(m&&!q&&Eo(v)){const{value:$,message:oe}=a1(m);if(im($)&&!v.match($)&&(R[b]={type:Ko.pattern,message:oe,ref:a,...P(Ko.pattern,oe)},!n))return A(oe),R}if(g){if(Js(g)){const $=await g(v,t),oe=EN($,w);if(oe&&(R[b]={...oe,...P(Ko.validate,oe.message)},!n))return A(oe.message),R}else if(ir(g)){let $={};for(const oe in g){if(!sa($)&&!n)break;const fe=EN(await g[oe](v,t),w,oe);fe&&($={...fe,...P(oe,fe.message)},A(fe.message),n&&(R[b]=$))}if(!sa($)&&(R[b]={ref:w,...$},!n))return R}}return A(!0),R};function s4e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var am=e=>ei(e)||!qB(e);function uu(e,t){if(am(e)||am(t))return e===t;if(F1(e)&&F1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(F1(a)&&F1(o)||ir(a)&&ir(o)||Array.isArray(a)&&Array.isArray(o)?!uu(a,o):a!==o)return!1}}return!0}var QB=e=>e.type==="select-multiple",u4e=e=>UT(e)||bf(e),q4=e=>rm(e)&&e.isConnected,JB=e=>{for(const t in e)if(Js(e[t]))return!0;return!1};function om(e,t={}){const n=Array.isArray(e);if(ir(e)||n)for(const r in e)Array.isArray(e[r])||ir(e[r])&&!JB(e[r])?(t[r]=Array.isArray(e[r])?[]:{},om(e[r],t[r])):ei(e[r])||(t[r]=!0);return t}function eU(e,t,n){const r=Array.isArray(e);if(ir(e)||r)for(const i in e)Array.isArray(e[i])||ir(e[i])&&!JB(e[i])?qn(t)||am(n[i])?n[i]=Array.isArray(e[i])?om(e[i],[]):{...om(e[i])}:eU(e[i],ei(t)?{}:t[i],n[i]):n[i]=!uu(e[i],t[i]);return n}var K4=(e,t)=>eU(e,t,om(t)),tU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>qn(e)?e:t?e===""?NaN:e&&+e:n&&Eo(e)?new Date(e):r?r(e):e;function Y4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return BT(t)?t.files:UT(t)?ZB(e.refs).value:QB(t)?[...t.selectedOptions].map(({value:n})=>n):bf(t)?XB(e.refs).value:tU(qn(t.value)?e.ref.value:t.value,e)}var c4e=(e,t,n,r)=>{const i={};for(const a of e){const o=lt(t,a);o&&Cn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},yd=e=>qn(e)?e:im(e)?e.source:ir(e)?im(e.value)?e.value.source:e.value:e,d4e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _N(e,t,n){const r=lt(e,n);if(r||PT(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=lt(t,a),s=lt(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var p4e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,f4e=(e,t)=>!yf(lt(e,t)).length&&vr(e,t);const h4e={mode:Ha.onSubmit,reValidateMode:Ha.onChange,shouldFocusError:!0};function g4e(e={},t){let n={...h4e,...e},r={submitCount:0,isDirty:!1,isLoading:Js(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=ir(n.defaultValues)||ir(n.values)?Zo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:Zo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:W4(),array:W4(),state:W4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,b=hN(n.mode),y=hN(n.reValidateMode),T=n.criteriaMode===Ha.all,E=U=>re=>{clearTimeout(p),p=setTimeout(U,re)},v=async U=>{if(f.isValid||U){const re=n.resolver?sa((await q()).errors):await Q(i,!0);re!==r.isValid&&m.state.next({isValid:re})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,re=[],de,xe,ye=!0,Te=!0)=>{if(xe&&de){if(s.action=!0,Te&&Array.isArray(lt(i,U))){const Le=de(lt(i,U),xe.argA,xe.argB);ye&&Cn(i,U,Le)}if(Te&&Array.isArray(lt(r.errors,U))){const Le=de(lt(r.errors,U),xe.argA,xe.argB);ye&&Cn(r.errors,U,Le),f4e(r.errors,U)}if(f.touchedFields&&Te&&Array.isArray(lt(r.touchedFields,U))){const Le=de(lt(r.touchedFields,U),xe.argA,xe.argB);ye&&Cn(r.touchedFields,U,Le)}f.dirtyFields&&(r.dirtyFields=K4(a,o)),m.state.next({name:U,isDirty:oe(U,re),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Cn(o,U,re)},R=(U,re)=>{Cn(r.errors,U,re),m.state.next({errors:r.errors})},k=(U,re,de,xe)=>{const ye=lt(i,U);if(ye){const Te=lt(o,U,qn(de)?lt(a,U):de);qn(Te)||xe&&xe.defaultChecked||re?Cn(o,U,re?Te:Y4(ye._f)):De(U,Te),s.mount&&v()}},N=(U,re,de,xe,ye)=>{let Te=!1,Le=!1;const ze={name:U};if(!de||xe){f.isDirty&&(Le=r.isDirty,r.isDirty=ze.isDirty=oe(),Te=Le!==ze.isDirty);const Ye=uu(lt(a,U),re);Le=lt(r.dirtyFields,U),Ye?vr(r.dirtyFields,U):Cn(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Te=Te||f.dirtyFields&&Le!==!Ye}if(de){const Ye=lt(r.touchedFields,U);Ye||(Cn(r.touchedFields,U,de),ze.touchedFields=r.touchedFields,Te=Te||f.touchedFields&&Ye!==de)}return Te&&ye&&m.state.next(ze),Te?ze:{}},B=(U,re,de,xe)=>{const ye=lt(r.errors,U),Te=f.isValid&&lu(re)&&r.isValid!==re;if(e.delayError&&de?(c=E(()=>R(U,de)),c(e.delayError)):(clearTimeout(p),c=null,de?Cn(r.errors,U,de):vr(r.errors,U)),(de?!uu(ye,de):ye)||!sa(xe)||Te){const Le={...xe,...Te&&lu(re)?{isValid:re}:{},errors:r.errors,name:U};r={...r,...Le},m.state.next(Le)}w(!1)},q=async U=>n.resolver(o,n.context,c4e(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:re}=await q(U);if(U)for(const de of U){const xe=lt(re,de);xe?Cn(r.errors,de,xe):vr(r.errors,de)}else r.errors=re;return re},Q=async(U,re,de={valid:!0})=>{for(const xe in U){const ye=U[xe];if(ye){const{_f:Te,...Le}=ye;if(Te){const ze=u.array.has(Te.name),Ye=await vN(ye,o,T,n.shouldUseNativeValidation&&!re,ze);if(Ye[Te.name]&&(de.valid=!1,re))break;!re&&(lt(Ye,Te.name)?ze?o4e(r.errors,Ye,Te.name):Cn(r.errors,Te.name,Ye[Te.name]):vr(r.errors,Te.name))}Le&&await Q(Le,re,de)}}return de.valid},$=()=>{for(const U of u.unMount){const re=lt(i,U);re&&(re._f.refs?re._f.refs.every(de=>!q4(de)):!q4(re._f.ref))&&X(U)}u.unMount=new Set},oe=(U,re)=>(U&&re&&Cn(o,U,re),!uu(pe(),a)),fe=(U,re,de)=>i4e(U,u,{...s.mount?o:qn(re)?a:Eo(U)?{[U]:re}:re},de,re),ce=U=>yf(lt(s.mount?o:a,U,e.shouldUnregister?lt(a,U,[]):[])),De=(U,re,de={})=>{const xe=lt(i,U);let ye=re;if(xe){const Te=xe._f;Te&&(!Te.disabled&&Cn(o,U,tU(re,Te)),ye=rm(Te.ref)&&ei(re)?"":re,QB(Te.ref)?[...Te.ref.options].forEach(Le=>Le.selected=ye.includes(Le.value)):Te.refs?bf(Te.ref)?Te.refs.length>1?Te.refs.forEach(Le=>(!Le.defaultChecked||!Le.disabled)&&(Le.checked=Array.isArray(ye)?!!ye.find(ze=>ze===Le.value):ye===Le.value)):Te.refs[0]&&(Te.refs[0].checked=!!ye):Te.refs.forEach(Le=>Le.checked=Le.value===ye):BT(Te.ref)?Te.ref.value="":(Te.ref.value=ye,Te.ref.type||m.values.next({name:U,values:{...o}})))}(de.shouldDirty||de.shouldTouch)&&N(U,ye,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&D(U)},H=(U,re,de)=>{for(const xe in re){const ye=re[xe],Te=`${U}.${xe}`,Le=lt(i,Te);(u.array.has(U)||!am(ye)||Le&&!Le._f)&&!F1(ye)?H(Te,ye,de):De(Te,ye,de)}},W=(U,re,de={})=>{const xe=lt(i,U),ye=u.array.has(U),Te=Zo(re);Cn(o,U,Te),ye?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&de.shouldDirty&&m.state.next({name:U,dirtyFields:K4(a,o),isDirty:oe(U,Te)})):xe&&!xe._f&&!ei(Te)?H(U,Te,de):De(U,Te,de),gN(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},se=async U=>{const re=U.target;let de=re.name,xe=!0;const ye=lt(i,de),Te=()=>re.type?Y4(ye._f):X3e(U);if(ye){let Le,ze;const Ye=Te(),jt=U.type===fN.BLUR||U.type===fN.FOCUS_OUT,ue=!d4e(ye._f)&&!n.resolver&&!lt(r.errors,de)&&!ye._f.deps||p4e(jt,lt(r.touchedFields,de),r.isSubmitted,y,b),Ee=gN(de,u,jt);Cn(o,de,Ye),jt?(ye._f.onBlur&&ye._f.onBlur(U),c&&c(0)):ye._f.onChange&&ye._f.onChange(U);const qe=N(de,Ye,jt,!1),j=!sa(qe)||Ee;if(!jt&&m.values.next({name:de,type:U.type,values:{...o}}),ue)return f.isValid&&v(),j&&m.state.next({name:de,...Ee?{}:qe});if(!jt&&Ee&&m.state.next({...r}),w(!0),n.resolver){const{errors:me}=await q([de]),Ve=_N(r.errors,i,de),ge=_N(me,i,Ve.name||de);Le=ge.error,de=ge.name,ze=sa(me)}else Le=(await vN(ye,o,T,n.shouldUseNativeValidation))[de],xe=Number.isNaN(Ye)||Ye===lt(o,de,Ye),xe&&(Le?ze=!1:f.isValid&&(ze=await Q(i,!0)));xe&&(ye._f.deps&&D(ye._f.deps),B(de,ze,Le,qe))}},D=async(U,re={})=>{let de,xe;const ye=V4(U);if(w(!0),n.resolver){const Te=await P(qn(U)?U:ye);de=sa(Te),xe=U?!ye.some(Le=>lt(Te,Le)):de}else U?(xe=(await Promise.all(ye.map(async Te=>{const Le=lt(i,Te);return await Q(Le&&Le._f?{[Te]:Le}:Le)}))).every(Boolean),!(!xe&&!r.isValid)&&v()):xe=de=await Q(i);return m.state.next({...!Eo(U)||f.isValid&&de!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:de}:{},errors:r.errors,isValidating:!1}),re.shouldFocus&&!xe&&oE(i,Te=>Te&<(r.errors,Te),U?ye:u.mount),xe},pe=U=>{const re={...a,...s.mount?o:{}};return qn(U)?re:Eo(U)?lt(re,U):U.map(de=>lt(re,de))},le=(U,re)=>({invalid:!!lt((re||r).errors,U),isDirty:!!lt((re||r).dirtyFields,U),isTouched:!!lt((re||r).touchedFields,U),error:lt((re||r).errors,U)}),L=U=>{U&&V4(U).forEach(re=>vr(r.errors,re)),m.state.next({errors:U?r.errors:{}})},ie=(U,re,de)=>{const xe=(lt(i,U,{_f:{}})._f||{}).ref;Cn(r.errors,U,{...re,ref:xe}),m.state.next({name:U,errors:r.errors,isValid:!1}),de&&de.shouldFocus&&xe&&xe.focus&&xe.focus()},Se=(U,re)=>Js(U)?m.values.subscribe({next:de=>U(fe(void 0,re),de)}):fe(U,re,!0),X=(U,re={})=>{for(const de of U?V4(U):u.mount)u.mount.delete(de),u.array.delete(de),re.keepValue||(vr(i,de),vr(o,de)),!re.keepError&&vr(r.errors,de),!re.keepDirty&&vr(r.dirtyFields,de),!re.keepTouched&&vr(r.touchedFields,de),!n.shouldUnregister&&!re.keepDefaultValue&&vr(a,de);m.values.next({values:{...o}}),m.state.next({...r,...re.keepDirty?{isDirty:oe()}:{}}),!re.keepIsValid&&v()},ke=({disabled:U,name:re,field:de,fields:xe})=>{if(lu(U)){const ye=U?void 0:lt(o,re,Y4(de?de._f:lt(xe,re)._f));Cn(o,re,ye),N(re,ye,!1,!1,!0)}},te=(U,re={})=>{let de=lt(i,U);const xe=lu(re.disabled);return Cn(i,U,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:U}},name:U,mount:!0,...re}}),u.mount.add(U),de?ke({field:de,disabled:re.disabled,name:U}):k(U,!0,re.value),{...xe?{disabled:re.disabled}:{},...n.progressive?{required:!!re.required,min:yd(re.min),max:yd(re.max),minLength:yd(re.minLength),maxLength:yd(re.maxLength),pattern:yd(re.pattern)}:{},name:U,onChange:se,onBlur:se,ref:ye=>{if(ye){te(U,re),de=lt(i,U);const Te=qn(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,Le=u4e(Te),ze=de._f.refs||[];if(Le?ze.find(Ye=>Ye===Te):Te===de._f.ref)return;Cn(i,U,{_f:{...de._f,...Le?{refs:[...ze.filter(q4),Te,...Array.isArray(lt(a,U))?[{}]:[]],ref:{type:Te.type,name:U}}:{ref:Te}}}),k(U,!1,void 0,Te)}else de=lt(i,U,{}),de._f&&(de._f.mount=!1),(n.shouldUnregister||re.shouldUnregister)&&!(Q3e(u.array,U)&&s.action)&&u.unMount.add(U)}}},Me=()=>n.shouldFocusError&&oE(i,U=>U&<(r.errors,U),u.mount),Re=(U,re)=>async de=>{de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let xe=Zo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ye,values:Te}=await q();r.errors=ye,xe=Te}else await Q(i);vr(r.errors,"root"),sa(r.errors)?(m.state.next({errors:{}}),await U(xe,de)):(re&&await re({...r.errors},de),Me(),setTimeout(Me)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Ze=(U,re={})=>{lt(i,U)&&(qn(re.defaultValue)?W(U,lt(a,U)):(W(U,re.defaultValue),Cn(a,U,re.defaultValue)),re.keepTouched||vr(r.touchedFields,U),re.keepDirty||(vr(r.dirtyFields,U),r.isDirty=re.defaultValue?oe(U,lt(a,U)):oe()),re.keepError||(vr(r.errors,U),f.isValid&&v()),m.state.next({...r}))},We=(U,re={})=>{const de=U?Zo(U):a,xe=Zo(de),ye=U&&!sa(U)?xe:a;if(re.keepDefaultValues||(a=de),!re.keepValues){if(re.keepDirtyValues||g)for(const Te of u.mount)lt(r.dirtyFields,Te)?Cn(ye,Te,lt(o,Te)):W(Te,lt(ye,Te));else{if(FT&&qn(U))for(const Te of u.mount){const Le=lt(i,Te);if(Le&&Le._f){const ze=Array.isArray(Le._f.refs)?Le._f.refs[0]:Le._f.ref;if(rm(ze)){const Ye=ze.closest("form");if(Ye){Ye.reset();break}}}}i={}}o=e.shouldUnregister?re.keepDefaultValues?Zo(a):{}:Zo(ye),m.array.next({values:{...ye}}),m.values.next({values:{...ye}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!re.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:re.keepSubmitCount?r.submitCount:0,isDirty:re.keepDirty?r.isDirty:!!(re.keepDefaultValues&&!uu(U,a)),isSubmitted:re.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re.keepDirtyValues?r.dirtyFields:re.keepDefaultValues&&U?K4(a,U):{},touchedFields:re.keepTouched?r.touchedFields:{},errors:re.keepErrors?r.errors:{},isSubmitSuccessful:re.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,re)=>We(Js(U)?U(o):U,re);return{control:{register:te,unregister:X,getFieldState:le,handleSubmit:Re,setError:ie,_executeSchema:q,_getWatch:fe,_getDirty:oe,_updateValid:v,_removeUnmounted:$,_updateFieldArray:A,_updateDisabledField:ke,_getFieldArray:ce,_reset:We,_resetDefaultValues:()=>Js(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:D,register:te,handleSubmit:Re,watch:Se,setValue:W,getValues:pe,reset:dt,resetField:Ze,clearErrors:L,unregister:X,setError:ie,setFocus:(U,re={})=>{const de=lt(i,U),xe=de&&de._f;if(xe){const ye=xe.refs?xe.refs[0]:xe.ref;ye.focus&&(ye.focus(),re.shouldSelect&&ye.select())}},getFieldState:le}}function nU(e={}){const t=ut.useRef(),n=ut.useRef(),[r,i]=ut.useState({isDirty:!1,isValidating:!1,isLoading:Js(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Js(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...g4e(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,r4e({subject:a._subjects.state,next:o=>{n4e(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),ut.useEffect(()=>{e.values&&!uu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),ut.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=t4e(r,a),t.current}const TN=Ge.hr` +`;function Y3e(e){const t=window.vscMediaUrl;return I.jsx(K3e,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(AL,{width:e.size||WB})})}const aE=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(MZ,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&u9.createPortal(I.jsx(au,{id:t,place:"bottom",children:e}),n)]})};var bf=e=>e.type==="checkbox",F1=e=>e instanceof Date,ei=e=>e==null;const qB=e=>typeof e=="object";var ir=e=>!ei(e)&&!Array.isArray(e)&&qB(e)&&!F1(e),X3e=e=>ir(e)&&e.target?bf(e.target)?e.target.checked:e.target.value:e,Z3e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Q3e=(e,t)=>e.has(Z3e(t)),J3e=e=>{const t=e.constructor&&e.constructor.prototype;return ir(t)&&t.hasOwnProperty("isPrototypeOf")},FT=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Qo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(FT&&(e instanceof Blob||e instanceof FileList))&&(n||ir(e)))if(t=n?[]:{},!n&&!J3e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Qo(e[r]));else return e;return t}var yf=e=>Array.isArray(e)?e.filter(Boolean):[],qn=e=>e===void 0,ut=(e,t,n)=>{if(!t||!ir(e))return n;const r=yf(t.split(/[,[\].]+?/)).reduce((i,a)=>ei(i)?i:i[a],e);return qn(r)||r===e?qn(e[t])?n:e[t]:r},lu=e=>typeof e=="boolean";const fN={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ha={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Yo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},e4e=st.createContext(null),KB=e=>{const{children:t,...n}=e;return st.createElement(e4e.Provider,{value:n},t)};var t4e=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ha.all&&(t._proxyFormState[o]=!r||Ha.all),n&&(n[o]=!0),e[o]}});return i},sa=e=>ir(e)&&!Object.keys(e).length,n4e=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return sa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ha.all))},V4=e=>Array.isArray(e)?e:[e];function r4e(e){const t=st.useRef(e);t.current=e,st.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var Eo=e=>typeof e=="string",i4e=(e,t,n,r,i)=>Eo(e)?(r&&t.watch.add(e),ut(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ut(n,a))):(r&&(t.watchAll=!0),n),PT=e=>/^\w*$/.test(e),YB=e=>yf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Cn(e,t,n){let r=-1;const i=PT(t)?[t]:YB(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const oE=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=ut(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else ir(o)&&oE(o,t)}}};var hN=e=>({isOnSubmit:!e||e===Ha.onSubmit,isOnBlur:e===Ha.onBlur,isOnChange:e===Ha.onChange,isOnAll:e===Ha.all,isOnTouch:e===Ha.onTouched}),gN=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),o4e=(e,t,n)=>{const r=yf(ut(e,n));return Cn(r,"root",t[n]),Cn(e,n,r),e},BT=e=>e.type==="file",Js=e=>typeof e=="function",rm=e=>{if(!FT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},qh=e=>Eo(e),UT=e=>e.type==="radio",im=e=>e instanceof RegExp;const mN={value:!1,isValid:!1},bN={value:!0,isValid:!0};var XB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qn(e[0].attributes.value)?qn(e[0].value)||e[0].value===""?bN:{value:e[0].value,isValid:!0}:bN:mN}return mN};const yN={isValid:!1,value:null};var ZB=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,yN):yN;function EN(e,t,n="validate"){if(qh(e)||Array.isArray(e)&&e.every(qh)||lu(e)&&!e)return{type:n,message:qh(e)?e:"",ref:t}}var a1=e=>ir(e)&&!im(e)?e:{value:e,message:""},vN=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:b,valueAsNumber:y,mount:T,disabled:E}=e._f,v=ut(t,b);if(!T||E)return{};const w=o?o[0]:a,A=$=>{r&&w.reportValidity&&(w.setCustomValidity(lu($)?"":$||""),w.reportValidity())},R={},k=UT(a),N=bf(a),B=k||N,q=(y||BT(a))&&qn(a.value)&&qn(v)||rm(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,P=a4e.bind(null,b,n,R),Q=($,oe,fe,ce=Yo.maxLength,De=Yo.minLength)=>{const H=$?oe:fe;R[b]={type:$?ce:De,message:H,ref:a,...P($?ce:De,H)}};if(i?!Array.isArray(v)||!v.length:s&&(!B&&(q||ei(v))||lu(v)&&!v||N&&!XB(o).isValid||k&&!ZB(o).isValid)){const{value:$,message:oe}=qh(s)?{value:!!s,message:s}:a1(s);if($&&(R[b]={type:Yo.required,message:oe,ref:w,...P(Yo.required,oe)},!n))return A(oe),R}if(!q&&(!ei(p)||!ei(f))){let $,oe;const fe=a1(f),ce=a1(p);if(!ei(v)&&!isNaN(v)){const De=a.valueAsNumber||v&&+v;ei(fe.value)||($=De>fe.value),ei(ce.value)||(oe=Denew Date(new Date().toDateString()+" "+D),W=a.type=="time",se=a.type=="week";Eo(fe.value)&&v&&($=W?H(v)>H(fe.value):se?v>fe.value:De>new Date(fe.value)),Eo(ce.value)&&v&&(oe=W?H(v)+$.value,ce=!ei(oe.value)&&v.length<+oe.value;if((fe||ce)&&(Q(fe,$.message,oe.message),!n))return A(R[b].message),R}if(m&&!q&&Eo(v)){const{value:$,message:oe}=a1(m);if(im($)&&!v.match($)&&(R[b]={type:Yo.pattern,message:oe,ref:a,...P(Yo.pattern,oe)},!n))return A(oe),R}if(g){if(Js(g)){const $=await g(v,t),oe=EN($,w);if(oe&&(R[b]={...oe,...P(Yo.validate,oe.message)},!n))return A(oe.message),R}else if(ir(g)){let $={};for(const oe in g){if(!sa($)&&!n)break;const fe=EN(await g[oe](v,t),w,oe);fe&&($={...fe,...P(oe,fe.message)},A(fe.message),n&&(R[b]=$))}if(!sa($)&&(R[b]={ref:w,...$},!n))return R}}return A(!0),R};function s4e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var am=e=>ei(e)||!qB(e);function uu(e,t){if(am(e)||am(t))return e===t;if(F1(e)&&F1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(F1(a)&&F1(o)||ir(a)&&ir(o)||Array.isArray(a)&&Array.isArray(o)?!uu(a,o):a!==o)return!1}}return!0}var QB=e=>e.type==="select-multiple",u4e=e=>UT(e)||bf(e),q4=e=>rm(e)&&e.isConnected,JB=e=>{for(const t in e)if(Js(e[t]))return!0;return!1};function om(e,t={}){const n=Array.isArray(e);if(ir(e)||n)for(const r in e)Array.isArray(e[r])||ir(e[r])&&!JB(e[r])?(t[r]=Array.isArray(e[r])?[]:{},om(e[r],t[r])):ei(e[r])||(t[r]=!0);return t}function eU(e,t,n){const r=Array.isArray(e);if(ir(e)||r)for(const i in e)Array.isArray(e[i])||ir(e[i])&&!JB(e[i])?qn(t)||am(n[i])?n[i]=Array.isArray(e[i])?om(e[i],[]):{...om(e[i])}:eU(e[i],ei(t)?{}:t[i],n[i]):n[i]=!uu(e[i],t[i]);return n}var K4=(e,t)=>eU(e,t,om(t)),tU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>qn(e)?e:t?e===""?NaN:e&&+e:n&&Eo(e)?new Date(e):r?r(e):e;function Y4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return BT(t)?t.files:UT(t)?ZB(e.refs).value:QB(t)?[...t.selectedOptions].map(({value:n})=>n):bf(t)?XB(e.refs).value:tU(qn(t.value)?e.ref.value:t.value,e)}var c4e=(e,t,n,r)=>{const i={};for(const a of e){const o=ut(t,a);o&&Cn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},yd=e=>qn(e)?e:im(e)?e.source:ir(e)?im(e.value)?e.value.source:e.value:e,d4e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _N(e,t,n){const r=ut(e,n);if(r||PT(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=ut(t,a),s=ut(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var p4e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,f4e=(e,t)=>!yf(ut(e,t)).length&&vr(e,t);const h4e={mode:Ha.onSubmit,reValidateMode:Ha.onChange,shouldFocusError:!0};function g4e(e={},t){let n={...h4e,...e},r={submitCount:0,isDirty:!1,isLoading:Js(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=ir(n.defaultValues)||ir(n.values)?Qo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:Qo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:W4(),array:W4(),state:W4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,b=hN(n.mode),y=hN(n.reValidateMode),T=n.criteriaMode===Ha.all,E=U=>re=>{clearTimeout(p),p=setTimeout(U,re)},v=async U=>{if(f.isValid||U){const re=n.resolver?sa((await q()).errors):await Q(i,!0);re!==r.isValid&&m.state.next({isValid:re})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,re=[],de,xe,ye=!0,Te=!0)=>{if(xe&&de){if(s.action=!0,Te&&Array.isArray(ut(i,U))){const Le=de(ut(i,U),xe.argA,xe.argB);ye&&Cn(i,U,Le)}if(Te&&Array.isArray(ut(r.errors,U))){const Le=de(ut(r.errors,U),xe.argA,xe.argB);ye&&Cn(r.errors,U,Le),f4e(r.errors,U)}if(f.touchedFields&&Te&&Array.isArray(ut(r.touchedFields,U))){const Le=de(ut(r.touchedFields,U),xe.argA,xe.argB);ye&&Cn(r.touchedFields,U,Le)}f.dirtyFields&&(r.dirtyFields=K4(a,o)),m.state.next({name:U,isDirty:oe(U,re),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Cn(o,U,re)},R=(U,re)=>{Cn(r.errors,U,re),m.state.next({errors:r.errors})},k=(U,re,de,xe)=>{const ye=ut(i,U);if(ye){const Te=ut(o,U,qn(de)?ut(a,U):de);qn(Te)||xe&&xe.defaultChecked||re?Cn(o,U,re?Te:Y4(ye._f)):De(U,Te),s.mount&&v()}},N=(U,re,de,xe,ye)=>{let Te=!1,Le=!1;const ze={name:U};if(!de||xe){f.isDirty&&(Le=r.isDirty,r.isDirty=ze.isDirty=oe(),Te=Le!==ze.isDirty);const Ye=uu(ut(a,U),re);Le=ut(r.dirtyFields,U),Ye?vr(r.dirtyFields,U):Cn(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Te=Te||f.dirtyFields&&Le!==!Ye}if(de){const Ye=ut(r.touchedFields,U);Ye||(Cn(r.touchedFields,U,de),ze.touchedFields=r.touchedFields,Te=Te||f.touchedFields&&Ye!==de)}return Te&&ye&&m.state.next(ze),Te?ze:{}},B=(U,re,de,xe)=>{const ye=ut(r.errors,U),Te=f.isValid&&lu(re)&&r.isValid!==re;if(e.delayError&&de?(c=E(()=>R(U,de)),c(e.delayError)):(clearTimeout(p),c=null,de?Cn(r.errors,U,de):vr(r.errors,U)),(de?!uu(ye,de):ye)||!sa(xe)||Te){const Le={...xe,...Te&&lu(re)?{isValid:re}:{},errors:r.errors,name:U};r={...r,...Le},m.state.next(Le)}w(!1)},q=async U=>n.resolver(o,n.context,c4e(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:re}=await q(U);if(U)for(const de of U){const xe=ut(re,de);xe?Cn(r.errors,de,xe):vr(r.errors,de)}else r.errors=re;return re},Q=async(U,re,de={valid:!0})=>{for(const xe in U){const ye=U[xe];if(ye){const{_f:Te,...Le}=ye;if(Te){const ze=u.array.has(Te.name),Ye=await vN(ye,o,T,n.shouldUseNativeValidation&&!re,ze);if(Ye[Te.name]&&(de.valid=!1,re))break;!re&&(ut(Ye,Te.name)?ze?o4e(r.errors,Ye,Te.name):Cn(r.errors,Te.name,Ye[Te.name]):vr(r.errors,Te.name))}Le&&await Q(Le,re,de)}}return de.valid},$=()=>{for(const U of u.unMount){const re=ut(i,U);re&&(re._f.refs?re._f.refs.every(de=>!q4(de)):!q4(re._f.ref))&&X(U)}u.unMount=new Set},oe=(U,re)=>(U&&re&&Cn(o,U,re),!uu(pe(),a)),fe=(U,re,de)=>i4e(U,u,{...s.mount?o:qn(re)?a:Eo(U)?{[U]:re}:re},de,re),ce=U=>yf(ut(s.mount?o:a,U,e.shouldUnregister?ut(a,U,[]):[])),De=(U,re,de={})=>{const xe=ut(i,U);let ye=re;if(xe){const Te=xe._f;Te&&(!Te.disabled&&Cn(o,U,tU(re,Te)),ye=rm(Te.ref)&&ei(re)?"":re,QB(Te.ref)?[...Te.ref.options].forEach(Le=>Le.selected=ye.includes(Le.value)):Te.refs?bf(Te.ref)?Te.refs.length>1?Te.refs.forEach(Le=>(!Le.defaultChecked||!Le.disabled)&&(Le.checked=Array.isArray(ye)?!!ye.find(ze=>ze===Le.value):ye===Le.value)):Te.refs[0]&&(Te.refs[0].checked=!!ye):Te.refs.forEach(Le=>Le.checked=Le.value===ye):BT(Te.ref)?Te.ref.value="":(Te.ref.value=ye,Te.ref.type||m.values.next({name:U,values:{...o}})))}(de.shouldDirty||de.shouldTouch)&&N(U,ye,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&D(U)},H=(U,re,de)=>{for(const xe in re){const ye=re[xe],Te=`${U}.${xe}`,Le=ut(i,Te);(u.array.has(U)||!am(ye)||Le&&!Le._f)&&!F1(ye)?H(Te,ye,de):De(Te,ye,de)}},W=(U,re,de={})=>{const xe=ut(i,U),ye=u.array.has(U),Te=Qo(re);Cn(o,U,Te),ye?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&de.shouldDirty&&m.state.next({name:U,dirtyFields:K4(a,o),isDirty:oe(U,Te)})):xe&&!xe._f&&!ei(Te)?H(U,Te,de):De(U,Te,de),gN(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},se=async U=>{const re=U.target;let de=re.name,xe=!0;const ye=ut(i,de),Te=()=>re.type?Y4(ye._f):X3e(U);if(ye){let Le,ze;const Ye=Te(),jt=U.type===fN.BLUR||U.type===fN.FOCUS_OUT,ue=!d4e(ye._f)&&!n.resolver&&!ut(r.errors,de)&&!ye._f.deps||p4e(jt,ut(r.touchedFields,de),r.isSubmitted,y,b),Ee=gN(de,u,jt);Cn(o,de,Ye),jt?(ye._f.onBlur&&ye._f.onBlur(U),c&&c(0)):ye._f.onChange&&ye._f.onChange(U);const qe=N(de,Ye,jt,!1),j=!sa(qe)||Ee;if(!jt&&m.values.next({name:de,type:U.type,values:{...o}}),ue)return f.isValid&&v(),j&&m.state.next({name:de,...Ee?{}:qe});if(!jt&&Ee&&m.state.next({...r}),w(!0),n.resolver){const{errors:me}=await q([de]),Ve=_N(r.errors,i,de),ge=_N(me,i,Ve.name||de);Le=ge.error,de=ge.name,ze=sa(me)}else Le=(await vN(ye,o,T,n.shouldUseNativeValidation))[de],xe=Number.isNaN(Ye)||Ye===ut(o,de,Ye),xe&&(Le?ze=!1:f.isValid&&(ze=await Q(i,!0)));xe&&(ye._f.deps&&D(ye._f.deps),B(de,ze,Le,qe))}},D=async(U,re={})=>{let de,xe;const ye=V4(U);if(w(!0),n.resolver){const Te=await P(qn(U)?U:ye);de=sa(Te),xe=U?!ye.some(Le=>ut(Te,Le)):de}else U?(xe=(await Promise.all(ye.map(async Te=>{const Le=ut(i,Te);return await Q(Le&&Le._f?{[Te]:Le}:Le)}))).every(Boolean),!(!xe&&!r.isValid)&&v()):xe=de=await Q(i);return m.state.next({...!Eo(U)||f.isValid&&de!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:de}:{},errors:r.errors,isValidating:!1}),re.shouldFocus&&!xe&&oE(i,Te=>Te&&ut(r.errors,Te),U?ye:u.mount),xe},pe=U=>{const re={...a,...s.mount?o:{}};return qn(U)?re:Eo(U)?ut(re,U):U.map(de=>ut(re,de))},le=(U,re)=>({invalid:!!ut((re||r).errors,U),isDirty:!!ut((re||r).dirtyFields,U),isTouched:!!ut((re||r).touchedFields,U),error:ut((re||r).errors,U)}),L=U=>{U&&V4(U).forEach(re=>vr(r.errors,re)),m.state.next({errors:U?r.errors:{}})},ie=(U,re,de)=>{const xe=(ut(i,U,{_f:{}})._f||{}).ref;Cn(r.errors,U,{...re,ref:xe}),m.state.next({name:U,errors:r.errors,isValid:!1}),de&&de.shouldFocus&&xe&&xe.focus&&xe.focus()},Se=(U,re)=>Js(U)?m.values.subscribe({next:de=>U(fe(void 0,re),de)}):fe(U,re,!0),X=(U,re={})=>{for(const de of U?V4(U):u.mount)u.mount.delete(de),u.array.delete(de),re.keepValue||(vr(i,de),vr(o,de)),!re.keepError&&vr(r.errors,de),!re.keepDirty&&vr(r.dirtyFields,de),!re.keepTouched&&vr(r.touchedFields,de),!n.shouldUnregister&&!re.keepDefaultValue&&vr(a,de);m.values.next({values:{...o}}),m.state.next({...r,...re.keepDirty?{isDirty:oe()}:{}}),!re.keepIsValid&&v()},ke=({disabled:U,name:re,field:de,fields:xe})=>{if(lu(U)){const ye=U?void 0:ut(o,re,Y4(de?de._f:ut(xe,re)._f));Cn(o,re,ye),N(re,ye,!1,!1,!0)}},te=(U,re={})=>{let de=ut(i,U);const xe=lu(re.disabled);return Cn(i,U,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:U}},name:U,mount:!0,...re}}),u.mount.add(U),de?ke({field:de,disabled:re.disabled,name:U}):k(U,!0,re.value),{...xe?{disabled:re.disabled}:{},...n.progressive?{required:!!re.required,min:yd(re.min),max:yd(re.max),minLength:yd(re.minLength),maxLength:yd(re.maxLength),pattern:yd(re.pattern)}:{},name:U,onChange:se,onBlur:se,ref:ye=>{if(ye){te(U,re),de=ut(i,U);const Te=qn(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,Le=u4e(Te),ze=de._f.refs||[];if(Le?ze.find(Ye=>Ye===Te):Te===de._f.ref)return;Cn(i,U,{_f:{...de._f,...Le?{refs:[...ze.filter(q4),Te,...Array.isArray(ut(a,U))?[{}]:[]],ref:{type:Te.type,name:U}}:{ref:Te}}}),k(U,!1,void 0,Te)}else de=ut(i,U,{}),de._f&&(de._f.mount=!1),(n.shouldUnregister||re.shouldUnregister)&&!(Q3e(u.array,U)&&s.action)&&u.unMount.add(U)}}},Me=()=>n.shouldFocusError&&oE(i,U=>U&&ut(r.errors,U),u.mount),Re=(U,re)=>async de=>{de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let xe=Qo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ye,values:Te}=await q();r.errors=ye,xe=Te}else await Q(i);vr(r.errors,"root"),sa(r.errors)?(m.state.next({errors:{}}),await U(xe,de)):(re&&await re({...r.errors},de),Me(),setTimeout(Me)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Ze=(U,re={})=>{ut(i,U)&&(qn(re.defaultValue)?W(U,ut(a,U)):(W(U,re.defaultValue),Cn(a,U,re.defaultValue)),re.keepTouched||vr(r.touchedFields,U),re.keepDirty||(vr(r.dirtyFields,U),r.isDirty=re.defaultValue?oe(U,ut(a,U)):oe()),re.keepError||(vr(r.errors,U),f.isValid&&v()),m.state.next({...r}))},We=(U,re={})=>{const de=U?Qo(U):a,xe=Qo(de),ye=U&&!sa(U)?xe:a;if(re.keepDefaultValues||(a=de),!re.keepValues){if(re.keepDirtyValues||g)for(const Te of u.mount)ut(r.dirtyFields,Te)?Cn(ye,Te,ut(o,Te)):W(Te,ut(ye,Te));else{if(FT&&qn(U))for(const Te of u.mount){const Le=ut(i,Te);if(Le&&Le._f){const ze=Array.isArray(Le._f.refs)?Le._f.refs[0]:Le._f.ref;if(rm(ze)){const Ye=ze.closest("form");if(Ye){Ye.reset();break}}}}i={}}o=e.shouldUnregister?re.keepDefaultValues?Qo(a):{}:Qo(ye),m.array.next({values:{...ye}}),m.values.next({values:{...ye}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!re.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:re.keepSubmitCount?r.submitCount:0,isDirty:re.keepDirty?r.isDirty:!!(re.keepDefaultValues&&!uu(U,a)),isSubmitted:re.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re.keepDirtyValues?r.dirtyFields:re.keepDefaultValues&&U?K4(a,U):{},touchedFields:re.keepTouched?r.touchedFields:{},errors:re.keepErrors?r.errors:{},isSubmitSuccessful:re.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,re)=>We(Js(U)?U(o):U,re);return{control:{register:te,unregister:X,getFieldState:le,handleSubmit:Re,setError:ie,_executeSchema:q,_getWatch:fe,_getDirty:oe,_updateValid:v,_removeUnmounted:$,_updateFieldArray:A,_updateDisabledField:ke,_getFieldArray:ce,_reset:We,_resetDefaultValues:()=>Js(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:D,register:te,handleSubmit:Re,watch:Se,setValue:W,getValues:pe,reset:dt,resetField:Ze,clearErrors:L,unregister:X,setError:ie,setFocus:(U,re={})=>{const de=ut(i,U),xe=de&&de._f;if(xe){const ye=xe.refs?xe.refs[0]:xe.ref;ye.focus&&(ye.focus(),re.shouldSelect&&ye.select())}},getFieldState:le}}function nU(e={}){const t=st.useRef(),n=st.useRef(),[r,i]=st.useState({isDirty:!1,isValidating:!1,isLoading:Js(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Js(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...g4e(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,r4e({subject:a._subjects.state,next:o=>{n4e(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),st.useEffect(()=>{e.values&&!uu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),st.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=t4e(r,a),t.current}const TN=Ge.hr` border: 0.5px solid ${Et}; `,m4e=Ge(oc)` background-color: transparent; @@ -1121,7 +1121,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho outline: none; border: none; } -`;function E4e(){const e=nU(),t=s=>console.log(s),n=bs(),r=C.useContext(to),i=zt(s=>s.serverState.config);eo();const a=()=>{if(!r)return;const s=e.watch("system_message"),u=e.watch("temperature");r.setSystemMessage(s||""),u&&r.setTemperature(u)},o=()=>{a(),n("/")};return C.useEffect(()=>{i&&(e.setValue("system_message",i.system_message),e.setValue("temperature",i.temperature))},[i]),I.jsx(KB,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:o,className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Settings"})]}),I.jsx("form",{onSubmit:e.handleSubmit(t),children:i?I.jsxs("div",{className:"p-2",children:[I.jsxs("h3",{className:"flex gap-1",children:["System Message",I.jsx(aE,{msg:`Set a system message with information that the LLM should always +`;function E4e(){const e=nU(),t=s=>console.log(s),n=No(),r=C.useContext(to),i=zt(s=>s.serverState.config);eo();const a=()=>{if(!r)return;const s=e.watch("system_message"),u=e.watch("temperature");r.setSystemMessage(s||""),u&&r.setTemperature(u)},o=()=>{a(),n("/")};return C.useEffect(()=>{i&&(e.setValue("system_message",i.system_message),e.setValue("temperature",i.temperature))},[i]),I.jsx(KB,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:o,className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Settings"})]}),I.jsx("form",{onSubmit:e.handleSubmit(t),children:i?I.jsxs("div",{className:"p-2",children:[I.jsxs("h3",{className:"flex gap-1",children:["System Message",I.jsx(aE,{msg:`Set a system message with information that the LLM should always keep in mind (e.g. "Please give concise answers. Always respond in Spanish.")`})]}),I.jsx(HX,{placeholder:"Enter a system message (e.g. 'Always respond in German')",...e.register("system_message")}),I.jsx(TN,{}),I.jsxs("h3",{className:"flex gap-1",children:["Temperature",I.jsx(aE,{msg:`Set temperature to any value between 0 and 1. Higher values will make the LLM more creative, while lower values will make it more @@ -1132,10 +1132,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */sm.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,b=1,y=2,T=1,E=2,v=4,w=8,A=16,R=32,k=64,N=128,B=256,q=512,P=30,Q="...",$=800,oe=16,fe=1,ce=2,De=3,H=1/0,W=9007199254740991,se=17976931348623157e292,D=0/0,pe=4294967295,le=pe-1,L=pe>>>1,ie=[["ary",N],["bind",T],["bindKey",E],["curry",w],["curryRight",A],["flip",q],["partial",R],["partialRight",k],["rearg",B]],Se="[object Arguments]",X="[object Array]",ke="[object AsyncFunction]",te="[object Boolean]",Me="[object Date]",Re="[object DOMException]",Ze="[object Error]",We="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",je="[object Number]",pt="[object Null]",U="[object Object]",re="[object Promise]",de="[object Proxy]",xe="[object RegExp]",ye="[object Set]",Te="[object String]",Le="[object Symbol]",ze="[object Undefined]",Ye="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",Ee="[object DataView]",qe="[object Float32Array]",j="[object Float64Array]",me="[object Int8Array]",Ve="[object Int16Array]",ge="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",ne="[object Uint16Array]",ve="[object Uint32Array]",Qe=/\b__p \+= '';/g,Fe=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,Je=/[&<>"']/g,Rt=RegExp(rt.source),Qt=RegExp(Je.source),kt=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,Xt=/<%=([\s\S]+?)%>/g,Wr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,Kr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aa=/[\\^$.*+?()[\]{}|]/g,si=RegExp(Aa.source),Or=/^\s+/,Es=/\s/,vs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yr=/\{\n\/\* \[wrapped with (.+)\] \*/,_s=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dr=/[()=,{}\[\]\/\s]/,Si=/\\(\\)?/g,Nl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,J=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,ar=/^(?:0|[1-9]\d*)$/,or=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zn=/($^)/,No=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Lr="\\u0300-\\u036f",Ef="\\ufe20-\\ufe2f",vf="\\u20d0-\\u20ff",GT=Lr+Ef+vf,VT="\\u2700-\\u27bf",WT="a-z\\xdf-\\xf6\\xf8-\\xff",yU="\\xac\\xb1\\xd7\\xf7",EU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vU="\\u2000-\\u206f",_U=" \\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",qT="A-Z\\xc0-\\xd6\\xd8-\\xde",KT="\\ufe0e\\ufe0f",YT=yU+EU+vU+_U,G2="['’]",TU="["+no+"]",XT="["+YT+"]",_f="["+GT+"]",ZT="\\d+",SU="["+VT+"]",QT="["+WT+"]",JT="[^"+no+YT+ZT+VT+WT+qT+"]",V2="\\ud83c[\\udffb-\\udfff]",wU="(?:"+_f+"|"+V2+")",eS="[^"+no+"]",W2="(?:\\ud83c[\\udde6-\\uddff]){2}",q2="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+qT+"]",tS="\\u200d",nS="(?:"+QT+"|"+JT+")",AU="(?:"+Bu+"|"+JT+")",rS="(?:"+G2+"(?:d|ll|m|re|s|t|ve))?",iS="(?:"+G2+"(?:D|LL|M|RE|S|T|VE))?",aS=wU+"?",oS="["+KT+"]?",CU="(?:"+tS+"(?:"+[eS,W2,q2].join("|")+")"+oS+aS+")*",kU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sS=oS+aS+CU,IU="(?:"+[SU,W2,q2].join("|")+")"+sS,RU="(?:"+[eS+_f+"?",_f,W2,q2,TU].join("|")+")",NU=RegExp(G2,"g"),OU=RegExp(_f,"g"),K2=RegExp(V2+"(?="+V2+")|"+RU+sS,"g"),DU=RegExp([Bu+"?"+QT+"+"+rS+"(?="+[XT,Bu,"$"].join("|")+")",AU+"+"+iS+"(?="+[XT,Bu+nS,"$"].join("|")+")",Bu+"?"+nS+"+"+rS,Bu+"+"+iS,xU,kU,ZT,IU].join("|"),"g"),LU=RegExp("["+tS+no+GT+KT+"]"),MU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],PU=-1,En={};En[qe]=En[j]=En[me]=En[Ve]=En[ge]=En[G]=En[K]=En[ne]=En[ve]=!0,En[Se]=En[X]=En[ue]=En[te]=En[Ee]=En[Me]=En[Ze]=En[We]=En[ot]=En[je]=En[U]=En[xe]=En[ye]=En[Te]=En[Ye]=!1;var mn={};mn[Se]=mn[X]=mn[ue]=mn[Ee]=mn[te]=mn[Me]=mn[qe]=mn[j]=mn[me]=mn[Ve]=mn[ge]=mn[ot]=mn[je]=mn[U]=mn[xe]=mn[ye]=mn[Te]=mn[Le]=mn[G]=mn[K]=mn[ne]=mn[ve]=!0,mn[Ze]=mn[We]=mn[Ye]=!1;var BU={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},UU={"&":"&","<":"<",">":">",'"':""","'":"'"},$U={"&":"&","<":"<",">":">",""":'"',"'":"'"},zU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HU=parseFloat,jU=parseInt,lS=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,GU=typeof self=="object"&&self&&self.Object===Object&&self,mr=lS||GU||Function("return this")(),Y2=t&&!t.nodeType&&t,Ol=Y2&&!0&&e&&!e.nodeType&&e,uS=Ol&&Ol.exports===Y2,X2=uS&&lS.process,Yi=function(){try{var ee=Ol&&Ol.require&&Ol.require("util").types;return ee||X2&&X2.binding&&X2.binding("util")}catch{}}(),cS=Yi&&Yi.isArrayBuffer,dS=Yi&&Yi.isDate,pS=Yi&&Yi.isMap,fS=Yi&&Yi.isRegExp,hS=Yi&&Yi.isSet,gS=Yi&&Yi.isTypedArray;function wi(ee,_e,he){switch(he.length){case 0:return ee.call(_e);case 1:return ee.call(_e,he[0]);case 2:return ee.call(_e,he[0],he[1]);case 3:return ee.call(_e,he[0],he[1],he[2])}return ee.apply(_e,he)}function VU(ee,_e,he,et){for(var _t=-1,Jt=ee==null?0:ee.length;++_t-1}function Z2(ee,_e,he){for(var et=-1,_t=ee==null?0:ee.length;++et<_t;)if(he(_e,ee[et]))return!0;return!1}function An(ee,_e){for(var he=-1,et=ee==null?0:ee.length,_t=Array(et);++he-1;);return he}function SS(ee,_e){for(var he=ee.length;he--&&Uu(_e,ee[he],0)>-1;);return he}function e$(ee,_e){for(var he=ee.length,et=0;he--;)ee[he]===_e&&++et;return et}var t$=t5(BU),n$=t5(UU);function r$(ee){return"\\"+zU[ee]}function i$(ee,_e){return ee==null?n:ee[_e]}function $u(ee){return LU.test(ee)}function a$(ee){return MU.test(ee)}function o$(ee){for(var _e,he=[];!(_e=ee.next()).done;)he.push(_e.value);return he}function a5(ee){var _e=-1,he=Array(ee.size);return ee.forEach(function(et,_t){he[++_e]=[_t,et]}),he}function wS(ee,_e){return function(he){return ee(_e(he))}}function ws(ee,_e){for(var he=-1,et=ee.length,_t=0,Jt=[];++he-1}function q$(l,d){var h=this.__data__,_=Uf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Oo.prototype.clear=j$,Oo.prototype.delete=G$,Oo.prototype.get=V$,Oo.prototype.has=W$,Oo.prototype.set=q$;function Do(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Ji(l,d,h,_,x,F){var z,Z=d&f,ae=d&m,we=d&g;if(h&&(z=x?h(l,_,x,F):h(l)),z!==n)return z;if(!Rn(l))return l;var Ce=Tt(l);if(Ce){if(z=Zz(l),!Z)return li(l,z)}else{var Ie=Fr(l),Xe=Ie==We||Ie==dt;if(Rs(l))return ow(l,Z);if(Ie==U||Ie==Se||Xe&&!x){if(z=ae||Xe?{}:Aw(l),!Z)return ae?$z(l,uz(z,l)):Uz(l,FS(z,l))}else{if(!mn[Ie])return x?l:{};z=Qz(l,Ie,Z)}}F||(F=new ka);var st=F.get(l);if(st)return st;F.set(l,z),eA(l)?l.forEach(function(yt){z.add(Ji(yt,d,h,yt,l,F))}):Qw(l)&&l.forEach(function(yt,Nt){z.set(Nt,Ji(yt,d,h,Nt,l,F))});var bt=we?ae?N5:R5:ae?ci:sr,wt=Ce?n:bt(l);return Xi(wt||l,function(yt,Nt){wt&&(Nt=yt,yt=l[Nt]),Pc(z,Nt,Ji(yt,d,h,Nt,l,F))}),z}function cz(l){var d=sr(l);return function(h){return PS(h,l,d)}}function PS(l,d,h){var _=h.length;if(l==null)return!_;for(l=pn(l);_--;){var x=h[_],F=d[x],z=l[x];if(z===n&&!(x in l)||!F(z))return!1}return!0}function BS(l,d,h){if(typeof l!="function")throw new Zi(o);return Gc(function(){l.apply(n,h)},d)}function Bc(l,d,h,_){var x=-1,F=Tf,z=!0,Z=l.length,ae=[],we=d.length;if(!Z)return ae;h&&(d=An(d,Ai(h))),_?(F=Z2,z=!1):d.length>=i&&(F=Nc,z=!1,d=new Ml(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:nA(_);h<_;)l[h++]=d;return l}function $S(l,d){var h=[];return Cs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function br(l,d,h,_,x){var F=-1,z=l.length;for(h||(h=eH),x||(x=[]);++F0&&h(Z)?d>1?br(Z,d-1,h,_,x):Ss(x,Z):_||(x[x.length]=Z)}return x}var p5=pw(),zS=pw(!0);function ro(l,d){return l&&p5(l,d,sr)}function f5(l,d){return l&&zS(l,d,sr)}function zf(l,d){return Ts(d,function(h){return Bo(l[h])})}function Pl(l,d){d=xs(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[ao(d[h++])];return h&&h==_?l:n}function HS(l,d,h){var _=d(l);return Tt(l)?_:Ss(_,h(l))}function Xr(l){return l==null?l===n?ze:pt:Dl&&Dl in pn(l)?Kz(l):sH(l)}function h5(l,d){return l>d}function fz(l,d){return l!=null&&an.call(l,d)}function hz(l,d){return l!=null&&d in pn(l)}function gz(l,d,h){return l>=Mr(d,h)&&l=120&&Ce.length>=120)?new Ml(z&&Ce):n}Ce=l[0];var Ie=-1,Xe=Z[0];e:for(;++Ie-1;)Z!==l&&Of.call(Z,ae,1),Of.call(l,ae,1);return l}function QS(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Po(x)?Of.call(l,x,1):S5(l,x)}}return l}function v5(l,d){return l+Mf(OS()*(d-l+1))}function xz(l,d,h,_){for(var x=-1,F=Jn(Lf((d-l)/(h||1)),0),z=he(F);F--;)z[_?F:++x]=l,l+=h;return z}function _5(l,d){var h="";if(!l||d<1||d>W)return h;do d%2&&(h+=l),d=Mf(d/2),d&&(l+=l);while(d);return h}function xt(l,d){return B5(xw(l,d,di),l+"")}function Iz(l){return MS(Zu(l))}function Rz(l,d){var h=Zu(l);return Qf(h,Fl(d,0,h.length))}function zc(l,d,h,_){if(!Rn(l))return l;d=xs(d,l);for(var x=-1,F=d.length,z=F-1,Z=l;Z!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=he(x);++_>>1,z=l[F];z!==null&&!ki(z)&&(h?z<=d:z=i){var we=d?null:Gz(l);if(we)return wf(we);z=!1,x=Nc,ae=new Ml}else ae=d?[]:Z;e:for(;++_=_?l:ea(l,d,h)}var aw=_$||function(l){return mr.clearTimeout(l)};function ow(l,d){if(d)return l.slice();var h=l.length,_=kS?kS(h):new l.constructor(h);return l.copy(_),_}function k5(l){var d=new l.constructor(l.byteLength);return new Rf(d).set(new Rf(l)),d}function Mz(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function Fz(l){var d=new l.constructor(l.source,Ke.exec(l));return d.lastIndex=l.lastIndex,d}function Pz(l){return Fc?pn(Fc.call(l)):{}}function sw(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function lw(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=ki(l),z=d!==n,Z=d===null,ae=d===d,we=ki(d);if(!Z&&!we&&!F&&l>d||F&&z&&ae&&!Z&&!we||_&&z&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=Z)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function uw(l,d,h,_){for(var x=-1,F=l.length,z=h.length,Z=-1,ae=d.length,we=Jn(F-z,0),Ce=he(ae+we),Ie=!_;++Z1?h[x-1]:n,z=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,z&&Zr(h[0],h[1],z)&&(F=x<3?n:F,x=1),d=pn(d);++_-1?x[F?d[z]:z]:n}}function gw(l){return Fo(function(d){var h=d.length,_=h,x=Qi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Zi(o);if(x&&!z&&Xf(F)=="wrapper")var z=new Qi([],!0)}for(_=z?_:h;++_1&&Bt.reverse(),Ce&&aeZ))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Xe=!0,st=h&y?new Ml:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(vs,`{ + */sm.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,b=1,y=2,T=1,E=2,v=4,w=8,A=16,R=32,k=64,N=128,B=256,q=512,P=30,Q="...",$=800,oe=16,fe=1,ce=2,De=3,H=1/0,W=9007199254740991,se=17976931348623157e292,D=0/0,pe=4294967295,le=pe-1,L=pe>>>1,ie=[["ary",N],["bind",T],["bindKey",E],["curry",w],["curryRight",A],["flip",q],["partial",R],["partialRight",k],["rearg",B]],Se="[object Arguments]",X="[object Array]",ke="[object AsyncFunction]",te="[object Boolean]",Me="[object Date]",Re="[object DOMException]",Ze="[object Error]",We="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",je="[object Number]",pt="[object Null]",U="[object Object]",re="[object Promise]",de="[object Proxy]",xe="[object RegExp]",ye="[object Set]",Te="[object String]",Le="[object Symbol]",ze="[object Undefined]",Ye="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",Ee="[object DataView]",qe="[object Float32Array]",j="[object Float64Array]",me="[object Int8Array]",Ve="[object Int16Array]",ge="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",ne="[object Uint16Array]",ve="[object Uint32Array]",Qe=/\b__p \+= '';/g,Fe=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,Je=/[&<>"']/g,Rt=RegExp(rt.source),Qt=RegExp(Je.source),kt=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,Xt=/<%=([\s\S]+?)%>/g,Wr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,Kr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aa=/[\\^$.*+?()[\]{}|]/g,si=RegExp(Aa.source),Or=/^\s+/,Es=/\s/,vs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yr=/\{\n\/\* \[wrapped with (.+)\] \*/,_s=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dr=/[()=,{}\[\]\/\s]/,Si=/\\(\\)?/g,Nl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,J=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,ar=/^(?:0|[1-9]\d*)$/,or=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zn=/($^)/,Oo=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Lr="\\u0300-\\u036f",Ef="\\ufe20-\\ufe2f",vf="\\u20d0-\\u20ff",GT=Lr+Ef+vf,VT="\\u2700-\\u27bf",WT="a-z\\xdf-\\xf6\\xf8-\\xff",yU="\\xac\\xb1\\xd7\\xf7",EU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vU="\\u2000-\\u206f",_U=" \\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",qT="A-Z\\xc0-\\xd6\\xd8-\\xde",KT="\\ufe0e\\ufe0f",YT=yU+EU+vU+_U,G2="['’]",TU="["+no+"]",XT="["+YT+"]",_f="["+GT+"]",ZT="\\d+",SU="["+VT+"]",QT="["+WT+"]",JT="[^"+no+YT+ZT+VT+WT+qT+"]",V2="\\ud83c[\\udffb-\\udfff]",wU="(?:"+_f+"|"+V2+")",eS="[^"+no+"]",W2="(?:\\ud83c[\\udde6-\\uddff]){2}",q2="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+qT+"]",tS="\\u200d",nS="(?:"+QT+"|"+JT+")",AU="(?:"+Bu+"|"+JT+")",rS="(?:"+G2+"(?:d|ll|m|re|s|t|ve))?",iS="(?:"+G2+"(?:D|LL|M|RE|S|T|VE))?",aS=wU+"?",oS="["+KT+"]?",CU="(?:"+tS+"(?:"+[eS,W2,q2].join("|")+")"+oS+aS+")*",kU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sS=oS+aS+CU,IU="(?:"+[SU,W2,q2].join("|")+")"+sS,RU="(?:"+[eS+_f+"?",_f,W2,q2,TU].join("|")+")",NU=RegExp(G2,"g"),OU=RegExp(_f,"g"),K2=RegExp(V2+"(?="+V2+")|"+RU+sS,"g"),DU=RegExp([Bu+"?"+QT+"+"+rS+"(?="+[XT,Bu,"$"].join("|")+")",AU+"+"+iS+"(?="+[XT,Bu+nS,"$"].join("|")+")",Bu+"?"+nS+"+"+rS,Bu+"+"+iS,xU,kU,ZT,IU].join("|"),"g"),LU=RegExp("["+tS+no+GT+KT+"]"),MU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],PU=-1,En={};En[qe]=En[j]=En[me]=En[Ve]=En[ge]=En[G]=En[K]=En[ne]=En[ve]=!0,En[Se]=En[X]=En[ue]=En[te]=En[Ee]=En[Me]=En[Ze]=En[We]=En[ot]=En[je]=En[U]=En[xe]=En[ye]=En[Te]=En[Ye]=!1;var mn={};mn[Se]=mn[X]=mn[ue]=mn[Ee]=mn[te]=mn[Me]=mn[qe]=mn[j]=mn[me]=mn[Ve]=mn[ge]=mn[ot]=mn[je]=mn[U]=mn[xe]=mn[ye]=mn[Te]=mn[Le]=mn[G]=mn[K]=mn[ne]=mn[ve]=!0,mn[Ze]=mn[We]=mn[Ye]=!1;var BU={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},UU={"&":"&","<":"<",">":">",'"':""","'":"'"},$U={"&":"&","<":"<",">":">",""":'"',"'":"'"},zU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HU=parseFloat,jU=parseInt,lS=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,GU=typeof self=="object"&&self&&self.Object===Object&&self,mr=lS||GU||Function("return this")(),Y2=t&&!t.nodeType&&t,Ol=Y2&&!0&&e&&!e.nodeType&&e,uS=Ol&&Ol.exports===Y2,X2=uS&&lS.process,Yi=function(){try{var ee=Ol&&Ol.require&&Ol.require("util").types;return ee||X2&&X2.binding&&X2.binding("util")}catch{}}(),cS=Yi&&Yi.isArrayBuffer,dS=Yi&&Yi.isDate,pS=Yi&&Yi.isMap,fS=Yi&&Yi.isRegExp,hS=Yi&&Yi.isSet,gS=Yi&&Yi.isTypedArray;function wi(ee,_e,he){switch(he.length){case 0:return ee.call(_e);case 1:return ee.call(_e,he[0]);case 2:return ee.call(_e,he[0],he[1]);case 3:return ee.call(_e,he[0],he[1],he[2])}return ee.apply(_e,he)}function VU(ee,_e,he,et){for(var _t=-1,Jt=ee==null?0:ee.length;++_t-1}function Z2(ee,_e,he){for(var et=-1,_t=ee==null?0:ee.length;++et<_t;)if(he(_e,ee[et]))return!0;return!1}function An(ee,_e){for(var he=-1,et=ee==null?0:ee.length,_t=Array(et);++he-1;);return he}function SS(ee,_e){for(var he=ee.length;he--&&Uu(_e,ee[he],0)>-1;);return he}function e$(ee,_e){for(var he=ee.length,et=0;he--;)ee[he]===_e&&++et;return et}var t$=t5(BU),n$=t5(UU);function r$(ee){return"\\"+zU[ee]}function i$(ee,_e){return ee==null?n:ee[_e]}function $u(ee){return LU.test(ee)}function a$(ee){return MU.test(ee)}function o$(ee){for(var _e,he=[];!(_e=ee.next()).done;)he.push(_e.value);return he}function a5(ee){var _e=-1,he=Array(ee.size);return ee.forEach(function(et,_t){he[++_e]=[_t,et]}),he}function wS(ee,_e){return function(he){return ee(_e(he))}}function ws(ee,_e){for(var he=-1,et=ee.length,_t=0,Jt=[];++he-1}function q$(l,d){var h=this.__data__,_=Uf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Do.prototype.clear=j$,Do.prototype.delete=G$,Do.prototype.get=V$,Do.prototype.has=W$,Do.prototype.set=q$;function Lo(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Ji(l,d,h,_,x,F){var z,Z=d&f,ae=d&m,we=d&g;if(h&&(z=x?h(l,_,x,F):h(l)),z!==n)return z;if(!Rn(l))return l;var Ce=Tt(l);if(Ce){if(z=Zz(l),!Z)return li(l,z)}else{var Ie=Fr(l),Xe=Ie==We||Ie==dt;if(Rs(l))return ow(l,Z);if(Ie==U||Ie==Se||Xe&&!x){if(z=ae||Xe?{}:Aw(l),!Z)return ae?$z(l,uz(z,l)):Uz(l,FS(z,l))}else{if(!mn[Ie])return x?l:{};z=Qz(l,Ie,Z)}}F||(F=new ka);var lt=F.get(l);if(lt)return lt;F.set(l,z),eA(l)?l.forEach(function(yt){z.add(Ji(yt,d,h,yt,l,F))}):Qw(l)&&l.forEach(function(yt,Nt){z.set(Nt,Ji(yt,d,h,Nt,l,F))});var bt=we?ae?N5:R5:ae?ci:sr,wt=Ce?n:bt(l);return Xi(wt||l,function(yt,Nt){wt&&(Nt=yt,yt=l[Nt]),Pc(z,Nt,Ji(yt,d,h,Nt,l,F))}),z}function cz(l){var d=sr(l);return function(h){return PS(h,l,d)}}function PS(l,d,h){var _=h.length;if(l==null)return!_;for(l=pn(l);_--;){var x=h[_],F=d[x],z=l[x];if(z===n&&!(x in l)||!F(z))return!1}return!0}function BS(l,d,h){if(typeof l!="function")throw new Zi(o);return Gc(function(){l.apply(n,h)},d)}function Bc(l,d,h,_){var x=-1,F=Tf,z=!0,Z=l.length,ae=[],we=d.length;if(!Z)return ae;h&&(d=An(d,Ai(h))),_?(F=Z2,z=!1):d.length>=i&&(F=Nc,z=!1,d=new Ml(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:nA(_);h<_;)l[h++]=d;return l}function $S(l,d){var h=[];return Cs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function br(l,d,h,_,x){var F=-1,z=l.length;for(h||(h=eH),x||(x=[]);++F0&&h(Z)?d>1?br(Z,d-1,h,_,x):Ss(x,Z):_||(x[x.length]=Z)}return x}var p5=pw(),zS=pw(!0);function ro(l,d){return l&&p5(l,d,sr)}function f5(l,d){return l&&zS(l,d,sr)}function zf(l,d){return Ts(d,function(h){return Uo(l[h])})}function Pl(l,d){d=xs(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[ao(d[h++])];return h&&h==_?l:n}function HS(l,d,h){var _=d(l);return Tt(l)?_:Ss(_,h(l))}function Xr(l){return l==null?l===n?ze:pt:Dl&&Dl in pn(l)?Kz(l):sH(l)}function h5(l,d){return l>d}function fz(l,d){return l!=null&&an.call(l,d)}function hz(l,d){return l!=null&&d in pn(l)}function gz(l,d,h){return l>=Mr(d,h)&&l=120&&Ce.length>=120)?new Ml(z&&Ce):n}Ce=l[0];var Ie=-1,Xe=Z[0];e:for(;++Ie-1;)Z!==l&&Of.call(Z,ae,1),Of.call(l,ae,1);return l}function QS(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Bo(x)?Of.call(l,x,1):S5(l,x)}}return l}function v5(l,d){return l+Mf(OS()*(d-l+1))}function xz(l,d,h,_){for(var x=-1,F=Jn(Lf((d-l)/(h||1)),0),z=he(F);F--;)z[_?F:++x]=l,l+=h;return z}function _5(l,d){var h="";if(!l||d<1||d>W)return h;do d%2&&(h+=l),d=Mf(d/2),d&&(l+=l);while(d);return h}function xt(l,d){return B5(xw(l,d,di),l+"")}function Iz(l){return MS(Zu(l))}function Rz(l,d){var h=Zu(l);return Qf(h,Fl(d,0,h.length))}function zc(l,d,h,_){if(!Rn(l))return l;d=xs(d,l);for(var x=-1,F=d.length,z=F-1,Z=l;Z!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=he(x);++_>>1,z=l[F];z!==null&&!ki(z)&&(h?z<=d:z=i){var we=d?null:Gz(l);if(we)return wf(we);z=!1,x=Nc,ae=new Ml}else ae=d?[]:Z;e:for(;++_=_?l:ea(l,d,h)}var aw=_$||function(l){return mr.clearTimeout(l)};function ow(l,d){if(d)return l.slice();var h=l.length,_=kS?kS(h):new l.constructor(h);return l.copy(_),_}function k5(l){var d=new l.constructor(l.byteLength);return new Rf(d).set(new Rf(l)),d}function Mz(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function Fz(l){var d=new l.constructor(l.source,Ke.exec(l));return d.lastIndex=l.lastIndex,d}function Pz(l){return Fc?pn(Fc.call(l)):{}}function sw(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function lw(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=ki(l),z=d!==n,Z=d===null,ae=d===d,we=ki(d);if(!Z&&!we&&!F&&l>d||F&&z&&ae&&!Z&&!we||_&&z&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=Z)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function uw(l,d,h,_){for(var x=-1,F=l.length,z=h.length,Z=-1,ae=d.length,we=Jn(F-z,0),Ce=he(ae+we),Ie=!_;++Z1?h[x-1]:n,z=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,z&&Zr(h[0],h[1],z)&&(F=x<3?n:F,x=1),d=pn(d);++_-1?x[F?d[z]:z]:n}}function gw(l){return Po(function(d){var h=d.length,_=h,x=Qi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Zi(o);if(x&&!z&&Xf(F)=="wrapper")var z=new Qi([],!0)}for(_=z?_:h;++_1&&Bt.reverse(),Ce&&aeZ))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Xe=!0,lt=h&y?new Ml:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(vs,`{ /* [wrapped with `+d+`] */ -`)}function eH(l){return Tt(l)||$l(l)||!!(RS&&l&&l[RS])}function Po(l,d){var h=typeof l;return d=d??W,!!d&&(h=="number"||h!="symbol"&&ar.test(l))&&l>-1&&l%1==0&&l0){if(++d>=$)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Qf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,$w(l,h)});function zw(l){var d=M(l);return d.__chain__=!0,d}function dj(l,d){return d(l),l}function Jf(l,d){return d(l)}var pj=Fo(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return d5(F,l)};return d>1||this.__actions__.length||!(_ instanceof Mt)||!Po(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Jf,args:[x],thisArg:n}),new Qi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function fj(){return zw(this)}function hj(){return new Qi(this.value(),this.__chain__)}function gj(){this.__values__===n&&(this.__values__=tA(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function mj(){return this}function bj(l){for(var d,h=this;h instanceof Bf;){var _=Lw(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function yj(){var l=this.__wrapped__;if(l instanceof Mt){var d=l;return this.__actions__.length&&(d=new Mt(this)),d=d.reverse(),d.__actions__.push({func:Jf,args:[U5],thisArg:n}),new Qi(d,this.__chain__)}return this.thru(U5)}function Ej(){return rw(this.__wrapped__,this.__actions__)}var vj=Vf(function(l,d,h){an.call(l,h)?++l[h]:Lo(l,h,1)});function _j(l,d,h){var _=Tt(l)?mS:dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}function Tj(l,d){var h=Tt(l)?Ts:$S;return h(l,mt(d,3))}var Sj=hw(Mw),wj=hw(Fw);function Aj(l,d){return br(e0(l,d),1)}function Cj(l,d){return br(e0(l,d),H)}function kj(l,d,h){return h=h===n?1:St(h),br(e0(l,d),h)}function Hw(l,d){var h=Tt(l)?Xi:Cs;return h(l,mt(d,3))}function jw(l,d){var h=Tt(l)?WU:US;return h(l,mt(d,3))}var xj=Vf(function(l,d,h){an.call(l,h)?l[h].push(d):Lo(l,h,[d])});function Ij(l,d,h,_){l=ui(l)?l:Zu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Jn(x+h,0)),a0(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Uu(l,d,h)>-1}var Rj=xt(function(l,d,h){var _=-1,x=typeof d=="function",F=ui(l)?he(l.length):[];return Cs(l,function(z){F[++_]=x?wi(d,z,h):Uc(z,d,h)}),F}),Nj=Vf(function(l,d,h){Lo(l,h,d)});function e0(l,d){var h=Tt(l)?An:WS;return h(l,mt(d,3))}function Oj(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),XS(l,d,h))}var Dj=Vf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Lj(l,d,h){var _=Tt(l)?Q2:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,Cs)}function Mj(l,d,h){var _=Tt(l)?qU:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,US)}function Fj(l,d){var h=Tt(l)?Ts:$S;return h(l,r0(mt(d,3)))}function Pj(l){var d=Tt(l)?MS:Iz;return d(l)}function Bj(l,d,h){(h?Zr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?oz:Rz;return _(l,d)}function Uj(l){var d=Tt(l)?sz:Oz;return d(l)}function $j(l){if(l==null)return 0;if(ui(l))return a0(l)?zu(l):l.length;var d=Fr(l);return d==ot||d==ye?l.size:b5(l).length}function zj(l,d,h){var _=Tt(l)?J2:Dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}var Hj=xt(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Zr(l,d[0],d[1])?d=[]:h>2&&Zr(d[0],d[1],d[2])&&(d=[d[0]]),XS(l,br(d,1),[])}),t0=T$||function(){return mr.Date.now()};function jj(l,d){if(typeof d!="function")throw new Zi(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function Gw(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,Mo(l,N,n,n,n,n,d)}function Vw(l,d){var h;if(typeof d!="function")throw new Zi(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var z5=xt(function(l,d,h){var _=T;if(h.length){var x=ws(h,Yu(z5));_|=R}return Mo(l,_,d,h,x)}),Ww=xt(function(l,d,h){var _=T|E;if(h.length){var x=ws(h,Yu(Ww));_|=R}return Mo(d,_,l,h,x)});function qw(l,d,h){d=h?n:d;var _=Mo(l,w,n,n,n,n,n,d);return _.placeholder=qw.placeholder,_}function Kw(l,d,h){d=h?n:d;var _=Mo(l,A,n,n,n,n,n,d);return _.placeholder=Kw.placeholder,_}function Yw(l,d,h){var _,x,F,z,Z,ae,we=0,Ce=!1,Ie=!1,Xe=!0;if(typeof l!="function")throw new Zi(o);d=na(d)||0,Rn(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Jn(na(h.maxWait)||0,d):F,Xe="trailing"in h?!!h.trailing:Xe);function st(Hn){var Ia=_,$o=x;return _=x=n,we=Hn,z=l.apply($o,Ia),z}function bt(Hn){return we=Hn,Z=Gc(Nt,d),Ce?st(Hn):z}function wt(Hn){var Ia=Hn-ae,$o=Hn-we,hA=d-Ia;return Ie?Mr(hA,F-$o):hA}function yt(Hn){var Ia=Hn-ae,$o=Hn-we;return ae===n||Ia>=d||Ia<0||Ie&&$o>=F}function Nt(){var Hn=t0();if(yt(Hn))return Bt(Hn);Z=Gc(Nt,wt(Hn))}function Bt(Hn){return Z=n,Xe&&_?st(Hn):(_=x=n,z)}function xi(){Z!==n&&aw(Z),we=0,_=ae=x=Z=n}function Qr(){return Z===n?z:Bt(t0())}function Ii(){var Hn=t0(),Ia=yt(Hn);if(_=arguments,x=this,ae=Hn,Ia){if(Z===n)return bt(ae);if(Ie)return aw(Z),Z=Gc(Nt,d),st(ae)}return Z===n&&(Z=Gc(Nt,d)),z}return Ii.cancel=xi,Ii.flush=Qr,Ii}var Gj=xt(function(l,d){return BS(l,1,d)}),Vj=xt(function(l,d,h){return BS(l,na(d)||0,h)});function Wj(l){return Mo(l,q)}function n0(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Zi(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var z=l.apply(this,_);return h.cache=F.set(x,z)||F,z};return h.cache=new(n0.Cache||Do),h}n0.Cache=Do;function r0(l){if(typeof l!="function")throw new Zi(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function qj(l){return Vw(2,l)}var Kj=Lz(function(l,d){d=d.length==1&&Tt(d[0])?An(d[0],Ai(mt())):An(br(d,1),Ai(mt()));var h=d.length;return xt(function(_){for(var x=-1,F=Mr(_.length,h);++x=d}),$l=jS(function(){return arguments}())?jS:function(l){return Mn(l)&&an.call(l,"callee")&&!IS.call(l,"callee")},Tt=he.isArray,uG=cS?Ai(cS):bz;function ui(l){return l!=null&&i0(l.length)&&!Bo(l)}function zn(l){return Mn(l)&&ui(l)}function cG(l){return l===!0||l===!1||Mn(l)&&Xr(l)==te}var Rs=w$||J5,dG=dS?Ai(dS):yz;function pG(l){return Mn(l)&&l.nodeType===1&&!Vc(l)}function fG(l){if(l==null)return!0;if(ui(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Rs(l)||Xu(l)||$l(l)))return!l.length;var d=Fr(l);if(d==ot||d==ye)return!l.size;if(jc(l))return!b5(l).length;for(var h in l)if(an.call(l,h))return!1;return!0}function hG(l,d){return $c(l,d)}function gG(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?$c(l,d,n,h):!!_}function j5(l){if(!Mn(l))return!1;var d=Xr(l);return d==Ze||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Vc(l)}function mG(l){return typeof l=="number"&&NS(l)}function Bo(l){if(!Rn(l))return!1;var d=Xr(l);return d==We||d==dt||d==ke||d==de}function Zw(l){return typeof l=="number"&&l==St(l)}function i0(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Rn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Mn(l){return l!=null&&typeof l=="object"}var Qw=pS?Ai(pS):vz;function bG(l,d){return l===d||m5(l,d,D5(d))}function yG(l,d,h){return h=typeof h=="function"?h:n,m5(l,d,D5(d),h)}function EG(l){return Jw(l)&&l!=+l}function vG(l){if(rH(l))throw new _t(a);return GS(l)}function _G(l){return l===null}function TG(l){return l==null}function Jw(l){return typeof l=="number"||Mn(l)&&Xr(l)==je}function Vc(l){if(!Mn(l)||Xr(l)!=U)return!1;var d=Nf(l);if(d===null)return!0;var h=an.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&kf.call(h)==y$}var G5=fS?Ai(fS):_z;function SG(l){return Zw(l)&&l>=-W&&l<=W}var eA=hS?Ai(hS):Tz;function a0(l){return typeof l=="string"||!Tt(l)&&Mn(l)&&Xr(l)==Te}function ki(l){return typeof l=="symbol"||Mn(l)&&Xr(l)==Le}var Xu=gS?Ai(gS):Sz;function wG(l){return l===n}function AG(l){return Mn(l)&&Fr(l)==Ye}function CG(l){return Mn(l)&&Xr(l)==jt}var kG=Yf(y5),xG=Yf(function(l,d){return l<=d});function tA(l){if(!l)return[];if(ui(l))return a0(l)?Ca(l):li(l);if(Oc&&l[Oc])return o$(l[Oc]());var d=Fr(l),h=d==ot?a5:d==ye?wf:Zu;return h(l)}function Uo(l){if(!l)return l===0?l:0;if(l=na(l),l===H||l===-H){var d=l<0?-1:1;return d*se}return l===l?l:0}function St(l){var d=Uo(l),h=d%1;return d===d?h?d-h:d:0}function nA(l){return l?Fl(St(l),0,pe):0}function na(l){if(typeof l=="number")return l;if(ki(l))return D;if(Rn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Rn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=_S(l);var h=Be.test(l);return h||un.test(l)?jU(l.slice(2),h?2:8):J.test(l)?D:+l}function rA(l){return io(l,ci(l))}function IG(l){return l?Fl(St(l),-W,W):l===0?l:0}function en(l){return l==null?"":Ci(l)}var RG=qu(function(l,d){if(jc(d)||ui(d)){io(d,sr(d),l);return}for(var h in d)an.call(d,h)&&Pc(l,h,d[h])}),iA=qu(function(l,d){io(d,ci(d),l)}),o0=qu(function(l,d,h,_){io(d,ci(d),l,_)}),NG=qu(function(l,d,h,_){io(d,sr(d),l,_)}),OG=Fo(d5);function DG(l,d){var h=Wu(l);return d==null?h:FS(h,d)}var LG=xt(function(l,d){l=pn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Zr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],z=ci(F),Z=-1,ae=z.length;++Z1),F}),io(l,N5(l),h),_&&(h=Ji(h,f|m|g,Vz));for(var x=d.length;x--;)S5(h,d[x]);return h});function QG(l,d){return oA(l,r0(mt(d)))}var JG=Fo(function(l,d){return l==null?{}:Cz(l,d)});function oA(l,d){if(l==null)return{};var h=An(N5(l),function(_){return[_]});return d=mt(d),ZS(l,h,function(_,x){return d(_,x[0])})}function eV(l,d,h){d=xs(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=OS();return Mr(l+x*(d-l+HU("1e-"+((x+"").length-1))),d)}return v5(l,d)}var dV=Ku(function(l,d,h){return d=d.toLowerCase(),l+(h?uA(d):d)});function uA(l){return q5(en(l).toLowerCase())}function cA(l){return l=en(l),l&&l.replace(or,t$).replace(OU,"")}function pV(l,d,h){l=en(l),d=Ci(d);var _=l.length;h=h===n?_:Fl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function fV(l){return l=en(l),l&&Qt.test(l)?l.replace(Je,n$):l}function hV(l){return l=en(l),l&&si.test(l)?l.replace(Aa,"\\$&"):l}var gV=Ku(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),mV=Ku(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),bV=fw("toLowerCase");function yV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Kf(Mf(x),h)+l+Kf(Lf(x),h)}function EV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;return d&&_>>0,h?(l=en(l),l&&(typeof d=="string"||d!=null&&!G5(d))&&(d=Ci(d),!d&&$u(l))?Is(Ca(l),0,h):l.split(d,h)):[]}var CV=Ku(function(l,d,h){return l+(h?" ":"")+q5(d)});function kV(l,d,h){return l=en(l),h=h==null?0:Fl(St(h),0,l.length),d=Ci(d),l.slice(h,h+d.length)==d}function xV(l,d,h){var _=M.templateSettings;h&&Zr(l,d,h)&&(d=n),l=en(l),d=o0({},d,_,vw);var x=o0({},d.imports,_.imports,vw),F=sr(x),z=i5(x,F),Z,ae,we=0,Ce=d.interpolate||Zn,Ie="__p += '",Xe=o5((d.escape||Zn).source+"|"+Ce.source+"|"+(Ce===Xt?Nl:Zn).source+"|"+(d.evaluate||Zn).source+"|$","g"),st="//# sourceURL="+(an.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++PU+"]")+` -`;l.replace(Xe,function(yt,Nt,Bt,xi,Qr,Ii){return Bt||(Bt=xi),Ie+=l.slice(we,Ii).replace(No,r$),Nt&&(Z=!0,Ie+=`' + +`)}function eH(l){return Tt(l)||$l(l)||!!(RS&&l&&l[RS])}function Bo(l,d){var h=typeof l;return d=d??W,!!d&&(h=="number"||h!="symbol"&&ar.test(l))&&l>-1&&l%1==0&&l0){if(++d>=$)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Qf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,$w(l,h)});function zw(l){var d=M(l);return d.__chain__=!0,d}function dj(l,d){return d(l),l}function Jf(l,d){return d(l)}var pj=Po(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return d5(F,l)};return d>1||this.__actions__.length||!(_ instanceof Mt)||!Bo(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Jf,args:[x],thisArg:n}),new Qi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function fj(){return zw(this)}function hj(){return new Qi(this.value(),this.__chain__)}function gj(){this.__values__===n&&(this.__values__=tA(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function mj(){return this}function bj(l){for(var d,h=this;h instanceof Bf;){var _=Lw(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function yj(){var l=this.__wrapped__;if(l instanceof Mt){var d=l;return this.__actions__.length&&(d=new Mt(this)),d=d.reverse(),d.__actions__.push({func:Jf,args:[U5],thisArg:n}),new Qi(d,this.__chain__)}return this.thru(U5)}function Ej(){return rw(this.__wrapped__,this.__actions__)}var vj=Vf(function(l,d,h){an.call(l,h)?++l[h]:Mo(l,h,1)});function _j(l,d,h){var _=Tt(l)?mS:dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}function Tj(l,d){var h=Tt(l)?Ts:$S;return h(l,mt(d,3))}var Sj=hw(Mw),wj=hw(Fw);function Aj(l,d){return br(e0(l,d),1)}function Cj(l,d){return br(e0(l,d),H)}function kj(l,d,h){return h=h===n?1:St(h),br(e0(l,d),h)}function Hw(l,d){var h=Tt(l)?Xi:Cs;return h(l,mt(d,3))}function jw(l,d){var h=Tt(l)?WU:US;return h(l,mt(d,3))}var xj=Vf(function(l,d,h){an.call(l,h)?l[h].push(d):Mo(l,h,[d])});function Ij(l,d,h,_){l=ui(l)?l:Zu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Jn(x+h,0)),a0(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Uu(l,d,h)>-1}var Rj=xt(function(l,d,h){var _=-1,x=typeof d=="function",F=ui(l)?he(l.length):[];return Cs(l,function(z){F[++_]=x?wi(d,z,h):Uc(z,d,h)}),F}),Nj=Vf(function(l,d,h){Mo(l,h,d)});function e0(l,d){var h=Tt(l)?An:WS;return h(l,mt(d,3))}function Oj(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),XS(l,d,h))}var Dj=Vf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Lj(l,d,h){var _=Tt(l)?Q2:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,Cs)}function Mj(l,d,h){var _=Tt(l)?qU:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,US)}function Fj(l,d){var h=Tt(l)?Ts:$S;return h(l,r0(mt(d,3)))}function Pj(l){var d=Tt(l)?MS:Iz;return d(l)}function Bj(l,d,h){(h?Zr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?oz:Rz;return _(l,d)}function Uj(l){var d=Tt(l)?sz:Oz;return d(l)}function $j(l){if(l==null)return 0;if(ui(l))return a0(l)?zu(l):l.length;var d=Fr(l);return d==ot||d==ye?l.size:b5(l).length}function zj(l,d,h){var _=Tt(l)?J2:Dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}var Hj=xt(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Zr(l,d[0],d[1])?d=[]:h>2&&Zr(d[0],d[1],d[2])&&(d=[d[0]]),XS(l,br(d,1),[])}),t0=T$||function(){return mr.Date.now()};function jj(l,d){if(typeof d!="function")throw new Zi(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function Gw(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,Fo(l,N,n,n,n,n,d)}function Vw(l,d){var h;if(typeof d!="function")throw new Zi(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var z5=xt(function(l,d,h){var _=T;if(h.length){var x=ws(h,Yu(z5));_|=R}return Fo(l,_,d,h,x)}),Ww=xt(function(l,d,h){var _=T|E;if(h.length){var x=ws(h,Yu(Ww));_|=R}return Fo(d,_,l,h,x)});function qw(l,d,h){d=h?n:d;var _=Fo(l,w,n,n,n,n,n,d);return _.placeholder=qw.placeholder,_}function Kw(l,d,h){d=h?n:d;var _=Fo(l,A,n,n,n,n,n,d);return _.placeholder=Kw.placeholder,_}function Yw(l,d,h){var _,x,F,z,Z,ae,we=0,Ce=!1,Ie=!1,Xe=!0;if(typeof l!="function")throw new Zi(o);d=na(d)||0,Rn(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Jn(na(h.maxWait)||0,d):F,Xe="trailing"in h?!!h.trailing:Xe);function lt(Hn){var Ia=_,zo=x;return _=x=n,we=Hn,z=l.apply(zo,Ia),z}function bt(Hn){return we=Hn,Z=Gc(Nt,d),Ce?lt(Hn):z}function wt(Hn){var Ia=Hn-ae,zo=Hn-we,hA=d-Ia;return Ie?Mr(hA,F-zo):hA}function yt(Hn){var Ia=Hn-ae,zo=Hn-we;return ae===n||Ia>=d||Ia<0||Ie&&zo>=F}function Nt(){var Hn=t0();if(yt(Hn))return Bt(Hn);Z=Gc(Nt,wt(Hn))}function Bt(Hn){return Z=n,Xe&&_?lt(Hn):(_=x=n,z)}function xi(){Z!==n&&aw(Z),we=0,_=ae=x=Z=n}function Qr(){return Z===n?z:Bt(t0())}function Ii(){var Hn=t0(),Ia=yt(Hn);if(_=arguments,x=this,ae=Hn,Ia){if(Z===n)return bt(ae);if(Ie)return aw(Z),Z=Gc(Nt,d),lt(ae)}return Z===n&&(Z=Gc(Nt,d)),z}return Ii.cancel=xi,Ii.flush=Qr,Ii}var Gj=xt(function(l,d){return BS(l,1,d)}),Vj=xt(function(l,d,h){return BS(l,na(d)||0,h)});function Wj(l){return Fo(l,q)}function n0(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Zi(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var z=l.apply(this,_);return h.cache=F.set(x,z)||F,z};return h.cache=new(n0.Cache||Lo),h}n0.Cache=Lo;function r0(l){if(typeof l!="function")throw new Zi(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function qj(l){return Vw(2,l)}var Kj=Lz(function(l,d){d=d.length==1&&Tt(d[0])?An(d[0],Ai(mt())):An(br(d,1),Ai(mt()));var h=d.length;return xt(function(_){for(var x=-1,F=Mr(_.length,h);++x=d}),$l=jS(function(){return arguments}())?jS:function(l){return Mn(l)&&an.call(l,"callee")&&!IS.call(l,"callee")},Tt=he.isArray,uG=cS?Ai(cS):bz;function ui(l){return l!=null&&i0(l.length)&&!Uo(l)}function zn(l){return Mn(l)&&ui(l)}function cG(l){return l===!0||l===!1||Mn(l)&&Xr(l)==te}var Rs=w$||J5,dG=dS?Ai(dS):yz;function pG(l){return Mn(l)&&l.nodeType===1&&!Vc(l)}function fG(l){if(l==null)return!0;if(ui(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Rs(l)||Xu(l)||$l(l)))return!l.length;var d=Fr(l);if(d==ot||d==ye)return!l.size;if(jc(l))return!b5(l).length;for(var h in l)if(an.call(l,h))return!1;return!0}function hG(l,d){return $c(l,d)}function gG(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?$c(l,d,n,h):!!_}function j5(l){if(!Mn(l))return!1;var d=Xr(l);return d==Ze||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Vc(l)}function mG(l){return typeof l=="number"&&NS(l)}function Uo(l){if(!Rn(l))return!1;var d=Xr(l);return d==We||d==dt||d==ke||d==de}function Zw(l){return typeof l=="number"&&l==St(l)}function i0(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Rn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Mn(l){return l!=null&&typeof l=="object"}var Qw=pS?Ai(pS):vz;function bG(l,d){return l===d||m5(l,d,D5(d))}function yG(l,d,h){return h=typeof h=="function"?h:n,m5(l,d,D5(d),h)}function EG(l){return Jw(l)&&l!=+l}function vG(l){if(rH(l))throw new _t(a);return GS(l)}function _G(l){return l===null}function TG(l){return l==null}function Jw(l){return typeof l=="number"||Mn(l)&&Xr(l)==je}function Vc(l){if(!Mn(l)||Xr(l)!=U)return!1;var d=Nf(l);if(d===null)return!0;var h=an.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&kf.call(h)==y$}var G5=fS?Ai(fS):_z;function SG(l){return Zw(l)&&l>=-W&&l<=W}var eA=hS?Ai(hS):Tz;function a0(l){return typeof l=="string"||!Tt(l)&&Mn(l)&&Xr(l)==Te}function ki(l){return typeof l=="symbol"||Mn(l)&&Xr(l)==Le}var Xu=gS?Ai(gS):Sz;function wG(l){return l===n}function AG(l){return Mn(l)&&Fr(l)==Ye}function CG(l){return Mn(l)&&Xr(l)==jt}var kG=Yf(y5),xG=Yf(function(l,d){return l<=d});function tA(l){if(!l)return[];if(ui(l))return a0(l)?Ca(l):li(l);if(Oc&&l[Oc])return o$(l[Oc]());var d=Fr(l),h=d==ot?a5:d==ye?wf:Zu;return h(l)}function $o(l){if(!l)return l===0?l:0;if(l=na(l),l===H||l===-H){var d=l<0?-1:1;return d*se}return l===l?l:0}function St(l){var d=$o(l),h=d%1;return d===d?h?d-h:d:0}function nA(l){return l?Fl(St(l),0,pe):0}function na(l){if(typeof l=="number")return l;if(ki(l))return D;if(Rn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Rn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=_S(l);var h=Be.test(l);return h||un.test(l)?jU(l.slice(2),h?2:8):J.test(l)?D:+l}function rA(l){return io(l,ci(l))}function IG(l){return l?Fl(St(l),-W,W):l===0?l:0}function en(l){return l==null?"":Ci(l)}var RG=qu(function(l,d){if(jc(d)||ui(d)){io(d,sr(d),l);return}for(var h in d)an.call(d,h)&&Pc(l,h,d[h])}),iA=qu(function(l,d){io(d,ci(d),l)}),o0=qu(function(l,d,h,_){io(d,ci(d),l,_)}),NG=qu(function(l,d,h,_){io(d,sr(d),l,_)}),OG=Po(d5);function DG(l,d){var h=Wu(l);return d==null?h:FS(h,d)}var LG=xt(function(l,d){l=pn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Zr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],z=ci(F),Z=-1,ae=z.length;++Z1),F}),io(l,N5(l),h),_&&(h=Ji(h,f|m|g,Vz));for(var x=d.length;x--;)S5(h,d[x]);return h});function QG(l,d){return oA(l,r0(mt(d)))}var JG=Po(function(l,d){return l==null?{}:Cz(l,d)});function oA(l,d){if(l==null)return{};var h=An(N5(l),function(_){return[_]});return d=mt(d),ZS(l,h,function(_,x){return d(_,x[0])})}function eV(l,d,h){d=xs(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=OS();return Mr(l+x*(d-l+HU("1e-"+((x+"").length-1))),d)}return v5(l,d)}var dV=Ku(function(l,d,h){return d=d.toLowerCase(),l+(h?uA(d):d)});function uA(l){return q5(en(l).toLowerCase())}function cA(l){return l=en(l),l&&l.replace(or,t$).replace(OU,"")}function pV(l,d,h){l=en(l),d=Ci(d);var _=l.length;h=h===n?_:Fl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function fV(l){return l=en(l),l&&Qt.test(l)?l.replace(Je,n$):l}function hV(l){return l=en(l),l&&si.test(l)?l.replace(Aa,"\\$&"):l}var gV=Ku(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),mV=Ku(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),bV=fw("toLowerCase");function yV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Kf(Mf(x),h)+l+Kf(Lf(x),h)}function EV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;return d&&_>>0,h?(l=en(l),l&&(typeof d=="string"||d!=null&&!G5(d))&&(d=Ci(d),!d&&$u(l))?Is(Ca(l),0,h):l.split(d,h)):[]}var CV=Ku(function(l,d,h){return l+(h?" ":"")+q5(d)});function kV(l,d,h){return l=en(l),h=h==null?0:Fl(St(h),0,l.length),d=Ci(d),l.slice(h,h+d.length)==d}function xV(l,d,h){var _=M.templateSettings;h&&Zr(l,d,h)&&(d=n),l=en(l),d=o0({},d,_,vw);var x=o0({},d.imports,_.imports,vw),F=sr(x),z=i5(x,F),Z,ae,we=0,Ce=d.interpolate||Zn,Ie="__p += '",Xe=o5((d.escape||Zn).source+"|"+Ce.source+"|"+(Ce===Xt?Nl:Zn).source+"|"+(d.evaluate||Zn).source+"|$","g"),lt="//# sourceURL="+(an.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++PU+"]")+` +`;l.replace(Xe,function(yt,Nt,Bt,xi,Qr,Ii){return Bt||(Bt=xi),Ie+=l.slice(we,Ii).replace(Oo,r$),Nt&&(Z=!0,Ie+=`' + __e(`+Nt+`) + '`),Qr&&(ae=!0,Ie+=`'; `+Qr+`; @@ -1151,7 +1151,7 @@ __p += '`),Bt&&(Ie+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Ie+`return __p -}`;var wt=pA(function(){return Jt(F,st+"return "+Ie).apply(n,z)});if(wt.source=Ie,j5(wt))throw wt;return wt}function IV(l){return en(l).toLowerCase()}function RV(l){return en(l).toUpperCase()}function NV(l,d,h){if(l=en(l),l&&(h||d===n))return _S(l);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=Ca(d),F=TS(_,x),z=SS(_,x)+1;return Is(_,F,z).join("")}function OV(l,d,h){if(l=en(l),l&&(h||d===n))return l.slice(0,AS(l)+1);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=SS(_,Ca(d))+1;return Is(_,0,x).join("")}function DV(l,d,h){if(l=en(l),l&&(h||d===n))return l.replace(Or,"");if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=TS(_,Ca(d));return Is(_,x).join("")}function LV(l,d){var h=P,_=Q;if(Rn(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?Ci(d.omission):_}l=en(l);var F=l.length;if($u(l)){var z=Ca(l);F=z.length}if(h>=F)return l;var Z=h-zu(_);if(Z<1)return _;var ae=z?Is(z,0,Z).join(""):l.slice(0,Z);if(x===n)return ae+_;if(z&&(Z+=ae.length-Z),G5(x)){if(l.slice(Z).search(x)){var we,Ce=ae;for(x.global||(x=o5(x.source,en(Ke.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?Z:Ie)}}else if(l.indexOf(Ci(x),Z)!=Z){var Xe=ae.lastIndexOf(x);Xe>-1&&(ae=ae.slice(0,Xe))}return ae+_}function MV(l){return l=en(l),l&&Rt.test(l)?l.replace(rt,c$):l}var FV=Ku(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),q5=fw("toUpperCase");function dA(l,d,h){return l=en(l),d=h?n:d,d===n?a$(l)?f$(l):XU(l):l.match(d)||[]}var pA=xt(function(l,d){try{return wi(l,n,d)}catch(h){return j5(h)?h:new _t(h)}}),PV=Fo(function(l,d){return Xi(d,function(h){h=ao(h),Lo(l,h,z5(l[h],l))}),l});function BV(l){var d=l==null?0:l.length,h=mt();return l=d?An(l,function(_){if(typeof _[1]!="function")throw new Zi(o);return[h(_[0]),_[1]]}):[],xt(function(_){for(var x=-1;++xW)return[];var h=pe,_=Mr(l,pe);d=mt(d),l-=pe;for(var x=r5(_,d);++h0||d<0)?new Mt(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Mt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Mt.prototype.toArray=function(){return this.take(pe)},ro(Mt.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var z=this.__wrapped__,Z=_?[1]:arguments,ae=z instanceof Mt,we=Z[0],Ce=ae||Tt(z),Ie=function(Nt){var Bt=x.apply(M,Ss([Nt],Z));return _&&Xe?Bt[0]:Bt};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Xe=this.__chain__,st=!!this.__actions__.length,bt=F&&!Xe,wt=ae&&!st;if(!F&&Ce){z=wt?z:new Mt(this);var yt=l.apply(z,Z);return yt.__actions__.push({func:Jf,args:[Ie],thisArg:n}),new Qi(yt,Xe)}return bt&&wt?l.apply(this,Z):(yt=this.thru(Ie),bt?_?yt.value()[0]:yt.value():yt)})}),Xi(["pop","push","shift","sort","splice","unshift"],function(l){var d=Af[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(z){return d.apply(Tt(z)?z:[],x)})}}),ro(Mt.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";an.call(Vu,_)||(Vu[_]=[]),Vu[_].push({name:d,func:h})}}),Vu[Wf(n,E).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=M$,Mt.prototype.reverse=F$,Mt.prototype.value=P$,M.prototype.at=pj,M.prototype.chain=fj,M.prototype.commit=hj,M.prototype.next=gj,M.prototype.plant=bj,M.prototype.reverse=yj,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Ej,M.prototype.first=M.prototype.head,Oc&&(M.prototype[Oc]=mj),M},Hu=h$();Ol?((Ol.exports=Hu)._=Hu,Y2._=Hu):mr._=Hu}).call(Jl)})(sm,sm.exports);var v4e=sm.exports;const el=Vi(v4e);function uo(e,t){const n=el.cloneDeep(e);for(const r in t)typeof t[r]=="function"?el.updateWith(n,r,t[r]):el.updateWith(n,r,i=>t[r]);return n}const Rc={};Rc["Requires API Key"]="#FF0000";Rc.Local="#00bb00";Rc["Open-Source"]="#0033FF";Rc.Free="#ffff00";const _4e={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},T4e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},S4e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},w4e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},A4e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},C4e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Da=[_4e,T4e,w4e,S4e,A4e,C4e],SN={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},sE={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},lE={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},uE={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},rU={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},cE={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},iU={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},k4e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},o1=[sE,lE,uE,rU,iU,cE,k4e],wN={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},AN={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},x4e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function CN(e){return x4e[e]||e}const aU={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[wN,AN],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Da]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Da],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: +}`;var wt=pA(function(){return Jt(F,lt+"return "+Ie).apply(n,z)});if(wt.source=Ie,j5(wt))throw wt;return wt}function IV(l){return en(l).toLowerCase()}function RV(l){return en(l).toUpperCase()}function NV(l,d,h){if(l=en(l),l&&(h||d===n))return _S(l);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=Ca(d),F=TS(_,x),z=SS(_,x)+1;return Is(_,F,z).join("")}function OV(l,d,h){if(l=en(l),l&&(h||d===n))return l.slice(0,AS(l)+1);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=SS(_,Ca(d))+1;return Is(_,0,x).join("")}function DV(l,d,h){if(l=en(l),l&&(h||d===n))return l.replace(Or,"");if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=TS(_,Ca(d));return Is(_,x).join("")}function LV(l,d){var h=P,_=Q;if(Rn(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?Ci(d.omission):_}l=en(l);var F=l.length;if($u(l)){var z=Ca(l);F=z.length}if(h>=F)return l;var Z=h-zu(_);if(Z<1)return _;var ae=z?Is(z,0,Z).join(""):l.slice(0,Z);if(x===n)return ae+_;if(z&&(Z+=ae.length-Z),G5(x)){if(l.slice(Z).search(x)){var we,Ce=ae;for(x.global||(x=o5(x.source,en(Ke.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?Z:Ie)}}else if(l.indexOf(Ci(x),Z)!=Z){var Xe=ae.lastIndexOf(x);Xe>-1&&(ae=ae.slice(0,Xe))}return ae+_}function MV(l){return l=en(l),l&&Rt.test(l)?l.replace(rt,c$):l}var FV=Ku(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),q5=fw("toUpperCase");function dA(l,d,h){return l=en(l),d=h?n:d,d===n?a$(l)?f$(l):XU(l):l.match(d)||[]}var pA=xt(function(l,d){try{return wi(l,n,d)}catch(h){return j5(h)?h:new _t(h)}}),PV=Po(function(l,d){return Xi(d,function(h){h=ao(h),Mo(l,h,z5(l[h],l))}),l});function BV(l){var d=l==null?0:l.length,h=mt();return l=d?An(l,function(_){if(typeof _[1]!="function")throw new Zi(o);return[h(_[0]),_[1]]}):[],xt(function(_){for(var x=-1;++xW)return[];var h=pe,_=Mr(l,pe);d=mt(d),l-=pe;for(var x=r5(_,d);++h0||d<0)?new Mt(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Mt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Mt.prototype.toArray=function(){return this.take(pe)},ro(Mt.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var z=this.__wrapped__,Z=_?[1]:arguments,ae=z instanceof Mt,we=Z[0],Ce=ae||Tt(z),Ie=function(Nt){var Bt=x.apply(M,Ss([Nt],Z));return _&&Xe?Bt[0]:Bt};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Xe=this.__chain__,lt=!!this.__actions__.length,bt=F&&!Xe,wt=ae&&!lt;if(!F&&Ce){z=wt?z:new Mt(this);var yt=l.apply(z,Z);return yt.__actions__.push({func:Jf,args:[Ie],thisArg:n}),new Qi(yt,Xe)}return bt&&wt?l.apply(this,Z):(yt=this.thru(Ie),bt?_?yt.value()[0]:yt.value():yt)})}),Xi(["pop","push","shift","sort","splice","unshift"],function(l){var d=Af[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(z){return d.apply(Tt(z)?z:[],x)})}}),ro(Mt.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";an.call(Vu,_)||(Vu[_]=[]),Vu[_].push({name:d,func:h})}}),Vu[Wf(n,E).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=M$,Mt.prototype.reverse=F$,Mt.prototype.value=P$,M.prototype.at=pj,M.prototype.chain=fj,M.prototype.commit=hj,M.prototype.next=gj,M.prototype.plant=bj,M.prototype.reverse=yj,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Ej,M.prototype.first=M.prototype.head,Oc&&(M.prototype[Oc]=mj),M},Hu=h$();Ol?((Ol.exports=Hu)._=Hu,Y2._=Hu):mr._=Hu}).call(Jl)})(sm,sm.exports);var v4e=sm.exports;const el=Vi(v4e);function uo(e,t){const n=el.cloneDeep(e);for(const r in t)typeof t[r]=="function"?el.updateWith(n,r,t[r]):el.updateWith(n,r,i=>t[r]);return n}const Rc={};Rc["Requires API Key"]="#FF0000";Rc.Local="#00bb00";Rc["Open-Source"]="#0033FF";Rc.Free="#ffff00";const _4e={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},T4e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},S4e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},w4e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},A4e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},C4e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Da=[_4e,T4e,w4e,S4e,A4e,C4e],SN={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},sE={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},lE={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},uE={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},rU={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},cE={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},iU={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},k4e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},o1=[sE,lE,uE,rU,iU,cE,k4e],wN={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},AN={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},x4e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function CN(e){return x4e[e]||e}const aU={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[wN,AN],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Da]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Da],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: 1. Obtain an API key from [here](https://together.ai) 2. Paste below 3. Select a model preset`,tags:["Requires API Key","Open-Source"],params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your TogetherAI API key",required:!0},...Da],packages:[uo(lE,{"dimensions[0].options":e=>el.mapValues(e,t=>el.assign({},t,{model:"togethercomputer/"+t.model.replace("llama2","llama-2").replace(":","-")}))}),uo(sE,{"dimensions[0].options":e=>el.mapValues(e,t=>el.assign({},t,{model:"togethercomputer/"+t.model.replace("codellama","CodeLlama").replace(":","-").replace("instruct","Instruct")}))}),uo(uE,{"params.model":"WizardLM/WizardCoder-15B-V1.0","params.title":"WizardCoder-15b","dimensions[0].options":{"15b":{model:"WizardLM/WizardCoder-15B-V1.0",title:"WizardCoder-15b"},"34b (Python)":{model:"WizardLM/WizardCoder-Python-34B-V1.0",title:"WizardCoder-34b-Python"}}}),uo(rU,{"params.model":"Phind/Phind-CodeLlama-34B-Python-v1"}),uo(cE,{"params.model":"mistralai/Mistral-7B-Instruct-v0.1"})].map(e=>(e.params.context_length=4096,e))},lmstudio:{title:"LM Studio",class:"GGML",description:"One of the fastest ways to get started with local models on Mac or Windows",longDescription:`LMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started: @@ -1214,7 +1214,7 @@ function print() { __p += __j.call(arguments, '') } padding: 1rem; justify-items: center; align-items: center; -`;function D4e(){const e=bs();return C.useContext(to),eo(),I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht,zIndex:2},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Select LLM Provider"})]}),I.jsx(O4e,{children:Object.entries(aU).map(([t,n])=>I.jsx(oU,{title:n.title,description:n.description,tags:n.tags,icon:n.icon,refUrl:`https://continue.dev/docs/reference/Models/${n.class.toLowerCase()}`,onClick:r=>{e(`/modelconfig/${t}`)}}))})]})}const L4e=Ge.div` +`;function D4e(){const e=No();return C.useContext(to),eo(),I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht,zIndex:2},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Select LLM Provider"})]}),I.jsx(O4e,{children:Object.entries(aU).map(([t,n])=>I.jsx(oU,{title:n.title,description:n.description,tags:n.tags,icon:n.icon,refUrl:`https://continue.dev/docs/reference/Models/${n.class.toLowerCase()}`,onClick:r=>{e(`/modelconfig/${t}`)}}))})]})}const L4e=Ge.div` display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-gap: 2rem; @@ -1240,4 +1240,4 @@ function print() { __p += __j.call(arguments, '') } cursor: pointer; } `} -`;function F4e(){var u,c,p,f,m;const e=nU(),{modelName:t}=Bme(),[n,r]=C.useState(void 0);C.useEffect(()=>{t&&r(aU[t])},[t]);const i=C.useContext(to);eo();const a=bs(),o=window.vscMediaUrl,s=C.useCallback(()=>{var g;return((g=n==null?void 0:n.collectInputFor)==null?void 0:g.some(b=>{if(!b.required)return!1;const y=e.watch(b.key);return typeof y>"u"||typeof y=="string"&&y===""}))||!1},[n,e]);return I.jsx(KB,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht,zIndex:2},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>a("/models"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Configure Model"})]}),I.jsxs("div",{className:"px-2",children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o&&(n==null?void 0:n.icon)&&I.jsx("img",{src:`${o}/logos/${n==null?void 0:n.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h2",{children:n==null?void 0:n.title})]}),(u=n==null?void 0:n.tags)==null?void 0:u.map(g=>I.jsx("span",{style:{backgroundColor:`${Rc[g]}55`,color:"white",padding:"2px 4px",borderRadius:It,marginRight:"4px"},children:g})),I.jsx(Ug,{className:"mt-2",source:(n==null?void 0:n.longDescription)||(n==null?void 0:n.description),maxHeight:200}),I.jsx("br",{}),(((c=n==null?void 0:n.collectInputFor)==null?void 0:c.filter(g=>g.required).length)||0)>0&&I.jsxs(I.Fragment,{children:[I.jsx("h3",{className:"mb-2",children:"Enter required parameters"}),(p=n==null?void 0:n.collectInputFor)==null?void 0:p.filter(g=>g.required).map(g=>I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(Ig,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!0})})]}))]}),(((f=n==null?void 0:n.collectInputFor)==null?void 0:f.filter(g=>!g.required).length)||0)>0&&I.jsxs("details",{children:[I.jsx("summary",{className:"mb-2",children:I.jsx("b",{children:"Advanced (optional)"})}),(m=n==null?void 0:n.collectInputFor)==null?void 0:m.map(g=>g.required?null:I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(Ig,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!1})})]}))]}),I.jsx("h3",{className:"mb-2",children:"Select a model preset"})]}),I.jsxs(L4e,{children:[n==null?void 0:n.packages.map(g=>I.jsx(oU,{disabled:s(),title:g.title,description:g.description,tags:g.tags,refUrl:g.refUrl,icon:g.icon||n.icon,dimensions:g.dimensions,onClick:(b,y)=>{var E;if(s())return;const T={};for(const v of n.collectInputFor||[])T[v.key]=v.inputType==="text"?e.watch(v.key):parseFloat(e.watch(v.key));i==null||i.addModelForRole("*",n.class,{...g.params,...n.params,...el.merge({},...((E=g.dimensions)==null?void 0:E.map((v,w)=>y!=null&&y[w]?{...v.options[y[w]]}:{}))||[]),...T}),a("/")}})),I.jsx(M4e,{disabled:s(),onClick:g=>{var y;if(!n||s())return;const b={};for(const T of n.collectInputFor||[])b[T.key]=T.inputType==="text"?e.watch(T.key):parseFloat(e.watch(T.key));i==null||i.addModelForRole("*",n.class,{...(y=n.packages[0])==null?void 0:y.params,...n.params,...b}),a("/")},children:I.jsx("h3",{className:"text-center my-2",children:"Configure Model in config.py"})})]})]})})}const P4e={meilisearchUrl:void 0,slashCommands:[],selectedContextItems:[],config:{system_message:"",temperature:.5},contextProviders:[],savedContextGroups:[]},sU=pf({name:"serverState",initialState:P4e,reducers:{setSlashCommands:(e,t)=>({...e,slashCommands:t.payload}),setContextProviders:(e,t)=>({...e,contextProviders:t.payload}),setConfig:(e,t)=>({...e,config:t.payload})}}),{setContextProviders:B4e,setSlashCommands:U4e,setConfig:kN}=sU.actions,$4e=sU.reducer,X4=window,lU=pf({name:"config",initialState:{apiUrl:X4.serverUrl||"http://localhost:8000",workspacePaths:X4.workspacePaths||[],vscMachineId:X4.vscMachineId||void 0},reducers:{setWorkspacePaths:(e,t)=>({...e,workspacePaths:t.payload}),setApiUrl:(e,t)=>({...e,apiUrl:t.payload}),setVscMachineId:(e,t)=>({...e,vscMachineId:t.payload}),setSessionId:(e,t)=>({...e,sessionId:t.payload}),setDataSwitchOn:(e,t)=>({...e,dataSwitchOn:t.payload})}}),{setVscMachineId:z4e,setApiUrl:H4e,setWorkspacePaths:j4e,setSessionId:Wbe,setDataSwitchOn:qbe}=lU.actions,G4e=lU.reducer;function V4e(e,t){const n=zt(u=>u.config.apiUrl),r=zt(u=>u.sessionState.active),i=zt(u=>u.sessionState.title),a=zt(u=>u.sessionState.history),[o,s]=C.useState(!1);C.useEffect(()=>{t(Zd(!1)),qa("onLoad",{})},[]),C.useEffect(()=>{(async()=>{if(e&&!o&&!r&&i==="New Session"&&a&&a.filter(u=>!(u!=null&&u.hide)).length>=2){s(!0);const u=await e.getSessionTitle(a);t(wP(u))}})()},[r,a,i,e,o]),C.useEffect(()=>{e&&(e.onSessionUpdate(u=>{t(g0e(u))}),e.onAddContextItem(u=>{t(TP(u))}),e.onConfigUpdate(u=>{t(kN(u))}),fetch(`${n}/slash_commands`).then(async u=>{const c=await u.json();t(U4e(c))}),fetch(`${n}/context_providers`).then(async u=>{const c=await u.json();t(B4e(c))}),e.getConfig().then(u=>{t(kN(u))}))},[e]),C.useEffect(()=>{const u=c=>{switch(c.data.type){case"onLoad":window.windowId=c.data.windowId,window.serverUrl=c.data.serverUrl,window.workspacePaths=c.data.workspacePaths,window.vscMachineId=c.data.vscMachineId,window.vscMediaUrl=c.data.vscMediaUrl,t(H4e(c.data.serverUrl)),t(j4e(c.data.workspacePaths)),t(z4e(c.data.vscMachineId));break;case"highlightedCode":t(m0e({rangeInFileWithContents:c.data.rangeInFileWithContents,edit:c.data.edit}));break;case"serverStatus":t(Y0e(c.data.message));break;case"stopSession":e==null||e.stopSession();break}};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)},[e]),C.useEffect(()=>{document.body.style.getPropertyValue("--vscode-editor-foreground")&&localStorage.setItem("--vscode-editor-foreground",document.body.style.getPropertyValue("--vscode-editor-foreground")),document.body.style.getPropertyValue("--vscode-editor-background")&&localStorage.setItem("--vscode-editor-background",document.body.style.getPropertyValue("--vscode-editor-background")),document.body.style.getPropertyValue("--vscode-list-hoverBackground")&&localStorage.setItem("--vscode-list-hoverBackground",document.body.style.getPropertyValue("--vscode-list-hoverBackground"))},[])}const W4e=t2e([{path:"/",element:I.jsx(J5e,{}),errorElement:I.jsx(q3e,{}),children:[{path:"/index.html",element:I.jsx(qR,{})},{path:"/",element:I.jsx(qR,{})},{path:"/history",element:I.jsx(f2e,{})},{path:"/help",element:I.jsx(YR,{})},{path:"/settings",element:I.jsx(E4e,{})},{path:"/models",element:I.jsx(D4e,{})},{path:"/help",element:I.jsx(YR,{})},{path:"/modelconfig/:modelName",element:I.jsx(F4e,{})}]}]),to=C.createContext(void 0);function q4e(){const e=VB(!1),t=eo();return V4e(e,t),I.jsx(to.Provider,{value:e,children:I.jsx(Xme,{router:W4e})})}var $T={},zT={};zT.__esModule=!0;zT.default=X4e;function Kh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kh=function(n){return typeof n}:Kh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kh(e)}function Z4(){}var K4e={getItem:Z4,setItem:Z4,removeItem:Z4};function Y4e(e){if((typeof self>"u"?"undefined":Kh(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function X4e(e){var t="".concat(e,"Storage");return Y4e(t)?self[t]:K4e}$T.__esModule=!0;$T.default=J4e;var Z4e=Q4e(zT);function Q4e(e){return e&&e.__esModule?e:{default:e}}function J4e(e){var t=(0,Z4e.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,o){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var uU=void 0,ebe=tbe($T);function tbe(e){return e&&e.__esModule?e:{default:e}}var nbe=(0,ebe.default)("local");uU=nbe;var HT="persist:",cU="persist/FLUSH",jT="persist/REHYDRATE",dU="persist/PAUSE",pU="persist/PERSIST",fU="persist/PURGE",hU="persist/REGISTER",rbe=-1;function Yh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yh=function(n){return typeof n}:Yh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yh(e)}function xN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ibe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gbe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var mbe=5e3;function bbe(e,t){var n=e.version!==void 0?e.version:rbe;e.debug;var r=e.stateReconciler===void 0?obe:e.stateReconciler,i=e.getStoredState||ube,a=e.timeout!==void 0?e.timeout:mbe,o=null,s=!1,u=!0,c=function(f){return f._persist.rehydrated&&o&&!u&&o.update(f),f};return function(p,f){var m=p||{},g=m._persist,b=hbe(m,["_persist"]),y=b;if(f.type===pU){var T=!1,E=function(B,q){T||(f.rehydrate(e.key,B,q),T=!0)};if(a&&setTimeout(function(){!T&&E(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),u=!1,o||(o=sbe(e)),g)return Yo({},t(y,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(N){var B=e.migrate||function(q,P){return Promise.resolve(q)};B(N,n).then(function(q){E(q)},function(q){E(void 0,q)})},function(N){E(void 0,N)}),Yo({},t(y,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===fU)return s=!0,f.result(dbe(e)),Yo({},t(y,f),{_persist:g});if(f.type===cU)return f.result(o&&o.flush()),Yo({},t(y,f),{_persist:g});if(f.type===dU)u=!0;else if(f.type===jT){if(s)return Yo({},y,{_persist:Yo({},g,{rehydrated:!0})});if(f.key===e.key){var v=t(y,f),w=f.payload,A=r!==!1&&w!==void 0?r(w,p,v,e):v,R=Yo({},A,{_persist:Yo({},g,{rehydrated:!0})});return c(R)}}}if(!g)return t(p,f);var k=t(y,f);return k===y?p:c(Yo({},k,{_persist:g}))}}function RN(e){return vbe(e)||Ebe(e)||ybe()}function ybe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Ebe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function vbe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:gU,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case hU:return dE({},t,{registry:[].concat(RN(t.registry),[n.key])});case jT:var r=t.registry.indexOf(n.key),i=RN(t.registry);return i.splice(r,1),dE({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Sbe(e,t,n){var r=n||!1,i=oT(Tbe,gU,t&&t.enhancer?t.enhancer:void 0),a=function(c){i.dispatch({type:hU,key:c})},o=function(c,p,f){var m={type:jT,payload:p,err:f,key:c};e.dispatch(m),i.dispatch(m),r&&s.getState().bootstrapped&&(r(),r=!1)},s=dE({},i,{purge:function(){var c=[];return e.dispatch({type:fU,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:cU,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){e.dispatch({type:dU})},persist:function(){e.dispatch({type:pU,register:a,rehydrate:o})}});return t&&t.manualPersist||s.persist(),s}const wbe=mP({config:G4e,misc:X0e,uiState:q0e,sessionState:y0e,serverState:$4e}),Abe={key:"root",storage:uU},Cbe=bbe(Abe,wbe),mU=t0e({reducer:Cbe,middleware:e=>e({serializableCheck:!1})}),kbe=Sbe(mU);function Xh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xh=function(n){return typeof n}:Xh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xh(e)}function xbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ON(e,t){for(var n=0;n{const t=zt(i=>{var a,o;return(o=(a=i==null?void 0:i.serverState)==null?void 0:a.config)==null?void 0:o.allow_anonymous_telemetry}),[n,r]=ut.useState(void 0);return C.useEffect(()=>{t?(ep.init("phc_JS6XFROuNbhJtVCEdTSYk6gl5ArRrTNMpCcguAXlSPs",{api_host:"https://app.posthog.com",disable_session_recording:!0}),r(n)):r(void 0)},[t]),t?I.jsx(Pge,{client:n,children:e}):I.jsx(I.Fragment,{children:e})};J4.createRoot(document.getElementById("root")).render(I.jsx(ut.StrictMode,{children:I.jsx(_fe,{store:mU,children:I.jsx(bU,{loading:null,persistor:kbe,children:I.jsx(Obe,{children:I.jsx(q4e,{})})})})})); +`;function F4e(){var u,c,p,f,m;const e=nU(),{modelName:t}=Bme(),[n,r]=C.useState(void 0);C.useEffect(()=>{t&&r(aU[t])},[t]);const i=C.useContext(to);eo();const a=No(),o=window.vscMediaUrl,s=C.useCallback(()=>{var g;return((g=n==null?void 0:n.collectInputFor)==null?void 0:g.some(b=>{if(!b.required)return!1;const y=e.watch(b.key);return typeof y>"u"||typeof y=="string"&&y===""}))||!1},[n,e]);return I.jsx(KB,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht,zIndex:2},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>a("/models"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Configure Model"})]}),I.jsxs("div",{className:"px-2",children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o&&(n==null?void 0:n.icon)&&I.jsx("img",{src:`${o}/logos/${n==null?void 0:n.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h2",{children:n==null?void 0:n.title})]}),(u=n==null?void 0:n.tags)==null?void 0:u.map(g=>I.jsx("span",{style:{backgroundColor:`${Rc[g]}55`,color:"white",padding:"2px 4px",borderRadius:It,marginRight:"4px"},children:g})),I.jsx(Ug,{className:"mt-2",source:(n==null?void 0:n.longDescription)||(n==null?void 0:n.description),maxHeight:200}),I.jsx("br",{}),(((c=n==null?void 0:n.collectInputFor)==null?void 0:c.filter(g=>g.required).length)||0)>0&&I.jsxs(I.Fragment,{children:[I.jsx("h3",{className:"mb-2",children:"Enter required parameters"}),(p=n==null?void 0:n.collectInputFor)==null?void 0:p.filter(g=>g.required).map(g=>I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(Ig,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!0})})]}))]}),(((f=n==null?void 0:n.collectInputFor)==null?void 0:f.filter(g=>!g.required).length)||0)>0&&I.jsxs("details",{children:[I.jsx("summary",{className:"mb-2",children:I.jsx("b",{children:"Advanced (optional)"})}),(m=n==null?void 0:n.collectInputFor)==null?void 0:m.map(g=>g.required?null:I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(Ig,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!1})})]}))]}),I.jsx("h3",{className:"mb-2",children:"Select a model preset"})]}),I.jsxs(L4e,{children:[n==null?void 0:n.packages.map(g=>I.jsx(oU,{disabled:s(),title:g.title,description:g.description,tags:g.tags,refUrl:g.refUrl,icon:g.icon||n.icon,dimensions:g.dimensions,onClick:(b,y)=>{var E;if(s())return;const T={};for(const v of n.collectInputFor||[])T[v.key]=v.inputType==="text"?e.watch(v.key):parseFloat(e.watch(v.key));i==null||i.addModelForRole("*",n.class,{...g.params,...n.params,...el.merge({},...((E=g.dimensions)==null?void 0:E.map((v,w)=>y!=null&&y[w]?{...v.options[y[w]]}:{}))||[]),...T}),a("/")}})),I.jsx(M4e,{disabled:s(),onClick:g=>{var y;if(!n||s())return;const b={};for(const T of n.collectInputFor||[])b[T.key]=T.inputType==="text"?e.watch(T.key):parseFloat(e.watch(T.key));i==null||i.addModelForRole("*",n.class,{...(y=n.packages[0])==null?void 0:y.params,...n.params,...b}),a("/")},children:I.jsx("h3",{className:"text-center my-2",children:"Configure Model in config.py"})})]})]})})}const P4e={meilisearchUrl:void 0,slashCommands:[],selectedContextItems:[],config:{system_message:"",temperature:.5},contextProviders:[],savedContextGroups:[]},sU=pf({name:"serverState",initialState:P4e,reducers:{setSlashCommands:(e,t)=>({...e,slashCommands:t.payload}),setContextProviders:(e,t)=>({...e,contextProviders:t.payload}),setConfig:(e,t)=>({...e,config:t.payload})}}),{setContextProviders:B4e,setSlashCommands:U4e,setConfig:kN}=sU.actions,$4e=sU.reducer,X4=window,lU=pf({name:"config",initialState:{apiUrl:X4.serverUrl||"http://localhost:8000",workspacePaths:X4.workspacePaths||[],vscMachineId:X4.vscMachineId||void 0},reducers:{setWorkspacePaths:(e,t)=>({...e,workspacePaths:t.payload}),setApiUrl:(e,t)=>({...e,apiUrl:t.payload}),setVscMachineId:(e,t)=>({...e,vscMachineId:t.payload}),setSessionId:(e,t)=>({...e,sessionId:t.payload}),setDataSwitchOn:(e,t)=>({...e,dataSwitchOn:t.payload})}}),{setVscMachineId:z4e,setApiUrl:H4e,setWorkspacePaths:j4e,setSessionId:Wbe,setDataSwitchOn:qbe}=lU.actions,G4e=lU.reducer;function V4e(e,t){const n=zt(u=>u.config.apiUrl),r=zt(u=>u.sessionState.active),i=zt(u=>u.sessionState.title),a=zt(u=>u.sessionState.history),[o,s]=C.useState(!1);C.useEffect(()=>{t(Zd(!1)),qa("onLoad",{})},[]),C.useEffect(()=>{(async()=>{if(e&&!o&&!r&&i==="New Session"&&a&&a.filter(u=>!(u!=null&&u.hide)).length>=2){s(!0);const u=await e.getSessionTitle(a);t(wP(u))}})()},[r,a,i,e,o]),C.useEffect(()=>{e&&(e.onSessionUpdate(u=>{t(g0e(u))}),e.onAddContextItem(u=>{t(TP(u))}),e.onConfigUpdate(u=>{t(kN(u))}),fetch(`${n}/slash_commands`).then(async u=>{const c=await u.json();t(U4e(c))}),fetch(`${n}/context_providers`).then(async u=>{const c=await u.json();t(B4e(c))}),e.getConfig().then(u=>{t(kN(u))}))},[e]),C.useEffect(()=>{const u=c=>{switch(c.data.type){case"onLoad":window.windowId=c.data.windowId,window.serverUrl=c.data.serverUrl,window.workspacePaths=c.data.workspacePaths,window.vscMachineId=c.data.vscMachineId,window.vscMediaUrl=c.data.vscMediaUrl,t(H4e(c.data.serverUrl)),t(j4e(c.data.workspacePaths)),t(z4e(c.data.vscMachineId));break;case"highlightedCode":t(m0e({rangeInFileWithContents:c.data.rangeInFileWithContents,edit:c.data.edit}));break;case"serverStatus":t(Y0e(c.data.message));break;case"stopSession":e==null||e.stopSession();break}};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)},[e]),C.useEffect(()=>{document.body.style.getPropertyValue("--vscode-editor-foreground")&&localStorage.setItem("--vscode-editor-foreground",document.body.style.getPropertyValue("--vscode-editor-foreground")),document.body.style.getPropertyValue("--vscode-editor-background")&&localStorage.setItem("--vscode-editor-background",document.body.style.getPropertyValue("--vscode-editor-background")),document.body.style.getPropertyValue("--vscode-list-hoverBackground")&&localStorage.setItem("--vscode-list-hoverBackground",document.body.style.getPropertyValue("--vscode-list-hoverBackground"))},[])}const W4e=t2e([{path:"/",element:I.jsx(J5e,{}),errorElement:I.jsx(q3e,{}),children:[{path:"/index.html",element:I.jsx(qR,{})},{path:"/",element:I.jsx(qR,{})},{path:"/history",element:I.jsx(f2e,{})},{path:"/help",element:I.jsx(YR,{})},{path:"/settings",element:I.jsx(E4e,{})},{path:"/models",element:I.jsx(D4e,{})},{path:"/help",element:I.jsx(YR,{})},{path:"/modelconfig/:modelName",element:I.jsx(F4e,{})}]}]),to=C.createContext(void 0);function q4e(){const e=VB(!1),t=eo();return V4e(e,t),I.jsx(to.Provider,{value:e,children:I.jsx(Xme,{router:W4e})})}var $T={},zT={};zT.__esModule=!0;zT.default=X4e;function Kh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kh=function(n){return typeof n}:Kh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kh(e)}function Z4(){}var K4e={getItem:Z4,setItem:Z4,removeItem:Z4};function Y4e(e){if((typeof self>"u"?"undefined":Kh(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function X4e(e){var t="".concat(e,"Storage");return Y4e(t)?self[t]:K4e}$T.__esModule=!0;$T.default=J4e;var Z4e=Q4e(zT);function Q4e(e){return e&&e.__esModule?e:{default:e}}function J4e(e){var t=(0,Z4e.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,o){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var uU=void 0,ebe=tbe($T);function tbe(e){return e&&e.__esModule?e:{default:e}}var nbe=(0,ebe.default)("local");uU=nbe;var HT="persist:",cU="persist/FLUSH",jT="persist/REHYDRATE",dU="persist/PAUSE",pU="persist/PERSIST",fU="persist/PURGE",hU="persist/REGISTER",rbe=-1;function Yh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yh=function(n){return typeof n}:Yh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yh(e)}function xN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ibe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gbe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var mbe=5e3;function bbe(e,t){var n=e.version!==void 0?e.version:rbe;e.debug;var r=e.stateReconciler===void 0?obe:e.stateReconciler,i=e.getStoredState||ube,a=e.timeout!==void 0?e.timeout:mbe,o=null,s=!1,u=!0,c=function(f){return f._persist.rehydrated&&o&&!u&&o.update(f),f};return function(p,f){var m=p||{},g=m._persist,b=hbe(m,["_persist"]),y=b;if(f.type===pU){var T=!1,E=function(B,q){T||(f.rehydrate(e.key,B,q),T=!0)};if(a&&setTimeout(function(){!T&&E(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),u=!1,o||(o=sbe(e)),g)return Xo({},t(y,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(N){var B=e.migrate||function(q,P){return Promise.resolve(q)};B(N,n).then(function(q){E(q)},function(q){E(void 0,q)})},function(N){E(void 0,N)}),Xo({},t(y,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===fU)return s=!0,f.result(dbe(e)),Xo({},t(y,f),{_persist:g});if(f.type===cU)return f.result(o&&o.flush()),Xo({},t(y,f),{_persist:g});if(f.type===dU)u=!0;else if(f.type===jT){if(s)return Xo({},y,{_persist:Xo({},g,{rehydrated:!0})});if(f.key===e.key){var v=t(y,f),w=f.payload,A=r!==!1&&w!==void 0?r(w,p,v,e):v,R=Xo({},A,{_persist:Xo({},g,{rehydrated:!0})});return c(R)}}}if(!g)return t(p,f);var k=t(y,f);return k===y?p:c(Xo({},k,{_persist:g}))}}function RN(e){return vbe(e)||Ebe(e)||ybe()}function ybe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Ebe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function vbe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:gU,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case hU:return dE({},t,{registry:[].concat(RN(t.registry),[n.key])});case jT:var r=t.registry.indexOf(n.key),i=RN(t.registry);return i.splice(r,1),dE({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Sbe(e,t,n){var r=n||!1,i=oT(Tbe,gU,t&&t.enhancer?t.enhancer:void 0),a=function(c){i.dispatch({type:hU,key:c})},o=function(c,p,f){var m={type:jT,payload:p,err:f,key:c};e.dispatch(m),i.dispatch(m),r&&s.getState().bootstrapped&&(r(),r=!1)},s=dE({},i,{purge:function(){var c=[];return e.dispatch({type:fU,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:cU,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){e.dispatch({type:dU})},persist:function(){e.dispatch({type:pU,register:a,rehydrate:o})}});return t&&t.manualPersist||s.persist(),s}const wbe=mP({config:G4e,misc:X0e,uiState:q0e,sessionState:y0e,serverState:$4e}),Abe={key:"root",storage:uU},Cbe=bbe(Abe,wbe),mU=t0e({reducer:Cbe,middleware:e=>e({serializableCheck:!1})}),kbe=Sbe(mU);function Xh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xh=function(n){return typeof n}:Xh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xh(e)}function xbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ON(e,t){for(var n=0;n{const t=zt(i=>{var a,o;return(o=(a=i==null?void 0:i.serverState)==null?void 0:a.config)==null?void 0:o.allow_anonymous_telemetry}),[n,r]=st.useState(void 0);return C.useEffect(()=>{t?(ep.init("phc_JS6XFROuNbhJtVCEdTSYk6gl5ArRrTNMpCcguAXlSPs",{api_host:"https://app.posthog.com",disable_session_recording:!0}),r(n)):r(void 0)},[t]),t?I.jsx(Pge,{client:n,children:e}):I.jsx(I.Fragment,{children:e})};J4.createRoot(document.getElementById("root")).render(I.jsx(st.StrictMode,{children:I.jsx(_fe,{store:mU,children:I.jsx(bU,{loading:null,persistor:kbe,children:I.jsx(Obe,{children:I.jsx(q4e,{})})})})})); diff --git a/extensions/vscode/gui/assets/index.js b/extensions/vscode/gui/assets/index.js index 5148d27da..ed209b663 100644 --- a/extensions/vscode/gui/assets/index.js +++ b/extensions/vscode/gui/assets/index.js @@ -6,7 +6,7 @@ var TW=Object.defineProperty;var SW=(e,t,n)=>t in e?TW(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Dp=Symbol.for("react.element"),AW=Symbol.for("react.portal"),CW=Symbol.for("react.fragment"),kW=Symbol.for("react.strict_mode"),xW=Symbol.for("react.profiler"),IW=Symbol.for("react.provider"),RW=Symbol.for("react.context"),NW=Symbol.for("react.forward_ref"),OW=Symbol.for("react.suspense"),DW=Symbol.for("react.memo"),LW=Symbol.for("react.lazy"),gA=Symbol.iterator;function MW(e){return e===null||typeof e!="object"?null:(e=gA&&e[gA]||e["@@iterator"],typeof e=="function"?e:null)}var MN={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},FN=Object.assign,PN={};function fc(e,t,n){this.props=e,this.context=t,this.refs=PN,this.updater=n||MN}fc.prototype.isReactComponent={};fc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function BN(){}BN.prototype=fc.prototype;function hE(e,t,n){this.props=e,this.context=t,this.refs=PN,this.updater=n||MN}var gE=hE.prototype=new BN;gE.constructor=hE;FN(gE,fc.prototype);gE.isPureReactComponent=!0;var mA=Array.isArray,UN=Object.prototype.hasOwnProperty,mE={current:null},$N={key:!0,ref:!0,__self:!0,__source:!0};function zN(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)UN.call(t,r)&&!$N.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1t in e?TW(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var WN=C,$i=WW;function Pe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eb=Object.prototype.hasOwnProperty,qW=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yA={},EA={};function KW(e){return eb.call(EA,e)?!0:eb.call(yA,e)?!1:qW.test(e)?EA[e]=!0:(yA[e]=!0,!1)}function YW(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XW(e,t,n,r){if(t===null||typeof t>"u"||YW(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function oi(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ir[e]=new oi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ir[t]=new oi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ir[e]=new oi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ir[e]=new oi(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ir[e]=new oi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ir[e]=new oi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ir[e]=new oi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ir[e]=new oi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ir[e]=new oi(e,5,!1,e.toLowerCase(),null,!1,!1)});var yE=/[\-:]([a-z])/g;function EE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ir[e]=new oi(e,1,!1,e.toLowerCase(),null,!1,!1)});Ir.xlinkHref=new oi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ir[e]=new oi(e,1,!1,e.toLowerCase(),null,!0,!0)});function vE(e,t,n,r){var i=Ir.hasOwnProperty(t)?Ir[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eb=Object.prototype.hasOwnProperty,qW=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yA={},EA={};function KW(e){return eb.call(EA,e)?!0:eb.call(yA,e)?!1:qW.test(e)?EA[e]=!0:(yA[e]=!0,!1)}function YW(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XW(e,t,n,r){if(t===null||typeof t>"u"||YW(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function oi(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ir[e]=new oi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ir[t]=new oi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ir[e]=new oi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ir[e]=new oi(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ir[e]=new oi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ir[e]=new oi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ir[e]=new oi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ir[e]=new oi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ir[e]=new oi(e,5,!1,e.toLowerCase(),null,!1,!1)});var yE=/[\-:]([a-z])/g;function EE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yE,EE);Ir[t]=new oi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ir[e]=new oi(e,1,!1,e.toLowerCase(),null,!1,!1)});Ir.xlinkHref=new oi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ir[e]=new oi(e,1,!1,e.toLowerCase(),null,!0,!0)});function vE(e,t,n,r){var i=Ir.hasOwnProperty(t)?Ir[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var u=` -`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{n3=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ed(e):""}function ZW(e){switch(e.tag){case 5:return Ed(e.type);case 16:return Ed("Lazy");case 13:return Ed("Suspense");case 19:return Ed("SuspenseList");case 0:case 2:case 15:return e=r3(e.type,!1),e;case 11:return e=r3(e.type.render,!1),e;case 1:return e=r3(e.type,!0),e;default:return""}}function ib(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case h1:return"Fragment";case f1:return"Portal";case tb:return"Profiler";case _E:return"StrictMode";case nb:return"Suspense";case rb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case YN:return(e.displayName||"Context")+".Consumer";case KN:return(e._context.displayName||"Context")+".Provider";case TE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case SE:return t=e.displayName||null,t!==null?t:ib(e.type)||"Memo";case Hs:t=e._payload,e=e._init;try{return ib(e(t))}catch{}}return null}function QW(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ib(t);case 8:return t===_E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ZN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function JW(e){var t=ZN(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function u0(e){e._valueTracker||(e._valueTracker=JW(e))}function QN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ZN(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ab(e,t){var n=t.checked;return Ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _A(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function JN(e,t){t=t.checked,t!=null&&vE(e,"checked",t,!1)}function ob(e,t){JN(e,t);var n=hl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sb(e,t.type,n):t.hasOwnProperty("defaultValue")&&sb(e,t.type,hl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function TA(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sb(e,t,n){(t!=="number"||Jh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vd=Array.isArray;function P1(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=c0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eq=["Webkit","ms","Moz","O"];Object.keys(xd).forEach(function(e){eq.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xd[t]=xd[e]})});function rO(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xd.hasOwnProperty(e)&&xd[e]?(""+t).trim():t+"px"}function iO(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=rO(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var tq=Ln({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cb(e,t){if(t){if(tq[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pe(62))}}function db(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pb=null;function wE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fb=null,B1=null,U1=null;function AA(e){if(e=Fp(e)){if(typeof fb!="function")throw Error(Pe(280));var t=e.stateNode;t&&(t=fm(t),fb(e.stateNode,e.type,t))}}function aO(e){B1?U1?U1.push(e):U1=[e]:B1=e}function oO(){if(B1){var e=B1,t=U1;if(U1=B1=null,AA(e),t)for(e=0;e>>=0,e===0?32:31-(pq(e)/fq|0)|0}var d0=64,p0=4194304;function _d(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function rg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=_d(s):(a&=o,a!==0&&(r=_d(a)))}else o=n&~i,o!==0?r=_d(o):a!==0&&(r=_d(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Lp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ga(t),e[t]=n}function bq(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Rd),LA=String.fromCharCode(32),MA=!1;function CO(e,t){switch(e){case"keyup":return Vq.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var g1=!1;function qq(e,t){switch(e){case"compositionend":return kO(t);case"keypress":return t.which!==32?null:(MA=!0,LA);case"textInput":return e=t.data,e===LA&&MA?null:e;default:return null}}function Kq(e,t){if(g1)return e==="compositionend"||!OE&&CO(e,t)?(e=wO(),bh=IE=Xs=null,g1=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=UA(n)}}function NO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?NO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function OO(){for(var e=window,t=Jh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jh(e.document)}return t}function DE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function rK(e){var t=OO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&NO(n.ownerDocument.documentElement,n)){if(r!==null&&DE(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=$A(n,a);var o=$A(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,m1=null,Eb=null,Od=null,vb=!1;function zA(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vb||m1==null||m1!==Jh(r)||(r=m1,"selectionStart"in r&&DE(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Od&&up(Od,r)||(Od=r,r=og(Eb,"onSelect"),0E1||(e.current=Cb[E1],Cb[E1]=null,E1--)}function bn(e,t){E1++,Cb[E1]=e.current,e.current=t}var gl={},Gr=Tl(gl),Ei=Tl(!1),gu=gl;function Z1(e,t){var n=e.type.contextTypes;if(!n)return gl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vi(e){return e=e.childContextTypes,e!=null}function lg(){wn(Ei),wn(Gr)}function KA(e,t,n){if(Gr.current!==gl)throw Error(Pe(168));bn(Gr,t),bn(Ei,n)}function zO(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Pe(108,QW(e)||"Unknown",i));return Ln({},n,r)}function ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gl,gu=Gr.current,bn(Gr,e),bn(Ei,Ei.current),!0}function YA(e,t,n){var r=e.stateNode;if(!r)throw Error(Pe(169));n?(e=zO(e,t,gu),r.__reactInternalMemoizedMergedChildContext=e,wn(Ei),wn(Gr),bn(Gr,e)):wn(Ei),bn(Ei,n)}var Jo=null,hm=!1,b3=!1;function HO(e){Jo===null?Jo=[e]:Jo.push(e)}function gK(e){hm=!0,HO(e)}function Sl(){if(!b3&&Jo!==null){b3=!0;var e=0,t=on;try{var n=Jo;for(on=1;e>=o,i-=o,ts=1<<32-Ga(t)+i|n<B?(q=N,N=null):q=N.sibling;var P=m(E,N,w[B],A);if(P===null){N===null&&(N=q);break}e&&N&&P.alternate===null&&t(E,N),v=a(P,v,B),k===null?R=P:k.sibling=P,k=P,N=q}if(B===w.length)return n(E,N),xn&&Kl(E,B),R;if(N===null){for(;BB?(q=N,N=null):q=N.sibling;var Q=m(E,N,P.value,A);if(Q===null){N===null&&(N=q);break}e&&N&&Q.alternate===null&&t(E,N),v=a(Q,v,B),k===null?R=Q:k.sibling=Q,k=Q,N=q}if(P.done)return n(E,N),xn&&Kl(E,B),R;if(N===null){for(;!P.done;B++,P=w.next())P=f(E,P.value,A),P!==null&&(v=a(P,v,B),k===null?R=P:k.sibling=P,k=P);return xn&&Kl(E,B),R}for(N=r(E,N);!P.done;B++,P=w.next())P=g(N,E,B,P.value,A),P!==null&&(e&&P.alternate!==null&&N.delete(P.key===null?B:P.key),v=a(P,v,B),k===null?R=P:k.sibling=P,k=P);return e&&N.forEach(function($){return t(E,$)}),xn&&Kl(E,B),R}function T(E,v,w,A){if(typeof w=="object"&&w!==null&&w.type===h1&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case l0:e:{for(var R=w.key,k=v;k!==null;){if(k.key===R){if(R=w.type,R===h1){if(k.tag===7){n(E,k.sibling),v=i(k,w.props.children),v.return=E,E=v;break e}}else if(k.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Hs&&nC(R)===k.type){n(E,k.sibling),v=i(k,w.props),v.ref=Zc(E,k,w),v.return=E,E=v;break e}n(E,k);break}else t(E,k);k=k.sibling}w.type===h1?(v=du(w.props.children,E.mode,A,w.key),v.return=E,E=v):(A=Ah(w.type,w.key,w.props,null,E.mode,A),A.ref=Zc(E,v,w),A.return=E,E=A)}return o(E);case f1:e:{for(k=w.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(E,v.sibling),v=i(v,w.children||[]),v.return=E,E=v;break e}else{n(E,v);break}else t(E,v);v=v.sibling}v=A3(w,E.mode,A),v.return=E,E=v}return o(E);case Hs:return k=w._init,T(E,v,k(w._payload),A)}if(vd(w))return b(E,v,w,A);if(Wc(w))return y(E,v,w,A);E0(E,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(E,v.sibling),v=i(v,w),v.return=E,E=v):(n(E,v),v=w3(w,E.mode,A),v.return=E,E=v),o(E)):n(E,v)}return T}var J1=XO(!0),ZO=XO(!1),Pp={},_o=Tl(Pp),fp=Tl(Pp),hp=Tl(Pp);function iu(e){if(e===Pp)throw Error(Pe(174));return e}function HE(e,t){switch(bn(hp,t),bn(fp,e),bn(_o,Pp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ub(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ub(t,e)}wn(_o),bn(_o,t)}function ec(){wn(_o),wn(fp),wn(hp)}function QO(e){iu(hp.current);var t=iu(_o.current),n=ub(t,e.type);t!==n&&(bn(fp,e),bn(_o,n))}function jE(e){fp.current===e&&(wn(_o),wn(fp))}var On=Tl(0);function gg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var y3=[];function GE(){for(var e=0;en?n:4,e(!0);var r=E3.transition;E3.transition={};try{e(!1),t()}finally{on=n,E3.transition=r}}function hD(){return ya().memoizedState}function EK(e,t,n){var r=sl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gD(e))mD(t,n);else if(n=WO(e,t,n,r),n!==null){var i=ri();Va(n,e,r,i),bD(n,t,r)}}function vK(e,t,n){var r=sl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gD(e))mD(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ka(s,o)){var u=t.interleaved;u===null?(i.next=i,$E(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=WO(e,t,i,r),n!==null&&(i=ri(),Va(n,e,r,i),bD(n,t,r))}}function gD(e){var t=e.alternate;return e===Dn||t!==null&&t===Dn}function mD(e,t){Dd=mg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bD(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,CE(e,n)}}var bg={readContext:ba,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useMutableSource:Pr,useSyncExternalStore:Pr,useId:Pr,unstable_isNewReconciler:!1},_K={readContext:ba,useCallback:function(e,t){return co().memoizedState=[e,t===void 0?null:t],e},useContext:ba,useEffect:iC,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_h(4194308,4,uD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _h(4194308,4,e,t)},useInsertionEffect:function(e,t){return _h(4,2,e,t)},useMemo:function(e,t){var n=co();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=co();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=EK.bind(null,Dn,e),[r.memoizedState,e]},useRef:function(e){var t=co();return e={current:e},t.memoizedState=e},useState:rC,useDebugValue:YE,useDeferredValue:function(e){return co().memoizedState=e},useTransition:function(){var e=rC(!1),t=e[0];return e=yK.bind(null,e[1]),co().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Dn,i=co();if(xn){if(n===void 0)throw Error(Pe(407));n=n()}else{if(n=t(),fr===null)throw Error(Pe(349));bu&30||tD(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,iC(rD.bind(null,r,a,e),[e]),r.flags|=2048,bp(9,nD.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=co(),t=fr.identifierPrefix;if(xn){var n=ns,r=ts;n=(r&~(1<<32-Ga(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gp++,0")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{n3=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ed(e):""}function ZW(e){switch(e.tag){case 5:return Ed(e.type);case 16:return Ed("Lazy");case 13:return Ed("Suspense");case 19:return Ed("SuspenseList");case 0:case 2:case 15:return e=r3(e.type,!1),e;case 11:return e=r3(e.type.render,!1),e;case 1:return e=r3(e.type,!0),e;default:return""}}function ib(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case h1:return"Fragment";case f1:return"Portal";case tb:return"Profiler";case _E:return"StrictMode";case nb:return"Suspense";case rb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case YN:return(e.displayName||"Context")+".Consumer";case KN:return(e._context.displayName||"Context")+".Provider";case TE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case SE:return t=e.displayName||null,t!==null?t:ib(e.type)||"Memo";case Hs:t=e._payload,e=e._init;try{return ib(e(t))}catch{}}return null}function QW(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ib(t);case 8:return t===_E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ZN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function JW(e){var t=ZN(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function u0(e){e._valueTracker||(e._valueTracker=JW(e))}function QN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ZN(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ab(e,t){var n=t.checked;return Ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _A(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function JN(e,t){t=t.checked,t!=null&&vE(e,"checked",t,!1)}function ob(e,t){JN(e,t);var n=hl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sb(e,t.type,n):t.hasOwnProperty("defaultValue")&&sb(e,t.type,hl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function TA(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sb(e,t,n){(t!=="number"||Jh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vd=Array.isArray;function P1(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=c0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eq=["Webkit","ms","Moz","O"];Object.keys(xd).forEach(function(e){eq.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xd[t]=xd[e]})});function rO(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xd.hasOwnProperty(e)&&xd[e]?(""+t).trim():t+"px"}function iO(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=rO(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var tq=Ln({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cb(e,t){if(t){if(tq[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pe(62))}}function db(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pb=null;function wE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fb=null,B1=null,U1=null;function AA(e){if(e=Fp(e)){if(typeof fb!="function")throw Error(Pe(280));var t=e.stateNode;t&&(t=fm(t),fb(e.stateNode,e.type,t))}}function aO(e){B1?U1?U1.push(e):U1=[e]:B1=e}function oO(){if(B1){var e=B1,t=U1;if(U1=B1=null,AA(e),t)for(e=0;e>>=0,e===0?32:31-(pq(e)/fq|0)|0}var d0=64,p0=4194304;function _d(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function rg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=_d(s):(a&=o,a!==0&&(r=_d(a)))}else o=n&~i,o!==0?r=_d(o):a!==0&&(r=_d(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Lp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ga(t),e[t]=n}function bq(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Rd),LA=String.fromCharCode(32),MA=!1;function CO(e,t){switch(e){case"keyup":return Vq.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var g1=!1;function qq(e,t){switch(e){case"compositionend":return kO(t);case"keypress":return t.which!==32?null:(MA=!0,LA);case"textInput":return e=t.data,e===LA&&MA?null:e;default:return null}}function Kq(e,t){if(g1)return e==="compositionend"||!OE&&CO(e,t)?(e=wO(),bh=IE=Xs=null,g1=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=UA(n)}}function NO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?NO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function OO(){for(var e=window,t=Jh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jh(e.document)}return t}function DE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function rK(e){var t=OO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&NO(n.ownerDocument.documentElement,n)){if(r!==null&&DE(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=$A(n,a);var o=$A(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,m1=null,Eb=null,Od=null,vb=!1;function zA(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vb||m1==null||m1!==Jh(r)||(r=m1,"selectionStart"in r&&DE(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Od&&up(Od,r)||(Od=r,r=og(Eb,"onSelect"),0E1||(e.current=Cb[E1],Cb[E1]=null,E1--)}function bn(e,t){E1++,Cb[E1]=e.current,e.current=t}var gl={},Gr=Tl(gl),Ei=Tl(!1),gu=gl;function Z1(e,t){var n=e.type.contextTypes;if(!n)return gl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vi(e){return e=e.childContextTypes,e!=null}function lg(){wn(Ei),wn(Gr)}function KA(e,t,n){if(Gr.current!==gl)throw Error(Pe(168));bn(Gr,t),bn(Ei,n)}function zO(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Pe(108,QW(e)||"Unknown",i));return Ln({},n,r)}function ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gl,gu=Gr.current,bn(Gr,e),bn(Ei,Ei.current),!0}function YA(e,t,n){var r=e.stateNode;if(!r)throw Error(Pe(169));n?(e=zO(e,t,gu),r.__reactInternalMemoizedMergedChildContext=e,wn(Ei),wn(Gr),bn(Gr,e)):wn(Ei),bn(Ei,n)}var es=null,hm=!1,b3=!1;function HO(e){es===null?es=[e]:es.push(e)}function gK(e){hm=!0,HO(e)}function Sl(){if(!b3&&es!==null){b3=!0;var e=0,t=on;try{var n=es;for(on=1;e>=o,i-=o,ns=1<<32-Ga(t)+i|n<B?(q=N,N=null):q=N.sibling;var P=m(E,N,w[B],A);if(P===null){N===null&&(N=q);break}e&&N&&P.alternate===null&&t(E,N),v=a(P,v,B),k===null?R=P:k.sibling=P,k=P,N=q}if(B===w.length)return n(E,N),xn&&Kl(E,B),R;if(N===null){for(;BB?(q=N,N=null):q=N.sibling;var Q=m(E,N,P.value,A);if(Q===null){N===null&&(N=q);break}e&&N&&Q.alternate===null&&t(E,N),v=a(Q,v,B),k===null?R=Q:k.sibling=Q,k=Q,N=q}if(P.done)return n(E,N),xn&&Kl(E,B),R;if(N===null){for(;!P.done;B++,P=w.next())P=f(E,P.value,A),P!==null&&(v=a(P,v,B),k===null?R=P:k.sibling=P,k=P);return xn&&Kl(E,B),R}for(N=r(E,N);!P.done;B++,P=w.next())P=g(N,E,B,P.value,A),P!==null&&(e&&P.alternate!==null&&N.delete(P.key===null?B:P.key),v=a(P,v,B),k===null?R=P:k.sibling=P,k=P);return e&&N.forEach(function($){return t(E,$)}),xn&&Kl(E,B),R}function T(E,v,w,A){if(typeof w=="object"&&w!==null&&w.type===h1&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case l0:e:{for(var R=w.key,k=v;k!==null;){if(k.key===R){if(R=w.type,R===h1){if(k.tag===7){n(E,k.sibling),v=i(k,w.props.children),v.return=E,E=v;break e}}else if(k.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Hs&&nC(R)===k.type){n(E,k.sibling),v=i(k,w.props),v.ref=Zc(E,k,w),v.return=E,E=v;break e}n(E,k);break}else t(E,k);k=k.sibling}w.type===h1?(v=du(w.props.children,E.mode,A,w.key),v.return=E,E=v):(A=Ah(w.type,w.key,w.props,null,E.mode,A),A.ref=Zc(E,v,w),A.return=E,E=A)}return o(E);case f1:e:{for(k=w.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(E,v.sibling),v=i(v,w.children||[]),v.return=E,E=v;break e}else{n(E,v);break}else t(E,v);v=v.sibling}v=A3(w,E.mode,A),v.return=E,E=v}return o(E);case Hs:return k=w._init,T(E,v,k(w._payload),A)}if(vd(w))return b(E,v,w,A);if(Wc(w))return y(E,v,w,A);E0(E,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(E,v.sibling),v=i(v,w),v.return=E,E=v):(n(E,v),v=w3(w,E.mode,A),v.return=E,E=v),o(E)):n(E,v)}return T}var J1=XO(!0),ZO=XO(!1),Pp={},_o=Tl(Pp),fp=Tl(Pp),hp=Tl(Pp);function iu(e){if(e===Pp)throw Error(Pe(174));return e}function HE(e,t){switch(bn(hp,t),bn(fp,e),bn(_o,Pp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ub(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ub(t,e)}wn(_o),bn(_o,t)}function ec(){wn(_o),wn(fp),wn(hp)}function QO(e){iu(hp.current);var t=iu(_o.current),n=ub(t,e.type);t!==n&&(bn(fp,e),bn(_o,n))}function jE(e){fp.current===e&&(wn(_o),wn(fp))}var On=Tl(0);function gg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var y3=[];function GE(){for(var e=0;en?n:4,e(!0);var r=E3.transition;E3.transition={};try{e(!1),t()}finally{on=n,E3.transition=r}}function hD(){return ya().memoizedState}function EK(e,t,n){var r=sl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gD(e))mD(t,n);else if(n=WO(e,t,n,r),n!==null){var i=ri();Va(n,e,r,i),bD(n,t,r)}}function vK(e,t,n){var r=sl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gD(e))mD(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ka(s,o)){var u=t.interleaved;u===null?(i.next=i,$E(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=WO(e,t,i,r),n!==null&&(i=ri(),Va(n,e,r,i),bD(n,t,r))}}function gD(e){var t=e.alternate;return e===Dn||t!==null&&t===Dn}function mD(e,t){Dd=mg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bD(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,CE(e,n)}}var bg={readContext:ba,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useMutableSource:Pr,useSyncExternalStore:Pr,useId:Pr,unstable_isNewReconciler:!1},_K={readContext:ba,useCallback:function(e,t){return co().memoizedState=[e,t===void 0?null:t],e},useContext:ba,useEffect:iC,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_h(4194308,4,uD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _h(4194308,4,e,t)},useInsertionEffect:function(e,t){return _h(4,2,e,t)},useMemo:function(e,t){var n=co();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=co();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=EK.bind(null,Dn,e),[r.memoizedState,e]},useRef:function(e){var t=co();return e={current:e},t.memoizedState=e},useState:rC,useDebugValue:YE,useDeferredValue:function(e){return co().memoizedState=e},useTransition:function(){var e=rC(!1),t=e[0];return e=yK.bind(null,e[1]),co().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Dn,i=co();if(xn){if(n===void 0)throw Error(Pe(407));n=n()}else{if(n=t(),fr===null)throw Error(Pe(349));bu&30||tD(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,iC(rD.bind(null,r,a,e),[e]),r.flags|=2048,bp(9,nD.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=co(),t=fr.identifierPrefix;if(xn){var n=rs,r=ns;n=(r&~(1<<32-Ga(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[go]=t,e[pp]=r,CD(e,t,!1,!1),t.stateNode=e;e:{switch(o=db(n,r),n){case"dialog":_n("cancel",e),_n("close",e),i=r;break;case"iframe":case"object":case"embed":_n("load",e),i=r;break;case"video":case"audio":for(i=0;inc&&(t.flags|=128,r=!0,Qc(a,!1),t.lanes=4194304)}else{if(!r)if(e=gg(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qc(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!xn)return Br(t),null}else 2*Gn()-a.renderingStartTime>nc&&n!==1073741824&&(t.flags|=128,r=!0,Qc(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Gn(),t.sibling=null,n=On.current,bn(On,r?n&1|2:n&1),t):(Br(t),null);case 22:case 23:return t9(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Di&1073741824&&(Br(t),t.subtreeFlags&6&&(t.flags|=8192)):Br(t),null;case 24:return null;case 25:return null}throw Error(Pe(156,t.tag))}function IK(e,t){switch(ME(t),t.tag){case 1:return vi(t.type)&&lg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ec(),wn(Ei),wn(Gr),GE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jE(t),null;case 13:if(wn(On),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pe(340));Q1()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wn(On),null;case 4:return ec(),null;case 10:return UE(t.type._context),null;case 22:case 23:return t9(),null;case 24:return null;default:return null}}var _0=!1,zr=!1,RK=typeof WeakSet=="function"?WeakSet:Set,tt=null;function S1(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Bn(e,t,r)}else n.current=null}function Bb(e,t,n){try{n()}catch(r){Bn(e,t,r)}}var fC=!1;function NK(e,t){if(_b=ig,e=OO(),DE(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,c=0,p=0,f=e,m=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++c===i&&(s=o),m===a&&++p===r&&(u=o),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tb={focusedElem:e,selectionRange:n},ig=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){t=tt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var y=b.memoizedProps,T=b.memoizedState,E=t.stateNode,v=E.getSnapshotBeforeUpdate(t.elementType===t.type?y:Fa(t.type,y),T);E.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pe(163))}}catch(A){Bn(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}return b=fC,fC=!1,b}function Ld(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Bb(t,n,a)}i=i.next}while(i!==r)}}function bm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ub(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ID(e){var t=e.alternate;t!==null&&(e.alternate=null,ID(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[go],delete t[pp],delete t[Ab],delete t[fK],delete t[hK])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function RD(e){return e.tag===5||e.tag===3||e.tag===4}function hC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||RD(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $b(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sg));else if(r!==4&&(e=e.child,e!==null))for($b(e,t,n),e=e.sibling;e!==null;)$b(e,t,n),e=e.sibling}function zb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(zb(e,t,n),e=e.sibling;e!==null;)zb(e,t,n),e=e.sibling}var _r=null,Pa=!1;function Os(e,t,n){for(n=n.child;n!==null;)ND(e,t,n),n=n.sibling}function ND(e,t,n){if(vo&&typeof vo.onCommitFiberUnmount=="function")try{vo.onCommitFiberUnmount(um,n)}catch{}switch(n.tag){case 5:zr||S1(n,t);case 6:var r=_r,i=Pa;_r=null,Os(e,t,n),_r=r,Pa=i,_r!==null&&(Pa?(e=_r,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_r.removeChild(n.stateNode));break;case 18:_r!==null&&(Pa?(e=_r,n=n.stateNode,e.nodeType===8?m3(e.parentNode,n):e.nodeType===1&&m3(e,n),sp(e)):m3(_r,n.stateNode));break;case 4:r=_r,i=Pa,_r=n.stateNode.containerInfo,Pa=!0,Os(e,t,n),_r=r,Pa=i;break;case 0:case 11:case 14:case 15:if(!zr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Bb(n,t,o),i=i.next}while(i!==r)}Os(e,t,n);break;case 1:if(!zr&&(S1(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Bn(n,t,s)}Os(e,t,n);break;case 21:Os(e,t,n);break;case 22:n.mode&1?(zr=(r=zr)||n.memoizedState!==null,Os(e,t,n),zr=r):Os(e,t,n);break;default:Os(e,t,n)}}function gC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new RK),t.forEach(function(r){var i=$K.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ra(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=Gn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DK(r/1960))-r,10e?16:e,Zs===null)var r=!1;else{if(e=Zs,Zs=null,vg=0,Kt&6)throw Error(Pe(331));var i=Kt;for(Kt|=4,tt=e.current;tt!==null;){var a=tt,o=a.child;if(tt.flags&16){var s=a.deletions;if(s!==null){for(var u=0;uGn()-JE?cu(e,0):QE|=n),_i(e,t)}function UD(e,t){t===0&&(e.mode&1?(t=p0,p0<<=1,!(p0&130023424)&&(p0=4194304)):t=1);var n=ri();e=ls(e,t),e!==null&&(Lp(e,t,n),_i(e,n))}function UK(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),UD(e,n)}function $K(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Pe(314))}r!==null&&r.delete(t),UD(e,n)}var $D;$D=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ei.current)bi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bi=!1,kK(e,t,n);bi=!!(e.flags&131072)}else bi=!1,xn&&t.flags&1048576&&jO(t,dg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Th(e,t),e=t.pendingProps;var i=Z1(t,Gr.current);z1(t,n),i=WE(null,t,r,e,i,n);var a=qE();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)?(a=!0,ug(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zE(t),i.updater=gm,t.stateNode=i,i._reactInternals=t,Nb(t,r,e,n),t=Lb(null,t,r,!0,a,n)):(t.tag=0,xn&&a&&LE(t),Jr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Th(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=HK(r),e=Fa(r,e),i){case 0:t=Db(null,t,r,e,n);break e;case 1:t=cC(null,t,r,e,n);break e;case 11:t=lC(null,t,r,e,n);break e;case 14:t=uC(null,t,r,Fa(r.type,e),n);break e}throw Error(Pe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),Db(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),cC(e,t,r,i,n);case 3:e:{if(SD(t),e===null)throw Error(Pe(387));r=t.pendingProps,a=t.memoizedState,i=a.element,qO(e,t),hg(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=tc(Error(Pe(423)),t),t=dC(e,t,r,n,i);break e}else if(r!==i){i=tc(Error(Pe(424)),t),t=dC(e,t,r,n,i);break e}else for(Mi=il(t.stateNode.containerInfo.firstChild),Fi=t,xn=!0,$a=null,n=ZO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Q1(),r===i){t=us(e,t,n);break e}Jr(e,t,r,n)}t=t.child}return t;case 5:return QO(t),e===null&&xb(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Sb(r,i)?o=null:a!==null&&Sb(r,a)&&(t.flags|=32),TD(e,t),Jr(e,t,o,n),t.child;case 6:return e===null&&xb(t),null;case 13:return wD(e,t,n);case 4:return HE(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=J1(t,null,r,n):Jr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),lC(e,t,r,i,n);case 7:return Jr(e,t,t.pendingProps,n),t.child;case 8:return Jr(e,t,t.pendingProps.children,n),t.child;case 12:return Jr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,bn(pg,r._currentValue),r._currentValue=o,a!==null)if(Ka(a.value,o)){if(a.children===i.children&&!Ei.current){t=us(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(a.tag===1){u=is(-1,n&-n),u.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Ib(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Pe(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ib(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Jr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,z1(t,n),i=ba(i),r=r(i),t.flags|=1,Jr(e,t,r,n),t.child;case 14:return r=t.type,i=Fa(r,t.pendingProps),i=Fa(r.type,i),uC(e,t,r,i,n);case 15:return vD(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),Th(e,t),t.tag=1,vi(r)?(e=!0,ug(t)):e=!1,z1(t,n),YO(t,r,i),Nb(t,r,i,n),Lb(null,t,r,!0,e,n);case 19:return AD(e,t,n);case 22:return _D(e,t,n)}throw Error(Pe(156,t.tag))};function zD(e,t){return fO(e,t)}function zK(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pa(e,t,n,r){return new zK(e,t,n,r)}function r9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HK(e){if(typeof e=="function")return r9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===TE)return 11;if(e===SE)return 14}return 2}function ll(e,t){var n=e.alternate;return n===null?(n=pa(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ah(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")r9(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case h1:return du(n.children,i,a,t);case _E:o=8,i|=8;break;case tb:return e=pa(12,n,t,i|2),e.elementType=tb,e.lanes=a,e;case nb:return e=pa(13,n,t,i),e.elementType=nb,e.lanes=a,e;case rb:return e=pa(19,n,t,i),e.elementType=rb,e.lanes=a,e;case XN:return Em(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case KN:o=10;break e;case YN:o=9;break e;case TE:o=11;break e;case SE:o=14;break e;case Hs:o=16,r=null;break e}throw Error(Pe(130,e==null?e:typeof e,""))}return t=pa(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function du(e,t,n,r){return e=pa(7,e,r,t),e.lanes=n,e}function Em(e,t,n,r){return e=pa(22,e,r,t),e.elementType=XN,e.lanes=n,e.stateNode={isHidden:!1},e}function w3(e,t,n){return e=pa(6,e,null,t),e.lanes=n,e}function A3(e,t,n){return t=pa(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jK(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=a3(0),this.expirationTimes=a3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=a3(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function i9(e,t,n,r,i,a,o,s,u){return e=new jK(e,t,n,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pa(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zE(a),e}function GK(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(VD)}catch(e){console.error(e)}}VD(),jN.exports=Wi;var l9=jN.exports;const u9=Vi(l9);var SC=l9;J4.createRoot=SC.createRoot,J4.hydrateRoot=SC.hydrateRoot;var WD={exports:{}},sn={};/** +`+a.stack}return{value:e,source:t,stack:i,digest:null}}function T3(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ob(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wK=typeof WeakMap=="function"?WeakMap:Map;function yD(e,t,n){n=as(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Eg||(Eg=!0,Hb=r),Ob(e,t)},n}function ED(e,t,n){n=as(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ob(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Ob(e,t),typeof r!="function"&&(ol===null?ol=new Set([this]):ol.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function aC(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wK;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=BK.bind(null,e,t,n),t.then(e,e))}function oC(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function sC(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=as(-1,1),t.tag=2,al(n,t,1))),n.lanes|=1),e)}var AK=gs.ReactCurrentOwner,bi=!1;function Jr(e,t,n,r){t.child=e===null?ZO(t,null,n,r):J1(t,e.child,n,r)}function lC(e,t,n,r,i){n=n.render;var a=t.ref;return z1(t,i),r=WE(e,t,n,r,a,i),n=qE(),e!==null&&!bi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,cs(e,t,i)):(xn&&n&&LE(t),t.flags|=1,Jr(e,t,r,i),t.child)}function uC(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!r9(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,vD(e,t,a,r,i)):(e=Ah(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:up,n(o,r)&&e.ref===t.ref)return cs(e,t,i)}return t.flags|=1,e=ll(a,r),e.ref=t.ref,e.return=t,t.child=e}function vD(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(up(a,r)&&e.ref===t.ref)if(bi=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(bi=!0);else return t.lanes=e.lanes,cs(e,t,i)}return Db(e,t,n,r,i)}function _D(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},bn(w1,Di),Di|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,bn(w1,Di),Di|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,bn(w1,Di),Di|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,bn(w1,Di),Di|=r;return Jr(e,t,i,n),t.child}function TD(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Db(e,t,n,r,i){var a=vi(n)?gu:Gr.current;return a=Z1(t,a),z1(t,i),n=WE(e,t,n,r,a,i),r=qE(),e!==null&&!bi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,cs(e,t,i)):(xn&&r&&LE(t),t.flags|=1,Jr(e,t,n,i),t.child)}function cC(e,t,n,r,i){if(vi(n)){var a=!0;ug(t)}else a=!1;if(z1(t,i),t.stateNode===null)Th(e,t),YO(t,n,r),Nb(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=ba(c):(c=vi(n)?gu:Gr.current,c=Z1(t,c));var p=n.getDerivedStateFromProps,f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==c)&&tC(t,o,r,c),js=!1;var m=t.memoizedState;o.state=m,hg(t,r,o,i),u=t.memoizedState,s!==r||m!==u||Ei.current||js?(typeof p=="function"&&(Rb(t,n,p,r),u=t.memoizedState),(s=js||eC(t,n,s,r,m,u,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,qO(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Fa(t.type,s),o.props=c,f=t.pendingProps,m=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=ba(u):(u=vi(n)?gu:Gr.current,u=Z1(t,u));var g=n.getDerivedStateFromProps;(p=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||m!==u)&&tC(t,o,r,u),js=!1,m=t.memoizedState,o.state=m,hg(t,r,o,i);var b=t.memoizedState;s!==f||m!==b||Ei.current||js?(typeof g=="function"&&(Rb(t,n,g,r),b=t.memoizedState),(c=js||eC(t,n,c,r,m,b,u)||!1)?(p||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,b,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,b,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),o.props=r,o.state=b,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Lb(e,t,n,r,a,i)}function Lb(e,t,n,r,i,a){TD(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&YA(t,n,!1),cs(e,t,a);r=t.stateNode,AK.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=J1(t,e.child,null,a),t.child=J1(t,null,s,a)):Jr(e,t,s,a),t.memoizedState=r.state,i&&YA(t,n,!0),t.child}function SD(e){var t=e.stateNode;t.pendingContext?KA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&KA(e,t.context,!1),HE(e,t.containerInfo)}function dC(e,t,n,r,i){return Q1(),FE(i),t.flags|=256,Jr(e,t,n,r),t.child}var Mb={dehydrated:null,treeContext:null,retryLane:0};function Fb(e){return{baseLanes:e,cachePool:null,transitions:null}}function wD(e,t,n){var r=t.pendingProps,i=On.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),bn(On,i&1),e===null)return xb(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Em(o,r,0,null),e=du(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Fb(n),t.memoizedState=Mb,e):XE(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return CK(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ll(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=ll(s,a):(a=du(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Fb(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Mb,r}return a=e.child,e=a.sibling,r=ll(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function XE(e,t){return t=Em({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function v0(e,t,n,r){return r!==null&&FE(r),J1(t,e.child,null,n),e=XE(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function CK(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=T3(Error(Pe(422))),v0(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Em({mode:"visible",children:r.children},i,0,null),a=du(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&J1(t,e.child,null,o),t.child.memoizedState=Fb(o),t.memoizedState=Mb,a);if(!(t.mode&1))return v0(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(Pe(419)),r=T3(a,r,void 0),v0(e,t,o,r)}if(s=(o&e.childLanes)!==0,bi||s){if(r=fr,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,us(e,i),Va(r,e,i,-1))}return n9(),r=T3(Error(Pe(421))),v0(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=UK.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Mi=il(i.nextSibling),Fi=t,xn=!0,$a=null,e!==null&&(la[ua++]=ns,la[ua++]=rs,la[ua++]=mu,ns=e.id,rs=e.overflow,mu=t),t=XE(t,r.children),t.flags|=4096,t)}function pC(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ib(e.return,t,n)}function S3(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function AD(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Jr(e,t,r.children,n),r=On.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pC(e,n,t);else if(e.tag===19)pC(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(bn(On,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&gg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),S3(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&gg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}S3(t,!0,n,null,a);break;case"together":S3(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Th(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cs(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yu|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Pe(153));if(t.child!==null){for(e=t.child,n=ll(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ll(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kK(e,t,n){switch(t.tag){case 3:SD(t),Q1();break;case 5:QO(t);break;case 1:vi(t.type)&&ug(t);break;case 4:HE(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;bn(pg,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(bn(On,On.current&1),t.flags|=128,null):n&t.child.childLanes?wD(e,t,n):(bn(On,On.current&1),e=cs(e,t,n),e!==null?e.sibling:null);bn(On,On.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return AD(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),bn(On,On.current),r)break;return null;case 22:case 23:return t.lanes=0,_D(e,t,n)}return cs(e,t,n)}var CD,Pb,kD,xD;CD=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Pb=function(){};kD=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,iu(_o.current);var a=null;switch(n){case"input":i=ab(e,i),r=ab(e,r),a=[];break;case"select":i=Ln({},i,{value:void 0}),r=Ln({},r,{value:void 0}),a=[];break;case"textarea":i=lb(e,i),r=lb(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=sg)}cb(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(np.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(u!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(a=a||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(a=a||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(np.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&_n("scroll",e),a||s===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};xD=function(e,t,n,r){n!==r&&(t.flags|=4)};function Qc(e,t){if(!xn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Br(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xK(e,t,n){var r=t.pendingProps;switch(ME(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Br(t),null;case 1:return vi(t.type)&&lg(),Br(t),null;case 3:return r=t.stateNode,ec(),wn(Ei),wn(Gr),GE(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(y0(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$a!==null&&(Vb($a),$a=null))),Pb(e,t),Br(t),null;case 5:jE(t);var i=iu(hp.current);if(n=t.type,e!==null&&t.stateNode!=null)kD(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Pe(166));return Br(t),null}if(e=iu(_o.current),y0(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[go]=t,r[pp]=a,e=(t.mode&1)!==0,n){case"dialog":_n("cancel",r),_n("close",r);break;case"iframe":case"object":case"embed":_n("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[go]=t,e[pp]=r,CD(e,t,!1,!1),t.stateNode=e;e:{switch(o=db(n,r),n){case"dialog":_n("cancel",e),_n("close",e),i=r;break;case"iframe":case"object":case"embed":_n("load",e),i=r;break;case"video":case"audio":for(i=0;inc&&(t.flags|=128,r=!0,Qc(a,!1),t.lanes=4194304)}else{if(!r)if(e=gg(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qc(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!xn)return Br(t),null}else 2*Gn()-a.renderingStartTime>nc&&n!==1073741824&&(t.flags|=128,r=!0,Qc(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Gn(),t.sibling=null,n=On.current,bn(On,r?n&1|2:n&1),t):(Br(t),null);case 22:case 23:return t9(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Di&1073741824&&(Br(t),t.subtreeFlags&6&&(t.flags|=8192)):Br(t),null;case 24:return null;case 25:return null}throw Error(Pe(156,t.tag))}function IK(e,t){switch(ME(t),t.tag){case 1:return vi(t.type)&&lg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ec(),wn(Ei),wn(Gr),GE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jE(t),null;case 13:if(wn(On),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pe(340));Q1()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wn(On),null;case 4:return ec(),null;case 10:return UE(t.type._context),null;case 22:case 23:return t9(),null;case 24:return null;default:return null}}var _0=!1,zr=!1,RK=typeof WeakSet=="function"?WeakSet:Set,tt=null;function S1(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Bn(e,t,r)}else n.current=null}function Bb(e,t,n){try{n()}catch(r){Bn(e,t,r)}}var fC=!1;function NK(e,t){if(_b=ig,e=OO(),DE(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,c=0,p=0,f=e,m=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++c===i&&(s=o),m===a&&++p===r&&(u=o),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tb={focusedElem:e,selectionRange:n},ig=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){t=tt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var y=b.memoizedProps,T=b.memoizedState,E=t.stateNode,v=E.getSnapshotBeforeUpdate(t.elementType===t.type?y:Fa(t.type,y),T);E.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pe(163))}}catch(A){Bn(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}return b=fC,fC=!1,b}function Ld(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Bb(t,n,a)}i=i.next}while(i!==r)}}function bm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ub(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ID(e){var t=e.alternate;t!==null&&(e.alternate=null,ID(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[go],delete t[pp],delete t[Ab],delete t[fK],delete t[hK])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function RD(e){return e.tag===5||e.tag===3||e.tag===4}function hC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||RD(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $b(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sg));else if(r!==4&&(e=e.child,e!==null))for($b(e,t,n),e=e.sibling;e!==null;)$b(e,t,n),e=e.sibling}function zb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(zb(e,t,n),e=e.sibling;e!==null;)zb(e,t,n),e=e.sibling}var _r=null,Pa=!1;function Os(e,t,n){for(n=n.child;n!==null;)ND(e,t,n),n=n.sibling}function ND(e,t,n){if(vo&&typeof vo.onCommitFiberUnmount=="function")try{vo.onCommitFiberUnmount(um,n)}catch{}switch(n.tag){case 5:zr||S1(n,t);case 6:var r=_r,i=Pa;_r=null,Os(e,t,n),_r=r,Pa=i,_r!==null&&(Pa?(e=_r,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_r.removeChild(n.stateNode));break;case 18:_r!==null&&(Pa?(e=_r,n=n.stateNode,e.nodeType===8?m3(e.parentNode,n):e.nodeType===1&&m3(e,n),sp(e)):m3(_r,n.stateNode));break;case 4:r=_r,i=Pa,_r=n.stateNode.containerInfo,Pa=!0,Os(e,t,n),_r=r,Pa=i;break;case 0:case 11:case 14:case 15:if(!zr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Bb(n,t,o),i=i.next}while(i!==r)}Os(e,t,n);break;case 1:if(!zr&&(S1(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Bn(n,t,s)}Os(e,t,n);break;case 21:Os(e,t,n);break;case 22:n.mode&1?(zr=(r=zr)||n.memoizedState!==null,Os(e,t,n),zr=r):Os(e,t,n);break;default:Os(e,t,n)}}function gC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new RK),t.forEach(function(r){var i=$K.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ra(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=Gn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DK(r/1960))-r,10e?16:e,Zs===null)var r=!1;else{if(e=Zs,Zs=null,vg=0,Kt&6)throw Error(Pe(331));var i=Kt;for(Kt|=4,tt=e.current;tt!==null;){var a=tt,o=a.child;if(tt.flags&16){var s=a.deletions;if(s!==null){for(var u=0;uGn()-JE?cu(e,0):QE|=n),_i(e,t)}function UD(e,t){t===0&&(e.mode&1?(t=p0,p0<<=1,!(p0&130023424)&&(p0=4194304)):t=1);var n=ri();e=us(e,t),e!==null&&(Lp(e,t,n),_i(e,n))}function UK(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),UD(e,n)}function $K(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Pe(314))}r!==null&&r.delete(t),UD(e,n)}var $D;$D=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ei.current)bi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bi=!1,kK(e,t,n);bi=!!(e.flags&131072)}else bi=!1,xn&&t.flags&1048576&&jO(t,dg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Th(e,t),e=t.pendingProps;var i=Z1(t,Gr.current);z1(t,n),i=WE(null,t,r,e,i,n);var a=qE();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)?(a=!0,ug(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zE(t),i.updater=gm,t.stateNode=i,i._reactInternals=t,Nb(t,r,e,n),t=Lb(null,t,r,!0,a,n)):(t.tag=0,xn&&a&&LE(t),Jr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Th(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=HK(r),e=Fa(r,e),i){case 0:t=Db(null,t,r,e,n);break e;case 1:t=cC(null,t,r,e,n);break e;case 11:t=lC(null,t,r,e,n);break e;case 14:t=uC(null,t,r,Fa(r.type,e),n);break e}throw Error(Pe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),Db(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),cC(e,t,r,i,n);case 3:e:{if(SD(t),e===null)throw Error(Pe(387));r=t.pendingProps,a=t.memoizedState,i=a.element,qO(e,t),hg(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=tc(Error(Pe(423)),t),t=dC(e,t,r,n,i);break e}else if(r!==i){i=tc(Error(Pe(424)),t),t=dC(e,t,r,n,i);break e}else for(Mi=il(t.stateNode.containerInfo.firstChild),Fi=t,xn=!0,$a=null,n=ZO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Q1(),r===i){t=cs(e,t,n);break e}Jr(e,t,r,n)}t=t.child}return t;case 5:return QO(t),e===null&&xb(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Sb(r,i)?o=null:a!==null&&Sb(r,a)&&(t.flags|=32),TD(e,t),Jr(e,t,o,n),t.child;case 6:return e===null&&xb(t),null;case 13:return wD(e,t,n);case 4:return HE(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=J1(t,null,r,n):Jr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),lC(e,t,r,i,n);case 7:return Jr(e,t,t.pendingProps,n),t.child;case 8:return Jr(e,t,t.pendingProps.children,n),t.child;case 12:return Jr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,bn(pg,r._currentValue),r._currentValue=o,a!==null)if(Ka(a.value,o)){if(a.children===i.children&&!Ei.current){t=cs(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(a.tag===1){u=as(-1,n&-n),u.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Ib(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Pe(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ib(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Jr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,z1(t,n),i=ba(i),r=r(i),t.flags|=1,Jr(e,t,r,n),t.child;case 14:return r=t.type,i=Fa(r,t.pendingProps),i=Fa(r.type,i),uC(e,t,r,i,n);case 15:return vD(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fa(r,i),Th(e,t),t.tag=1,vi(r)?(e=!0,ug(t)):e=!1,z1(t,n),YO(t,r,i),Nb(t,r,i,n),Lb(null,t,r,!0,e,n);case 19:return AD(e,t,n);case 22:return _D(e,t,n)}throw Error(Pe(156,t.tag))};function zD(e,t){return fO(e,t)}function zK(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pa(e,t,n,r){return new zK(e,t,n,r)}function r9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HK(e){if(typeof e=="function")return r9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===TE)return 11;if(e===SE)return 14}return 2}function ll(e,t){var n=e.alternate;return n===null?(n=pa(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ah(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")r9(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case h1:return du(n.children,i,a,t);case _E:o=8,i|=8;break;case tb:return e=pa(12,n,t,i|2),e.elementType=tb,e.lanes=a,e;case nb:return e=pa(13,n,t,i),e.elementType=nb,e.lanes=a,e;case rb:return e=pa(19,n,t,i),e.elementType=rb,e.lanes=a,e;case XN:return Em(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case KN:o=10;break e;case YN:o=9;break e;case TE:o=11;break e;case SE:o=14;break e;case Hs:o=16,r=null;break e}throw Error(Pe(130,e==null?e:typeof e,""))}return t=pa(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function du(e,t,n,r){return e=pa(7,e,r,t),e.lanes=n,e}function Em(e,t,n,r){return e=pa(22,e,r,t),e.elementType=XN,e.lanes=n,e.stateNode={isHidden:!1},e}function w3(e,t,n){return e=pa(6,e,null,t),e.lanes=n,e}function A3(e,t,n){return t=pa(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jK(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=a3(0),this.expirationTimes=a3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=a3(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function i9(e,t,n,r,i,a,o,s,u){return e=new jK(e,t,n,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pa(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zE(a),e}function GK(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(VD)}catch(e){console.error(e)}}VD(),jN.exports=Wi;var l9=jN.exports;const u9=Vi(l9);var SC=l9;J4.createRoot=SC.createRoot,J4.hydrateRoot=SC.hydrateRoot;var WD={exports:{}},sn={};/** * @license React * react-is.production.min.js * @@ -52,19 +52,19 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var hr=typeof Symbol=="function"&&Symbol.for,f9=hr?Symbol.for("react.element"):60103,h9=hr?Symbol.for("react.portal"):60106,Lm=hr?Symbol.for("react.fragment"):60107,Mm=hr?Symbol.for("react.strict_mode"):60108,Fm=hr?Symbol.for("react.profiler"):60114,Pm=hr?Symbol.for("react.provider"):60109,Bm=hr?Symbol.for("react.context"):60110,g9=hr?Symbol.for("react.async_mode"):60111,Um=hr?Symbol.for("react.concurrent_mode"):60111,$m=hr?Symbol.for("react.forward_ref"):60112,zm=hr?Symbol.for("react.suspense"):60113,nY=hr?Symbol.for("react.suspense_list"):60120,Hm=hr?Symbol.for("react.memo"):60115,jm=hr?Symbol.for("react.lazy"):60116,rY=hr?Symbol.for("react.block"):60121,iY=hr?Symbol.for("react.fundamental"):60117,aY=hr?Symbol.for("react.responder"):60118,oY=hr?Symbol.for("react.scope"):60119;function Ki(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case f9:switch(e=e.type,e){case g9:case Um:case Lm:case Fm:case Mm:case zm:return e;default:switch(e=e&&e.$$typeof,e){case Bm:case $m:case jm:case Hm:case Pm:return e;default:return t}}case h9:return t}}}function YD(e){return Ki(e)===Um}ln.AsyncMode=g9;ln.ConcurrentMode=Um;ln.ContextConsumer=Bm;ln.ContextProvider=Pm;ln.Element=f9;ln.ForwardRef=$m;ln.Fragment=Lm;ln.Lazy=jm;ln.Memo=Hm;ln.Portal=h9;ln.Profiler=Fm;ln.StrictMode=Mm;ln.Suspense=zm;ln.isAsyncMode=function(e){return YD(e)||Ki(e)===g9};ln.isConcurrentMode=YD;ln.isContextConsumer=function(e){return Ki(e)===Bm};ln.isContextProvider=function(e){return Ki(e)===Pm};ln.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===f9};ln.isForwardRef=function(e){return Ki(e)===$m};ln.isFragment=function(e){return Ki(e)===Lm};ln.isLazy=function(e){return Ki(e)===jm};ln.isMemo=function(e){return Ki(e)===Hm};ln.isPortal=function(e){return Ki(e)===h9};ln.isProfiler=function(e){return Ki(e)===Fm};ln.isStrictMode=function(e){return Ki(e)===Mm};ln.isSuspense=function(e){return Ki(e)===zm};ln.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Lm||e===Um||e===Fm||e===Mm||e===zm||e===nY||typeof e=="object"&&e!==null&&(e.$$typeof===jm||e.$$typeof===Hm||e.$$typeof===Pm||e.$$typeof===Bm||e.$$typeof===$m||e.$$typeof===iY||e.$$typeof===aY||e.$$typeof===oY||e.$$typeof===rY)};ln.typeOf=Ki;KD.exports=ln;var sY=KD.exports,m9=sY,lY={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},uY={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},cY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},XD={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},b9={};b9[m9.ForwardRef]=cY;b9[m9.Memo]=XD;function AC(e){return m9.isMemo(e)?XD:b9[e.$$typeof]||lY}var dY=Object.defineProperty,pY=Object.getOwnPropertyNames,CC=Object.getOwnPropertySymbols,fY=Object.getOwnPropertyDescriptor,hY=Object.getPrototypeOf,kC=Object.prototype;function ZD(e,t,n){if(typeof t!="string"){if(kC){var r=hY(t);r&&r!==kC&&ZD(e,r,n)}var i=pY(t);CC&&(i=i.concat(CC(t)));for(var a=AC(e),o=AC(t),s=0;s1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var yY=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Bp(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var yY=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Bp(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=Pd&&(Pd=t+1),Ch.set(e,t),wg.set(t,e)},_Y="style["+rc+'][data-styled-version="5.3.11"]',TY=new RegExp("^"+rc+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),SY=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;c--){var p=u[c];if(p&&p.nodeType===1&&p.hasAttribute(rc))return p}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(rc,"active"),r.setAttribute("data-styled-version","5.3.11");var o=AY();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},CY=function(){function e(n){var r=this.element=QD(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=m+",")}),a+=""+c+p+'{content:"'+f+`"}/*!sc*/ -`}}}return a}(this)},e}(),RY=/(a)(d)/gi,NC=function(e){return String.fromCharCode(e+(e>25?39:97))};function qb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=NC(t%52)+n;return(NC(t%52)+n).replace(RY,"$1-$2")}var A1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eL=function(e){return A1(5381,e)};function NY(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=A1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var E=r(f,"."+T,void 0,i);n.insertRules(i,T,E)}a.push(T)}}return a.join(" ")},e}(),LY=/^\s*\/\/.*$/gm,MY=[":","[",".","#"];function FY(e){var t,n,r,i,a=e===void 0?ul:e,o=a.options,s=o===void 0?ul:o,u=a.plugins,c=u===void 0?Sg:u,p=new QK(s),f=[],m=function(y){function T(E){if(E)try{y(E+"}")}catch{}}return function(E,v,w,A,R,k,N,B,q,P){switch(E){case 1:if(q===0&&v.charCodeAt(0)===64)return y(v+";"),"";break;case 2:if(B===0)return v+"/*|*/";break;case 3:switch(B){case 102:case 112:return y(w[0]+v),"";default:return v+(P===0?"/*|*/":"")}case-2:v.split("/*|*/}").forEach(T)}}}(function(y){f.push(y)}),g=function(y,T,E){return T===0&&MY.indexOf(E[n.length])!==-1||E.match(i)?y:"."+t};function b(y,T,E,v){v===void 0&&(v="&");var w=y.replace(LY,""),A=T&&E?E+" "+T+" { "+w+" }":w;return t=v,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(E||!T?"":T,A)}return p.use([].concat(c,[function(y,T,E){y===2&&E.length&&E[0].lastIndexOf(n)>0&&(E[0]=E[0].replace(r,g))},m,function(y){if(y===-2){var T=f;return f=[],T}}])),b.hash=c.length?c.reduce(function(y,T){return T.name||Bp(15),A1(y,T.name)},5381).toString():"",b}var tL=ut.createContext();tL.Consumer;var nL=ut.createContext(),PY=(nL.Consumer,new JD),Kb=FY();function BY(){return C.useContext(tL)||PY}function UY(){return C.useContext(nL)||Kb}var rL=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Kb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Bp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Kb),this.name+t.hash},e}(),$Y=/([A-Z])/,zY=/([A-Z])/g,HY=/^ms-/,jY=function(e){return"-"+e.toLowerCase()};function OC(e){return $Y.test(e)?e.replace(zY,jY).replace(HY,"-ms-"):e}var DC=function(e){return e==null||e===!1||e===""};function ic(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,WY=/(^-|-$)/g;function C3(e){return e.replace(VY,"-").replace(WY,"")}var aL=function(e){return qb(eL(e)>>>0)};function A0(e){return typeof e=="string"&&!0}var Yb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},qY=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function KY(e,t,n){var r=e[n];Yb(t)&&Yb(r)?oL(r,t):e[n]=t}function oL(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),R=w&&w+"-"+(A0(v)?v:C3(IC(v)));return lL(v,rs({},A,{attrs:m,componentId:R}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(v){this._foldedDefaultProps=r?oL({},e.defaultProps,v):v}}),Object.defineProperty(b,"toString",{value:function(){return"."+b.styledComponentId}}),i&&mY(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Xb=function(e){return function t(n,r,i){if(i===void 0&&(i=ul),!p9.isValidElementType(r))return Bp(1,String(r));var a=function(){return n(r,i,iL.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,rs({},i,{},o))},a.attrs=function(o){return t(n,r,rs({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(lL,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Xb[e]=Xb(e)});function Gm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0;c--){var p=u[c];if(p&&p.nodeType===1&&p.hasAttribute(rc))return p}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(rc,"active"),r.setAttribute("data-styled-version","5.3.11");var o=AY();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},CY=function(){function e(n){var r=this.element=QD(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=m+",")}),a+=""+c+p+'{content:"'+f+`"}/*!sc*/ +`}}}return a}(this)},e}(),RY=/(a)(d)/gi,NC=function(e){return String.fromCharCode(e+(e>25?39:97))};function qb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=NC(t%52)+n;return(NC(t%52)+n).replace(RY,"$1-$2")}var A1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eL=function(e){return A1(5381,e)};function NY(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=A1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var E=r(f,"."+T,void 0,i);n.insertRules(i,T,E)}a.push(T)}}return a.join(" ")},e}(),LY=/^\s*\/\/.*$/gm,MY=[":","[",".","#"];function FY(e){var t,n,r,i,a=e===void 0?ul:e,o=a.options,s=o===void 0?ul:o,u=a.plugins,c=u===void 0?Sg:u,p=new QK(s),f=[],m=function(y){function T(E){if(E)try{y(E+"}")}catch{}}return function(E,v,w,A,R,k,N,B,q,P){switch(E){case 1:if(q===0&&v.charCodeAt(0)===64)return y(v+";"),"";break;case 2:if(B===0)return v+"/*|*/";break;case 3:switch(B){case 102:case 112:return y(w[0]+v),"";default:return v+(P===0?"/*|*/":"")}case-2:v.split("/*|*/}").forEach(T)}}}(function(y){f.push(y)}),g=function(y,T,E){return T===0&&MY.indexOf(E[n.length])!==-1||E.match(i)?y:"."+t};function b(y,T,E,v){v===void 0&&(v="&");var w=y.replace(LY,""),A=T&&E?E+" "+T+" { "+w+" }":w;return t=v,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(E||!T?"":T,A)}return p.use([].concat(c,[function(y,T,E){y===2&&E.length&&E[0].lastIndexOf(n)>0&&(E[0]=E[0].replace(r,g))},m,function(y){if(y===-2){var T=f;return f=[],T}}])),b.hash=c.length?c.reduce(function(y,T){return T.name||Bp(15),A1(y,T.name)},5381).toString():"",b}var tL=st.createContext();tL.Consumer;var nL=st.createContext(),PY=(nL.Consumer,new JD),Kb=FY();function BY(){return C.useContext(tL)||PY}function UY(){return C.useContext(nL)||Kb}var rL=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Kb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Bp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Kb),this.name+t.hash},e}(),$Y=/([A-Z])/,zY=/([A-Z])/g,HY=/^ms-/,jY=function(e){return"-"+e.toLowerCase()};function OC(e){return $Y.test(e)?e.replace(zY,jY).replace(HY,"-ms-"):e}var DC=function(e){return e==null||e===!1||e===""};function ic(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,WY=/(^-|-$)/g;function C3(e){return e.replace(VY,"-").replace(WY,"")}var aL=function(e){return qb(eL(e)>>>0)};function A0(e){return typeof e=="string"&&!0}var Yb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},qY=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function KY(e,t,n){var r=e[n];Yb(t)&&Yb(r)?oL(r,t):e[n]=t}function oL(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),R=w&&w+"-"+(A0(v)?v:C3(IC(v)));return lL(v,is({},A,{attrs:m,componentId:R}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(v){this._foldedDefaultProps=r?oL({},e.defaultProps,v):v}}),Object.defineProperty(b,"toString",{value:function(){return"."+b.styledComponentId}}),i&&mY(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Xb=function(e){return function t(n,r,i){if(i===void 0&&(i=ul),!p9.isValidElementType(r))return Bp(1,String(r));var a=function(){return n(r,i,iL.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,is({},i,{},o))},a.attrs=function(o){return t(n,r,is({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(lL,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Xb[e]=Xb(e)});function Gm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r({x:e,y:e}),XY={left:"right",right:"left",bottom:"top",top:"bottom"},ZY={start:"end",end:"start"};function Zb(e,t,n){return j1(e,vp(t,n))}function Up(e,t){return typeof e=="function"?e(t):e}function vu(e){return e.split("-")[0]}function $p(e){return e.split("-")[1]}function cL(e){return e==="x"?"y":"x"}function v9(e){return e==="y"?"height":"width"}function Vm(e){return["top","bottom"].includes(vu(e))?"y":"x"}function _9(e){return cL(Vm(e))}function QY(e,t,n){n===void 0&&(n=!1);const r=$p(e),i=_9(e),a=v9(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Cg(o)),[o,Cg(o)]}function JY(e){const t=Cg(e);return[Qb(e),t,Qb(t)]}function Qb(e){return e.replace(/start|end/g,t=>ZY[t])}function eX(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function tX(e,t,n,r){const i=$p(e);let a=eX(vu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Qb)))),a}function Cg(e){return e.replace(/left|right|bottom|top/g,t=>XY[t])}function nX(e){return{top:0,right:0,bottom:0,left:0,...e}}function dL(e){return typeof e!="number"?nX(e):{top:e,right:e,bottom:e,left:e}}function kg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function FC(e,t,n){let{reference:r,floating:i}=e;const a=Vm(t),o=_9(t),s=v9(o),u=vu(t),c=a==="y",p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let g;switch(u){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-i.width,y:f};break;default:g={x:r.x,y:r.y}}switch($p(t)){case"start":g[o]-=m*(n&&c?-1:1);break;case"end":g[o]+=m*(n&&c?-1:1);break}return g}const rX=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:f}=FC(c,r,u),m=r,g={},b=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s}=t,{element:u,padding:c=0}=Up(e,t)||{};if(u==null)return{};const p=dL(c),f={x:n,y:r},m=_9(i),g=v9(m),b=await o.getDimensions(u),y=m==="y",T=y?"top":"left",E=y?"bottom":"right",v=y?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[m]-f[m]-a.floating[g],A=f[m]-a.reference[m],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=R?R[v]:0;(!k||!await(o.isElement==null?void 0:o.isElement(R)))&&(k=s.floating[v]||a.floating[g]);const N=w/2-A/2,B=k/2-b[g]/2-1,q=vp(p[T],B),P=vp(p[E],B),Q=q,$=k-b[g]-P,oe=k/2-b[g]/2+N,fe=Zb(Q,oe,$),De=$p(i)!=null&&oe!=fe&&a.reference[g]/2-(oeQ<=0)){var B,q;const Q=(((B=i.flip)==null?void 0:B.index)||0)+1,$=A[Q];if($)return{data:{index:Q,overflows:N},reset:{placement:$}};let oe=(q=N.filter(fe=>fe.overflows[0]<=0).sort((fe,ce)=>fe.overflows[1]-ce.overflows[1])[0])==null?void 0:q.placement;if(!oe)switch(m){case"bestFit":{var P;const fe=(P=N.map(ce=>[ce.placement,ce.overflows.filter(De=>De>0).reduce((De,H)=>De+H,0)]).sort((ce,De)=>ce[1]-De[1])[0])==null?void 0:P[0];fe&&(oe=fe);break}case"initialPlacement":oe=o;break}if(r!==oe)return{reset:{placement:oe}}}return{}}}};async function oX(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=vu(n),s=$p(n),u=Vm(n)==="y",c=["left","top"].includes(o)?-1:1,p=a&&u?-1:1,f=Up(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),u?{x:g*p,y:m*c}:{x:m*c,y:g*p}}const sX=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await oX(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},lX=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:T=>{let{x:E,y:v}=T;return{x:E,y:v}}},...u}=Up(e,t),c={x:n,y:r},p=await pL(t,u),f=Vm(vu(i)),m=cL(f);let g=c[m],b=c[f];if(a){const T=m==="y"?"top":"left",E=m==="y"?"bottom":"right",v=g+p[T],w=g-p[E];g=Zb(v,g,w)}if(o){const T=f==="y"?"top":"left",E=f==="y"?"bottom":"right",v=b+p[T],w=b-p[E];b=Zb(v,b,w)}const y=s.fn({...t,[m]:g,[f]:b});return{...y,data:{x:y.x-n,y:y.y-r}}}}};function bl(e){return fL(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wl(e){var t;return(t=(fL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fL(e){return e instanceof Node||e instanceof Pi(e).Node}function cs(e){return e instanceof Element||e instanceof Pi(e).Element}function Ao(e){return e instanceof HTMLElement||e instanceof Pi(e).HTMLElement}function PC(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function zp(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ea(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function uX(e){return["table","td","th"].includes(bl(e))}function T9(e){const t=S9(),n=Ea(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function cX(e){let t=ac(e);for(;Ao(t)&&!Wm(t);){if(T9(t))return t;t=ac(t)}return null}function S9(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wm(e){return["html","body","#document"].includes(bl(e))}function Ea(e){return Pi(e).getComputedStyle(e)}function qm(e){return cs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ac(e){if(bl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||PC(e)&&e.host||wl(e);return PC(t)?t.host:t}function hL(e){const t=ac(e);return Wm(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ao(t)&&zp(t)?t:hL(t)}function gL(e,t){var n;t===void 0&&(t=[]);const r=hL(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(r);return i?t.concat(a,a.visualViewport||[],zp(r)?r:[]):t.concat(r,gL(r))}function mL(e){const t=Ea(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ao(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ag(n)!==a||Ag(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function bL(e){return cs(e)?e:e.contextElement}function G1(e){const t=bL(e);if(!Ao(t))return ml(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=mL(t);let o=(a?Ag(n.width):n.width)/r,s=(a?Ag(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const dX=ml(0);function yL(e){const t=Pi(e);return!S9()||!t.visualViewport?dX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pX(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pi(e)?!1:t}function _p(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=bL(e);let o=ml(1);t&&(r?cs(r)&&(o=G1(r)):o=G1(e));const s=pX(a,n,r)?yL(a):ml(0);let u=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,p=i.width/o.x,f=i.height/o.y;if(a){const m=Pi(a),g=r&&cs(r)?Pi(r):r;let b=m.frameElement;for(;b&&r&&g!==m;){const y=G1(b),T=b.getBoundingClientRect(),E=Ea(b),v=T.left+(b.clientLeft+parseFloat(E.paddingLeft))*y.x,w=T.top+(b.clientTop+parseFloat(E.paddingTop))*y.y;u*=y.x,c*=y.y,p*=y.x,f*=y.y,u+=v,c+=w,b=Pi(b).frameElement}}return kg({width:p,height:f,x:u,y:c})}function fX(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Ao(n),a=wl(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s=ml(1);const u=ml(0);if((i||!i&&r!=="fixed")&&((bl(n)!=="body"||zp(a))&&(o=qm(n)),Ao(n))){const c=_p(n);s=G1(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+u.x,y:t.y*s.y-o.scrollTop*s.y+u.y}}function hX(e){return Array.from(e.getClientRects())}function EL(e){return _p(wl(e)).left+qm(e).scrollLeft}function gX(e){const t=wl(e),n=qm(e),r=e.ownerDocument.body,i=j1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=j1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+EL(e);const s=-n.scrollTop;return Ea(r).direction==="rtl"&&(o+=j1(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function mX(e,t){const n=Pi(e),r=wl(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const c=S9();(!c||c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}function bX(e,t){const n=_p(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ao(e)?G1(e):ml(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=i*a.x,c=r*a.y;return{width:o,height:s,x:u,y:c}}function BC(e,t,n){let r;if(t==="viewport")r=mX(e,n);else if(t==="document")r=gX(wl(e));else if(cs(t))r=bX(t,n);else{const i=yL(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return kg(r)}function vL(e,t){const n=ac(e);return n===t||!cs(n)||Wm(n)?!1:Ea(n).position==="fixed"||vL(n,t)}function yX(e,t){const n=t.get(e);if(n)return n;let r=gL(e).filter(s=>cs(s)&&bl(s)!=="body"),i=null;const a=Ea(e).position==="fixed";let o=a?ac(e):e;for(;cs(o)&&!Wm(o);){const s=Ea(o),u=T9(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||zp(o)&&!u&&vL(e,o))?r=r.filter(p=>p!==o):i=s,o=ac(o)}return t.set(e,r),r}function EX(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?yX(t,this._c):[].concat(n),r],s=o[0],u=o.reduce((c,p)=>{const f=BC(t,p,i);return c.top=j1(f.top,c.top),c.right=vp(f.right,c.right),c.bottom=vp(f.bottom,c.bottom),c.left=j1(f.left,c.left),c},BC(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function vX(e){return mL(e)}function _X(e,t,n){const r=Ao(t),i=wl(t),a=n==="fixed",o=_p(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=ml(0);if(r||!r&&!a)if((bl(t)!=="body"||zp(i))&&(s=qm(t)),r){const c=_p(t,!0,a,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else i&&(u.x=EL(i));return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function UC(e,t){return!Ao(e)||Ea(e).position==="fixed"?null:t?t(e):e.offsetParent}function _L(e,t){const n=Pi(e);if(!Ao(e))return n;let r=UC(e,t);for(;r&&uX(r)&&Ea(r).position==="static";)r=UC(r,t);return r&&(bl(r)==="html"||bl(r)==="body"&&Ea(r).position==="static"&&!T9(r))?n:r||cX(e)||n}const TX=async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||_L,a=this.getDimensions;return{reference:_X(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}};function SX(e){return Ea(e).direction==="rtl"}const wX={convertOffsetParentRelativeRectToViewportRelativeRect:fX,getDocumentElement:wl,getClippingRect:EX,getOffsetParent:_L,getElementRects:TX,getClientRects:hX,getDimensions:vX,getScale:G1,isElement:cs,isRTL:SX},$C=(e,t,n)=>{const r=new Map,i={platform:wX,...n},a={...i.platform,_c:r};return rX(e,t,{...i,platform:a})};/* +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i({x:e,y:e}),XY={left:"right",right:"left",bottom:"top",top:"bottom"},ZY={start:"end",end:"start"};function Zb(e,t,n){return j1(e,vp(t,n))}function Up(e,t){return typeof e=="function"?e(t):e}function vu(e){return e.split("-")[0]}function $p(e){return e.split("-")[1]}function cL(e){return e==="x"?"y":"x"}function v9(e){return e==="y"?"height":"width"}function Vm(e){return["top","bottom"].includes(vu(e))?"y":"x"}function _9(e){return cL(Vm(e))}function QY(e,t,n){n===void 0&&(n=!1);const r=$p(e),i=_9(e),a=v9(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Cg(o)),[o,Cg(o)]}function JY(e){const t=Cg(e);return[Qb(e),t,Qb(t)]}function Qb(e){return e.replace(/start|end/g,t=>ZY[t])}function eX(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function tX(e,t,n,r){const i=$p(e);let a=eX(vu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Qb)))),a}function Cg(e){return e.replace(/left|right|bottom|top/g,t=>XY[t])}function nX(e){return{top:0,right:0,bottom:0,left:0,...e}}function dL(e){return typeof e!="number"?nX(e):{top:e,right:e,bottom:e,left:e}}function kg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function FC(e,t,n){let{reference:r,floating:i}=e;const a=Vm(t),o=_9(t),s=v9(o),u=vu(t),c=a==="y",p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let g;switch(u){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-i.width,y:f};break;default:g={x:r.x,y:r.y}}switch($p(t)){case"start":g[o]-=m*(n&&c?-1:1);break;case"end":g[o]+=m*(n&&c?-1:1);break}return g}const rX=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:f}=FC(c,r,u),m=r,g={},b=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s}=t,{element:u,padding:c=0}=Up(e,t)||{};if(u==null)return{};const p=dL(c),f={x:n,y:r},m=_9(i),g=v9(m),b=await o.getDimensions(u),y=m==="y",T=y?"top":"left",E=y?"bottom":"right",v=y?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[m]-f[m]-a.floating[g],A=f[m]-a.reference[m],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=R?R[v]:0;(!k||!await(o.isElement==null?void 0:o.isElement(R)))&&(k=s.floating[v]||a.floating[g]);const N=w/2-A/2,B=k/2-b[g]/2-1,q=vp(p[T],B),P=vp(p[E],B),Q=q,$=k-b[g]-P,oe=k/2-b[g]/2+N,fe=Zb(Q,oe,$),De=$p(i)!=null&&oe!=fe&&a.reference[g]/2-(oeQ<=0)){var B,q;const Q=(((B=i.flip)==null?void 0:B.index)||0)+1,$=A[Q];if($)return{data:{index:Q,overflows:N},reset:{placement:$}};let oe=(q=N.filter(fe=>fe.overflows[0]<=0).sort((fe,ce)=>fe.overflows[1]-ce.overflows[1])[0])==null?void 0:q.placement;if(!oe)switch(m){case"bestFit":{var P;const fe=(P=N.map(ce=>[ce.placement,ce.overflows.filter(De=>De>0).reduce((De,H)=>De+H,0)]).sort((ce,De)=>ce[1]-De[1])[0])==null?void 0:P[0];fe&&(oe=fe);break}case"initialPlacement":oe=o;break}if(r!==oe)return{reset:{placement:oe}}}return{}}}};async function oX(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=vu(n),s=$p(n),u=Vm(n)==="y",c=["left","top"].includes(o)?-1:1,p=a&&u?-1:1,f=Up(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),u?{x:g*p,y:m*c}:{x:m*c,y:g*p}}const sX=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await oX(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},lX=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:T=>{let{x:E,y:v}=T;return{x:E,y:v}}},...u}=Up(e,t),c={x:n,y:r},p=await pL(t,u),f=Vm(vu(i)),m=cL(f);let g=c[m],b=c[f];if(a){const T=m==="y"?"top":"left",E=m==="y"?"bottom":"right",v=g+p[T],w=g-p[E];g=Zb(v,g,w)}if(o){const T=f==="y"?"top":"left",E=f==="y"?"bottom":"right",v=b+p[T],w=b-p[E];b=Zb(v,b,w)}const y=s.fn({...t,[m]:g,[f]:b});return{...y,data:{x:y.x-n,y:y.y-r}}}}};function bl(e){return fL(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wl(e){var t;return(t=(fL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fL(e){return e instanceof Node||e instanceof Pi(e).Node}function ds(e){return e instanceof Element||e instanceof Pi(e).Element}function Ao(e){return e instanceof HTMLElement||e instanceof Pi(e).HTMLElement}function PC(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function zp(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ea(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function uX(e){return["table","td","th"].includes(bl(e))}function T9(e){const t=S9(),n=Ea(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function cX(e){let t=ac(e);for(;Ao(t)&&!Wm(t);){if(T9(t))return t;t=ac(t)}return null}function S9(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wm(e){return["html","body","#document"].includes(bl(e))}function Ea(e){return Pi(e).getComputedStyle(e)}function qm(e){return ds(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ac(e){if(bl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||PC(e)&&e.host||wl(e);return PC(t)?t.host:t}function hL(e){const t=ac(e);return Wm(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ao(t)&&zp(t)?t:hL(t)}function gL(e,t){var n;t===void 0&&(t=[]);const r=hL(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(r);return i?t.concat(a,a.visualViewport||[],zp(r)?r:[]):t.concat(r,gL(r))}function mL(e){const t=Ea(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ao(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ag(n)!==a||Ag(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function bL(e){return ds(e)?e:e.contextElement}function G1(e){const t=bL(e);if(!Ao(t))return ml(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=mL(t);let o=(a?Ag(n.width):n.width)/r,s=(a?Ag(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const dX=ml(0);function yL(e){const t=Pi(e);return!S9()||!t.visualViewport?dX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pX(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pi(e)?!1:t}function _p(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=bL(e);let o=ml(1);t&&(r?ds(r)&&(o=G1(r)):o=G1(e));const s=pX(a,n,r)?yL(a):ml(0);let u=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,p=i.width/o.x,f=i.height/o.y;if(a){const m=Pi(a),g=r&&ds(r)?Pi(r):r;let b=m.frameElement;for(;b&&r&&g!==m;){const y=G1(b),T=b.getBoundingClientRect(),E=Ea(b),v=T.left+(b.clientLeft+parseFloat(E.paddingLeft))*y.x,w=T.top+(b.clientTop+parseFloat(E.paddingTop))*y.y;u*=y.x,c*=y.y,p*=y.x,f*=y.y,u+=v,c+=w,b=Pi(b).frameElement}}return kg({width:p,height:f,x:u,y:c})}function fX(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Ao(n),a=wl(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s=ml(1);const u=ml(0);if((i||!i&&r!=="fixed")&&((bl(n)!=="body"||zp(a))&&(o=qm(n)),Ao(n))){const c=_p(n);s=G1(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+u.x,y:t.y*s.y-o.scrollTop*s.y+u.y}}function hX(e){return Array.from(e.getClientRects())}function EL(e){return _p(wl(e)).left+qm(e).scrollLeft}function gX(e){const t=wl(e),n=qm(e),r=e.ownerDocument.body,i=j1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=j1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+EL(e);const s=-n.scrollTop;return Ea(r).direction==="rtl"&&(o+=j1(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function mX(e,t){const n=Pi(e),r=wl(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const c=S9();(!c||c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}function bX(e,t){const n=_p(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ao(e)?G1(e):ml(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=i*a.x,c=r*a.y;return{width:o,height:s,x:u,y:c}}function BC(e,t,n){let r;if(t==="viewport")r=mX(e,n);else if(t==="document")r=gX(wl(e));else if(ds(t))r=bX(t,n);else{const i=yL(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return kg(r)}function vL(e,t){const n=ac(e);return n===t||!ds(n)||Wm(n)?!1:Ea(n).position==="fixed"||vL(n,t)}function yX(e,t){const n=t.get(e);if(n)return n;let r=gL(e).filter(s=>ds(s)&&bl(s)!=="body"),i=null;const a=Ea(e).position==="fixed";let o=a?ac(e):e;for(;ds(o)&&!Wm(o);){const s=Ea(o),u=T9(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||zp(o)&&!u&&vL(e,o))?r=r.filter(p=>p!==o):i=s,o=ac(o)}return t.set(e,r),r}function EX(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?yX(t,this._c):[].concat(n),r],s=o[0],u=o.reduce((c,p)=>{const f=BC(t,p,i);return c.top=j1(f.top,c.top),c.right=vp(f.right,c.right),c.bottom=vp(f.bottom,c.bottom),c.left=j1(f.left,c.left),c},BC(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function vX(e){return mL(e)}function _X(e,t,n){const r=Ao(t),i=wl(t),a=n==="fixed",o=_p(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=ml(0);if(r||!r&&!a)if((bl(t)!=="body"||zp(i))&&(s=qm(t)),r){const c=_p(t,!0,a,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else i&&(u.x=EL(i));return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function UC(e,t){return!Ao(e)||Ea(e).position==="fixed"?null:t?t(e):e.offsetParent}function _L(e,t){const n=Pi(e);if(!Ao(e))return n;let r=UC(e,t);for(;r&&uX(r)&&Ea(r).position==="static";)r=UC(r,t);return r&&(bl(r)==="html"||bl(r)==="body"&&Ea(r).position==="static"&&!T9(r))?n:r||cX(e)||n}const TX=async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||_L,a=this.getDimensions;return{reference:_X(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}};function SX(e){return Ea(e).direction==="rtl"}const wX={convertOffsetParentRelativeRectToViewportRelativeRect:fX,getDocumentElement:wl,getClippingRect:EX,getOffsetParent:_L,getElementRects:TX,getClientRects:hX,getDimensions:vX,getScale:G1,isElement:ds,isRTL:SX},$C=(e,t,n)=>{const r=new Map,i={platform:wX,...n},a={...i.platform,_c:r};return rX(e,t,{...i,platform:a})};/* * React Tooltip * {@link https://github.com/ReactTooltip/react-tooltip} * @copyright ReactTooltip Team * @license MIT -*/const AX="react-tooltip-core-styles",CX="react-tooltip-base-styles",zC={core:!1,base:!1};function HC({css:e,id:t=CX,type:n="base",ref:r}){var i,a;if(!e||typeof document>"u"||zC[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=AX),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),zC[n]=!0}const jC=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},kX="DEFAULT_TOOLTIP_ID",xX={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},IX=C.createContext({getTooltipData:()=>xX});function TL(e=kX){return C.useContext(IX).getTooltipData(e)}const RX=typeof window<"u"?C.useLayoutEffect:C.useEffect,NX=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},GC=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(NX(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},VC=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[sX(Number(i)),aX(),lX({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(iX({element:n,padding:5})),$C(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,b;const y={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:E}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},v=(b={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&b!==void 0?b:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const R=`${s}`.match(/(\d+)px/);A=R!=null&&R[1]?Number(R[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:E!=null?`${E}px`:"",right:"",bottom:"",...w,[v]:`-${4+A}px`},place:f}})):$C(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var OX="core-styles-module_tooltip__3vRRp",DX="core-styles-module_fixed__pcSol",LX="core-styles-module_arrow__cvMwQ",MX="core-styles-module_noArrow__xock6",FX="core-styles-module_clickable__ZuTTB",PX="core-styles-module_show__Nt9eE",x3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const BX=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:b=0,float:y=!1,hidden:T=!1,noArrow:E=!1,clickable:v=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:R=!1,style:k,position:N,afterShow:B,afterHide:q,content:P,contentWrapperRef:Q,isOpen:$,setIsOpen:oe,activeAnchor:fe,setActiveAnchor:ce,border:De,opacity:H})=>{const W=C.useRef(null),se=C.useRef(null),D=C.useRef(null),pe=C.useRef(null),[le,L]=C.useState(o),[ie,Se]=C.useState({}),[X,ke]=C.useState({}),[te,Me]=C.useState(!1),[Re,Ze]=C.useState(!1),We=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:je}=TL(e),pt=C.useRef(!1),[U,re]=C.useState([]),de=C.useRef(!1),xe=c||u.includes("click");RX(()=>(de.current=!0,()=>{de.current=!1}),[]),C.useEffect(()=>{if(!te){const ge=setTimeout(()=>{Ze(!1)},150);return()=>{clearTimeout(ge)}}return()=>null},[te]);const ye=ge=>{de.current&&(ge&&Ze(!0),setTimeout(()=>{de.current&&(oe==null||oe(ge),$===void 0&&Me(ge))},10))};C.useEffect(()=>{if($===void 0)return()=>null;$&&Ze(!0);const ge=setTimeout(()=>{Me($)},10);return()=>{clearTimeout(ge)}},[$]),C.useEffect(()=>{te!==We.current&&(We.current=te,te?B==null||B():q==null||q())},[te]);const Te=(ge=b)=>{pe.current&&clearTimeout(pe.current),pe.current=setTimeout(()=>{pt.current||ye(!1)},ge)},Le=ge=>{var G;if(!ge)return;const K=(G=ge.currentTarget)!==null&&G!==void 0?G:ge.target;if(!(K!=null&&K.isConnected))return ce(null),void je({current:null});g?(D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{ye(!0)},g)):ye(!0),ce(K),je({current:K}),pe.current&&clearTimeout(pe.current)},ze=()=>{v?Te(b||100):b?Te():ye(!1),D.current&&clearTimeout(D.current)},Ye=({x:ge,y:G})=>{VC({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:ge,y:G,width:0,height:0,top:G,left:ge,right:ge,bottom:G})},tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(K=>{Object.keys(K.tooltipStyles).length&&Se(K.tooltipStyles),Object.keys(K.tooltipArrowStyles).length&&ke(K.tooltipArrowStyles),L(K.place)})},jt=ge=>{if(!ge)return;const G=ge,K={x:G.clientX,y:G.clientY};Ye(K),dt.current=K},ue=ge=>{Le(ge),b&&Te()},Ee=ge=>{var G;[document.querySelector(`[id='${i}']`),...U].some(K=>K==null?void 0:K.contains(ge.target))||!((G=W.current)===null||G===void 0)&&G.contains(ge.target)||(ye(!1),D.current&&clearTimeout(D.current))},qe=jC(Le,50,!0),j=jC(ze,50,!0);C.useEffect(()=>{var ge,G;const K=new Set(ot);U.forEach(Qt=>{K.add({current:Qt})});const ne=document.querySelector(`[id='${i}']`);ne&&K.add({current:ne});const ve=()=>{ye(!1)},Qe=GC(fe),Fe=GC(W.current);A&&(window.addEventListener("scroll",ve),Qe==null||Qe.addEventListener("scroll",ve),Fe==null||Fe.addEventListener("scroll",ve)),R&&window.addEventListener("resize",ve);const at=Qt=>{Qt.key==="Escape"&&ye(!1)};w&&window.addEventListener("keydown",at);const rt=[];xe?(window.addEventListener("click",Ee),rt.push({event:"click",listener:ue})):(rt.push({event:"mouseenter",listener:qe},{event:"mouseleave",listener:j},{event:"focus",listener:qe},{event:"blur",listener:j}),y&&rt.push({event:"mousemove",listener:jt}));const Je=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return v&&!xe&&((ge=W.current)===null||ge===void 0||ge.addEventListener("mouseenter",Je),(G=W.current)===null||G===void 0||G.addEventListener("mouseleave",Rt)),rt.forEach(({event:Qt,listener:kt})=>{K.forEach(rn=>{var Xt;(Xt=rn.current)===null||Xt===void 0||Xt.addEventListener(Qt,kt)})}),()=>{var Qt,kt;A&&(window.removeEventListener("scroll",ve),Qe==null||Qe.removeEventListener("scroll",ve),Fe==null||Fe.removeEventListener("scroll",ve)),R&&window.removeEventListener("resize",ve),xe&&window.removeEventListener("click",Ee),w&&window.removeEventListener("keydown",at),v&&!xe&&((Qt=W.current)===null||Qt===void 0||Qt.removeEventListener("mouseenter",Je),(kt=W.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),rt.forEach(({event:rn,listener:Xt})=>{K.forEach(Wr=>{var qr;(qr=Wr.current)===null||qr===void 0||qr.removeEventListener(rn,Xt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let ge=a??"";!ge&&e&&(ge=`[data-tooltip-id='${e}']`);const G=new MutationObserver(K=>{const ne=[];K.forEach(ve=>{if(ve.type==="attributes"&&ve.attributeName==="data-tooltip-id"&&ve.target.getAttribute("data-tooltip-id")===e&&ne.push(ve.target),ve.type==="childList"&&(fe&&[...ve.removedNodes].some(Qe=>{var Fe;return!!(!((Fe=Qe==null?void 0:Qe.contains)===null||Fe===void 0)&&Fe.call(Qe,fe))&&(Ze(!1),ye(!1),ce(null),D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current),!0)}),ge))try{const Qe=[...ve.addedNodes].filter(Fe=>Fe.nodeType===1);ne.push(...Qe.filter(Fe=>Fe.matches(ge))),ne.push(...Qe.flatMap(Fe=>[...Fe.querySelectorAll(ge)]))}catch{}}),ne.length&&re(ve=>[...ve,...ne])});return G.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{G.disconnect()}},[e,a,fe]);const me=()=>{N?Ye(N):y?dt.current&&Ye(dt.current):VC({place:o,offset:s,elementReference:fe,tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(ge=>{de.current&&(Object.keys(ge.tooltipStyles).length&&Se(ge.tooltipStyles),Object.keys(ge.tooltipArrowStyles).length&&ke(ge.tooltipArrowStyles),L(ge.place))})};C.useEffect(()=>{me()},[te,fe,P,k,o,s,p,N]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const ge=new ResizeObserver(()=>{me()});return ge.observe(Q.current),()=>{ge.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var ge;const G=document.querySelector(`[id='${i}']`),K=[...U,G];fe&&K.includes(fe)||ce((ge=U[0])!==null&&ge!==void 0?ge:G)},[i,U,fe]),C.useEffect(()=>()=>{D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current)},[]),C.useEffect(()=>{let ge=a;if(!ge&&e&&(ge=`[data-tooltip-id='${e}']`),ge)try{const G=Array.from(document.querySelectorAll(ge));re(G)}catch{re([])}},[e,a]);const Ve=!T&&P&&te&&Object.keys(ie).length>0;return Re?ut.createElement(m,{id:e,role:"tooltip",className:MC("react-tooltip",OX,x3.tooltip,x3[r],t,`react-tooltip__place-${le}`,{[PX]:Ve,[DX]:p==="fixed",[FX]:v}),style:{...k,...ie,opacity:H!==void 0&&Ve?H:void 0},ref:W},P,ut.createElement(m,{className:MC("react-tooltip-arrow",LX,x3.arrow,n,{[MX]:E}),style:X,ref:se})):null},UX=({content:e})=>ut.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),$X=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:b=!1,positionStrategy:y="absolute",middlewares:T,delayShow:E=0,delayHide:v=0,float:w=!1,hidden:A=!1,noArrow:R=!1,clickable:k=!1,closeOnEsc:N=!1,closeOnScroll:B=!1,closeOnResize:q=!1,style:P,position:Q,isOpen:$,disableStyleInjection:oe=!1,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W})=>{const[se,D]=C.useState(r),[pe,le]=C.useState(i),[L,ie]=C.useState(c),[Se,X]=C.useState(u),[ke,te]=C.useState(p),[Me,Re]=C.useState(E),[Ze,We]=C.useState(v),[dt,ot]=C.useState(w),[je,pt]=C.useState(A),[U,re]=C.useState(f),[de,xe]=C.useState(g),[ye,Te]=C.useState(y),[Le,ze]=C.useState(null),Ye=C.useRef(oe),{anchorRefs:jt,activeAnchor:ue}=TL(e),Ee=ge=>ge==null?void 0:ge.getAttributeNames().reduce((G,K)=>{var ne;return K.startsWith("data-tooltip-")&&(G[K.replace(/^data-tooltip-/,"")]=(ne=ge==null?void 0:ge.getAttribute(K))!==null&&ne!==void 0?ne:null),G},{}),qe=ge=>{const G={place:K=>{var ne;ie((ne=K)!==null&&ne!==void 0?ne:c)},content:K=>{D(K??r)},html:K=>{le(K??i)},variant:K=>{var ne;X((ne=K)!==null&&ne!==void 0?ne:u)},offset:K=>{te(K===null?p:Number(K))},wrapper:K=>{var ne;re((ne=K)!==null&&ne!==void 0?ne:f)},events:K=>{const ne=K==null?void 0:K.split(" ");xe(ne??g)},"position-strategy":K=>{var ne;Te((ne=K)!==null&&ne!==void 0?ne:y)},"delay-show":K=>{Re(K===null?E:Number(K))},"delay-hide":K=>{We(K===null?v:Number(K))},float:K=>{ot(K===null?w:K==="true")},hidden:K=>{pt(K===null?A:K==="true")}};Object.values(G).forEach(K=>K(null)),Object.entries(ge).forEach(([K,ne])=>{var ve;(ve=G[K])===null||ve===void 0||ve.call(G,ne)})};C.useEffect(()=>{D(r)},[r]),C.useEffect(()=>{le(i)},[i]),C.useEffect(()=>{ie(c)},[c]),C.useEffect(()=>{X(u)},[u]),C.useEffect(()=>{te(p)},[p]),C.useEffect(()=>{Re(E)},[E]),C.useEffect(()=>{We(v)},[v]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Te(y)},[y]),C.useEffect(()=>{Ye.current!==oe&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[oe]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:oe==="core",disableBase:oe}}))},[]),C.useEffect(()=>{var ge;const G=new Set(jt);let K=n;if(!K&&e&&(K=`[data-tooltip-id='${e}']`),K)try{document.querySelectorAll(K).forEach(at=>{G.add({current:at})})}catch{console.warn(`[react-tooltip] "${K}" is not a valid CSS selector`)}const ne=document.querySelector(`[id='${t}']`);if(ne&&G.add({current:ne}),!G.size)return()=>null;const ve=(ge=Le??ne)!==null&&ge!==void 0?ge:ue.current,Qe=new MutationObserver(at=>{at.forEach(rt=>{var Je;if(!ve||rt.type!=="attributes"||!(!((Je=rt.attributeName)===null||Je===void 0)&&Je.startsWith("data-tooltip-")))return;const Rt=Ee(ve);qe(Rt)})}),Fe={attributes:!0,childList:!1,subtree:!1};if(ve){const at=Ee(ve);qe(at),Qe.observe(ve,Fe)}return()=>{Qe.disconnect()}},[jt,ue,Le,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),fe&&!CSS.supports("border",`${fe}`)&&console.warn(`[react-tooltip] "${fe}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),ce&&!CSS.supports("opacity",`${ce}`)&&console.warn(`[react-tooltip] "${ce}" is not a valid \`opacity\`.`)},[]);let j=m;const me=C.useRef(null);if(a){const ge=a({content:se??null,activeAnchor:Le});j=ge?ut.createElement("div",{ref:me,className:"react-tooltip-content-wrapper"},ge):null}else se&&(j=se);pe&&(j=ut.createElement(UX,{content:pe}));const Ve={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:j,contentWrapperRef:me,place:L,variant:Se,offset:ke,wrapper:U,events:de,openOnClick:b,positionStrategy:ye,middlewares:T,delayShow:Me,delayHide:Ze,float:dt,hidden:je,noArrow:R,clickable:k,closeOnEsc:N,closeOnScroll:B,closeOnResize:q,style:P,position:Q,isOpen:$,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W,activeAnchor:Le,setActiveAnchor:ge=>ze(ge)};return ut.createElement(BX,{...Ve})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||HC({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||HC({css:` +*/const AX="react-tooltip-core-styles",CX="react-tooltip-base-styles",zC={core:!1,base:!1};function HC({css:e,id:t=CX,type:n="base",ref:r}){var i,a;if(!e||typeof document>"u"||zC[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=AX),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),zC[n]=!0}const jC=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},kX="DEFAULT_TOOLTIP_ID",xX={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},IX=C.createContext({getTooltipData:()=>xX});function TL(e=kX){return C.useContext(IX).getTooltipData(e)}const RX=typeof window<"u"?C.useLayoutEffect:C.useEffect,NX=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},GC=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(NX(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},VC=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[sX(Number(i)),aX(),lX({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(iX({element:n,padding:5})),$C(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,b;const y={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:E}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},v=(b={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&b!==void 0?b:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const R=`${s}`.match(/(\d+)px/);A=R!=null&&R[1]?Number(R[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:E!=null?`${E}px`:"",right:"",bottom:"",...w,[v]:`-${4+A}px`},place:f}})):$C(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var OX="core-styles-module_tooltip__3vRRp",DX="core-styles-module_fixed__pcSol",LX="core-styles-module_arrow__cvMwQ",MX="core-styles-module_noArrow__xock6",FX="core-styles-module_clickable__ZuTTB",PX="core-styles-module_show__Nt9eE",x3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const BX=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:b=0,float:y=!1,hidden:T=!1,noArrow:E=!1,clickable:v=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:R=!1,style:k,position:N,afterShow:B,afterHide:q,content:P,contentWrapperRef:Q,isOpen:$,setIsOpen:oe,activeAnchor:fe,setActiveAnchor:ce,border:De,opacity:H})=>{const W=C.useRef(null),se=C.useRef(null),D=C.useRef(null),pe=C.useRef(null),[le,L]=C.useState(o),[ie,Se]=C.useState({}),[X,ke]=C.useState({}),[te,Me]=C.useState(!1),[Re,Ze]=C.useState(!1),We=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:je}=TL(e),pt=C.useRef(!1),[U,re]=C.useState([]),de=C.useRef(!1),xe=c||u.includes("click");RX(()=>(de.current=!0,()=>{de.current=!1}),[]),C.useEffect(()=>{if(!te){const ge=setTimeout(()=>{Ze(!1)},150);return()=>{clearTimeout(ge)}}return()=>null},[te]);const ye=ge=>{de.current&&(ge&&Ze(!0),setTimeout(()=>{de.current&&(oe==null||oe(ge),$===void 0&&Me(ge))},10))};C.useEffect(()=>{if($===void 0)return()=>null;$&&Ze(!0);const ge=setTimeout(()=>{Me($)},10);return()=>{clearTimeout(ge)}},[$]),C.useEffect(()=>{te!==We.current&&(We.current=te,te?B==null||B():q==null||q())},[te]);const Te=(ge=b)=>{pe.current&&clearTimeout(pe.current),pe.current=setTimeout(()=>{pt.current||ye(!1)},ge)},Le=ge=>{var G;if(!ge)return;const K=(G=ge.currentTarget)!==null&&G!==void 0?G:ge.target;if(!(K!=null&&K.isConnected))return ce(null),void je({current:null});g?(D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{ye(!0)},g)):ye(!0),ce(K),je({current:K}),pe.current&&clearTimeout(pe.current)},ze=()=>{v?Te(b||100):b?Te():ye(!1),D.current&&clearTimeout(D.current)},Ye=({x:ge,y:G})=>{VC({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:ge,y:G,width:0,height:0,top:G,left:ge,right:ge,bottom:G})},tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(K=>{Object.keys(K.tooltipStyles).length&&Se(K.tooltipStyles),Object.keys(K.tooltipArrowStyles).length&&ke(K.tooltipArrowStyles),L(K.place)})},jt=ge=>{if(!ge)return;const G=ge,K={x:G.clientX,y:G.clientY};Ye(K),dt.current=K},ue=ge=>{Le(ge),b&&Te()},Ee=ge=>{var G;[document.querySelector(`[id='${i}']`),...U].some(K=>K==null?void 0:K.contains(ge.target))||!((G=W.current)===null||G===void 0)&&G.contains(ge.target)||(ye(!1),D.current&&clearTimeout(D.current))},qe=jC(Le,50,!0),j=jC(ze,50,!0);C.useEffect(()=>{var ge,G;const K=new Set(ot);U.forEach(Qt=>{K.add({current:Qt})});const ne=document.querySelector(`[id='${i}']`);ne&&K.add({current:ne});const ve=()=>{ye(!1)},Qe=GC(fe),Fe=GC(W.current);A&&(window.addEventListener("scroll",ve),Qe==null||Qe.addEventListener("scroll",ve),Fe==null||Fe.addEventListener("scroll",ve)),R&&window.addEventListener("resize",ve);const at=Qt=>{Qt.key==="Escape"&&ye(!1)};w&&window.addEventListener("keydown",at);const rt=[];xe?(window.addEventListener("click",Ee),rt.push({event:"click",listener:ue})):(rt.push({event:"mouseenter",listener:qe},{event:"mouseleave",listener:j},{event:"focus",listener:qe},{event:"blur",listener:j}),y&&rt.push({event:"mousemove",listener:jt}));const Je=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return v&&!xe&&((ge=W.current)===null||ge===void 0||ge.addEventListener("mouseenter",Je),(G=W.current)===null||G===void 0||G.addEventListener("mouseleave",Rt)),rt.forEach(({event:Qt,listener:kt})=>{K.forEach(rn=>{var Xt;(Xt=rn.current)===null||Xt===void 0||Xt.addEventListener(Qt,kt)})}),()=>{var Qt,kt;A&&(window.removeEventListener("scroll",ve),Qe==null||Qe.removeEventListener("scroll",ve),Fe==null||Fe.removeEventListener("scroll",ve)),R&&window.removeEventListener("resize",ve),xe&&window.removeEventListener("click",Ee),w&&window.removeEventListener("keydown",at),v&&!xe&&((Qt=W.current)===null||Qt===void 0||Qt.removeEventListener("mouseenter",Je),(kt=W.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),rt.forEach(({event:rn,listener:Xt})=>{K.forEach(Wr=>{var qr;(qr=Wr.current)===null||qr===void 0||qr.removeEventListener(rn,Xt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let ge=a??"";!ge&&e&&(ge=`[data-tooltip-id='${e}']`);const G=new MutationObserver(K=>{const ne=[];K.forEach(ve=>{if(ve.type==="attributes"&&ve.attributeName==="data-tooltip-id"&&ve.target.getAttribute("data-tooltip-id")===e&&ne.push(ve.target),ve.type==="childList"&&(fe&&[...ve.removedNodes].some(Qe=>{var Fe;return!!(!((Fe=Qe==null?void 0:Qe.contains)===null||Fe===void 0)&&Fe.call(Qe,fe))&&(Ze(!1),ye(!1),ce(null),D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current),!0)}),ge))try{const Qe=[...ve.addedNodes].filter(Fe=>Fe.nodeType===1);ne.push(...Qe.filter(Fe=>Fe.matches(ge))),ne.push(...Qe.flatMap(Fe=>[...Fe.querySelectorAll(ge)]))}catch{}}),ne.length&&re(ve=>[...ve,...ne])});return G.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{G.disconnect()}},[e,a,fe]);const me=()=>{N?Ye(N):y?dt.current&&Ye(dt.current):VC({place:o,offset:s,elementReference:fe,tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(ge=>{de.current&&(Object.keys(ge.tooltipStyles).length&&Se(ge.tooltipStyles),Object.keys(ge.tooltipArrowStyles).length&&ke(ge.tooltipArrowStyles),L(ge.place))})};C.useEffect(()=>{me()},[te,fe,P,k,o,s,p,N]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const ge=new ResizeObserver(()=>{me()});return ge.observe(Q.current),()=>{ge.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var ge;const G=document.querySelector(`[id='${i}']`),K=[...U,G];fe&&K.includes(fe)||ce((ge=U[0])!==null&&ge!==void 0?ge:G)},[i,U,fe]),C.useEffect(()=>()=>{D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current)},[]),C.useEffect(()=>{let ge=a;if(!ge&&e&&(ge=`[data-tooltip-id='${e}']`),ge)try{const G=Array.from(document.querySelectorAll(ge));re(G)}catch{re([])}},[e,a]);const Ve=!T&&P&&te&&Object.keys(ie).length>0;return Re?st.createElement(m,{id:e,role:"tooltip",className:MC("react-tooltip",OX,x3.tooltip,x3[r],t,`react-tooltip__place-${le}`,{[PX]:Ve,[DX]:p==="fixed",[FX]:v}),style:{...k,...ie,opacity:H!==void 0&&Ve?H:void 0},ref:W},P,st.createElement(m,{className:MC("react-tooltip-arrow",LX,x3.arrow,n,{[MX]:E}),style:X,ref:se})):null},UX=({content:e})=>st.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),$X=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:b=!1,positionStrategy:y="absolute",middlewares:T,delayShow:E=0,delayHide:v=0,float:w=!1,hidden:A=!1,noArrow:R=!1,clickable:k=!1,closeOnEsc:N=!1,closeOnScroll:B=!1,closeOnResize:q=!1,style:P,position:Q,isOpen:$,disableStyleInjection:oe=!1,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W})=>{const[se,D]=C.useState(r),[pe,le]=C.useState(i),[L,ie]=C.useState(c),[Se,X]=C.useState(u),[ke,te]=C.useState(p),[Me,Re]=C.useState(E),[Ze,We]=C.useState(v),[dt,ot]=C.useState(w),[je,pt]=C.useState(A),[U,re]=C.useState(f),[de,xe]=C.useState(g),[ye,Te]=C.useState(y),[Le,ze]=C.useState(null),Ye=C.useRef(oe),{anchorRefs:jt,activeAnchor:ue}=TL(e),Ee=ge=>ge==null?void 0:ge.getAttributeNames().reduce((G,K)=>{var ne;return K.startsWith("data-tooltip-")&&(G[K.replace(/^data-tooltip-/,"")]=(ne=ge==null?void 0:ge.getAttribute(K))!==null&&ne!==void 0?ne:null),G},{}),qe=ge=>{const G={place:K=>{var ne;ie((ne=K)!==null&&ne!==void 0?ne:c)},content:K=>{D(K??r)},html:K=>{le(K??i)},variant:K=>{var ne;X((ne=K)!==null&&ne!==void 0?ne:u)},offset:K=>{te(K===null?p:Number(K))},wrapper:K=>{var ne;re((ne=K)!==null&&ne!==void 0?ne:f)},events:K=>{const ne=K==null?void 0:K.split(" ");xe(ne??g)},"position-strategy":K=>{var ne;Te((ne=K)!==null&&ne!==void 0?ne:y)},"delay-show":K=>{Re(K===null?E:Number(K))},"delay-hide":K=>{We(K===null?v:Number(K))},float:K=>{ot(K===null?w:K==="true")},hidden:K=>{pt(K===null?A:K==="true")}};Object.values(G).forEach(K=>K(null)),Object.entries(ge).forEach(([K,ne])=>{var ve;(ve=G[K])===null||ve===void 0||ve.call(G,ne)})};C.useEffect(()=>{D(r)},[r]),C.useEffect(()=>{le(i)},[i]),C.useEffect(()=>{ie(c)},[c]),C.useEffect(()=>{X(u)},[u]),C.useEffect(()=>{te(p)},[p]),C.useEffect(()=>{Re(E)},[E]),C.useEffect(()=>{We(v)},[v]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Te(y)},[y]),C.useEffect(()=>{Ye.current!==oe&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[oe]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:oe==="core",disableBase:oe}}))},[]),C.useEffect(()=>{var ge;const G=new Set(jt);let K=n;if(!K&&e&&(K=`[data-tooltip-id='${e}']`),K)try{document.querySelectorAll(K).forEach(at=>{G.add({current:at})})}catch{console.warn(`[react-tooltip] "${K}" is not a valid CSS selector`)}const ne=document.querySelector(`[id='${t}']`);if(ne&&G.add({current:ne}),!G.size)return()=>null;const ve=(ge=Le??ne)!==null&&ge!==void 0?ge:ue.current,Qe=new MutationObserver(at=>{at.forEach(rt=>{var Je;if(!ve||rt.type!=="attributes"||!(!((Je=rt.attributeName)===null||Je===void 0)&&Je.startsWith("data-tooltip-")))return;const Rt=Ee(ve);qe(Rt)})}),Fe={attributes:!0,childList:!1,subtree:!1};if(ve){const at=Ee(ve);qe(at),Qe.observe(ve,Fe)}return()=>{Qe.disconnect()}},[jt,ue,Le,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),fe&&!CSS.supports("border",`${fe}`)&&console.warn(`[react-tooltip] "${fe}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),ce&&!CSS.supports("opacity",`${ce}`)&&console.warn(`[react-tooltip] "${ce}" is not a valid \`opacity\`.`)},[]);let j=m;const me=C.useRef(null);if(a){const ge=a({content:se??null,activeAnchor:Le});j=ge?st.createElement("div",{ref:me,className:"react-tooltip-content-wrapper"},ge):null}else se&&(j=se);pe&&(j=st.createElement(UX,{content:pe}));const Ve={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:j,contentWrapperRef:me,place:L,variant:Se,offset:ke,wrapper:U,events:de,openOnClick:b,positionStrategy:ye,middlewares:T,delayShow:Me,delayHide:Ze,float:dt,hidden:je,noArrow:R,clickable:k,closeOnEsc:N,closeOnScroll:B,closeOnResize:q,style:P,position:Q,isOpen:$,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W,activeAnchor:Le,setActiveAnchor:ge=>ze(ge)};return st.createElement(BX,{...Ve})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||HC({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||HC({css:` .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px;transform:rotate(45deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function Km(){const e=window.navigator.platform.toUpperCase();return e.indexOf("MAC")>=0?"mac":e.indexOf("LINUX")>=0?"linux":e.indexOf("WIN")>=0?"windows":"unknown"}function xg(e){switch(Km()){case"mac":return e.metaKey;case"linux":case"windows":return e.ctrlKey;default:return e.metaKey}}function zX(){switch(Km()){case"mac":return"⌘";case"linux":case"windows":return"^";default:return"⌘"}}function pr(){const e=localStorage.getItem("fontSize");return e?parseInt(e):14}function WC(e){switch(e.split(".").pop()){case"py":return"python";case"js":return"javascript";case"ts":return"typescript";case"java":return"java";case"go":return"go";case"rb":return"ruby";case"rs":return"rust";case"c":return"c";case"cpp":return"cpp";case"cs":return"csharp";case"php":return"php";case"scala":return"scala";case"swift":return"swift";case"kt":return"kotlin";case"md":return"markdown";case"json":return"json";case"html":return"html";case"css":return"css";case"sh":return"shell";case"yaml":return"yaml";case"toml":return"toml";case"tex":return"latex";case"sql":return"sql";default:return""}}const It="5px",Et="#646464",ha="#1bbe84",Vt="var(--vscode-list-hoverBackground, rgb(45 45 45))",Ht="var(--vscode-editor-background, rgb(30 30 30))",Yt="var(--vscode-editor-foreground, #fff)";if(typeof document<"u"){const e=localStorage.getItem("--vscode-editor-foreground"),t=localStorage.getItem("--vscode-editor-background"),n=localStorage.getItem("--vscode-list-hoverBackground");e&&document.body.style.setProperty("--vscode-editor-foreground",e),t&&document.body.style.setProperty("--vscode-editor-background",t),n&&document.body.style.setProperty("--vscode-list-hoverBackground",n)}const oc=Ge.button` padding: 10px 12px; margin: 8px 0; @@ -235,7 +235,7 @@ Error generating stack: `+a.message+` justify-content: center; gap: 4px; padding: 2px; -`,VX=C.createContext(null),I3={didCatch:!1,error:null};class WX extends C.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=I3}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,i=arguments.length,a=new Array(i),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function KX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))}const YX=C.forwardRef(KX),mc=YX;function XX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"}))}const ZX=C.forwardRef(XX),QX=ZX;function JX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"}))}const eZ=C.forwardRef(JX),tZ=eZ;function nZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 19.5l-15-15m0 0v11.25m0-11.25h11.25"}))}const rZ=C.forwardRef(nZ),iZ=rZ;function aZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))}const oZ=C.forwardRef(aZ),sZ=oZ;function lZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"}))}const uZ=C.forwardRef(lZ),SL=uZ;function cZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}const dZ=C.forwardRef(cZ),pZ=dZ;function fZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}const hZ=C.forwardRef(fZ),gZ=hZ;function mZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))}const bZ=C.forwardRef(mZ),yZ=bZ;function EZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"}))}const vZ=C.forwardRef(EZ),_Z=vZ;function TZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75L16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0020.25 18V6A2.25 2.25 0 0018 3.75H6A2.25 2.25 0 003.75 6v12A2.25 2.25 0 006 20.25z"}))}const SZ=C.forwardRef(TZ),wZ=SZ;function AZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const CZ=C.forwardRef(AZ),kZ=CZ;function xZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}const IZ=C.forwardRef(xZ),wL=IZ;function RZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"}))}const NZ=C.forwardRef(RZ),OZ=NZ;function DZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const LZ=C.forwardRef(DZ),MZ=LZ;function FZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}const PZ=C.forwardRef(FZ),BZ=PZ;function UZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42"}))}const $Z=C.forwardRef(UZ),zZ=$Z;function HZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"}))}const jZ=C.forwardRef(HZ),AL=jZ;function GZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const VZ=C.forwardRef(GZ),CL=VZ;function WZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"}))}const qZ=C.forwardRef(WZ),KZ=qZ;function YZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"}))}const XZ=C.forwardRef(YZ),ZZ=XZ;function QZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"}))}const JZ=C.forwardRef(QZ),eQ=JZ;function tQ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}const nQ=C.forwardRef(tQ),kL=nQ;function rQ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const iQ=C.forwardRef(rQ),w9=iQ,zi=ut.forwardRef((e,t)=>{const[n,r]=C.useState(!1),i=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(GX,{"data-tooltip-id":`header_button_${e.text}`,inverted:e.inverted,disabled:e.disabled,onMouseEnter:()=>{e.disabled||r(!0)},onMouseLeave:()=>{r(!1)},onClick:e.onClick,onKeyDown:e.onKeyDown,className:e.className,ref:t,tabIndex:e.tabIndex,children:e.children}),i&&u9.createPortal(I.jsx(au,{id:`header_button_${e.text}`,place:"bottom",children:e.text}),i)]})});function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}const KC=["http","https","mailto","tel"];function aQ(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! +`,VX=C.createContext(null),I3={didCatch:!1,error:null};class WX extends C.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=I3}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,i=arguments.length,a=new Array(i),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function KX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))}const YX=C.forwardRef(KX),mc=YX;function XX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"}))}const ZX=C.forwardRef(XX),QX=ZX;function JX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"}))}const eZ=C.forwardRef(JX),tZ=eZ;function nZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 19.5l-15-15m0 0v11.25m0-11.25h11.25"}))}const rZ=C.forwardRef(nZ),iZ=rZ;function aZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))}const oZ=C.forwardRef(aZ),sZ=oZ;function lZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"}))}const uZ=C.forwardRef(lZ),SL=uZ;function cZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}const dZ=C.forwardRef(cZ),pZ=dZ;function fZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}const hZ=C.forwardRef(fZ),gZ=hZ;function mZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))}const bZ=C.forwardRef(mZ),yZ=bZ;function EZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"}))}const vZ=C.forwardRef(EZ),_Z=vZ;function TZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75L16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0020.25 18V6A2.25 2.25 0 0018 3.75H6A2.25 2.25 0 003.75 6v12A2.25 2.25 0 006 20.25z"}))}const SZ=C.forwardRef(TZ),wZ=SZ;function AZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const CZ=C.forwardRef(AZ),kZ=CZ;function xZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}const IZ=C.forwardRef(xZ),wL=IZ;function RZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"}))}const NZ=C.forwardRef(RZ),OZ=NZ;function DZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const LZ=C.forwardRef(DZ),MZ=LZ;function FZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}const PZ=C.forwardRef(FZ),BZ=PZ;function UZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42"}))}const $Z=C.forwardRef(UZ),zZ=$Z;function HZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"}))}const jZ=C.forwardRef(HZ),AL=jZ;function GZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const VZ=C.forwardRef(GZ),CL=VZ;function WZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"}))}const qZ=C.forwardRef(WZ),KZ=qZ;function YZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"}))}const XZ=C.forwardRef(YZ),ZZ=XZ;function QZ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"}))}const JZ=C.forwardRef(QZ),eQ=JZ;function tQ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}const nQ=C.forwardRef(tQ),kL=nQ;function rQ({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const iQ=C.forwardRef(rQ),w9=iQ,zi=st.forwardRef((e,t)=>{const[n,r]=C.useState(!1),i=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(GX,{"data-tooltip-id":`header_button_${e.text}`,inverted:e.inverted,disabled:e.disabled,onMouseEnter:()=>{e.disabled||r(!0)},onMouseLeave:()=>{r(!1)},onClick:e.onClick,onKeyDown:e.onKeyDown,className:e.className,ref:t,tabIndex:e.tabIndex,children:e.children}),i&&u9.createPortal(I.jsx(au,{id:`header_button_${e.text}`,place:"bottom",children:e.text}),i)]})});function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}const KC=["http","https","mailto","tel"];function aQ(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh @@ -253,7 +253,7 @@ Error generating stack: `+a.message+` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:` `}]}}function eM(e,t){const n=lte(e,t),r=n.one(e,null),i=fte(n);return i&&r.children.push({type:"text",value:` `},i),Array.isArray(r)?{type:"root",children:r}:r}const hte=function(e,t){return e&&"run"in e?mte(e,t):bte(e||t)},gte=hte;function mte(e,t){return(n,r,i)=>{e.run(eM(n,t),r,a=>{i(a)})}}function bte(e){return t=>eM(t,e)}var tM={exports:{}},yte="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ete=yte,vte=Ete;function nM(){}function rM(){}rM.resetWarningCache=nM;var _te=function(){function e(r,i,a,o,s,u){if(u!==vte){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rM,resetWarningCache:nM};return n.PropTypes=n,n};tM.exports=_te();var Tte=tM.exports;const be=Vi(Tte);class Vp{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Vp.prototype.property={};Vp.prototype.normal={};Vp.prototype.space=null;function iM(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&kte.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ak,Rte);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ak.test(a)){let o=a.replace(xte,Ite);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=k9}return new i(r,t)}function Ite(e){return"-"+e.toLowerCase()}function Rte(e){return e.charAt(1).toUpperCase()}const Ck={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"},Iu=iM([sM,oM,cM,dM,Ate],"html"),Cl=iM([sM,oM,cM,dM,Cte],"svg");function Nte(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Hi(t,"element",(n,r,i)=>{const a=i;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(n,r,a)),o&&typeof r=="number")return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}function pM(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function Dg(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function x9(e){return e.join(" ").trim()}function Sp(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function I9(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var R9={exports:{}},kk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ote=/\n/g,Dte=/^\s*/,Lte=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Mte=/^:\s*/,Fte=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Pte=/^[;\s]*/,Bte=/^\s+|\s+$/g,Ute=` -`,xk="/",Ik="*",eu="",$te="comment",zte="declaration",Hte=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(b){var y=b.match(Ote);y&&(n+=y.length);var T=b.lastIndexOf(Ute);r=~T?b.length-T:r+b.length}function a(){var b={line:n,column:r};return function(y){return y.position=new o(b),c(),y}}function o(b){this.start=b,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(b){var y=new Error(t.source+":"+n+":"+r+": "+b);if(y.reason=b,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function u(b){var y=b.exec(e);if(y){var T=y[0];return i(T),e=e.slice(T.length),y}}function c(){u(Dte)}function p(b){var y;for(b=b||[];y=f();)y!==!1&&b.push(y);return b}function f(){var b=a();if(!(xk!=e.charAt(0)||Ik!=e.charAt(1))){for(var y=2;eu!=e.charAt(y)&&(Ik!=e.charAt(y)||xk!=e.charAt(y+1));)++y;if(y+=2,eu===e.charAt(y-1))return s("End of comment missing");var T=e.slice(2,y-2);return r+=2,i(T),e=e.slice(y),r+=2,b({type:$te,comment:T})}}function m(){var b=a(),y=u(Lte);if(y){if(f(),!u(Mte))return s("property missing ':'");var T=u(Fte),E=b({type:zte,property:Rk(y[0].replace(kk,eu)),value:T?Rk(T[0].replace(kk,eu)):eu});return u(Pte),E}}function g(){var b=[];p(b);for(var y;y=m();)y!==!1&&(b.push(y),p(b));return b}return c(),g()};function Rk(e){return e?e.replace(Bte,eu):eu}var jte=Hte;function fM(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=jte(e),a=typeof t=="function",o,s,u=0,c=i.length;u0?ut.createElement(g,u,f):ut.createElement(g,u)}function Kte(e){let t=-1;for(;++t for more info)`),delete k0[a]}const t=_Q().use(Cee).use(e.remarkPlugins||[]).use(gte,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Nte,e),n=new IL;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=ut.createElement(ut.Fragment,{},hM({options:e,schema:Iu,listDepth:0},r));return e.className&&(i=ut.createElement("div",{className:e.className},i)),i}N9.propTypes={children:be.string,className:be.string,allowElement:be.func,allowedElements:be.arrayOf(be.string),disallowedElements:be.arrayOf(be.string),unwrapDisallowed:be.bool,remarkPlugins:be.arrayOf(be.oneOfType([be.object,be.func,be.arrayOf(be.oneOfType([be.bool,be.string,be.object,be.func,be.arrayOf(be.any)]))])),rehypePlugins:be.arrayOf(be.oneOfType([be.object,be.func,be.arrayOf(be.oneOfType([be.bool,be.string,be.object,be.func,be.arrayOf(be.any)]))])),sourcePos:be.bool,rawSourcePos:be.bool,skipHtml:be.bool,includeElementIndex:be.bool,transformLinkUri:be.oneOfType([be.func,be.bool]),linkTarget:be.oneOfType([be.func,be.string]),transformImageUri:be.func,components:be.object};const ene={tokenize:one,partial:!0},gM={tokenize:sne,partial:!0},mM={tokenize:lne,partial:!0},bM={tokenize:une,partial:!0},tne={tokenize:cne,partial:!0},yM={tokenize:ine,previous:vM},EM={tokenize:ane,previous:_M},gs={tokenize:rne,previous:TM},xo={},nne={text:xo};let zl=48;for(;zl<123;)xo[zl]=gs,zl++,zl===58?zl=65:zl===91&&(zl=97);xo[43]=gs;xo[45]=gs;xo[46]=gs;xo[95]=gs;xo[72]=[gs,EM];xo[104]=[gs,EM];xo[87]=[gs,yM];xo[119]=[gs,yM];function rne(e,t,n){const r=this;let i,a;return o;function o(f){return!sy(f)||!TM.call(r,r.previous)||O9(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return sy(f)?(e.consume(f),s):f===64?(e.consume(f),u):n(f)}function u(f){return f===46?e.check(tne,p,c)(f):f===45||f===95||jr(f)?(a=!0,e.consume(f),u):p(f)}function c(f){return e.consume(f),i=!0,u}function p(f){return a&&i&&ti(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function ine(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!vM.call(r,r.previous)||O9(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ene,e.attempt(gM,e.attempt(mM,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function ane(e,t,n){const r=this;let i="",a=!1;return o;function o(f){return(f===72||f===104)&&_M.call(r,r.previous)&&!O9(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(ti(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(f),u}return n(f)}function u(f){return f===47?(e.consume(f),a?c:(a=!0,u)):n(f)}function c(f){return f===null||Rg(f)||gn(f)||_u(f)||Ym(f)?n(f):e.attempt(gM,e.attempt(mM,p),n)(f)}function p(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function one(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function sne(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(bM,u,s)(c):c===null||gn(c)||_u(c)||c!==45&&Ym(c)?u(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function u(c){return i||r||!a?n(c):t(c)}}function lne(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const dne={tokenize:Ene,partial:!0};function pne(){return{document:{91:{tokenize:mne,continuation:{tokenize:bne},exit:yne}},text:{91:{tokenize:gne},93:{add:"after",tokenize:fne,resolveTo:hne}}}}function fne(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const c=Wa(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function hne(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function gne(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(a>999||f===93&&!o||f===null||f===91||gn(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Wa(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return gn(f)||(o=!0),a++,e.consume(f),f===92?p:c}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function mne(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(o>999||b===93&&!s||b===null||b===91||gn(b))return n(b);if(b===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=Wa(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return gn(b)||(s=!0),o++,e.consume(b),b===92?f:p}function f(b){return b===91||b===92||b===93?(e.consume(b),o++,p):p(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Gt(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function bne(e,t,n){return e.check(jp,t,e.attempt(dne,t,n))}function yne(e){e.exit("gfmFootnoteDefinition")}function Ene(e,t,n){const r=this;return Gt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function vne(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u1?u(b):(o.consume(b),f++,g);if(f<2&&!n)return u(b);const T=o.exit("strikethroughSequenceTemporary"),E=Ng(b);return T._open=!E||E===2&&!!y,T._close=!y||y===2&&!!E,s(b)}}}class _ne{constructor(){this.map=[]}add(t,n,r){Tne(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Tne(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const fe=r.events[Q][1].type;if(fe==="lineEnding"||fe==="linePrefix")Q--;else break}const $=Q>-1?r.events[Q][1].type:null,oe=$==="tableHead"||$==="tableRow"?k:u;return oe===k&&r.parser.lazy[r.now().line]?n(P):oe(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(o=!0,a+=1),p(P)}function p(P){return P===null?n(P):gt(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),g):n(P):Dt(P)?Gt(e,p,"whitespace")(P):(a+=1,o&&(o=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||gn(P)?(e.exit("data"),p(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function g(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),o=!1,Dt(P)?Gt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?T(P):P===124?(o=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),y):R(P)}function y(P){return Dt(P)?Gt(e,T,"whitespace")(P):T(P)}function T(P){return P===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),E):P===45?(a+=1,E(P)):P===null||gt(P)?A(P):R(P)}function E(P){return P===45?(e.enter("tableDelimiterFiller"),v(P)):R(P)}function v(P){return P===45?(e.consume(P),v):P===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(P))}function w(P){return Dt(P)?Gt(e,A,"whitespace")(P):A(P)}function A(P){return P===124?b(P):P===null||gt(P)?!o||i!==a?R(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):R(P)}function R(P){return n(P)}function k(P){return e.enter("tableRow"),N(P)}function N(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),N):P===null||gt(P)?(e.exit("tableRow"),t(P)):Dt(P)?Gt(e,N,"whitespace")(P):(e.enter("data"),B(P))}function B(P){return P===null||P===124||gn(P)?(e.exit("data"),N(P)):(e.consume(P),P===92?q:B)}function q(P){return P===92||P===124?(e.consume(P),B):B(P)}}function Cne(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,c,p,f;const m=new _ne;for(;++nn[2]+1){const b=n[2]+1,y=n[3]-n[2]-1;e.add(b,y,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},s1(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Ok(e,t,n,r,i){const a=[],o=s1(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function s1(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const kne={tokenize:Ine},xne={text:{91:kne}};function Ine(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return gn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return gt(u)?t(u):Dt(u)?e.check({tokenize:Rne},t,n)(u):n(u)}}function Rne(e,t,n){return Gt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Nne(e){return LL([nne,pne(),vne(e),wne,xne])}function Dk(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function One(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Dne={}.hasOwnProperty,Lne=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=Qm(i.ignore||[]),s=Mne(a);let u=-1;for(;++u0?{type:"text",value:N}:void 0),N!==!1&&(T!==R&&w.push({type:"text",value:f.value.slice(T,R)}),Array.isArray(N)?w.push(...N):N&&w.push(N),T=R+A[0].length,v=!0),!b.global)break;A=b.exec(f.value)}return v?(Te}const $3="phrasing",z3=["autolink","link","image","label"],Fne={transforms:[jne],enter:{literalAutolink:Bne,literalAutolinkEmail:H3,literalAutolinkHttp:H3,literalAutolinkWww:H3},exit:{literalAutolink:Hne,literalAutolinkEmail:zne,literalAutolinkHttp:Une,literalAutolinkWww:$ne}},Pne={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$3,notInConstruct:z3},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$3,notInConstruct:z3},{character:":",before:"[ps]",after:"\\/",inConstruct:$3,notInConstruct:z3}]};function Bne(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function H3(e){this.config.enter.autolinkProtocol.call(this,e)}function Une(e){this.config.exit.autolinkProtocol.call(this,e)}function $ne(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function zne(e){this.config.exit.autolinkEmail.call(this,e)}function Hne(e){this.exit(e)}function jne(e){Lne(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Gne],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Vne]],{ignore:["link","linkReference"]})}function Gne(e,t,n,r,i){let a="";if(!SM(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Wne(n)))return!1;const o=qne(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Vne(e,t,n,r){return!SM(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Wne(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function qne(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Dk(e,"(");let a=Dk(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function SM(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||_u(n)||Ym(n))&&(!t||n!==47)}function wM(e){return e.label||!e.identifier?e.label||"":VL(e.identifier)}function Kne(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s0?st.createElement(g,u,f):st.createElement(g,u)}function Kte(e){let t=-1;for(;++t for more info)`),delete k0[a]}const t=_Q().use(Cee).use(e.remarkPlugins||[]).use(gte,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Nte,e),n=new IL;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=st.createElement(st.Fragment,{},hM({options:e,schema:Iu,listDepth:0},r));return e.className&&(i=st.createElement("div",{className:e.className},i)),i}N9.propTypes={children:be.string,className:be.string,allowElement:be.func,allowedElements:be.arrayOf(be.string),disallowedElements:be.arrayOf(be.string),unwrapDisallowed:be.bool,remarkPlugins:be.arrayOf(be.oneOfType([be.object,be.func,be.arrayOf(be.oneOfType([be.bool,be.string,be.object,be.func,be.arrayOf(be.any)]))])),rehypePlugins:be.arrayOf(be.oneOfType([be.object,be.func,be.arrayOf(be.oneOfType([be.bool,be.string,be.object,be.func,be.arrayOf(be.any)]))])),sourcePos:be.bool,rawSourcePos:be.bool,skipHtml:be.bool,includeElementIndex:be.bool,transformLinkUri:be.oneOfType([be.func,be.bool]),linkTarget:be.oneOfType([be.func,be.string]),transformImageUri:be.func,components:be.object};const ene={tokenize:one,partial:!0},gM={tokenize:sne,partial:!0},mM={tokenize:lne,partial:!0},bM={tokenize:une,partial:!0},tne={tokenize:cne,partial:!0},yM={tokenize:ine,previous:vM},EM={tokenize:ane,previous:_M},ms={tokenize:rne,previous:TM},xo={},nne={text:xo};let zl=48;for(;zl<123;)xo[zl]=ms,zl++,zl===58?zl=65:zl===91&&(zl=97);xo[43]=ms;xo[45]=ms;xo[46]=ms;xo[95]=ms;xo[72]=[ms,EM];xo[104]=[ms,EM];xo[87]=[ms,yM];xo[119]=[ms,yM];function rne(e,t,n){const r=this;let i,a;return o;function o(f){return!sy(f)||!TM.call(r,r.previous)||O9(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return sy(f)?(e.consume(f),s):f===64?(e.consume(f),u):n(f)}function u(f){return f===46?e.check(tne,p,c)(f):f===45||f===95||jr(f)?(a=!0,e.consume(f),u):p(f)}function c(f){return e.consume(f),i=!0,u}function p(f){return a&&i&&ti(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function ine(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!vM.call(r,r.previous)||O9(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ene,e.attempt(gM,e.attempt(mM,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function ane(e,t,n){const r=this;let i="",a=!1;return o;function o(f){return(f===72||f===104)&&_M.call(r,r.previous)&&!O9(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(ti(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(f),u}return n(f)}function u(f){return f===47?(e.consume(f),a?c:(a=!0,u)):n(f)}function c(f){return f===null||Rg(f)||gn(f)||_u(f)||Ym(f)?n(f):e.attempt(gM,e.attempt(mM,p),n)(f)}function p(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function one(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function sne(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(bM,u,s)(c):c===null||gn(c)||_u(c)||c!==45&&Ym(c)?u(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function u(c){return i||r||!a?n(c):t(c)}}function lne(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const dne={tokenize:Ene,partial:!0};function pne(){return{document:{91:{tokenize:mne,continuation:{tokenize:bne},exit:yne}},text:{91:{tokenize:gne},93:{add:"after",tokenize:fne,resolveTo:hne}}}}function fne(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const c=Wa(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function hne(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function gne(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(a>999||f===93&&!o||f===null||f===91||gn(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Wa(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return gn(f)||(o=!0),a++,e.consume(f),f===92?p:c}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function mne(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(o>999||b===93&&!s||b===null||b===91||gn(b))return n(b);if(b===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=Wa(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return gn(b)||(s=!0),o++,e.consume(b),b===92?f:p}function f(b){return b===91||b===92||b===93?(e.consume(b),o++,p):p(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Gt(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function bne(e,t,n){return e.check(jp,t,e.attempt(dne,t,n))}function yne(e){e.exit("gfmFootnoteDefinition")}function Ene(e,t,n){const r=this;return Gt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function vne(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u1?u(b):(o.consume(b),f++,g);if(f<2&&!n)return u(b);const T=o.exit("strikethroughSequenceTemporary"),E=Ng(b);return T._open=!E||E===2&&!!y,T._close=!y||y===2&&!!E,s(b)}}}class _ne{constructor(){this.map=[]}add(t,n,r){Tne(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Tne(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const fe=r.events[Q][1].type;if(fe==="lineEnding"||fe==="linePrefix")Q--;else break}const $=Q>-1?r.events[Q][1].type:null,oe=$==="tableHead"||$==="tableRow"?k:u;return oe===k&&r.parser.lazy[r.now().line]?n(P):oe(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(o=!0,a+=1),p(P)}function p(P){return P===null?n(P):gt(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),g):n(P):Dt(P)?Gt(e,p,"whitespace")(P):(a+=1,o&&(o=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||gn(P)?(e.exit("data"),p(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function g(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),o=!1,Dt(P)?Gt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?T(P):P===124?(o=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),y):R(P)}function y(P){return Dt(P)?Gt(e,T,"whitespace")(P):T(P)}function T(P){return P===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),E):P===45?(a+=1,E(P)):P===null||gt(P)?A(P):R(P)}function E(P){return P===45?(e.enter("tableDelimiterFiller"),v(P)):R(P)}function v(P){return P===45?(e.consume(P),v):P===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(P))}function w(P){return Dt(P)?Gt(e,A,"whitespace")(P):A(P)}function A(P){return P===124?b(P):P===null||gt(P)?!o||i!==a?R(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):R(P)}function R(P){return n(P)}function k(P){return e.enter("tableRow"),N(P)}function N(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),N):P===null||gt(P)?(e.exit("tableRow"),t(P)):Dt(P)?Gt(e,N,"whitespace")(P):(e.enter("data"),B(P))}function B(P){return P===null||P===124||gn(P)?(e.exit("data"),N(P)):(e.consume(P),P===92?q:B)}function q(P){return P===92||P===124?(e.consume(P),B):B(P)}}function Cne(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,c,p,f;const m=new _ne;for(;++nn[2]+1){const b=n[2]+1,y=n[3]-n[2]-1;e.add(b,y,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},s1(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Ok(e,t,n,r,i){const a=[],o=s1(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function s1(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const kne={tokenize:Ine},xne={text:{91:kne}};function Ine(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return gn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return gt(u)?t(u):Dt(u)?e.check({tokenize:Rne},t,n)(u):n(u)}}function Rne(e,t,n){return Gt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Nne(e){return LL([nne,pne(),vne(e),wne,xne])}function Dk(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function One(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Dne={}.hasOwnProperty,Lne=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=Qm(i.ignore||[]),s=Mne(a);let u=-1;for(;++u0?{type:"text",value:N}:void 0),N!==!1&&(T!==R&&w.push({type:"text",value:f.value.slice(T,R)}),Array.isArray(N)?w.push(...N):N&&w.push(N),T=R+A[0].length,v=!0),!b.global)break;A=b.exec(f.value)}return v?(Te}const $3="phrasing",z3=["autolink","link","image","label"],Fne={transforms:[jne],enter:{literalAutolink:Bne,literalAutolinkEmail:H3,literalAutolinkHttp:H3,literalAutolinkWww:H3},exit:{literalAutolink:Hne,literalAutolinkEmail:zne,literalAutolinkHttp:Une,literalAutolinkWww:$ne}},Pne={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$3,notInConstruct:z3},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$3,notInConstruct:z3},{character:":",before:"[ps]",after:"\\/",inConstruct:$3,notInConstruct:z3}]};function Bne(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function H3(e){this.config.enter.autolinkProtocol.call(this,e)}function Une(e){this.config.exit.autolinkProtocol.call(this,e)}function $ne(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function zne(e){this.config.exit.autolinkEmail.call(this,e)}function Hne(e){this.exit(e)}function jne(e){Lne(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Gne],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Vne]],{ignore:["link","linkReference"]})}function Gne(e,t,n,r,i){let a="";if(!SM(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Wne(n)))return!1;const o=qne(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Vne(e,t,n,r){return!SM(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Wne(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function qne(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Dk(e,"(");let a=Dk(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function SM(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||_u(n)||Ym(n))&&(!t||n!==47)}function wM(e){return e.label||!e.identifier?e.label||"":VL(e.identifier)}function Kne(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++su&&(u=e[c].length);++Ts[T])&&(s[T]=v)}b.push(E)}a[c]=b,o[c]=y}let p=-1;if(typeof n=="object"&&"length"in n)for(;++ps[p]&&(s[p]=E),m[p]=E),f[p]=v}a.splice(1,0,f),o.splice(1,0,m),c=-1;const g=[];for(;++cn==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function Are(e){this.exit(e),this.setData("inTable")}function Cre(e){this.enter({type:"tableRow",children:[]},e)}function j3(e){this.exit(e)}function Uk(e){this.enter({type:"tableCell",children:[]},e)}function kre(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,xre));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function xre(e,t){return t==="|"?t:e}function Ire(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";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:o,tableRow:s,tableCell:u,inlineCode:m}};function o(g,b,y,T){return c(p(g,y,T),g.align)}function s(g,b,y,T){const E=f(g,y,T),v=c([E]);return v.slice(0,v.indexOf(` -`))}function u(g,b,y,T){const E=y.enter("tableCell"),v=y.enter("phrasing"),w=xM(g,y,{...T,before:a,after:a});return v(),E(),w}function c(g,b){return vre(g,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function p(g,b,y){const T=g.children;let E=-1;const v=[],w=b.enter("table");for(;++E-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),p);return u(),c;function p(f,m,g){return m?(g?"":" ".repeat(o))+f:(g?a:a+" ".repeat(o-a.length))+f}}const Dre={exit:{taskListCheckValueChecked:$k,taskListCheckValueUnchecked:$k,paragraph:Mre}},Lre={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Fre}};function $k(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Mre(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a=55296&&e<=57343};Xa.isSurrogatePair=function(e){return e>=56320&&e<=57343};Xa.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Xa.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Xa.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||$re.indexOf(e)>-1};var D9={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"};const l1=Xa,G3=D9,Hl=l1.CODE_POINTS,zre=65536;let Hre=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=zre}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(l1.isSurrogatePair(n))return this.pos++,this._addGap(),l1.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Hl.EOF;return this._err(G3.surrogateInInputStream),t}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(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+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,Hl.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Hl.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Hl.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Hl.LINE_FEED):(this.skipNextNewLine=!1,l1.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Hl.LINE_FEED||t===Hl.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){l1.isControlCodePoint(t)?this._err(G3.controlCharacterInInputStream):l1.isUndefinedCodePoint(t)&&this._err(G3.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var jre=Hre,Gre=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]);const Vre=jre,cn=Xa,ou=Gre,Ae=D9,V=cn.CODE_POINTS,jl=cn.CODE_POINT_SEQUENCES,Wre={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},NM=1,OM=2,DM=4,qre=NM|OM|DM,Ot="DATA_STATE",u1="RCDATA_STATE",Sd="RAWTEXT_STATE",Xo="SCRIPT_DATA_STATE",LM="PLAINTEXT_STATE",zk="TAG_OPEN_STATE",Hk="END_TAG_OPEN_STATE",V3="TAG_NAME_STATE",jk="RCDATA_LESS_THAN_SIGN_STATE",Gk="RCDATA_END_TAG_OPEN_STATE",Vk="RCDATA_END_TAG_NAME_STATE",Wk="RAWTEXT_LESS_THAN_SIGN_STATE",qk="RAWTEXT_END_TAG_OPEN_STATE",Kk="RAWTEXT_END_TAG_NAME_STATE",Yk="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Xk="SCRIPT_DATA_END_TAG_OPEN_STATE",Zk="SCRIPT_DATA_END_TAG_NAME_STATE",Qk="SCRIPT_DATA_ESCAPE_START_STATE",Jk="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Na="SCRIPT_DATA_ESCAPED_STATE",ex="SCRIPT_DATA_ESCAPED_DASH_STATE",W3="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",I0="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",tx="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",nx="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",rx="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",zo="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",ix="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",ax="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",R0="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",ox="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",so="BEFORE_ATTRIBUTE_NAME_STATE",N0="ATTRIBUTE_NAME_STATE",q3="AFTER_ATTRIBUTE_NAME_STATE",K3="BEFORE_ATTRIBUTE_VALUE_STATE",O0="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",D0="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",L0="ATTRIBUTE_VALUE_UNQUOTED_STATE",Y3="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Ls="SELF_CLOSING_START_TAG_STATE",td="BOGUS_COMMENT_STATE",sx="MARKUP_DECLARATION_OPEN_STATE",lx="COMMENT_START_STATE",ux="COMMENT_START_DASH_STATE",Ms="COMMENT_STATE",cx="COMMENT_LESS_THAN_SIGN_STATE",dx="COMMENT_LESS_THAN_SIGN_BANG_STATE",px="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",fx="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",M0="COMMENT_END_DASH_STATE",F0="COMMENT_END_STATE",hx="COMMENT_END_BANG_STATE",gx="DOCTYPE_STATE",P0="BEFORE_DOCTYPE_NAME_STATE",B0="DOCTYPE_NAME_STATE",mx="AFTER_DOCTYPE_NAME_STATE",bx="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",yx="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",X3="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Z3="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Q3="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Ex="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",vx="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",_x="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",nd="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",rd="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",J3="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ho="BOGUS_DOCTYPE_STATE",U0="CDATA_SECTION_STATE",Tx="CDATA_SECTION_BRACKET_STATE",Sx="CDATA_SECTION_END_STATE",Ju="CHARACTER_REFERENCE_STATE",wx="NAMED_CHARACTER_REFERENCE_STATE",Ax="AMBIGUOS_AMPERSAND_STATE",Cx="NUMERIC_CHARACTER_REFERENCE_STATE",kx="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",xx="DECIMAL_CHARACTER_REFERENCE_START_STATE",Ix="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Rx="DECIMAL_CHARACTER_REFERENCE_STATE",id="NUMERIC_CHARACTER_REFERENCE_END_STATE";function vn(e){return e===V.SPACE||e===V.LINE_FEED||e===V.TABULATION||e===V.FORM_FEED}function zd(e){return e>=V.DIGIT_0&&e<=V.DIGIT_9}function La(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_Z}function Xl(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_Z}function Us(e){return Xl(e)||La(e)}function e4(e){return Us(e)||zd(e)}function MM(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_F}function FM(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_F}function Kre(e){return zd(e)||MM(e)||FM(e)}function Ih(e){return e+32}function Fn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Fs(e){return String.fromCharCode(Ih(e))}function Nx(e,t){const n=ou[++e];let r=++e,i=r+n-1;for(;r<=i;){const a=r+i>>>1,o=ou[a];if(ot)i=a-1;else return ou[a+n]}return-1}let wa=class fi{constructor(){this.preprocessor=new Vre,this.tokenQueue=[],this.allowCDATA=!1,this.state=Ot,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(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:fi.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,a=!0;const o=t.length;let s=0,u=n,c;for(;s0&&(u=this._consume(),i++),u===V.EOF){a=!1;break}if(c=t[s],u!==c&&(r||u!==Ih(c))){a=!1;break}}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==jl.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(Ae.endTagWithAttributes),t.selfClosing&&this._err(Ae.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=fi.CHARACTER_TOKEN;vn(t)?n=fi.WHITESPACE_CHARACTER_TOKEN:t===V.NULL&&(n=fi.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Fn(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const a=ou[i],o=a")):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=Na,this._emitChars(cn.REPLACEMENT_CHARACTER)):t===V.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Na,this._emitCodePoint(t))}[I0](t){t===V.SOLIDUS?(this.tempBuff=[],this.state=tx):Us(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(rx)):(this._emitChars("<"),this._reconsumeInState(Na))}[tx](t){Us(t)?(this._createEndTagToken(),this._reconsumeInState(nx)):(this._emitChars("")):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=zo,this._emitChars(cn.REPLACEMENT_CHARACTER)):t===V.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=zo,this._emitCodePoint(t))}[R0](t){t===V.SOLIDUS?(this.tempBuff=[],this.state=ox,this._emitChars("/")):this._reconsumeInState(zo)}[ox](t){vn(t)||t===V.SOLIDUS||t===V.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Na:zo,this._emitCodePoint(t)):La(t)?(this.tempBuff.push(Ih(t)),this._emitCodePoint(t)):Xl(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(zo)}[so](t){vn(t)||(t===V.SOLIDUS||t===V.GREATER_THAN_SIGN||t===V.EOF?this._reconsumeInState(q3):t===V.EQUALS_SIGN?(this._err(Ae.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=N0):(this._createAttr(""),this._reconsumeInState(N0)))}[N0](t){vn(t)||t===V.SOLIDUS||t===V.GREATER_THAN_SIGN||t===V.EOF?(this._leaveAttrName(q3),this._unconsume()):t===V.EQUALS_SIGN?this._leaveAttrName(K3):La(t)?this.currentAttr.name+=Fs(t):t===V.QUOTATION_MARK||t===V.APOSTROPHE||t===V.LESS_THAN_SIGN?(this._err(Ae.unexpectedCharacterInAttributeName),this.currentAttr.name+=Fn(t)):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.name+=cn.REPLACEMENT_CHARACTER):this.currentAttr.name+=Fn(t)}[q3](t){vn(t)||(t===V.SOLIDUS?this.state=Ls:t===V.EQUALS_SIGN?this.state=K3:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(N0)))}[K3](t){vn(t)||(t===V.QUOTATION_MARK?this.state=O0:t===V.APOSTROPHE?this.state=D0:t===V.GREATER_THAN_SIGN?(this._err(Ae.missingAttributeValue),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(L0))}[O0](t){t===V.QUOTATION_MARK?this.state=Y3:t===V.AMPERSAND?(this.returnState=O0,this.state=Ju):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[D0](t){t===V.APOSTROPHE?this.state=Y3:t===V.AMPERSAND?(this.returnState=D0,this.state=Ju):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[L0](t){vn(t)?this._leaveAttrValue(so):t===V.AMPERSAND?(this.returnState=L0,this.state=Ju):t===V.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.QUOTATION_MARK||t===V.APOSTROPHE||t===V.LESS_THAN_SIGN||t===V.EQUALS_SIGN||t===V.GRAVE_ACCENT?(this._err(Ae.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Fn(t)):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[Y3](t){vn(t)?this._leaveAttrValue(so):t===V.SOLIDUS?this._leaveAttrValue(Ls):t===V.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBetweenAttributes),this._reconsumeInState(so))}[Ls](t){t===V.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.unexpectedSolidusInTag),this._reconsumeInState(so))}[td](t){t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=cn.REPLACEMENT_CHARACTER):this.currentToken.data+=Fn(t)}[sx](t){this._consumeSequenceIfMatch(jl.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=lx):this._consumeSequenceIfMatch(jl.DOCTYPE_STRING,t,!1)?this.state=gx:this._consumeSequenceIfMatch(jl.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=U0:(this._err(Ae.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=td):this._ensureHibernation()||(this._err(Ae.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(td))}[lx](t){t===V.HYPHEN_MINUS?this.state=ux:t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(Ms)}[ux](t){t===V.HYPHEN_MINUS?this.state=F0:t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ms))}[Ms](t){t===V.HYPHEN_MINUS?this.state=M0:t===V.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=cx):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Fn(t)}[cx](t){t===V.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=dx):t===V.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Ms)}[dx](t){t===V.HYPHEN_MINUS?this.state=px:this._reconsumeInState(Ms)}[px](t){t===V.HYPHEN_MINUS?this.state=fx:this._reconsumeInState(M0)}[fx](t){t!==V.GREATER_THAN_SIGN&&t!==V.EOF&&this._err(Ae.nestedComment),this._reconsumeInState(F0)}[M0](t){t===V.HYPHEN_MINUS?this.state=F0:t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ms))}[F0](t){t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EXCLAMATION_MARK?this.state=hx:t===V.HYPHEN_MINUS?this.currentToken.data+="-":t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Ms))}[hx](t){t===V.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=M0):t===V.GREATER_THAN_SIGN?(this._err(Ae.incorrectlyClosedComment),this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Ms))}[gx](t){vn(t)?this.state=P0:t===V.GREATER_THAN_SIGN?this._reconsumeInState(P0):t===V.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(P0))}[P0](t){vn(t)||(La(t)?(this._createDoctypeToken(Fs(t)),this.state=B0):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this._createDoctypeToken(cn.REPLACEMENT_CHARACTER),this.state=B0):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Fn(t)),this.state=B0))}[B0](t){vn(t)?this.state=mx:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):La(t)?this.currentToken.name+=Fs(t):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.name+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Fn(t)}[mx](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(jl.PUBLIC_STRING,t,!1)?this.state=bx:this._consumeSequenceIfMatch(jl.SYSTEM_STRING,t,!1)?this.state=vx:this._ensureHibernation()||(this._err(Ae.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[bx](t){vn(t)?this.state=yx:t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=X3):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Z3):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho))}[yx](t){vn(t)||(t===V.QUOTATION_MARK?(this.currentToken.publicId="",this.state=X3):t===V.APOSTROPHE?(this.currentToken.publicId="",this.state=Z3):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[X3](t){t===V.QUOTATION_MARK?this.state=Q3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fn(t)}[Z3](t){t===V.APOSTROPHE?this.state=Q3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fn(t)}[Q3](t){vn(t)?this.state=Ex:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=rd):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho))}[Ex](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.QUOTATION_MARK?(this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this.currentToken.systemId="",this.state=rd):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[vx](t){vn(t)?this.state=_x:t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=rd):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho))}[_x](t){vn(t)||(t===V.QUOTATION_MARK?(this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this.currentToken.systemId="",this.state=rd):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ho)))}[nd](t){t===V.QUOTATION_MARK?this.state=J3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fn(t)}[rd](t){t===V.APOSTROPHE?this.state=J3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fn(t)}[J3](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Ho)))}[Ho](t){t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.NULL?this._err(Ae.unexpectedNullCharacter):t===V.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[U0](t){t===V.RIGHT_SQUARE_BRACKET?this.state=Tx:t===V.EOF?(this._err(Ae.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Tx](t){t===V.RIGHT_SQUARE_BRACKET?this.state=Sx:(this._emitChars("]"),this._reconsumeInState(U0))}[Sx](t){t===V.GREATER_THAN_SIGN?this.state=Ot:t===V.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(U0))}[Ju](t){this.tempBuff=[V.AMPERSAND],t===V.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Cx):e4(t)?this._reconsumeInState(wx):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[wx](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[V.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===V.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Ae.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Ax}[Ax](t){e4(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Fn(t):this._emitCodePoint(t):(t===V.SEMICOLON&&this._err(Ae.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Cx](t){this.charRefCode=0,t===V.LATIN_SMALL_X||t===V.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=kx):this._reconsumeInState(xx)}[kx](t){Kre(t)?this._reconsumeInState(Ix):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[xx](t){zd(t)?this._reconsumeInState(Rx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ix](t){MM(t)?this.charRefCode=this.charRefCode*16+t-55:FM(t)?this.charRefCode=this.charRefCode*16+t-87:zd(t)?this.charRefCode=this.charRefCode*16+t-48:t===V.SEMICOLON?this.state=id:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(id))}[Rx](t){zd(t)?this.charRefCode=this.charRefCode*10+t-48:t===V.SEMICOLON?this.state=id:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(id))}[id](){if(this.charRefCode===V.NULL)this._err(Ae.nullCharacterReference),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Ae.characterReferenceOutsideUnicodeRange),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(cn.isSurrogate(this.charRefCode))this._err(Ae.surrogateCharacterReference),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(cn.isUndefinedCodePoint(this.charRefCode))this._err(Ae.noncharacterCharacterReference);else if(cn.isControlCodePoint(this.charRefCode)||this.charRefCode===V.CARRIAGE_RETURN){this._err(Ae.controlCharacterReference);const t=Wre[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};wa.CHARACTER_TOKEN="CHARACTER_TOKEN";wa.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";wa.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";wa.START_TAG_TOKEN="START_TAG_TOKEN";wa.END_TAG_TOKEN="END_TAG_TOKEN";wa.COMMENT_TOKEN="COMMENT_TOKEN";wa.DOCTYPE_TOKEN="DOCTYPE_TOKEN";wa.EOF_TOKEN="EOF_TOKEN";wa.HIBERNATION_TOKEN="HIBERNATION_TOKEN";wa.MODE={DATA:Ot,RCDATA:u1,RAWTEXT:Sd,SCRIPT_DATA:Xo,PLAINTEXT:LM};wa.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var t2=wa,Za={};const t4=Za.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/"};Za.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Za.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const $e=Za.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"};Za.SPECIAL_ELEMENTS={[t4.HTML]:{[$e.ADDRESS]:!0,[$e.APPLET]:!0,[$e.AREA]:!0,[$e.ARTICLE]:!0,[$e.ASIDE]:!0,[$e.BASE]:!0,[$e.BASEFONT]:!0,[$e.BGSOUND]:!0,[$e.BLOCKQUOTE]:!0,[$e.BODY]:!0,[$e.BR]:!0,[$e.BUTTON]:!0,[$e.CAPTION]:!0,[$e.CENTER]:!0,[$e.COL]:!0,[$e.COLGROUP]:!0,[$e.DD]:!0,[$e.DETAILS]:!0,[$e.DIR]:!0,[$e.DIV]:!0,[$e.DL]:!0,[$e.DT]:!0,[$e.EMBED]:!0,[$e.FIELDSET]:!0,[$e.FIGCAPTION]:!0,[$e.FIGURE]:!0,[$e.FOOTER]:!0,[$e.FORM]:!0,[$e.FRAME]:!0,[$e.FRAMESET]:!0,[$e.H1]:!0,[$e.H2]:!0,[$e.H3]:!0,[$e.H4]:!0,[$e.H5]:!0,[$e.H6]:!0,[$e.HEAD]:!0,[$e.HEADER]:!0,[$e.HGROUP]:!0,[$e.HR]:!0,[$e.HTML]:!0,[$e.IFRAME]:!0,[$e.IMG]:!0,[$e.INPUT]:!0,[$e.LI]:!0,[$e.LINK]:!0,[$e.LISTING]:!0,[$e.MAIN]:!0,[$e.MARQUEE]:!0,[$e.MENU]:!0,[$e.META]:!0,[$e.NAV]:!0,[$e.NOEMBED]:!0,[$e.NOFRAMES]:!0,[$e.NOSCRIPT]:!0,[$e.OBJECT]:!0,[$e.OL]:!0,[$e.P]:!0,[$e.PARAM]:!0,[$e.PLAINTEXT]:!0,[$e.PRE]:!0,[$e.SCRIPT]:!0,[$e.SECTION]:!0,[$e.SELECT]:!0,[$e.SOURCE]:!0,[$e.STYLE]:!0,[$e.SUMMARY]:!0,[$e.TABLE]:!0,[$e.TBODY]:!0,[$e.TD]:!0,[$e.TEMPLATE]:!0,[$e.TEXTAREA]:!0,[$e.TFOOT]:!0,[$e.TH]:!0,[$e.THEAD]:!0,[$e.TITLE]:!0,[$e.TR]:!0,[$e.TRACK]:!0,[$e.UL]:!0,[$e.WBR]:!0,[$e.XMP]:!0},[t4.MATHML]:{[$e.MI]:!0,[$e.MO]:!0,[$e.MN]:!0,[$e.MS]:!0,[$e.MTEXT]:!0,[$e.ANNOTATION_XML]:!0},[t4.SVG]:{[$e.TITLE]:!0,[$e.FOREIGN_OBJECT]:!0,[$e.DESC]:!0}};const PM=Za,He=PM.TAG_NAMES,dn=PM.NAMESPACES;function Ox(e){switch(e.length){case 1:return e===He.P;case 2:return e===He.RB||e===He.RP||e===He.RT||e===He.DD||e===He.DT||e===He.LI;case 3:return e===He.RTC;case 6:return e===He.OPTION;case 8:return e===He.OPTGROUP}return!1}function Yre(e){switch(e.length){case 1:return e===He.P;case 2:return e===He.RB||e===He.RP||e===He.RT||e===He.DD||e===He.DT||e===He.LI||e===He.TD||e===He.TH||e===He.TR;case 3:return e===He.RTC;case 5:return e===He.TBODY||e===He.TFOOT||e===He.THEAD;case 6:return e===He.OPTION;case 7:return e===He.CAPTION;case 8:return e===He.OPTGROUP||e===He.COLGROUP}return!1}function $0(e,t){switch(e.length){case 2:if(e===He.TD||e===He.TH)return t===dn.HTML;if(e===He.MI||e===He.MO||e===He.MN||e===He.MS)return t===dn.MATHML;break;case 4:if(e===He.HTML)return t===dn.HTML;if(e===He.DESC)return t===dn.SVG;break;case 5:if(e===He.TABLE)return t===dn.HTML;if(e===He.MTEXT)return t===dn.MATHML;if(e===He.TITLE)return t===dn.SVG;break;case 6:return(e===He.APPLET||e===He.OBJECT)&&t===dn.HTML;case 7:return(e===He.CAPTION||e===He.MARQUEE)&&t===dn.HTML;case 8:return e===He.TEMPLATE&&t===dn.HTML;case 13:return e===He.FOREIGN_OBJECT&&t===dn.SVG;case 14:return e===He.ANNOTATION_XML&&t===dn.MATHML}return!1}let Xre=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===He.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===dn.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(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===dn.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===He.H1||t===He.H2||t===He.H3||t===He.H4||t===He.H5||t===He.H6&&n===dn.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===He.TD||t===He.TH&&n===dn.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==He.TABLE&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==He.TBODY&&this.currentTagName!==He.TFOOT&&this.currentTagName!==He.THEAD&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==He.TR&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===He.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===He.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if($0(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===He.H1||n===He.H2||n===He.H3||n===He.H4||n===He.H5||n===He.H6)&&r===dn.HTML)return!0;if($0(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if((r===He.UL||r===He.OL)&&i===dn.HTML||$0(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if(r===He.BUTTON&&i===dn.HTML||$0(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===dn.HTML){if(r===t)return!0;if(r===He.TABLE||r===He.TEMPLATE||r===He.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===dn.HTML){if(n===He.TBODY||n===He.THEAD||n===He.TFOOT)return!0;if(n===He.TABLE||n===He.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===dn.HTML){if(r===t)return!0;if(r!==He.OPTION&&r!==He.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Ox(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Yre(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Ox(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var Zre=Xre;const z0=3;let L9=class $s{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=z0){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===$s.MARKER_ENTRY)break;const u=s.element,c=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===a&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length=z0-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:$s.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:$s.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:$s.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===$s.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===$s.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===$s.ELEMENT_ENTRY&&r.element===t)return r}return null}};L9.MARKER_ENTRY="MARKER_ENTRY";L9.ELEMENT_ENTRY="ELEMENT_ENTRY";var Qre=L9;let BM=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};BM.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),p);return u(),c;function p(f,m,g){return m?(g?"":" ".repeat(o))+f:(g?a:a+" ".repeat(o-a.length))+f}}const Dre={exit:{taskListCheckValueChecked:$k,taskListCheckValueUnchecked:$k,paragraph:Mre}},Lre={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Fre}};function $k(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Mre(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a=55296&&e<=57343};Xa.isSurrogatePair=function(e){return e>=56320&&e<=57343};Xa.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Xa.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Xa.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||$re.indexOf(e)>-1};var D9={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"};const l1=Xa,G3=D9,Hl=l1.CODE_POINTS,zre=65536;let Hre=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=zre}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(l1.isSurrogatePair(n))return this.pos++,this._addGap(),l1.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Hl.EOF;return this._err(G3.surrogateInInputStream),t}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(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+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,Hl.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Hl.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Hl.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Hl.LINE_FEED):(this.skipNextNewLine=!1,l1.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Hl.LINE_FEED||t===Hl.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){l1.isControlCodePoint(t)?this._err(G3.controlCharacterInInputStream):l1.isUndefinedCodePoint(t)&&this._err(G3.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var jre=Hre,Gre=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]);const Vre=jre,cn=Xa,ou=Gre,Ae=D9,V=cn.CODE_POINTS,jl=cn.CODE_POINT_SEQUENCES,Wre={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},NM=1,OM=2,DM=4,qre=NM|OM|DM,Ot="DATA_STATE",u1="RCDATA_STATE",Sd="RAWTEXT_STATE",Zo="SCRIPT_DATA_STATE",LM="PLAINTEXT_STATE",zk="TAG_OPEN_STATE",Hk="END_TAG_OPEN_STATE",V3="TAG_NAME_STATE",jk="RCDATA_LESS_THAN_SIGN_STATE",Gk="RCDATA_END_TAG_OPEN_STATE",Vk="RCDATA_END_TAG_NAME_STATE",Wk="RAWTEXT_LESS_THAN_SIGN_STATE",qk="RAWTEXT_END_TAG_OPEN_STATE",Kk="RAWTEXT_END_TAG_NAME_STATE",Yk="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Xk="SCRIPT_DATA_END_TAG_OPEN_STATE",Zk="SCRIPT_DATA_END_TAG_NAME_STATE",Qk="SCRIPT_DATA_ESCAPE_START_STATE",Jk="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Na="SCRIPT_DATA_ESCAPED_STATE",ex="SCRIPT_DATA_ESCAPED_DASH_STATE",W3="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",I0="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",tx="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",nx="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",rx="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Ho="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",ix="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",ax="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",R0="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",ox="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",so="BEFORE_ATTRIBUTE_NAME_STATE",N0="ATTRIBUTE_NAME_STATE",q3="AFTER_ATTRIBUTE_NAME_STATE",K3="BEFORE_ATTRIBUTE_VALUE_STATE",O0="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",D0="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",L0="ATTRIBUTE_VALUE_UNQUOTED_STATE",Y3="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Ls="SELF_CLOSING_START_TAG_STATE",td="BOGUS_COMMENT_STATE",sx="MARKUP_DECLARATION_OPEN_STATE",lx="COMMENT_START_STATE",ux="COMMENT_START_DASH_STATE",Ms="COMMENT_STATE",cx="COMMENT_LESS_THAN_SIGN_STATE",dx="COMMENT_LESS_THAN_SIGN_BANG_STATE",px="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",fx="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",M0="COMMENT_END_DASH_STATE",F0="COMMENT_END_STATE",hx="COMMENT_END_BANG_STATE",gx="DOCTYPE_STATE",P0="BEFORE_DOCTYPE_NAME_STATE",B0="DOCTYPE_NAME_STATE",mx="AFTER_DOCTYPE_NAME_STATE",bx="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",yx="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",X3="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Z3="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Q3="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Ex="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",vx="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",_x="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",nd="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",rd="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",J3="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",jo="BOGUS_DOCTYPE_STATE",U0="CDATA_SECTION_STATE",Tx="CDATA_SECTION_BRACKET_STATE",Sx="CDATA_SECTION_END_STATE",Ju="CHARACTER_REFERENCE_STATE",wx="NAMED_CHARACTER_REFERENCE_STATE",Ax="AMBIGUOS_AMPERSAND_STATE",Cx="NUMERIC_CHARACTER_REFERENCE_STATE",kx="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",xx="DECIMAL_CHARACTER_REFERENCE_START_STATE",Ix="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Rx="DECIMAL_CHARACTER_REFERENCE_STATE",id="NUMERIC_CHARACTER_REFERENCE_END_STATE";function vn(e){return e===V.SPACE||e===V.LINE_FEED||e===V.TABULATION||e===V.FORM_FEED}function zd(e){return e>=V.DIGIT_0&&e<=V.DIGIT_9}function La(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_Z}function Xl(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_Z}function Us(e){return Xl(e)||La(e)}function e4(e){return Us(e)||zd(e)}function MM(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_F}function FM(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_F}function Kre(e){return zd(e)||MM(e)||FM(e)}function Ih(e){return e+32}function Fn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Fs(e){return String.fromCharCode(Ih(e))}function Nx(e,t){const n=ou[++e];let r=++e,i=r+n-1;for(;r<=i;){const a=r+i>>>1,o=ou[a];if(ot)i=a-1;else return ou[a+n]}return-1}let wa=class fi{constructor(){this.preprocessor=new Vre,this.tokenQueue=[],this.allowCDATA=!1,this.state=Ot,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(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:fi.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,a=!0;const o=t.length;let s=0,u=n,c;for(;s0&&(u=this._consume(),i++),u===V.EOF){a=!1;break}if(c=t[s],u!==c&&(r||u!==Ih(c))){a=!1;break}}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==jl.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(Ae.endTagWithAttributes),t.selfClosing&&this._err(Ae.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=fi.CHARACTER_TOKEN;vn(t)?n=fi.WHITESPACE_CHARACTER_TOKEN:t===V.NULL&&(n=fi.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Fn(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const a=ou[i],o=a")):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=Na,this._emitChars(cn.REPLACEMENT_CHARACTER)):t===V.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Na,this._emitCodePoint(t))}[I0](t){t===V.SOLIDUS?(this.tempBuff=[],this.state=tx):Us(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(rx)):(this._emitChars("<"),this._reconsumeInState(Na))}[tx](t){Us(t)?(this._createEndTagToken(),this._reconsumeInState(nx)):(this._emitChars("")):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=Ho,this._emitChars(cn.REPLACEMENT_CHARACTER)):t===V.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Ho,this._emitCodePoint(t))}[R0](t){t===V.SOLIDUS?(this.tempBuff=[],this.state=ox,this._emitChars("/")):this._reconsumeInState(Ho)}[ox](t){vn(t)||t===V.SOLIDUS||t===V.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Na:Ho,this._emitCodePoint(t)):La(t)?(this.tempBuff.push(Ih(t)),this._emitCodePoint(t)):Xl(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Ho)}[so](t){vn(t)||(t===V.SOLIDUS||t===V.GREATER_THAN_SIGN||t===V.EOF?this._reconsumeInState(q3):t===V.EQUALS_SIGN?(this._err(Ae.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=N0):(this._createAttr(""),this._reconsumeInState(N0)))}[N0](t){vn(t)||t===V.SOLIDUS||t===V.GREATER_THAN_SIGN||t===V.EOF?(this._leaveAttrName(q3),this._unconsume()):t===V.EQUALS_SIGN?this._leaveAttrName(K3):La(t)?this.currentAttr.name+=Fs(t):t===V.QUOTATION_MARK||t===V.APOSTROPHE||t===V.LESS_THAN_SIGN?(this._err(Ae.unexpectedCharacterInAttributeName),this.currentAttr.name+=Fn(t)):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.name+=cn.REPLACEMENT_CHARACTER):this.currentAttr.name+=Fn(t)}[q3](t){vn(t)||(t===V.SOLIDUS?this.state=Ls:t===V.EQUALS_SIGN?this.state=K3:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(N0)))}[K3](t){vn(t)||(t===V.QUOTATION_MARK?this.state=O0:t===V.APOSTROPHE?this.state=D0:t===V.GREATER_THAN_SIGN?(this._err(Ae.missingAttributeValue),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(L0))}[O0](t){t===V.QUOTATION_MARK?this.state=Y3:t===V.AMPERSAND?(this.returnState=O0,this.state=Ju):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[D0](t){t===V.APOSTROPHE?this.state=Y3:t===V.AMPERSAND?(this.returnState=D0,this.state=Ju):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[L0](t){vn(t)?this._leaveAttrValue(so):t===V.AMPERSAND?(this.returnState=L0,this.state=Ju):t===V.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=cn.REPLACEMENT_CHARACTER):t===V.QUOTATION_MARK||t===V.APOSTROPHE||t===V.LESS_THAN_SIGN||t===V.EQUALS_SIGN||t===V.GRAVE_ACCENT?(this._err(Ae.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Fn(t)):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fn(t)}[Y3](t){vn(t)?this._leaveAttrValue(so):t===V.SOLIDUS?this._leaveAttrValue(Ls):t===V.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBetweenAttributes),this._reconsumeInState(so))}[Ls](t){t===V.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.unexpectedSolidusInTag),this._reconsumeInState(so))}[td](t){t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=cn.REPLACEMENT_CHARACTER):this.currentToken.data+=Fn(t)}[sx](t){this._consumeSequenceIfMatch(jl.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=lx):this._consumeSequenceIfMatch(jl.DOCTYPE_STRING,t,!1)?this.state=gx:this._consumeSequenceIfMatch(jl.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=U0:(this._err(Ae.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=td):this._ensureHibernation()||(this._err(Ae.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(td))}[lx](t){t===V.HYPHEN_MINUS?this.state=ux:t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(Ms)}[ux](t){t===V.HYPHEN_MINUS?this.state=F0:t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ms))}[Ms](t){t===V.HYPHEN_MINUS?this.state=M0:t===V.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=cx):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Fn(t)}[cx](t){t===V.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=dx):t===V.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Ms)}[dx](t){t===V.HYPHEN_MINUS?this.state=px:this._reconsumeInState(Ms)}[px](t){t===V.HYPHEN_MINUS?this.state=fx:this._reconsumeInState(M0)}[fx](t){t!==V.GREATER_THAN_SIGN&&t!==V.EOF&&this._err(Ae.nestedComment),this._reconsumeInState(F0)}[M0](t){t===V.HYPHEN_MINUS?this.state=F0:t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ms))}[F0](t){t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EXCLAMATION_MARK?this.state=hx:t===V.HYPHEN_MINUS?this.currentToken.data+="-":t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Ms))}[hx](t){t===V.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=M0):t===V.GREATER_THAN_SIGN?(this._err(Ae.incorrectlyClosedComment),this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Ms))}[gx](t){vn(t)?this.state=P0:t===V.GREATER_THAN_SIGN?this._reconsumeInState(P0):t===V.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(P0))}[P0](t){vn(t)||(La(t)?(this._createDoctypeToken(Fs(t)),this.state=B0):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this._createDoctypeToken(cn.REPLACEMENT_CHARACTER),this.state=B0):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Fn(t)),this.state=B0))}[B0](t){vn(t)?this.state=mx:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):La(t)?this.currentToken.name+=Fs(t):t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.name+=cn.REPLACEMENT_CHARACTER):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Fn(t)}[mx](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(jl.PUBLIC_STRING,t,!1)?this.state=bx:this._consumeSequenceIfMatch(jl.SYSTEM_STRING,t,!1)?this.state=vx:this._ensureHibernation()||(this._err(Ae.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo)))}[bx](t){vn(t)?this.state=yx:t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=X3):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Z3):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo))}[yx](t){vn(t)||(t===V.QUOTATION_MARK?(this.currentToken.publicId="",this.state=X3):t===V.APOSTROPHE?(this.currentToken.publicId="",this.state=Z3):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo)))}[X3](t){t===V.QUOTATION_MARK?this.state=Q3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fn(t)}[Z3](t){t===V.APOSTROPHE?this.state=Q3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fn(t)}[Q3](t){vn(t)?this.state=Ex:t===V.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=rd):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo))}[Ex](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.QUOTATION_MARK?(this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this.currentToken.systemId="",this.state=rd):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo)))}[vx](t){vn(t)?this.state=_x:t===V.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=rd):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo))}[_x](t){vn(t)||(t===V.QUOTATION_MARK?(this.currentToken.systemId="",this.state=nd):t===V.APOSTROPHE?(this.currentToken.systemId="",this.state=rd):t===V.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(jo)))}[nd](t){t===V.QUOTATION_MARK?this.state=J3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fn(t)}[rd](t){t===V.APOSTROPHE?this.state=J3:t===V.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=cn.REPLACEMENT_CHARACTER):t===V.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fn(t)}[J3](t){vn(t)||(t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(jo)))}[jo](t){t===V.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===V.NULL?this._err(Ae.unexpectedNullCharacter):t===V.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[U0](t){t===V.RIGHT_SQUARE_BRACKET?this.state=Tx:t===V.EOF?(this._err(Ae.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Tx](t){t===V.RIGHT_SQUARE_BRACKET?this.state=Sx:(this._emitChars("]"),this._reconsumeInState(U0))}[Sx](t){t===V.GREATER_THAN_SIGN?this.state=Ot:t===V.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(U0))}[Ju](t){this.tempBuff=[V.AMPERSAND],t===V.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Cx):e4(t)?this._reconsumeInState(wx):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[wx](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[V.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===V.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Ae.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Ax}[Ax](t){e4(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Fn(t):this._emitCodePoint(t):(t===V.SEMICOLON&&this._err(Ae.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Cx](t){this.charRefCode=0,t===V.LATIN_SMALL_X||t===V.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=kx):this._reconsumeInState(xx)}[kx](t){Kre(t)?this._reconsumeInState(Ix):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[xx](t){zd(t)?this._reconsumeInState(Rx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ix](t){MM(t)?this.charRefCode=this.charRefCode*16+t-55:FM(t)?this.charRefCode=this.charRefCode*16+t-87:zd(t)?this.charRefCode=this.charRefCode*16+t-48:t===V.SEMICOLON?this.state=id:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(id))}[Rx](t){zd(t)?this.charRefCode=this.charRefCode*10+t-48:t===V.SEMICOLON?this.state=id:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(id))}[id](){if(this.charRefCode===V.NULL)this._err(Ae.nullCharacterReference),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Ae.characterReferenceOutsideUnicodeRange),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(cn.isSurrogate(this.charRefCode))this._err(Ae.surrogateCharacterReference),this.charRefCode=V.REPLACEMENT_CHARACTER;else if(cn.isUndefinedCodePoint(this.charRefCode))this._err(Ae.noncharacterCharacterReference);else if(cn.isControlCodePoint(this.charRefCode)||this.charRefCode===V.CARRIAGE_RETURN){this._err(Ae.controlCharacterReference);const t=Wre[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};wa.CHARACTER_TOKEN="CHARACTER_TOKEN";wa.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";wa.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";wa.START_TAG_TOKEN="START_TAG_TOKEN";wa.END_TAG_TOKEN="END_TAG_TOKEN";wa.COMMENT_TOKEN="COMMENT_TOKEN";wa.DOCTYPE_TOKEN="DOCTYPE_TOKEN";wa.EOF_TOKEN="EOF_TOKEN";wa.HIBERNATION_TOKEN="HIBERNATION_TOKEN";wa.MODE={DATA:Ot,RCDATA:u1,RAWTEXT:Sd,SCRIPT_DATA:Zo,PLAINTEXT:LM};wa.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var t2=wa,Za={};const t4=Za.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/"};Za.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Za.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const $e=Za.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"};Za.SPECIAL_ELEMENTS={[t4.HTML]:{[$e.ADDRESS]:!0,[$e.APPLET]:!0,[$e.AREA]:!0,[$e.ARTICLE]:!0,[$e.ASIDE]:!0,[$e.BASE]:!0,[$e.BASEFONT]:!0,[$e.BGSOUND]:!0,[$e.BLOCKQUOTE]:!0,[$e.BODY]:!0,[$e.BR]:!0,[$e.BUTTON]:!0,[$e.CAPTION]:!0,[$e.CENTER]:!0,[$e.COL]:!0,[$e.COLGROUP]:!0,[$e.DD]:!0,[$e.DETAILS]:!0,[$e.DIR]:!0,[$e.DIV]:!0,[$e.DL]:!0,[$e.DT]:!0,[$e.EMBED]:!0,[$e.FIELDSET]:!0,[$e.FIGCAPTION]:!0,[$e.FIGURE]:!0,[$e.FOOTER]:!0,[$e.FORM]:!0,[$e.FRAME]:!0,[$e.FRAMESET]:!0,[$e.H1]:!0,[$e.H2]:!0,[$e.H3]:!0,[$e.H4]:!0,[$e.H5]:!0,[$e.H6]:!0,[$e.HEAD]:!0,[$e.HEADER]:!0,[$e.HGROUP]:!0,[$e.HR]:!0,[$e.HTML]:!0,[$e.IFRAME]:!0,[$e.IMG]:!0,[$e.INPUT]:!0,[$e.LI]:!0,[$e.LINK]:!0,[$e.LISTING]:!0,[$e.MAIN]:!0,[$e.MARQUEE]:!0,[$e.MENU]:!0,[$e.META]:!0,[$e.NAV]:!0,[$e.NOEMBED]:!0,[$e.NOFRAMES]:!0,[$e.NOSCRIPT]:!0,[$e.OBJECT]:!0,[$e.OL]:!0,[$e.P]:!0,[$e.PARAM]:!0,[$e.PLAINTEXT]:!0,[$e.PRE]:!0,[$e.SCRIPT]:!0,[$e.SECTION]:!0,[$e.SELECT]:!0,[$e.SOURCE]:!0,[$e.STYLE]:!0,[$e.SUMMARY]:!0,[$e.TABLE]:!0,[$e.TBODY]:!0,[$e.TD]:!0,[$e.TEMPLATE]:!0,[$e.TEXTAREA]:!0,[$e.TFOOT]:!0,[$e.TH]:!0,[$e.THEAD]:!0,[$e.TITLE]:!0,[$e.TR]:!0,[$e.TRACK]:!0,[$e.UL]:!0,[$e.WBR]:!0,[$e.XMP]:!0},[t4.MATHML]:{[$e.MI]:!0,[$e.MO]:!0,[$e.MN]:!0,[$e.MS]:!0,[$e.MTEXT]:!0,[$e.ANNOTATION_XML]:!0},[t4.SVG]:{[$e.TITLE]:!0,[$e.FOREIGN_OBJECT]:!0,[$e.DESC]:!0}};const PM=Za,He=PM.TAG_NAMES,dn=PM.NAMESPACES;function Ox(e){switch(e.length){case 1:return e===He.P;case 2:return e===He.RB||e===He.RP||e===He.RT||e===He.DD||e===He.DT||e===He.LI;case 3:return e===He.RTC;case 6:return e===He.OPTION;case 8:return e===He.OPTGROUP}return!1}function Yre(e){switch(e.length){case 1:return e===He.P;case 2:return e===He.RB||e===He.RP||e===He.RT||e===He.DD||e===He.DT||e===He.LI||e===He.TD||e===He.TH||e===He.TR;case 3:return e===He.RTC;case 5:return e===He.TBODY||e===He.TFOOT||e===He.THEAD;case 6:return e===He.OPTION;case 7:return e===He.CAPTION;case 8:return e===He.OPTGROUP||e===He.COLGROUP}return!1}function $0(e,t){switch(e.length){case 2:if(e===He.TD||e===He.TH)return t===dn.HTML;if(e===He.MI||e===He.MO||e===He.MN||e===He.MS)return t===dn.MATHML;break;case 4:if(e===He.HTML)return t===dn.HTML;if(e===He.DESC)return t===dn.SVG;break;case 5:if(e===He.TABLE)return t===dn.HTML;if(e===He.MTEXT)return t===dn.MATHML;if(e===He.TITLE)return t===dn.SVG;break;case 6:return(e===He.APPLET||e===He.OBJECT)&&t===dn.HTML;case 7:return(e===He.CAPTION||e===He.MARQUEE)&&t===dn.HTML;case 8:return e===He.TEMPLATE&&t===dn.HTML;case 13:return e===He.FOREIGN_OBJECT&&t===dn.SVG;case 14:return e===He.ANNOTATION_XML&&t===dn.MATHML}return!1}let Xre=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===He.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===dn.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(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===dn.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===He.H1||t===He.H2||t===He.H3||t===He.H4||t===He.H5||t===He.H6&&n===dn.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===He.TD||t===He.TH&&n===dn.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==He.TABLE&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==He.TBODY&&this.currentTagName!==He.TFOOT&&this.currentTagName!==He.THEAD&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==He.TR&&this.currentTagName!==He.TEMPLATE&&this.currentTagName!==He.HTML||this.treeAdapter.getNamespaceURI(this.current)!==dn.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===He.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===He.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if($0(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===He.H1||n===He.H2||n===He.H3||n===He.H4||n===He.H5||n===He.H6)&&r===dn.HTML)return!0;if($0(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if((r===He.UL||r===He.OL)&&i===dn.HTML||$0(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===dn.HTML)return!0;if(r===He.BUTTON&&i===dn.HTML||$0(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===dn.HTML){if(r===t)return!0;if(r===He.TABLE||r===He.TEMPLATE||r===He.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===dn.HTML){if(n===He.TBODY||n===He.THEAD||n===He.TFOOT)return!0;if(n===He.TABLE||n===He.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===dn.HTML){if(r===t)return!0;if(r!==He.OPTION&&r!==He.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Ox(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Yre(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Ox(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var Zre=Xre;const z0=3;let L9=class $s{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=z0){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===$s.MARKER_ENTRY)break;const u=s.element,c=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===a&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length=z0-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:$s.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:$s.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:$s.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===$s.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===$s.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===$s.ELEMENT_ENTRY&&r.element===t)return r}return null}};L9.MARKER_ENTRY="MARKER_ENTRY";L9.ELEMENT_ENTRY="ELEMENT_ENTRY";var Qre=L9;let BM=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};BM.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i{const a=n4.MODE[i];r[a]=function(o){t.ctLoc=t._getCurrentLocation(),n[a].call(this,o)}}),r}};var $M=nie;const rie=ms;let iie=class extends rie{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var aie=iie;const r4=ms,Lx=t2,oie=$M,sie=aie,lie=Za,i4=lie.TAG_NAMES;let uie=class extends r4{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===Lx.END_TAG_TOKEN&&a===n.tagName,s={};o?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const a=r4.install(this.tokenizer,oie);t.posTracker=a.posTracker,r4.install(this.openElements,sie,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===Lx.END_TAG_TOKEN&&(r.tagName===i4.HTML||r.tagName===i4.BODY&&this.openElements.hasInScope(i4.BODY)))for(let a=this.openElements.stackTop;a>=0;a--){const o=this.openElements.items[a];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),a=i.length;for(let o=0;o(Object.keys(i).forEach(a=>{r[a]=i[a]}),r),Object.create(null))},n2={};const{DOCUMENT_MODE:e1}=Za,jM="html",Nie="about:legacy-compat",Oie="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",GM=["+//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//"],Die=GM.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),Lie=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],VM=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Mie=VM.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Fx(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Px(e,t){for(let n=0;n-1)return e1.QUIRKS;let r=t===null?Die:GM;if(Px(n,r))return e1.QUIRKS;if(r=t===null?VM:Mie,Px(n,r))return e1.LIMITED_QUIRKS}return e1.NO_QUIRKS};n2.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Fx(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Fx(n)),r};var kl={};const a4=t2,F9=Za,ft=F9.TAG_NAMES,Tr=F9.NAMESPACES,Rh=F9.ATTRS,Bx={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Fie="definitionurl",Pie="definitionURL",Bie={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"},Uie={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Tr.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Tr.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Tr.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Tr.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Tr.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Tr.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Tr.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Tr.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Tr.XML},"xml:space":{prefix:"xml",name:"space",namespace:Tr.XML},xmlns:{prefix:"",name:"xmlns",namespace:Tr.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Tr.XMLNS}},$ie=kl.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"},zie={[ft.B]:!0,[ft.BIG]:!0,[ft.BLOCKQUOTE]:!0,[ft.BODY]:!0,[ft.BR]:!0,[ft.CENTER]:!0,[ft.CODE]:!0,[ft.DD]:!0,[ft.DIV]:!0,[ft.DL]:!0,[ft.DT]:!0,[ft.EM]:!0,[ft.EMBED]:!0,[ft.H1]:!0,[ft.H2]:!0,[ft.H3]:!0,[ft.H4]:!0,[ft.H5]:!0,[ft.H6]:!0,[ft.HEAD]:!0,[ft.HR]:!0,[ft.I]:!0,[ft.IMG]:!0,[ft.LI]:!0,[ft.LISTING]:!0,[ft.MENU]:!0,[ft.META]:!0,[ft.NOBR]:!0,[ft.OL]:!0,[ft.P]:!0,[ft.PRE]:!0,[ft.RUBY]:!0,[ft.S]:!0,[ft.SMALL]:!0,[ft.SPAN]:!0,[ft.STRONG]:!0,[ft.STRIKE]:!0,[ft.SUB]:!0,[ft.SUP]:!0,[ft.TABLE]:!0,[ft.TT]:!0,[ft.U]:!0,[ft.UL]:!0,[ft.VAR]:!0};kl.causesExit=function(e){const t=e.tagName;return t===ft.FONT&&(a4.getTokenAttr(e,Rh.COLOR)!==null||a4.getTokenAttr(e,Rh.SIZE)!==null||a4.getTokenAttr(e,Rh.FACE)!==null)?!0:zie[t]};kl.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),a=Jie[i];if(a){this.insertionMode=a;break}else if(!n&&(i===S.TD||i===S.TH)){this.insertionMode=o2;break}else if(!n&&i===S.HEAD){this.insertionMode=vc;break}else if(i===S.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===S.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===S.HTML){this.insertionMode=this.headElement?i2:r2;break}else if(n){this.insertionMode=To;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===S.TEMPLATE)break;if(i===S.TABLE){this.insertionMode=U9;return}}this.insertionMode=B9}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);if(i===S.TEMPLATE&&a===nt.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===S.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Ru.SPECIAL_ELEMENTS[r][n]}}var nae=tae;function rae(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ma(e,t),n}function iae(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function aae(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),u=s&&a>=Qie;!s||u?(u&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=oae(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function oae(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function sae(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===S.TEMPLATE&&i===nt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function lae(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Gs(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==S.TEMPLATE&&e._err(xr.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(xr.endTagWithoutMatchingOpenElement)}function Gd(e,t){e.openElements.pop(),e.insertionMode=i2,e._processToken(t)}function gae(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.BASEFONT||n===S.BGSOUND||n===S.HEAD||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.STYLE?dr(e,t):n===S.NOSCRIPT?e._err(xr.nestedNoscriptInHead):Vd(e,t)}function mae(e,t){const n=t.tagName;n===S.NOSCRIPT?(e.openElements.pop(),e.insertionMode=vc):n===S.BR?Vd(e,t):e._err(xr.endTagWithoutMatchingOpenElement)}function Vd(e,t){const n=t.type===Y.EOF_TOKEN?xr.openElementsLeftAfterEof:xr.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=vc,e._processToken(t)}function bae(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.BODY?(e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=To):n===S.FRAMESET?(e._insertElement(t,nt.HTML),e.insertionMode=s2):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.SCRIPT||n===S.STYLE||n===S.TEMPLATE||n===S.TITLE?(e._err(xr.abandonedHeadElementChild),e.openElements.push(e.headElement),dr(e,t),e.openElements.remove(e.headElement)):n===S.HEAD?e._err(xr.misplacedStartTagForHeadElement):Wd(e,t)}function yae(e,t){const n=t.tagName;n===S.BODY||n===S.HTML||n===S.BR?Wd(e,t):n===S.TEMPLATE?Nu(e,t):e._err(xr.endTagWithoutMatchingOpenElement)}function Wd(e,t){e._insertFakeElement(S.BODY),e.insertionMode=To,e._processToken(t)}function Gl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function j0(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Eae(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function vae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function _ae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,nt.HTML),e.insertionMode=s2)}function jo(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Tae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6)&&e.openElements.pop(),e._insertElement(t,nt.HTML)}function Gx(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Sae(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),n||(e.formElement=e.openElements.current))}function wae(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],a=e.treeAdapter.getTagName(i);let o=null;if(n===S.LI&&a===S.LI?o=S.LI:(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)&&(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Aae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.tokenizer.state=Y.MODE.PLAINTEXT}function Cae(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1}function kae(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);n&&(Gs(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function t1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xae(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(Gs(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Vx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Iae(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ru.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=Hr}function c1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Rae(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML);const n=Y.getTokenAttr(t,WM.TYPE);(!n||n.toLowerCase()!==qM)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Wx(e,t){e._appendElement(t,nt.HTML),t.ackSelfClosing=!0}function Nae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Oae(e,t){t.tagName=S.IMG,c1(e,t)}function Dae(e,t){e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Y.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Lg}function Lae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function Mae(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function qx(e,t){e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function Fae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode===Hr||e.insertionMode===a2||e.insertionMode===ga||e.insertionMode===ds||e.insertionMode===o2?e.insertionMode=U9:e.insertionMode=B9}function Kx(e,t){e.openElements.currentTagName===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function Yx(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,nt.HTML)}function Pae(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,nt.HTML)}function Bae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Uae(e,t){e._reconstructActiveFormattingElements(),mo.adjustTokenMathMLAttrs(t),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,nt.MATHML):e._insertElement(t,nt.MATHML),t.ackSelfClosing=!0}function $ae(e,t){e._reconstructActiveFormattingElements(),mo.adjustTokenSVGAttrs(t),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,nt.SVG):e._insertElement(t,nt.SVG),t.ackSelfClosing=!0}function ra(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function Ti(e,t){const n=t.tagName;switch(n.length){case 1:n===S.I||n===S.S||n===S.B||n===S.U?t1(e,t):n===S.P?jo(e,t):n===S.A?kae(e,t):ra(e,t);break;case 2:n===S.DL||n===S.OL||n===S.UL?jo(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?Tae(e,t):n===S.LI||n===S.DD||n===S.DT?wae(e,t):n===S.EM||n===S.TT?t1(e,t):n===S.BR?c1(e,t):n===S.HR?Nae(e,t):n===S.RB?Yx(e,t):n===S.RT||n===S.RP?Pae(e,t):n!==S.TH&&n!==S.TD&&n!==S.TR&&ra(e,t);break;case 3:n===S.DIV||n===S.DIR||n===S.NAV?jo(e,t):n===S.PRE?Gx(e,t):n===S.BIG?t1(e,t):n===S.IMG||n===S.WBR?c1(e,t):n===S.XMP?Lae(e,t):n===S.SVG?$ae(e,t):n===S.RTC?Yx(e,t):n!==S.COL&&ra(e,t);break;case 4:n===S.HTML?Eae(e,t):n===S.BASE||n===S.LINK||n===S.META?dr(e,t):n===S.BODY?vae(e,t):n===S.MAIN||n===S.MENU?jo(e,t):n===S.FORM?Sae(e,t):n===S.CODE||n===S.FONT?t1(e,t):n===S.NOBR?xae(e,t):n===S.AREA?c1(e,t):n===S.MATH?Uae(e,t):n===S.MENU?Bae(e,t):n!==S.HEAD&&ra(e,t);break;case 5:n===S.STYLE||n===S.TITLE?dr(e,t):n===S.ASIDE?jo(e,t):n===S.SMALL?t1(e,t):n===S.TABLE?Iae(e,t):n===S.EMBED?c1(e,t):n===S.INPUT?Rae(e,t):n===S.PARAM||n===S.TRACK?Wx(e,t):n===S.IMAGE?Oae(e,t):n!==S.FRAME&&n!==S.TBODY&&n!==S.TFOOT&&n!==S.THEAD&&ra(e,t);break;case 6:n===S.SCRIPT?dr(e,t):n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?jo(e,t):n===S.BUTTON?Cae(e,t):n===S.STRIKE||n===S.STRONG?t1(e,t):n===S.APPLET||n===S.OBJECT?Vx(e,t):n===S.KEYGEN?c1(e,t):n===S.SOURCE?Wx(e,t):n===S.IFRAME?Mae(e,t):n===S.SELECT?Fae(e,t):n===S.OPTION?Kx(e,t):ra(e,t);break;case 7:n===S.BGSOUND?dr(e,t):n===S.DETAILS||n===S.ADDRESS||n===S.ARTICLE||n===S.SECTION||n===S.SUMMARY?jo(e,t):n===S.LISTING?Gx(e,t):n===S.MARQUEE?Vx(e,t):n===S.NOEMBED?qx(e,t):n!==S.CAPTION&&ra(e,t);break;case 8:n===S.BASEFONT?dr(e,t):n===S.FRAMESET?_ae(e,t):n===S.FIELDSET?jo(e,t):n===S.TEXTAREA?Dae(e,t):n===S.TEMPLATE?dr(e,t):n===S.NOSCRIPT?e.options.scriptingEnabled?qx(e,t):ra(e,t):n===S.OPTGROUP?Kx(e,t):n!==S.COLGROUP&&ra(e,t);break;case 9:n===S.PLAINTEXT?Aae(e,t):ra(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?jo(e,t):ra(e,t);break;default:ra(e,t)}}function zae(e){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=$9)}function Hae(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=$9,e._processToken(t))}function Ps(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function jae(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):e.openElements.remove(n))}function Gae(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(S.P),e._closePElement()}function Vae(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function Wae(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function qae(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Xx(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Kae(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(S.BR),e.openElements.pop(),e.framesetOk=!1}function Ma(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function z9(e,t){const n=t.tagName;switch(n.length){case 1:n===S.A||n===S.B||n===S.I||n===S.S||n===S.U?Gs(e,t):n===S.P?Gae(e):Ma(e,t);break;case 2:n===S.DL||n===S.UL||n===S.OL?Ps(e,t):n===S.LI?Vae(e):n===S.DD||n===S.DT?Wae(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?qae(e):n===S.BR?Kae(e):n===S.EM||n===S.TT?Gs(e,t):Ma(e,t);break;case 3:n===S.BIG?Gs(e,t):n===S.DIR||n===S.DIV||n===S.NAV||n===S.PRE?Ps(e,t):Ma(e,t);break;case 4:n===S.BODY?zae(e):n===S.HTML?Hae(e,t):n===S.FORM?jae(e):n===S.CODE||n===S.FONT||n===S.NOBR?Gs(e,t):n===S.MAIN||n===S.MENU?Ps(e,t):Ma(e,t);break;case 5:n===S.ASIDE?Ps(e,t):n===S.SMALL?Gs(e,t):Ma(e,t);break;case 6:n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Ps(e,t):n===S.APPLET||n===S.OBJECT?Xx(e,t):n===S.STRIKE||n===S.STRONG?Gs(e,t):Ma(e,t);break;case 7:n===S.ADDRESS||n===S.ARTICLE||n===S.DETAILS||n===S.SECTION||n===S.SUMMARY||n===S.LISTING?Ps(e,t):n===S.MARQUEE?Xx(e,t):Ma(e,t);break;case 8:n===S.FIELDSET?Ps(e,t):n===S.TEMPLATE?Nu(e,t):Ma(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Ps(e,t):Ma(e,t);break;default:Ma(e,t)}}function Go(e,t){e.tmplInsertionModeStackTop>-1?nF(e,t):e.stopped=!0}function Yae(e,t){t.tagName===S.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Xae(e,t){e._err(xr.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Vo(e,t){const n=e.openElements.currentTagName;n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=XM,e._processToken(t)):ia(e,t)}function Zae(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,nt.HTML),e.insertionMode=a2}function Qae(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=Wp}function Jae(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.COLGROUP),e.insertionMode=Wp,e._processToken(t)}function eoe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=ga}function toe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.TBODY),e.insertionMode=ga,e._processToken(t)}function noe(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processToken(t))}function roe(e,t){const n=Y.getTokenAttr(t,WM.TYPE);n&&n.toLowerCase()===qM?e._appendElement(t,nt.HTML):ia(e,t),t.ackSelfClosing=!0}function ioe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,nt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function H9(e,t){const n=t.tagName;switch(n.length){case 2:n===S.TD||n===S.TH||n===S.TR?toe(e,t):ia(e,t);break;case 3:n===S.COL?Jae(e,t):ia(e,t);break;case 4:n===S.FORM?ioe(e,t):ia(e,t);break;case 5:n===S.TABLE?noe(e,t):n===S.STYLE?dr(e,t):n===S.TBODY||n===S.TFOOT||n===S.THEAD?eoe(e,t):n===S.INPUT?roe(e,t):ia(e,t);break;case 6:n===S.SCRIPT?dr(e,t):ia(e,t);break;case 7:n===S.CAPTION?Zae(e,t):ia(e,t);break;case 8:n===S.COLGROUP?Qae(e,t):n===S.TEMPLATE?dr(e,t):ia(e,t);break;default:ia(e,t)}}function j9(e,t){const n=t.tagName;n===S.TABLE?e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode()):n===S.TEMPLATE?Nu(e,t):n!==S.BODY&&n!==S.CAPTION&&n!==S.COL&&n!==S.COLGROUP&&n!==S.HTML&&n!==S.TBODY&&n!==S.TD&&n!==S.TFOOT&&n!==S.TH&&n!==S.THEAD&&n!==S.TR&&ia(e,t)}function ia(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function aoe(e,t){e.pendingCharacterTokens.push(t)}function ooe(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function sd(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function _oe(e,t){t.tagName===S.HTML?Ti(e,t):Pg(e,t)}function Toe(e,t){t.tagName===S.HTML?e.fragmentContext||(e.insertionMode=QM):Pg(e,t)}function Pg(e,t){e.insertionMode=To,e._processToken(t)}function Soe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.FRAMESET?e._insertElement(t,nt.HTML):n===S.FRAME?(e._appendElement(t,nt.HTML),t.ackSelfClosing=!0):n===S.NOFRAMES&&dr(e,t)}function woe(e,t){t.tagName===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==S.FRAMESET&&(e.insertionMode=ZM))}function Aoe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.NOFRAMES&&dr(e,t)}function Coe(e,t){t.tagName===S.HTML&&(e.insertionMode=JM)}function koe(e,t){t.tagName===S.HTML?Ti(e,t):Nh(e,t)}function Nh(e,t){e.insertionMode=To,e._processToken(t)}function xoe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.NOFRAMES&&dr(e,t)}function Ioe(e,t){t.chars=Yie.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Roe(e,t){e._insertCharacters(t),e.framesetOk=!1}function Noe(e,t){if(mo.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==nt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===nt.MATHML?mo.adjustTokenMathMLAttrs(t):r===nt.SVG&&(mo.adjustTokenSVGTagName(t),mo.adjustTokenSVGAttrs(t)),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Ooe(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===nt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Doe=Vi(nae),Zx=/[#.]/g;function Loe(e,t){const n=e||"",r={};let i=0,a,o;for(;i-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function a(o){const s=o&&o.line,u=o&&o.column;if(typeof s=="number"&&typeof u=="number"&&!Number.isNaN(s)&&!Number.isNaN(u)&&s-1 in n){const c=(n[s-2]||0)+u-1||0;if(c>-1&&c{const P=N;if(P.value.stitch&&q!==null&&B!==null)return q.children[B]=P.value.stitch,B}),e.type!=="root"&&f.type==="root"&&f.children.length===1)return f.children[0];return f;function m(){const N={nodeName:"template",tagName:"template",attrs:[],namespaceURI:wp.html,childNodes:[]},B={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:wp.html,childNodes:[]},q={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(B,N),i._pushTmplInsertionMode(ase),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),i._adoptNodes(B.childNodes[0],q),q}function g(){const N=i.treeAdapter.createDocument();if(i._bootstrap(N,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),N}function b(N){let B=-1;if(N)for(;++BsF(t,n,e)}const vse=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,_se=Object.hasOwnProperty;class Tse{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Sse(t,n===!0);const a=i;for(;_se.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Sse(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(vse,"").replace(/ /g,"-"))}const wse={}.hasOwnProperty;function Vr(e,t){const n=typeof t=="string"&&Ase(e)&&e.type==="element"&&e.properties&&wse.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}function Ase(e){return!!(e&&typeof e=="object"&&"type"in e)}function lF(e){const t=e&&e.type==="element"&&e.tagName.toLowerCase()||"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}function R1(e){return"children"in e?uF(e):"value"in e?e.value:""}function Cse(e){return e.type==="text"?e.value:"children"in e?uF(e):""}function uF(e){let t=-1;const n=[];for(;++t{tI.reset(),Hi(n,"element",r=>{lF(r)&&r.properties&&!Vr(r,"id")&&(r.properties.id=t+tI.slug(R1(r)))})}}const cF=function(e){if(e==null)return W9;if(typeof e=="string")return Ise(e);if(typeof e=="object")return xse(e);if(typeof e=="function")return dF(e);throw new Error("Expected function, string, or array as test")};function xse(e){const t=[];let n=-1;for(;++n{Hi(g,"element",(b,y,T)=>{if(lF(b)&&Vr(b,"id")&&a(b,y,T))return o(b,y,T)})};function s(g){return g.children[n==="prepend"?"unshift":"push"](m(g,k1(!0,{},t),p(r,g))),[$d]}function u(g,b,y){if(typeof b!="number"||!y)return;const T=m(g,k1(!0,{},t),p(r,g));let E=n==="before"?[T,g]:[g,T];if(i){const v=f(i,g);v&&!Array.isArray(v)&&v.type==="element"&&(v.children=E,E=[v])}return y.children.splice(b,1,...E),[$d,b+E.length]}function c(g){return g.children=[m(g,k1(!0,{},t),g.children)],[$d]}function p(g,b){const y=f(g,b);return Array.isArray(y)?y:[y]}function f(g,b){return typeof g=="function"?g(b):k1(!0,Array.isArray(g)?[]:{},g)}function m(g,b,y){return{type:"element",tagName:"a",properties:Object.assign({},b,{href:"#"+(g.properties||{}).id}),children:y}}}const Ose=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Dse=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},pF=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?pF(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},nI=({value:e=""})=>{const t=Ose(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},rI=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Lse=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Hi(r,"element",(i,a,o)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&o&&Array.isArray(o.children)&&o.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof a=="number"){const u=Dse(o.children,a);if(u){const c=nI(u);Object.keys(c).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=rI(s.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&o&&Array.isArray(o.children)&&typeof a=="number"){const s=pF(o.children,a,"",n);if(s){const u=nI(s);Object.keys(u).length>0&&(i.properties=rI(i.properties,u,t))}}})}},Mse=Lse,Fse=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Hi(r,(i,a,o)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let c=(u.value||"").trim();if(c=c.replace(/^/,"$1"),c===t)return s=!0,!1;if(c===n)return s=!1,!1}return!s})}})}},Pse=Fse,Bse={}.hasOwnProperty,Use=function(e,t,n){const r=Qm(n||t),i=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,a=i??!0;return o(e);function o(s,u,c){const p=[];if(!r(s,u,c))return null;if(s.children){let g=-1;for(;++g0&&p.length===0)return null}const f={};let m;for(m in s)Bse.call(s,m)&&(f[m]=m==="children"?p:s[m]);return f}};var cy={exports:{}};(function(e,t){function n(r){let i=[],a;for(let o of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(o))i.push(parseInt(o,10));else if(a=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,u,c,p]=a;if(u&&p){u=parseInt(u),p=parseInt(p);const f=u]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Qa.displayName="c";Qa.aliases=[];function Qa(e){e.register(Lt),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Ou.displayName="cpp";Ou.aliases=[];function Ou(e){e.register(Qa),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}u2.displayName="arduino";u2.aliases=["ino"];function u2(e){e.register(Ou),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}qp.displayName="bash";qp.aliases=["sh","shell"];function qp(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=i.variable[1].inside,s=0;s>/g,function(le,L){return"(?:"+pe[+L]+")"})}function r(D,pe,le){return RegExp(n(D,pe),le||"")}function i(D,pe){for(var le=0;le>/g,function(){return"(?:"+D+")"});return D.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(D){return"\\b(?:"+D.trim().replace(/ /g,"|")+")\\b"}var s=o(a.typeDeclaration),u=RegExp(o(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=o(a.typeDeclaration+" "+a.contextual+" "+a.other),p=o(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,b=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),y=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,b]),T=/\[\s*(?:,\s*)*\]/.source,E=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,T]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,m,T]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),A=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,T]),R={keyword:u,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,N=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,A]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,b]),lookbehind:!0,inside:R},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:R},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[E]),lookbehind:!0,inside:R},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[A,p,g]),inside:R}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:R},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[A,y]),inside:R,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[A]),lookbehind:!0,inside:R,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:R}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,b,g,A,u.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,m]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(A),greedy:!0,inside:R},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var q=N+"|"+k,P=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[q]),Q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),$=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,oe=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,Q]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[$,oe]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[$]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[Q]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var fe=/:[^}\r\n]+/.source,ce=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),De=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ce,fe]),H=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[q]),2),W=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,fe]);function se(D,pe){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[D]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[pe,fe]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[De]),lookbehind:!0,greedy:!0,inside:se(De,ce)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[W]),lookbehind:!0,greedy:!0,inside:se(W,H)}],char:{pattern:RegExp(k),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}gr.displayName="markup";gr.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function gr(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}xl.displayName="css";xl.aliases=[];function xl(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}c2.displayName="diff";c2.aliases=[];function c2(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r +`)&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}};var UM=eie;const Dx=bs,n4=t2,tie=UM;let nie=class extends Dx{constructor(t){super(t),this.tokenizer=t,this.posTracker=Dx.install(t.preprocessor,tie),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;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,a){n._createCharacterToken.call(this,i,a),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===n4.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(n4.MODE).forEach(i=>{const a=n4.MODE[i];r[a]=function(o){t.ctLoc=t._getCurrentLocation(),n[a].call(this,o)}}),r}};var $M=nie;const rie=bs;let iie=class extends rie{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var aie=iie;const r4=bs,Lx=t2,oie=$M,sie=aie,lie=Za,i4=lie.TAG_NAMES;let uie=class extends r4{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===Lx.END_TAG_TOKEN&&a===n.tagName,s={};o?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const a=r4.install(this.tokenizer,oie);t.posTracker=a.posTracker,r4.install(this.openElements,sie,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===Lx.END_TAG_TOKEN&&(r.tagName===i4.HTML||r.tagName===i4.BODY&&this.openElements.hasInScope(i4.BODY)))for(let a=this.openElements.stackTop;a>=0;a--){const o=this.openElements.items[a];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),a=i.length;for(let o=0;o(Object.keys(i).forEach(a=>{r[a]=i[a]}),r),Object.create(null))},n2={};const{DOCUMENT_MODE:e1}=Za,jM="html",Nie="about:legacy-compat",Oie="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",GM=["+//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//"],Die=GM.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),Lie=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],VM=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Mie=VM.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Fx(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Px(e,t){for(let n=0;n-1)return e1.QUIRKS;let r=t===null?Die:GM;if(Px(n,r))return e1.QUIRKS;if(r=t===null?VM:Mie,Px(n,r))return e1.LIMITED_QUIRKS}return e1.NO_QUIRKS};n2.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Fx(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Fx(n)),r};var kl={};const a4=t2,F9=Za,ft=F9.TAG_NAMES,Tr=F9.NAMESPACES,Rh=F9.ATTRS,Bx={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Fie="definitionurl",Pie="definitionURL",Bie={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"},Uie={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Tr.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Tr.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Tr.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Tr.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Tr.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Tr.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Tr.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Tr.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Tr.XML},"xml:space":{prefix:"xml",name:"space",namespace:Tr.XML},xmlns:{prefix:"",name:"xmlns",namespace:Tr.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Tr.XMLNS}},$ie=kl.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"},zie={[ft.B]:!0,[ft.BIG]:!0,[ft.BLOCKQUOTE]:!0,[ft.BODY]:!0,[ft.BR]:!0,[ft.CENTER]:!0,[ft.CODE]:!0,[ft.DD]:!0,[ft.DIV]:!0,[ft.DL]:!0,[ft.DT]:!0,[ft.EM]:!0,[ft.EMBED]:!0,[ft.H1]:!0,[ft.H2]:!0,[ft.H3]:!0,[ft.H4]:!0,[ft.H5]:!0,[ft.H6]:!0,[ft.HEAD]:!0,[ft.HR]:!0,[ft.I]:!0,[ft.IMG]:!0,[ft.LI]:!0,[ft.LISTING]:!0,[ft.MENU]:!0,[ft.META]:!0,[ft.NOBR]:!0,[ft.OL]:!0,[ft.P]:!0,[ft.PRE]:!0,[ft.RUBY]:!0,[ft.S]:!0,[ft.SMALL]:!0,[ft.SPAN]:!0,[ft.STRONG]:!0,[ft.STRIKE]:!0,[ft.SUB]:!0,[ft.SUP]:!0,[ft.TABLE]:!0,[ft.TT]:!0,[ft.U]:!0,[ft.UL]:!0,[ft.VAR]:!0};kl.causesExit=function(e){const t=e.tagName;return t===ft.FONT&&(a4.getTokenAttr(e,Rh.COLOR)!==null||a4.getTokenAttr(e,Rh.SIZE)!==null||a4.getTokenAttr(e,Rh.FACE)!==null)?!0:zie[t]};kl.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),a=Jie[i];if(a){this.insertionMode=a;break}else if(!n&&(i===S.TD||i===S.TH)){this.insertionMode=o2;break}else if(!n&&i===S.HEAD){this.insertionMode=vc;break}else if(i===S.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===S.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===S.HTML){this.insertionMode=this.headElement?i2:r2;break}else if(n){this.insertionMode=To;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===S.TEMPLATE)break;if(i===S.TABLE){this.insertionMode=U9;return}}this.insertionMode=B9}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);if(i===S.TEMPLATE&&a===nt.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===S.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Ru.SPECIAL_ELEMENTS[r][n]}}var nae=tae;function rae(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ma(e,t),n}function iae(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function aae(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),u=s&&a>=Qie;!s||u?(u&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=oae(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function oae(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function sae(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===S.TEMPLATE&&i===nt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function lae(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Gs(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==S.TEMPLATE&&e._err(xr.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(xr.endTagWithoutMatchingOpenElement)}function Gd(e,t){e.openElements.pop(),e.insertionMode=i2,e._processToken(t)}function gae(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.BASEFONT||n===S.BGSOUND||n===S.HEAD||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.STYLE?dr(e,t):n===S.NOSCRIPT?e._err(xr.nestedNoscriptInHead):Vd(e,t)}function mae(e,t){const n=t.tagName;n===S.NOSCRIPT?(e.openElements.pop(),e.insertionMode=vc):n===S.BR?Vd(e,t):e._err(xr.endTagWithoutMatchingOpenElement)}function Vd(e,t){const n=t.type===Y.EOF_TOKEN?xr.openElementsLeftAfterEof:xr.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=vc,e._processToken(t)}function bae(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.BODY?(e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=To):n===S.FRAMESET?(e._insertElement(t,nt.HTML),e.insertionMode=s2):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.SCRIPT||n===S.STYLE||n===S.TEMPLATE||n===S.TITLE?(e._err(xr.abandonedHeadElementChild),e.openElements.push(e.headElement),dr(e,t),e.openElements.remove(e.headElement)):n===S.HEAD?e._err(xr.misplacedStartTagForHeadElement):Wd(e,t)}function yae(e,t){const n=t.tagName;n===S.BODY||n===S.HTML||n===S.BR?Wd(e,t):n===S.TEMPLATE?Nu(e,t):e._err(xr.endTagWithoutMatchingOpenElement)}function Wd(e,t){e._insertFakeElement(S.BODY),e.insertionMode=To,e._processToken(t)}function Gl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function j0(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Eae(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function vae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function _ae(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,nt.HTML),e.insertionMode=s2)}function Go(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Tae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6)&&e.openElements.pop(),e._insertElement(t,nt.HTML)}function Gx(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Sae(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),n||(e.formElement=e.openElements.current))}function wae(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],a=e.treeAdapter.getTagName(i);let o=null;if(n===S.LI&&a===S.LI?o=S.LI:(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)&&(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Aae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.tokenizer.state=Y.MODE.PLAINTEXT}function Cae(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1}function kae(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);n&&(Gs(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function t1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xae(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(Gs(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Vx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Iae(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ru.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=Hr}function c1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Rae(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML);const n=Y.getTokenAttr(t,WM.TYPE);(!n||n.toLowerCase()!==qM)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Wx(e,t){e._appendElement(t,nt.HTML),t.ackSelfClosing=!0}function Nae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Oae(e,t){t.tagName=S.IMG,c1(e,t)}function Dae(e,t){e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Y.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Lg}function Lae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function Mae(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function qx(e,t){e._switchToTextParsing(t,Y.MODE.RAWTEXT)}function Fae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode===Hr||e.insertionMode===a2||e.insertionMode===ga||e.insertionMode===ps||e.insertionMode===o2?e.insertionMode=U9:e.insertionMode=B9}function Kx(e,t){e.openElements.currentTagName===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function Yx(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,nt.HTML)}function Pae(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,nt.HTML)}function Bae(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Uae(e,t){e._reconstructActiveFormattingElements(),mo.adjustTokenMathMLAttrs(t),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,nt.MATHML):e._insertElement(t,nt.MATHML),t.ackSelfClosing=!0}function $ae(e,t){e._reconstructActiveFormattingElements(),mo.adjustTokenSVGAttrs(t),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,nt.SVG):e._insertElement(t,nt.SVG),t.ackSelfClosing=!0}function ra(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function Ti(e,t){const n=t.tagName;switch(n.length){case 1:n===S.I||n===S.S||n===S.B||n===S.U?t1(e,t):n===S.P?Go(e,t):n===S.A?kae(e,t):ra(e,t);break;case 2:n===S.DL||n===S.OL||n===S.UL?Go(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?Tae(e,t):n===S.LI||n===S.DD||n===S.DT?wae(e,t):n===S.EM||n===S.TT?t1(e,t):n===S.BR?c1(e,t):n===S.HR?Nae(e,t):n===S.RB?Yx(e,t):n===S.RT||n===S.RP?Pae(e,t):n!==S.TH&&n!==S.TD&&n!==S.TR&&ra(e,t);break;case 3:n===S.DIV||n===S.DIR||n===S.NAV?Go(e,t):n===S.PRE?Gx(e,t):n===S.BIG?t1(e,t):n===S.IMG||n===S.WBR?c1(e,t):n===S.XMP?Lae(e,t):n===S.SVG?$ae(e,t):n===S.RTC?Yx(e,t):n!==S.COL&&ra(e,t);break;case 4:n===S.HTML?Eae(e,t):n===S.BASE||n===S.LINK||n===S.META?dr(e,t):n===S.BODY?vae(e,t):n===S.MAIN||n===S.MENU?Go(e,t):n===S.FORM?Sae(e,t):n===S.CODE||n===S.FONT?t1(e,t):n===S.NOBR?xae(e,t):n===S.AREA?c1(e,t):n===S.MATH?Uae(e,t):n===S.MENU?Bae(e,t):n!==S.HEAD&&ra(e,t);break;case 5:n===S.STYLE||n===S.TITLE?dr(e,t):n===S.ASIDE?Go(e,t):n===S.SMALL?t1(e,t):n===S.TABLE?Iae(e,t):n===S.EMBED?c1(e,t):n===S.INPUT?Rae(e,t):n===S.PARAM||n===S.TRACK?Wx(e,t):n===S.IMAGE?Oae(e,t):n!==S.FRAME&&n!==S.TBODY&&n!==S.TFOOT&&n!==S.THEAD&&ra(e,t);break;case 6:n===S.SCRIPT?dr(e,t):n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Go(e,t):n===S.BUTTON?Cae(e,t):n===S.STRIKE||n===S.STRONG?t1(e,t):n===S.APPLET||n===S.OBJECT?Vx(e,t):n===S.KEYGEN?c1(e,t):n===S.SOURCE?Wx(e,t):n===S.IFRAME?Mae(e,t):n===S.SELECT?Fae(e,t):n===S.OPTION?Kx(e,t):ra(e,t);break;case 7:n===S.BGSOUND?dr(e,t):n===S.DETAILS||n===S.ADDRESS||n===S.ARTICLE||n===S.SECTION||n===S.SUMMARY?Go(e,t):n===S.LISTING?Gx(e,t):n===S.MARQUEE?Vx(e,t):n===S.NOEMBED?qx(e,t):n!==S.CAPTION&&ra(e,t);break;case 8:n===S.BASEFONT?dr(e,t):n===S.FRAMESET?_ae(e,t):n===S.FIELDSET?Go(e,t):n===S.TEXTAREA?Dae(e,t):n===S.TEMPLATE?dr(e,t):n===S.NOSCRIPT?e.options.scriptingEnabled?qx(e,t):ra(e,t):n===S.OPTGROUP?Kx(e,t):n!==S.COLGROUP&&ra(e,t);break;case 9:n===S.PLAINTEXT?Aae(e,t):ra(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Go(e,t):ra(e,t);break;default:ra(e,t)}}function zae(e){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=$9)}function Hae(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=$9,e._processToken(t))}function Ps(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function jae(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):e.openElements.remove(n))}function Gae(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(S.P),e._closePElement()}function Vae(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function Wae(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function qae(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Xx(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Kae(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(S.BR),e.openElements.pop(),e.framesetOk=!1}function Ma(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function z9(e,t){const n=t.tagName;switch(n.length){case 1:n===S.A||n===S.B||n===S.I||n===S.S||n===S.U?Gs(e,t):n===S.P?Gae(e):Ma(e,t);break;case 2:n===S.DL||n===S.UL||n===S.OL?Ps(e,t):n===S.LI?Vae(e):n===S.DD||n===S.DT?Wae(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?qae(e):n===S.BR?Kae(e):n===S.EM||n===S.TT?Gs(e,t):Ma(e,t);break;case 3:n===S.BIG?Gs(e,t):n===S.DIR||n===S.DIV||n===S.NAV||n===S.PRE?Ps(e,t):Ma(e,t);break;case 4:n===S.BODY?zae(e):n===S.HTML?Hae(e,t):n===S.FORM?jae(e):n===S.CODE||n===S.FONT||n===S.NOBR?Gs(e,t):n===S.MAIN||n===S.MENU?Ps(e,t):Ma(e,t);break;case 5:n===S.ASIDE?Ps(e,t):n===S.SMALL?Gs(e,t):Ma(e,t);break;case 6:n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Ps(e,t):n===S.APPLET||n===S.OBJECT?Xx(e,t):n===S.STRIKE||n===S.STRONG?Gs(e,t):Ma(e,t);break;case 7:n===S.ADDRESS||n===S.ARTICLE||n===S.DETAILS||n===S.SECTION||n===S.SUMMARY||n===S.LISTING?Ps(e,t):n===S.MARQUEE?Xx(e,t):Ma(e,t);break;case 8:n===S.FIELDSET?Ps(e,t):n===S.TEMPLATE?Nu(e,t):Ma(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Ps(e,t):Ma(e,t);break;default:Ma(e,t)}}function Vo(e,t){e.tmplInsertionModeStackTop>-1?nF(e,t):e.stopped=!0}function Yae(e,t){t.tagName===S.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Xae(e,t){e._err(xr.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Wo(e,t){const n=e.openElements.currentTagName;n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=XM,e._processToken(t)):ia(e,t)}function Zae(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,nt.HTML),e.insertionMode=a2}function Qae(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=Wp}function Jae(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.COLGROUP),e.insertionMode=Wp,e._processToken(t)}function eoe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=ga}function toe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.TBODY),e.insertionMode=ga,e._processToken(t)}function noe(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processToken(t))}function roe(e,t){const n=Y.getTokenAttr(t,WM.TYPE);n&&n.toLowerCase()===qM?e._appendElement(t,nt.HTML):ia(e,t),t.ackSelfClosing=!0}function ioe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,nt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function H9(e,t){const n=t.tagName;switch(n.length){case 2:n===S.TD||n===S.TH||n===S.TR?toe(e,t):ia(e,t);break;case 3:n===S.COL?Jae(e,t):ia(e,t);break;case 4:n===S.FORM?ioe(e,t):ia(e,t);break;case 5:n===S.TABLE?noe(e,t):n===S.STYLE?dr(e,t):n===S.TBODY||n===S.TFOOT||n===S.THEAD?eoe(e,t):n===S.INPUT?roe(e,t):ia(e,t);break;case 6:n===S.SCRIPT?dr(e,t):ia(e,t);break;case 7:n===S.CAPTION?Zae(e,t):ia(e,t);break;case 8:n===S.COLGROUP?Qae(e,t):n===S.TEMPLATE?dr(e,t):ia(e,t);break;default:ia(e,t)}}function j9(e,t){const n=t.tagName;n===S.TABLE?e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode()):n===S.TEMPLATE?Nu(e,t):n!==S.BODY&&n!==S.CAPTION&&n!==S.COL&&n!==S.COLGROUP&&n!==S.HTML&&n!==S.TBODY&&n!==S.TD&&n!==S.TFOOT&&n!==S.TH&&n!==S.THEAD&&n!==S.TR&&ia(e,t)}function ia(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function aoe(e,t){e.pendingCharacterTokens.push(t)}function ooe(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function sd(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function _oe(e,t){t.tagName===S.HTML?Ti(e,t):Pg(e,t)}function Toe(e,t){t.tagName===S.HTML?e.fragmentContext||(e.insertionMode=QM):Pg(e,t)}function Pg(e,t){e.insertionMode=To,e._processToken(t)}function Soe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.FRAMESET?e._insertElement(t,nt.HTML):n===S.FRAME?(e._appendElement(t,nt.HTML),t.ackSelfClosing=!0):n===S.NOFRAMES&&dr(e,t)}function woe(e,t){t.tagName===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==S.FRAMESET&&(e.insertionMode=ZM))}function Aoe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.NOFRAMES&&dr(e,t)}function Coe(e,t){t.tagName===S.HTML&&(e.insertionMode=JM)}function koe(e,t){t.tagName===S.HTML?Ti(e,t):Nh(e,t)}function Nh(e,t){e.insertionMode=To,e._processToken(t)}function xoe(e,t){const n=t.tagName;n===S.HTML?Ti(e,t):n===S.NOFRAMES&&dr(e,t)}function Ioe(e,t){t.chars=Yie.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Roe(e,t){e._insertCharacters(t),e.framesetOk=!1}function Noe(e,t){if(mo.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==nt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===nt.MATHML?mo.adjustTokenMathMLAttrs(t):r===nt.SVG&&(mo.adjustTokenSVGTagName(t),mo.adjustTokenSVGAttrs(t)),mo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Ooe(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===nt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Doe=Vi(nae),Zx=/[#.]/g;function Loe(e,t){const n=e||"",r={};let i=0,a,o;for(;i-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function a(o){const s=o&&o.line,u=o&&o.column;if(typeof s=="number"&&typeof u=="number"&&!Number.isNaN(s)&&!Number.isNaN(u)&&s-1 in n){const c=(n[s-2]||0)+u-1||0;if(c>-1&&c{const P=N;if(P.value.stitch&&q!==null&&B!==null)return q.children[B]=P.value.stitch,B}),e.type!=="root"&&f.type==="root"&&f.children.length===1)return f.children[0];return f;function m(){const N={nodeName:"template",tagName:"template",attrs:[],namespaceURI:wp.html,childNodes:[]},B={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:wp.html,childNodes:[]},q={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(B,N),i._pushTmplInsertionMode(ase),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),i._adoptNodes(B.childNodes[0],q),q}function g(){const N=i.treeAdapter.createDocument();if(i._bootstrap(N,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),N}function b(N){let B=-1;if(N)for(;++BsF(t,n,e)}const vse=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,_se=Object.hasOwnProperty;class Tse{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Sse(t,n===!0);const a=i;for(;_se.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Sse(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(vse,"").replace(/ /g,"-"))}const wse={}.hasOwnProperty;function Vr(e,t){const n=typeof t=="string"&&Ase(e)&&e.type==="element"&&e.properties&&wse.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}function Ase(e){return!!(e&&typeof e=="object"&&"type"in e)}function lF(e){const t=e&&e.type==="element"&&e.tagName.toLowerCase()||"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}function R1(e){return"children"in e?uF(e):"value"in e?e.value:""}function Cse(e){return e.type==="text"?e.value:"children"in e?uF(e):""}function uF(e){let t=-1;const n=[];for(;++t{tI.reset(),Hi(n,"element",r=>{lF(r)&&r.properties&&!Vr(r,"id")&&(r.properties.id=t+tI.slug(R1(r)))})}}const cF=function(e){if(e==null)return W9;if(typeof e=="string")return Ise(e);if(typeof e=="object")return xse(e);if(typeof e=="function")return dF(e);throw new Error("Expected function, string, or array as test")};function xse(e){const t=[];let n=-1;for(;++n{Hi(g,"element",(b,y,T)=>{if(lF(b)&&Vr(b,"id")&&a(b,y,T))return o(b,y,T)})};function s(g){return g.children[n==="prepend"?"unshift":"push"](m(g,k1(!0,{},t),p(r,g))),[$d]}function u(g,b,y){if(typeof b!="number"||!y)return;const T=m(g,k1(!0,{},t),p(r,g));let E=n==="before"?[T,g]:[g,T];if(i){const v=f(i,g);v&&!Array.isArray(v)&&v.type==="element"&&(v.children=E,E=[v])}return y.children.splice(b,1,...E),[$d,b+E.length]}function c(g){return g.children=[m(g,k1(!0,{},t),g.children)],[$d]}function p(g,b){const y=f(g,b);return Array.isArray(y)?y:[y]}function f(g,b){return typeof g=="function"?g(b):k1(!0,Array.isArray(g)?[]:{},g)}function m(g,b,y){return{type:"element",tagName:"a",properties:Object.assign({},b,{href:"#"+(g.properties||{}).id}),children:y}}}const Ose=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Dse=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},pF=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?pF(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},nI=({value:e=""})=>{const t=Ose(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},rI=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Lse=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Hi(r,"element",(i,a,o)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&o&&Array.isArray(o.children)&&o.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof a=="number"){const u=Dse(o.children,a);if(u){const c=nI(u);Object.keys(c).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=rI(s.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&o&&Array.isArray(o.children)&&typeof a=="number"){const s=pF(o.children,a,"",n);if(s){const u=nI(s);Object.keys(u).length>0&&(i.properties=rI(i.properties,u,t))}}})}},Mse=Lse,Fse=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Hi(r,(i,a,o)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let c=(u.value||"").trim();if(c=c.replace(/^/,"$1"),c===t)return s=!0,!1;if(c===n)return s=!1,!1}return!s})}})}},Pse=Fse,Bse={}.hasOwnProperty,Use=function(e,t,n){const r=Qm(n||t),i=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,a=i??!0;return o(e);function o(s,u,c){const p=[];if(!r(s,u,c))return null;if(s.children){let g=-1;for(;++g0&&p.length===0)return null}const f={};let m;for(m in s)Bse.call(s,m)&&(f[m]=m==="children"?p:s[m]);return f}};var cy={exports:{}};(function(e,t){function n(r){let i=[],a;for(let o of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(o))i.push(parseInt(o,10));else if(a=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,u,c,p]=a;if(u&&p){u=parseInt(u),p=parseInt(p);const f=u]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Qa.displayName="c";Qa.aliases=[];function Qa(e){e.register(Lt),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Ou.displayName="cpp";Ou.aliases=[];function Ou(e){e.register(Qa),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}u2.displayName="arduino";u2.aliases=["ino"];function u2(e){e.register(Ou),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}qp.displayName="bash";qp.aliases=["sh","shell"];function qp(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=i.variable[1].inside,s=0;s>/g,function(le,L){return"(?:"+pe[+L]+")"})}function r(D,pe,le){return RegExp(n(D,pe),le||"")}function i(D,pe){for(var le=0;le>/g,function(){return"(?:"+D+")"});return D.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(D){return"\\b(?:"+D.trim().replace(/ /g,"|")+")\\b"}var s=o(a.typeDeclaration),u=RegExp(o(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=o(a.typeDeclaration+" "+a.contextual+" "+a.other),p=o(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,b=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),y=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,b]),T=/\[\s*(?:,\s*)*\]/.source,E=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,T]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,m,T]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),A=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,T]),R={keyword:u,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,N=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,A]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,b]),lookbehind:!0,inside:R},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:R},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[E]),lookbehind:!0,inside:R},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[A,p,g]),inside:R}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:R},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[A,y]),inside:R,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[A]),lookbehind:!0,inside:R,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:R}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,b,g,A,u.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,m]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(A),greedy:!0,inside:R},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var q=N+"|"+k,P=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[q]),Q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),$=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,oe=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,Q]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[$,oe]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[$]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[Q]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var fe=/:[^}\r\n]+/.source,ce=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),De=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ce,fe]),H=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[q]),2),W=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,fe]);function se(D,pe){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[D]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[pe,fe]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[De]),lookbehind:!0,greedy:!0,inside:se(De,ce)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[W]),lookbehind:!0,greedy:!0,inside:se(W,H)}],char:{pattern:RegExp(k),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}gr.displayName="markup";gr.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function gr(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}xl.displayName="css";xl.aliases=[];function xl(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}c2.displayName="diff";c2.aliases=[];function c2(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| |(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}d2.displayName="go";d2.aliases=[];function d2(e){e.register(Lt),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}p2.displayName="ini";p2.aliases=[];function p2(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}Lu.displayName="java";Lu.aliases=[];function Lu(e){e.register(Lt),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}f2.displayName="regex";f2.aliases=[];function f2(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",s=RegExp(o+"-"+o),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}Tc.displayName="json";Tc.aliases=["webmanifest"];function Tc(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}h2.displayName="kotlin";h2.aliases=["kt","kts"];function h2(e){e.register(Lt),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}g2.displayName="less";g2.aliases=[];function g2(e){e.register(xl),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Kp.displayName="lua";Kp.aliases=[];function Kp(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}m2.displayName="makefile";m2.aliases=[];function m2(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}Yp.displayName="yaml";Yp.aliases=["yml"];function Yp(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return u});return RegExp(p,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}b2.displayName="markdown";b2.aliases=["md"];function b2(e){e.register(gr),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(u){s!==u&&(t.languages.markdown[s].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function u(c){if(!(!c||typeof c=="string"))for(var p=0,f=c.length;p]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}E2.displayName="perl";E2.aliases=[];function E2(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Nr.displayName="markup-templating";Nr.aliases=[];function Nr(e){e.register(gr),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,o){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(a,function(u){if(typeof o=="function"&&!o(u))return u;for(var c=s.length,p;r.code.indexOf(p=n(i,c))!==-1;)++c;return s[c]=u,p}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,o=Object.keys(r.tokenStack);function s(u){for(var c=0;c=o.length);c++){var p=u[c];if(typeof p=="string"||p.content&&typeof p.content=="string"){var f=o[a],m=r.tokenStack[f],g=typeof p=="string"?p:p.content,b=n(i,f),y=g.indexOf(b);if(y>-1){++a;var T=g.substring(0,y),E=new t.Token(i,t.tokenize(m,r.grammar),"language-"+i,m),v=g.substring(y+b.length),w=[];T&&w.push.apply(w,s([T])),w.push(E),v&&w.push.apply(w,s([v])),typeof p=="string"?u.splice.apply(u,[c,1].concat(w)):p.content=w}}else p.content&&s(p.content)}return u}s(r.tokens)}}})}(e)}Mu.displayName="php";Mu.aliases=[];function Mu(e){e.register(Nr),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",p)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(e)}Xp.displayName="python";Xp.aliases=["py"];function Xp(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}v2.displayName="r";v2.aliases=[];function v2(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}Fu.displayName="ruby";Fu.aliases=["rb"];function Fu(e){e.register(Lt),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}_2.displayName="rust";_2.aliases=[];function _2(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}T2.displayName="sass";T2.aliases=[];function T2(e){e.register(xl),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}S2.displayName="scss";S2.aliases=[];function S2(e){e.register(xl),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}Sc.displayName="sql";Sc.aliases=[];function Sc(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}w2.displayName="swift";w2.aliases=[];function w2(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}wc.displayName="typescript";wc.aliases=["ts"];function wc(e){e.register(Rr),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}Zp.displayName="basic";Zp.aliases=[];function Zp(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Qp.displayName="vbnet";Qp.aliases=[];function Qp(e){e.register(Zp),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const iI=/[#.]/g;function Hse(e,t){const n=e||"",r={};let i=0,a,o;for(;i=48&&t<=57}function Zse(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Qse(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function sI(e){return Qse(e)||fF(e)}const n1=String.fromCharCode,Jse=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function ele(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,o="",s,u;t.position&&("start"in t.position||"indent"in t.position?(u=t.position.indent,s=t.position.start):s=t.position);let c=(s?s.line:0)||1,p=(s?s.column:0)||1,f=g(),m;for(i--;++i<=e.length;)if(m===10&&(p=(u?u[a]:0)||1),m=e.charCodeAt(i),m===38){const T=e.charCodeAt(i+1);if(T===9||T===10||T===12||T===32||T===38||T===60||Number.isNaN(T)||n&&T===n){o+=n1(m),p++;continue}const E=i+1;let v=E,w=E,A;if(T===35){w=++v;const $=e.charCodeAt(w);$===88||$===120?(A="hexadecimal",w=++v):A="decimal"}else A="named";let R="",k="",N="";const B=A==="named"?sI:A==="decimal"?fF:Zse;for(w--;++w<=e.length;){const $=e.charCodeAt(w);if(!B($))break;N+=n1($),A==="named"&&Xse.includes(N)&&(R=N,k=Tp(N))}let q=e.charCodeAt(w)===59;if(q){w++;const $=A==="named"?Tp(N):!1;$&&(R=N,k=$)}let P=1+w-E,Q="";if(!(!q&&t.nonTerminated===!1))if(!N)A!=="named"&&b(4,P);else if(A==="named"){if(q&&!k)b(5,1);else if(R!==N&&(w=v+R.length,P=1+w-v,q=!1),!q){const $=R?1:3;if(t.attribute){const oe=e.charCodeAt(w);oe===61?(b($,P),k=""):sI(oe)?k="":b($,P)}else b($,P)}Q=k}else{q||b(2,P);let $=Number.parseInt(N,A==="hexadecimal"?16:10);if(tle($))b(7,P),Q=n1(65533);else if($ in oI)b(6,P),Q=oI[$];else{let oe="";nle($)&&b(6,P),$>65535&&($-=65536,oe+=n1($>>>10|55296),$=56320|$&1023),Q=oe+n1($)}}if(Q){y(),f=g(),i=w-1,p+=w-E+1,r.push(Q);const $=g();$.offset++,t.reference&&t.reference.call(t.referenceContext,Q,{start:f,end:$},e.slice(E-1,w)),f=$}else N=e.slice(E-1,w),o+=N,p+=N.length,i=w-1}else m===10&&(c++,a++,p=0),Number.isNaN(m)?y():(o+=n1(m),p++);return r.join("");function g(){return{line:c,column:p,offset:i+((s?s.offset:0)||0)}}function b(T,E){let v;t.warning&&(v=g(),v.column+=E,v.offset+=E,t.warning.call(t.warningContext,Jse[T],v,T))}function y(){o&&(r.push(o),t.text&&t.text.call(t.textContext,o,{start:f,end:g()}),o="")}}function tle(e){return e>=55296&&e<=57343||e>1114111}function nle(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var rle=0,G0={},lr={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++rle}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(lr.util.type(t)){case"Object":if(i=lr.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=lr.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(o,s){r[s]=e(o,n)}),r);default:return t}}},languages:{plain:G0,plaintext:G0,text:G0,txt:G0,extend:function(e,t){var n=lr.util.clone(lr.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||lr.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var u=r[e];return r[e]=a,lr.languages.DFS(lr.languages,function(c,p){p===u&&c!=e&&(this[c]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=lr.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],u=lr.util.type(s);u==="Object"&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):u==="Array"&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(lr.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=lr.tokenize(r.code,r.grammar),lr.hooks.run("after-tokenize",r),qd.stringify(lr.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new ile;return Dh(i,i.head,e),hF(e,i,t,i.head,0),ole(i)},hooks:{all:{},add:function(e,t){var n=lr.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=lr.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:qd};function qd(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function lI(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function hF(e,t,n,r,i,a){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var u=0;u=a.reach);E+=T.value.length,T=T.next){var v=T.value;if(t.length>e.length)return;if(!(v instanceof qd)){var w=1,A;if(m){if(A=lI(y,E,e,f),!A||A.index>=e.length)break;var B=A.index,R=A.index+A[0].length,k=E;for(k+=T.value.length;B>=k;)T=T.next,k+=T.value.length;if(k-=T.value.length,E=k,T.value instanceof qd)continue;for(var N=T;N!==t.tail&&(ka.reach&&(a.reach=$);var oe=T.prev;P&&(oe=Dh(t,oe,P),E+=P.length),ale(t,oe,w);var fe=new qd(o,p?lr.tokenize(q,p):q,g,q);if(T=Dh(t,oe,fe),Q&&Dh(t,T,Q),w>1){var ce={cause:o+","+u,reach:$};hF(e,t,n,T.prev,E,ce),a&&ce.reach>a.reach&&(a.reach=ce.reach)}}}}}}function ile(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Dh(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function ale(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}K9.displayName="abnf";K9.aliases=[];function K9(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}Y9.displayName="actionscript";Y9.aliases=[];function Y9(e){e.register(Rr),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}X9.displayName="ada";X9.aliases=[];function X9(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}Z9.displayName="agda";Z9.aliases=[];function Z9(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}Q9.displayName="al";Q9.aliases=[];function Q9(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}J9.displayName="antlr4";J9.aliases=["g4"];function J9(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}ev.displayName="apacheconf";ev.aliases=[];function ev(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}tv.displayName="apex";tv.aliases=[];function tv(e){e.register(Lt),e.register(Sc),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(o){return RegExp(o.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}nv.displayName="apl";nv.aliases=[];function nv(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}rv.displayName="applescript";rv.aliases=[];function rv(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}iv.displayName="aql";iv.aliases=[];function iv(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}av.displayName="arff";av.aliases=[];function av(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}ov.displayName="armasm";ov.aliases=["arm-asm"];function ov(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}sv.displayName="arturo";sv.aliases=["art"];function sv(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}lv.displayName="asciidoc";lv.aliases=["adoc"];function lv(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var o={},s=0,u=a.length;s/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}cv.displayName="asm6502";cv.aliases=[];function cv(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}dv.displayName="asmatmel";dv.aliases=[];function dv(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}pv.displayName="autohotkey";pv.aliases=[];function pv(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}fv.displayName="autoit";fv.aliases=[];function fv(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}hv.displayName="avisynth";hv.aliases=["avs"];function hv(e){(function(t){function n(c,p){return c.replace(/<<(\d+)>>/g,function(f,m){return p[+m]})}function r(c,p,f){return RegExp(n(c,p),f||"")}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),o=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),s=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[a,o,s].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}gv.displayName="avro-idl";gv.aliases=["avdl"];function gv(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}mv.displayName="awk";mv.aliases=["gawk"];function mv(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}bv.displayName="batch";bv.aliases=[];function bv(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}yv.displayName="bbcode";yv.aliases=["shortcode"];function yv(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}Ev.displayName="bbj";Ev.aliases=[];function Ev(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}vv.displayName="bicep";vv.aliases=[];function vv(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}_v.displayName="birb";_v.aliases=[];function _v(e){e.register(Lt),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}Tv.displayName="bison";Tv.aliases=[];function Tv(e){e.register(Qa),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Sv.displayName="bnf";Sv.aliases=["rbnf"];function Sv(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}wv.displayName="bqn";wv.aliases=[];function wv(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}Av.displayName="brainfuck";Av.aliases=[];function Av(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}Cv.displayName="brightscript";Cv.aliases=[];function Cv(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}kv.displayName="bro";kv.aliases=[];function kv(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}xv.displayName="bsl";xv.aliases=["oscript"];function xv(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}Iv.displayName="cfscript";Iv.aliases=["cfc"];function Iv(e){e.register(Lt),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}Rv.displayName="chaiscript";Rv.aliases=[];function Rv(e){e.register(Lt),e.register(Ou),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Nv.displayName="cil";Nv.aliases=[];function Nv(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}Ov.displayName="cilkc";Ov.aliases=["cilk-c"];function Ov(e){e.register(Qa),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}Dv.displayName="cilkcpp";Dv.aliases=["cilk","cilk-cpp"];function Dv(e){e.register(Ou),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}Lv.displayName="clojure";Lv.aliases=[];function Lv(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}Mv.displayName="cmake";Mv.aliases=[];function Mv(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}Fv.displayName="cobol";Fv.aliases=[];function Fv(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}Pv.displayName="coffeescript";Pv.aliases=["coffee"];function Pv(e){e.register(Rr),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}Bv.displayName="concurnas";Bv.aliases=["conc"];function Bv(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}Uv.displayName="csp";Uv.aliases=[];function Uv(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}$v.displayName="cooklang";$v.aliases=[];function $v(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,o=/(?:h|hours|hrs|m|min|minutes)/.source,s={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+o+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}zv.displayName="coq";zv.aliases=[];function zv(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Hv.displayName="crystal";Hv.aliases=[];function Hv(e){e.register(Fu),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}jv.displayName="css-extras";jv.aliases=[];function jv(e){e.register(xl),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}Gv.displayName="csv";Gv.aliases=[];function Gv(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}Vv.displayName="cue";Vv.aliases=[];function Vv(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}Wv.displayName="cypher";Wv.aliases=[];function Wv(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}qv.displayName="d";qv.aliases=[];function qv(e){e.register(Lt),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}Kv.displayName="dart";Kv.aliases=[];function Kv(e){e.register(Lt),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}Yv.displayName="dataweave";Yv.aliases=[];function Yv(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}Xv.displayName="dax";Xv.aliases=[];function Xv(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}Zv.displayName="dhall";Zv.aliases=[];function Zv(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}Qv.displayName="django";Qv.aliases=["jinja2"];function Qv(e){e.register(Nr),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}Jv.displayName="dns-zone-file";Jv.aliases=["dns-zone"];function Jv(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}e6.displayName="docker";e6.aliases=["dockerfile"];function e6(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),o={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(c,p){return c=c.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(c,p)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}t6.displayName="dot";t6.aliases=["gv"];function t6(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,o){return RegExp(a.replace(//g,function(){return n}),o)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}n6.displayName="ebnf";n6.aliases=[];function n6(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}r6.displayName="editorconfig";r6.aliases=[];function r6(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}i6.displayName="eiffel";i6.aliases=[];function i6(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}a6.displayName="ejs";a6.aliases=["eta"];function a6(e){e.register(Rr),e.register(Nr),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}o6.displayName="elixir";o6.aliases=[];function o6(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}s6.displayName="elm";s6.aliases=[];function s6(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}l6.displayName="etlua";l6.aliases=[];function l6(e){e.register(Kp),e.register(Nr),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}u6.displayName="erb";u6.aliases=[];function u6(e){e.register(Nr),e.register(Fu),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}c6.displayName="erlang";c6.aliases=[];function c6(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}d6.displayName="excel-formula";d6.aliases=["xls","xlsx"];function d6(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}p6.displayName="fsharp";p6.aliases=[];function p6(e){e.register(Lt),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}f6.displayName="factor";f6.aliases=[];function f6(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(c){return new RegExp("(^|\\s)(?:"+c.map(a).join("|")+")(?=\\s|$)")},s={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(s).forEach(function(c){i[c].pattern=o(s[c])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=o(u),t.languages.factor=i})(e)}h6.displayName="false";h6.aliases=[];function h6(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}m6.displayName="flow";m6.aliases=[];function m6(e){e.register(Rr),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}b6.displayName="fortran";b6.aliases=[];function b6(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}y6.displayName="ftl";y6.aliases=[];function y6(e){e.register(Nr),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",o)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}E6.displayName="gml";E6.aliases=["gamemakerlanguage"];function E6(e){e.register(Lt),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}v6.displayName="gap";v6.aliases=[];function v6(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}_6.displayName="gcode";_6.aliases=[];function _6(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}T6.displayName="gdscript";T6.aliases=[];function T6(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}S6.displayName="gedcom";S6.aliases=[];function S6(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}w6.displayName="gettext";w6.aliases=["po"];function w6(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}A6.displayName="gherkin";A6.aliases=[];function A6(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}C6.displayName="git";C6.aliases=[];function C6(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}k6.displayName="glsl";k6.aliases=[];function k6(e){e.register(Qa),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}x6.displayName="gn";x6.aliases=["gni"];function x6(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}I6.displayName="linker-script";I6.aliases=["ld"];function I6(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}R6.displayName="go-module";R6.aliases=["go-mod"];function R6(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}N6.displayName="gradle";N6.aliases=[];function N6(e){e.register(Lt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}O6.displayName="graphql";O6.aliases=[];function O6(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function a(T){return r[i+T]}function o(T,E){E=E||0;for(var v=0;v0)){var g=s(/^\{$/,/^\}$/);if(g===-1)continue;for(var b=i;b=0&&u(y,"variable-input")}}}}})}D6.displayName="groovy";D6.aliases=[];function D6(e){e.register(Lt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}L6.displayName="textile";L6.aliases=[];function L6(e){e.register(gr),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,m){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),m||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),s=o.phrase.inside,u={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=s.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=s.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark}(e)}M6.displayName="haml";M6.aliases=[];function M6(e){e.register(Fu),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,o=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}Jp.displayName="haskell";Jp.aliases=["hs"];function Jp(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}P6.displayName="haxe";P6.aliases=[];function P6(e){e.register(Lt),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}B6.displayName="hcl";B6.aliases=[];function B6(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}U6.displayName="hlsl";U6.aliases=[];function U6(e){e.register(Qa),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}$6.displayName="hoon";$6.aliases=[];function $6(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}z6.displayName="hpkp";z6.aliases=[];function z6(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}H6.displayName="hsts";H6.aliases=[];function H6(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}j6.displayName="uri";j6.aliases=["url"];function j6(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}G6.displayName="http";G6.aliases=[];function G6(e){(function(t){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function o(p){var f=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var s;for(var u in i)if(i[u]){s=s||{};var c=a[u]?o(u):u;s[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}s&&t.languages.insertBefore("http","header",s)})(e)}V6.displayName="ichigojam";V6.aliases=[];function V6(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}W6.displayName="icon";W6.aliases=[];function W6(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}q6.displayName="icu-message-format";q6.aliases=[];function q6(e){(function(t){function n(u,c){return c<=0?/[]/.source:u.replace(//g,function(){return n(u,c-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},o=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(o),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":s,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":s,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},s.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}K6.displayName="idris";K6.aliases=["idr"];function K6(e){e.register(Jp),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}Y6.displayName="ignore";Y6.aliases=["gitignore","hgignore","npmignore"];function Y6(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}X6.displayName="inform7";X6.aliases=[];function X6(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}Z6.displayName="io";Z6.aliases=[];function Z6(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}Cc.displayName="javadoclike";Cc.aliases=[];function Cc(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,o){var s="doc-comment",u=t.languages[a];if(u){var c=u[s];if(!c){var p={};p[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=t.languages.insertBefore(a,"comment",p),c=u[s]}if(c instanceof RegExp&&(c=u[s]={pattern:c}),Array.isArray(c))for(var f=0,m=c.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}e8.displayName="javadoc";e8.aliases=[];function e8(e){e.register(Lu),e.register(Cc),e.register(gr),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}t8.displayName="javastacktrace";t8.aliases=[];function t8(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}n8.displayName="jexl";n8.aliases=[];function n8(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}r8.displayName="jolie";r8.aliases=[];function r8(e){e.register(Lt),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}i8.displayName="jq";i8.aliases=[];function i8(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}a8.displayName="js-templates";a8.aliases=[];function a8(e){e.register(Rr),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],o=i.pattern.source;function s(b,y){if(t.languages[b])return{pattern:RegExp("((?:"+y+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function u(b,y){return"___"+y.toUpperCase()+"_"+b+"___"}function c(b,y,T){var E={code:b,grammar:y,language:T};return t.hooks.run("before-tokenize",E),E.tokens=t.tokenize(E.code,E.grammar),t.hooks.run("after-tokenize",E),E.tokens}function p(b){var y={};y["interpolation-punctuation"]=a;var T=t.tokenize(b,y);if(T.length===3){var E=[1,1];E.push.apply(E,c(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,E)}return new t.Token("interpolation",T,i.alias,b)}function f(b,y,T){var E=t.tokenize(b,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),v=0,w={},A=E.map(function(B){if(typeof B=="string")return B;for(var q=B.content,P;b.indexOf(P=u(v++,T))!==-1;);return w[P]=q,P}).join(""),R=c(A,y,T),k=Object.keys(w);v=0;function N(B){for(var q=0;q=k.length)return;var P=B[q];if(typeof P=="string"||typeof P.content=="string"){var Q=k[v],$=typeof P=="string"?P:P.content,oe=$.indexOf(Q);if(oe!==-1){++v;var fe=$.substring(0,oe),ce=p(w[Q]),De=$.substring(oe+Q.length),H=[];if(fe&&H.push(fe),H.push(ce),De){var W=[De];N(W),H.push.apply(H,W)}typeof P=="string"?(B.splice.apply(B,[q,1].concat(H)),q+=H.length-1):P.content=H}}else{var se=P.content;Array.isArray(se)?N(se):N([se])}}}return N(R),new t.Token(T,R,"language-"+T,b)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(b){if(!(b.language in m))return;function y(T){for(var E=0,v=T.length;E\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}s8.displayName="n4js";s8.aliases=["n4jsd"];function s8(e){e.register(Rr),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}l8.displayName="js-extras";l8.aliases=[];function l8(e){e.register(Rr),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(u,c){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}p8.displayName="julia";p8.aliases=[];function p8(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}f8.displayName="keepalived";f8.aliases=[];function f8(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}h8.displayName="keyman";h8.aliases=[];function h8(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}g8.displayName="kumir";g8.aliases=["kum"];function g8(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}m8.displayName="kusto";m8.aliases=[];function m8(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}b8.displayName="latex";b8.aliases=["context","tex"];function b8(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}y8.displayName="latte";y8.aliases=[];function y8(e){e.register(Lt),e.register(Nr),e.register(Mu),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}ef.displayName="scheme";ef.aliases=[];function ef(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}E8.displayName="lilypond";E8.aliases=["ly"];function E8(e){e.register(ef),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}v8.displayName="liquid";v8.aliases=[];function v8(e){e.register(Nr),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var o=a[1];if(o==="raw"&&!r)return r=!0,!0;if(o==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}_8.displayName="lisp";_8.aliases=["elisp","emacs","emacs-lisp"];function _8(e){(function(t){function n(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function r(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,o="(\\()",s="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(o+c+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:f},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=g,p.defun.inside.arguments=t.util.clone(g),p.defun.inside.arguments.inside.sublist=g,t.languages.lisp=p,t.languages.elisp=p,t.languages.emacs=p,t.languages["emacs-lisp"]=p})(e)}T8.displayName="livescript";T8.aliases=[];function T8(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}S8.displayName="llvm";S8.aliases=[];function S8(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}w8.displayName="log";w8.aliases=[];function w8(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}A8.displayName="lolcode";A8.aliases=[];function A8(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}C8.displayName="magma";C8.aliases=[];function C8(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}A2.displayName="mata";A2.aliases=[];function A2(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}k8.displayName="matlab";k8.aliases=[];function k8(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}x8.displayName="maxscript";x8.aliases=[];function x8(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}I8.displayName="mel";I8.aliases=[];function I8(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}R8.displayName="mermaid";R8.aliases=[];function R8(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}N8.displayName="metafont";N8.aliases=[];function N8(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}O8.displayName="mizar";O8.aliases=[];function O8(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}D8.displayName="mongodb";D8.aliases=[];function D8(e){e.register(Rr),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}L8.displayName="monkey";L8.aliases=[];function L8(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}M8.displayName="moonscript";M8.aliases=["moon"];function M8(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}F8.displayName="n1ql";F8.aliases=[];function F8(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}P8.displayName="nand2tetris-hdl";P8.aliases=[];function P8(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}B8.displayName="naniscript";B8.aliases=["nani"];function B8(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(o){var s=o.tokens;s.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=a(u);i(c)||(u.type="bad-line",u.content=c)}})});function i(o){for(var s="[]{}",u=[],c=0;c=&|$!]/}}$8.displayName="neon";$8.aliases=[];function $8(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}z8.displayName="nevod";z8.aliases=[];function z8(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}H8.displayName="nginx";H8.aliases=[];function H8(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}j8.displayName="nim";j8.aliases=[];function j8(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}G8.displayName="nix";G8.aliases=[];function G8(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}V8.displayName="nsis";V8.aliases=[];function V8(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}W8.displayName="ocaml";W8.aliases=[];function W8(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}q8.displayName="odin";q8.aliases=[];function q8(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}K8.displayName="opencl";K8.aliases=[];function K8(e){e.register(Qa),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}Y8.displayName="openqasm";Y8.aliases=["qasm"];function Y8(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}X8.displayName="oz";X8.aliases=[];function X8(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}Z8.displayName="parigp";Z8.aliases=[];function Z8(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}Q8.displayName="parser";Q8.aliases=[];function Q8(e){e.register(gr),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}J8.displayName="pascal";J8.aliases=["objectpascal"];function J8(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}e_.displayName="pascaligo";e_.aliases=[];function e_(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,s){return o[s]=i[s],o},{});i["class-name"].forEach(function(o){o.inside=a})})(e)}t_.displayName="psl";t_.aliases=[];function t_(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}n_.displayName="pcaxis";n_.aliases=["px"];function n_(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}r_.displayName="peoplecode";r_.aliases=["pcode"];function r_(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}i_.displayName="phpdoc";i_.aliases=[];function i_(e){e.register(Cc),e.register(Mu),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}a_.displayName="php-extras";a_.aliases=[];function a_(e){e.register(Mu),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}o_.displayName="plant-uml";o_.aliases=["plantuml"];function o_(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",o=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,u=/[[?]?[ox]?/.source,c=/[ox]?[\]?]?/.source,p=u+"(?:"+a+s+"|"+o+a+"(?:"+s+")?)"+c;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+p+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}s_.displayName="plsql";s_.aliases=[];function s_(e){e.register(Sc),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}l_.displayName="powerquery";l_.aliases=["mscript","pq"];function l_(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}u_.displayName="powershell";u_.aliases=[];function u_(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}c_.displayName="processing";c_.aliases=[];function c_(e){e.register(Lt),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}d_.displayName="prolog";d_.aliases=[];function d_(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}p_.displayName="promql";p_.aliases=[];function p_(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}f_.displayName="properties";f_.aliases=[];function f_(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}h_.displayName="protobuf";h_.aliases=[];function h_(e){e.register(Lt),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}g_.displayName="stylus";g_.aliases=[];function g_(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}m_.displayName="twig";m_.aliases=[];function m_(e){e.register(Nr),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}b_.displayName="pug";b_.aliases=[];function b_(e){e.register(Rr),e.register(gr),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,o=r.length;a",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}y_.displayName="puppet";y_.aliases=[];function y_(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}E_.displayName="pure";E_.aliases=[];function E_(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var o={};o["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},o["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",o)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}v_.displayName="purebasic";v_.aliases=["pbfasm"];function v_(e){e.register(Lt),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}__.displayName="purescript";__.aliases=["purs"];function __(e){e.register(Jp),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}T_.displayName="qsharp";T_.aliases=["qs"];function T_(e){e.register(Lt),function(t){function n(g,b){return g.replace(/<<(\d+)>>/g,function(y,T){return"(?:"+b[+T]+")"})}function r(g,b,y){return RegExp(n(g,b),y||"")}function i(g,b){for(var y=0;y>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function o(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(o(a.type+" "+a.other)),u=/\b[A-Za-z_]\w*\b/.source,c=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:s,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:p},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:p}],keyword:s,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}S_.displayName="q";S_.aliases=[];function S_(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}w_.displayName="qml";w_.aliases=[];function w_(e){e.register(Rr),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}A_.displayName="qore";A_.aliases=[];function A_(e){e.register(Lt),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}C_.displayName="racket";C_.aliases=["rkt"];function C_(e){e.register(ef),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}k_.displayName="cshtml";k_.aliases=["razor"];function k_(e){e.register(Du),e.register(gr),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(v,w){for(var A=0;A/g,function(){return"(?:"+v+")"});return v.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),o=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),u=i(/<(?:[^<>'"@/]||)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+u+")?"+a+"|"+o+")*"+/(?![?!\.(\[]|<(?!\/))/.source,p=/@(?![\w()])/.source+"|"+c,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+p+`)[^"'@]*)+["'])`,m=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+m+/\s*\/?>/.source,b=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function o(c,p){return c=c.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(c,p)}a=o(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(s).join(""):""},u=function(c){for(var p=[],f=0;f0&&p[p.length-1].tagName===s(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:s(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:g=!0),(g||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var b=s(m);f0&&(typeof c[f-1]=="string"||c[f-1].type==="plain-text")&&(b=s(c[f-1])+b,c.splice(f-1,1),f--),c[f]=new t.Token("plain-text",b,null,b)}m.content&&typeof m.content!="string"&&u(m.content)}};t.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})}(e)}x_.displayName="tsx";x_.aliases=[];function x_(e){e.register(C2),e.register(wc),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}I_.displayName="reason";I_.aliases=[];function I_(e){e.register(Lt),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}R_.displayName="rego";R_.aliases=[];function R_(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}N_.displayName="renpy";N_.aliases=["rpy"];function N_(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}O_.displayName="rescript";O_.aliases=["res"];function O_(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}D_.displayName="rest";D_.aliases=[];function D_(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}L_.displayName="rip";L_.aliases=[];function L_(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}M_.displayName="roboconf";M_.aliases=[];function M_(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}F_.displayName="robotframework";F_.aliases=["robot"];function F_(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,c){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in c)p[f]=c[f];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=r,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:p}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":o,documentation:a,property:s}),keywords:i("Keywords",{"keyword-name":o,documentation:a,property:s}),tasks:i("Tasks",{"task-name":o,documentation:a,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}P_.displayName="sas";P_.aliases=[];function P_(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},y={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},E=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,v={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return E}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return E}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:f,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:r,"numeric-constant":i,punctuation:p,string:c}},w={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":y,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:w,"submit-statement":T,"global-statements":y,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:w,"submit-statement":T,"global-statements":y,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":v,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:s,keyword:w,function:f,format:g,altformat:b,"global-statements":y,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:m},"macro-keyword":o,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":v,comment:u,function:f,format:g,altformat:b,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:c,step:s,keyword:w,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(e)}B_.displayName="shell-session";B_.aliases=["sh-session","shellsession"];function B_(e){e.register(qp),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}U_.displayName="smali";U_.aliases=[];function U_(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}$_.displayName="smalltalk";$_.aliases=[];function $_(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}z_.displayName="smarty";z_.aliases=[];function z_(e){e.register(Nr),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",o="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(u){return u===o&&(s=!1),s?!1:(u===a&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}H_.displayName="sml";H_.aliases=["smlnj"];function H_(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}j_.displayName="solidity";j_.aliases=["sol"];function j_(e){e.register(Lt),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}G_.displayName="solution-file";G_.aliases=["sln"];function G_(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}V_.displayName="soy";V_.aliases=[];function V_(e){e.register(Nr),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",s="{/literal}",u=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(c){return c===s&&(u=!1),u?!1:(c===o&&(u=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}k2.displayName="turtle";k2.aliases=["trig"];function k2(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}W_.displayName="sparql";W_.aliases=["rq"];function W_(e){e.register(k2),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}q_.displayName="splunk-spl";q_.aliases=[];function q_(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}K_.displayName="sqf";K_.aliases=[];function K_(e){e.register(Lt),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}Y_.displayName="squirrel";Y_.aliases=[];function Y_(e){e.register(Lt),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}X_.displayName="stan";X_.aliases=[];function X_(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}Z_.displayName="stata";Z_.aliases=[];function Z_(e){e.register(Lu),e.register(A2),e.register(Xp),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}Q_.displayName="iecst";Q_.aliases=[];function Q_(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}J_.displayName="supercollider";J_.aliases=["sclang"];function J_(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}e7.displayName="systemd";e7.aliases=[];function e7(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r ]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}tf.displayName="t4-templating";tf.aliases=[];function tf(e){(function(t){function n(i,a,o){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:o}}}}function r(i){var a=t.languages[i],o="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,o),"class-feature":n("\\+",a,o),standard:n("",a,o)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}t7.displayName="t4-cs";t7.aliases=["t4"];function t7(e){e.register(Du),e.register(tf),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}n7.displayName="t4-vb";n7.aliases=[];function n7(e){e.register(tf),e.register(Qp),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}r7.displayName="tap";r7.aliases=[];function r7(e){e.register(Yp),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}i7.displayName="tcl";i7.aliases=[];function i7(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}a7.displayName="tt2";a7.aliases=[];function a7(e){e.register(Lt),e.register(Nr),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}o7.displayName="toml";o7.aliases=[];function o7(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}s7.displayName="tremor";s7.aliases=["trickle","troy"];function s7(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}l7.displayName="typoscript";l7.aliases=["tsconfig"];function l7(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}u7.displayName="unrealscript";u7.aliases=["uc","uscript"];function u7(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}c7.displayName="uorazor";c7.aliases=[];function c7(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}d7.displayName="v";d7.aliases=[];function d7(e){e.register(Lt),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}p7.displayName="vala";p7.aliases=[];function p7(e){e.register(Lt),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}f7.displayName="velocity";f7.aliases=[];function f7(e){e.register(gr),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}h7.displayName="verilog";h7.aliases=[];function h7(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}g7.displayName="vhdl";g7.aliases=[];function g7(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}m7.displayName="vim";m7.aliases=[];function m7(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}b7.displayName="visual-basic";b7.aliases=["vb","vba"];function b7(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}y7.displayName="warpscript";y7.aliases=[];function y7(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}E7.displayName="wasm";E7.aliases=[];function E7(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}v7.displayName="web-idl";v7.aliases=["webidl"];function v7(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}_7.displayName="wgsl";_7.aliases=[];function _7(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}T7.displayName="wiki";T7.aliases=[];function T7(e){e.register(gr),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}S7.displayName="wolfram";S7.aliases=["mathematica","nb","wl"];function S7(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}w7.displayName="wren";w7.aliases=[];function w7(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}A7.displayName="xeora";A7.aliases=["xeoracube"];function A7(e){e.register(gr),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}C7.displayName="xml-doc";C7.aliases=[];function C7(e){e.register(gr),function(t){function n(o,s){t.languages[o]&&t.languages.insertBefore(o,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}k7.displayName="xojo";k7.aliases=[];function k7(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}x7.displayName="xquery";x7.aliases=[];function x7(e){e.register(gr),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],o=0;o0&&a[a.length-1].tagName===n(s.content[0].content[1])&&a.pop():s.content[s.content.length-1].content==="/>"||a.push({tagName:n(s.content[0].content[1]),openedBraces:0}):a.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[o+1]||i[o+1].type!=="punctuation"||i[o+1].content!=="{")&&(!i[o-1]||i[o-1].type!=="plain-text"||i[o-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?a[a.length-1].openedBraces--:s.type!=="comment"&&(u=!0)),(u||typeof s=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var c=n(s);o0&&(typeof i[o-1]=="string"||i[o-1].type==="plain-text")&&(c=n(i[o-1])+c,i.splice(o-1,1),o--),/^\s+$/.test(c)?i[o]=c:i[o]=new t.Token("plain-text",c,null,c)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}I7.displayName="yang";I7.aliases=[];function I7(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}R7.displayName="zig";R7.aliases=[];function R7(e){(function(t){function n(c){return function(){return c}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),u="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+s+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=t.languages.zig)})})(e)}O.register(gr);O.register(xl);O.register(Lt);O.register(f2);O.register(Rr);O.register(q9);O.register(K9);O.register(Y9);O.register(X9);O.register(Z9);O.register(Q9);O.register(J9);O.register(ev);O.register(Sc);O.register(tv);O.register(nv);O.register(rv);O.register(iv);O.register(Qa);O.register(Ou);O.register(u2);O.register(av);O.register(ov);O.register(qp);O.register(Yp);O.register(b2);O.register(sv);O.register(lv);O.register(Du);O.register(uv);O.register(cv);O.register(dv);O.register(pv);O.register(fv);O.register(hv);O.register(gv);O.register(mv);O.register(Zp);O.register(bv);O.register(yv);O.register(Ev);O.register(vv);O.register(_v);O.register(Tv);O.register(Sv);O.register(wv);O.register(Av);O.register(Cv);O.register(kv);O.register(xv);O.register(Iv);O.register(Rv);O.register(Nv);O.register(Ov);O.register(Dv);O.register(Lv);O.register(Mv);O.register(Fv);O.register(Pv);O.register(Bv);O.register(Uv);O.register($v);O.register(zv);O.register(Fu);O.register(Hv);O.register(jv);O.register(Gv);O.register(Vv);O.register(Wv);O.register(qv);O.register(Kv);O.register(Yv);O.register(Xv);O.register(Zv);O.register(c2);O.register(Nr);O.register(Qv);O.register(Jv);O.register(e6);O.register(t6);O.register(n6);O.register(r6);O.register(i6);O.register(a6);O.register(o6);O.register(s6);O.register(Kp);O.register(l6);O.register(u6);O.register(c6);O.register(d6);O.register(p6);O.register(f6);O.register(h6);O.register(g6);O.register(m6);O.register(b6);O.register(y6);O.register(E6);O.register(v6);O.register(_6);O.register(T6);O.register(S6);O.register(w6);O.register(A6);O.register(C6);O.register(k6);O.register(x6);O.register(I6);O.register(d2);O.register(R6);O.register(N6);O.register(O6);O.register(D6);O.register(g2);O.register(S2);O.register(L6);O.register(M6);O.register(F6);O.register(Jp);O.register(P6);O.register(B6);O.register(U6);O.register($6);O.register(z6);O.register(H6);O.register(Tc);O.register(j6);O.register(G6);O.register(V6);O.register(W6);O.register(q6);O.register(K6);O.register(Y6);O.register(X6);O.register(p2);O.register(Z6);O.register(Q6);O.register(Lu);O.register(Mu);O.register(Cc);O.register(J6);O.register(e8);O.register(t8);O.register(n8);O.register(r8);O.register(i8);O.register(a8);O.register(wc);O.register(o8);O.register(s8);O.register(l8);O.register(u8);O.register(c8);O.register(d8);O.register(p8);O.register(f8);O.register(h8);O.register(h2);O.register(g8);O.register(m8);O.register(b8);O.register(y8);O.register(ef);O.register(E8);O.register(v8);O.register(_8);O.register(T8);O.register(S8);O.register(w8);O.register(A8);O.register(C8);O.register(m2);O.register(A2);O.register(k8);O.register(x8);O.register(I8);O.register(R8);O.register(N8);O.register(O8);O.register(D8);O.register(L8);O.register(M8);O.register(F8);O.register(P8);O.register(B8);O.register(U8);O.register($8);O.register(z8);O.register(H8);O.register(j8);O.register(G8);O.register(V8);O.register(y2);O.register(W8);O.register(q8);O.register(K8);O.register(Y8);O.register(X8);O.register(Z8);O.register(Q8);O.register(J8);O.register(e_);O.register(t_);O.register(n_);O.register(r_);O.register(E2);O.register(i_);O.register(a_);O.register(o_);O.register(s_);O.register(l_);O.register(u_);O.register(c_);O.register(d_);O.register(p_);O.register(f_);O.register(h_);O.register(g_);O.register(m_);O.register(b_);O.register(y_);O.register(E_);O.register(v_);O.register(__);O.register(Xp);O.register(T_);O.register(S_);O.register(w_);O.register(A_);O.register(v2);O.register(C_);O.register(k_);O.register(C2);O.register(x_);O.register(I_);O.register(R_);O.register(N_);O.register(O_);O.register(D_);O.register(L_);O.register(M_);O.register(F_);O.register(_2);O.register(P_);O.register(T2);O.register(B_);O.register(U_);O.register($_);O.register(z_);O.register(H_);O.register(j_);O.register(G_);O.register(V_);O.register(k2);O.register(W_);O.register(q_);O.register(K_);O.register(Y_);O.register(X_);O.register(Z_);O.register(Q_);O.register(J_);O.register(w2);O.register(e7);O.register(tf);O.register(t7);O.register(Qp);O.register(n7);O.register(r7);O.register(i7);O.register(a7);O.register(o7);O.register(s7);O.register(l7);O.register(u7);O.register(c7);O.register(d7);O.register(p7);O.register(f7);O.register(h7);O.register(g7);O.register(m7);O.register(b7);O.register(y7);O.register(E7);O.register(v7);O.register(_7);O.register(T7);O.register(S7);O.register(w7);O.register(A7);O.register(C7);O.register(k7);O.register(x7);O.register(I7);O.register(R7);function hy(){hy=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,o){var s=new RegExp(i,a);return t.set(s,o||t.get(i)),Bg(s,n.prototype)}function r(i,a){var o=t.get(a);return Object.keys(o).reduce(function(s,u){return s[u]=i[o[u]],s},Object.create(null))}return hle(n,RegExp),n.prototype.exec=function(i){var a=e.exec.call(this,i);return a&&(a.groups=r(a,this)),a},n.prototype[Symbol.replace]=function(i,a){if(typeof a=="string"){var o=t.get(this);return e[Symbol.replace].call(this,i,a.replace(/\$<([^>]+)>/g,function(u,c){return"$"+o[c]}))}if(typeof a=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(r(u,s)),a.apply(this,u)})}return e[Symbol.replace].call(this,i,a)},hy.apply(this,arguments)}function hle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bg(e,t)}function Bg(e,t){return Bg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Bg(e,t)}function uI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. @@ -278,7 +278,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,position:{start:{line:p+fe,column:1},end:{line:p+fe,column:1}}})}return p+=q,k}if(Object.prototype.hasOwnProperty.call(N,"children")){var De=p;return N.children=A(N.children),k.push(N),N.position={start:{line:De,column:1},end:{line:p,column:1}},k}return k.push(N),k},[])})(c.children),c.position=c.children.length>0?{start:{line:c.children[0].position.start.line,column:0},end:{line:c.children[c.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var g,b=function(A){var R=/{([\d,-]+)}/,k=A.split(",").map(function(q){return q.trim()}).join();if(R.test(k)){var N=R.exec(k)[1],B=zse(N);return function(q){return B.includes(q+1)}}return function(){return!1}}(u),y=function(A){var R=hy(/showLineNumbers=([0-9]+)/i,{lines:1});if(R.test(A)){var k=R.exec(A);return Number(k.groups.lines)}return 1}(u),T=function(A){for(var R=new Array(A),k=0;k=R+1});k.children=N.children,!u.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||E.some(function(B){return u.toLowerCase().includes(B)})||(k.properties.line=[(R+y).toString()],k.properties.className.push("line-number")),b(R)&&k.properties.className.push("highlight-line"),(f==="diff"||f!=null&&f.includes("diff-"))&&R1(k).substring(0,1)==="-"?k.properties.className.push("deleted"):(f==="diff"||f!=null&&f.includes("diff-"))&&R1(k).substring(0,1)==="+"&&k.properties.className.push("inserted")},w=o4(T.entries());!(g=w()).done;)v();T.length>0&&R1(T[T.length-1]).trim()===""&&T.pop(),r.children=T}}}},mle=gle(O);const bF="֑-߿יִ-﷽ﹰ-ﻼ",yF="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",ble=new RegExp("^[^"+yF+"]*["+bF+"]"),yle=new RegExp("^[^"+bF+"]*["+yF+"]");function Ele(e){const t=String(e||"");return ble.test(t)?"rtl":yle.test(t)?"ltr":"neutral"}function vle(e,t){const n=e.schema,r=e.language,i=e.direction,a=e.editableOrEditingHost;let o;if(t.type==="element"&&t.properties){const c=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",f=cI(t);c!=null&&(e.language=String(c)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Cl),f==="rtl"?o=f:f==="ltr"||f!=="auto"&&t.tagName==="html"||f!=="auto"&&t.tagName==="input"&&p==="tel"?o="ltr":(f==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?o=s4(R1(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?o=t.properties.value?s4(t.properties.value):"ltr":Hi(t,u)),o&&(e.direction=o)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return s;function s(){e.schema=n,e.language=r,e.direction=i,e.editableOrEditingHost=a}function u(c){if(c.type==="text")return o=s4(c.value),o?iy:void 0;if(c!==t&&c.type==="element"&&(c.tagName==="bdi"||c.tagName==="script"||c.tagName==="style"||c.tagName==="textare"||cI(c)))return $d}}function s4(e){const t=Ele(e);return t==="neutral"?void 0:t}function cI(e){const t=e.type==="element"&&e.properties&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}const _le=l2("operator",{unknown:Rle,invalid:Sle,handlers:{"=":wle,"~=":Ale,"|=":Cle,"^=":kle,"$=":xle,"*=":Ile}});function Tle(e,t,n){const r=e.attrs;let i=-1;for(;++i=pI&&e.charCodeAt(t)<=Ple;)c=c*10+(e.charCodeAt(t)-pI),t++;return t===u?null:c}function s(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?fI.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function hI(e){return $le(Ble(e))}const zle=hI.default||hI,Hle=l2("name",{unknown:fue,invalid:pue,handlers:{any:gy,"any-link":jle,blank:Gle,checked:Vle,dir:Wle,disabled:vF,empty:qle,enabled:Kle,"first-child":Yle,"first-of-type":Xle,has:Zle,lang:Qle,"last-child":Jle,"last-of-type":eue,matches:gy,not:tue,"nth-child":nue,"nth-last-child":rue,"nth-of-type":aue,"nth-last-of-type":iue,"only-child":oue,"only-of-type":sue,optional:lue,"read-only":uue,"read-write":_F,required:TF,root:cue,scope:due}});EF.needsIndex=["any","first-child","first-of-type","last-child","last-of-type","matches","not","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];function EF(e,t,n,r,i){const a=e.pseudos;let o=-1;for(;++o0}function Qle(e,t,n,r,i){return i.language!==""&&i.language!==void 0&&Mle(i.language,Sp(e.value)).length>0}function Jle(e,t,n,r,i){return Io(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function eue(e,t,n,r,i){return Io(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function gy(e,t,n,r,i){const a={...i,found:!1,shallow:!1,one:!0,scopeElements:[t],results:[],rootQuery:N7(e.value)};return O7(a,t),a.results[0]===t}function tue(e,t,n,r,i){return!gy(e,t,n,r,i)}function nue(e,t,n,r,i){const a=x2(e);return Io(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function rue(e,t,n,r,i){const a=x2(e);return Io(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function iue(e,t,n,r,i){const a=x2(e);return Io(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function aue(e,t,n,r,i){const a=x2(e);return Io(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function oue(e,t,n,r,i){return Io(i,e),i.elementCount===1}function sue(e,t,n,r,i){return Io(i,e),i.typeCount===1}function lue(e,t){return!TF(e,t)}function uue(e,t,n,r,i){return!_F(e,t,n,r,i)}function _F(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Vr(t,"readOnly")&&!Vr(t,"disabled"):!!i.editableOrEditingHost}function TF(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Vr(t,"required")}function cue(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function due(e,t,n,r,i){return i.scopeElements.includes(t)}function pue(){throw new Error("Invalid pseudo-selector")}function fue(e){throw e.name?new Error("Unknown pseudo-selector `"+e.name+"`"):new Error("Unexpected pseudo-element or empty pseudo-class")}function SF(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";l4(a,p,c)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.rule.nestingOperator===null?l4(a,"descendant",s):s.rule.nestingOperator==="~"&&l4(a,"generalSibling",s)}return a}function Lh(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:gue}function l4(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function gI(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}var AF={},D7={},L7={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o==="-"||o==="_"}e.isIdentStart=t;function n(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o>="0"&&o<="9"||o==="-"||o==="_"}e.isIdent=n;function r(o){return o>="a"&&o<="f"||o>="A"&&o<="F"||o>="0"&&o<="9"}e.isHex=r;function i(o){for(var s=o.length,u="",c=0;c="A"&&p<="Z"||p>="a"&&p<="z"||c!==0&&p>="0"&&p<="9")u+=p;else{var f=p.charCodeAt(0);if((f&63488)===55296){var m=o.charCodeAt(c++);if((f&64512)!==55296||(m&64512)!==56320)throw Error("UCS-2(decode): illegal sequence");f=((f&1023)<<10)+(m&1023)+65536}u+="\\"+f.toString(16)+" "}c++}return u}e.escapeIdentifier=i;function a(o){for(var s=o.length,u="",c=0,p;c":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},e.strReplacementsRev={"\n":"\\n","\r":"\\r"," ":"\\t","\f":"\\f","\v":"\\v"},e.singleQuoteEscapeChars={n:` `,r:"\r",t:" ",f:"\f","\\":"\\","'":"'"},e.doubleQuotesEscapeChars={n:` `,r:"\r",t:" ",f:"\f","\\":"\\",'"':'"'}})(L7);Object.defineProperty(D7,"__esModule",{value:!0});var Oa=L7;function yue(e,t,n,r,i,a){var o=e.length,s="";function u(y,T){var E="";for(t++,s=e.charAt(t);t=o)throw Error("Expected symbol but end of file reached.");if(s=e.charAt(t),Oa.identSpecialChars[s])y+=s;else if(Oa.isHex(s)){var T=s;for(t++,s=e.charAt(t);Oa.isHex(s);)T+=s,t++,s=e.charAt(t);s===" "&&(t++,s=e.charAt(t)),y+=String.fromCharCode(parseInt(T,16));continue}else y+=s}else return y;t++,s=e.charAt(t)}return y}function p(){s=e.charAt(t);for(var y=!1;s===" "||s===" "||s===` -`||s==="\r"||s==="\f";)y=!0,t++,s=e.charAt(t);return y}function f(){var y=m();if(t=o||s===","||s===")"));)if(i[s]){var v=s;if(t++,p(),T=b(),!T)throw Error('Rule expected after "'+v+'".');T.nestingOperator=v}else T=b(),T&&(T.nestingOperator=null);return y}function b(){for(var y=null;t=o)throw Error('Expected "=" but end of file reached.');if(s!=="=")throw Error('Expected "=" but "'+s+'" found.');T.operator=E+"=",t++,p();var v="";if(T.valueType="string",s==='"')v=u('"',Oa.doubleQuotesEscapeChars);else if(s==="'")v=u("'",Oa.singleQuoteEscapeChars);else if(a&&s==="$")t++,v=c(),T.valueType="substitute";else{for(;t=o)throw Error('Expected "]" but end of file reached.');if(s!=="]")throw Error('Expected "]" but "'+s+'" found.');t++,T.value=v}y=y||{},(y.attrs=y.attrs||[]).push(T)}else if(s===":"){t++;var w=c(),A={name:w};if(s==="("){t++;var R="";if(p(),n[w]==="selector")A.valueType="selector",R=m();else{if(A.valueType=n[w]||"string",s==='"')R=u('"',Oa.doubleQuotesEscapeChars);else if(s==="'")R=u("'",Oa.singleQuoteEscapeChars);else if(a&&s==="$")t++,R=c(),A.valueType="substitute";else{for(;t=o)throw Error('Expected ")" but end of file reached.');if(s!==")")throw Error('Expected ")" but "'+s+'" found.');t++,A.value=R}y=y||{},(y.pseudos=y.pseudos||[]).push(A)}else break;return y}return f()}D7.parseCssSelector=yue;var M7={};Object.defineProperty(M7,"__esModule",{value:!0});var Ri=L7;function Mh(e){var t="";switch(e.type){case"ruleSet":for(var n=e.rule,r=[];n;)n.nestingOperator&&r.push(n.nestingOperator),r.push(Mh(n)),n=n.rule;t=r.join(" ");break;case"selectors":t=e.selectors.map(Mh).join(", ");break;case"rule":e.tagName&&(e.tagName==="*"?t="*":t=Ri.escapeIdentifier(e.tagName)),e.id&&(t+="#"+Ri.escapeIdentifier(e.id)),e.classNames&&(t+=e.classNames.map(function(i){return"."+Ri.escapeIdentifier(i)}).join("")),e.attrs&&(t+=e.attrs.map(function(i){return"operator"in i?i.valueType==="substitute"?"["+Ri.escapeIdentifier(i.name)+i.operator+"$"+i.value+"]":"["+Ri.escapeIdentifier(i.name)+i.operator+Ri.escapeStr(i.value)+"]":"["+Ri.escapeIdentifier(i.name)+"]"}).join("")),e.pseudos&&(t+=e.pseudos.map(function(i){return i.valueType?i.valueType==="selector"?":"+Ri.escapeIdentifier(i.name)+"("+Mh(i.value)+")":i.valueType==="substitute"?":"+Ri.escapeIdentifier(i.name)+"($"+i.value+")":i.valueType==="numeric"?":"+Ri.escapeIdentifier(i.name)+"("+i.value+")":":"+Ri.escapeIdentifier(i.name)+"("+Ri.escapeIdentifier(i.value)+")":":"+Ri.escapeIdentifier(i.name)}).join(""));break;default:throw Error('Unknown entity type: "'+e.type+'".')}return t}M7.renderEntity=Mh;Object.defineProperty(AF,"__esModule",{value:!0});var Eue=D7,vue=M7,_ue=function(){function e(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return e.prototype.registerSelectorPseudos=function(){for(var t=[],n=0;n","+","~");function Sue(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return I2.parse(e)}function wue(e,t,n){const r=Aue(e,t,n);return O7(r,t||void 0),r.results}function Aue(e,t,n){return{rootQuery:N7(Sue(e)),results:[],scopeElements:t?t.type==="root"?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:n==="svg"?Cl:Iu,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}const CF=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=CF(n.children))}),t),Cue=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=wue(t,r);i&&i.length>0&&Hi(r,i,(a,o,s)=>{n(a,o,s)});return}Hi(r,(i,a,o)=>{n(i,a,o)})}}},kue=Cue;var xue={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Iue(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}function Rue(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function kF(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?kF(t.parentElement):null}function Nue(e){var t=n=>{var r=kF(n.target);r&&(r.classList.add("active"),Rue(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};C.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var Oue=function(t){return n=>{Hi(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=nn({},r.properties,{"data-meta":String(r.data.meta)}))})}},Due=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"];const Lue=ut.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:o=!1,skipHtml:s=!0,onScroll:u,onMouseOver:c,pluginsFilter:p,rehypeRewrite:f,wrapperElement:m={},warpperElement:g={}}=e,b=C1(e,Due),y=ut.useRef(null);C.useImperativeHandle(t,()=>nn({},e,{mdp:y}),[y,e]);var T=(n||"")+" "+(r||"");Nue(y);var E=(k,N,B)=>{if(k.type==="element"&&B&&B.type==="root"&&/h(1|2|3|4|5|6)/.test(k.tagName)){var q=k.children&&k.children[0];q&&q.properties&&q.properties.ariaHidden==="true"&&(q.properties=nn({class:"anchor"},q.properties),q.children=[xue])}if(k.type==="element"&&k.tagName==="pre"&&!o){var P=CF(k.children);k.children.push(Iue(P))}f&&f(k,N,B)},v=[Oue,[mle,{ignoreMissing:!0}],kse,Nse,Pse,[kue,{rewrite:E}],[Mse,{properties:"attr"}],...b.rehypePlugins||[]],w={allowElement:(k,N,B)=>b.allowElement?b.allowElement(k,N,B):/^[A-Za-z0-9]+$/.test(k.tagName)};s&&v.push(Ese);var A=[...b.remarkPlugins||[],Ure],R=nn({},g,m);return I.jsx("div",nn({ref:y,onScroll:u,onMouseOver:c},R,{className:T,style:a,children:I.jsx(N9,nn({},w,b,{skipHtml:s,rehypePlugins:p?p("rehype",v):v,remarkPlugins:p?p("remark",A):A,children:i||""}))}))}),Mue=Ge(Lue)` +`||s==="\r"||s==="\f";)y=!0,t++,s=e.charAt(t);return y}function f(){var y=m();if(t=o||s===","||s===")"));)if(i[s]){var v=s;if(t++,p(),T=b(),!T)throw Error('Rule expected after "'+v+'".');T.nestingOperator=v}else T=b(),T&&(T.nestingOperator=null);return y}function b(){for(var y=null;t=o)throw Error('Expected "=" but end of file reached.');if(s!=="=")throw Error('Expected "=" but "'+s+'" found.');T.operator=E+"=",t++,p();var v="";if(T.valueType="string",s==='"')v=u('"',Oa.doubleQuotesEscapeChars);else if(s==="'")v=u("'",Oa.singleQuoteEscapeChars);else if(a&&s==="$")t++,v=c(),T.valueType="substitute";else{for(;t=o)throw Error('Expected "]" but end of file reached.');if(s!=="]")throw Error('Expected "]" but "'+s+'" found.');t++,T.value=v}y=y||{},(y.attrs=y.attrs||[]).push(T)}else if(s===":"){t++;var w=c(),A={name:w};if(s==="("){t++;var R="";if(p(),n[w]==="selector")A.valueType="selector",R=m();else{if(A.valueType=n[w]||"string",s==='"')R=u('"',Oa.doubleQuotesEscapeChars);else if(s==="'")R=u("'",Oa.singleQuoteEscapeChars);else if(a&&s==="$")t++,R=c(),A.valueType="substitute";else{for(;t=o)throw Error('Expected ")" but end of file reached.');if(s!==")")throw Error('Expected ")" but "'+s+'" found.');t++,A.value=R}y=y||{},(y.pseudos=y.pseudos||[]).push(A)}else break;return y}return f()}D7.parseCssSelector=yue;var M7={};Object.defineProperty(M7,"__esModule",{value:!0});var Ri=L7;function Mh(e){var t="";switch(e.type){case"ruleSet":for(var n=e.rule,r=[];n;)n.nestingOperator&&r.push(n.nestingOperator),r.push(Mh(n)),n=n.rule;t=r.join(" ");break;case"selectors":t=e.selectors.map(Mh).join(", ");break;case"rule":e.tagName&&(e.tagName==="*"?t="*":t=Ri.escapeIdentifier(e.tagName)),e.id&&(t+="#"+Ri.escapeIdentifier(e.id)),e.classNames&&(t+=e.classNames.map(function(i){return"."+Ri.escapeIdentifier(i)}).join("")),e.attrs&&(t+=e.attrs.map(function(i){return"operator"in i?i.valueType==="substitute"?"["+Ri.escapeIdentifier(i.name)+i.operator+"$"+i.value+"]":"["+Ri.escapeIdentifier(i.name)+i.operator+Ri.escapeStr(i.value)+"]":"["+Ri.escapeIdentifier(i.name)+"]"}).join("")),e.pseudos&&(t+=e.pseudos.map(function(i){return i.valueType?i.valueType==="selector"?":"+Ri.escapeIdentifier(i.name)+"("+Mh(i.value)+")":i.valueType==="substitute"?":"+Ri.escapeIdentifier(i.name)+"($"+i.value+")":i.valueType==="numeric"?":"+Ri.escapeIdentifier(i.name)+"("+i.value+")":":"+Ri.escapeIdentifier(i.name)+"("+Ri.escapeIdentifier(i.value)+")":":"+Ri.escapeIdentifier(i.name)}).join(""));break;default:throw Error('Unknown entity type: "'+e.type+'".')}return t}M7.renderEntity=Mh;Object.defineProperty(AF,"__esModule",{value:!0});var Eue=D7,vue=M7,_ue=function(){function e(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return e.prototype.registerSelectorPseudos=function(){for(var t=[],n=0;n","+","~");function Sue(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return I2.parse(e)}function wue(e,t,n){const r=Aue(e,t,n);return O7(r,t||void 0),r.results}function Aue(e,t,n){return{rootQuery:N7(Sue(e)),results:[],scopeElements:t?t.type==="root"?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:n==="svg"?Cl:Iu,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}const CF=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=CF(n.children))}),t),Cue=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=wue(t,r);i&&i.length>0&&Hi(r,i,(a,o,s)=>{n(a,o,s)});return}Hi(r,(i,a,o)=>{n(i,a,o)})}}},kue=Cue;var xue={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Iue(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}function Rue(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function kF(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?kF(t.parentElement):null}function Nue(e){var t=n=>{var r=kF(n.target);r&&(r.classList.add("active"),Rue(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};C.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var Oue=function(t){return n=>{Hi(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=nn({},r.properties,{"data-meta":String(r.data.meta)}))})}},Due=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"];const Lue=st.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:o=!1,skipHtml:s=!0,onScroll:u,onMouseOver:c,pluginsFilter:p,rehypeRewrite:f,wrapperElement:m={},warpperElement:g={}}=e,b=C1(e,Due),y=st.useRef(null);C.useImperativeHandle(t,()=>nn({},e,{mdp:y}),[y,e]);var T=(n||"")+" "+(r||"");Nue(y);var E=(k,N,B)=>{if(k.type==="element"&&B&&B.type==="root"&&/h(1|2|3|4|5|6)/.test(k.tagName)){var q=k.children&&k.children[0];q&&q.properties&&q.properties.ariaHidden==="true"&&(q.properties=nn({class:"anchor"},q.properties),q.children=[xue])}if(k.type==="element"&&k.tagName==="pre"&&!o){var P=CF(k.children);k.children.push(Iue(P))}f&&f(k,N,B)},v=[Oue,[mle,{ignoreMissing:!0}],kse,Nse,Pse,[kue,{rewrite:E}],[Mse,{properties:"attr"}],...b.rehypePlugins||[]],w={allowElement:(k,N,B)=>b.allowElement?b.allowElement(k,N,B):/^[A-Za-z0-9]+$/.test(k.tagName)};s&&v.push(Ese);var A=[...b.remarkPlugins||[],Ure],R=nn({},g,m);return I.jsx("div",nn({ref:y,onScroll:u,onMouseOver:c},R,{className:T,style:a,children:I.jsx(N9,nn({},w,b,{skipHtml:s,rehypePlugins:p?p("rehype",v):v,remarkPlugins:p?p("remark",A):A,children:i||""}))}))}),Mue=Ge(Lue)` pre { background-color: ${e=>e.light?Ht:Vt}; border-radius: ${It}; @@ -337,8 +337,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var R2=60103,N2=60106,nf=60107,rf=60108,af=60114,of=60109,sf=60110,lf=60112,uf=60113,F7=60120,cf=60115,df=60116,xF=60121,IF=60122,RF=60117,NF=60129,OF=60131;if(typeof Symbol=="function"&&Symbol.for){var yr=Symbol.for;R2=yr("react.element"),N2=yr("react.portal"),nf=yr("react.fragment"),rf=yr("react.strict_mode"),af=yr("react.profiler"),of=yr("react.provider"),sf=yr("react.context"),lf=yr("react.forward_ref"),uf=yr("react.suspense"),F7=yr("react.suspense_list"),cf=yr("react.memo"),df=yr("react.lazy"),xF=yr("react.block"),IF=yr("react.server.block"),RF=yr("react.fundamental"),NF=yr("react.debug_trace_mode"),OF=yr("react.legacy_hidden")}function Ja(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R2:switch(e=e.type,e){case nf:case af:case rf:case uf:case F7:return e;default:switch(e=e&&e.$$typeof,e){case sf:case lf:case df:case cf:case of:return e;default:return t}}case N2:return t}}}var $ue=of,zue=R2,Hue=lf,jue=nf,Gue=df,Vue=cf,Wue=N2,que=af,Kue=rf,Yue=uf;yn.ContextConsumer=sf;yn.ContextProvider=$ue;yn.Element=zue;yn.ForwardRef=Hue;yn.Fragment=jue;yn.Lazy=Gue;yn.Memo=Vue;yn.Portal=Wue;yn.Profiler=que;yn.StrictMode=Kue;yn.Suspense=Yue;yn.isAsyncMode=function(){return!1};yn.isConcurrentMode=function(){return!1};yn.isContextConsumer=function(e){return Ja(e)===sf};yn.isContextProvider=function(e){return Ja(e)===of};yn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R2};yn.isForwardRef=function(e){return Ja(e)===lf};yn.isFragment=function(e){return Ja(e)===nf};yn.isLazy=function(e){return Ja(e)===df};yn.isMemo=function(e){return Ja(e)===cf};yn.isPortal=function(e){return Ja(e)===N2};yn.isProfiler=function(e){return Ja(e)===af};yn.isStrictMode=function(e){return Ja(e)===rf};yn.isSuspense=function(e){return Ja(e)===uf};yn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nf||e===af||e===NF||e===rf||e===uf||e===F7||e===OF||typeof e=="object"&&e!==null&&(e.$$typeof===df||e.$$typeof===cf||e.$$typeof===of||e.$$typeof===sf||e.$$typeof===lf||e.$$typeof===RF||e.$$typeof===xF||e[0]===IF)};yn.typeOf=Ja;let mI=e=>typeof e=="object"&&e!=null&&e.nodeType===1,bI=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",u4=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,Xue=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var Zue=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:fe=>fe!==f;if(!mI(e))throw new TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,y=[],T=e;for(;mI(T)&&g(T);){if(T=Xue(T),T===b){y.push(T);break}T!=null&&T===document.body&&u4(T)&&!u4(document.documentElement)||T!=null&&u4(T,m)&&y.push(T)}let E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:R,width:k,top:N,right:B,bottom:q,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?N:c==="end"?q:N+R/2,$=p==="center"?P+k/2:p==="end"?B:P,oe=[];for(let fe=0;fe=0&&P>=0&&q<=v&&B<=E&&N>=W&&q<=D&&P>=pe&&B<=se)return oe;let le=getComputedStyle(ce),L=parseInt(le.borderLeftWidth,10),ie=parseInt(le.borderTopWidth,10),Se=parseInt(le.borderRightWidth,10),X=parseInt(le.borderBottomWidth,10),ke=0,te=0,Me="offsetWidth"in ce?ce.offsetWidth-ce.clientWidth-L-Se:0,Re="offsetHeight"in ce?ce.offsetHeight-ce.clientHeight-ie-X:0,Ze="offsetWidth"in ce?ce.offsetWidth===0?0:H/ce.offsetWidth:0,We="offsetHeight"in ce?ce.offsetHeight===0?0:De/ce.offsetHeight:0;if(b===ce)ke=c==="start"?Q:c==="end"?Q-v:c==="nearest"?V0(A,A+v,v,ie,X,A+Q,A+Q+R,R):Q-v/2,te=p==="start"?$:p==="center"?$-E/2:p==="end"?$-E:V0(w,w+E,E,L,Se,w+$,w+$+k,k),ke=Math.max(0,ke+A),te=Math.max(0,te+w);else{ke=c==="start"?Q-W-ie:c==="end"?Q-D+X+Re:c==="nearest"?V0(W,D,De,ie,X+Re,Q,Q+R,R):Q-(W+De/2)+Re/2,te=p==="start"?$-pe-L:p==="center"?$-(pe+H/2)+Me/2:p==="end"?$-se+Se+Me:V0(pe,se,H,L,Se+Me,$,$+k,k);let{scrollLeft:dt,scrollTop:ot}=ce;ke=Math.max(0,Math.min(ot+ke/We,ce.scrollHeight-De/We+Re)),te=Math.max(0,Math.min(dt+te/Ze,ce.scrollWidth-H/Ze+Me)),Q+=ot-ke,$+=dt-te}oe.push({el:ce,top:ke,left:te})}return oe},$g=function(){return $g=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function q0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=Ap(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function Ap(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?Ap(1,0,n,r,!1):Ap(-1,n-1,n,r,!1):-1}function EI(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(yI(i,e,n)||r&&yI(i,n.document.activeElement,n))})}var r1e=LF(function(e){FF(e).textContent=""},500);function i1e(e,t){var n=FF(t);e&&(n.textContent=e,r1e(t))}function FF(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var a1e=["isInitialMount","highlightedIndex","items","environment"],PF={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function o1e(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){s1e(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(nn({type:i},a))}function s1e(e,t,n,r){var i=t.props,a=t.type,o="on"+P7(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](nn({type:a},r))}function l1e(e,t){return t.changes}function u1e(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var c1e=LF(function(e,t){i1e(e(),t)},200),d1e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function p1e(e){var t=e.id,n=t===void 0?"downshift-"+e1e():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function f1e(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function h1e(e){return e?String(e):""}function P7(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function BF(e){var t=C.useRef(e);return t.current=e,t}function g1e(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=my(m,g.props);var b=e(m,g),y=g.props.stateReducer(m,nn({},g,{changes:b}));return y},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=BF(n),p=C.useCallback(function(m){return u(nn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&o1e(f,my(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Kd={itemToString:h1e,stateReducer:l1e,getA11ySelectionMessage:u1e,scrollIntoView:Jue,environment:typeof window>"u"?{}:window};function bo(e,t,n){n===void 0&&(n=PF);var r=e["default"+P7(t)];return r!==void 0?r:n[t]}function K0(e,t,n){n===void 0&&(n=PF);var r=e[t];if(r!==void 0)return r;var i=e["initial"+P7(t)];return i!==void 0?i:bo(e,t,n)}function m1e(e){var t=K0(e,"selectedItem"),n=K0(e,"isOpen"),r=K0(e,"highlightedIndex"),i=K0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Yd(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function b1e(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!EI(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!EI(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var y1e=function(){return DF};function vI(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=C1(n,a1e);C.useEffect(function(){r||c1e(function(){return e(nn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function E1e(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return d1e(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var v1e=DF;function _I(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return nn({isOpen:!1,highlightedIndex:-1},i&&nn({selectedItem:e.items[t],isOpen:bo(e,"isOpen"),highlightedIndex:bo(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function _1e(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Yd(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:bo(i,"highlightedIndex"),isOpen:bo(i,"isOpen"),selectedItem:bo(i,"selectedItem"),inputValue:bo(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return nn({},e,a)}be.array.isRequired,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.func,be.string,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function T1e(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}$g($g({},Kd),{getA11yStatusMessage:T1e});var B7=0,U7=1,$7=2,z7=3,H7=4,j7=5,G7=6,V7=7,W7=8,zg=9,q7=10,UF=11,$F=12,K7=13,zF=14,HF=15,jF=16,GF=17,VF=18,Y7=19,WF=20,qF=21,X7=22,KF=Object.freeze({__proto__:null,InputKeyDownArrowDown:B7,InputKeyDownArrowUp:U7,InputKeyDownEscape:$7,InputKeyDownHome:z7,InputKeyDownEnd:H7,InputKeyDownPageUp:j7,InputKeyDownPageDown:G7,InputKeyDownEnter:V7,InputChange:W7,InputBlur:zg,InputFocus:q7,MenuMouseLeave:UF,ItemMouseMove:$F,ItemClick:K7,ToggleButtonClick:zF,FunctionToggleMenu:HF,FunctionOpenMenu:jF,FunctionCloseMenu:GF,FunctionSetHighlightedIndex:VF,FunctionSelectItem:Y7,FunctionSetInputValue:WF,FunctionReset:qF,ControlledPropUpdatedSelectedItem:X7});function S1e(e){var t=m1e(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),nn({},t,{inputValue:r})}be.array.isRequired,be.func,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.string,be.string,be.string,be.func,be.string,be.string,be.func,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function w1e(e,t,n){var r=C.useRef(),i=g1e(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){MF(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:X7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[my(a,n),o]}var A1e=nn({},Kd,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:t1e});function C1e(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case K7:o={isOpen:bo(i,"isOpen"),highlightedIndex:bo(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case B7:e.isOpen?o={highlightedIndex:q0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Yd(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case U7:e.isOpen?a?o=_I(i,e.highlightedIndex):o={highlightedIndex:q0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Yd(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case V7:o=_I(i,e.highlightedIndex);break;case $7:o=nn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case j7:o={highlightedIndex:q0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case G7:o={highlightedIndex:q0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case z7:o={highlightedIndex:Ap(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case H7:o={highlightedIndex:Ap(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case zg:o=nn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case W7:o={isOpen:!0,highlightedIndex:bo(i,"highlightedIndex"),inputValue:t.inputValue};break;case q7:o={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case Y7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case X7:o={inputValue:t.inputValue};break;default:return _1e(e,t,KF)}return nn({},e,o)}var k1e=["onMouseLeave","refKey","ref"],x1e=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],I1e=["onClick","onPress","refKey","ref"],R1e=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];YF.stateChangeTypes=KF;function YF(e){e===void 0&&(e={});var t=nn({},A1e,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=S1e(t),f=w1e(C1e,p,t),m=f[0],g=f[1],b=m.isOpen,y=m.highlightedIndex,T=m.selectedItem,E=m.inputValue,v=C.useRef(null),w=C.useRef({}),A=C.useRef(null),R=C.useRef(null),k=C.useRef(!0),N=p1e(t),B=C.useRef(),q=BF({state:m,props:t}),P=C.useCallback(function(ke){return w.current[N.getItemId(ke)]},[N]);vI(s,[b,y,E,i],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),vI(u,[T],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=E1e({menuElement:v.current,highlightedIndex:y,isOpen:b,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});v1e({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var ke=n||r||b;ke&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var $=b1e(b,[A,v,R],o,function(){g({type:zg,selectItem:!1})}),oe=y1e();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var ke;if(!b)w.current={};else if(((ke=o.document)==null?void 0:ke.activeElement)!==A.current){var te;A==null||(te=A.current)==null||te.focus()}},[b,o]);var fe=C.useMemo(function(){return{ArrowDown:function(te){te.preventDefault(),g({type:B7,altKey:te.altKey,getItemNodeFromIndex:P})},ArrowUp:function(te){te.preventDefault(),g({type:U7,altKey:te.altKey,getItemNodeFromIndex:P})},Home:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:z7,getItemNodeFromIndex:P}))},End:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:H7,getItemNodeFromIndex:P}))},Escape:function(te){var Me=q.current.state;(Me.isOpen||Me.inputValue||Me.selectedItem||Me.highlightedIndex>-1)&&(te.preventDefault(),g({type:$7}))},Enter:function(te){var Me=q.current.state;!Me.isOpen||te.which===229||(te.preventDefault(),g({type:V7,getItemNodeFromIndex:P}))},PageUp:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:j7,getItemNodeFromIndex:P}))},PageDown:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:G7,getItemNodeFromIndex:P}))}}},[g,q,P]),ce=C.useCallback(function(ke){return nn({id:N.labelId,htmlFor:N.inputId},ke)},[N]),De=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onMouseLeave,We=Re.refKey,dt=We===void 0?"ref":We,ot=Re.ref,je=C1(Re,k1e),pt=te===void 0?{}:te;return pt.suppressRefError,nn((Me={},Me[dt]=W0(ot,function(U){v.current=U}),Me.id=N.menuId,Me.role="listbox",Me["aria-labelledby"]=je&&je["aria-label"]?void 0:""+N.labelId,Me.onMouseLeave=Wo(Ze,function(){g({type:UF})}),Me),je)},[g,oe,N]),H=C.useCallback(function(ke){var te,Me,Re=ke===void 0?{}:ke,Ze=Re.item,We=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,je=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,re=Re.onClick;Re.onPress;var de=Re.disabled,xe=C1(Re,x1e),ye=q.current,Te=ye.props,Le=ye.state,ze=f1e(Ze,We,Te.items,"Pass either item or index to getItemProps!"),Ye=ze[1],jt="onClick",ue=re,Ee=function(){Ye!==Le.highlightedIndex&&(Q.current=!1,g({type:$F,index:Ye,disabled:de}))},qe=function(){g({type:K7,index:Ye})},j=function(Ve){return Ve.preventDefault()};return nn((te={},te[ot]=W0(je,function(me){me&&(w.current[N.getItemId(Ye)]=me)}),te.disabled=de,te.role="option",te["aria-selected"]=""+(Ye===Le.highlightedIndex),te.id=N.getItemId(Ye),te),!de&&(Me={},Me[jt]=Wo(ue,qe),Me),{onMouseMove:Wo(pt,Ee),onMouseDown:Wo(U,j)},xe)},[g,q,Q,N]),W=C.useCallback(function(ke){var te,Me=ke===void 0?{}:ke,Re=Me.onClick;Me.onPress;var Ze=Me.refKey,We=Ze===void 0?"ref":Ze,dt=Me.ref,ot=C1(Me,I1e),je=q.current.state,pt=function(){g({type:zF})};return nn((te={},te[We]=W0(dt,function(U){R.current=U}),te["aria-controls"]=N.menuId,te["aria-expanded"]=je.isOpen,te.id=N.toggleButtonId,te.tabIndex=-1,te),!ot.disabled&&nn({},{onClick:Wo(Re,pt)}),ot)},[g,q,N]),se=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onKeyDown,We=Re.onChange,dt=Re.onInput,ot=Re.onFocus,je=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,re=Re.ref,de=C1(Re,R1e),xe=te===void 0?{}:te;xe.suppressRefError;var ye=q.current.state,Te=function(j){var me=n1e(j);me&&fe[me]&&fe[me](j)},Le=function(j){g({type:W7,inputValue:j.target.value})},ze=function(j){if(ye.isOpen&&!$.current.isMouseDown){var me=j.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:zg,selectItem:!me})}},Ye=function(){ye.isOpen||g({type:q7})},jt="onChange",ue={};if(!de.disabled){var Ee;ue=(Ee={},Ee[jt]=Wo(We,dt,Le),Ee.onKeyDown=Wo(Ze,Te),Ee.onBlur=Wo(je,ze),Ee.onFocus=Wo(ot,Ye),Ee)}return nn((Me={},Me[U]=W0(re,function(qe){A.current=qe}),Me["aria-activedescendant"]=ye.isOpen&&ye.highlightedIndex>-1?N.getItemId(ye.highlightedIndex):"",Me["aria-autocomplete"]="list",Me["aria-controls"]=N.menuId,Me["aria-expanded"]=ye.isOpen,Me["aria-labelledby"]=de&&de["aria-label"]?void 0:""+N.labelId,Me.autoComplete="off",Me.id=N.inputId,Me.role="combobox",Me.value=ye.inputValue,Me),ue,de)},[oe,q,N,fe,g,$,o]),D=C.useCallback(function(){g({type:HF})},[g]),pe=C.useCallback(function(){g({type:GF})},[g]),le=C.useCallback(function(){g({type:jF})},[g]),L=C.useCallback(function(ke){g({type:VF,highlightedIndex:ke})},[g]),ie=C.useCallback(function(ke){g({type:Y7,selectedItem:ke})},[g]),Se=C.useCallback(function(ke){g({type:WF,inputValue:ke})},[g]),X=C.useCallback(function(){g({type:qF})},[g]);return{getItemProps:H,getLabelProps:ce,getMenuProps:De,getInputProps:se,getToggleButtonProps:W,toggleMenu:D,openMenu:le,closeMenu:pe,setHighlightedIndex:L,setInputValue:Se,selectItem:ie,reset:X,highlightedIndex:y,isOpen:b,selectedItem:T,inputValue:E}}function N1e(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}be.array,be.array,be.array,be.func,be.func,be.func,be.number,be.number,be.number,be.func,be.func,be.string,be.string,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});Kd.itemToString,Kd.stateReducer,Kd.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:XF,setPrototypeOf:TI,isFrozen:O1e,getPrototypeOf:D1e,getOwnPropertyDescriptor:ZF}=Object;let{freeze:ii,seal:Ya,create:QF}=Object,{apply:by,construct:yy}=typeof Reflect<"u"&&Reflect;ii||(ii=function(t){return t});Ya||(Ya=function(t){return t});by||(by=function(t,n,r){return t.apply(n,r)});yy||(yy=function(t,n){return new t(...n)});const Y0=va(Array.prototype.forEach),SI=va(Array.prototype.pop),ld=va(Array.prototype.push),Fh=va(String.prototype.toLowerCase),c4=va(String.prototype.toString),L1e=va(String.prototype.match),ud=va(String.prototype.replace),M1e=va(String.prototype.indexOf),F1e=va(String.prototype.trim),Ni=va(RegExp.prototype.test),cd=P1e(TypeError);function va(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Fh;TI&&TI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(O1e(t)||(t[r]=a),i=a)}e[i]=!0}return e}function r1(e){const t=QF(null);for(const[n,r]of XF(e))ZF(e,n)!==void 0&&(t[n]=r);return t}function X0(e,t){for(;e!==null;){const r=ZF(e,t);if(r){if(r.get)return va(r.get);if(typeof r.value=="function")return va(r.value)}e=D1e(e)}function n(r){return console.warn("fallback value for",r),null}return n}const wI=ii(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),d4=ii(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),p4=ii(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B1e=ii(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),f4=ii(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U1e=ii(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),AI=ii(["#text"]),CI=ii(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),h4=ii(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kI=ii(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z0=ii(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$1e=Ya(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z1e=Ya(/<%[\w\W]*|[\w\W]*%>/gm),H1e=Ya(/\${[\w\W]*}/gm),j1e=Ya(/^data-[\-\w.\u00B7-\uFFFF]/),G1e=Ya(/^aria-[\-\w]+$/),JF=Ya(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V1e=Ya(/^(?:\w+script|data):/i),W1e=Ya(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eP=Ya(/^html$/i);var xI=Object.freeze({__proto__:null,MUSTACHE_EXPR:$1e,ERB_EXPR:z1e,TMPLIT_EXPR:H1e,DATA_ATTR:j1e,ARIA_ATTR:G1e,IS_ALLOWED_URI:JF,IS_SCRIPT_OR_DATA:V1e,ATTR_WHITESPACE:W1e,DOCTYPE_NAME:eP});const q1e=function(){return typeof window>"u"?null:window},K1e=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function tP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q1e();const t=Ke=>tP(Ke);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,b=u.prototype,y=X0(b,"cloneNode"),T=X0(b,"nextSibling"),E=X0(b,"childNodes"),v=X0(b,"parentNode");if(typeof o=="function"){const Ke=n.createElement("template");Ke.content&&Ke.content.ownerDocument&&(n=Ke.content.ownerDocument)}let w,A="";const{implementation:R,createNodeIterator:k,createDocumentFragment:N,getElementsByTagName:B}=n,{importNode:q}=r;let P={};t.isSupported=typeof XF=="function"&&typeof v=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:$,TMPLIT_EXPR:oe,DATA_ATTR:fe,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:H}=xI;let{IS_ALLOWED_URI:W}=xI,se=null;const D=At({},[...wI,...d4,...p4,...f4,...AI]);let pe=null;const le=At({},[...CI,...h4,...kI,...Z0]);let L=Object.seal(QF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Se=null,X=!0,ke=!0,te=!1,Me=!0,Re=!1,Ze=!1,We=!1,dt=!1,ot=!1,je=!1,pt=!1,U=!0,re=!1;const de="user-content-";let xe=!0,ye=!1,Te={},Le=null;const ze=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ye=null;const jt=At({},["audio","video","img","source","image","track"]);let ue=null;const Ee=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",j="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let Ve=me,ge=!1,G=null;const K=At({},[qe,j,me],c4);let ne=null;const ve=["application/xhtml+xml","text/html"],Qe="text/html";let Fe=null,at=null;const rt=n.createElement("form"),Je=function(J){return J instanceof RegExp||J instanceof Function},Rt=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(at&&at===J)){if((!J||typeof J!="object")&&(J={}),J=r1(J),ne=ve.indexOf(J.PARSER_MEDIA_TYPE)===-1?ne=Qe:ne=J.PARSER_MEDIA_TYPE,Fe=ne==="application/xhtml+xml"?c4:Fh,se="ALLOWED_TAGS"in J?At({},J.ALLOWED_TAGS,Fe):D,pe="ALLOWED_ATTR"in J?At({},J.ALLOWED_ATTR,Fe):le,G="ALLOWED_NAMESPACES"in J?At({},J.ALLOWED_NAMESPACES,c4):K,ue="ADD_URI_SAFE_ATTR"in J?At(r1(Ee),J.ADD_URI_SAFE_ATTR,Fe):Ee,Ye="ADD_DATA_URI_TAGS"in J?At(r1(jt),J.ADD_DATA_URI_TAGS,Fe):jt,Le="FORBID_CONTENTS"in J?At({},J.FORBID_CONTENTS,Fe):ze,ie="FORBID_TAGS"in J?At({},J.FORBID_TAGS,Fe):{},Se="FORBID_ATTR"in J?At({},J.FORBID_ATTR,Fe):{},Te="USE_PROFILES"in J?J.USE_PROFILES:!1,X=J.ALLOW_ARIA_ATTR!==!1,ke=J.ALLOW_DATA_ATTR!==!1,te=J.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=J.SAFE_FOR_TEMPLATES||!1,Ze=J.WHOLE_DOCUMENT||!1,ot=J.RETURN_DOM||!1,je=J.RETURN_DOM_FRAGMENT||!1,pt=J.RETURN_TRUSTED_TYPE||!1,dt=J.FORCE_BODY||!1,U=J.SANITIZE_DOM!==!1,re=J.SANITIZE_NAMED_PROPS||!1,xe=J.KEEP_CONTENT!==!1,ye=J.IN_PLACE||!1,W=J.ALLOWED_URI_REGEXP||JF,Ve=J.NAMESPACE||me,L=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(ke=!1),je&&(ot=!0),Te&&(se=At({},[...AI]),pe=[],Te.html===!0&&(At(se,wI),At(pe,CI)),Te.svg===!0&&(At(se,d4),At(pe,h4),At(pe,Z0)),Te.svgFilters===!0&&(At(se,p4),At(pe,h4),At(pe,Z0)),Te.mathMl===!0&&(At(se,f4),At(pe,kI),At(pe,Z0))),J.ADD_TAGS&&(se===D&&(se=r1(se)),At(se,J.ADD_TAGS,Fe)),J.ADD_ATTR&&(pe===le&&(pe=r1(pe)),At(pe,J.ADD_ATTR,Fe)),J.ADD_URI_SAFE_ATTR&&At(ue,J.ADD_URI_SAFE_ATTR,Fe),J.FORBID_CONTENTS&&(Le===ze&&(Le=r1(Le)),At(Le,J.FORBID_CONTENTS,Fe)),xe&&(se["#text"]=!0),Ze&&At(se,["html","head","body"]),se.table&&(At(se,["tbody"]),delete ie.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=J.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=K1e(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ii&&ii(J),at=J}},Qt=At({},["mi","mo","mn","ms","mtext"]),kt=At({},["foreignobject","desc","title","annotation-xml"]),rn=At({},["title","style","font","a","script"]),Xt=At({},d4);At(Xt,p4),At(Xt,B1e);const Wr=At({},f4);At(Wr,U1e);const qr=function(J){let Be=v(J);(!Be||!Be.tagName)&&(Be={namespaceURI:Ve,tagName:"template"});const it=Fh(J.tagName),un=Fh(Be.tagName);return G[J.namespaceURI]?J.namespaceURI===j?Be.namespaceURI===me?it==="svg":Be.namespaceURI===qe?it==="svg"&&(un==="annotation-xml"||Qt[un]):!!Xt[it]:J.namespaceURI===qe?Be.namespaceURI===me?it==="math":Be.namespaceURI===j?it==="math"&&kt[un]:!!Wr[it]:J.namespaceURI===me?Be.namespaceURI===j&&!kt[un]||Be.namespaceURI===qe&&!Qt[un]?!1:!Wr[it]&&(rn[it]||!Xt[it]):!!(ne==="application/xhtml+xml"&&G[J.namespaceURI]):!1},Kr=function(J){ld(t.removed,{element:J});try{J.parentNode.removeChild(J)}catch{J.remove()}},Aa=function(J,Be){try{ld(t.removed,{attribute:Be.getAttributeNode(J),from:Be})}catch{ld(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(J),J==="is"&&!pe[J])if(ot||je)try{Kr(Be)}catch{}else try{Be.setAttribute(J,"")}catch{}},si=function(J){let Be=null,it=null;if(dt)J=""+J;else{const or=L1e(J,/^[\r\n\t ]+/);it=or&&or[0]}ne==="application/xhtml+xml"&&Ve===me&&(J=''+J+"");const un=w?w.createHTML(J):J;if(Ve===me)try{Be=new m().parseFromString(un,ne)}catch{}if(!Be||!Be.documentElement){Be=R.createDocument(Ve,"template",null);try{Be.documentElement.innerHTML=ge?A:un}catch{}}const ar=Be.body||Be.documentElement;return J&&it&&ar.insertBefore(n.createTextNode(it),ar.childNodes[0]||null),Ve===me?B.call(Be,Ze?"html":"body")[0]:Ze?Be.documentElement:ar},Or=function(J){return k.call(J.ownerDocument||J,J,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Es=function(J){return J instanceof f&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof p)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},vs=function(J){return typeof s=="function"&&J instanceof s},Yr=function(J,Be,it){P[J]&&Y0(P[J],un=>{un.call(t,Be,it,at)})},_s=function(J){let Be=null;if(Yr("beforeSanitizeElements",J,null),Es(J))return Kr(J),!0;const it=Fe(J.nodeName);if(Yr("uponSanitizeElement",J,{tagName:it,allowedTags:se}),J.hasChildNodes()&&!vs(J.firstElementChild)&&Ni(/<[/\w]/g,J.innerHTML)&&Ni(/<[/\w]/g,J.textContent))return Kr(J),!0;if(!se[it]||ie[it]){if(!ie[it]&&Dr(it)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it)))return!1;if(xe&&!Le[it]){const un=v(J)||J.parentNode,ar=E(J)||J.childNodes;if(ar&&un){const or=ar.length;for(let Zn=or-1;Zn>=0;--Zn)un.insertBefore(y(ar[Zn],!0),T(J))}}return Kr(J),!0}return J instanceof u&&!qr(J)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ni(/<\/no(script|embed|frames)/i,J.innerHTML)?(Kr(J),!0):(Re&&J.nodeType===3&&(Be=J.textContent,Y0([Q,$,oe],un=>{Be=ud(Be,un," ")}),J.textContent!==Be&&(ld(t.removed,{element:J.cloneNode()}),J.textContent=Be)),Yr("afterSanitizeElements",J,null),!1)},qt=function(J,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in rt))return!1;if(!(ke&&!Se[Be]&&Ni(fe,Be))){if(!(X&&Ni(ce,Be))){if(!pe[Be]||Se[Be]){if(!(Dr(J)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,J)||L.tagNameCheck instanceof Function&&L.tagNameCheck(J))&&(L.attributeNameCheck instanceof RegExp&&Ni(L.attributeNameCheck,Be)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(Be))||Be==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ni(W,ud(it,H,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&J!=="script"&&M1e(it,"data:")===0&&Ye[J])){if(!(te&&!Ni(De,ud(it,H,"")))){if(it)return!1}}}}}}return!0},Dr=function(J){return J.indexOf("-")>0},Si=function(J){Yr("beforeSanitizeAttributes",J,null);const{attributes:Be}=J;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};let un=Be.length;for(;un--;){const ar=Be[un],{name:or,namespaceURI:Zn,value:No}=ar,no=Fe(or);let Lr=or==="value"?No:F1e(No);if(it.attrName=no,it.attrValue=Lr,it.keepAttr=!0,it.forceKeepAttr=void 0,Yr("uponSanitizeAttribute",J,it),Lr=it.attrValue,it.forceKeepAttr||(Aa(or,J),!it.keepAttr))continue;if(!Me&&Ni(/\/>/i,Lr)){Aa(or,J);continue}Re&&Y0([Q,$,oe],vf=>{Lr=ud(Lr,vf," ")});const Ef=Fe(J.nodeName);if(qt(Ef,no,Lr)){if(re&&(no==="id"||no==="name")&&(Aa(or,J),Lr=de+Lr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Zn)switch(g.getAttributeType(Ef,no)){case"TrustedHTML":{Lr=w.createHTML(Lr);break}case"TrustedScriptURL":{Lr=w.createScriptURL(Lr);break}}try{Zn?J.setAttributeNS(Zn,or,Lr):J.setAttribute(or,Lr),SI(t.removed)}catch{}}}Yr("afterSanitizeAttributes",J,null)},Nl=function Ke(J){let Be=null;const it=Or(J);for(Yr("beforeSanitizeShadowDOM",J,null);Be=it.nextNode();)Yr("uponSanitizeShadowNode",Be,null),!_s(Be)&&(Be.content instanceof a&&Ke(Be.content),Si(Be));Yr("afterSanitizeShadowDOM",J,null)};return t.sanitize=function(Ke){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,un=null,ar=null;if(ge=!Ke,ge&&(Ke=""),typeof Ke!="string"&&!vs(Ke))if(typeof Ke.toString=="function"){if(Ke=Ke.toString(),typeof Ke!="string")throw cd("dirty is not a string, aborting")}else throw cd("toString is not a function");if(!t.isSupported)return Ke;if(We||Rt(J),t.removed=[],typeof Ke=="string"&&(ye=!1),ye){if(Ke.nodeName){const No=Fe(Ke.nodeName);if(!se[No]||ie[No])throw cd("root node is forbidden and cannot be sanitized in-place")}}else if(Ke instanceof s)Be=si(""),it=Be.ownerDocument.importNode(Ke,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Ze&&Ke.indexOf("<")===-1)return w&&pt?w.createHTML(Ke):Ke;if(Be=si(Ke),!Be)return ot?null:pt?A:""}Be&&dt&&Kr(Be.firstChild);const or=Or(ye?Ke:Be);for(;un=or.nextNode();)_s(un)||(un.content instanceof a&&Nl(un.content),Si(un));if(ye)return Ke;if(ot){if(je)for(ar=N.call(Be.ownerDocument);Be.firstChild;)ar.appendChild(Be.firstChild);else ar=Be;return(pe.shadowroot||pe.shadowrootmode)&&(ar=q.call(r,ar,!0)),ar}let Zn=Ze?Be.outerHTML:Be.innerHTML;return Ze&&se["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ni(eP,Be.ownerDocument.doctype.name)&&(Zn=" -`+Zn),Re&&Y0([Q,$,oe],No=>{Zn=ud(Zn,No," ")}),w&&pt?w.createHTML(Zn):Zn},t.setConfig=function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rt(Ke),We=!0},t.clearConfig=function(){at=null,We=!1},t.isValidAttribute=function(Ke,J,Be){at||Rt({});const it=Fe(Ke),un=Fe(J);return qt(it,un,Be)},t.addHook=function(Ke,J){typeof J=="function"&&(P[Ke]=P[Ke]||[],ld(P[Ke],J))},t.removeHook=function(Ke){if(P[Ke])return SI(P[Ke])},t.removeHooks=function(Ke){P[Ke]&&(P[Ke]=[])},t.removeAllHooks=function(){P={}},t}var Y1e=tP(),Z7={};const X1e={folder:["folder","white"],"karma.conf.js":["karma","green"],"karma.conf.coffee":["karma","green"],"README.md":["info","blue"],"CHANGELOG.md":["clock","blue"],CHANGELOG:["clock","blue"],"CHANGES.md":["clock","blue"],"VERSION.md":["clock","blue"],VERSION:["clock","blue"],mvnw:["maven","red"],"tsconfig.json":["tsconfig","blue"],"swagger.json":["json","green"],"swagger.yml":["json","green"],"swagger.yaml":["json","green"],"mime.types":["config","grey-light"],Jenkinsfile:["jenkins","red"],"babel.config.js":["babel","yellow"],"babel.config.json":["babel","yellow"],"babel.config.cjs":["babel","yellow"],"bower.json":["bower","orange"],"Bower.json":["bower","orange"],"firebase.json":["firebase","orange"],geckodriver:["firefox","orange"],"Gruntfile.js":["grunt","orange"],"gruntfile.babel.js":["grunt","orange"],"Gruntfile.babel.js":["grunt","orange"],"gruntfile.js":["grunt","orange"],"Gruntfile.coffee":["grunt","orange"],"gruntfile.coffee":["grunt","orange"],"ionic.config.json":["ionic","blue"],"Ionic.config.json":["ionic","blue"],"ionic.project":["ionic","blue"],"Ionic.project":["ionic","blue"],"platformio.ini":["platformio","orange"],"rollup.config.js":["rollup","red"],"sass-lint.yml":["sass","pink"],"stylelint.config.js":["stylelint","white"],"stylelint.config.cjs":["stylelint","white"],"yarn.clean":["yarn","blue"],"yarn.lock":["yarn","blue"],"webpack.config.js":["webpack","blue"],"webpack.config.build.js":["webpack","blue"],"webpack.common.js":["webpack","blue"],"webpack.dev.js":["webpack","blue"],"webpack.prod.js":["webpack","blue"],"npm-debug.log":["npm_ignored","ignore"]},Z1e={".bsl":["bsl","red"],".mdo":["mdo","red"],".cls":["salesforce","blue"],".apex":["salesforce","blue"],".asm":["asm","red"],".s":["asm","red"],".bicep":["bicep","blue"],".c":["c","blue"],".h":["c","purple"],".m":["c","yellow"],".cs":["c-sharp","blue"],".cshtml":["html","blue"],".aspx":["html","blue"],".ascx":["html","green"],".asax":["html","yellow"],".master":["html","yellow"],".cc":["cpp","blue"],".cpp":["cpp","blue"],".cxx":["cpp","blue"],".c++":["cpp","blue"],".hh":["cpp","purple"],".hpp":["cpp","purple"],".hxx":["cpp","purple"],".h++":["cpp","purple"],".mm":["cpp","yellow"],".clj":["clojure","green"],".cljs":["clojure","green"],".cljc":["clojure","green"],".edn":["clojure","blue"],".cfc":["coldfusion","blue"],".cfm":["coldfusion","blue"],".coffee":["coffee","yellow"],".litcoffee":["coffee","yellow"],".config":["config","grey-light"],".cfg":["config","grey-light"],".conf":["config","grey-light"],".cr":["crystal","white"],".ecr":["crystal_embedded","white"],".slang":["crystal_embedded","white"],".cson":["json","yellow"],".css":["css","blue"],".css.map":["css","blue"],".sss":["css","blue"],".csv":["csv","green"],".xls":["xls","green"],".xlsx":["xls","green"],".cu":["cu","green"],".cuh":["cu","purple"],".hu":["cu","purple"],".cake":["cake","red"],".ctp":["cake_php","red"],".d":["d","red"],".doc":["word","blue"],".docx":["word","blue"],".ejs":["ejs","yellow"],".ex":["elixir","purple"],".exs":["elixir_script","purple"],".elm":["elm","blue"],".ico":["favicon","yellow"],".fs":["f-sharp","blue"],".fsx":["f-sharp","blue"],".gitignore":["git","ignore"],".gitconfig":["git","ignore"],".gitkeep":["git","ignore"],".gitattributes":["git","ignore"],".gitmodules":["git","ignore"],".go":["go2","blue"],".slide":["go","blue"],".article":["go","blue"],".gd":["godot","blue"],".godot":["godot","red"],".tres":["godot","yellow"],".tscn":["godot","purple"],".gradle":["gradle","blue"],".groovy":["grails","green"],".gsp":["grails","green"],".gql":["graphql","pink"],".graphql":["graphql","pink"],".graphqls":["graphql","pink"],".hack":["hacklang","orange"],".haml":["haml","red"],".handlebars":["mustache","orange"],".hbs":["mustache","orange"],".hjs":["mustache","orange"],".hs":["haskell","purple"],".lhs":["haskell","purple"],".hx":["haxe","orange"],".hxs":["haxe","yellow"],".hxp":["haxe","blue"],".hxml":["haxe","purple"],".html":["html","orange"],".jade":["jade","red"],".java":["java","red"],".class":["java","red"],".classpath":["java","red"],".properties":["java","red"],".js":["javascript","yellow"],".js.map":["javascript","yellow"],".spec.js":["javascript","orange"],".test.js":["javascript","orange"],".es":["javascript","yellow"],".es5":["javascript","yellow"],".es6":["javascript","yellow"],".es7":["javascript","yellow"],".jinja":["jinja","red"],".jinja2":["jinja","red"],".json":["json","yellow"],".jl":["julia","purple"],".kt":["kotlin","orange"],".kts":["kotlin","orange"],".dart":["dart","blue"],".less":["less","blue"],".liquid":["liquid","green"],".ls":["livescript","blue"],".lua":["lua","blue"],".markdown":["markdown","blue"],".md":["markdown","blue"],".argdown":["argdown","blue"],".ad":["argdown","blue"],".mustache":["mustache","orange"],".stache":["mustache","orange"],".nim":["nim","yellow"],".nims":["nim","yellow"],".github-issues":["github","white"],".ipynb":["notebook","blue"],".njk":["nunjucks","green"],".nunjucks":["nunjucks","green"],".nunjs":["nunjucks","green"],".nunj":["nunjucks","green"],".njs":["nunjucks","green"],".nj":["nunjucks","green"],".npm-debug.log":["npm","ignore"],".npmignore":["npm","red"],".npmrc":["npm","red"],".ml":["ocaml","orange"],".mli":["ocaml","orange"],".cmx":["ocaml","orange"],".cmxa":["ocaml","orange"],".odata":["odata","orange"],".pl":["perl","blue"],".php":["php","purple"],".php.inc":["php","purple"],".pipeline":["pipeline","orange"],".pddl":["pddl","purple"],".plan":["plan","green"],".happenings":["happenings","blue"],".ps1":["powershell","blue"],".psd1":["powershell","blue"],".psm1":["powershell","blue"],".prisma":["prisma","blue"],".pug":["pug","red"],".pp":["puppet","yellow"],".epp":["puppet","yellow"],".purs":["purescript","white"],".py":["python","blue"],".jsx":["react","blue"],".spec.jsx":["react","orange"],".test.jsx":["react","orange"],".cjsx":["react","blue"],".spec.tsx":["react","orange"],".test.tsx":["react","orange"],".re":["reasonml","red"],".res":["rescript","red"],".resi":["rescript","pink"],".R":["R","blue"],".rmd":["R","blue"],".rb":["ruby","red"],".erb":["html_erb","red"],".erb.html":["html_erb","red"],".html.erb":["html_erb","red"],".rs":["rust","grey-light"],".sass":["sass","pink"],".scss":["sass","pink"],".springBeans":["spring","green"],".slim":["slim","orange"],".smarty.tpl":["smarty","yellow"],".tpl":["smarty","yellow"],".sbt":["sbt","blue"],".scala":["scala","red"],".sol":["ethereum","blue"],".styl":["stylus","green"],".svelte":["svelte","red"],".swift":["swift","orange"],".sql":["db","pink"],".soql":["db","blue"],".tf":["terraform","purple"],".tf.json":["terraform","purple"],".tfvars":["terraform","purple"],".tex":["tex","blue"],".sty":["tex","yellow"],".dtx":["tex","orange"],".ins":["tex","white"],".txt":["default","white"],".toml":["config","grey-light"],".twig":["twig","green"],".ts":["typescript","blue"],".tsx":["typescript","blue"],".spec.ts":["typescript","orange"],".test.ts":["typescript","orange"],".vala":["vala","grey-light"],".vapi":["vala","grey-light"],".component":["html","orange"],".vue":["vue","green"],".wasm":["wasm","purple"],".wat":["wat","purple"],".xml":["xml","orange"],".yml":["yml","purple"],".yaml":["yml","purple"],".pro":["prolog","orange"],".jar":["zip","red"],".zip":["zip","grey-light"],".wgt":["wgt","blue"],".ai":["illustrator","yellow"],".psd":["photoshop","blue"],".pdf":["pdf","red"],".eot":["font","red"],".ttf":["font","red"],".woff":["font","red"],".woff2":["font","red"],".gif":["image","purple"],".jpg":["image","purple"],".jpeg":["image","purple"],".png":["image","purple"],".pxm":["image","purple"],".svg":["svg","purple"],".svgx":["image","purple"],".tiff":["image","purple"],".webp":["image","purple"],".sublime-project":["sublime","orange"],".sublime-workspace":["sublime","orange"],".code-search":["code-search","purple"],".sh":["shell","green"],".zsh":["shell","green"],".fish":["shell","green"],".zshrc":["shell","green"],".bashrc":["shell","green"],".mov":["video","pink"],".ogv":["video","pink"],".webm":["video","pink"],".avi":["video","pink"],".mpg":["video","pink"],".mp4":["video","pink"],".mp3":["audio","purple"],".ogg":["audio","purple"],".wav":["audio","purple"],".flac":["audio","purple"],".3ds":["svg","blue"],".3dm":["svg","blue"],".stl":["svg","blue"],".obj":["svg","blue"],".dae":["svg","blue"],".bat":["windows","blue"],".cmd":["windows","blue"],".babelrc":["babel","yellow"],".babelrc.js":["babel","yellow"],".babelrc.cjs":["babel","yellow"],".bowerrc":["bower","orange"],".codeclimate.yml":["code-climate","green"],".eslintrc":["eslint","purple"],".eslintrc.js":["eslint","purple"],".eslintrc.cjs":["eslint","purple"],".eslintrc.yaml":["eslint","purple"],".eslintrc.yml":["eslint","purple"],".eslintrc.json":["eslint","purple"],".eslintignore":["eslint","grey"],".firebaserc":["firebase","orange"],".jshintrc":["javascript","blue"],".jscsrc":["javascript","blue"],".stylelintrc":["stylelint","white"],".stylelintrc.json":["stylelint","white"],".stylelintrc.yaml":["stylelint","white"],".stylelintrc.yml":["stylelint","white"],".stylelintrc.js":["stylelint","white"],".stylelintignore":["stylelint","grey"],".direnv":["config","grey-light"],".env":["config","grey-light"],".static":["config","grey-light"],".editorconfig":["config","grey-light"],".slugignore":["config","grey-light"],".tmp":["clock","grey-light"],".htaccess":["config","grey-light"],".key":["lock","green"],".cert":["lock","green"],".cer":["lock","green"],".crt":["lock","green"],".pem":["lock","green"],".DS_Store":["ignored","ignore"]},Q1e=[["TODO",["todo","blue"]],["Procfile",["heroku","purple"]],["cmakelists.txt",["makefile","blue"]],["CMakeLists.txt",["makefile","blue"]],["CMAKELISTS.txt",["makefile","blue"]],["CMAKELISTS.TXT",["makefile","blue"]],["omakefile",["makefile","grey-light"]],["OMakefile",["makefile","grey-light"]],["OMAKEFILE",["makefile","grey-light"]],["qmakefile",["makefile","purple"]],["QMakefile",["makefile","purple"]],["QMAKEFILE",["makefile","purple"]],["makefile",["makefile","orange"]],["Makefile",["makefile","orange"]],["MAKEFILE",["makefile","orange"]],["CONTRIBUTING",["license","red"]],["COMPILING",["license","orange"]],["COPYING",["license","yellow"]],["LICENCE.md",["license","yellow"]],["LICENSE.md",["license","yellow"]],["LICENCE",["license","yellow"]],["LICENSE",["license","yellow"]],["gulpfile.js",["gulp","red"]],["gulpfile",["gulp","red"]],["Gulpfile",["gulp","red"]],["GULPFILE",["gulp","red"]],["docker-compose.override.yaml",["docker","pink"]],["docker-compose.override.yml",["docker","pink"]],["docker-compose.yaml",["docker","pink"]],["docker-compose.yml",["docker","pink"]],["docker-healthcheck",["docker","green"]],[".dockerignore",["docker","grey"]],["DOCKERFILE",["docker","blue"]],["Dockerfile",["docker","blue"]],["dockerfile",["docker","blue"]],["gemfile",["ruby","red"]],["Gemfile",["ruby","red"]],["mix",["hex","red"]]],J1e={files:X1e,extensions:Z1e,partials:Q1e,default:["default","white"]},ece='',tce='',nce='',rce='',ice='',ace='',oce='',sce='',lce='',uce='',cce='',dce='',pce='',fce='',hce='',gce='',mce='',bce='',yce='',Ece='',vce='',_ce='',Tce='',Sce='',wce='',Ace='',Cce='',kce='',xce='',Ice='',Rce='',Nce='',Oce='',Dce='',Lce='',Mce='',Fce='',Pce='',Bce='',Uce='',$ce='',zce='',Hce='',jce='',Gce='',Vce='',Wce='',qce='',Kce='',Yce='',Xce='',Zce='',Qce='',Jce='',ede='',tde='',nde='',rde='',ide='',ade='',ode='',sde='',lde='',ude='',cde='',dde='',pde='',fde='',hde='',gde='',mde='',bde='',yde='',Ede='',vde='',_de='',Tde='',Sde='',wde='',Ade='',Cde='',kde='',xde='',Ide='',Rde='',Nde='',Ode='',Dde='',Lde='',Mde='',Fde='',Pde='',Bde='',Ude='',$de='',zde='',Hde='',jde='',Gde='',Vde='',Wde='',qde='',Kde='',Yde='',Xde='',Zde='',Qde='',Jde='',epe='',tpe='',npe='',rpe='',ipe='',ape='',ope='',spe='',lpe='',upe='',cpe='',dpe='',ppe='',fpe='',hpe='',gpe='',mpe='',bpe='',ype='',Epe='',vpe='',_pe='',Tpe='',Spe='',wpe='',Ape='',Cpe='',kpe='',xpe='',Ipe='',Rpe='',Npe='',Ope='',Dpe='',Lpe='',Mpe={folder:ece,bsl:tce,mdo:nce,salesforce:rce,asm:ice,bicep:ace,c:oce,"c-sharp":'',html:sce,cpp:lce,clojure:uce,coldfusion:cce,coffee:dce,config:pce,crystal:fce,crystal_embedded:hce,json:gce,css:mce,csv:bce,xls:yce,cu:Ece,cake:vce,cake_php:_ce,d:Tce,word:Sce,ejs:wce,elixir:Ace,elixir_script:Cce,hex:kce,elm:xce,favicon:Ice,"f-sharp":'',git:Rce,go2:Nce,go:Oce,godot:Dce,gradle:Lce,grails:Mce,graphql:Fce,hacklang:Pce,haml:Bce,mustache:Uce,haskell:$ce,haxe:zce,jade:Hce,java:jce,javascript:Gce,jinja:Vce,julia:Wce,karma:qce,kotlin:Kce,dart:Yce,less:Xce,liquid:Zce,livescript:Qce,lua:Jce,markdown:ede,argdown:tde,info:nde,clock:rde,maven:ide,nim:ade,github:ode,notebook:sde,nunjucks:lde,npm:ude,ocaml:cde,odata:dde,perl:pde,php:fde,pipeline:hde,pddl:gde,plan:mde,happenings:bde,powershell:yde,prisma:Ede,pug:vde,puppet:_de,purescript:Tde,python:Sde,react:wde,reasonml:Ade,rescript:Cde,R:kde,ruby:xde,html_erb:Ide,rust:Rde,sass:Nde,spring:Ode,slim:Dde,smarty:Lde,sbt:Mde,scala:Fde,ethereum:Pde,stylus:Bde,svelte:Ude,swift:$de,db:zde,terraform:Hde,tex:jde,default:'',twig:Gde,typescript:Vde,tsconfig:Wde,vala:qde,vue:Kde,wasm:Yde,wat:Xde,xml:Zde,yml:Qde,prolog:Jde,zip:epe,wgt:tpe,illustrator:npe,photoshop:rpe,pdf:ipe,font:ape,image:ope,svg:spe,sublime:lpe,"code-search":'',shell:upe,video:cpe,audio:dpe,windows:ppe,jenkins:fpe,babel:hpe,bower:gpe,docker:mpe,"code-climate":'',eslint:bpe,firebase:ype,firefox:Epe,grunt:vpe,gulp:_pe,ionic:Tpe,platformio:Spe,rollup:wpe,stylelint:Ape,yarn:Cpe,webpack:kpe,lock:xpe,license:Ipe,makefile:Rpe,heroku:Npe,todo:Ope,npm_ignored:Dpe,ignored:Lpe};var Hg=Jl&&Jl.__assign||function(){return Hg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return i[1]}return i1.default},nP=function(e){var t=Upe(e),n=t[0],r=t[1];return{svg:Bpe[n],color:r}};Z7.getIcon=nP;var $pe=function(e){return function(t){var n=nP(t);return Hg(Hg({},n),{color:e[n.color]})}},zpe=Z7.themeIcons=$pe;const Ey=({filename:e,height:t,width:n})=>{const r=zpe({blue:"#268bd2",grey:"#657b83","grey-light":"#839496",green:"#859900",orange:"#cb4b16",pink:"#d33682",purple:"#6c71c4",red:"#dc322f",white:"#fdf6e3",yellow:"#b58900",ignore:"#586e75"}),{svg:i,color:a}=r(e),o=Y1e.sanitize(i);return I.jsx("div",{dangerouslySetInnerHTML:{__html:o},style:{width:n,height:t,fill:a}})};var Q7={};Object.defineProperty(Q7,"__esModule",{value:!0});Q7.testFunc=void 0;var Hpe=function(){console.log("test")};Q7.testFunc=Hpe;function jpe(e,t){var n;if(typeof vscode>"u"){if(localStorage.getItem("ide"),window.postIntellijMessage===void 0)throw console.log("Unable to send message: postIntellijMessage is undefined. ",e,t),new Error("postIntellijMessage is undefined");(n=window.postIntellijMessage)==null||n.call(window,e,t);return}vscode.postMessage({type:e,...t})}function qa(e,t,n=0){try{jpe(e,t)}catch(r){n<5?(console.log(`Attempt ${n} failed. Retrying...`),setTimeout(()=>qa(e,t,n+1),Math.pow(2,n)*1e3)):console.error("Max attempts reached. Message could not be sent.",r)}}var rP={exports:{}},iP={};/** + */var R2=60103,N2=60106,nf=60107,rf=60108,af=60114,of=60109,sf=60110,lf=60112,uf=60113,F7=60120,cf=60115,df=60116,xF=60121,IF=60122,RF=60117,NF=60129,OF=60131;if(typeof Symbol=="function"&&Symbol.for){var yr=Symbol.for;R2=yr("react.element"),N2=yr("react.portal"),nf=yr("react.fragment"),rf=yr("react.strict_mode"),af=yr("react.profiler"),of=yr("react.provider"),sf=yr("react.context"),lf=yr("react.forward_ref"),uf=yr("react.suspense"),F7=yr("react.suspense_list"),cf=yr("react.memo"),df=yr("react.lazy"),xF=yr("react.block"),IF=yr("react.server.block"),RF=yr("react.fundamental"),NF=yr("react.debug_trace_mode"),OF=yr("react.legacy_hidden")}function Ja(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R2:switch(e=e.type,e){case nf:case af:case rf:case uf:case F7:return e;default:switch(e=e&&e.$$typeof,e){case sf:case lf:case df:case cf:case of:return e;default:return t}}case N2:return t}}}var $ue=of,zue=R2,Hue=lf,jue=nf,Gue=df,Vue=cf,Wue=N2,que=af,Kue=rf,Yue=uf;yn.ContextConsumer=sf;yn.ContextProvider=$ue;yn.Element=zue;yn.ForwardRef=Hue;yn.Fragment=jue;yn.Lazy=Gue;yn.Memo=Vue;yn.Portal=Wue;yn.Profiler=que;yn.StrictMode=Kue;yn.Suspense=Yue;yn.isAsyncMode=function(){return!1};yn.isConcurrentMode=function(){return!1};yn.isContextConsumer=function(e){return Ja(e)===sf};yn.isContextProvider=function(e){return Ja(e)===of};yn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R2};yn.isForwardRef=function(e){return Ja(e)===lf};yn.isFragment=function(e){return Ja(e)===nf};yn.isLazy=function(e){return Ja(e)===df};yn.isMemo=function(e){return Ja(e)===cf};yn.isPortal=function(e){return Ja(e)===N2};yn.isProfiler=function(e){return Ja(e)===af};yn.isStrictMode=function(e){return Ja(e)===rf};yn.isSuspense=function(e){return Ja(e)===uf};yn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nf||e===af||e===NF||e===rf||e===uf||e===F7||e===OF||typeof e=="object"&&e!==null&&(e.$$typeof===df||e.$$typeof===cf||e.$$typeof===of||e.$$typeof===sf||e.$$typeof===lf||e.$$typeof===RF||e.$$typeof===xF||e[0]===IF)};yn.typeOf=Ja;let mI=e=>typeof e=="object"&&e!=null&&e.nodeType===1,bI=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",u4=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,Xue=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var Zue=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:fe=>fe!==f;if(!mI(e))throw new TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,y=[],T=e;for(;mI(T)&&g(T);){if(T=Xue(T),T===b){y.push(T);break}T!=null&&T===document.body&&u4(T)&&!u4(document.documentElement)||T!=null&&u4(T,m)&&y.push(T)}let E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:R,width:k,top:N,right:B,bottom:q,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?N:c==="end"?q:N+R/2,$=p==="center"?P+k/2:p==="end"?B:P,oe=[];for(let fe=0;fe=0&&P>=0&&q<=v&&B<=E&&N>=W&&q<=D&&P>=pe&&B<=se)return oe;let le=getComputedStyle(ce),L=parseInt(le.borderLeftWidth,10),ie=parseInt(le.borderTopWidth,10),Se=parseInt(le.borderRightWidth,10),X=parseInt(le.borderBottomWidth,10),ke=0,te=0,Me="offsetWidth"in ce?ce.offsetWidth-ce.clientWidth-L-Se:0,Re="offsetHeight"in ce?ce.offsetHeight-ce.clientHeight-ie-X:0,Ze="offsetWidth"in ce?ce.offsetWidth===0?0:H/ce.offsetWidth:0,We="offsetHeight"in ce?ce.offsetHeight===0?0:De/ce.offsetHeight:0;if(b===ce)ke=c==="start"?Q:c==="end"?Q-v:c==="nearest"?V0(A,A+v,v,ie,X,A+Q,A+Q+R,R):Q-v/2,te=p==="start"?$:p==="center"?$-E/2:p==="end"?$-E:V0(w,w+E,E,L,Se,w+$,w+$+k,k),ke=Math.max(0,ke+A),te=Math.max(0,te+w);else{ke=c==="start"?Q-W-ie:c==="end"?Q-D+X+Re:c==="nearest"?V0(W,D,De,ie,X+Re,Q,Q+R,R):Q-(W+De/2)+Re/2,te=p==="start"?$-pe-L:p==="center"?$-(pe+H/2)+Me/2:p==="end"?$-se+Se+Me:V0(pe,se,H,L,Se+Me,$,$+k,k);let{scrollLeft:dt,scrollTop:ot}=ce;ke=Math.max(0,Math.min(ot+ke/We,ce.scrollHeight-De/We+Re)),te=Math.max(0,Math.min(dt+te/Ze,ce.scrollWidth-H/Ze+Me)),Q+=ot-ke,$+=dt-te}oe.push({el:ce,top:ke,left:te})}return oe},$g=function(){return $g=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function q0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=Ap(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function Ap(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?Ap(1,0,n,r,!1):Ap(-1,n-1,n,r,!1):-1}function EI(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(yI(i,e,n)||r&&yI(i,n.document.activeElement,n))})}var r1e=LF(function(e){FF(e).textContent=""},500);function i1e(e,t){var n=FF(t);e&&(n.textContent=e,r1e(t))}function FF(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var a1e=["isInitialMount","highlightedIndex","items","environment"],PF={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function o1e(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){s1e(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(nn({type:i},a))}function s1e(e,t,n,r){var i=t.props,a=t.type,o="on"+P7(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](nn({type:a},r))}function l1e(e,t){return t.changes}function u1e(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var c1e=LF(function(e,t){i1e(e(),t)},200),d1e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function p1e(e){var t=e.id,n=t===void 0?"downshift-"+e1e():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function f1e(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function h1e(e){return e?String(e):""}function P7(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function BF(e){var t=C.useRef(e);return t.current=e,t}function g1e(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=my(m,g.props);var b=e(m,g),y=g.props.stateReducer(m,nn({},g,{changes:b}));return y},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=BF(n),p=C.useCallback(function(m){return u(nn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&o1e(f,my(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Kd={itemToString:h1e,stateReducer:l1e,getA11ySelectionMessage:u1e,scrollIntoView:Jue,environment:typeof window>"u"?{}:window};function bo(e,t,n){n===void 0&&(n=PF);var r=e["default"+P7(t)];return r!==void 0?r:n[t]}function K0(e,t,n){n===void 0&&(n=PF);var r=e[t];if(r!==void 0)return r;var i=e["initial"+P7(t)];return i!==void 0?i:bo(e,t,n)}function m1e(e){var t=K0(e,"selectedItem"),n=K0(e,"isOpen"),r=K0(e,"highlightedIndex"),i=K0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Yd(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function b1e(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!EI(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!EI(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var y1e=function(){return DF};function vI(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=C1(n,a1e);C.useEffect(function(){r||c1e(function(){return e(nn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function E1e(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return d1e(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var v1e=DF;function _I(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return nn({isOpen:!1,highlightedIndex:-1},i&&nn({selectedItem:e.items[t],isOpen:bo(e,"isOpen"),highlightedIndex:bo(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function _1e(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Yd(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:bo(i,"highlightedIndex"),isOpen:bo(i,"isOpen"),selectedItem:bo(i,"selectedItem"),inputValue:bo(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return nn({},e,a)}be.array.isRequired,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.func,be.string,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function T1e(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}$g($g({},Kd),{getA11yStatusMessage:T1e});var B7=0,U7=1,$7=2,z7=3,H7=4,j7=5,G7=6,V7=7,W7=8,zg=9,q7=10,UF=11,$F=12,K7=13,zF=14,HF=15,jF=16,GF=17,VF=18,Y7=19,WF=20,qF=21,X7=22,KF=Object.freeze({__proto__:null,InputKeyDownArrowDown:B7,InputKeyDownArrowUp:U7,InputKeyDownEscape:$7,InputKeyDownHome:z7,InputKeyDownEnd:H7,InputKeyDownPageUp:j7,InputKeyDownPageDown:G7,InputKeyDownEnter:V7,InputChange:W7,InputBlur:zg,InputFocus:q7,MenuMouseLeave:UF,ItemMouseMove:$F,ItemClick:K7,ToggleButtonClick:zF,FunctionToggleMenu:HF,FunctionOpenMenu:jF,FunctionCloseMenu:GF,FunctionSetHighlightedIndex:VF,FunctionSelectItem:Y7,FunctionSetInputValue:WF,FunctionReset:qF,ControlledPropUpdatedSelectedItem:X7});function S1e(e){var t=m1e(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),nn({},t,{inputValue:r})}be.array.isRequired,be.func,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.string,be.string,be.string,be.func,be.string,be.string,be.func,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function w1e(e,t,n){var r=C.useRef(),i=g1e(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){MF(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:X7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[my(a,n),o]}var A1e=nn({},Kd,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:t1e});function C1e(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case K7:o={isOpen:bo(i,"isOpen"),highlightedIndex:bo(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case B7:e.isOpen?o={highlightedIndex:q0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Yd(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case U7:e.isOpen?a?o=_I(i,e.highlightedIndex):o={highlightedIndex:q0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Yd(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case V7:o=_I(i,e.highlightedIndex);break;case $7:o=nn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case j7:o={highlightedIndex:q0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case G7:o={highlightedIndex:q0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case z7:o={highlightedIndex:Ap(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case H7:o={highlightedIndex:Ap(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case zg:o=nn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case W7:o={isOpen:!0,highlightedIndex:bo(i,"highlightedIndex"),inputValue:t.inputValue};break;case q7:o={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case Y7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case X7:o={inputValue:t.inputValue};break;default:return _1e(e,t,KF)}return nn({},e,o)}var k1e=["onMouseLeave","refKey","ref"],x1e=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],I1e=["onClick","onPress","refKey","ref"],R1e=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];YF.stateChangeTypes=KF;function YF(e){e===void 0&&(e={});var t=nn({},A1e,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=S1e(t),f=w1e(C1e,p,t),m=f[0],g=f[1],b=m.isOpen,y=m.highlightedIndex,T=m.selectedItem,E=m.inputValue,v=C.useRef(null),w=C.useRef({}),A=C.useRef(null),R=C.useRef(null),k=C.useRef(!0),N=p1e(t),B=C.useRef(),q=BF({state:m,props:t}),P=C.useCallback(function(ke){return w.current[N.getItemId(ke)]},[N]);vI(s,[b,y,E,i],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),vI(u,[T],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=E1e({menuElement:v.current,highlightedIndex:y,isOpen:b,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});v1e({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var ke=n||r||b;ke&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var $=b1e(b,[A,v,R],o,function(){g({type:zg,selectItem:!1})}),oe=y1e();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var ke;if(!b)w.current={};else if(((ke=o.document)==null?void 0:ke.activeElement)!==A.current){var te;A==null||(te=A.current)==null||te.focus()}},[b,o]);var fe=C.useMemo(function(){return{ArrowDown:function(te){te.preventDefault(),g({type:B7,altKey:te.altKey,getItemNodeFromIndex:P})},ArrowUp:function(te){te.preventDefault(),g({type:U7,altKey:te.altKey,getItemNodeFromIndex:P})},Home:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:z7,getItemNodeFromIndex:P}))},End:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:H7,getItemNodeFromIndex:P}))},Escape:function(te){var Me=q.current.state;(Me.isOpen||Me.inputValue||Me.selectedItem||Me.highlightedIndex>-1)&&(te.preventDefault(),g({type:$7}))},Enter:function(te){var Me=q.current.state;!Me.isOpen||te.which===229||(te.preventDefault(),g({type:V7,getItemNodeFromIndex:P}))},PageUp:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:j7,getItemNodeFromIndex:P}))},PageDown:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:G7,getItemNodeFromIndex:P}))}}},[g,q,P]),ce=C.useCallback(function(ke){return nn({id:N.labelId,htmlFor:N.inputId},ke)},[N]),De=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onMouseLeave,We=Re.refKey,dt=We===void 0?"ref":We,ot=Re.ref,je=C1(Re,k1e),pt=te===void 0?{}:te;return pt.suppressRefError,nn((Me={},Me[dt]=W0(ot,function(U){v.current=U}),Me.id=N.menuId,Me.role="listbox",Me["aria-labelledby"]=je&&je["aria-label"]?void 0:""+N.labelId,Me.onMouseLeave=qo(Ze,function(){g({type:UF})}),Me),je)},[g,oe,N]),H=C.useCallback(function(ke){var te,Me,Re=ke===void 0?{}:ke,Ze=Re.item,We=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,je=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,re=Re.onClick;Re.onPress;var de=Re.disabled,xe=C1(Re,x1e),ye=q.current,Te=ye.props,Le=ye.state,ze=f1e(Ze,We,Te.items,"Pass either item or index to getItemProps!"),Ye=ze[1],jt="onClick",ue=re,Ee=function(){Ye!==Le.highlightedIndex&&(Q.current=!1,g({type:$F,index:Ye,disabled:de}))},qe=function(){g({type:K7,index:Ye})},j=function(Ve){return Ve.preventDefault()};return nn((te={},te[ot]=W0(je,function(me){me&&(w.current[N.getItemId(Ye)]=me)}),te.disabled=de,te.role="option",te["aria-selected"]=""+(Ye===Le.highlightedIndex),te.id=N.getItemId(Ye),te),!de&&(Me={},Me[jt]=qo(ue,qe),Me),{onMouseMove:qo(pt,Ee),onMouseDown:qo(U,j)},xe)},[g,q,Q,N]),W=C.useCallback(function(ke){var te,Me=ke===void 0?{}:ke,Re=Me.onClick;Me.onPress;var Ze=Me.refKey,We=Ze===void 0?"ref":Ze,dt=Me.ref,ot=C1(Me,I1e),je=q.current.state,pt=function(){g({type:zF})};return nn((te={},te[We]=W0(dt,function(U){R.current=U}),te["aria-controls"]=N.menuId,te["aria-expanded"]=je.isOpen,te.id=N.toggleButtonId,te.tabIndex=-1,te),!ot.disabled&&nn({},{onClick:qo(Re,pt)}),ot)},[g,q,N]),se=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onKeyDown,We=Re.onChange,dt=Re.onInput,ot=Re.onFocus,je=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,re=Re.ref,de=C1(Re,R1e),xe=te===void 0?{}:te;xe.suppressRefError;var ye=q.current.state,Te=function(j){var me=n1e(j);me&&fe[me]&&fe[me](j)},Le=function(j){g({type:W7,inputValue:j.target.value})},ze=function(j){if(ye.isOpen&&!$.current.isMouseDown){var me=j.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:zg,selectItem:!me})}},Ye=function(){ye.isOpen||g({type:q7})},jt="onChange",ue={};if(!de.disabled){var Ee;ue=(Ee={},Ee[jt]=qo(We,dt,Le),Ee.onKeyDown=qo(Ze,Te),Ee.onBlur=qo(je,ze),Ee.onFocus=qo(ot,Ye),Ee)}return nn((Me={},Me[U]=W0(re,function(qe){A.current=qe}),Me["aria-activedescendant"]=ye.isOpen&&ye.highlightedIndex>-1?N.getItemId(ye.highlightedIndex):"",Me["aria-autocomplete"]="list",Me["aria-controls"]=N.menuId,Me["aria-expanded"]=ye.isOpen,Me["aria-labelledby"]=de&&de["aria-label"]?void 0:""+N.labelId,Me.autoComplete="off",Me.id=N.inputId,Me.role="combobox",Me.value=ye.inputValue,Me),ue,de)},[oe,q,N,fe,g,$,o]),D=C.useCallback(function(){g({type:HF})},[g]),pe=C.useCallback(function(){g({type:GF})},[g]),le=C.useCallback(function(){g({type:jF})},[g]),L=C.useCallback(function(ke){g({type:VF,highlightedIndex:ke})},[g]),ie=C.useCallback(function(ke){g({type:Y7,selectedItem:ke})},[g]),Se=C.useCallback(function(ke){g({type:WF,inputValue:ke})},[g]),X=C.useCallback(function(){g({type:qF})},[g]);return{getItemProps:H,getLabelProps:ce,getMenuProps:De,getInputProps:se,getToggleButtonProps:W,toggleMenu:D,openMenu:le,closeMenu:pe,setHighlightedIndex:L,setInputValue:Se,selectItem:ie,reset:X,highlightedIndex:y,isOpen:b,selectedItem:T,inputValue:E}}function N1e(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}be.array,be.array,be.array,be.func,be.func,be.func,be.number,be.number,be.number,be.func,be.func,be.string,be.string,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});Kd.itemToString,Kd.stateReducer,Kd.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:XF,setPrototypeOf:TI,isFrozen:O1e,getPrototypeOf:D1e,getOwnPropertyDescriptor:ZF}=Object;let{freeze:ii,seal:Ya,create:QF}=Object,{apply:by,construct:yy}=typeof Reflect<"u"&&Reflect;ii||(ii=function(t){return t});Ya||(Ya=function(t){return t});by||(by=function(t,n,r){return t.apply(n,r)});yy||(yy=function(t,n){return new t(...n)});const Y0=va(Array.prototype.forEach),SI=va(Array.prototype.pop),ld=va(Array.prototype.push),Fh=va(String.prototype.toLowerCase),c4=va(String.prototype.toString),L1e=va(String.prototype.match),ud=va(String.prototype.replace),M1e=va(String.prototype.indexOf),F1e=va(String.prototype.trim),Ni=va(RegExp.prototype.test),cd=P1e(TypeError);function va(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Fh;TI&&TI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(O1e(t)||(t[r]=a),i=a)}e[i]=!0}return e}function r1(e){const t=QF(null);for(const[n,r]of XF(e))ZF(e,n)!==void 0&&(t[n]=r);return t}function X0(e,t){for(;e!==null;){const r=ZF(e,t);if(r){if(r.get)return va(r.get);if(typeof r.value=="function")return va(r.value)}e=D1e(e)}function n(r){return console.warn("fallback value for",r),null}return n}const wI=ii(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),d4=ii(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),p4=ii(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B1e=ii(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),f4=ii(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U1e=ii(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),AI=ii(["#text"]),CI=ii(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),h4=ii(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kI=ii(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z0=ii(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$1e=Ya(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z1e=Ya(/<%[\w\W]*|[\w\W]*%>/gm),H1e=Ya(/\${[\w\W]*}/gm),j1e=Ya(/^data-[\-\w.\u00B7-\uFFFF]/),G1e=Ya(/^aria-[\-\w]+$/),JF=Ya(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V1e=Ya(/^(?:\w+script|data):/i),W1e=Ya(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eP=Ya(/^html$/i);var xI=Object.freeze({__proto__:null,MUSTACHE_EXPR:$1e,ERB_EXPR:z1e,TMPLIT_EXPR:H1e,DATA_ATTR:j1e,ARIA_ATTR:G1e,IS_ALLOWED_URI:JF,IS_SCRIPT_OR_DATA:V1e,ATTR_WHITESPACE:W1e,DOCTYPE_NAME:eP});const q1e=function(){return typeof window>"u"?null:window},K1e=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function tP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q1e();const t=Ke=>tP(Ke);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,b=u.prototype,y=X0(b,"cloneNode"),T=X0(b,"nextSibling"),E=X0(b,"childNodes"),v=X0(b,"parentNode");if(typeof o=="function"){const Ke=n.createElement("template");Ke.content&&Ke.content.ownerDocument&&(n=Ke.content.ownerDocument)}let w,A="";const{implementation:R,createNodeIterator:k,createDocumentFragment:N,getElementsByTagName:B}=n,{importNode:q}=r;let P={};t.isSupported=typeof XF=="function"&&typeof v=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:$,TMPLIT_EXPR:oe,DATA_ATTR:fe,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:H}=xI;let{IS_ALLOWED_URI:W}=xI,se=null;const D=At({},[...wI,...d4,...p4,...f4,...AI]);let pe=null;const le=At({},[...CI,...h4,...kI,...Z0]);let L=Object.seal(QF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Se=null,X=!0,ke=!0,te=!1,Me=!0,Re=!1,Ze=!1,We=!1,dt=!1,ot=!1,je=!1,pt=!1,U=!0,re=!1;const de="user-content-";let xe=!0,ye=!1,Te={},Le=null;const ze=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ye=null;const jt=At({},["audio","video","img","source","image","track"]);let ue=null;const Ee=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",j="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let Ve=me,ge=!1,G=null;const K=At({},[qe,j,me],c4);let ne=null;const ve=["application/xhtml+xml","text/html"],Qe="text/html";let Fe=null,at=null;const rt=n.createElement("form"),Je=function(J){return J instanceof RegExp||J instanceof Function},Rt=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(at&&at===J)){if((!J||typeof J!="object")&&(J={}),J=r1(J),ne=ve.indexOf(J.PARSER_MEDIA_TYPE)===-1?ne=Qe:ne=J.PARSER_MEDIA_TYPE,Fe=ne==="application/xhtml+xml"?c4:Fh,se="ALLOWED_TAGS"in J?At({},J.ALLOWED_TAGS,Fe):D,pe="ALLOWED_ATTR"in J?At({},J.ALLOWED_ATTR,Fe):le,G="ALLOWED_NAMESPACES"in J?At({},J.ALLOWED_NAMESPACES,c4):K,ue="ADD_URI_SAFE_ATTR"in J?At(r1(Ee),J.ADD_URI_SAFE_ATTR,Fe):Ee,Ye="ADD_DATA_URI_TAGS"in J?At(r1(jt),J.ADD_DATA_URI_TAGS,Fe):jt,Le="FORBID_CONTENTS"in J?At({},J.FORBID_CONTENTS,Fe):ze,ie="FORBID_TAGS"in J?At({},J.FORBID_TAGS,Fe):{},Se="FORBID_ATTR"in J?At({},J.FORBID_ATTR,Fe):{},Te="USE_PROFILES"in J?J.USE_PROFILES:!1,X=J.ALLOW_ARIA_ATTR!==!1,ke=J.ALLOW_DATA_ATTR!==!1,te=J.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=J.SAFE_FOR_TEMPLATES||!1,Ze=J.WHOLE_DOCUMENT||!1,ot=J.RETURN_DOM||!1,je=J.RETURN_DOM_FRAGMENT||!1,pt=J.RETURN_TRUSTED_TYPE||!1,dt=J.FORCE_BODY||!1,U=J.SANITIZE_DOM!==!1,re=J.SANITIZE_NAMED_PROPS||!1,xe=J.KEEP_CONTENT!==!1,ye=J.IN_PLACE||!1,W=J.ALLOWED_URI_REGEXP||JF,Ve=J.NAMESPACE||me,L=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(ke=!1),je&&(ot=!0),Te&&(se=At({},[...AI]),pe=[],Te.html===!0&&(At(se,wI),At(pe,CI)),Te.svg===!0&&(At(se,d4),At(pe,h4),At(pe,Z0)),Te.svgFilters===!0&&(At(se,p4),At(pe,h4),At(pe,Z0)),Te.mathMl===!0&&(At(se,f4),At(pe,kI),At(pe,Z0))),J.ADD_TAGS&&(se===D&&(se=r1(se)),At(se,J.ADD_TAGS,Fe)),J.ADD_ATTR&&(pe===le&&(pe=r1(pe)),At(pe,J.ADD_ATTR,Fe)),J.ADD_URI_SAFE_ATTR&&At(ue,J.ADD_URI_SAFE_ATTR,Fe),J.FORBID_CONTENTS&&(Le===ze&&(Le=r1(Le)),At(Le,J.FORBID_CONTENTS,Fe)),xe&&(se["#text"]=!0),Ze&&At(se,["html","head","body"]),se.table&&(At(se,["tbody"]),delete ie.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=J.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=K1e(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ii&&ii(J),at=J}},Qt=At({},["mi","mo","mn","ms","mtext"]),kt=At({},["foreignobject","desc","title","annotation-xml"]),rn=At({},["title","style","font","a","script"]),Xt=At({},d4);At(Xt,p4),At(Xt,B1e);const Wr=At({},f4);At(Wr,U1e);const qr=function(J){let Be=v(J);(!Be||!Be.tagName)&&(Be={namespaceURI:Ve,tagName:"template"});const it=Fh(J.tagName),un=Fh(Be.tagName);return G[J.namespaceURI]?J.namespaceURI===j?Be.namespaceURI===me?it==="svg":Be.namespaceURI===qe?it==="svg"&&(un==="annotation-xml"||Qt[un]):!!Xt[it]:J.namespaceURI===qe?Be.namespaceURI===me?it==="math":Be.namespaceURI===j?it==="math"&&kt[un]:!!Wr[it]:J.namespaceURI===me?Be.namespaceURI===j&&!kt[un]||Be.namespaceURI===qe&&!Qt[un]?!1:!Wr[it]&&(rn[it]||!Xt[it]):!!(ne==="application/xhtml+xml"&&G[J.namespaceURI]):!1},Kr=function(J){ld(t.removed,{element:J});try{J.parentNode.removeChild(J)}catch{J.remove()}},Aa=function(J,Be){try{ld(t.removed,{attribute:Be.getAttributeNode(J),from:Be})}catch{ld(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(J),J==="is"&&!pe[J])if(ot||je)try{Kr(Be)}catch{}else try{Be.setAttribute(J,"")}catch{}},si=function(J){let Be=null,it=null;if(dt)J=""+J;else{const or=L1e(J,/^[\r\n\t ]+/);it=or&&or[0]}ne==="application/xhtml+xml"&&Ve===me&&(J=''+J+"");const un=w?w.createHTML(J):J;if(Ve===me)try{Be=new m().parseFromString(un,ne)}catch{}if(!Be||!Be.documentElement){Be=R.createDocument(Ve,"template",null);try{Be.documentElement.innerHTML=ge?A:un}catch{}}const ar=Be.body||Be.documentElement;return J&&it&&ar.insertBefore(n.createTextNode(it),ar.childNodes[0]||null),Ve===me?B.call(Be,Ze?"html":"body")[0]:Ze?Be.documentElement:ar},Or=function(J){return k.call(J.ownerDocument||J,J,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Es=function(J){return J instanceof f&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof p)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},vs=function(J){return typeof s=="function"&&J instanceof s},Yr=function(J,Be,it){P[J]&&Y0(P[J],un=>{un.call(t,Be,it,at)})},_s=function(J){let Be=null;if(Yr("beforeSanitizeElements",J,null),Es(J))return Kr(J),!0;const it=Fe(J.nodeName);if(Yr("uponSanitizeElement",J,{tagName:it,allowedTags:se}),J.hasChildNodes()&&!vs(J.firstElementChild)&&Ni(/<[/\w]/g,J.innerHTML)&&Ni(/<[/\w]/g,J.textContent))return Kr(J),!0;if(!se[it]||ie[it]){if(!ie[it]&&Dr(it)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it)))return!1;if(xe&&!Le[it]){const un=v(J)||J.parentNode,ar=E(J)||J.childNodes;if(ar&&un){const or=ar.length;for(let Zn=or-1;Zn>=0;--Zn)un.insertBefore(y(ar[Zn],!0),T(J))}}return Kr(J),!0}return J instanceof u&&!qr(J)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ni(/<\/no(script|embed|frames)/i,J.innerHTML)?(Kr(J),!0):(Re&&J.nodeType===3&&(Be=J.textContent,Y0([Q,$,oe],un=>{Be=ud(Be,un," ")}),J.textContent!==Be&&(ld(t.removed,{element:J.cloneNode()}),J.textContent=Be)),Yr("afterSanitizeElements",J,null),!1)},qt=function(J,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in rt))return!1;if(!(ke&&!Se[Be]&&Ni(fe,Be))){if(!(X&&Ni(ce,Be))){if(!pe[Be]||Se[Be]){if(!(Dr(J)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,J)||L.tagNameCheck instanceof Function&&L.tagNameCheck(J))&&(L.attributeNameCheck instanceof RegExp&&Ni(L.attributeNameCheck,Be)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(Be))||Be==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ni(W,ud(it,H,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&J!=="script"&&M1e(it,"data:")===0&&Ye[J])){if(!(te&&!Ni(De,ud(it,H,"")))){if(it)return!1}}}}}}return!0},Dr=function(J){return J.indexOf("-")>0},Si=function(J){Yr("beforeSanitizeAttributes",J,null);const{attributes:Be}=J;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};let un=Be.length;for(;un--;){const ar=Be[un],{name:or,namespaceURI:Zn,value:Oo}=ar,no=Fe(or);let Lr=or==="value"?Oo:F1e(Oo);if(it.attrName=no,it.attrValue=Lr,it.keepAttr=!0,it.forceKeepAttr=void 0,Yr("uponSanitizeAttribute",J,it),Lr=it.attrValue,it.forceKeepAttr||(Aa(or,J),!it.keepAttr))continue;if(!Me&&Ni(/\/>/i,Lr)){Aa(or,J);continue}Re&&Y0([Q,$,oe],vf=>{Lr=ud(Lr,vf," ")});const Ef=Fe(J.nodeName);if(qt(Ef,no,Lr)){if(re&&(no==="id"||no==="name")&&(Aa(or,J),Lr=de+Lr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Zn)switch(g.getAttributeType(Ef,no)){case"TrustedHTML":{Lr=w.createHTML(Lr);break}case"TrustedScriptURL":{Lr=w.createScriptURL(Lr);break}}try{Zn?J.setAttributeNS(Zn,or,Lr):J.setAttribute(or,Lr),SI(t.removed)}catch{}}}Yr("afterSanitizeAttributes",J,null)},Nl=function Ke(J){let Be=null;const it=Or(J);for(Yr("beforeSanitizeShadowDOM",J,null);Be=it.nextNode();)Yr("uponSanitizeShadowNode",Be,null),!_s(Be)&&(Be.content instanceof a&&Ke(Be.content),Si(Be));Yr("afterSanitizeShadowDOM",J,null)};return t.sanitize=function(Ke){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,un=null,ar=null;if(ge=!Ke,ge&&(Ke=""),typeof Ke!="string"&&!vs(Ke))if(typeof Ke.toString=="function"){if(Ke=Ke.toString(),typeof Ke!="string")throw cd("dirty is not a string, aborting")}else throw cd("toString is not a function");if(!t.isSupported)return Ke;if(We||Rt(J),t.removed=[],typeof Ke=="string"&&(ye=!1),ye){if(Ke.nodeName){const Oo=Fe(Ke.nodeName);if(!se[Oo]||ie[Oo])throw cd("root node is forbidden and cannot be sanitized in-place")}}else if(Ke instanceof s)Be=si(""),it=Be.ownerDocument.importNode(Ke,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Ze&&Ke.indexOf("<")===-1)return w&&pt?w.createHTML(Ke):Ke;if(Be=si(Ke),!Be)return ot?null:pt?A:""}Be&&dt&&Kr(Be.firstChild);const or=Or(ye?Ke:Be);for(;un=or.nextNode();)_s(un)||(un.content instanceof a&&Nl(un.content),Si(un));if(ye)return Ke;if(ot){if(je)for(ar=N.call(Be.ownerDocument);Be.firstChild;)ar.appendChild(Be.firstChild);else ar=Be;return(pe.shadowroot||pe.shadowrootmode)&&(ar=q.call(r,ar,!0)),ar}let Zn=Ze?Be.outerHTML:Be.innerHTML;return Ze&&se["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ni(eP,Be.ownerDocument.doctype.name)&&(Zn=" +`+Zn),Re&&Y0([Q,$,oe],Oo=>{Zn=ud(Zn,Oo," ")}),w&&pt?w.createHTML(Zn):Zn},t.setConfig=function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rt(Ke),We=!0},t.clearConfig=function(){at=null,We=!1},t.isValidAttribute=function(Ke,J,Be){at||Rt({});const it=Fe(Ke),un=Fe(J);return qt(it,un,Be)},t.addHook=function(Ke,J){typeof J=="function"&&(P[Ke]=P[Ke]||[],ld(P[Ke],J))},t.removeHook=function(Ke){if(P[Ke])return SI(P[Ke])},t.removeHooks=function(Ke){P[Ke]&&(P[Ke]=[])},t.removeAllHooks=function(){P={}},t}var Y1e=tP(),Z7={};const X1e={folder:["folder","white"],"karma.conf.js":["karma","green"],"karma.conf.coffee":["karma","green"],"README.md":["info","blue"],"CHANGELOG.md":["clock","blue"],CHANGELOG:["clock","blue"],"CHANGES.md":["clock","blue"],"VERSION.md":["clock","blue"],VERSION:["clock","blue"],mvnw:["maven","red"],"tsconfig.json":["tsconfig","blue"],"swagger.json":["json","green"],"swagger.yml":["json","green"],"swagger.yaml":["json","green"],"mime.types":["config","grey-light"],Jenkinsfile:["jenkins","red"],"babel.config.js":["babel","yellow"],"babel.config.json":["babel","yellow"],"babel.config.cjs":["babel","yellow"],"bower.json":["bower","orange"],"Bower.json":["bower","orange"],"firebase.json":["firebase","orange"],geckodriver:["firefox","orange"],"Gruntfile.js":["grunt","orange"],"gruntfile.babel.js":["grunt","orange"],"Gruntfile.babel.js":["grunt","orange"],"gruntfile.js":["grunt","orange"],"Gruntfile.coffee":["grunt","orange"],"gruntfile.coffee":["grunt","orange"],"ionic.config.json":["ionic","blue"],"Ionic.config.json":["ionic","blue"],"ionic.project":["ionic","blue"],"Ionic.project":["ionic","blue"],"platformio.ini":["platformio","orange"],"rollup.config.js":["rollup","red"],"sass-lint.yml":["sass","pink"],"stylelint.config.js":["stylelint","white"],"stylelint.config.cjs":["stylelint","white"],"yarn.clean":["yarn","blue"],"yarn.lock":["yarn","blue"],"webpack.config.js":["webpack","blue"],"webpack.config.build.js":["webpack","blue"],"webpack.common.js":["webpack","blue"],"webpack.dev.js":["webpack","blue"],"webpack.prod.js":["webpack","blue"],"npm-debug.log":["npm_ignored","ignore"]},Z1e={".bsl":["bsl","red"],".mdo":["mdo","red"],".cls":["salesforce","blue"],".apex":["salesforce","blue"],".asm":["asm","red"],".s":["asm","red"],".bicep":["bicep","blue"],".c":["c","blue"],".h":["c","purple"],".m":["c","yellow"],".cs":["c-sharp","blue"],".cshtml":["html","blue"],".aspx":["html","blue"],".ascx":["html","green"],".asax":["html","yellow"],".master":["html","yellow"],".cc":["cpp","blue"],".cpp":["cpp","blue"],".cxx":["cpp","blue"],".c++":["cpp","blue"],".hh":["cpp","purple"],".hpp":["cpp","purple"],".hxx":["cpp","purple"],".h++":["cpp","purple"],".mm":["cpp","yellow"],".clj":["clojure","green"],".cljs":["clojure","green"],".cljc":["clojure","green"],".edn":["clojure","blue"],".cfc":["coldfusion","blue"],".cfm":["coldfusion","blue"],".coffee":["coffee","yellow"],".litcoffee":["coffee","yellow"],".config":["config","grey-light"],".cfg":["config","grey-light"],".conf":["config","grey-light"],".cr":["crystal","white"],".ecr":["crystal_embedded","white"],".slang":["crystal_embedded","white"],".cson":["json","yellow"],".css":["css","blue"],".css.map":["css","blue"],".sss":["css","blue"],".csv":["csv","green"],".xls":["xls","green"],".xlsx":["xls","green"],".cu":["cu","green"],".cuh":["cu","purple"],".hu":["cu","purple"],".cake":["cake","red"],".ctp":["cake_php","red"],".d":["d","red"],".doc":["word","blue"],".docx":["word","blue"],".ejs":["ejs","yellow"],".ex":["elixir","purple"],".exs":["elixir_script","purple"],".elm":["elm","blue"],".ico":["favicon","yellow"],".fs":["f-sharp","blue"],".fsx":["f-sharp","blue"],".gitignore":["git","ignore"],".gitconfig":["git","ignore"],".gitkeep":["git","ignore"],".gitattributes":["git","ignore"],".gitmodules":["git","ignore"],".go":["go2","blue"],".slide":["go","blue"],".article":["go","blue"],".gd":["godot","blue"],".godot":["godot","red"],".tres":["godot","yellow"],".tscn":["godot","purple"],".gradle":["gradle","blue"],".groovy":["grails","green"],".gsp":["grails","green"],".gql":["graphql","pink"],".graphql":["graphql","pink"],".graphqls":["graphql","pink"],".hack":["hacklang","orange"],".haml":["haml","red"],".handlebars":["mustache","orange"],".hbs":["mustache","orange"],".hjs":["mustache","orange"],".hs":["haskell","purple"],".lhs":["haskell","purple"],".hx":["haxe","orange"],".hxs":["haxe","yellow"],".hxp":["haxe","blue"],".hxml":["haxe","purple"],".html":["html","orange"],".jade":["jade","red"],".java":["java","red"],".class":["java","red"],".classpath":["java","red"],".properties":["java","red"],".js":["javascript","yellow"],".js.map":["javascript","yellow"],".spec.js":["javascript","orange"],".test.js":["javascript","orange"],".es":["javascript","yellow"],".es5":["javascript","yellow"],".es6":["javascript","yellow"],".es7":["javascript","yellow"],".jinja":["jinja","red"],".jinja2":["jinja","red"],".json":["json","yellow"],".jl":["julia","purple"],".kt":["kotlin","orange"],".kts":["kotlin","orange"],".dart":["dart","blue"],".less":["less","blue"],".liquid":["liquid","green"],".ls":["livescript","blue"],".lua":["lua","blue"],".markdown":["markdown","blue"],".md":["markdown","blue"],".argdown":["argdown","blue"],".ad":["argdown","blue"],".mustache":["mustache","orange"],".stache":["mustache","orange"],".nim":["nim","yellow"],".nims":["nim","yellow"],".github-issues":["github","white"],".ipynb":["notebook","blue"],".njk":["nunjucks","green"],".nunjucks":["nunjucks","green"],".nunjs":["nunjucks","green"],".nunj":["nunjucks","green"],".njs":["nunjucks","green"],".nj":["nunjucks","green"],".npm-debug.log":["npm","ignore"],".npmignore":["npm","red"],".npmrc":["npm","red"],".ml":["ocaml","orange"],".mli":["ocaml","orange"],".cmx":["ocaml","orange"],".cmxa":["ocaml","orange"],".odata":["odata","orange"],".pl":["perl","blue"],".php":["php","purple"],".php.inc":["php","purple"],".pipeline":["pipeline","orange"],".pddl":["pddl","purple"],".plan":["plan","green"],".happenings":["happenings","blue"],".ps1":["powershell","blue"],".psd1":["powershell","blue"],".psm1":["powershell","blue"],".prisma":["prisma","blue"],".pug":["pug","red"],".pp":["puppet","yellow"],".epp":["puppet","yellow"],".purs":["purescript","white"],".py":["python","blue"],".jsx":["react","blue"],".spec.jsx":["react","orange"],".test.jsx":["react","orange"],".cjsx":["react","blue"],".spec.tsx":["react","orange"],".test.tsx":["react","orange"],".re":["reasonml","red"],".res":["rescript","red"],".resi":["rescript","pink"],".R":["R","blue"],".rmd":["R","blue"],".rb":["ruby","red"],".erb":["html_erb","red"],".erb.html":["html_erb","red"],".html.erb":["html_erb","red"],".rs":["rust","grey-light"],".sass":["sass","pink"],".scss":["sass","pink"],".springBeans":["spring","green"],".slim":["slim","orange"],".smarty.tpl":["smarty","yellow"],".tpl":["smarty","yellow"],".sbt":["sbt","blue"],".scala":["scala","red"],".sol":["ethereum","blue"],".styl":["stylus","green"],".svelte":["svelte","red"],".swift":["swift","orange"],".sql":["db","pink"],".soql":["db","blue"],".tf":["terraform","purple"],".tf.json":["terraform","purple"],".tfvars":["terraform","purple"],".tex":["tex","blue"],".sty":["tex","yellow"],".dtx":["tex","orange"],".ins":["tex","white"],".txt":["default","white"],".toml":["config","grey-light"],".twig":["twig","green"],".ts":["typescript","blue"],".tsx":["typescript","blue"],".spec.ts":["typescript","orange"],".test.ts":["typescript","orange"],".vala":["vala","grey-light"],".vapi":["vala","grey-light"],".component":["html","orange"],".vue":["vue","green"],".wasm":["wasm","purple"],".wat":["wat","purple"],".xml":["xml","orange"],".yml":["yml","purple"],".yaml":["yml","purple"],".pro":["prolog","orange"],".jar":["zip","red"],".zip":["zip","grey-light"],".wgt":["wgt","blue"],".ai":["illustrator","yellow"],".psd":["photoshop","blue"],".pdf":["pdf","red"],".eot":["font","red"],".ttf":["font","red"],".woff":["font","red"],".woff2":["font","red"],".gif":["image","purple"],".jpg":["image","purple"],".jpeg":["image","purple"],".png":["image","purple"],".pxm":["image","purple"],".svg":["svg","purple"],".svgx":["image","purple"],".tiff":["image","purple"],".webp":["image","purple"],".sublime-project":["sublime","orange"],".sublime-workspace":["sublime","orange"],".code-search":["code-search","purple"],".sh":["shell","green"],".zsh":["shell","green"],".fish":["shell","green"],".zshrc":["shell","green"],".bashrc":["shell","green"],".mov":["video","pink"],".ogv":["video","pink"],".webm":["video","pink"],".avi":["video","pink"],".mpg":["video","pink"],".mp4":["video","pink"],".mp3":["audio","purple"],".ogg":["audio","purple"],".wav":["audio","purple"],".flac":["audio","purple"],".3ds":["svg","blue"],".3dm":["svg","blue"],".stl":["svg","blue"],".obj":["svg","blue"],".dae":["svg","blue"],".bat":["windows","blue"],".cmd":["windows","blue"],".babelrc":["babel","yellow"],".babelrc.js":["babel","yellow"],".babelrc.cjs":["babel","yellow"],".bowerrc":["bower","orange"],".codeclimate.yml":["code-climate","green"],".eslintrc":["eslint","purple"],".eslintrc.js":["eslint","purple"],".eslintrc.cjs":["eslint","purple"],".eslintrc.yaml":["eslint","purple"],".eslintrc.yml":["eslint","purple"],".eslintrc.json":["eslint","purple"],".eslintignore":["eslint","grey"],".firebaserc":["firebase","orange"],".jshintrc":["javascript","blue"],".jscsrc":["javascript","blue"],".stylelintrc":["stylelint","white"],".stylelintrc.json":["stylelint","white"],".stylelintrc.yaml":["stylelint","white"],".stylelintrc.yml":["stylelint","white"],".stylelintrc.js":["stylelint","white"],".stylelintignore":["stylelint","grey"],".direnv":["config","grey-light"],".env":["config","grey-light"],".static":["config","grey-light"],".editorconfig":["config","grey-light"],".slugignore":["config","grey-light"],".tmp":["clock","grey-light"],".htaccess":["config","grey-light"],".key":["lock","green"],".cert":["lock","green"],".cer":["lock","green"],".crt":["lock","green"],".pem":["lock","green"],".DS_Store":["ignored","ignore"]},Q1e=[["TODO",["todo","blue"]],["Procfile",["heroku","purple"]],["cmakelists.txt",["makefile","blue"]],["CMakeLists.txt",["makefile","blue"]],["CMAKELISTS.txt",["makefile","blue"]],["CMAKELISTS.TXT",["makefile","blue"]],["omakefile",["makefile","grey-light"]],["OMakefile",["makefile","grey-light"]],["OMAKEFILE",["makefile","grey-light"]],["qmakefile",["makefile","purple"]],["QMakefile",["makefile","purple"]],["QMAKEFILE",["makefile","purple"]],["makefile",["makefile","orange"]],["Makefile",["makefile","orange"]],["MAKEFILE",["makefile","orange"]],["CONTRIBUTING",["license","red"]],["COMPILING",["license","orange"]],["COPYING",["license","yellow"]],["LICENCE.md",["license","yellow"]],["LICENSE.md",["license","yellow"]],["LICENCE",["license","yellow"]],["LICENSE",["license","yellow"]],["gulpfile.js",["gulp","red"]],["gulpfile",["gulp","red"]],["Gulpfile",["gulp","red"]],["GULPFILE",["gulp","red"]],["docker-compose.override.yaml",["docker","pink"]],["docker-compose.override.yml",["docker","pink"]],["docker-compose.yaml",["docker","pink"]],["docker-compose.yml",["docker","pink"]],["docker-healthcheck",["docker","green"]],[".dockerignore",["docker","grey"]],["DOCKERFILE",["docker","blue"]],["Dockerfile",["docker","blue"]],["dockerfile",["docker","blue"]],["gemfile",["ruby","red"]],["Gemfile",["ruby","red"]],["mix",["hex","red"]]],J1e={files:X1e,extensions:Z1e,partials:Q1e,default:["default","white"]},ece='',tce='',nce='',rce='',ice='',ace='',oce='',sce='',lce='',uce='',cce='',dce='',pce='',fce='',hce='',gce='',mce='',bce='',yce='',Ece='',vce='',_ce='',Tce='',Sce='',wce='',Ace='',Cce='',kce='',xce='',Ice='',Rce='',Nce='',Oce='',Dce='',Lce='',Mce='',Fce='',Pce='',Bce='',Uce='',$ce='',zce='',Hce='',jce='',Gce='',Vce='',Wce='',qce='',Kce='',Yce='',Xce='',Zce='',Qce='',Jce='',ede='',tde='',nde='',rde='',ide='',ade='',ode='',sde='',lde='',ude='',cde='',dde='',pde='',fde='',hde='',gde='',mde='',bde='',yde='',Ede='',vde='',_de='',Tde='',Sde='',wde='',Ade='',Cde='',kde='',xde='',Ide='',Rde='',Nde='',Ode='',Dde='',Lde='',Mde='',Fde='',Pde='',Bde='',Ude='',$de='',zde='',Hde='',jde='',Gde='',Vde='',Wde='',qde='',Kde='',Yde='',Xde='',Zde='',Qde='',Jde='',epe='',tpe='',npe='',rpe='',ipe='',ape='',ope='',spe='',lpe='',upe='',cpe='',dpe='',ppe='',fpe='',hpe='',gpe='',mpe='',bpe='',ype='',Epe='',vpe='',_pe='',Tpe='',Spe='',wpe='',Ape='',Cpe='',kpe='',xpe='',Ipe='',Rpe='',Npe='',Ope='',Dpe='',Lpe='',Mpe={folder:ece,bsl:tce,mdo:nce,salesforce:rce,asm:ice,bicep:ace,c:oce,"c-sharp":'',html:sce,cpp:lce,clojure:uce,coldfusion:cce,coffee:dce,config:pce,crystal:fce,crystal_embedded:hce,json:gce,css:mce,csv:bce,xls:yce,cu:Ece,cake:vce,cake_php:_ce,d:Tce,word:Sce,ejs:wce,elixir:Ace,elixir_script:Cce,hex:kce,elm:xce,favicon:Ice,"f-sharp":'',git:Rce,go2:Nce,go:Oce,godot:Dce,gradle:Lce,grails:Mce,graphql:Fce,hacklang:Pce,haml:Bce,mustache:Uce,haskell:$ce,haxe:zce,jade:Hce,java:jce,javascript:Gce,jinja:Vce,julia:Wce,karma:qce,kotlin:Kce,dart:Yce,less:Xce,liquid:Zce,livescript:Qce,lua:Jce,markdown:ede,argdown:tde,info:nde,clock:rde,maven:ide,nim:ade,github:ode,notebook:sde,nunjucks:lde,npm:ude,ocaml:cde,odata:dde,perl:pde,php:fde,pipeline:hde,pddl:gde,plan:mde,happenings:bde,powershell:yde,prisma:Ede,pug:vde,puppet:_de,purescript:Tde,python:Sde,react:wde,reasonml:Ade,rescript:Cde,R:kde,ruby:xde,html_erb:Ide,rust:Rde,sass:Nde,spring:Ode,slim:Dde,smarty:Lde,sbt:Mde,scala:Fde,ethereum:Pde,stylus:Bde,svelte:Ude,swift:$de,db:zde,terraform:Hde,tex:jde,default:'',twig:Gde,typescript:Vde,tsconfig:Wde,vala:qde,vue:Kde,wasm:Yde,wat:Xde,xml:Zde,yml:Qde,prolog:Jde,zip:epe,wgt:tpe,illustrator:npe,photoshop:rpe,pdf:ipe,font:ape,image:ope,svg:spe,sublime:lpe,"code-search":'',shell:upe,video:cpe,audio:dpe,windows:ppe,jenkins:fpe,babel:hpe,bower:gpe,docker:mpe,"code-climate":'',eslint:bpe,firebase:ype,firefox:Epe,grunt:vpe,gulp:_pe,ionic:Tpe,platformio:Spe,rollup:wpe,stylelint:Ape,yarn:Cpe,webpack:kpe,lock:xpe,license:Ipe,makefile:Rpe,heroku:Npe,todo:Ope,npm_ignored:Dpe,ignored:Lpe};var Hg=Jl&&Jl.__assign||function(){return Hg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return i[1]}return i1.default},nP=function(e){var t=Upe(e),n=t[0],r=t[1];return{svg:Bpe[n],color:r}};Z7.getIcon=nP;var $pe=function(e){return function(t){var n=nP(t);return Hg(Hg({},n),{color:e[n.color]})}},zpe=Z7.themeIcons=$pe;const Ey=({filename:e,height:t,width:n})=>{const r=zpe({blue:"#268bd2",grey:"#657b83","grey-light":"#839496",green:"#859900",orange:"#cb4b16",pink:"#d33682",purple:"#6c71c4",red:"#dc322f",white:"#fdf6e3",yellow:"#b58900",ignore:"#586e75"}),{svg:i,color:a}=r(e),o=Y1e.sanitize(i);return I.jsx("div",{dangerouslySetInnerHTML:{__html:o},style:{width:n,height:t,fill:a}})};var Q7={};Object.defineProperty(Q7,"__esModule",{value:!0});Q7.testFunc=void 0;var Hpe=function(){console.log("test")};Q7.testFunc=Hpe;function jpe(e,t){var n;if(typeof vscode>"u"){if(localStorage.getItem("ide"),window.postIntellijMessage===void 0)throw console.log("Unable to send message: postIntellijMessage is undefined. ",e,t),new Error("postIntellijMessage is undefined");(n=window.postIntellijMessage)==null||n.call(window,e,t);return}vscode.postMessage({type:e,...t})}function qa(e,t,n=0){try{jpe(e,t)}catch(r){n<5?(console.log(`Attempt ${n} failed. Retrying...`),setTimeout(()=>qa(e,t,n+1),Math.pow(2,n)*1e3)):console.error("Max attempts reached. Message could not be sent.",r)}}var rP={exports:{}},iP={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -354,7 +354,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var O2=C,efe=Jpe;function tfe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nfe=typeof Object.is=="function"?Object.is:tfe,rfe=efe.useSyncExternalStore,ife=O2.useRef,afe=O2.useEffect,ofe=O2.useMemo,sfe=O2.useDebugValue;oP.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=ife(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=ofe(function(){function u(g){if(!c){if(c=!0,p=g,g=r(g),i!==void 0&&o.hasValue){var b=o.value;if(i(b,g))return f=b}return f=g}if(b=f,nfe(p,g))return b;var y=r(g);return i!==void 0&&i(b,y)?b:(p=g,f=y)}var c=!1,p,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,i]);var s=rfe(e,a[0],a[1]);return afe(function(){o.hasValue=!0,o.value=s},[s]),sfe(s),s};aP.exports=oP;var lfe=aP.exports;function ufe(e){e()}let sP=ufe;const cfe=e=>sP=e,dfe=()=>sP,II=Symbol.for("react-redux-context"),RI=typeof globalThis<"u"?globalThis:{};function pfe(){var e;if(!C.createContext)return{};const t=(e=RI[II])!=null?e:RI[II]=new Map;let n=t.get(C.createContext);return n||(n=C.createContext(null),t.set(C.createContext,n)),n}const yl=pfe();function J7(e=yl){return function(){return C.useContext(e)}}const lP=J7(),ffe=()=>{throw new Error("uSES not initialized!")};let uP=ffe;const hfe=e=>{uP=e},gfe=(e,t)=>e===t;function mfe(e=yl){const t=e===yl?lP:J7(e);return function(r,i={}){const{equalityFn:a=gfe,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:p,stabilityCheck:f,noopCheck:m}=t();C.useRef(!0);const g=C.useCallback({[r.name](y){return r(y)}}[r.name],[r,f,o]),b=uP(c.addNestedSub,u.getState,p||u.getState,g,a);return C.useDebugValue(b),b}}const zt=mfe();function bfe(){const e=dfe();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,a=n={callback:r,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const NI={notify(){},get:()=>[]};function yfe(e,t){let n,r=NI;function i(f){return u(),r.subscribe(f)}function a(){r.notify()}function o(){p.onStateChange&&p.onStateChange()}function s(){return!!n}function u(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=bfe())}function c(){n&&(n(),n=void 0,r.clear(),r=NI)}const p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:u,tryUnsubscribe:c,getListeners:()=>r};return p}const Efe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vfe=Efe?C.useLayoutEffect:C.useEffect;function _fe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:a="once"}){const o=C.useMemo(()=>{const c=yfe(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:a}},[e,r,i,a]),s=C.useMemo(()=>e.getState(),[e]);vfe(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,s]);const u=t||yl;return C.createElement(u.Provider,{value:o},n)}function cP(e=yl){const t=e===yl?lP:J7(e);return function(){const{store:r}=t();return r}}const Tfe=cP();function Sfe(e=yl){const t=e===yl?Tfe:cP(e);return function(){return t().dispatch}}const eo=Sfe();hfe(lfe.useSyncExternalStoreWithSelector);cfe(l9.unstable_batchedUpdates);function za(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:eT(e)?2:tT(e)?3:0}function W1(e,t){return xc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function wfe(e,t){return xc(e)===2?e.get(t):e[t]}function dP(e,t,n){var r=xc(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function pP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function eT(e){return Rfe&&e instanceof Map}function tT(e){return Nfe&&e instanceof Set}function Zl(e){return e.o||e.t}function nT(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hP(e);delete t[kn];for(var n=q1(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Afe),Object.freeze(e),t&&Su(e,function(n,r){return rT(r,!0)},!0)),e}function Afe(){za(2)}function iT(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function So(e){var t=Sy[e];return t||za(18,e),t}function Cfe(e,t){Sy[e]||(Sy[e]=t)}function vy(){return Cp}function m4(e,t){t&&(So("Patches"),e.u=[],e.s=[],e.v=t)}function jg(e){_y(e),e.p.forEach(kfe),e.p=null}function _y(e){e===Cp&&(Cp=e.l)}function OI(e){return Cp={p:[],l:Cp,h:e,m:!0,_:0}}function kfe(e){var t=e[kn];t.i===0||t.i===1?t.j():t.g=!0}function b4(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||So("ES5").S(t,e,r),r?(n[kn].P&&(jg(t),za(4)),ps(e)&&(e=Gg(t,e),t.l||Vg(t,e)),t.u&&So("Patches").M(n[kn].t,e,t.u,t.s)):e=Gg(t,n,[]),jg(t),t.u&&t.v(t.u,t.s),e!==fP?e:void 0}function Gg(e,t,n){if(iT(t))return t;var r=t[kn];if(!r)return Su(t,function(s,u){return DI(e,r,t,s,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Vg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=nT(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),Su(a,function(s,u){return DI(e,r,i,s,u,n,o)}),Vg(e,i,!1),n&&e.u&&So("Patches").N(r,n,e.u,e.s)}return r.o}function DI(e,t,n,r,i,a,o){if(El(i)){var s=Gg(e,i,a&&t&&t.i!==3&&!W1(t.R,r)?a.concat(r):void 0);if(dP(n,r,s),!El(s))return;e.m=!1}else o&&n.add(i);if(ps(i)&&!iT(i)){if(!e.h.D&&e._<1)return;Gg(e,i),t&&t.A.l||Vg(e,i)}}function Vg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&rT(t,n)}function y4(e,t){var n=e[kn];return(n?Zl(n):e)[t]}function LI(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ks(e){e.P||(e.P=!0,e.l&&Ks(e.l))}function E4(e){e.o||(e.o=nT(e.t))}function Ty(e,t,n){var r=eT(t)?So("MapSet").F(t,n):tT(t)?So("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:vy(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,c=kp;o&&(u=[s],c=wd);var p=Proxy.revocable(u,c),f=p.revoke,m=p.proxy;return s.k=m,s.j=f,m}(t,n):So("ES5").J(t,n);return(n?n.A:vy()).p.push(r),r}function xfe(e){return El(e)||za(22,e),function t(n){if(!ps(n))return n;var r,i=n[kn],a=xc(n);if(i){if(!i.P&&(i.i<4||!So("ES5").K(i)))return i.t;i.I=!0,r=MI(n,a),i.I=!1}else r=MI(n,a);return Su(r,function(o,s){i&&wfe(i.t,o)===s||dP(r,o,t(s))}),a===3?new Set(r):r}(e)}function MI(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return nT(e)}function Ife(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var u=this[kn];return kp.get(u,a)},set:function(u){var c=this[kn];kp.set(c,a,u)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][kn];if(!s.P)switch(s.i){case 5:r(s)&&Ks(s);break;case 4:n(s)&&Ks(s)}}}function n(a){for(var o=a.t,s=a.k,u=q1(s),c=u.length-1;c>=0;c--){var p=u[c];if(p!==kn){var f=o[p];if(f===void 0&&!W1(o,p))return!0;var m=s[p],g=m&&m[kn];if(g?g.t!==f:!pP(m,f))return!0}}var b=!!o[kn];return u.length!==q1(o).length+(b?0:1)}function r(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var u=0;u1?E-1:0),w=1;w1?p-1:0),m=1;m=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=So("Patches").$;return El(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),ji=new Dfe,gP=ji.produce;ji.produceWithPatches.bind(ji);ji.setAutoFreeze.bind(ji);ji.setUseProxies.bind(ji);ji.applyPatches.bind(ji);ji.createDraft.bind(ji);ji.finishDraft.bind(ji);function xp(e){"@babel/helpers - typeof";return xp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xp(e)}function Lfe(e,t){if(xp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mfe(e){var t=Lfe(e,"string");return xp(t)==="symbol"?t:String(t)}function Ffe(e,t,n){return t=Mfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $I(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ur(1));return n(oT)(e,t)}if(typeof e!="function")throw new Error(Ur(2));var i=e,a=t,o=[],s=o,u=!1;function c(){s===o&&(s=o.slice())}function p(){if(u)throw new Error(Ur(3));return a}function f(y){if(typeof y!="function")throw new Error(Ur(4));if(u)throw new Error(Ur(5));var T=!0;return c(),s.push(y),function(){if(T){if(u)throw new Error(Ur(6));T=!1,c();var v=s.indexOf(y);s.splice(v,1),o=null}}}function m(y){if(!Pfe(y))throw new Error(Ur(7));if(typeof y.type>"u")throw new Error(Ur(8));if(u)throw new Error(Ur(9));try{u=!0,a=i(a,y)}finally{u=!1}for(var T=o=s,E=0;E"u")throw new Error(Ur(12));if(typeof n(void 0,{type:Wg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ur(13))})}function mP(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Ur(14));f[g]=T,p=p||T!==y}return p=p||a.length!==Object.keys(u).length,p?f:u}}function qg(){for(var e=arguments.length,t=new Array(e),n=0;n0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]{let n=e.active;typeof t.stop=="boolean"?n=!t.stop:n=!0;let r;t.index>e.history.length?r={...t.update}:t.delta===!0?(r={...e.history[t.index]},t.update.name&&(r.name=(r.name??"")+t.update.name),t.update.description&&(r.description=(r.description??"")+t.update.description),t.update.observations&&(r.observations=[...r.observations??[],...t.update.observations]),t.update.logs&&(r.logs=[...r.logs??[],...t.update.logs])):t.delta===!1&&(r={...e.history[t.index],...t.update});let i=[...e.history];return r&&(t.index>=i.length?i.push(r):i[t.index]=r),{...e,history:i,active:n}},newSession:(e,{payload:t})=>t?(console.log("NEW SESSION"),{...e,history:t.session_state.history,context_items:t.session_state.context_items,contextItemsAtIndex:{},active:!1,title:t.title,session_id:t.session_id}):{...e,history:[],context_items:[],contextItemsAtIndex:{},active:!1,title:"New Session",session_id:Xd()},setTitle:(e,{payload:t})=>({...e,title:t}),setActive:(e,{payload:t})=>({...e,active:t}),setHistory:(e,{payload:t})=>({...e,history:t}),deleteAtIndex:(e,{payload:t})=>{let n=[...e.history];return n[t]={...n[t],hide:!0},{...e,history:n}},addContextItem:(e,{payload:t})=>(console.log("HERE...",t),{...e,context_items:[...e.context_items,t]}),addContextItemAtIndex:(e,{payload:t})=>({...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:[...e.contextItemsAtIndex[t.index]??[],t.item]}}),addHighlightedCode:(e,{payload:t})=>{let n=[...e.context_items].map(a=>({...a,editing:!1}));const r=t.rangeInFileWithContents.filepath.split(/[\\/]/).pop();for(let a=0;aparseInt(g)-1);if(s>p||u{const n=t.ids.map(r=>`${r.provider_title}-${r.item_id}`);return typeof t.index>"u"?{...e,context_items:e.context_items.filter(r=>!n.includes(`${r.description.id.provider_title}-${r.description.id.item_id}`))}:{...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:(e.contextItemsAtIndex[t.index]??[]).filter(r=>!n.includes(`${r.description.id.provider_title}-${r.description.id.item_id}`))}}},setEditingAtIds:(e,{payload:t})=>{const n=t.ids.map(r=>r.item_id);return typeof t.index>"u"?{...e,context_items:e.context_items.map(r=>({...r,editing:n.includes(r.description.id.item_id)}))}:{...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:(e.contextItemsAtIndex[t.index]??[]).map(r=>({...r,editing:n.includes(r.description.id.item_id)}))}}}}}),{setActive:Zd,setHistory:KI,processSessionUpdate:g0e,newSession:uc,deleteAtIndex:S4,addContextItem:TP,addContextItemAtIndex:SP,addHighlightedCode:m0e,deleteContextWithIds:w4,setTitle:wP,setEditingAtIds:b0e}=_P.actions,y0e=_P.reducer,E0e=Ge.button` + */var O2=C,efe=Jpe;function tfe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nfe=typeof Object.is=="function"?Object.is:tfe,rfe=efe.useSyncExternalStore,ife=O2.useRef,afe=O2.useEffect,ofe=O2.useMemo,sfe=O2.useDebugValue;oP.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=ife(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=ofe(function(){function u(g){if(!c){if(c=!0,p=g,g=r(g),i!==void 0&&o.hasValue){var b=o.value;if(i(b,g))return f=b}return f=g}if(b=f,nfe(p,g))return b;var y=r(g);return i!==void 0&&i(b,y)?b:(p=g,f=y)}var c=!1,p,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,i]);var s=rfe(e,a[0],a[1]);return afe(function(){o.hasValue=!0,o.value=s},[s]),sfe(s),s};aP.exports=oP;var lfe=aP.exports;function ufe(e){e()}let sP=ufe;const cfe=e=>sP=e,dfe=()=>sP,II=Symbol.for("react-redux-context"),RI=typeof globalThis<"u"?globalThis:{};function pfe(){var e;if(!C.createContext)return{};const t=(e=RI[II])!=null?e:RI[II]=new Map;let n=t.get(C.createContext);return n||(n=C.createContext(null),t.set(C.createContext,n)),n}const yl=pfe();function J7(e=yl){return function(){return C.useContext(e)}}const lP=J7(),ffe=()=>{throw new Error("uSES not initialized!")};let uP=ffe;const hfe=e=>{uP=e},gfe=(e,t)=>e===t;function mfe(e=yl){const t=e===yl?lP:J7(e);return function(r,i={}){const{equalityFn:a=gfe,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:p,stabilityCheck:f,noopCheck:m}=t();C.useRef(!0);const g=C.useCallback({[r.name](y){return r(y)}}[r.name],[r,f,o]),b=uP(c.addNestedSub,u.getState,p||u.getState,g,a);return C.useDebugValue(b),b}}const zt=mfe();function bfe(){const e=dfe();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,a=n={callback:r,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const NI={notify(){},get:()=>[]};function yfe(e,t){let n,r=NI;function i(f){return u(),r.subscribe(f)}function a(){r.notify()}function o(){p.onStateChange&&p.onStateChange()}function s(){return!!n}function u(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=bfe())}function c(){n&&(n(),n=void 0,r.clear(),r=NI)}const p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:u,tryUnsubscribe:c,getListeners:()=>r};return p}const Efe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vfe=Efe?C.useLayoutEffect:C.useEffect;function _fe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:a="once"}){const o=C.useMemo(()=>{const c=yfe(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:a}},[e,r,i,a]),s=C.useMemo(()=>e.getState(),[e]);vfe(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,s]);const u=t||yl;return C.createElement(u.Provider,{value:o},n)}function cP(e=yl){const t=e===yl?lP:J7(e);return function(){const{store:r}=t();return r}}const Tfe=cP();function Sfe(e=yl){const t=e===yl?Tfe:cP(e);return function(){return t().dispatch}}const eo=Sfe();hfe(lfe.useSyncExternalStoreWithSelector);cfe(l9.unstable_batchedUpdates);function za(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:eT(e)?2:tT(e)?3:0}function W1(e,t){return xc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function wfe(e,t){return xc(e)===2?e.get(t):e[t]}function dP(e,t,n){var r=xc(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function pP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function eT(e){return Rfe&&e instanceof Map}function tT(e){return Nfe&&e instanceof Set}function Zl(e){return e.o||e.t}function nT(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hP(e);delete t[kn];for(var n=q1(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Afe),Object.freeze(e),t&&Su(e,function(n,r){return rT(r,!0)},!0)),e}function Afe(){za(2)}function iT(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function So(e){var t=Sy[e];return t||za(18,e),t}function Cfe(e,t){Sy[e]||(Sy[e]=t)}function vy(){return Cp}function m4(e,t){t&&(So("Patches"),e.u=[],e.s=[],e.v=t)}function jg(e){_y(e),e.p.forEach(kfe),e.p=null}function _y(e){e===Cp&&(Cp=e.l)}function OI(e){return Cp={p:[],l:Cp,h:e,m:!0,_:0}}function kfe(e){var t=e[kn];t.i===0||t.i===1?t.j():t.g=!0}function b4(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||So("ES5").S(t,e,r),r?(n[kn].P&&(jg(t),za(4)),fs(e)&&(e=Gg(t,e),t.l||Vg(t,e)),t.u&&So("Patches").M(n[kn].t,e,t.u,t.s)):e=Gg(t,n,[]),jg(t),t.u&&t.v(t.u,t.s),e!==fP?e:void 0}function Gg(e,t,n){if(iT(t))return t;var r=t[kn];if(!r)return Su(t,function(s,u){return DI(e,r,t,s,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Vg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=nT(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),Su(a,function(s,u){return DI(e,r,i,s,u,n,o)}),Vg(e,i,!1),n&&e.u&&So("Patches").N(r,n,e.u,e.s)}return r.o}function DI(e,t,n,r,i,a,o){if(El(i)){var s=Gg(e,i,a&&t&&t.i!==3&&!W1(t.R,r)?a.concat(r):void 0);if(dP(n,r,s),!El(s))return;e.m=!1}else o&&n.add(i);if(fs(i)&&!iT(i)){if(!e.h.D&&e._<1)return;Gg(e,i),t&&t.A.l||Vg(e,i)}}function Vg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&rT(t,n)}function y4(e,t){var n=e[kn];return(n?Zl(n):e)[t]}function LI(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ks(e){e.P||(e.P=!0,e.l&&Ks(e.l))}function E4(e){e.o||(e.o=nT(e.t))}function Ty(e,t,n){var r=eT(t)?So("MapSet").F(t,n):tT(t)?So("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:vy(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,c=kp;o&&(u=[s],c=wd);var p=Proxy.revocable(u,c),f=p.revoke,m=p.proxy;return s.k=m,s.j=f,m}(t,n):So("ES5").J(t,n);return(n?n.A:vy()).p.push(r),r}function xfe(e){return El(e)||za(22,e),function t(n){if(!fs(n))return n;var r,i=n[kn],a=xc(n);if(i){if(!i.P&&(i.i<4||!So("ES5").K(i)))return i.t;i.I=!0,r=MI(n,a),i.I=!1}else r=MI(n,a);return Su(r,function(o,s){i&&wfe(i.t,o)===s||dP(r,o,t(s))}),a===3?new Set(r):r}(e)}function MI(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return nT(e)}function Ife(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var u=this[kn];return kp.get(u,a)},set:function(u){var c=this[kn];kp.set(c,a,u)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][kn];if(!s.P)switch(s.i){case 5:r(s)&&Ks(s);break;case 4:n(s)&&Ks(s)}}}function n(a){for(var o=a.t,s=a.k,u=q1(s),c=u.length-1;c>=0;c--){var p=u[c];if(p!==kn){var f=o[p];if(f===void 0&&!W1(o,p))return!0;var m=s[p],g=m&&m[kn];if(g?g.t!==f:!pP(m,f))return!0}}var b=!!o[kn];return u.length!==q1(o).length+(b?0:1)}function r(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var u=0;u1?E-1:0),w=1;w1?p-1:0),m=1;m=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=So("Patches").$;return El(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),ji=new Dfe,gP=ji.produce;ji.produceWithPatches.bind(ji);ji.setAutoFreeze.bind(ji);ji.setUseProxies.bind(ji);ji.applyPatches.bind(ji);ji.createDraft.bind(ji);ji.finishDraft.bind(ji);function xp(e){"@babel/helpers - typeof";return xp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xp(e)}function Lfe(e,t){if(xp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mfe(e){var t=Lfe(e,"string");return xp(t)==="symbol"?t:String(t)}function Ffe(e,t,n){return t=Mfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $I(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ur(1));return n(oT)(e,t)}if(typeof e!="function")throw new Error(Ur(2));var i=e,a=t,o=[],s=o,u=!1;function c(){s===o&&(s=o.slice())}function p(){if(u)throw new Error(Ur(3));return a}function f(y){if(typeof y!="function")throw new Error(Ur(4));if(u)throw new Error(Ur(5));var T=!0;return c(),s.push(y),function(){if(T){if(u)throw new Error(Ur(6));T=!1,c();var v=s.indexOf(y);s.splice(v,1),o=null}}}function m(y){if(!Pfe(y))throw new Error(Ur(7));if(typeof y.type>"u")throw new Error(Ur(8));if(u)throw new Error(Ur(9));try{u=!0,a=i(a,y)}finally{u=!1}for(var T=o=s,E=0;E"u")throw new Error(Ur(12));if(typeof n(void 0,{type:Wg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ur(13))})}function mP(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Ur(14));f[g]=T,p=p||T!==y}return p=p||a.length!==Object.keys(u).length,p?f:u}}function qg(){for(var e=arguments.length,t=new Array(e),n=0;n0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]{let n=e.active;typeof t.stop=="boolean"?n=!t.stop:n=!0;let r;t.index>e.history.length?r={...t.update}:t.delta===!0?(r={...e.history[t.index]},t.update.name&&(r.name=(r.name??"")+t.update.name),t.update.description&&(r.description=(r.description??"")+t.update.description),t.update.observations&&(r.observations=[...r.observations??[],...t.update.observations]),t.update.logs&&(r.logs=[...r.logs??[],...t.update.logs])):t.delta===!1&&(r={...e.history[t.index],...t.update});let i=[...e.history];return r&&(t.index>=i.length?i.push(r):i[t.index]=r),{...e,history:i,active:n}},newSession:(e,{payload:t})=>t?(console.log("NEW SESSION"),{...e,history:t.session_state.history,context_items:t.session_state.context_items,contextItemsAtIndex:{},active:!1,title:t.title,session_id:t.session_id}):{...e,history:[],context_items:[],contextItemsAtIndex:{},active:!1,title:"New Session",session_id:Xd()},setTitle:(e,{payload:t})=>({...e,title:t}),setActive:(e,{payload:t})=>({...e,active:t}),setHistory:(e,{payload:t})=>({...e,history:t}),deleteAtIndex:(e,{payload:t})=>{let n=[...e.history];return n[t]={...n[t],hide:!0},{...e,history:n}},addContextItem:(e,{payload:t})=>(console.log("HERE...",t),{...e,context_items:[...e.context_items,t]}),addContextItemAtIndex:(e,{payload:t})=>({...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:[...e.contextItemsAtIndex[t.index]??[],t.item]}}),addHighlightedCode:(e,{payload:t})=>{let n=[...e.context_items].map(a=>({...a,editing:!1}));const r=t.rangeInFileWithContents.filepath.split(/[\\/]/).pop();for(let a=0;aparseInt(g)-1);if(s>p||u{const n=t.ids.map(r=>`${r.provider_title}-${r.item_id}`);return typeof t.index>"u"?{...e,context_items:e.context_items.filter(r=>!n.includes(`${r.description.id.provider_title}-${r.description.id.item_id}`))}:{...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:(e.contextItemsAtIndex[t.index]??[]).filter(r=>!n.includes(`${r.description.id.provider_title}-${r.description.id.item_id}`))}}},setEditingAtIds:(e,{payload:t})=>{const n=t.ids.map(r=>r.item_id);return typeof t.index>"u"?{...e,context_items:e.context_items.map(r=>({...r,editing:n.includes(r.description.id.item_id)}))}:{...e,contextItemsAtIndex:{...e.contextItemsAtIndex,[t.index]:(e.contextItemsAtIndex[t.index]??[]).map(r=>({...r,editing:n.includes(r.description.id.item_id)}))}}}}}),{setActive:Zd,setHistory:KI,processSessionUpdate:g0e,newSession:uc,deleteAtIndex:S4,addContextItem:TP,addContextItemAtIndex:SP,addHighlightedCode:m0e,deleteContextWithIds:w4,setTitle:wP,setEditingAtIds:b0e}=_P.actions,y0e=_P.reducer,E0e=Ge.button` border: none; color: ${Yt}; background-color: ${Vt}; @@ -606,7 +606,7 @@ Hint: It might not be working because maybe you're not up to date with the Meili ${({isLastItem:e})=>e&&"border-bottom: 1px solid gray;"} cursor: pointer; z-index: 500; -`,QI=ut.forwardRef((e,t)=>{var Te,Le,ze,Ye,jt,ue,Ee,qe;const n=zt(j=>j.serverState.meilisearchUrl||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const j=new G0e({host:n});i(j)},[n]);const a=C.useContext(to),o=eo(),s=zt(j=>j.config.workspacePaths);zt(j=>j.sessionState.history);const[u,c]=ut.useState([]),[p,f]=ut.useState(0),[m,g]=ut.useState([]),b=ut.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Te=b.current)==null?void 0:Te.scrollHeight,(Le=b.current)==null?void 0:Le.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[y,T]=C.useState(!1),[E,v]=C.useState(void 0),[w,A]=C.useState(void 0),R=zt(j=>{var me;return((me=j.serverState.slashCommands)==null?void 0:me.map(Ve=>({name:`/${Ve.name}`,description:Ve.description})))||[]}),k=zt(j=>typeof e.index<"u"?j.sessionState.contextItemsAtIndex[e.index]||[]:j.sessionState.context_items||[]),N=zt(j=>j.sessionState.history),B=zt(j=>j.sessionState.active);C.useEffect(()=>{y||(v(void 0),A(void 0))},[y]);const q=zt(j=>j.serverState.contextProviders),P=()=>{T(!1),v(void 0),A(void 0),H.setInputValue("@")};C.useEffect(()=>{E||g((q==null?void 0:q.map(j=>({name:j.display_title,description:j.description,id:j.title})).sort((j,me)=>j.id==="file"?-1:1))||[])},[E]);const[Q,$]=C.useState(""),oe=C.useCallback(async(j,me)=>{const Ve=await(a==null?void 0:a.getContextItem(j,me));e.isMainInput?o(TP(Ve)):typeof e.index<"u"&&o(SP({item:Ve,index:e.index}))},[a,e.index]),fe=C.useCallback(({inputValue:j,highlightedIndex:me})=>{var Ve;if(!j){g([]),v(void 0),T(!1);return}if(Q===""&&(q!=null&&q.some(ge=>ge.display_title===j))){H.setInputValue(""),$("");return}if($(j),w&&!j.startsWith(`@${w.title}`)&&A(void 0),(Ve=e.onInputValueChange)==null||Ve.call(e,j),j.endsWith("@")||y){const ge=(j==null?void 0:j.split("@"))||[];if(ge.length>1){T(!0);const G=ge[ge.length-1]||"";if(E&&!j.endsWith("@")){const K=G.split(" ");ce(E.title,K.length>1?K[1]:"").then(ne=>{g(ne)})}else{const K=(q==null?void 0:q.filter(ne=>`@${ne.title}`.toLowerCase().startsWith(j.toLowerCase())||`@${ne.display_title}`.toLowerCase().startsWith(j.toLowerCase())).map(ne=>({name:ne.display_title,description:ne.description,id:ne.title})).sort((ne,ve)=>ne.id==="file"?-1:1))||[];g(K),T(!0)}return}else T(!1),v(void 0)}v(void 0),g((R==null?void 0:R.filter(ge=>{const G=ge.name.toLowerCase(),K=j.toLowerCase();return G.startsWith(K)&&G!==K}))||[]),(j.startsWith("/")||j.startsWith("@"))&&o(Ad(null))},[R,y,E,w]),ce=async(j,me)=>{const Ve=s&&s.length>0?`workspace_dir IN [ ${s.map(ge=>`"${ge}"`).join(", ")} ] AND provider_name = '${j}'`:void 0;try{const ge=await(r==null?void 0:r.index(J0e).search(me,{filter:Ve}));return(ge==null?void 0:ge.hits.map(G=>({name:G.name,description:G.description,id:G.id,content:G.content})))||[]}catch(ge){return console.log("Error searching context items",ge),[]}},{getInputProps:De,...H}=YF({onInputValueChange:fe,items:m,itemToString(j){return j?j.name:""}});C.useEffect(()=>{H.highlightedIndex<0&&H.setHighlightedIndex(0)},[H.inputValue]);const W=ut.useRef(null),se=ut.useRef(null),D=()=>{var j;return(((j=W.current)==null?void 0:j.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>RP};C.useImperativeHandle(t,()=>H,[H]);const pe=ut.useRef(null),le=C.useCallback(()=>{var ge;if(ye(!0),!pe.current)return;const j=pe.current.querySelectorAll(`.pill-button-${e.index||"main"}`),me=Array.from(j),Ve=me.findIndex(G=>G===document.activeElement);if(Ve===me.length-1)(ge=b.current)==null||ge.focus();else if(Ve!==-1){const G=me[(Ve+1)%me.length];G==null||G.focus()}else{const G=me[0];G==null||G.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const j=me=>{me.key==="Tab"&&(me.preventDefault(),le())};return b.current.addEventListener("keydown",j),()=>{var me;(me=b.current)==null||me.removeEventListener("keydown",j)}}},[b.current]),C.useEffect(()=>{e.value&&H.setInputValue(e.value)},[e.value,H.setInputValue]);const[L,ie]=C.useState(!1);C.useLayoutEffect(()=>{se.current&&H.setHighlightedIndex(0)},[m,H.setHighlightedIndex,se.current]);const[Se,X]=C.useState(!1),[ke,te]=C.useState(!1);C.useEffect(()=>{const j=Ve=>{Ve.key==="Meta"&&X(!0)},me=Ve=>{Ve.key==="Meta"&&X(!1)};return window.addEventListener("keydown",j),window.addEventListener("keyup",me),()=>{window.removeEventListener("keydown",j),window.removeEventListener("keyup",me)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const j=me=>{var Ve;me.data.type==="focusContinueInput"?(b.current.focus(),o(Ad(null))):me.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(Ve=b.current)!=null&&Ve.value.startsWith("/edit")||H.setInputValue("/edit "),o(Ad(null))):me.data.type==="focusContinueInputWithNewSession"&&(a==null||a.stopSession(),o(uc()),o(Ad(null)))};return window.addEventListener("message",j),()=>{window.removeEventListener("message",j)}},[b.current,e.isMainInput]);const Me=ut.useRef(null),Re=C.useCallback(j=>{const me=m[H.highlightedIndex],Ve=me==null?void 0:me.name,ge=q.find(G=>G.display_title===Ve);if(ge){if(ge.dynamic&&ge.requires_query){A(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}else if(ge.dynamic){if(!me.id)return;const G=H.inputValue.split("@"),K=G[G.length-1];if(oe(me.id,K),H.inputValue.includes("@")){const ne=q.find(ve=>ve.title===me.id);!E&&!(ne!=null&&ne.dynamic)?(H.setInputValue(`@${me.id} `),v(ne)):H.setInputValue("")}H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}}else{if(E&&me.id){oe(me.id,""),H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}v(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault(),ce(ge.title,"").then(G=>g(G))},[m,H.highlightedIndex,q,E,H.inputValue,oe]),[Ze,We]=C.useState(!1),[dt,ot]=C.useState(!1),[je,pt]=C.useState(void 0),[U,re]=C.useState(void 0),de=ut.useRef(null),[xe,ye]=C.useState(!1);return C.useEffect(()=>{ke||ye(!1)},[ke]),I.jsxs("div",{ref:de,style:{paddingTop:"4px",backgroundColor:Ht},children:[k.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",paddingTop:pr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var j;H.setInputValue("@"),(j=b.current)==null||j.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Ye=H.inputValue)==null?void 0:Ye.startsWith("/edit"))||ke&&Se&&((jt=H.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||k.length>0&&xe?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:pe,style:{backgroundColor:Ht},children:[k.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:j=>{ot(me=>!me)},id:"toggle-context-div",children:dt?I.jsx(gZ,{width:"14px",height:"14px",color:Et}):I.jsx(yZ,{width:"14px",height:"14px",color:Et})}),I.jsx(nhe,{className:k.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var j;o(w4({ids:k.map(me=>me.description.id),index:e.index})),(j=b.current)==null||j.focus(),pt(void 0),re(void 0)},onKeyDown:j=>{var me;j.key==="Backspace"&&(o(w4({ids:k.map(Ve=>Ve.description.id),index:e.index})),(me=b.current)==null||me.focus(),pt(void 0),re(void 0))},children:I.jsx(kL,{width:"1.4em",height:"1.4em"})}),k.map((j,me)=>{var Ve,ge,G,K;return I.jsx(A0e,{inputIndex:e.index,areMultipleItems:k.length>1,item:j,editing:j.editing&&((ge=(Ve=b.current)==null?void 0:Ve.value)==null?void 0:ge.startsWith("/edit")),editingAny:(K=(G=b.current)==null?void 0:G.value)==null?void 0:K.startsWith("/edit"),stepIndex:e.index,index:me,onDelete:()=>{var ne;o(w4({ids:[j.description.id],index:e.index})),(ne=b.current)==null||ne.focus(),(j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name||j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name)&&(pt(void 0),re(void 0))},onClick:ne=>{j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name?re(void 0):re(j)},onBlur:()=>{re(void 0)},toggleViewContent:()=>{pt(ne=>{if(!ne)return j;if(!(ne.description.id.item_id===j.description.id.item_id&&ne.description.id.provider_name===j.description.id.provider_name))return j})},previewing:j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name,focusing:j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name,prefixInputWithEdit:ne=>{var ve,Qe,Fe;!ne&&((ve=b.current)!=null&&ve.value.startsWith("/edit"))&&H.setInputValue((Qe=b.current)==null?void 0:Qe.value.replace("/edit ","")),!H.inputValue.startsWith("/edit")&&(H.setInputValue(`/edit ${H.inputValue}`),(Fe=b.current)==null||Fe.focus())}},`${j.description.id.item_id}${me}`)})]}):k.length>0&&I.jsxs("div",{onClick:()=>{var j;(j=b.current)==null||j.focus(),ye(!0)},style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",cursor:"default",paddingTop:pr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",k.length," ","context item",k.length===1?"":"s"]}),je&&I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(je.description.description)} +`,QI=st.forwardRef((e,t)=>{var Te,Le,ze,Ye,jt,ue,Ee,qe;const n=zt(j=>j.serverState.meilisearchUrl||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const j=new G0e({host:n});i(j)},[n]);const a=C.useContext(to),o=eo(),s=zt(j=>j.config.workspacePaths);zt(j=>j.sessionState.history);const[u,c]=st.useState([]),[p,f]=st.useState(0),[m,g]=st.useState([]),b=st.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Te=b.current)==null?void 0:Te.scrollHeight,(Le=b.current)==null?void 0:Le.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[y,T]=C.useState(!1),[E,v]=C.useState(void 0),[w,A]=C.useState(void 0),R=zt(j=>{var me;return((me=j.serverState.slashCommands)==null?void 0:me.map(Ve=>({name:`/${Ve.name}`,description:Ve.description})))||[]}),k=zt(j=>typeof e.index<"u"?j.sessionState.contextItemsAtIndex[e.index]||[]:j.sessionState.context_items||[]),N=zt(j=>j.sessionState.history),B=zt(j=>j.sessionState.active);C.useEffect(()=>{y||(v(void 0),A(void 0))},[y]);const q=zt(j=>j.serverState.contextProviders),P=()=>{T(!1),v(void 0),A(void 0),H.setInputValue("@")};C.useEffect(()=>{E||g((q==null?void 0:q.map(j=>({name:j.display_title,description:j.description,id:j.title})).sort((j,me)=>j.id==="file"?-1:1))||[])},[E]);const[Q,$]=C.useState(""),oe=C.useCallback(async(j,me)=>{const Ve=await(a==null?void 0:a.getContextItem(j,me));e.isMainInput?o(TP(Ve)):typeof e.index<"u"&&o(SP({item:Ve,index:e.index}))},[a,e.index]),fe=C.useCallback(({inputValue:j,highlightedIndex:me})=>{var Ve;if(!j){g([]),v(void 0),T(!1);return}if(Q===""&&(q!=null&&q.some(ge=>ge.display_title===j))){H.setInputValue(""),$("");return}if($(j),w&&!j.startsWith(`@${w.title}`)&&A(void 0),(Ve=e.onInputValueChange)==null||Ve.call(e,j),j.endsWith("@")||y){const ge=(j==null?void 0:j.split("@"))||[];if(ge.length>1){T(!0);const G=ge[ge.length-1]||"";if(E&&!j.endsWith("@")){const K=G.split(" ");ce(E.title,K.length>1?K[1]:"").then(ne=>{g(ne)})}else{const K=(q==null?void 0:q.filter(ne=>`@${ne.title}`.toLowerCase().startsWith(j.toLowerCase())||`@${ne.display_title}`.toLowerCase().startsWith(j.toLowerCase())).map(ne=>({name:ne.display_title,description:ne.description,id:ne.title})).sort((ne,ve)=>ne.id==="file"?-1:1))||[];g(K),T(!0)}return}else T(!1),v(void 0)}v(void 0),g((R==null?void 0:R.filter(ge=>{const G=ge.name.toLowerCase(),K=j.toLowerCase();return G.startsWith(K)&&G!==K}))||[]),(j.startsWith("/")||j.startsWith("@"))&&o(Ad(null))},[R,y,E,w]),ce=async(j,me)=>{const Ve=s&&s.length>0?`workspace_dir IN [ ${s.map(ge=>`"${ge}"`).join(", ")} ] AND provider_name = '${j}'`:void 0;try{const ge=await(r==null?void 0:r.index(J0e).search(me,{filter:Ve}));return(ge==null?void 0:ge.hits.map(G=>({name:G.name,description:G.description,id:G.id,content:G.content})))||[]}catch(ge){return console.log("Error searching context items",ge),[]}},{getInputProps:De,...H}=YF({onInputValueChange:fe,items:m,itemToString(j){return j?j.name:""}});C.useEffect(()=>{H.highlightedIndex<0&&H.setHighlightedIndex(0)},[H.inputValue]);const W=st.useRef(null),se=st.useRef(null),D=()=>{var j;return(((j=W.current)==null?void 0:j.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>RP};C.useImperativeHandle(t,()=>H,[H]);const pe=st.useRef(null),le=C.useCallback(()=>{var ge;if(ye(!0),!pe.current)return;const j=pe.current.querySelectorAll(`.pill-button-${e.index||"main"}`),me=Array.from(j),Ve=me.findIndex(G=>G===document.activeElement);if(Ve===me.length-1)(ge=b.current)==null||ge.focus();else if(Ve!==-1){const G=me[(Ve+1)%me.length];G==null||G.focus()}else{const G=me[0];G==null||G.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const j=me=>{me.key==="Tab"&&(me.preventDefault(),le())};return b.current.addEventListener("keydown",j),()=>{var me;(me=b.current)==null||me.removeEventListener("keydown",j)}}},[b.current]),C.useEffect(()=>{e.value&&H.setInputValue(e.value)},[e.value,H.setInputValue]);const[L,ie]=C.useState(!1);C.useLayoutEffect(()=>{se.current&&H.setHighlightedIndex(0)},[m,H.setHighlightedIndex,se.current]);const[Se,X]=C.useState(!1),[ke,te]=C.useState(!1);C.useEffect(()=>{const j=Ve=>{Ve.key==="Meta"&&X(!0)},me=Ve=>{Ve.key==="Meta"&&X(!1)};return window.addEventListener("keydown",j),window.addEventListener("keyup",me),()=>{window.removeEventListener("keydown",j),window.removeEventListener("keyup",me)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const j=me=>{var Ve;me.data.type==="focusContinueInput"?(b.current.focus(),o(Ad(null))):me.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(Ve=b.current)!=null&&Ve.value.startsWith("/edit")||H.setInputValue("/edit "),o(Ad(null))):me.data.type==="focusContinueInputWithNewSession"&&(a==null||a.stopSession(),o(uc()),o(Ad(null)))};return window.addEventListener("message",j),()=>{window.removeEventListener("message",j)}},[b.current,e.isMainInput]);const Me=st.useRef(null),Re=C.useCallback(j=>{const me=m[H.highlightedIndex],Ve=me==null?void 0:me.name,ge=q.find(G=>G.display_title===Ve);if(ge){if(ge.dynamic&&ge.requires_query){A(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}else if(ge.dynamic){if(!me.id)return;const G=H.inputValue.split("@"),K=G[G.length-1];if(oe(me.id,K),H.inputValue.includes("@")){const ne=q.find(ve=>ve.title===me.id);!E&&!(ne!=null&&ne.dynamic)?(H.setInputValue(`@${me.id} `),v(ne)):H.setInputValue("")}H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}}else{if(E&&me.id){oe(me.id,""),H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}v(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault(),ce(ge.title,"").then(G=>g(G))},[m,H.highlightedIndex,q,E,H.inputValue,oe]),[Ze,We]=C.useState(!1),[dt,ot]=C.useState(!1),[je,pt]=C.useState(void 0),[U,re]=C.useState(void 0),de=st.useRef(null),[xe,ye]=C.useState(!1);return C.useEffect(()=>{ke||ye(!1)},[ke]),I.jsxs("div",{ref:de,style:{paddingTop:"4px",backgroundColor:Ht},children:[k.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",paddingTop:pr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var j;H.setInputValue("@"),(j=b.current)==null||j.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Ye=H.inputValue)==null?void 0:Ye.startsWith("/edit"))||ke&&Se&&((jt=H.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||k.length>0&&xe?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:pe,style:{backgroundColor:Ht},children:[k.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:j=>{ot(me=>!me)},id:"toggle-context-div",children:dt?I.jsx(gZ,{width:"14px",height:"14px",color:Et}):I.jsx(yZ,{width:"14px",height:"14px",color:Et})}),I.jsx(nhe,{className:k.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var j;o(w4({ids:k.map(me=>me.description.id),index:e.index})),(j=b.current)==null||j.focus(),pt(void 0),re(void 0)},onKeyDown:j=>{var me;j.key==="Backspace"&&(o(w4({ids:k.map(Ve=>Ve.description.id),index:e.index})),(me=b.current)==null||me.focus(),pt(void 0),re(void 0))},children:I.jsx(kL,{width:"1.4em",height:"1.4em"})}),k.map((j,me)=>{var Ve,ge,G,K;return I.jsx(A0e,{inputIndex:e.index,areMultipleItems:k.length>1,item:j,editing:j.editing&&((ge=(Ve=b.current)==null?void 0:Ve.value)==null?void 0:ge.startsWith("/edit")),editingAny:(K=(G=b.current)==null?void 0:G.value)==null?void 0:K.startsWith("/edit"),stepIndex:e.index,index:me,onDelete:()=>{var ne;o(w4({ids:[j.description.id],index:e.index})),(ne=b.current)==null||ne.focus(),(j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name||j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name)&&(pt(void 0),re(void 0))},onClick:ne=>{j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name?re(void 0):re(j)},onBlur:()=>{re(void 0)},toggleViewContent:()=>{pt(ne=>{if(!ne)return j;if(!(ne.description.id.item_id===j.description.id.item_id&&ne.description.id.provider_name===j.description.id.provider_name))return j})},previewing:j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name,focusing:j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name,prefixInputWithEdit:ne=>{var ve,Qe,Fe;!ne&&((ve=b.current)!=null&&ve.value.startsWith("/edit"))&&H.setInputValue((Qe=b.current)==null?void 0:Qe.value.replace("/edit ","")),!H.inputValue.startsWith("/edit")&&(H.setInputValue(`/edit ${H.inputValue}`),(Fe=b.current)==null||Fe.focus())}},`${j.description.id.item_id}${me}`)})]}):k.length>0&&I.jsxs("div",{onClick:()=>{var j;(j=b.current)==null||j.focus(),ye(!0)},style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",cursor:"default",paddingTop:pr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",k.length," ","context item",k.length===1?"":"s"]}),je&&I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(je.description.description)} ${je.content} \`\`\``,maxHeight:200})}),dt&&I.jsx("div",{children:k.map(j=>I.jsxs(rhe,{children:[I.jsxs(ihe,{children:[I.jsx(Ey,{height:"20px",width:"20px",filename:j.description.name}),j.description.name]}),I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(j.description.description)} ${j.content} @@ -615,7 +615,7 @@ ${j.content} `+N.filter((Ve,ge)=>{var G;return(G=e.groupIndices)==null?void 0:G.includes(ge)}).flatMap(Ve=>Ve.logs||[]).join(` `);qa("showVirtualFile",{name:"inspect_prompt.md",content:me})}},text:"Inspect Prompt",children:I.jsx(iZ,{width:"1.3em",height:"1.3em"})}),I.jsx(zi,{onClick:j=>{var me;j.stopPropagation(),e.active&&e.groupIndices?a==null||a.stopSession():(me=e.onDelete)==null||me.call(e)},text:e.active?`Stop (${zX()}⌫)`:"Delete",children:e.active?null:I.jsx(w9,{width:"1.4em",height:"1.4em"})})]})})})]}),w&&I.jsxs(she,{children:["Enter ",w.display_title," Query"]}),I.jsxs(lhe,{...H.getMenuProps({ref:se}),isMainInput:e.isMainInput,showAbove:D(),ulHeightPixels:((ue=se.current)==null?void 0:ue.getBoundingClientRect().height)||0,hidden:!H.isOpen||m.length===0||((Ee=b.current)==null?void 0:Ee.value)==="",fontSize:pr(),children:[E&&I.jsxs("div",{style:{backgroundColor:Vt,borderBottom:`0.5px solid ${Et}`,display:"flex",gap:"4px",position:"sticky",top:"0px"},className:"py-2 px-4 my-0",children:[I.jsx(mc,{width:"1.4em",height:"1.4em",className:"cursor-pointer",onClick:j=>{var me;P(),(me=b.current)==null||me.focus()}}),E.display_title," -"," ",E.description]}),H.isOpen&&m.map((j,me)=>I.jsxs(ZI,{style:{borderTop:me===0?"none":`0.5px solid ${Et}`},...H.getItemProps({item:j,index:me}),highlighted:H.highlightedIndex===me,selected:H.selectedItem===j,onClick:Ve=>{var ge;Re(Ve),Ve.stopPropagation(),Ve.preventDefault(),(ge=b.current)==null||ge.focus()},children:[I.jsxs("span",{className:"flex justify-between w-full items-center",children:[I.jsxs("div",{className:"flex items-center justify-center",children:[E&&I.jsx(Ey,{height:"20px",width:"20px",filename:j.name}),j.name," "]}),I.jsx("span",{style:{color:Et,float:"right",textAlign:"right"},children:j.description})]}),(q==null?void 0:q.filter(Ve=>!Ve.dynamic||Ve.requires_query).find(Ve=>Ve.title===j.id))&&I.jsx(tZ,{width:"1.2em",height:"1.2em",color:Et,className:"ml-2 flex-shrink-0"})]},`${j.name}${me}`)),H.isOpen&&m.length===0&&I.jsx(ZI,{highlighted:!1,selected:!1,isLastItem:!1,children:I.jsx("span",{style:{color:Et,float:"right",textAlign:"right",display:"flex",width:"100%",cursor:"default"},children:"No items found"})},"empty-items-li")]})]}),e.isMainInput&&I.jsx(xP,{disabled:!B&&(!((qe=b.current)!=null&&qe.value)||typeof a>"u"),onClick:()=>{var j;B?(a==null||a.stopSession(),o(Zd(!1))):(j=e.onEnter)==null||j.call(e,void 0)},showStop:B})]})});function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t=0||(p[u]=o[u]);return p}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function che(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function OP(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Xg(e);if(t){var i=Xg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return che(this,n)}}function Co(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var a,o,s=[],u=!0,c=!1;try{for(i=i.call(n);!(u=(a=i.next()).done)&&(s.push(a.value),!r||s.length!==r);u=!0);}catch(p){c=!0,o=p}finally{try{u||i.return==null||i.return()}finally{if(c)throw o}}return s}}(e,t)||lT(e,t)||function(){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 xy(e){return function(t){if(Array.isArray(t))return Iy(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||lT(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function lT(e,t){if(e){if(typeof e=="string")return Iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iy(e,t):void 0}}function Iy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function lT(e,t){if(e){if(typeof e=="string")return Iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iy(e,t):void 0}}function Iy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var ma={DEBUG:!1,LIB_VERSION:"1.75.2"};/** * uuidv7: An experimental implementation of the proposed UUID Version 7 * @@ -624,10 +624,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * @packageDocumentation * * from https://github.com/LiosK/uuidv7/blob/e501462ea3d23241de13192ceae726956f9b3b7d/src/index.ts - */Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e});var tR="0123456789abcdef",dhe=function(){function e(t){if(Un(this,e),this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}return $n(e,[{key:"toString",value:function(){for(var t="",n=0;n>>4)+tR.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(t){return this.compareTo(t)===0}},{key:"compareTo",value:function(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var a=new Uint8Array(16);return a[0]=t/Math.pow(2,40),a[1]=t/Math.pow(2,32),a[2]=t/Math.pow(2,24),a[3]=t/Math.pow(2,16),a[4]=t/Math.pow(2,8),a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}}]),e}(),phe=function(){function e(){Un(this,e),ct(this,"timestamp",0),ct(this,"counter",0),ct(this,"random",new fhe)}return $n(e,[{key:"generate",value:function(){var t=this.generateOrAbort();if(t!==void 0)return t;this.timestamp=0;var n=this.generateOrAbort();if(n===void 0)throw new Error("Could not generate UUID after timestamp reset");return n}},{key:"generateOrAbort",value:function(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return dhe.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),DP=function(e){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t=this.buffer.length&&(DP(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),hhe=function(){return(nR||(nR=new phe)).generate()},LP=Array.prototype,MP=Object.prototype,uT=MP.toString,ghe=MP.hasOwnProperty,ht=typeof window<"u"?window:{},Ql=ht.navigator||{userAgent:""},jn=ht.document||{},aa=Ql.userAgent,mhe=["localhost","127.0.0.1"],rR=LP.forEach,iR=LP.indexOf,bhe=Array.isArray,cT={},In={log:function(){if(ma.DEBUG&&!ja(window.console)&&window.console){for(var e=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r0&&(t[r]=n)}),t},Ehe=["$performance_raw"];function vhe(e,t){return n=e,r=function(a,o){return o&&Ehe.indexOf(o)>-1?a:typeof a=="string"&&t!==null?a.slice(0,t):a},i=new Set,function a(o,s){return o!==Object(o)?r?r(o,s):o:i.has(o)?void 0:(i.add(o),es(o)?(u=[],as(o,function(c){u.push(a(c))})):(u={},hn(o,function(c,p){i.has(c)||(u[p]=a(c,p))})),u);var u}(n);var n,r,i}function dT(e){var t,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",p=[];if(!e)return e;e=_he(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,p[u++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s>>4)+tR.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(t){return this.compareTo(t)===0}},{key:"compareTo",value:function(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var a=new Uint8Array(16);return a[0]=t/Math.pow(2,40),a[1]=t/Math.pow(2,32),a[2]=t/Math.pow(2,24),a[3]=t/Math.pow(2,16),a[4]=t/Math.pow(2,8),a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}}]),e}(),phe=function(){function e(){Un(this,e),ct(this,"timestamp",0),ct(this,"counter",0),ct(this,"random",new fhe)}return $n(e,[{key:"generate",value:function(){var t=this.generateOrAbort();if(t!==void 0)return t;this.timestamp=0;var n=this.generateOrAbort();if(n===void 0)throw new Error("Could not generate UUID after timestamp reset");return n}},{key:"generateOrAbort",value:function(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return dhe.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),DP=function(e){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t=this.buffer.length&&(DP(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),hhe=function(){return(nR||(nR=new phe)).generate()},LP=Array.prototype,MP=Object.prototype,uT=MP.toString,ghe=MP.hasOwnProperty,ht=typeof window<"u"?window:{},Ql=ht.navigator||{userAgent:""},jn=ht.document||{},aa=Ql.userAgent,mhe=["localhost","127.0.0.1"],rR=LP.forEach,iR=LP.indexOf,bhe=Array.isArray,cT={},In={log:function(){if(ma.DEBUG&&!ja(window.console)&&window.console){for(var e=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r0&&(t[r]=n)}),t},Ehe=["$performance_raw"];function vhe(e,t){return n=e,r=function(a,o){return o&&Ehe.indexOf(o)>-1?a:typeof a=="string"&&t!==null?a.slice(0,t):a},i=new Set,function a(o,s){return o!==Object(o)?r?r(o,s):o:i.has(o)?void 0:(i.add(o),ts(o)?(u=[],os(o,function(c){u.push(a(c))})):(u={},hn(o,function(c,p){i.has(c)||(u[p]=a(c,p))})),u);var u}(n);var n,r,i}function dT(e){var t,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",p=[];if(!e)return e;e=_he(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,p[u++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},aR=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=aa,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return hhe().toString()}},The=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},oR=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{In.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},sR=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Qd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;FP(p)&&(m=p(f));var b=c.call(u,f);return m!==!1&&b!==!1||(g=!1),g}}}(t,r,s)}else In.error("No valid element provided to register_event")}}();function pT(e,t){var n=function(){var r=jn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=jn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):jn.body.appendChild(r)};jn.body?n():jn.addEventListener("DOMContentLoaded",n)}var Sr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return hn(t,function(r){var i=oR(jn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=jn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=Sr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=oR(jn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||fn(e," OPR/")?fn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":fn(e,"IEMobile")||fn(e,"WPDesktop")?"Internet Explorer Mobile":fn(e,"SamsungBrowser/")?"Samsung Internet":fn(e,"Edge")||fn(e,"Edg/")?"Microsoft Edge":fn(e,"FBIOS")?"Facebook Mobile":fn(e,"Chrome")?"Chrome":fn(e,"CriOS")?"Chrome iOS":fn(e,"UCWEB")||fn(e,"UCBrowser")?"UC Browser":fn(e,"FxiOS")?"Firefox iOS":fn(t,"Apple")?fn(e,"Mobile")?"Mobile Safari":"Safari":fn(e,"Android")?"Android Mobile":fn(e,"Konqueror")?"Konqueror":fn(e,"Firefox")?"Firefox":fn(e,"MSIE")||fn(e,"Trident/")?"Internet Explorer":fn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Sr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Ql.language||Ql.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return jn.referrer||"$direct"},referringDomain:function(){if(!jn.referrer)return"$direct";var e=jn.createElement("a");return e.href=jn.referrer,e.host},properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera),$device:Sr.device(aa),$device_type:Sr.deviceType(aa)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera),$browser_language:Sr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:ma.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:BP()/1e3})},people_properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera)}),{$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera)})}};function Zg(e){switch(pl(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Qg(e){var t="";return Ph(e)&&!zP(e)&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){$P(n)&&n.textContent&&(t+=Ry(n.textContent).split(/(\s+)/).filter(N1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Ry(t)}function lR(e){return!!e&&e.nodeType===1}function fu(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function $P(e){return!!e&&e.nodeType===3}function uR(e){return!!e&&e.nodeType===11}var k4=["a","button","form","input","select","textarea","label"];function Ph(e){for(var t=e;t.parentNode&&!fu(t,"body");t=t.parentNode){var n=Zg(t).split(" ");if(fn(n,"ph-sensitive")||fn(n,"ph-no-capture"))return!1}if(fn(Zg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function zP(e){return!!(fu(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||fu(e,"select")||fu(e,"textarea")||e.getAttribute("contenteditable")==="true")}function N1(e){return!(e===null||ja(e)||typeof e=="string"&&(e=Ry(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function cR(e){var t=Qg(e);return N1(t="".concat(t," ").concat(HP(e)).trim())?t:""}function HP(e){var t="";return e&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Qg(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(HP(n)).trim())}catch(a){console.error(a)}}),t}var She=function(){function e(t){Un(this,e),this.clicks=[],this.enabled=t}return $n(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),whe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,yo={is_supported:function(){return!0},error:function(e){In.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=cR(e):i.$el_text=Qg(e));var a=Zg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),hn(e.attributes,function(c){var p;zP(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&N1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return hn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),N1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return hn(this._customProperties,function(r){hn(r.event_selectors,function(i){hn(document.querySelectorAll(i),function(a){fn(e,a)&&Ph(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if($P(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||fu(g,"html")||!lR(g))return!1;if(y!=null&&y.url_allowlist){var T=window.location.href,E=y.url_allowlist;if(E&&!E.some(function($){return T.match($)}))return!1}if(y!=null&&y.dom_event_allowlist){var v=y.dom_event_allowlist;if(v&&!v.some(function($){return b.type===$}))return!1}if(y!=null&&y.element_allowlist){var w=y.element_allowlist;if(w&&!w.some(function($){return g.tagName.toLowerCase()===$}))return!1}if(y!=null&&y.css_selector_allowlist){var A=y.css_selector_allowlist;if(A&&!A.some(function($){return g.matches($)}))return!1}for(var R=!1,k=[g],N=!0,B=g;B.parentNode&&!fu(B,"body");)if(uR(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(N=B.parentNode||!1))break;if(k4.indexOf(N.tagName.toLowerCase())>-1)R=!0;else{var q=window.getComputedStyle(N);q&&q.getPropertyValue("cursor")==="pointer"&&(R=!0)}k.push(N),B=N}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&b.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return b.type==="submit";case"input":case"select":case"textarea":return b.type==="change"||b.type==="click";default:return R?b.type==="click":b.type==="click"&&(k4.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!fu(s,"body");)uR(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(hn(o,function(g){var b=Ph(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=b&&N1(u)&&u),fn(Zg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var y=r._getAugmentPropertiesFromElement(g);$r(p,y)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=cR(a):c[0].$el_text=Qg(a)),u&&(c[0].attr__href=u),f)return!1;var m=$r(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Qd(document,"submit",n,!1,!0),Qd(document,"change",n,!1,!0),Qd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new She(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?In.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},dR,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=ja(t)?10:t,n=ja(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Jg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Jg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Fy);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},Fy,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(D1)||{};this.instance.register(ct({},D1,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(D1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Vs)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=vt(vt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Vs,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Vs)||{};this.instance.register(ct({},Vs,vt(vt({},n),{},ct({},t,{}))))}else this.instance.unregister(Vs)}}]),e}(),Ihe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",bR=2,Rhe=4,GP=3,Nhe=6,Ohe=0,Dhe=5e6,Lhe="rrweb/console@1",fo,Mhe=$n(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Un(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,b;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(b=o.adds)===null||b===void 0?void 0:b.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==GP||o.data.source!==Ohe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,b=Co(i.getNodeOrRelevantParent(p.id),2),y=b[0],T=b[1];return i.mutationBuckets[y]===0?!1:(i.mutationBuckets[y]=(f=i.mutationBuckets[y])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[y]=Math.max(i.mutationBuckets[y]-1,0),i.mutationBuckets[y]===0&&(i.loggedTracker[y]||(i.loggedTracker[y]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,y,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Fhe="/s/",VP="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(fo||(fo={}));var Phe=[fo.MouseMove,fo.MouseInteraction,fo.Scroll,fo.ViewportResize,fo.Input,fo.TouchMove,fo.MediaInteraction,fo.Drag],Bhe=function(){function e(t){var n=this;Un(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Fhe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return $n(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(Ly),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(pR),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(fR);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},Ly,!!t.sessionRecording),ct(o,pR,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,fR,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:BP()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?pT(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(ma.LIB_VERSION),function(r){if(r)return In.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===GP&&Phe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[bR,Rhe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return In.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aDhe){var c,p=fs(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Ihe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&pl(u)==="object"&&u.type===Nhe&&pl(u.data)==="object"&&u.data.plugin===Lhe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:VP,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===bR}})}}]),e}(),lo={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Uhe=["first-input","navigation","paint","resource"],$he=["/s/","/e/"],zhe=function(){function e(t){Un(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return $n(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!mhe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Uhe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else In.log("PostHog Peformance observer not started because we are on localhost.");else In.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if($he.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[lo.timeOrigin]=s,o[lo.timestamp]=Math.floor(s+t.startTime),lo)a[u]!==void 0&&(o[lo[u]]=a[u]);if(this.capturePerformanceEvent(o),Hhe(t)){var c,p=fs(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},lo.timeOrigin,s),ct(f,lo.timestamp,Math.floor(s+t.startTime)),ct(f,lo.name,m.name),ct(f,lo.duration,m.duration),ct(f,lo.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[lo.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Hhe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},jhe=function(){function e(t){Un(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return $n(e,[{key:"call",value:function(){var t=this,n=dT(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(D1),group_properties:this.instance.get_property(Vs),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),Ys.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=fs(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=fs(t.siteApps);try{var m=function(){var g=c.value,b=g.id,y=g.url,T=[p,p[p.length-1]==="/"&&y[0]==="/"?y.substring(1):y].join("");window["__$$ph_site_app_".concat(b)]=a.instance,pT(T,function(E){E&&console.error("Error while initializing PostHog app with config id ".concat(b),E)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Ghe=["https://app.posthog.com","https://eu.posthog.com"],Vhe=["source"],Whe=function(){function e(t){Un(this,e),this.instance=t}return $n(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(vt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=sR(t.hash,"__posthog")||sR(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Ghe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=vt(vt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=uhe(s,Vhe);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),pT(a,function(c){c?In.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Qd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),qhe="__ph_opt_in_out_";function Khe(e,t){qP(!0,e,t)}function Yhe(e,t){qP(!1,e,t)}function Xhe(e,t){return WP(e,t)==="1"}function yR(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return hn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){fn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||WP(e,t)==="0"}function Zhe(e,t){fT(t=t||{}).remove(hT(e,t),!!t.crossSubdomainCookie)}function fT(e){return(e=e||{}).persistenceType==="localStorage"?Kn:e.persistenceType==="localStorage+cookie"?Dy:yo}function hT(e,t){return((t=t||{}).persistencePrefix||qhe)+e}function WP(e,t){return fT(t).get(hT(e,t))}function qP(e,t,n){PP(t)&&t.length?(fT(n=n||{}).set(hT(t,n),e?1:0,yhe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var KP=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Un(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return $n(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),Qhe=function(e){NP(n,KP);var t=OP(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Un(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return $n(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;hn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(xy(a.filter(function(o){return o.url.indexOf("/e")===0})),xy(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,vt(vt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return hn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),Jhe=function(){function e(t){Un(this,e),this.enabled=t,this.metrics={}}return $n(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Ui=Uint8Array,ni=Uint16Array,dc=Uint32Array,gT=new Ui([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mT=new Ui([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ER=new Ui([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),YP=function(e,t){for(var n=new ni(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Sn)<<1;ql=(61680&(ql=(52428&ql)>>>2|(13107&ql)<<2))>>>4|(3855&ql)<<4,zy[Sn]=((65280&ql)>>>8|(255&ql)<<8)>>>1}var Jd=function(e,t,n){for(var r=e.length,i=0,a=new ni(t);i>>u]=c}else for(o=new ni(r),i=0;i>>15-e[i];return o},wu=new Ui(288);for(Sn=0;Sn<144;++Sn)wu[Sn]=8;for(Sn=144;Sn<256;++Sn)wu[Sn]=9;for(Sn=256;Sn<280;++Sn)wu[Sn]=7;for(Sn=280;Sn<288;++Sn)wu[Sn]=8;var em=new Ui(32);for(Sn=0;Sn<32;++Sn)em[Sn]=5;var tu,tge=Jd(wu,9,0),nge=Jd(em,5,0),ZP=function(e){return(e/8>>0)+(7&e&&1)},QP=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof ni?ni:e instanceof dc?dc:Ui)(n-t);return r.set(e.subarray(t,n)),r},qo=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},dd=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},R4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new ni(m+1),b=rge(n[p-1],g,0);if(b>t){r=0;var y=0,T=b-t,E=1<t))break;y+=E-(1<>>=T;y>0;){var w=a[r].s;g[w]=0&&y;--r){var A=a[r].s;g[A]==t&&(--g[A],++y)}b=t}return[new Ui(g),b]},rge=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},_R=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ni(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},pd=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[ER[$-1]];--$);var oe,fe,ce,De,H=c+5<<3,W=pd(i,wu)+pd(a,em)+o,se=pd(i,m)+pd(a,y)+o+14+3*$+pd(N,P)+(2*N[16]+3*N[17]+7*N[18]);if(H<=W&&H<=se)return Uh(t,p,e.subarray(u,u+c));if(qo(t,p,1+(se15&&(qo(t,p,L[B]>>>5&127),p+=L[B]>>>12)}}}else oe=tge,fe=wu,ce=nge,De=em;for(B=0;B255){ie=r[B]>>>18&31,dd(t,p,oe[ie+257]),p+=fe[ie+257],ie>7&&(qo(t,p,r[B]>>>23&31),p+=gT[ie]);var Se=31&r[B];dd(t,p,ce[Se]),p+=De[Se],Se>3&&(dd(t,p,r[B]>>>5&8191),p+=mT[Se])}else dd(t,p,oe[r[B]]),p+=fe[r[B]];return dd(t,p,oe[256]),p+fe[256]},ige=new dc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),age=new Ui(0),oge=function(){for(var e=new dc(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),sge=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},lge=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Ui(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),b=0;if(!o||f<8)for(var y=0;y<=f;y+=65535){var T=y+65535;T>>13,w=8191&E,A=(1<7e3||ce>24576)&&pe>423){b=TR(a,g,0,P,Q,$,fe,ce,H,y-H,b),ce=oe=fe=0,H=y;for(var le=0;le<286;++le)Q[le]=0;for(le=0;le<30;++le)$[le]=0}var L=2,ie=0,Se=w,X=se-D&32767;if(pe>2&&W==q(y-X))for(var ke=Math.min(v,pe)-1,te=Math.min(32767,y),Me=Math.min(258,pe);X<=te&&--Se&&se!=D;){if(a[y+L]==a[y+L-X]){for(var Re=0;ReL){if(L=Re,ie=X,Re>ke)break;var Ze=Math.min(X,Re-2),We=0;for(le=0;leWe&&(We=ot,D=dt)}}}X+=(se=D)-(D=R[se])+32768&32767}if(ie){P[ce++]=268435456|$y[L]<<18|vR[ie];var je=31&$y[L],pt=31&vR[ie];fe+=gT[je]+mT[pt],++Q[257+je],++$[pt],De=y+L,++oe}else P[ce++]=a[y],++Q[a[y]]}}b=TR(a,g,p,P,Q,$,fe,ce,H,y-H,b),p||(b=Uh(g,b,age))}return QP(m,0,u+ZP(b)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},Hy=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},uge=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&Hy(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},cge=function(e){return 10+(e.filename&&e.filename.length+1||0)};function dge(e,t){t===void 0&&(t={});var n=sge(),r=e.length;n.p(e);var i=lge(e,t,cge(t),8),a=i.length;return uge(i,t),Hy(i,a-8,n.d()),Hy(i,a-4,r),i}function pge(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Ui(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Ui(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return QP(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(tu||(tu={}));var fge=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=ma.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=fs(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return hn(c,function(b,y){p=encodeURIComponent(b.toString()),f=encodeURIComponent(y),g[g.length]=f+"="+p}),g.join(m)}(r)},bT=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},JP=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var b=bT(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),hn(r,function(y,T){g.setRequestHeader(T,y)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var y;try{y=JSON.parse(g.responseText)}catch(T){return void In.error(T)}o(y)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(b)},hge=18e5,gge=function(e){NP(n,KP);var t=OP(n);function n(r,i,a){var o;return Un(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return $n(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(hge,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=fs(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=fs(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))ma.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,bT(s,vt(vt({},u),{},{sendBeacon:!0})))}catch(c){ma.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?ma.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):JP({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),rh=1800,SR=60,mge=864e5,bge=function(){function e(t,n,r){Un(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||rh;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=rh):a>rh?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=Co(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>mge,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),yge=$n(function e(t,n,r,i){Un(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],b={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",b),o})}}),Ege=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},vge=function(){function e(t){Un(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return $n(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function wR(e){return typeof Event<"u"&&eB(e,Event)}function eB(e,t){try{return e instanceof t}catch{return!1}}function AR(e){return e===null||pl(e)!=="object"&&typeof e!="function"}function $h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function N4(e){return $h(e,"DOMError")}var CR=/\(error: (.*)\)/,kR=50,zh="?";function O4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var _ge=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Tge=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Age=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Cge=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` -`),u=a;u1024)){var p=CR.test(c)?c.replace(CR,"$1"):c;if(!p.match(/\S*Error: /)){var f,m=fs(r);try{for(m.s();!(f=m.n()).done;){var g=(0,f.value)(p);if(g){o.push(g);break}}}catch(b){m.e(b)}finally{m.f()}if(o.length>=kR)break}}}return function(b){if(!b.length)return[];var y=b.slice(0,kR);return y.reverse(),y.map(function(T){return vt(vt({},T),{},{filename:T.filename||y[y.length-1].filename,function:T.function||"?"})})}(o)}}).apply(void 0,[[30,function(e){var t=_ge.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){var n=Tge.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=Co(xR(t[1]||zh,t[2]),2),i=r[0];return O4(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=Sge.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=wge.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||zh,a=Co(xR(i,r),2);return i=a[0],O4(r=a[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=Age.exec(e);return t?O4(t[2],t[1]||zh,+t[3],t[4]?+t[4]:void 0):void 0}]]),xR=function(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:zh,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},kge=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,xge=/Minified React error #\d+;/i;function Ige(e){var t=e.stacktrace||e.stack||"",n=function(r){if(r){if(typeof r.framesToPop=="number")return r.framesToPop;if(xge.test(r.message))return 1}return 0}(e);try{return Cge(t,n)}catch{}return[]}function D4(e){var t=Ige(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function Rge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:40,n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:"".concat(i.slice(0,t),"...")}return""}function IR(e){var t=Co(e,5),n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s={};if(o===void 0&&typeof n=="string"){var u="Error",c=n,p=n.match(kge);p&&(u=p[1],c=p[2]),s={$exception_type:u,$exception_message:c}}var f=o||n;if(N4(f)||function(y){return $h(y,"DOMException")}(f)){var m=f;if(function(y){return"stack"in y}(f))s=D4(f);else{var g=m.name||(N4(m)?"DOMError":"DOMException"),b=m.message?"".concat(g,": ").concat(m.message):g;s=function(y){return{$exception_type:"Error",$exception_message:y}}(b),s.$exception_type=N4(m)?"DOMError":"DOMException",s.$exception_message=s.$exception_message||b}"code"in m&&(s.$exception_DOMException_code="".concat(m.code))}else(function(y){return $h(y,"ErrorEvent")})(f)&&f.error?s=D4(f.error):function(y){switch(Object.prototype.toString.call(y)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return eB(y,Error)}}(f)?s=D4(f):function(y){return $h(y,"Object")}(f)||wR(f)?(s=function(y){return{$exception_type:wR(y)?y.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",Rge(y))}}(f),s.$exception_is_synthetic=!0):(s.$exception_type=s.$exception_type||"Error",s.$exception_message=s.$exception_message||f,s.$exception_is_synthetic=!0);return vt(vt(vt(vt({},s),{},{$exception_type:s.$exception_type||"UnknownErrorType",$exception_message:s.$exception_message||""},r?{$exception_source:r}:{}),i?{$exception_lineno:i}:{}),a?{$exception_colno:a}:{})}var RR,NR,Nge=function(){function e(t){Un(this,e),ct(this,"originalOnErrorHandler",void 0),ct(this,"originalOnUnhandledRejectionHandler",void 0),ct(this,"errorsToIgnore",[]),this.instance=t}return $n(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var t,n=arguments.length,r=new Array(n),i=0;i1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Py);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.surveys;return n.instance.persistence.register(ct({},Py,o)),t(o)})}},{key:"getActiveMatchingSurveys",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(i){var a=i.filter(function(o){return!(!o.start_date||o.end_date)}).filter(function(o){var s,u;if(!o.conditions)return!0;var c=(s=o.conditions)===null||s===void 0||!s.url||window.location.href.indexOf(o.conditions.url)>-1,p=(u=o.conditions)===null||u===void 0||!u.selector||document.querySelector(o.conditions.selector);return c&&p}).filter(function(o){if(!o.linked_flag_key&&!o.targeting_flag_key)return!0;var s=!o.linked_flag_key||n.instance.featureFlags.isFeatureEnabled(o.linked_flag_key),u=!o.targeting_flag_key||n.instance.featureFlags.isFeatureEnabled(o.targeting_flag_key);return s&&u});return t(a)},r)}}]),e}(),Dge={"X-PostHog-Retry-After-Recordings":VP,"X-PostHog-Retry-After-Events":"events"},Lge=function(){function e(){Un(this,e),ct(this,"limits",{})}return $n(e,[{key:"isRateLimited",value:function(t){var n=this.limits[t||"events"]||!1;return n!==!1&&new Date().getTime()1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,c={segmentRegister:!1,syncCode:!1},p=function(A){return function(){c[A]||(c[A]=!0,c.segmentRegister&&c.syncCode&&(s==null||s(i)))}};if(this.set_config($r({},OR(),a,{name:o,token:t,callback_fn:(o===gi?o:gi+"."+o)+"._jsc"})),this.uuidFn=aR(this.config.uuid_version||"og"),this._jsc=function(){},(ht!=null&&(n=ht.rrweb)!==null&&n!==void 0&&n.record||ht!=null&&ht.rrwebRecord)&&(this.__loaded_recorder_version=ht==null||(u=ht.rrweb)===null||u===void 0?void 0:u.version),this.persistence=new hR(this.config),this._captureMetrics=new Jhe(this.get_config("_capture_metrics")),this._requestQueue=new Qhe(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new gge(this._captureMetrics,this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new bge(this.config,this.persistence,this.uuidFn),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new hR(vt(vt({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(p("segmentRegister"))):p("segmentRegister")(),((r=a.bootstrap)===null||r===void 0?void 0:r.distinctID)!==void 0){var f,m,g=this.get_config("get_device_id")(this.uuidFn()),b=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?g:a.bootstrap.distinctID;this.persistence.set_user_state((m=a.bootstrap)!==null&&m!==void 0&&m.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:b})}if(this._hasBootstrappedFeatureFlags()){var y,T,E=Object.keys(((y=a.bootstrap)===null||y===void 0?void 0:y.featureFlags)||{}).filter(function(A){var R,k;return!((R=a.bootstrap)===null||R===void 0||(k=R.featureFlags)===null||k===void 0||!k[A])}).reduce(function(A,R){var k,N;return A[R]=((k=a.bootstrap)===null||k===void 0||(N=k.featureFlags)===null||N===void 0?void 0:N[R])||!1,A},{}),v=Object.keys(((T=a.bootstrap)===null||T===void 0?void 0:T.featureFlagPayloads)||{}).filter(function(A){return E[A]}).reduce(function(A,R){var k,N,B,q;return(k=a.bootstrap)!==null&&k!==void 0&&(N=k.featureFlagPayloads)!==null&&N!==void 0&&N[R]&&(A[R]=(B=a.bootstrap)===null||B===void 0||(q=B.featureFlagPayloads)===null||q===void 0?void 0:q[R]),A},{});this.featureFlags.receivedFeatureFlags({featureFlags:E,featureFlagPayloads:v})}if(!this.get_distinct_id()){var w=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_user_state("anonymous")}ht.addEventListener&&ht.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),p("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(t){console.error("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:jn.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new jhe(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var t=this;this.has_opted_out_capturing()||as(this.__request_queue,function(n){t._send_request.apply(t,xy(n))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(t,n){if(ja(t))return null;if(Hh)return function(o){t(o,n)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],t(o,n)},a}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(t,n,r){var i=JSON.stringify(n);this.__compress_and_send_json_request(t,i,r||ih,jy)}},{key:"__compress_and_send_json_request",value:function(t,n,r,i){var a=function(c,p,f){return c===tu.GZipJS?[dge(pge(p),{mtime:0}),vt(vt({},f),{},{blob:!0,urlQueryArgs:{compression:tu.GZipJS}})]:[{data:dT(p)},f]}(this.compression[tu.GZipJS]?tu.GZipJS:tu.Base64,n,r),o=Co(a,2),s=o[0],u=o[1];this._send_request(t,s,u,i)}},{key:"_send_request",value:function(t,n,r,i){if(this.rateLimiter.isRateLimited(r._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(tB)this.__request_queue.push([t,n,r,i]);else{var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=$r(a,r||{}),Hh||(r.method="GET");var o="sendBeacon"in ht.navigator&&r.transport==="sendBeacon";if(t=fge(t,r.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{ht.navigator.sendBeacon(t,bT(n,vt(vt({},r),{},{sendBeacon:!0})))}catch{}else if(Hh)try{JP({url:t,data:n,headers:this.get_config("xhr_headers"),options:r,captureMetrics:this._captureMetrics,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(p){console.error(p)}else{var s,u=jn.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=t;var c=jn.getElementsByTagName("script")[0];(s=c.parentNode)===null||s===void 0||s.insertBefore(u,c)}}}},{key:"_execute_array",value:function(t){var n,r=this,i=[],a=[],o=[];as(t,function(u){u&&(n=u[0],es(n)?o.push(u):typeof u=="function"?u.call(r):es(u)&&n==="alias"?i.push(u):es(u)&&n.indexOf("capture")!==-1&&typeof r[n]=="function"?o.push(u):a.push(u))});var s=function(u,c){as(u,function(p){if(es(p[0])){var f=c;hn(p,function(m){f=f[m[0]].apply(f,m.slice(1))})}else this[p[0]].apply(this,p.slice(1))},c)};s(i,this),s(a,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var t,n;return((t=this.config.bootstrap)===null||t===void 0?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)===null||n===void 0?void 0:n.featureFlags).length>0||!1}},{key:"push",value:function(t){this._execute_array([t])}},{key:"captureException",value:function(t,n){var r;(r=this.exceptionAutocapture)===null||r===void 0||r.captureException([t.name,void 0,void 0,void 0,t],n)}},{key:"capture",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ih;if(this.__loaded&&!function(c,p){var f=!1;try{var m=c.get_config("token"),g=c.get_config("respect_dnt"),b=c.get_config("opt_out_capturing_persistence_type"),y=c.get_config("opt_out_capturing_cookie_prefix")||void 0,T=c.get_config("window");m&&(f=yR(m,{respectDnt:g,persistenceType:b,persistencePrefix:y,window:T}))}catch(E){p||console.error("Unexpected error when checking capturing opt-out status: "+E)}return f}(this,!1)){this._captureMetrics.incr("capture"),t==="$snapshot"&&this._captureMetrics.incr("snapshot");var i=(r=r||ih).transport;if(i&&(r.transport=i),ja(t)||typeof t!="string")console.error("No event name provided to posthog.capture");else if(!The(aa)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var a={uuid:this.uuidFn("v7"),event:t,properties:this._calculate_event_properties(t,n||{})};t==="$identify"&&(a.$set=r.$set,a.$set_once=r.$set_once),(a=vhe(a,r._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=r.timestamp||new Date,this.get_config("debug")&&In.log("PostHog.js send",a);var o=JSON.stringify(a),s=this.get_config("api_host")+(r.endpoint||"/e/"),u=r!==ih;return!this.get_config("request_batching")||u&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(s,o,r):this._requestQueue.enqueue(s,a,r),this._invokeCaptureHooks(t,a),a}}}},{key:"_addCaptureHook",value:function(t){this.__captureHooks.push(t)}},{key:"_invokeCaptureHooks",value:function(t,n){this.config._onCapture(t,n),hn(this.__captureHooks,function(r){return r(t)})}},{key:"_calculate_event_properties",value:function(t,n){var r,i=this.persistence.remove_event_timer(t),a=vt({},n);if(a.token=this.get_config("token"),t==="$snapshot"){var o=vt(vt({},this.persistence.properties()),this.sessionPersistence.properties());return a.distinct_id=o.distinct_id,a}var s=Sr.properties();if(this.sessionManager){var u=this.sessionManager.checkAndGetSessionAndWindowId(),c=u.sessionId,p=u.windowId;a.$session_id=c,a.$window_id=p}if((r=this.webPerformance)!==null&&r!==void 0&&r.isEnabled&&(t==="$pageview"&&this.pageViewIdManager.onPageview(),a=$r(a,{$pageview_id:this.pageViewIdManager.getPageViewId()})),t==="$pageview"&&(a.title=jn.title),t==="$performance_event"){var f=this.persistence.properties();return a.distinct_id=f.distinct_id,a.$current_url=s.$current_url,a}if(i!==void 0){var m=new Date().getTime()-i;a.$duration=parseFloat((m/1e3).toFixed(3))}a=$r({},Sr.properties(),this.persistence.properties(),this.sessionPersistence.properties(),a);var g=this.get_config("property_blacklist");es(g)?hn(g,function(y){delete a[y]}):console.error("Invalid value for property_blacklist config: "+g);var b=this.get_config("sanitize_properties");return b&&(a=b(a,t)),a}},{key:"register",value:function(t,n){this.persistence.register(t,n)}},{key:"register_once",value:function(t,n,r){this.persistence.register_once(t,n,r)}},{key:"register_for_session",value:function(t){this.sessionPersistence.register(t)}},{key:"unregister",value:function(t){this.persistence.unregister(t)}},{key:"unregister_for_session",value:function(t){this.sessionPersistence.unregister(t)}},{key:"_register_single",value:function(t,n){this.register(ct({},t,n))}},{key:"getFeatureFlag",value:function(t,n){return this.featureFlags.getFeatureFlag(t,n)}},{key:"getFeatureFlagPayload",value:function(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}},{key:"isFeatureEnabled",value:function(t,n){return this.featureFlags.isFeatureEnabled(t,n)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}},{key:"getEarlyAccessFeatures",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,n)}},{key:"onFeatureFlags",value:function(t){return this.featureFlags.onFeatureFlags(t)}},{key:"onSessionId",value:function(t){return this.sessionManager.onSessionId(t)}},{key:"getSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(t,n)}},{key:"getActiveMatchingSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(t,n)}},{key:"identify",value:function(t,n,r){if(t){this._captureMetrics.incr("identify");var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var a=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:a},"")}t!==i&&t!==this.get_property(Bh)&&(this.unregister(Bh),this.register({distinct_id:t}));var o=this.persistence.get_user_state()==="anonymous";t!==i&&o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(n||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Jg))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(t,n){(t||n)&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:n||{}}))}},{key:"group",value:function(t,n,r){if(t&&n){this._captureMetrics.incr("group");var i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:vt(vt({},i),{},ct({},t,n))}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags(ct({},t,r))),i[t]===n||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,n)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(t,n)}},{key:"resetGroupPropertiesForFlags",value:function(t){this.featureFlags.resetGroupPropertiesForFlags(t)}},{key:"reset",value:function(t){var n=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var r=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:r,$device_id:t?r:n},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(t){var n=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=r.sessionId,a=r.sessionStartTimestamp,o=n+"/replay/"+i;if(t!=null&&t.withTimestamp&&a){var s,u=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!a)return o;var c=Math.max(Math.floor((new Date().getTime()-a)/1e3)-u,0);o+="?t=".concat(c)}return o}},{key:"alias",value:function(t,n){return t===this.get_property(jP)?(In.critical("Attempting to create alias for existing People user - aborting."),-2):(ja(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(Bh,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(t),-1))}},{key:"set_config",value:function(t){var n=vt({},this.config);Ny(t)&&($r(this.config,t),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),Kn.is_supported()&&Kn.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(ma.DEBUG=!0),this.sessionRecording&&t.disable_session_recording!==void 0&&n.disable_session_recording!==t.disable_session_recording&&(t.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var t;return!((t=this.sessionRecording)===null||t===void 0||!t.started())}},{key:"loadToolbar",value:function(t){return this.toolbar.loadToolbar(t)}},{key:"get_config",value:function(t){var n;return(n=this.config)===null||n===void 0?void 0:n[t]}},{key:"get_property",value:function(t){return this.persistence.props[t]}},{key:"getSessionProperty",value:function(t){return this.sessionPersistence.props[t]}},{key:"toString",value:function(){var t,n=(t=this.get_config("name"))!==null&&t!==void 0?t:gi;return n!==gi&&(n=gi+"."+n),n}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&Kn.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!yo.get("ph_optout")||(yo.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(t){var n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),this.get_config("disable_persistence")||this.sessionPersistence.disabled===n||this.sessionPersistence.set_disabled(n)}},{key:"_gdpr_call_func",value:function(t,n){return n=$r({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},n||{}),Kn.is_supported()||n.persistence_type!=="localStorage"||(n.persistence_type="cookie"),t(this.get_config("token"),{capture:n.capture,captureEventName:n.capture_event_name,captureProperties:n.capture_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieExpiration:n.cookie_expiration,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie})}},{key:"opt_in_capturing",value:function(t){t=$r({enable_persistence:!0},t||{}),this._gdpr_call_func(Khe,t),this._gdpr_update_persistence(t)}},{key:"opt_out_capturing",value:function(t){var n=$r({clear_persistence:!0},t||{});this._gdpr_call_func(Yhe,n),this._gdpr_update_persistence(n)}},{key:"has_opted_in_capturing",value:function(t){return this._gdpr_call_func(Xhe,t)}},{key:"has_opted_out_capturing",value:function(t){return this._gdpr_call_func(yR,t)}},{key:"clear_opt_in_out_capturing",value:function(t){var n=$r({enable_persistence:!0},t??{});this._gdpr_call_func(Zhe,n),this._gdpr_update_persistence(n)}},{key:"debug",value:function(t){t===!1?(ht.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(ht.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();(function(e,t){for(var n=0;n127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},aR=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=aa,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return hhe().toString()}},The=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},oR=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{In.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},sR=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Qd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;FP(p)&&(m=p(f));var b=c.call(u,f);return m!==!1&&b!==!1||(g=!1),g}}}(t,r,s)}else In.error("No valid element provided to register_event")}}();function pT(e,t){var n=function(){var r=jn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=jn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):jn.body.appendChild(r)};jn.body?n():jn.addEventListener("DOMContentLoaded",n)}var Sr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return hn(t,function(r){var i=oR(jn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=jn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=Sr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=oR(jn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||fn(e," OPR/")?fn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":fn(e,"IEMobile")||fn(e,"WPDesktop")?"Internet Explorer Mobile":fn(e,"SamsungBrowser/")?"Samsung Internet":fn(e,"Edge")||fn(e,"Edg/")?"Microsoft Edge":fn(e,"FBIOS")?"Facebook Mobile":fn(e,"Chrome")?"Chrome":fn(e,"CriOS")?"Chrome iOS":fn(e,"UCWEB")||fn(e,"UCBrowser")?"UC Browser":fn(e,"FxiOS")?"Firefox iOS":fn(t,"Apple")?fn(e,"Mobile")?"Mobile Safari":"Safari":fn(e,"Android")?"Android Mobile":fn(e,"Konqueror")?"Konqueror":fn(e,"Firefox")?"Firefox":fn(e,"MSIE")||fn(e,"Trident/")?"Internet Explorer":fn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Sr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Ql.language||Ql.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return jn.referrer||"$direct"},referringDomain:function(){if(!jn.referrer)return"$direct";var e=jn.createElement("a");return e.href=jn.referrer,e.host},properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera),$device:Sr.device(aa),$device_type:Sr.deviceType(aa)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera),$browser_language:Sr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:ma.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:BP()/1e3})},people_properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera)}),{$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera)})}};function Zg(e){switch(pl(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Qg(e){var t="";return Ph(e)&&!zP(e)&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){$P(n)&&n.textContent&&(t+=Ry(n.textContent).split(/(\s+)/).filter(N1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Ry(t)}function lR(e){return!!e&&e.nodeType===1}function fu(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function $P(e){return!!e&&e.nodeType===3}function uR(e){return!!e&&e.nodeType===11}var k4=["a","button","form","input","select","textarea","label"];function Ph(e){for(var t=e;t.parentNode&&!fu(t,"body");t=t.parentNode){var n=Zg(t).split(" ");if(fn(n,"ph-sensitive")||fn(n,"ph-no-capture"))return!1}if(fn(Zg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function zP(e){return!!(fu(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||fu(e,"select")||fu(e,"textarea")||e.getAttribute("contenteditable")==="true")}function N1(e){return!(e===null||ja(e)||typeof e=="string"&&(e=Ry(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function cR(e){var t=Qg(e);return N1(t="".concat(t," ").concat(HP(e)).trim())?t:""}function HP(e){var t="";return e&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Qg(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(HP(n)).trim())}catch(a){console.error(a)}}),t}var She=function(){function e(t){Un(this,e),this.clicks=[],this.enabled=t}return $n(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),whe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,yo={is_supported:function(){return!0},error:function(e){In.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=cR(e):i.$el_text=Qg(e));var a=Zg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),hn(e.attributes,function(c){var p;zP(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&N1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return hn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),N1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return hn(this._customProperties,function(r){hn(r.event_selectors,function(i){hn(document.querySelectorAll(i),function(a){fn(e,a)&&Ph(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if($P(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||fu(g,"html")||!lR(g))return!1;if(y!=null&&y.url_allowlist){var T=window.location.href,E=y.url_allowlist;if(E&&!E.some(function($){return T.match($)}))return!1}if(y!=null&&y.dom_event_allowlist){var v=y.dom_event_allowlist;if(v&&!v.some(function($){return b.type===$}))return!1}if(y!=null&&y.element_allowlist){var w=y.element_allowlist;if(w&&!w.some(function($){return g.tagName.toLowerCase()===$}))return!1}if(y!=null&&y.css_selector_allowlist){var A=y.css_selector_allowlist;if(A&&!A.some(function($){return g.matches($)}))return!1}for(var R=!1,k=[g],N=!0,B=g;B.parentNode&&!fu(B,"body");)if(uR(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(N=B.parentNode||!1))break;if(k4.indexOf(N.tagName.toLowerCase())>-1)R=!0;else{var q=window.getComputedStyle(N);q&&q.getPropertyValue("cursor")==="pointer"&&(R=!0)}k.push(N),B=N}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&b.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return b.type==="submit";case"input":case"select":case"textarea":return b.type==="change"||b.type==="click";default:return R?b.type==="click":b.type==="click"&&(k4.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!fu(s,"body");)uR(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(hn(o,function(g){var b=Ph(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=b&&N1(u)&&u),fn(Zg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var y=r._getAugmentPropertiesFromElement(g);$r(p,y)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=cR(a):c[0].$el_text=Qg(a)),u&&(c[0].attr__href=u),f)return!1;var m=$r(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Qd(document,"submit",n,!1,!0),Qd(document,"change",n,!1,!0),Qd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new She(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?In.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},dR,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=ja(t)?10:t,n=ja(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Jg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Jg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Fy);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},Fy,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(D1)||{};this.instance.register(ct({},D1,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(D1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Vs)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=vt(vt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Vs,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Vs)||{};this.instance.register(ct({},Vs,vt(vt({},n),{},ct({},t,{}))))}else this.instance.unregister(Vs)}}]),e}(),Ihe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",bR=2,Rhe=4,GP=3,Nhe=6,Ohe=0,Dhe=5e6,Lhe="rrweb/console@1",fo,Mhe=$n(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Un(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,b;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(b=o.adds)===null||b===void 0?void 0:b.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==GP||o.data.source!==Ohe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,b=Co(i.getNodeOrRelevantParent(p.id),2),y=b[0],T=b[1];return i.mutationBuckets[y]===0?!1:(i.mutationBuckets[y]=(f=i.mutationBuckets[y])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[y]=Math.max(i.mutationBuckets[y]-1,0),i.mutationBuckets[y]===0&&(i.loggedTracker[y]||(i.loggedTracker[y]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,y,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Fhe="/s/",VP="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(fo||(fo={}));var Phe=[fo.MouseMove,fo.MouseInteraction,fo.Scroll,fo.ViewportResize,fo.Input,fo.TouchMove,fo.MediaInteraction,fo.Drag],Bhe=function(){function e(t){var n=this;Un(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Fhe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return $n(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(Ly),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(pR),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(fR);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},Ly,!!t.sessionRecording),ct(o,pR,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,fR,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:BP()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?pT(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(ma.LIB_VERSION),function(r){if(r)return In.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===GP&&Phe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[bR,Rhe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return In.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aDhe){var c,p=hs(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Ihe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&pl(u)==="object"&&u.type===Nhe&&pl(u.data)==="object"&&u.data.plugin===Lhe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:VP,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===bR}})}}]),e}(),lo={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Uhe=["first-input","navigation","paint","resource"],$he=["/s/","/e/"],zhe=function(){function e(t){Un(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return $n(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!mhe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Uhe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else In.log("PostHog Peformance observer not started because we are on localhost.");else In.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if($he.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[lo.timeOrigin]=s,o[lo.timestamp]=Math.floor(s+t.startTime),lo)a[u]!==void 0&&(o[lo[u]]=a[u]);if(this.capturePerformanceEvent(o),Hhe(t)){var c,p=hs(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},lo.timeOrigin,s),ct(f,lo.timestamp,Math.floor(s+t.startTime)),ct(f,lo.name,m.name),ct(f,lo.duration,m.duration),ct(f,lo.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[lo.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Hhe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},jhe=function(){function e(t){Un(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return $n(e,[{key:"call",value:function(){var t=this,n=dT(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(D1),group_properties:this.instance.get_property(Vs),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),Ys.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=hs(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=hs(t.siteApps);try{var m=function(){var g=c.value,b=g.id,y=g.url,T=[p,p[p.length-1]==="/"&&y[0]==="/"?y.substring(1):y].join("");window["__$$ph_site_app_".concat(b)]=a.instance,pT(T,function(E){E&&console.error("Error while initializing PostHog app with config id ".concat(b),E)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Ghe=["https://app.posthog.com","https://eu.posthog.com"],Vhe=["source"],Whe=function(){function e(t){Un(this,e),this.instance=t}return $n(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(vt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=sR(t.hash,"__posthog")||sR(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Ghe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=vt(vt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=uhe(s,Vhe);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),pT(a,function(c){c?In.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Qd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),qhe="__ph_opt_in_out_";function Khe(e,t){qP(!0,e,t)}function Yhe(e,t){qP(!1,e,t)}function Xhe(e,t){return WP(e,t)==="1"}function yR(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return hn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){fn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||WP(e,t)==="0"}function Zhe(e,t){fT(t=t||{}).remove(hT(e,t),!!t.crossSubdomainCookie)}function fT(e){return(e=e||{}).persistenceType==="localStorage"?Kn:e.persistenceType==="localStorage+cookie"?Dy:yo}function hT(e,t){return((t=t||{}).persistencePrefix||qhe)+e}function WP(e,t){return fT(t).get(hT(e,t))}function qP(e,t,n){PP(t)&&t.length?(fT(n=n||{}).set(hT(t,n),e?1:0,yhe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var KP=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Un(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return $n(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),Qhe=function(e){NP(n,KP);var t=OP(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Un(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return $n(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;hn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(xy(a.filter(function(o){return o.url.indexOf("/e")===0})),xy(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,vt(vt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return hn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),Jhe=function(){function e(t){Un(this,e),this.enabled=t,this.metrics={}}return $n(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Ui=Uint8Array,ni=Uint16Array,dc=Uint32Array,gT=new Ui([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mT=new Ui([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ER=new Ui([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),YP=function(e,t){for(var n=new ni(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Sn)<<1;ql=(61680&(ql=(52428&ql)>>>2|(13107&ql)<<2))>>>4|(3855&ql)<<4,zy[Sn]=((65280&ql)>>>8|(255&ql)<<8)>>>1}var Jd=function(e,t,n){for(var r=e.length,i=0,a=new ni(t);i>>u]=c}else for(o=new ni(r),i=0;i>>15-e[i];return o},wu=new Ui(288);for(Sn=0;Sn<144;++Sn)wu[Sn]=8;for(Sn=144;Sn<256;++Sn)wu[Sn]=9;for(Sn=256;Sn<280;++Sn)wu[Sn]=7;for(Sn=280;Sn<288;++Sn)wu[Sn]=8;var em=new Ui(32);for(Sn=0;Sn<32;++Sn)em[Sn]=5;var tu,tge=Jd(wu,9,0),nge=Jd(em,5,0),ZP=function(e){return(e/8>>0)+(7&e&&1)},QP=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof ni?ni:e instanceof dc?dc:Ui)(n-t);return r.set(e.subarray(t,n)),r},Ko=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},dd=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},R4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new ni(m+1),b=rge(n[p-1],g,0);if(b>t){r=0;var y=0,T=b-t,E=1<t))break;y+=E-(1<>>=T;y>0;){var w=a[r].s;g[w]=0&&y;--r){var A=a[r].s;g[A]==t&&(--g[A],++y)}b=t}return[new Ui(g),b]},rge=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},_R=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ni(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},pd=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[ER[$-1]];--$);var oe,fe,ce,De,H=c+5<<3,W=pd(i,wu)+pd(a,em)+o,se=pd(i,m)+pd(a,y)+o+14+3*$+pd(N,P)+(2*N[16]+3*N[17]+7*N[18]);if(H<=W&&H<=se)return Uh(t,p,e.subarray(u,u+c));if(Ko(t,p,1+(se15&&(Ko(t,p,L[B]>>>5&127),p+=L[B]>>>12)}}}else oe=tge,fe=wu,ce=nge,De=em;for(B=0;B255){ie=r[B]>>>18&31,dd(t,p,oe[ie+257]),p+=fe[ie+257],ie>7&&(Ko(t,p,r[B]>>>23&31),p+=gT[ie]);var Se=31&r[B];dd(t,p,ce[Se]),p+=De[Se],Se>3&&(dd(t,p,r[B]>>>5&8191),p+=mT[Se])}else dd(t,p,oe[r[B]]),p+=fe[r[B]];return dd(t,p,oe[256]),p+fe[256]},ige=new dc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),age=new Ui(0),oge=function(){for(var e=new dc(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),sge=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},lge=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Ui(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),b=0;if(!o||f<8)for(var y=0;y<=f;y+=65535){var T=y+65535;T>>13,w=8191&E,A=(1<7e3||ce>24576)&&pe>423){b=TR(a,g,0,P,Q,$,fe,ce,H,y-H,b),ce=oe=fe=0,H=y;for(var le=0;le<286;++le)Q[le]=0;for(le=0;le<30;++le)$[le]=0}var L=2,ie=0,Se=w,X=se-D&32767;if(pe>2&&W==q(y-X))for(var ke=Math.min(v,pe)-1,te=Math.min(32767,y),Me=Math.min(258,pe);X<=te&&--Se&&se!=D;){if(a[y+L]==a[y+L-X]){for(var Re=0;ReL){if(L=Re,ie=X,Re>ke)break;var Ze=Math.min(X,Re-2),We=0;for(le=0;leWe&&(We=ot,D=dt)}}}X+=(se=D)-(D=R[se])+32768&32767}if(ie){P[ce++]=268435456|$y[L]<<18|vR[ie];var je=31&$y[L],pt=31&vR[ie];fe+=gT[je]+mT[pt],++Q[257+je],++$[pt],De=y+L,++oe}else P[ce++]=a[y],++Q[a[y]]}}b=TR(a,g,p,P,Q,$,fe,ce,H,y-H,b),p||(b=Uh(g,b,age))}return QP(m,0,u+ZP(b)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},Hy=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},uge=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&Hy(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},cge=function(e){return 10+(e.filename&&e.filename.length+1||0)};function dge(e,t){t===void 0&&(t={});var n=sge(),r=e.length;n.p(e);var i=lge(e,t,cge(t),8),a=i.length;return uge(i,t),Hy(i,a-8,n.d()),Hy(i,a-4,r),i}function pge(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Ui(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Ui(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return QP(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(tu||(tu={}));var fge=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=ma.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=hs(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return hn(c,function(b,y){p=encodeURIComponent(b.toString()),f=encodeURIComponent(y),g[g.length]=f+"="+p}),g.join(m)}(r)},bT=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},JP=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var b=bT(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),hn(r,function(y,T){g.setRequestHeader(T,y)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var y;try{y=JSON.parse(g.responseText)}catch(T){return void In.error(T)}o(y)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(b)},hge=18e5,gge=function(e){NP(n,KP);var t=OP(n);function n(r,i,a){var o;return Un(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return $n(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(hge,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=hs(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=hs(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))ma.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,bT(s,vt(vt({},u),{},{sendBeacon:!0})))}catch(c){ma.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?ma.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):JP({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),rh=1800,SR=60,mge=864e5,bge=function(){function e(t,n,r){Un(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||rh;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=rh):a>rh?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=Co(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>mge,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),yge=$n(function e(t,n,r,i){Un(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],b={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",b),o})}}),Ege=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},vge=function(){function e(t){Un(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return $n(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function wR(e){return typeof Event<"u"&&eB(e,Event)}function eB(e,t){try{return e instanceof t}catch{return!1}}function AR(e){return e===null||pl(e)!=="object"&&typeof e!="function"}function $h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function N4(e){return $h(e,"DOMError")}var CR=/\(error: (.*)\)/,kR=50,zh="?";function O4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var _ge=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Tge=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Age=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Cge=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` +`),u=a;u1024)){var p=CR.test(c)?c.replace(CR,"$1"):c;if(!p.match(/\S*Error: /)){var f,m=hs(r);try{for(m.s();!(f=m.n()).done;){var g=(0,f.value)(p);if(g){o.push(g);break}}}catch(b){m.e(b)}finally{m.f()}if(o.length>=kR)break}}}return function(b){if(!b.length)return[];var y=b.slice(0,kR);return y.reverse(),y.map(function(T){return vt(vt({},T),{},{filename:T.filename||y[y.length-1].filename,function:T.function||"?"})})}(o)}}).apply(void 0,[[30,function(e){var t=_ge.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){var n=Tge.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=Co(xR(t[1]||zh,t[2]),2),i=r[0];return O4(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=Sge.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=wge.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||zh,a=Co(xR(i,r),2);return i=a[0],O4(r=a[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=Age.exec(e);return t?O4(t[2],t[1]||zh,+t[3],t[4]?+t[4]:void 0):void 0}]]),xR=function(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:zh,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},kge=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,xge=/Minified React error #\d+;/i;function Ige(e){var t=e.stacktrace||e.stack||"",n=function(r){if(r){if(typeof r.framesToPop=="number")return r.framesToPop;if(xge.test(r.message))return 1}return 0}(e);try{return Cge(t,n)}catch{}return[]}function D4(e){var t=Ige(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function Rge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:40,n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:"".concat(i.slice(0,t),"...")}return""}function IR(e){var t=Co(e,5),n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s={};if(o===void 0&&typeof n=="string"){var u="Error",c=n,p=n.match(kge);p&&(u=p[1],c=p[2]),s={$exception_type:u,$exception_message:c}}var f=o||n;if(N4(f)||function(y){return $h(y,"DOMException")}(f)){var m=f;if(function(y){return"stack"in y}(f))s=D4(f);else{var g=m.name||(N4(m)?"DOMError":"DOMException"),b=m.message?"".concat(g,": ").concat(m.message):g;s=function(y){return{$exception_type:"Error",$exception_message:y}}(b),s.$exception_type=N4(m)?"DOMError":"DOMException",s.$exception_message=s.$exception_message||b}"code"in m&&(s.$exception_DOMException_code="".concat(m.code))}else(function(y){return $h(y,"ErrorEvent")})(f)&&f.error?s=D4(f.error):function(y){switch(Object.prototype.toString.call(y)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return eB(y,Error)}}(f)?s=D4(f):function(y){return $h(y,"Object")}(f)||wR(f)?(s=function(y){return{$exception_type:wR(y)?y.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",Rge(y))}}(f),s.$exception_is_synthetic=!0):(s.$exception_type=s.$exception_type||"Error",s.$exception_message=s.$exception_message||f,s.$exception_is_synthetic=!0);return vt(vt(vt(vt({},s),{},{$exception_type:s.$exception_type||"UnknownErrorType",$exception_message:s.$exception_message||""},r?{$exception_source:r}:{}),i?{$exception_lineno:i}:{}),a?{$exception_colno:a}:{})}var RR,NR,Nge=function(){function e(t){Un(this,e),ct(this,"originalOnErrorHandler",void 0),ct(this,"originalOnUnhandledRejectionHandler",void 0),ct(this,"errorsToIgnore",[]),this.instance=t}return $n(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var t,n=arguments.length,r=new Array(n),i=0;i1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Py);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.surveys;return n.instance.persistence.register(ct({},Py,o)),t(o)})}},{key:"getActiveMatchingSurveys",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(i){var a=i.filter(function(o){return!(!o.start_date||o.end_date)}).filter(function(o){var s,u;if(!o.conditions)return!0;var c=(s=o.conditions)===null||s===void 0||!s.url||window.location.href.indexOf(o.conditions.url)>-1,p=(u=o.conditions)===null||u===void 0||!u.selector||document.querySelector(o.conditions.selector);return c&&p}).filter(function(o){if(!o.linked_flag_key&&!o.targeting_flag_key)return!0;var s=!o.linked_flag_key||n.instance.featureFlags.isFeatureEnabled(o.linked_flag_key),u=!o.targeting_flag_key||n.instance.featureFlags.isFeatureEnabled(o.targeting_flag_key);return s&&u});return t(a)},r)}}]),e}(),Dge={"X-PostHog-Retry-After-Recordings":VP,"X-PostHog-Retry-After-Events":"events"},Lge=function(){function e(){Un(this,e),ct(this,"limits",{})}return $n(e,[{key:"isRateLimited",value:function(t){var n=this.limits[t||"events"]||!1;return n!==!1&&new Date().getTime()1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,c={segmentRegister:!1,syncCode:!1},p=function(A){return function(){c[A]||(c[A]=!0,c.segmentRegister&&c.syncCode&&(s==null||s(i)))}};if(this.set_config($r({},OR(),a,{name:o,token:t,callback_fn:(o===gi?o:gi+"."+o)+"._jsc"})),this.uuidFn=aR(this.config.uuid_version||"og"),this._jsc=function(){},(ht!=null&&(n=ht.rrweb)!==null&&n!==void 0&&n.record||ht!=null&&ht.rrwebRecord)&&(this.__loaded_recorder_version=ht==null||(u=ht.rrweb)===null||u===void 0?void 0:u.version),this.persistence=new hR(this.config),this._captureMetrics=new Jhe(this.get_config("_capture_metrics")),this._requestQueue=new Qhe(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new gge(this._captureMetrics,this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new bge(this.config,this.persistence,this.uuidFn),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new hR(vt(vt({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(p("segmentRegister"))):p("segmentRegister")(),((r=a.bootstrap)===null||r===void 0?void 0:r.distinctID)!==void 0){var f,m,g=this.get_config("get_device_id")(this.uuidFn()),b=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?g:a.bootstrap.distinctID;this.persistence.set_user_state((m=a.bootstrap)!==null&&m!==void 0&&m.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:b})}if(this._hasBootstrappedFeatureFlags()){var y,T,E=Object.keys(((y=a.bootstrap)===null||y===void 0?void 0:y.featureFlags)||{}).filter(function(A){var R,k;return!((R=a.bootstrap)===null||R===void 0||(k=R.featureFlags)===null||k===void 0||!k[A])}).reduce(function(A,R){var k,N;return A[R]=((k=a.bootstrap)===null||k===void 0||(N=k.featureFlags)===null||N===void 0?void 0:N[R])||!1,A},{}),v=Object.keys(((T=a.bootstrap)===null||T===void 0?void 0:T.featureFlagPayloads)||{}).filter(function(A){return E[A]}).reduce(function(A,R){var k,N,B,q;return(k=a.bootstrap)!==null&&k!==void 0&&(N=k.featureFlagPayloads)!==null&&N!==void 0&&N[R]&&(A[R]=(B=a.bootstrap)===null||B===void 0||(q=B.featureFlagPayloads)===null||q===void 0?void 0:q[R]),A},{});this.featureFlags.receivedFeatureFlags({featureFlags:E,featureFlagPayloads:v})}if(!this.get_distinct_id()){var w=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_user_state("anonymous")}ht.addEventListener&&ht.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),p("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(t){console.error("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:jn.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new jhe(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var t=this;this.has_opted_out_capturing()||os(this.__request_queue,function(n){t._send_request.apply(t,xy(n))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(t,n){if(ja(t))return null;if(Hh)return function(o){t(o,n)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],t(o,n)},a}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(t,n,r){var i=JSON.stringify(n);this.__compress_and_send_json_request(t,i,r||ih,jy)}},{key:"__compress_and_send_json_request",value:function(t,n,r,i){var a=function(c,p,f){return c===tu.GZipJS?[dge(pge(p),{mtime:0}),vt(vt({},f),{},{blob:!0,urlQueryArgs:{compression:tu.GZipJS}})]:[{data:dT(p)},f]}(this.compression[tu.GZipJS]?tu.GZipJS:tu.Base64,n,r),o=Co(a,2),s=o[0],u=o[1];this._send_request(t,s,u,i)}},{key:"_send_request",value:function(t,n,r,i){if(this.rateLimiter.isRateLimited(r._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(tB)this.__request_queue.push([t,n,r,i]);else{var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=$r(a,r||{}),Hh||(r.method="GET");var o="sendBeacon"in ht.navigator&&r.transport==="sendBeacon";if(t=fge(t,r.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{ht.navigator.sendBeacon(t,bT(n,vt(vt({},r),{},{sendBeacon:!0})))}catch{}else if(Hh)try{JP({url:t,data:n,headers:this.get_config("xhr_headers"),options:r,captureMetrics:this._captureMetrics,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(p){console.error(p)}else{var s,u=jn.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=t;var c=jn.getElementsByTagName("script")[0];(s=c.parentNode)===null||s===void 0||s.insertBefore(u,c)}}}},{key:"_execute_array",value:function(t){var n,r=this,i=[],a=[],o=[];os(t,function(u){u&&(n=u[0],ts(n)?o.push(u):typeof u=="function"?u.call(r):ts(u)&&n==="alias"?i.push(u):ts(u)&&n.indexOf("capture")!==-1&&typeof r[n]=="function"?o.push(u):a.push(u))});var s=function(u,c){os(u,function(p){if(ts(p[0])){var f=c;hn(p,function(m){f=f[m[0]].apply(f,m.slice(1))})}else this[p[0]].apply(this,p.slice(1))},c)};s(i,this),s(a,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var t,n;return((t=this.config.bootstrap)===null||t===void 0?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)===null||n===void 0?void 0:n.featureFlags).length>0||!1}},{key:"push",value:function(t){this._execute_array([t])}},{key:"captureException",value:function(t,n){var r;(r=this.exceptionAutocapture)===null||r===void 0||r.captureException([t.name,void 0,void 0,void 0,t],n)}},{key:"capture",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ih;if(this.__loaded&&!function(c,p){var f=!1;try{var m=c.get_config("token"),g=c.get_config("respect_dnt"),b=c.get_config("opt_out_capturing_persistence_type"),y=c.get_config("opt_out_capturing_cookie_prefix")||void 0,T=c.get_config("window");m&&(f=yR(m,{respectDnt:g,persistenceType:b,persistencePrefix:y,window:T}))}catch(E){p||console.error("Unexpected error when checking capturing opt-out status: "+E)}return f}(this,!1)){this._captureMetrics.incr("capture"),t==="$snapshot"&&this._captureMetrics.incr("snapshot");var i=(r=r||ih).transport;if(i&&(r.transport=i),ja(t)||typeof t!="string")console.error("No event name provided to posthog.capture");else if(!The(aa)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var a={uuid:this.uuidFn("v7"),event:t,properties:this._calculate_event_properties(t,n||{})};t==="$identify"&&(a.$set=r.$set,a.$set_once=r.$set_once),(a=vhe(a,r._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=r.timestamp||new Date,this.get_config("debug")&&In.log("PostHog.js send",a);var o=JSON.stringify(a),s=this.get_config("api_host")+(r.endpoint||"/e/"),u=r!==ih;return!this.get_config("request_batching")||u&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(s,o,r):this._requestQueue.enqueue(s,a,r),this._invokeCaptureHooks(t,a),a}}}},{key:"_addCaptureHook",value:function(t){this.__captureHooks.push(t)}},{key:"_invokeCaptureHooks",value:function(t,n){this.config._onCapture(t,n),hn(this.__captureHooks,function(r){return r(t)})}},{key:"_calculate_event_properties",value:function(t,n){var r,i=this.persistence.remove_event_timer(t),a=vt({},n);if(a.token=this.get_config("token"),t==="$snapshot"){var o=vt(vt({},this.persistence.properties()),this.sessionPersistence.properties());return a.distinct_id=o.distinct_id,a}var s=Sr.properties();if(this.sessionManager){var u=this.sessionManager.checkAndGetSessionAndWindowId(),c=u.sessionId,p=u.windowId;a.$session_id=c,a.$window_id=p}if((r=this.webPerformance)!==null&&r!==void 0&&r.isEnabled&&(t==="$pageview"&&this.pageViewIdManager.onPageview(),a=$r(a,{$pageview_id:this.pageViewIdManager.getPageViewId()})),t==="$pageview"&&(a.title=jn.title),t==="$performance_event"){var f=this.persistence.properties();return a.distinct_id=f.distinct_id,a.$current_url=s.$current_url,a}if(i!==void 0){var m=new Date().getTime()-i;a.$duration=parseFloat((m/1e3).toFixed(3))}a=$r({},Sr.properties(),this.persistence.properties(),this.sessionPersistence.properties(),a);var g=this.get_config("property_blacklist");ts(g)?hn(g,function(y){delete a[y]}):console.error("Invalid value for property_blacklist config: "+g);var b=this.get_config("sanitize_properties");return b&&(a=b(a,t)),a}},{key:"register",value:function(t,n){this.persistence.register(t,n)}},{key:"register_once",value:function(t,n,r){this.persistence.register_once(t,n,r)}},{key:"register_for_session",value:function(t){this.sessionPersistence.register(t)}},{key:"unregister",value:function(t){this.persistence.unregister(t)}},{key:"unregister_for_session",value:function(t){this.sessionPersistence.unregister(t)}},{key:"_register_single",value:function(t,n){this.register(ct({},t,n))}},{key:"getFeatureFlag",value:function(t,n){return this.featureFlags.getFeatureFlag(t,n)}},{key:"getFeatureFlagPayload",value:function(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}},{key:"isFeatureEnabled",value:function(t,n){return this.featureFlags.isFeatureEnabled(t,n)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}},{key:"getEarlyAccessFeatures",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,n)}},{key:"onFeatureFlags",value:function(t){return this.featureFlags.onFeatureFlags(t)}},{key:"onSessionId",value:function(t){return this.sessionManager.onSessionId(t)}},{key:"getSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(t,n)}},{key:"getActiveMatchingSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(t,n)}},{key:"identify",value:function(t,n,r){if(t){this._captureMetrics.incr("identify");var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var a=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:a},"")}t!==i&&t!==this.get_property(Bh)&&(this.unregister(Bh),this.register({distinct_id:t}));var o=this.persistence.get_user_state()==="anonymous";t!==i&&o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(n||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Jg))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(t,n){(t||n)&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:n||{}}))}},{key:"group",value:function(t,n,r){if(t&&n){this._captureMetrics.incr("group");var i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:vt(vt({},i),{},ct({},t,n))}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags(ct({},t,r))),i[t]===n||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,n)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(t,n)}},{key:"resetGroupPropertiesForFlags",value:function(t){this.featureFlags.resetGroupPropertiesForFlags(t)}},{key:"reset",value:function(t){var n=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var r=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:r,$device_id:t?r:n},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(t){var n=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=r.sessionId,a=r.sessionStartTimestamp,o=n+"/replay/"+i;if(t!=null&&t.withTimestamp&&a){var s,u=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!a)return o;var c=Math.max(Math.floor((new Date().getTime()-a)/1e3)-u,0);o+="?t=".concat(c)}return o}},{key:"alias",value:function(t,n){return t===this.get_property(jP)?(In.critical("Attempting to create alias for existing People user - aborting."),-2):(ja(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(Bh,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(t),-1))}},{key:"set_config",value:function(t){var n=vt({},this.config);Ny(t)&&($r(this.config,t),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),Kn.is_supported()&&Kn.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(ma.DEBUG=!0),this.sessionRecording&&t.disable_session_recording!==void 0&&n.disable_session_recording!==t.disable_session_recording&&(t.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var t;return!((t=this.sessionRecording)===null||t===void 0||!t.started())}},{key:"loadToolbar",value:function(t){return this.toolbar.loadToolbar(t)}},{key:"get_config",value:function(t){var n;return(n=this.config)===null||n===void 0?void 0:n[t]}},{key:"get_property",value:function(t){return this.persistence.props[t]}},{key:"getSessionProperty",value:function(t){return this.sessionPersistence.props[t]}},{key:"toString",value:function(){var t,n=(t=this.get_config("name"))!==null&&t!==void 0?t:gi;return n!==gi&&(n=gi+"."+n),n}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&Kn.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!yo.get("ph_optout")||(yo.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(t){var n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),this.get_config("disable_persistence")||this.sessionPersistence.disabled===n||this.sessionPersistence.set_disabled(n)}},{key:"_gdpr_call_func",value:function(t,n){return n=$r({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},n||{}),Kn.is_supported()||n.persistence_type!=="localStorage"||(n.persistence_type="cookie"),t(this.get_config("token"),{capture:n.capture,captureEventName:n.capture_event_name,captureProperties:n.capture_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieExpiration:n.cookie_expiration,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie})}},{key:"opt_in_capturing",value:function(t){t=$r({enable_persistence:!0},t||{}),this._gdpr_call_func(Khe,t),this._gdpr_update_persistence(t)}},{key:"opt_out_capturing",value:function(t){var n=$r({clear_persistence:!0},t||{});this._gdpr_call_func(Yhe,n),this._gdpr_update_persistence(n)}},{key:"has_opted_in_capturing",value:function(t){return this._gdpr_call_func(Xhe,t)}},{key:"has_opted_out_capturing",value:function(t){return this._gdpr_call_func(yR,t)}},{key:"clear_opt_in_out_capturing",value:function(t){var n=$r({enable_persistence:!0},t??{});this._gdpr_call_func(Zhe,n),this._gdpr_update_persistence(n)}},{key:"debug",value:function(t){t===!1?(ht.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(ht.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();(function(e,t){for(var n=0;nu.pathnameBase)),o=C.useRef(!1);return gB(()=>{o.current=!0}),C.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){n.go(u);return}let p=aB(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:fl([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,i,e])}const Fme=C.createContext(null);function Pme(e){let t=C.useContext(Il).outlet;return t&&C.createElement(Fme.Provider,{value:e},t)}function Bme(){let{matches:e}=C.useContext(Il),t=e[e.length-1];return t?t.params:{}}function Ume(e,t,n){P2()||$t(!1);let{navigator:r}=C.useContext(M2),{matches:i}=C.useContext(Il),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=TT(),c;if(t){var p;let y=typeof t=="string"?Ro(t):t;s==="/"||(p=y.pathname)!=null&&p.startsWith(s)||$t(!1),c=y}else c=u;let f=c.pathname||"/",m=s==="/"?f:f.slice(s.length)||"/",g=L1(e,{pathname:m}),b=Gme(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:fl([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:fl([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n);return t&&b?C.createElement(F2.Provider,{value:{location:Np({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Wn.Pop}},b):b}function $me(){let e=bB(),t=sB(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,a)}const zme=C.createElement($me,null);class Hme extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?C.createElement(Il.Provider,{value:this.props.routeContext},C.createElement(hB.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jme(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(L2);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Il.Provider,{value:t},r)}function Gme(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let s=a.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id]));s>=0||$t(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,u,c)=>{let p=u.route.id?o==null?void 0:o[u.route.id]:null,f=null;n&&(f=u.route.errorElement||zme);let m=t.concat(a.slice(0,c+1)),g=()=>{let b;return p?b=f:u.route.Component?b=C.createElement(u.route.Component,null):u.route.element?b=u.route.element:b=s,C.createElement(jme,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:b})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?C.createElement(Hme,{location:n.location,revalidation:n.revalidation,component:f,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var Xy;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Xy||(Xy={}));var Op;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(Op||(Op={}));function Vme(e){let t=C.useContext(L2);return t||$t(!1),t}function Wme(e){let t=C.useContext(fB);return t||$t(!1),t}function qme(e){let t=C.useContext(Il);return t||$t(!1),t}function mB(e){let t=qme(),n=t.matches[t.matches.length-1];return n.route.id||$t(!1),n.route.id}function bB(){var e;let t=C.useContext(hB),n=Wme(Op.UseRouteError),r=mB(Op.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Kme(){let{router:e}=Vme(Xy.UseNavigateStable),t=mB(Op.UseNavigateStable),n=C.useRef(!1);return gB(()=>{n.current=!0}),C.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Np({fromRouteId:t},a)))},[e,t])}const Yme="startTransition",VR=Q4[Yme];function Xme(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=C.useState(n.state),{v7_startTransition:o}=r||{},s=C.useCallback(f=>{o&&VR?VR(()=>a(f)):a(f)},[a,o]);C.useLayoutEffect(()=>n.subscribe(s),[n,s]);let u=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,m,g)=>n.navigate(f,{state:m,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(f,m,g)=>n.navigate(f,{replace:!0,state:m,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[n]),c=n.basename||"/",p=C.useMemo(()=>({router:n,navigator:u,static:!1,basename:c}),[n,u,c]);return C.createElement(C.Fragment,null,C.createElement(L2.Provider,{value:p},C.createElement(fB.Provider,{value:i},C.createElement(Jme,{basename:c,location:i.location,navigationType:i.historyAction,navigator:u},i.initialized?C.createElement(Zme,{routes:n.routes,state:i}):t))),null)}function Zme(e){let{routes:t,state:n}=e;return Ume(t,void 0,n)}function Qme(e){return Pme(e.context)}function Jme(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Wn.Pop,navigator:a,static:o=!1}=e;P2()&&$t(!1);let s=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=Ro(r));let{pathname:c="/",search:p="",hash:f="",state:m=null,key:g="default"}=r,b=C.useMemo(()=>{let y=hf(c,s);return y==null?null:{location:{pathname:y,search:p,hash:f,state:m,key:g},navigationType:i}},[s,c,p,f,m,g,i]);return b==null?null:C.createElement(M2.Provider,{value:u},C.createElement(F2.Provider,{children:n,value:b}))}var WR;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(WR||(WR={}));new Promise(()=>{});function e2e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:C.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function t2e(e,t){return Sme({basename:t==null?void 0:t.basename,future:Np({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:qge({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:e2e}).initialize()}const n2e=Ge.div` + */function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),o=C.useRef(!1);return gB(()=>{o.current=!0}),C.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){n.go(u);return}let p=aB(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:fl([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,i,e])}const Fme=C.createContext(null);function Pme(e){let t=C.useContext(Il).outlet;return t&&C.createElement(Fme.Provider,{value:e},t)}function Bme(){let{matches:e}=C.useContext(Il),t=e[e.length-1];return t?t.params:{}}function Ume(e,t,n){P2()||$t(!1);let{navigator:r}=C.useContext(M2),{matches:i}=C.useContext(Il),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=TT(),c;if(t){var p;let y=typeof t=="string"?Ro(t):t;s==="/"||(p=y.pathname)!=null&&p.startsWith(s)||$t(!1),c=y}else c=u;let f=c.pathname||"/",m=s==="/"?f:f.slice(s.length)||"/",g=L1(e,{pathname:m}),b=Gme(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:fl([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:fl([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n);return t&&b?C.createElement(F2.Provider,{value:{location:Np({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Wn.Pop}},b):b}function $me(){let e=bB(),t=sB(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,a)}const zme=C.createElement($me,null);class Hme extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?C.createElement(Il.Provider,{value:this.props.routeContext},C.createElement(hB.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jme(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(L2);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Il.Provider,{value:t},r)}function Gme(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let s=a.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id]));s>=0||$t(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,u,c)=>{let p=u.route.id?o==null?void 0:o[u.route.id]:null,f=null;n&&(f=u.route.errorElement||zme);let m=t.concat(a.slice(0,c+1)),g=()=>{let b;return p?b=f:u.route.Component?b=C.createElement(u.route.Component,null):u.route.element?b=u.route.element:b=s,C.createElement(jme,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:b})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?C.createElement(Hme,{location:n.location,revalidation:n.revalidation,component:f,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var Xy;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Xy||(Xy={}));var Op;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(Op||(Op={}));function Vme(e){let t=C.useContext(L2);return t||$t(!1),t}function Wme(e){let t=C.useContext(fB);return t||$t(!1),t}function qme(e){let t=C.useContext(Il);return t||$t(!1),t}function mB(e){let t=qme(),n=t.matches[t.matches.length-1];return n.route.id||$t(!1),n.route.id}function bB(){var e;let t=C.useContext(hB),n=Wme(Op.UseRouteError),r=mB(Op.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Kme(){let{router:e}=Vme(Xy.UseNavigateStable),t=mB(Op.UseNavigateStable),n=C.useRef(!1);return gB(()=>{n.current=!0}),C.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Np({fromRouteId:t},a)))},[e,t])}const Yme="startTransition",VR=Q4[Yme];function Xme(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=C.useState(n.state),{v7_startTransition:o}=r||{},s=C.useCallback(f=>{o&&VR?VR(()=>a(f)):a(f)},[a,o]);C.useLayoutEffect(()=>n.subscribe(s),[n,s]);let u=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,m,g)=>n.navigate(f,{state:m,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(f,m,g)=>n.navigate(f,{replace:!0,state:m,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[n]),c=n.basename||"/",p=C.useMemo(()=>({router:n,navigator:u,static:!1,basename:c}),[n,u,c]);return C.createElement(C.Fragment,null,C.createElement(L2.Provider,{value:p},C.createElement(fB.Provider,{value:i},C.createElement(Jme,{basename:c,location:i.location,navigationType:i.historyAction,navigator:u},i.initialized?C.createElement(Zme,{routes:n.routes,state:i}):t))),null)}function Zme(e){let{routes:t,state:n}=e;return Ume(t,void 0,n)}function Qme(e){return Pme(e.context)}function Jme(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Wn.Pop,navigator:a,static:o=!1}=e;P2()&&$t(!1);let s=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=Ro(r));let{pathname:c="/",search:p="",hash:f="",state:m=null,key:g="default"}=r,b=C.useMemo(()=>{let y=hf(c,s);return y==null?null:{location:{pathname:y,search:p,hash:f,state:m,key:g},navigationType:i}},[s,c,p,f,m,g,i]);return b==null?null:C.createElement(M2.Provider,{value:u},C.createElement(F2.Provider,{children:n,value:b}))}var WR;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(WR||(WR={}));new Promise(()=>{});function e2e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:C.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function t2e(e,t){return Sme({basename:t==null?void 0:t.basename,future:Np({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:qge({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:e2e}).initialize()}const n2e=Ge.div` display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; align-items: center; -`;function r2e(){const e=bs(),[t,n]=ut.useState(""),r=C.useContext(to),i=eo();return I.jsxs("div",{className:"p-4",children:[I.jsx("h3",{children:"Free Trial Limit Reached"}),I.jsxs("p",{children:["You've reached the free trial limit of 250 free inputs with Continue's OpenAI API key. To keep using Continue, you can either use your own API key, or use a local LLM. To read more about the options, see our"," ",I.jsx("a",{href:"https://continue.dev/docs/customization/models",target:"_blank",children:"documentation"}),". If you're just looking for fastest way to keep going, type '/config' to open your Continue config file and paste your API key into the OpenAIFreeTrial object."]}),I.jsx(Ig,{type:"text",placeholder:"Enter your OpenAI API key",value:t,onChange:a=>n(a.target.value)}),I.jsxs(n2e,{children:[I.jsx(oc,{onClick:()=>{i(cc(!1)),e("/models")},children:"Select model"}),I.jsx(oc,{disabled:!t,onClick:()=>{r==null||r.addModelForRole("*","OpenAI",{model:"gpt-4",api_key:t,title:"GPT-4"}),i(cc(!1))},children:"Use my API key"})]})]})}const i2e=Ge.div` +`;function r2e(){const e=No(),[t,n]=st.useState(""),r=C.useContext(to),i=eo();return I.jsxs("div",{className:"p-4",children:[I.jsx("h3",{children:"Free Trial Limit Reached"}),I.jsxs("p",{children:["You've reached the free trial limit of 250 free inputs with Continue's OpenAI API key. To keep using Continue, you can either use your own API key, or use a local LLM. To read more about the options, see our"," ",I.jsx("a",{href:"https://continue.dev/docs/customization/models",target:"_blank",children:"documentation"}),". If you're just looking for fastest way to keep going, type '/config' to open your Continue config file and paste your API key into the OpenAIFreeTrial object."]}),I.jsx(Ig,{type:"text",placeholder:"Enter your OpenAI API key",value:t,onChange:a=>n(a.target.value)}),I.jsxs(n2e,{children:[I.jsx(oc,{onClick:()=>{i(cc(!1)),e("/models")},children:"Select model"}),I.jsx(oc,{disabled:!t,onClick:()=>{r==null||r.addModelForRole("*","OpenAI",{model:"gpt-4",api_key:t,title:"GPT-4"}),i(cc(!1))},children:"Use my API key"})]})]})}const i2e=Ge.div` overflow-y: scroll; scrollbar-width: none; /* Firefox */ @@ -755,7 +755,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 0; z-index: 100; background-color: ${Ht}; -`;function l2e({error:e,resetErrorBoundary:t}){return I.jsxs("div",{role:"alert",children:[I.jsx("p",{children:"Something went wrong:"}),I.jsx("pre",{style:{color:"red"},children:e.message}),I.jsx(oc,{onClick:t,children:"Restart"})]})}function qR(e){var ce,De;const t=C.useContext(to),n=Bge(),r=eo(),i=bs(),a=zt(H=>H.sessionState),o=zt(H=>{var W;return(W=H.serverState.config.models)==null?void 0:W.default}),s=zt(H=>H.misc.serverStatusMessage),u=zt(H=>H.sessionState.title),c=zt(H=>H.sessionState.active),[p,f]=C.useState(!1),[m,g]=C.useState([]);C.useState(!0);const[b,y]=C.useState(!1);C.useEffect(()=>{setTimeout(()=>{y(!0)},5e3)},[]);const T=C.useRef(null),E=C.useRef(null),v=C.useRef(null),w=zt(H=>H.uiState.bottomMessage),A=zt(H=>H.misc.takenAction);C.useEffect(()=>{v.current&&r(W0e(v.current.getBoundingClientRect().top{var W;const H=()=>{var L,ie;const D=((L=E.current)==null?void 0:L.scrollTop)||0,pe=((ie=E.current)==null?void 0:ie.scrollHeight)||0,le=window.innerHeight||0;D+le+-25>=pe?k(!1):k(!0)};return(W=E.current)==null||W.addEventListener("scroll",H),()=>{window.removeEventListener("scroll",H)}},[E.current]),C.useLayoutEffect(()=>{var H,W;R||(W=E.current)==null||W.scrollTo({top:(H=E.current)==null?void 0:H.scrollHeight,behavior:"instant"})},[(ce=E.current)==null?void 0:ce.scrollHeight,a.history]),C.useEffect(()=>{const H=W=>{W.key==="Backspace"&&xg(W)&&!W.shiftKey?(t==null||t.stopSession(),r(Zd(!1))):W.key==="Escape"&&r(pu(void 0))};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[t,c]);const N=C.useCallback(H=>{if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!H.startsWith("/")||H.startsWith("/edit"))){const pe=localStorage.getItem("ftc");if(pe){const le=parseInt(pe);if(localStorage.setItem("ftc",(le+1).toString()),le>=250){r(cc(!0)),r(C4(I.jsx(r2e,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}f(!0);const W=[...a.history,{name:"User Input",description:H,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:H},hide:!1,depth:0}],se={history:W,context_items:a.context_items};for(let pe of a.context_items)r(SP({item:pe,index:W.length-1}));t.runFromState(se),W.push({name:"Generating Response...",description:" ",observations:[],logs:[],step_type:"SimpleChatStep",params:{},hide:!1,depth:0}),r(KI(W)),r(Zd(!0));const D=localStorage.getItem("mainTextEntryCounter");if(D){let pe=parseInt(D);localStorage.setItem("mainTextEntryCounter",(pe+1).toString()),pe===300&&(r(C4(I.jsxs("div",{className:"text-center p-4",children:["👋 Thanks for using Continue. We are a beta product and love working closely with our first users. If you're interested in speaking, enter your name and email. We won't use this information for anything other than reaching out.",I.jsx("br",{}),I.jsx("br",{}),I.jsxs("form",{onSubmit:le=>{le.preventDefault(),n==null||n.capture("user_interest_form",{name:le.target.elements[0].value,email:le.target.elements[1].value}),r(C4(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(V0e(!1)),r(cc(!0)))}else localStorage.setItem("mainTextEntryCounter","1")},[t,a.history,a.context_items]);C.useEffect(()=>{const H=W=>{W.data.type==="userInput"&&N(W.data.input)};return window.addEventListener("message",H),()=>window.removeEventListener("message",H)},[N]);const B=H=>{if(r(Ad(null)),T.current&&t){let W=T.current.inputValue;if(W.trim()==="")return;if(W.startsWith("#")&&(W.length===7||W.length===4)){localStorage.setItem("continueButtonColor",W),T.current.setInputValue("");return}H&&xg(H)&&(W=`/edit ${W}`),T.current.setInputValue(""),N(W)}},q=(H,W)=>{t&&t.sendStepUserInput(H,W)},P=C.useCallback(H=>{let W=!1;for(let se=H+1;se{const W=[];let se=-1;for(let D=H;D>=0;D--)if(typeof a.history[D]<"u"&&a.history[D].name==="User Input"&&a.history[D].hide===!1){W.push(D),se=D;break}if(W.length===0)return[];for(let D=se+1;D{const W=Q(H),se=W[0];g(D=>{const pe=[...D];return pe[H]=!pe[H],!W.some((L,ie)=>ie>0&&pe[L])?pe[se]=!1:!W.some((ie,Se)=>Se>0&&!pe[ie])&&(pe[se]=!0),pe})},[Q]);C.useEffect(()=>{u&&fe(u)},[u]);const[oe,fe]=C.useState(u||"New Session");return I.jsxs(i2e,{ref:E,onKeyDown:H=>{H.key==="Enter"&&H.ctrlKey&&B()},children:[I.jsxs(s2e,{children:[I.jsx(a2e,{onClick:H=>{H.target.setSelectionRange(0,H.target.value.length)},value:oe,onChange:H=>fe(H.target.value),onBlur:H=>{H.target.value===u||typeof u>"u"&&H.target.value==="New Session"||r(wP(H.target.value))},onKeyDown:H=>{H.key==="Enter"?(H.preventDefault(),H.target.blur()):H.key==="Escape"&&(fe(u||"New Session"),H.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[I.jsx(zi,{onClick:()=>{t==null||t.stopSession(),r(uc())},text:"New Session (⌥⌘N)",children:I.jsx(CL,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(OZ,{width:"1.4em",height:"1.4em"})})]})]}),A&&b&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(zge,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{qa("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(o2e,{children:(De=a==null?void 0:a.history)==null?void 0:De.map((H,W)=>H.hide?null:I.jsx(C.Fragment,{children:I.jsx(WX,{FallbackComponent:l2e,onReset:()=>{t==null||t.stopSession(),r(uc())},children:H.name==="User Input"?H.hide||I.jsx(QI,{isMainInput:!1,value:H.description,active:c&&P(W),onEnter:(se,D)=>{if(D){t==null||t.stopSession();const pe=[...a.history.slice(0,W),{name:"User Input",description:D,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:D},hide:!1,depth:0}];r(KI(pe)),r(Zd(!0));const le={history:pe,context_items:a.context_items};console.log("State: ",le),t.runFromState(le)}se==null||se.stopPropagation(),se==null||se.preventDefault()},groupIndices:Q(W),onToggle:se=>{g(D=>{const pe=[...D];return Q(W).forEach(le=>{pe[le]=se}),pe})},onToggleAll:se=>{g(D=>D.map(pe=>se))},isToggleOpen:typeof m[W]>"u"?!0:m[W],index:W,onDelete:()=>{Q(W).forEach(se=>{console.log(se),r(S4(se))})}}):I.jsx(Gge,{historyNode:H,iconElement:H.step_type==="DefaultModelEditCodeStep"?I.jsx(wZ,{width:"16px",height:"16px"}):H.error?I.jsx(wL,{width:"16px",height:"16px",color:"red"}):I.jsx(SL,{width:"16px",height:"16px"}),open:typeof m[W]>"u"?!H.error:m[W],onToggle:()=>$(W),children:H.error?I.jsx(Wge,{onClose:()=>$(W),error:H.error,onDelete:()=>{r(S4(W))}}):I.jsx(Uue,{index:W,isLast:W===a.history.length-1,isFirst:W===0,open:typeof m[W]>"u"?!0:m[W],onUserInput:se=>{q(se,W)},step:H,onReverse:()=>{t==null||t.reverseToIndex(W)},onRetry:()=>{t==null||t.retryAtIndex(W),f(!0)},onDelete:()=>{r(S4(W))},noUserInputParent:Q(W).length===0},W)})})},W))}),I.jsx("div",{ref:v}),I.jsx(QI,{isMainInput:!0,ref:T,onEnter:(H,W)=>{B(H),H==null||H.stopPropagation(),H==null||H.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const u2e=Ge.div` +`;function l2e({error:e,resetErrorBoundary:t}){return I.jsxs("div",{role:"alert",children:[I.jsx("p",{children:"Something went wrong:"}),I.jsx("pre",{style:{color:"red"},children:e.message}),I.jsx(oc,{onClick:t,children:"Restart"})]})}function qR(e){var ce,De;const t=C.useContext(to),n=Bge(),r=eo(),i=No(),a=zt(H=>H.sessionState),o=zt(H=>{var W;return(W=H.serverState.config.models)==null?void 0:W.default}),s=zt(H=>H.misc.serverStatusMessage),u=zt(H=>H.sessionState.title),c=zt(H=>H.sessionState.active),[p,f]=C.useState(!1),[m,g]=C.useState([]);C.useState(!0);const[b,y]=C.useState(!1);C.useEffect(()=>{setTimeout(()=>{y(!0)},5e3)},[]);const T=C.useRef(null),E=C.useRef(null),v=C.useRef(null),w=zt(H=>H.uiState.bottomMessage),A=zt(H=>H.misc.takenAction);C.useEffect(()=>{v.current&&r(W0e(v.current.getBoundingClientRect().top{var W;const H=()=>{var L,ie;const D=((L=E.current)==null?void 0:L.scrollTop)||0,pe=((ie=E.current)==null?void 0:ie.scrollHeight)||0,le=window.innerHeight||0;D+le+-25>=pe?k(!1):k(!0)};return(W=E.current)==null||W.addEventListener("scroll",H),()=>{window.removeEventListener("scroll",H)}},[E.current]),C.useLayoutEffect(()=>{var H,W;R||(W=E.current)==null||W.scrollTo({top:(H=E.current)==null?void 0:H.scrollHeight,behavior:"instant"})},[(ce=E.current)==null?void 0:ce.scrollHeight,a.history]),C.useEffect(()=>{const H=W=>{W.key==="Backspace"&&xg(W)&&!W.shiftKey?(t==null||t.stopSession(),r(Zd(!1))):W.key==="Escape"&&r(pu(void 0))};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[t,c]);const N=C.useCallback(H=>{if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!H.startsWith("/")||H.startsWith("/edit"))){const pe=localStorage.getItem("ftc");if(pe){const le=parseInt(pe);if(localStorage.setItem("ftc",(le+1).toString()),le>=250){console.log(o,"FTC"),r(cc(!0)),r(C4(I.jsx(r2e,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}f(!0);const W=[...a.history,{name:"User Input",description:H,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:H},hide:!1,depth:0}],se={history:W,context_items:a.context_items};for(let pe of a.context_items)r(SP({item:pe,index:W.length-1}));t.runFromState(se),W.push({name:"Generating Response...",description:" ",observations:[],logs:[],step_type:"SimpleChatStep",params:{},hide:!1,depth:0}),r(KI(W)),r(Zd(!0));const D=localStorage.getItem("mainTextEntryCounter");if(D){let pe=parseInt(D);localStorage.setItem("mainTextEntryCounter",(pe+1).toString()),pe===300&&(r(C4(I.jsxs("div",{className:"text-center p-4",children:["👋 Thanks for using Continue. We are a beta product and love working closely with our first users. If you're interested in speaking, enter your name and email. We won't use this information for anything other than reaching out.",I.jsx("br",{}),I.jsx("br",{}),I.jsxs("form",{onSubmit:le=>{le.preventDefault(),n==null||n.capture("user_interest_form",{name:le.target.elements[0].value,email:le.target.elements[1].value}),r(C4(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(V0e(!1)),r(cc(!0)))}else localStorage.setItem("mainTextEntryCounter","1")},[t,a.history,a.context_items,o]);C.useEffect(()=>{const H=W=>{W.data.type==="userInput"&&N(W.data.input)};return window.addEventListener("message",H),()=>window.removeEventListener("message",H)},[N]);const B=H=>{if(r(Ad(null)),T.current&&t){let W=T.current.inputValue;if(W.trim()==="")return;if(W.startsWith("#")&&(W.length===7||W.length===4)){localStorage.setItem("continueButtonColor",W),T.current.setInputValue("");return}H&&xg(H)&&(W=`/edit ${W}`),T.current.setInputValue(""),N(W)}},q=(H,W)=>{t&&t.sendStepUserInput(H,W)},P=C.useCallback(H=>{let W=!1;for(let se=H+1;se{const W=[];let se=-1;for(let D=H;D>=0;D--)if(typeof a.history[D]<"u"&&a.history[D].name==="User Input"&&a.history[D].hide===!1){W.push(D),se=D;break}if(W.length===0)return[];for(let D=se+1;D{const W=Q(H),se=W[0];g(D=>{const pe=[...D];return pe[H]=!pe[H],!W.some((L,ie)=>ie>0&&pe[L])?pe[se]=!1:!W.some((ie,Se)=>Se>0&&!pe[ie])&&(pe[se]=!0),pe})},[Q]);C.useEffect(()=>{u&&fe(u)},[u]);const[oe,fe]=C.useState(u||"New Session");return I.jsxs(i2e,{ref:E,onKeyDown:H=>{H.key==="Enter"&&H.ctrlKey&&B()},children:[I.jsxs(s2e,{children:[I.jsx(a2e,{onClick:H=>{H.target.setSelectionRange(0,H.target.value.length)},value:oe,onChange:H=>fe(H.target.value),onBlur:H=>{H.target.value===u||typeof u>"u"&&H.target.value==="New Session"||r(wP(H.target.value))},onKeyDown:H=>{H.key==="Enter"?(H.preventDefault(),H.target.blur()):H.key==="Escape"&&(fe(u||"New Session"),H.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[I.jsx(zi,{onClick:()=>{t==null||t.stopSession(),r(uc())},text:"New Session (⌥⌘N)",children:I.jsx(CL,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(OZ,{width:"1.4em",height:"1.4em"})})]})]}),A&&b&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(zge,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{qa("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(o2e,{children:(De=a==null?void 0:a.history)==null?void 0:De.map((H,W)=>H.hide?null:I.jsx(C.Fragment,{children:I.jsx(WX,{FallbackComponent:l2e,onReset:()=>{t==null||t.stopSession(),r(uc())},children:H.name==="User Input"?H.hide||I.jsx(QI,{isMainInput:!1,value:H.description,active:c&&P(W),onEnter:(se,D)=>{if(D){t==null||t.stopSession();const pe=[...a.history.slice(0,W),{name:"User Input",description:D,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:D},hide:!1,depth:0}];r(KI(pe)),r(Zd(!0));const le={history:pe,context_items:a.context_items};console.log("State: ",le),t.runFromState(le)}se==null||se.stopPropagation(),se==null||se.preventDefault()},groupIndices:Q(W),onToggle:se=>{g(D=>{const pe=[...D];return Q(W).forEach(le=>{pe[le]=se}),pe})},onToggleAll:se=>{g(D=>D.map(pe=>se))},isToggleOpen:typeof m[W]>"u"?!0:m[W],index:W,onDelete:()=>{Q(W).forEach(se=>{console.log(se),r(S4(se))})}}):I.jsx(Gge,{historyNode:H,iconElement:H.step_type==="DefaultModelEditCodeStep"?I.jsx(wZ,{width:"16px",height:"16px"}):H.error?I.jsx(wL,{width:"16px",height:"16px",color:"red"}):I.jsx(SL,{width:"16px",height:"16px"}),open:typeof m[W]>"u"?!H.error:m[W],onToggle:()=>$(W),children:H.error?I.jsx(Wge,{onClose:()=>$(W),error:H.error,onDelete:()=>{r(S4(W))}}):I.jsx(Uue,{index:W,isLast:W===a.history.length-1,isFirst:W===0,open:typeof m[W]>"u"?!0:m[W],onUserInput:se=>{q(se,W)},step:H,onReverse:()=>{t==null||t.reverseToIndex(W)},onRetry:()=>{t==null||t.retryAtIndex(W),f(!0)},onDelete:()=>{r(S4(W))},noUserInputParent:Q(W).length===0},W)})})},W))}),I.jsx("div",{ref:v}),I.jsx(QI,{isMainInput:!0,ref:T,onEnter:(H,W)=>{B(H),H==null||H.stopPropagation(),H==null||H.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const u2e=Ge.div` display: flex; flex-direction: row; align-items: center; @@ -803,7 +803,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho padding-right: 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem; -`;function KR(e){const t=e.includes("/")?"/":"\\";return e.split(t).pop()||e}function f2e(){const e=bs(),t=eo(),[n,r]=C.useState([]),[i,a]=C.useState([]),o=C.useContext(to),s=zt(E=>E.config.apiUrl),u=zt(E=>E.config.workspacePaths),c=zt(E=>E.sessionState),p=zt(E=>{var v;return((v=E.config.workspacePaths)==null?void 0:v[0])||""}),[f,m]=C.useState(!1);C.useEffect(()=>{(async()=>{if(!s)return;const v=await fetch(`${s}/sessions/list`);if(!v.ok)throw new Error(`HTTP error! status: ${v.status}`);const w=await v.json();r(w)})()},[o]),C.useEffect(()=>{a(n.filter(E=>!f||typeof u>"u"||typeof E.workspace_directory>"u"?!0:u.includes(E.workspace_directory)).sort((E,v)=>oh(v.date_created).getTime()-oh(E.date_created).getTime()))},[f,n]);const g=new Date(Date.now()-1e3*60*60*24),b=new Date(Date.now()-1e3*60*60*24*7),y=new Date(Date.now()-1e3*60*60*24*30),T=new Date(0);return I.jsxs("div",{className:"overflow-y-scroll",style:{fontSize:pr()},children:[I.jsxs("div",{className:"sticky top-0",style:{backgroundColor:Ht},children:[I.jsxs("div",{className:"items-center flex m-0 p-0",style:{borderBottom:`0.5px solid ${Et}`},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"History"})]}),u&&u.length>0&&I.jsx(c2e,{checked:f,onClick:()=>m(E=>!E),title:`Show only sessions from ${KR(u[u.length-1])}/`})]}),n.filter(E=>!f||typeof u>"u"||typeof E.workspace_directory>"u"?!0:u.includes(E.workspace_directory)).length===0&&I.jsxs("div",{className:"text-center m-4",children:['No past sessions found. To start a new session, either click the "+" button or use the keyboard shortcut: ',I.jsx("b",{children:"Option + Command + N"})]}),I.jsxs("div",{children:[I.jsx("table",{className:"w-full border-spacing-0 border-collapse",children:I.jsx("tbody",{children:i.map((E,v)=>{const w=v>0?oh(i[v-1].date_created):T,A=oh(E.date_created);return I.jsxs(C.Fragment,{children:[v===0&&A>g&&I.jsx(F4,{children:"Today"}),Ab&&w>g&&I.jsx(F4,{children:"This Week"}),Ay&&w>b&&I.jsx(F4,{children:"This Month"}),I.jsx(d2e,{children:I.jsx("td",{children:I.jsxs(p2e,{onClick:async()=>{const R={session_state:{history:c.history,context_items:c.context_items},title:c.title,workspace_directory:p,session_id:c.session_id};console.log(R),await fetch(`${s}/sessions/save`,{method:"POST",body:JSON.stringify(R),headers:{"Content-Type":"application/json"}});const k=await fetch(`${s}/sessions/${E.session_id}`);if(!k.ok)throw new Error(`HTTP error! status: ${k.status}`);const N=await k.json();o==null||o.stopSession(),t(uc(N)),e("/")},children:[I.jsx("div",{className:"text-md",children:E.title}),I.jsxs("div",{className:"text-gray-400",children:[A.toLocaleString("en-US",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"numeric",minute:"2-digit",hour12:!0})," | ",KR(E.workspace_directory||""),"/"]})]})})},v)]},v)})})}),I.jsx("br",{}),I.jsx("i",{className:"text-sm ml-4",children:"All session data is saved in ~/.continue/sessions"})]})]})}const h2e=Ge.div` +`;function KR(e){const t=e.includes("/")?"/":"\\";return e.split(t).pop()||e}function f2e(){const e=No(),t=eo(),[n,r]=C.useState([]),[i,a]=C.useState([]),o=C.useContext(to),s=zt(E=>E.config.apiUrl),u=zt(E=>E.config.workspacePaths),c=zt(E=>E.sessionState),p=zt(E=>{var v;return((v=E.config.workspacePaths)==null?void 0:v[0])||""}),[f,m]=C.useState(!1);C.useEffect(()=>{(async()=>{if(!s)return;const v=await fetch(`${s}/sessions/list`);if(!v.ok)throw new Error(`HTTP error! status: ${v.status}`);const w=await v.json();r(w)})()},[o]),C.useEffect(()=>{a(n.filter(E=>!f||typeof u>"u"||typeof E.workspace_directory>"u"?!0:u.includes(E.workspace_directory)).sort((E,v)=>oh(v.date_created).getTime()-oh(E.date_created).getTime()))},[f,n]);const g=new Date(Date.now()-1e3*60*60*24),b=new Date(Date.now()-1e3*60*60*24*7),y=new Date(Date.now()-1e3*60*60*24*30),T=new Date(0);return I.jsxs("div",{className:"overflow-y-scroll",style:{fontSize:pr()},children:[I.jsxs("div",{className:"sticky top-0",style:{backgroundColor:Ht},children:[I.jsxs("div",{className:"items-center flex m-0 p-0",style:{borderBottom:`0.5px solid ${Et}`},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"History"})]}),u&&u.length>0&&I.jsx(c2e,{checked:f,onClick:()=>m(E=>!E),title:`Show only sessions from ${KR(u[u.length-1])}/`})]}),n.filter(E=>!f||typeof u>"u"||typeof E.workspace_directory>"u"?!0:u.includes(E.workspace_directory)).length===0&&I.jsxs("div",{className:"text-center m-4",children:['No past sessions found. To start a new session, either click the "+" button or use the keyboard shortcut: ',I.jsx("b",{children:"Option + Command + N"})]}),I.jsxs("div",{children:[I.jsx("table",{className:"w-full border-spacing-0 border-collapse",children:I.jsx("tbody",{children:i.map((E,v)=>{const w=v>0?oh(i[v-1].date_created):T,A=oh(E.date_created);return I.jsxs(C.Fragment,{children:[v===0&&A>g&&I.jsx(F4,{children:"Today"}),Ab&&w>g&&I.jsx(F4,{children:"This Week"}),Ay&&w>b&&I.jsx(F4,{children:"This Month"}),I.jsx(d2e,{children:I.jsx("td",{children:I.jsxs(p2e,{onClick:async()=>{const R={session_state:{history:c.history,context_items:c.context_items},title:c.title,workspace_directory:p,session_id:c.session_id};console.log(R),await fetch(`${s}/sessions/save`,{method:"POST",body:JSON.stringify(R),headers:{"Content-Type":"application/json"}});const k=await fetch(`${s}/sessions/${E.session_id}`);if(!k.ok)throw new Error(`HTTP error! status: ${k.status}`);const N=await k.json();o==null||o.stopSession(),t(uc(N)),e("/")},children:[I.jsx("div",{className:"text-md",children:E.title}),I.jsxs("div",{className:"text-gray-400",children:[A.toLocaleString("en-US",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"numeric",minute:"2-digit",hour12:!0})," | ",KR(E.workspace_directory||""),"/"]})]})})},v)]},v)})})}),I.jsx("br",{}),I.jsx("i",{className:"text-sm ml-4",children:"All session data is saved in ~/.continue/sessions"})]})]})}const h2e=Ge.div` display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-gap: 2rem; @@ -836,7 +836,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &:hover { background-color: ${e=>e.backgroundColor||Et}; } -`;function YR(){const e=bs();return I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Help Center"})]}),I.jsxs("div",{className:"grid grid-cols-2 grid-rows-2",children:[I.jsx(sh,{backgroundColor:"rgb(234, 51, 35)",children:I.jsx("a",{href:"https://youtu.be/3Ocrc-WX4iQ?si=eDLYtkc6CXQoHsEc",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5.2 -4.5 60 60",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M 44.898438 14.5 C 44.5 12.300781 42.601563 10.699219 40.398438 10.199219 C 37.101563 9.5 31 9 24.398438 9 C 17.800781 9 11.601563 9.5 8.300781 10.199219 C 6.101563 10.699219 4.199219 12.199219 3.800781 14.5 C 3.398438 17 3 20.5 3 25 C 3 29.5 3.398438 33 3.898438 35.5 C 4.300781 37.699219 6.199219 39.300781 8.398438 39.800781 C 11.898438 40.5 17.898438 41 24.5 41 C 31.101563 41 37.101563 40.5 40.601563 39.800781 C 42.800781 39.300781 44.699219 37.800781 45.101563 35.5 C 45.5 33 46 29.398438 46.101563 25 C 45.898438 20.5 45.398438 17 44.898438 14.5 Z M 19 32 L 19 18 L 31.199219 25 Z"})})})}),I.jsx(sh,{backgroundColor:ha,children:I.jsx("a",{href:"https://continue.dev/docs/how-to-use-continue",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2.2 -2 28 28",fill:Yt,className:"w-full h-full flex items-center justify-center",children:I.jsx("path",{d:"M11.25 4.533A9.707 9.707 0 006 3a9.735 9.735 0 00-3.25.555.75.75 0 00-.5.707v14.25a.75.75 0 001 .707A8.237 8.237 0 016 18.75c1.995 0 3.823.707 5.25 1.886V4.533zM12.75 20.636A8.214 8.214 0 0118 18.75c.966 0 1.89.166 2.75.47a.75.75 0 001-.708V4.262a.75.75 0 00-.5-.707A9.735 9.735 0 0018 3a9.707 9.707 0 00-5.25 1.533v16.103z"})})})}),I.jsx(sh,{backgroundColor:"rgb(88, 98, 227)",children:I.jsx("a",{href:"https://discord.gg/vapESyrFmJ",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5 -5.5 60 60",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M 41.625 10.769531 C 37.644531 7.566406 31.347656 7.023438 31.078125 7.003906 C 30.660156 6.96875 30.261719 7.203125 30.089844 7.589844 C 30.074219 7.613281 29.9375 7.929688 29.785156 8.421875 C 32.417969 8.867188 35.652344 9.761719 38.578125 11.578125 C 39.046875 11.867188 39.191406 12.484375 38.902344 12.953125 C 38.710938 13.261719 38.386719 13.429688 38.050781 13.429688 C 37.871094 13.429688 37.6875 13.378906 37.523438 13.277344 C 32.492188 10.15625 26.210938 10 25 10 C 23.789063 10 17.503906 10.15625 12.476563 13.277344 C 12.007813 13.570313 11.390625 13.425781 11.101563 12.957031 C 10.808594 12.484375 10.953125 11.871094 11.421875 11.578125 C 14.347656 9.765625 17.582031 8.867188 20.214844 8.425781 C 20.0625 7.929688 19.925781 7.617188 19.914063 7.589844 C 19.738281 7.203125 19.34375 6.960938 18.921875 7.003906 C 18.652344 7.023438 12.355469 7.566406 8.320313 10.8125 C 6.214844 12.761719 2 24.152344 2 34 C 2 34.175781 2.046875 34.34375 2.132813 34.496094 C 5.039063 39.605469 12.972656 40.941406 14.78125 41 C 14.789063 41 14.800781 41 14.8125 41 C 15.132813 41 15.433594 40.847656 15.621094 40.589844 L 17.449219 38.074219 C 12.515625 36.800781 9.996094 34.636719 9.851563 34.507813 C 9.4375 34.144531 9.398438 33.511719 9.765625 33.097656 C 10.128906 32.683594 10.761719 32.644531 11.175781 33.007813 C 11.234375 33.0625 15.875 37 25 37 C 34.140625 37 38.78125 33.046875 38.828125 33.007813 C 39.242188 32.648438 39.871094 32.683594 40.238281 33.101563 C 40.601563 33.515625 40.5625 34.144531 40.148438 34.507813 C 40.003906 34.636719 37.484375 36.800781 32.550781 38.074219 L 34.378906 40.589844 C 34.566406 40.847656 34.867188 41 35.1875 41 C 35.199219 41 35.210938 41 35.21875 41 C 37.027344 40.941406 44.960938 39.605469 47.867188 34.496094 C 47.953125 34.34375 48 34.175781 48 34 C 48 24.152344 43.785156 12.761719 41.625 10.769531 Z M 18.5 30 C 16.566406 30 15 28.210938 15 26 C 15 23.789063 16.566406 22 18.5 22 C 20.433594 22 22 23.789063 22 26 C 22 28.210938 20.433594 30 18.5 30 Z M 31.5 30 C 29.566406 30 28 28.210938 28 26 C 28 23.789063 29.566406 22 31.5 22 C 33.433594 22 35 23.789063 35 26 C 35 28.210938 33.433594 30 31.5 30 Z"})})})}),I.jsx(sh,{children:I.jsx("a",{href:"https://github.com/continuedev/continue/issues/new/choose",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-1.2 -1.2 32 32",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"})})})})]}),I.jsx(E2e,{})]})}const v2e=Ge.div` +`;function YR(){const e=No();return I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Help Center"})]}),I.jsxs("div",{className:"grid grid-cols-2 grid-rows-2",children:[I.jsx(sh,{backgroundColor:"rgb(234, 51, 35)",children:I.jsx("a",{href:"https://youtu.be/3Ocrc-WX4iQ?si=eDLYtkc6CXQoHsEc",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5.2 -4.5 60 60",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M 44.898438 14.5 C 44.5 12.300781 42.601563 10.699219 40.398438 10.199219 C 37.101563 9.5 31 9 24.398438 9 C 17.800781 9 11.601563 9.5 8.300781 10.199219 C 6.101563 10.699219 4.199219 12.199219 3.800781 14.5 C 3.398438 17 3 20.5 3 25 C 3 29.5 3.398438 33 3.898438 35.5 C 4.300781 37.699219 6.199219 39.300781 8.398438 39.800781 C 11.898438 40.5 17.898438 41 24.5 41 C 31.101563 41 37.101563 40.5 40.601563 39.800781 C 42.800781 39.300781 44.699219 37.800781 45.101563 35.5 C 45.5 33 46 29.398438 46.101563 25 C 45.898438 20.5 45.398438 17 44.898438 14.5 Z M 19 32 L 19 18 L 31.199219 25 Z"})})})}),I.jsx(sh,{backgroundColor:ha,children:I.jsx("a",{href:"https://continue.dev/docs/how-to-use-continue",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2.2 -2 28 28",fill:Yt,className:"w-full h-full flex items-center justify-center",children:I.jsx("path",{d:"M11.25 4.533A9.707 9.707 0 006 3a9.735 9.735 0 00-3.25.555.75.75 0 00-.5.707v14.25a.75.75 0 001 .707A8.237 8.237 0 016 18.75c1.995 0 3.823.707 5.25 1.886V4.533zM12.75 20.636A8.214 8.214 0 0118 18.75c.966 0 1.89.166 2.75.47a.75.75 0 001-.708V4.262a.75.75 0 00-.5-.707A9.735 9.735 0 0018 3a9.707 9.707 0 00-5.25 1.533v16.103z"})})})}),I.jsx(sh,{backgroundColor:"rgb(88, 98, 227)",children:I.jsx("a",{href:"https://discord.gg/vapESyrFmJ",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5 -5.5 60 60",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M 41.625 10.769531 C 37.644531 7.566406 31.347656 7.023438 31.078125 7.003906 C 30.660156 6.96875 30.261719 7.203125 30.089844 7.589844 C 30.074219 7.613281 29.9375 7.929688 29.785156 8.421875 C 32.417969 8.867188 35.652344 9.761719 38.578125 11.578125 C 39.046875 11.867188 39.191406 12.484375 38.902344 12.953125 C 38.710938 13.261719 38.386719 13.429688 38.050781 13.429688 C 37.871094 13.429688 37.6875 13.378906 37.523438 13.277344 C 32.492188 10.15625 26.210938 10 25 10 C 23.789063 10 17.503906 10.15625 12.476563 13.277344 C 12.007813 13.570313 11.390625 13.425781 11.101563 12.957031 C 10.808594 12.484375 10.953125 11.871094 11.421875 11.578125 C 14.347656 9.765625 17.582031 8.867188 20.214844 8.425781 C 20.0625 7.929688 19.925781 7.617188 19.914063 7.589844 C 19.738281 7.203125 19.34375 6.960938 18.921875 7.003906 C 18.652344 7.023438 12.355469 7.566406 8.320313 10.8125 C 6.214844 12.761719 2 24.152344 2 34 C 2 34.175781 2.046875 34.34375 2.132813 34.496094 C 5.039063 39.605469 12.972656 40.941406 14.78125 41 C 14.789063 41 14.800781 41 14.8125 41 C 15.132813 41 15.433594 40.847656 15.621094 40.589844 L 17.449219 38.074219 C 12.515625 36.800781 9.996094 34.636719 9.851563 34.507813 C 9.4375 34.144531 9.398438 33.511719 9.765625 33.097656 C 10.128906 32.683594 10.761719 32.644531 11.175781 33.007813 C 11.234375 33.0625 15.875 37 25 37 C 34.140625 37 38.78125 33.046875 38.828125 33.007813 C 39.242188 32.648438 39.871094 32.683594 40.238281 33.101563 C 40.601563 33.515625 40.5625 34.144531 40.148438 34.507813 C 40.003906 34.636719 37.484375 36.800781 32.550781 38.074219 L 34.378906 40.589844 C 34.566406 40.847656 34.867188 41 35.1875 41 C 35.199219 41 35.210938 41 35.21875 41 C 37.027344 40.941406 44.960938 39.605469 47.867188 34.496094 C 47.953125 34.34375 48 34.175781 48 34 C 48 24.152344 43.785156 12.761719 41.625 10.769531 Z M 18.5 30 C 16.566406 30 15 28.210938 15 26 C 15 23.789063 16.566406 22 18.5 22 C 20.433594 22 22 23.789063 22 26 C 22 28.210938 20.433594 30 18.5 30 Z M 31.5 30 C 29.566406 30 28 28.210938 28 26 C 28 23.789063 29.566406 22 31.5 22 C 33.433594 22 35 23.789063 35 26 C 35 28.210938 33.433594 30 31.5 30 Z"})})})}),I.jsx(sh,{children:I.jsx("a",{href:"https://github.com/continuedev/continue/issues/new/choose",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-1.2 -1.2 32 32",fill:Yt,className:"w-full h-full",children:I.jsx("path",{d:"M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"})})})})]}),I.jsx(E2e,{})]})}const v2e=Ge.div` position: fixed; width: 100%; height: 100%; @@ -873,10 +873,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `;Ge.p` color: ${Yt}; margin: 8px auto; -`;const S2e=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),I.jsx(v2e,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(_2e,{onClick:t=>{t.stopPropagation()},children:I.jsx(T2e,{children:typeof e.message=="string"?I.jsx(N9,{children:e.message||""}):e.message})})}));var w2e=Object.defineProperty,A2e=(e,t,n)=>t in e?w2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P4=(e,t,n)=>(A2e(e,typeof t!="symbol"?t+"":t,n),n);let C2e=class{constructor(){P4(this,"current",this.detect()),P4(this,"handoffState","pending"),P4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},hu=new C2e,Gi=(e,t)=>{hu.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function wo(e){let t=C.useRef(e);return Gi(()=>{t.current=e},[e]),t}function yB(e,t){let[n,r]=C.useState(e),i=wo(e);return Gi(()=>r(i.current),[i,r,...t]),n}function k2e(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function vl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return k2e(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=vl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function pc(){let[e]=C.useState(vl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Zt=function(e){let t=wo(e);return ut.useCallback((...n)=>t.current(...n),[t])};function x2e(){let e=typeof document>"u";return"useSyncExternalStore"in Q4?(t=>t.useSyncExternalStore)(Q4)(()=>()=>{},()=>!1,()=>!e):!1}function ST(){let e=x2e(),[t,n]=C.useState(hu.isHandoffComplete);return t&&hu.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>hu.handoff(),[]),e?!1:t}var XR;let B2=(XR=ut.useId)!=null?XR:function(){let e=ST(),[t,n]=ut.useState(e?()=>hu.nextId():null);return Gi(()=>{t===null&&n(hu.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Cr),r}function EB(e){return hu.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZR=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var I2e=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(I2e||{}),R2e=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(R2e||{}),N2e=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(N2e||{}),wT=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wT||{});function vB(e,t=0){var n;return e===((n=EB(e))==null?void 0:n.body)?!1:Cr(t,{0(){return e.matches(ZR)},1(){let r=e;for(;r!==null;){if(r.matches(ZR))return!0;r=r.parentElement}return!1}})}var O2e=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(O2e||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function D2e(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lh(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function L2e(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function M2e(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!vB(u,wT.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);lh("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),lh("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),L2e("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QR(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function F2e(e,t){let[n,r]=C.useState(()=>QR(e));return Gi(()=>{r(QR(e))},[e.type,e.as]),Gi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let P2e=Symbol();function Pu(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Zt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[P2e]))?void 0:n}function B2e(e){throw new Error("Unexpected object: "+e)}var yi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(yi||{});function U2e(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:B2e(e)}})();return a===-1?r:a}function tm(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var nm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(nm||{}),Qs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qs||{});function Rl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=_B(t,e);if(a)return uh(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return uh(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Cr(c?0:1,{0(){return null},1(){return uh({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return uh(s,n,r,o)}function uh(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=B4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,b]of Object.entries(t))typeof b=="boolean"&&(f=!0),b===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(Zy(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(b=>` - ${b}`).join(` +`;const S2e=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),I.jsx(v2e,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(_2e,{onClick:t=>{t.stopPropagation()},children:I.jsx(T2e,{children:typeof e.message=="string"?I.jsx(N9,{children:e.message||""}):st.isValidElement(e.message)?e.message:null})})}));var w2e=Object.defineProperty,A2e=(e,t,n)=>t in e?w2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P4=(e,t,n)=>(A2e(e,typeof t!="symbol"?t+"":t,n),n);let C2e=class{constructor(){P4(this,"current",this.detect()),P4(this,"handoffState","pending"),P4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},hu=new C2e,Gi=(e,t)=>{hu.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function wo(e){let t=C.useRef(e);return Gi(()=>{t.current=e},[e]),t}function yB(e,t){let[n,r]=C.useState(e),i=wo(e);return Gi(()=>r(i.current),[i,r,...t]),n}function k2e(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function vl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return k2e(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=vl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function pc(){let[e]=C.useState(vl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Zt=function(e){let t=wo(e);return st.useCallback((...n)=>t.current(...n),[t])};function x2e(){let e=typeof document>"u";return"useSyncExternalStore"in Q4?(t=>t.useSyncExternalStore)(Q4)(()=>()=>{},()=>!1,()=>!e):!1}function ST(){let e=x2e(),[t,n]=C.useState(hu.isHandoffComplete);return t&&hu.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>hu.handoff(),[]),e?!1:t}var XR;let B2=(XR=st.useId)!=null?XR:function(){let e=ST(),[t,n]=st.useState(e?()=>hu.nextId():null);return Gi(()=>{t===null&&n(hu.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Cr),r}function EB(e){return hu.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZR=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var I2e=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(I2e||{}),R2e=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(R2e||{}),N2e=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(N2e||{}),wT=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wT||{});function vB(e,t=0){var n;return e===((n=EB(e))==null?void 0:n.body)?!1:Cr(t,{0(){return e.matches(ZR)},1(){let r=e;for(;r!==null;){if(r.matches(ZR))return!0;r=r.parentElement}return!1}})}var O2e=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(O2e||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function D2e(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lh(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function L2e(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function M2e(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!vB(u,wT.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);lh("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),lh("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),L2e("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QR(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function F2e(e,t){let[n,r]=C.useState(()=>QR(e));return Gi(()=>{r(QR(e))},[e.type,e.as]),Gi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let P2e=Symbol();function Pu(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Zt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[P2e]))?void 0:n}function B2e(e){throw new Error("Unexpected object: "+e)}var yi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(yi||{});function U2e(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:B2e(e)}})();return a===-1?r:a}function tm(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var nm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(nm||{}),Qs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qs||{});function Rl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=_B(t,e);if(a)return uh(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return uh(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Cr(c?0:1,{0(){return null},1(){return uh({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return uh(s,n,r,o)}function uh(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=B4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,b]of Object.entries(t))typeof b=="boolean"&&(f=!0),b===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(Zy(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(b=>` - ${b}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(b=>` - ${b}`).join(` `)].join(` -`));let f=c.props,m=typeof(f==null?void 0:f.className)=="function"?(...b)=>tm(f==null?void 0:f.className(...b),s.className):tm(f==null?void 0:f.className,s.className),g=m?{className:m}:{};return C.cloneElement(c,Object.assign({},_B(c.props,Zy(B4(s,["ref"]))),p,u,$2e(c.ref,u.ref),g))}return C.createElement(i,Object.assign({},B4(s,["ref"]),i!==C.Fragment&&u,i!==C.Fragment&&p),c)}function $2e(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function _B(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...a)}}});return t}function ys(e){var t;return Object.assign(C.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Zy(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function B4(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function z2e(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&H2e(n)?!1:r}function H2e(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function TB(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))wB(n,SB(t,r),i);return n}function SB(e,t){return e?e+"["+t+"]":t}function wB(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())wB(e,SB(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):TB(n,t,e)}let j2e="div";var AB=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(AB||{});function G2e(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Rl({ourProps:i,theirProps:r,slot:{},defaultTag:j2e,name:"Hidden"})}let V2e=ys(G2e),AT=C.createContext(null);AT.displayName="OpenClosedContext";var Li=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Li||{});function CT(){return C.useContext(AT)}function CB({value:e,children:t}){return ut.createElement(AT.Provider,{value:e},t)}var ur=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ur||{});function W2e(e,t,n){let[r,i]=C.useState(n),a=e!==void 0,o=C.useRef(a),s=C.useRef(!1),u=C.useRef(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!u.current&&(u.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Zt(c=>(a||i(c),t==null?void 0:t(c)))]}function JR(e){return[e.screenX,e.screenY]}function q2e(){let e=C.useRef([-1,-1]);return{wasMoved(t){let n=JR(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=JR(t)}}}function kT(){let e=C.useRef(!1);return Gi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let eN=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tN(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return eN.test(o)&&(o=o.replace(eN,"")),o}function K2e(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():tN(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return tN(e).trim()}function Y2e(e){let t=C.useRef(""),n=C.useRef("");return Zt(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=K2e(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var X2e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(X2e||{}),Z2e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Z2e||{}),Q2e=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Q2e||{}),J2e=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(J2e||{});function U4(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=D2e(t(e.options.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let e5e={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=U4(e),i=U2e(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var s;return!o.dataRef.current.disabled&&((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=U4(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=U4(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},xT=C.createContext(null);xT.displayName="ListboxActionsContext";function gf(e){let t=C.useContext(xT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gf),n}return t}let IT=C.createContext(null);IT.displayName="ListboxDataContext";function mf(e){let t=C.useContext(IT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,mf),n}return t}function t5e(e,t){return Cr(t.type,e5e,e,t)}let n5e=C.Fragment;function r5e(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(ie,Se)=>ie===Se,disabled:u=!1,horizontal:c=!1,multiple:p=!1,...f}=e;const m=c?"horizontal":"vertical";let g=Pu(t),[b=p?[]:void 0,y]=W2e(n,o,r),[T,E]=C.useReducer(t5e,{dataRef:C.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=C.useRef({static:!1,hold:!1}),w=C.useRef(null),A=C.useRef(null),R=C.useRef(null),k=Zt(typeof s=="string"?(ie,Se)=>{let X=s;return(ie==null?void 0:ie[X])===(Se==null?void 0:Se[X])}:s),N=C.useCallback(ie=>Cr(B.mode,{1:()=>b.some(Se=>k(Se,ie)),0:()=>k(b,ie)}),[b]),B=C.useMemo(()=>({...T,value:b,disabled:u,mode:p?1:0,orientation:m,compare:k,isSelected:N,optionsPropsRef:v,labelRef:w,buttonRef:A,optionsRef:R}),[b,u,p,T]);Gi(()=>{T.dataRef.current=B},[B]),M2e([B.buttonRef,B.optionsRef],(ie,Se)=>{var X;E({type:1}),vB(Se,wT.Loose)||(ie.preventDefault(),(X=B.buttonRef.current)==null||X.focus())},B.listboxState===0);let q=C.useMemo(()=>({open:B.listboxState===0,disabled:u,value:b}),[B,u,b]),P=Zt(ie=>{let Se=B.options.find(X=>X.id===ie);Se&&H(Se.dataRef.current.value)}),Q=Zt(()=>{if(B.activeOptionIndex!==null){let{dataRef:ie,id:Se}=B.options[B.activeOptionIndex];H(ie.current.value),E({type:2,focus:yi.Specific,id:Se})}}),$=Zt(()=>E({type:0})),oe=Zt(()=>E({type:1})),fe=Zt((ie,Se,X)=>ie===yi.Specific?E({type:2,focus:yi.Specific,id:Se,trigger:X}):E({type:2,focus:ie,trigger:X})),ce=Zt((ie,Se)=>(E({type:5,id:ie,dataRef:Se}),()=>E({type:6,id:ie}))),De=Zt(ie=>(E({type:7,id:ie}),()=>E({type:7,id:null}))),H=Zt(ie=>Cr(B.mode,{0(){return y==null?void 0:y(ie)},1(){let Se=B.value.slice(),X=Se.findIndex(ke=>k(ke,ie));return X===-1?Se.push(ie):Se.splice(X,1),y==null?void 0:y(Se)}})),W=Zt(ie=>E({type:3,value:ie})),se=Zt(()=>E({type:4})),D=C.useMemo(()=>({onChange:H,registerOption:ce,registerLabel:De,goToOption:fe,closeListbox:oe,openListbox:$,selectActiveOption:Q,selectOption:P,search:W,clearSearch:se}),[]),pe={ref:g},le=C.useRef(null),L=pc();return C.useEffect(()=>{le.current&&r!==void 0&&L.addEventListener(le.current,"reset",()=>{y==null||y(r)})},[le,y]),ut.createElement(xT.Provider,{value:D},ut.createElement(IT.Provider,{value:B},ut.createElement(CB,{value:Cr(B.listboxState,{0:Li.Open,1:Li.Closed})},a!=null&&b!=null&&TB({[a]:b}).map(([ie,Se],X)=>ut.createElement(V2e,{features:AB.Hidden,ref:X===0?ke=>{var te;le.current=(te=ke==null?void 0:ke.closest("form"))!=null?te:null}:void 0,...Zy({key:ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:ie,value:Se})})),Rl({ourProps:pe,theirProps:f,slot:q,defaultTag:n5e,name:"Listbox"}))))}let i5e="button";function a5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-button-${r}`,...a}=e,o=mf("Listbox.Button"),s=gf("Listbox.Button"),u=Pu(o.buttonRef,t),c=pc(),p=Zt(T=>{switch(T.key){case ur.Space:case ur.Enter:case ur.ArrowDown:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.First)});break;case ur.ArrowUp:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.Last)});break}}),f=Zt(T=>{switch(T.key){case ur.Space:T.preventDefault();break}}),m=Zt(T=>{if(z2e(T.currentTarget))return T.preventDefault();o.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var E;return(E=o.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})})):(T.preventDefault(),s.openListbox())}),g=yB(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),b=C.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),y={ref:u,id:i,type:F2e(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":g,disabled:o.disabled,onKeyDown:p,onKeyUp:f,onClick:m};return Rl({ourProps:y,theirProps:a,slot:b,defaultTag:i5e,name:"Listbox.Button"})}let o5e="label";function s5e(e,t){let n=B2(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,a=mf("Listbox.Label"),o=gf("Listbox.Label"),s=Pu(a.labelRef,t);Gi(()=>o.registerLabel(r),[r]);let u=Zt(()=>{var p;return(p=a.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=C.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return Rl({ourProps:{ref:s,id:r,onClick:u},theirProps:i,slot:c,defaultTag:o5e,name:"Listbox.Label"})}let l5e="ul",u5e=nm.RenderStrategy|nm.Static;function c5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-options-${r}`,...a}=e,o=mf("Listbox.Options"),s=gf("Listbox.Options"),u=Pu(o.optionsRef,t),c=pc(),p=pc(),f=CT(),m=(()=>f!==null?(f&Li.Open)===Li.Open:o.listboxState===0)();C.useEffect(()=>{var E;let v=o.optionsRef.current;v&&o.listboxState===0&&v!==((E=EB(v))==null?void 0:E.activeElement)&&v.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let g=Zt(E=>{switch(p.dispose(),E.key){case ur.Space:if(o.searchQuery!=="")return E.preventDefault(),E.stopPropagation(),s.search(E.key);case ur.Enter:if(E.preventDefault(),E.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:v}=o.options[o.activeOptionIndex];s.onChange(v.current.value)}o.mode===0&&(s.closeListbox(),vl().nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})}));break;case Cr(o.orientation,{vertical:ur.ArrowDown,horizontal:ur.ArrowRight}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Next);case Cr(o.orientation,{vertical:ur.ArrowUp,horizontal:ur.ArrowLeft}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Previous);case ur.Home:case ur.PageUp:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.First);case ur.End:case ur.PageDown:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Last);case ur.Escape:return E.preventDefault(),E.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})});case ur.Tab:E.preventDefault(),E.stopPropagation();break;default:E.key.length===1&&(s.search(E.key),p.setTimeout(()=>s.clearSearch(),350));break}}),b=yB(()=>{var E,v,w;return(w=(E=o.labelRef.current)==null?void 0:E.id)!=null?w:(v=o.buttonRef.current)==null?void 0:v.id},[o.labelRef.current,o.buttonRef.current]),y=C.useMemo(()=>({open:o.listboxState===0}),[o]),T={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":b,"aria-orientation":o.orientation,id:i,onKeyDown:g,role:"listbox",tabIndex:0,ref:u};return Rl({ourProps:T,theirProps:a,slot:y,defaultTag:l5e,features:u5e,visible:m,name:"Listbox.Options"})}let d5e="li";function p5e(e,t){let n=B2(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...o}=e,s=mf("Listbox.Option"),u=gf("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===r:!1,p=s.isSelected(a),f=C.useRef(null),m=Y2e(f),g=wo({disabled:i,value:a,domRef:f,get textValue(){return m()}}),b=Pu(t,f);Gi(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let k=vl();return k.requestAnimationFrame(()=>{var N,B;(B=(N=f.current)==null?void 0:N.scrollIntoView)==null||B.call(N,{block:"nearest"})}),k.dispose},[f,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Gi(()=>u.registerOption(r,g),[g,r]);let y=Zt(k=>{if(i)return k.preventDefault();u.onChange(a),s.mode===0&&(u.closeListbox(),vl().nextFrame(()=>{var N;return(N=s.buttonRef.current)==null?void 0:N.focus({preventScroll:!0})}))}),T=Zt(()=>{if(i)return u.goToOption(yi.Nothing);u.goToOption(yi.Specific,r)}),E=q2e(),v=Zt(k=>E.update(k)),w=Zt(k=>{E.wasMoved(k)&&(i||c||u.goToOption(yi.Specific,r,0))}),A=Zt(k=>{E.wasMoved(k)&&(i||c&&u.goToOption(yi.Nothing))}),R=C.useMemo(()=>({active:c,selected:p,disabled:i}),[c,p,i]);return Rl({ourProps:{id:r,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:y,onFocus:T,onPointerEnter:v,onMouseEnter:v,onPointerMove:w,onMouseMove:w,onPointerLeave:A,onMouseLeave:A},theirProps:o,slot:R,defaultTag:d5e,name:"Listbox.Option"})}let f5e=ys(r5e),h5e=ys(a5e),g5e=ys(s5e),m5e=ys(c5e),b5e=ys(p5e),U2=Object.assign(f5e,{Button:h5e,Label:g5e,Options:m5e,Option:b5e});function y5e(e=0){let[t,n]=C.useState(e),r=kT(),i=C.useCallback(u=>{r.current&&n(c=>c|u)},[t,r]),a=C.useCallback(u=>!!(t&u),[t]),o=C.useCallback(u=>{r.current&&n(c=>c&~u)},[n,r]),s=C.useCallback(u=>{r.current&&n(c=>c^u)},[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:s}}function E5e(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function $4(e,...t){e&&t.length>0&&e.classList.add(...t)}function z4(e,...t){e&&t.length>0&&e.classList.remove(...t)}function v5e(e,t){let n=vl();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,f)=>f-p);return c}),s=a+o;if(s!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let u=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return n.add(()=>t()),n.dispose}function _5e(e,t,n,r){let i=n?"enter":"leave",a=vl(),o=r!==void 0?E5e(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Cr(i,{enter:()=>t.enter,leave:()=>t.leave}),u=Cr(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Cr(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return z4(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),$4(e,...t.base,...s,...c),a.nextFrame(()=>{z4(e,...t.base,...s,...c),$4(e,...t.base,...s,...u),v5e(e,()=>(z4(e,...t.base,...s),$4(e,...t.base,...t.entered),o()))}),a.dispose}function T5e({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=kT(),s=pc(),u=wo(n);Gi(()=>{e&&(u.current="enter")},[e]),Gi(()=>{let c=vl();s.add(c.dispose);let p=t.current;if(p&&u.current!=="idle"&&o.current)return c.dispose(),i.current(u.current),c.add(_5e(p,r.current,u.current==="enter",()=>{c.dispose(),a.current(u.current)})),c.dispose},[n])}function Bs(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let $2=C.createContext(null);$2.displayName="TransitionContext";var S5e=(e=>(e.Visible="visible",e.Hidden="hidden",e))(S5e||{});function w5e(){let e=C.useContext($2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function A5e(){let e=C.useContext(z2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let z2=C.createContext(null);z2.displayName="NestingContext";function H2(e){return"children"in e?H2(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function kB(e,t){let n=wo(e),r=C.useRef([]),i=kT(),a=pc(),o=Zt((g,b=Qs.Hidden)=>{let y=r.current.findIndex(({el:T})=>T===g);y!==-1&&(Cr(b,{[Qs.Unmount](){r.current.splice(y,1)},[Qs.Hidden](){r.current[y].state="hidden"}}),a.microTask(()=>{var T;!H2(r)&&i.current&&((T=n.current)==null||T.call(n))}))}),s=Zt(g=>{let b=r.current.find(({el:y})=>y===g);return b?b.state!=="visible"&&(b.state="visible"):r.current.push({el:g,state:"visible"}),()=>o(g,Qs.Unmount)}),u=C.useRef([]),c=C.useRef(Promise.resolve()),p=C.useRef({enter:[],leave:[],idle:[]}),f=Zt((g,b,y)=>{u.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([T])=>T!==g)),t==null||t.chains.current[b].push([g,new Promise(T=>{u.current.push(T)})]),t==null||t.chains.current[b].push([g,new Promise(T=>{Promise.all(p.current[b].map(([E,v])=>v)).then(()=>T())})]),b==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(b)):y(b)}),m=Zt((g,b,y)=>{Promise.all(p.current[b].splice(0).map(([T,E])=>E)).then(()=>{var T;(T=u.current.shift())==null||T()}).then(()=>y(b))});return C.useMemo(()=>({children:r,register:s,unregister:o,onStart:f,onStop:m,wait:c,chains:p}),[s,o,r,f,m,p,c])}function C5e(){}let k5e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nN(e){var t;let n={};for(let r of k5e)n[r]=(t=e[r])!=null?t:C5e;return n}function x5e(e){let t=C.useRef(nN(e));return C.useEffect(()=>{t.current=nN(e)},[e]),t}let I5e="div",xB=nm.RenderStrategy;function R5e(e,t){var n,r;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s,enter:u,enterFrom:c,enterTo:p,entered:f,leave:m,leaveFrom:g,leaveTo:b,...y}=e,T=C.useRef(null),E=Pu(T,t),v=(n=y.unmount)==null||n?Qs.Unmount:Qs.Hidden,{show:w,appear:A,initial:R}=w5e(),[k,N]=C.useState(w?"visible":"hidden"),B=A5e(),{register:q,unregister:P}=B;C.useEffect(()=>q(T),[q,T]),C.useEffect(()=>{if(v===Qs.Hidden&&T.current){if(w&&k!=="visible"){N("visible");return}return Cr(k,{hidden:()=>P(T),visible:()=>q(T)})}},[k,T,q,P,w,v]);let Q=wo({base:Bs(y.className),enter:Bs(u),enterFrom:Bs(c),enterTo:Bs(p),entered:Bs(f),leave:Bs(m),leaveFrom:Bs(g),leaveTo:Bs(b)}),$=x5e({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s}),oe=ST();C.useEffect(()=>{if(oe&&k==="visible"&&T.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[T,k,oe]);let fe=R&&!A,ce=A&&w&&R,De=(()=>!oe||fe?"idle":w?"enter":"leave")(),H=y5e(0),W=Zt(L=>Cr(L,{enter:()=>{H.addFlag(Li.Opening),$.current.beforeEnter()},leave:()=>{H.addFlag(Li.Closing),$.current.beforeLeave()},idle:()=>{}})),se=Zt(L=>Cr(L,{enter:()=>{H.removeFlag(Li.Opening),$.current.afterEnter()},leave:()=>{H.removeFlag(Li.Closing),$.current.afterLeave()},idle:()=>{}})),D=kB(()=>{N("hidden"),P(T)},B);T5e({immediate:ce,container:T,classes:Q,direction:De,onStart:wo(L=>{D.onStart(T,L,W)}),onStop:wo(L=>{D.onStop(T,L,se),L==="leave"&&!H2(D)&&(N("hidden"),P(T))})});let pe=y,le={ref:E};return ce?pe={...pe,className:tm(y.className,...Q.current.enter,...Q.current.enterFrom)}:(pe.className=tm(y.className,(r=T.current)==null?void 0:r.className),pe.className===""&&delete pe.className),ut.createElement(z2.Provider,{value:D},ut.createElement(CB,{value:Cr(k,{visible:Li.Open,hidden:Li.Closed})|H.flags},Rl({ourProps:le,theirProps:pe,defaultTag:I5e,features:xB,visible:k==="visible",name:"Transition.Child"})))}function N5e(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=C.useRef(null),s=Pu(o,t);ST();let u=CT();if(n===void 0&&u!==null&&(n=(u&Li.Open)===Li.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,p]=C.useState(n?"visible":"hidden"),f=kB(()=>{p("hidden")}),[m,g]=C.useState(!0),b=C.useRef([n]);Gi(()=>{m!==!1&&b.current[b.current.length-1]!==n&&(b.current.push(n),g(!1))},[b,n]);let y=C.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);C.useEffect(()=>{if(n)p("visible");else if(!H2(f))p("hidden");else{let w=o.current;if(!w)return;let A=w.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&p("hidden")}},[n,f]);let T={unmount:i},E=Zt(()=>{var w;m&&g(!1),(w=e.beforeEnter)==null||w.call(e)}),v=Zt(()=>{var w;m&&g(!1),(w=e.beforeLeave)==null||w.call(e)});return ut.createElement(z2.Provider,{value:f},ut.createElement($2.Provider,{value:y},Rl({ourProps:{...T,as:C.Fragment,children:ut.createElement(IB,{ref:s,...T,...a,beforeEnter:E,beforeLeave:v})},theirProps:{},defaultTag:C.Fragment,features:xB,visible:c==="visible",name:"Transition"})))}function O5e(e,t){let n=C.useContext($2)!==null,r=CT()!==null;return ut.createElement(ut.Fragment,null,!n&&r?ut.createElement(Qy,{ref:t,...e}):ut.createElement(IB,{ref:t,...e}))}let Qy=ys(N5e),IB=ys(R5e),D5e=ys(O5e),L5e=Object.assign(Qy,{Child:D5e,Root:Qy});const M5e=Ge.div` +`));let f=c.props,m=typeof(f==null?void 0:f.className)=="function"?(...b)=>tm(f==null?void 0:f.className(...b),s.className):tm(f==null?void 0:f.className,s.className),g=m?{className:m}:{};return C.cloneElement(c,Object.assign({},_B(c.props,Zy(B4(s,["ref"]))),p,u,$2e(c.ref,u.ref),g))}return C.createElement(i,Object.assign({},B4(s,["ref"]),i!==C.Fragment&&u,i!==C.Fragment&&p),c)}function $2e(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function _B(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...a)}}});return t}function ys(e){var t;return Object.assign(C.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Zy(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function B4(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function z2e(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&H2e(n)?!1:r}function H2e(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function TB(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))wB(n,SB(t,r),i);return n}function SB(e,t){return e?e+"["+t+"]":t}function wB(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())wB(e,SB(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):TB(n,t,e)}let j2e="div";var AB=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(AB||{});function G2e(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Rl({ourProps:i,theirProps:r,slot:{},defaultTag:j2e,name:"Hidden"})}let V2e=ys(G2e),AT=C.createContext(null);AT.displayName="OpenClosedContext";var Li=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Li||{});function CT(){return C.useContext(AT)}function CB({value:e,children:t}){return st.createElement(AT.Provider,{value:e},t)}var ur=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ur||{});function W2e(e,t,n){let[r,i]=C.useState(n),a=e!==void 0,o=C.useRef(a),s=C.useRef(!1),u=C.useRef(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!u.current&&(u.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Zt(c=>(a||i(c),t==null?void 0:t(c)))]}function JR(e){return[e.screenX,e.screenY]}function q2e(){let e=C.useRef([-1,-1]);return{wasMoved(t){let n=JR(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=JR(t)}}}function kT(){let e=C.useRef(!1);return Gi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let eN=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tN(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return eN.test(o)&&(o=o.replace(eN,"")),o}function K2e(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():tN(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return tN(e).trim()}function Y2e(e){let t=C.useRef(""),n=C.useRef("");return Zt(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=K2e(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var X2e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(X2e||{}),Z2e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Z2e||{}),Q2e=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Q2e||{}),J2e=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(J2e||{});function U4(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=D2e(t(e.options.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let e5e={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=U4(e),i=U2e(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var s;return!o.dataRef.current.disabled&&((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=U4(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=U4(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},xT=C.createContext(null);xT.displayName="ListboxActionsContext";function gf(e){let t=C.useContext(xT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gf),n}return t}let IT=C.createContext(null);IT.displayName="ListboxDataContext";function mf(e){let t=C.useContext(IT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,mf),n}return t}function t5e(e,t){return Cr(t.type,e5e,e,t)}let n5e=C.Fragment;function r5e(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(ie,Se)=>ie===Se,disabled:u=!1,horizontal:c=!1,multiple:p=!1,...f}=e;const m=c?"horizontal":"vertical";let g=Pu(t),[b=p?[]:void 0,y]=W2e(n,o,r),[T,E]=C.useReducer(t5e,{dataRef:C.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=C.useRef({static:!1,hold:!1}),w=C.useRef(null),A=C.useRef(null),R=C.useRef(null),k=Zt(typeof s=="string"?(ie,Se)=>{let X=s;return(ie==null?void 0:ie[X])===(Se==null?void 0:Se[X])}:s),N=C.useCallback(ie=>Cr(B.mode,{1:()=>b.some(Se=>k(Se,ie)),0:()=>k(b,ie)}),[b]),B=C.useMemo(()=>({...T,value:b,disabled:u,mode:p?1:0,orientation:m,compare:k,isSelected:N,optionsPropsRef:v,labelRef:w,buttonRef:A,optionsRef:R}),[b,u,p,T]);Gi(()=>{T.dataRef.current=B},[B]),M2e([B.buttonRef,B.optionsRef],(ie,Se)=>{var X;E({type:1}),vB(Se,wT.Loose)||(ie.preventDefault(),(X=B.buttonRef.current)==null||X.focus())},B.listboxState===0);let q=C.useMemo(()=>({open:B.listboxState===0,disabled:u,value:b}),[B,u,b]),P=Zt(ie=>{let Se=B.options.find(X=>X.id===ie);Se&&H(Se.dataRef.current.value)}),Q=Zt(()=>{if(B.activeOptionIndex!==null){let{dataRef:ie,id:Se}=B.options[B.activeOptionIndex];H(ie.current.value),E({type:2,focus:yi.Specific,id:Se})}}),$=Zt(()=>E({type:0})),oe=Zt(()=>E({type:1})),fe=Zt((ie,Se,X)=>ie===yi.Specific?E({type:2,focus:yi.Specific,id:Se,trigger:X}):E({type:2,focus:ie,trigger:X})),ce=Zt((ie,Se)=>(E({type:5,id:ie,dataRef:Se}),()=>E({type:6,id:ie}))),De=Zt(ie=>(E({type:7,id:ie}),()=>E({type:7,id:null}))),H=Zt(ie=>Cr(B.mode,{0(){return y==null?void 0:y(ie)},1(){let Se=B.value.slice(),X=Se.findIndex(ke=>k(ke,ie));return X===-1?Se.push(ie):Se.splice(X,1),y==null?void 0:y(Se)}})),W=Zt(ie=>E({type:3,value:ie})),se=Zt(()=>E({type:4})),D=C.useMemo(()=>({onChange:H,registerOption:ce,registerLabel:De,goToOption:fe,closeListbox:oe,openListbox:$,selectActiveOption:Q,selectOption:P,search:W,clearSearch:se}),[]),pe={ref:g},le=C.useRef(null),L=pc();return C.useEffect(()=>{le.current&&r!==void 0&&L.addEventListener(le.current,"reset",()=>{y==null||y(r)})},[le,y]),st.createElement(xT.Provider,{value:D},st.createElement(IT.Provider,{value:B},st.createElement(CB,{value:Cr(B.listboxState,{0:Li.Open,1:Li.Closed})},a!=null&&b!=null&&TB({[a]:b}).map(([ie,Se],X)=>st.createElement(V2e,{features:AB.Hidden,ref:X===0?ke=>{var te;le.current=(te=ke==null?void 0:ke.closest("form"))!=null?te:null}:void 0,...Zy({key:ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:ie,value:Se})})),Rl({ourProps:pe,theirProps:f,slot:q,defaultTag:n5e,name:"Listbox"}))))}let i5e="button";function a5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-button-${r}`,...a}=e,o=mf("Listbox.Button"),s=gf("Listbox.Button"),u=Pu(o.buttonRef,t),c=pc(),p=Zt(T=>{switch(T.key){case ur.Space:case ur.Enter:case ur.ArrowDown:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.First)});break;case ur.ArrowUp:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.Last)});break}}),f=Zt(T=>{switch(T.key){case ur.Space:T.preventDefault();break}}),m=Zt(T=>{if(z2e(T.currentTarget))return T.preventDefault();o.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var E;return(E=o.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})})):(T.preventDefault(),s.openListbox())}),g=yB(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),b=C.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),y={ref:u,id:i,type:F2e(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":g,disabled:o.disabled,onKeyDown:p,onKeyUp:f,onClick:m};return Rl({ourProps:y,theirProps:a,slot:b,defaultTag:i5e,name:"Listbox.Button"})}let o5e="label";function s5e(e,t){let n=B2(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,a=mf("Listbox.Label"),o=gf("Listbox.Label"),s=Pu(a.labelRef,t);Gi(()=>o.registerLabel(r),[r]);let u=Zt(()=>{var p;return(p=a.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=C.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return Rl({ourProps:{ref:s,id:r,onClick:u},theirProps:i,slot:c,defaultTag:o5e,name:"Listbox.Label"})}let l5e="ul",u5e=nm.RenderStrategy|nm.Static;function c5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-options-${r}`,...a}=e,o=mf("Listbox.Options"),s=gf("Listbox.Options"),u=Pu(o.optionsRef,t),c=pc(),p=pc(),f=CT(),m=(()=>f!==null?(f&Li.Open)===Li.Open:o.listboxState===0)();C.useEffect(()=>{var E;let v=o.optionsRef.current;v&&o.listboxState===0&&v!==((E=EB(v))==null?void 0:E.activeElement)&&v.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let g=Zt(E=>{switch(p.dispose(),E.key){case ur.Space:if(o.searchQuery!=="")return E.preventDefault(),E.stopPropagation(),s.search(E.key);case ur.Enter:if(E.preventDefault(),E.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:v}=o.options[o.activeOptionIndex];s.onChange(v.current.value)}o.mode===0&&(s.closeListbox(),vl().nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})}));break;case Cr(o.orientation,{vertical:ur.ArrowDown,horizontal:ur.ArrowRight}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Next);case Cr(o.orientation,{vertical:ur.ArrowUp,horizontal:ur.ArrowLeft}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Previous);case ur.Home:case ur.PageUp:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.First);case ur.End:case ur.PageDown:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Last);case ur.Escape:return E.preventDefault(),E.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})});case ur.Tab:E.preventDefault(),E.stopPropagation();break;default:E.key.length===1&&(s.search(E.key),p.setTimeout(()=>s.clearSearch(),350));break}}),b=yB(()=>{var E,v,w;return(w=(E=o.labelRef.current)==null?void 0:E.id)!=null?w:(v=o.buttonRef.current)==null?void 0:v.id},[o.labelRef.current,o.buttonRef.current]),y=C.useMemo(()=>({open:o.listboxState===0}),[o]),T={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":b,"aria-orientation":o.orientation,id:i,onKeyDown:g,role:"listbox",tabIndex:0,ref:u};return Rl({ourProps:T,theirProps:a,slot:y,defaultTag:l5e,features:u5e,visible:m,name:"Listbox.Options"})}let d5e="li";function p5e(e,t){let n=B2(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...o}=e,s=mf("Listbox.Option"),u=gf("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===r:!1,p=s.isSelected(a),f=C.useRef(null),m=Y2e(f),g=wo({disabled:i,value:a,domRef:f,get textValue(){return m()}}),b=Pu(t,f);Gi(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let k=vl();return k.requestAnimationFrame(()=>{var N,B;(B=(N=f.current)==null?void 0:N.scrollIntoView)==null||B.call(N,{block:"nearest"})}),k.dispose},[f,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Gi(()=>u.registerOption(r,g),[g,r]);let y=Zt(k=>{if(i)return k.preventDefault();u.onChange(a),s.mode===0&&(u.closeListbox(),vl().nextFrame(()=>{var N;return(N=s.buttonRef.current)==null?void 0:N.focus({preventScroll:!0})}))}),T=Zt(()=>{if(i)return u.goToOption(yi.Nothing);u.goToOption(yi.Specific,r)}),E=q2e(),v=Zt(k=>E.update(k)),w=Zt(k=>{E.wasMoved(k)&&(i||c||u.goToOption(yi.Specific,r,0))}),A=Zt(k=>{E.wasMoved(k)&&(i||c&&u.goToOption(yi.Nothing))}),R=C.useMemo(()=>({active:c,selected:p,disabled:i}),[c,p,i]);return Rl({ourProps:{id:r,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:y,onFocus:T,onPointerEnter:v,onMouseEnter:v,onPointerMove:w,onMouseMove:w,onPointerLeave:A,onMouseLeave:A},theirProps:o,slot:R,defaultTag:d5e,name:"Listbox.Option"})}let f5e=ys(r5e),h5e=ys(a5e),g5e=ys(s5e),m5e=ys(c5e),b5e=ys(p5e),U2=Object.assign(f5e,{Button:h5e,Label:g5e,Options:m5e,Option:b5e});function y5e(e=0){let[t,n]=C.useState(e),r=kT(),i=C.useCallback(u=>{r.current&&n(c=>c|u)},[t,r]),a=C.useCallback(u=>!!(t&u),[t]),o=C.useCallback(u=>{r.current&&n(c=>c&~u)},[n,r]),s=C.useCallback(u=>{r.current&&n(c=>c^u)},[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:s}}function E5e(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function $4(e,...t){e&&t.length>0&&e.classList.add(...t)}function z4(e,...t){e&&t.length>0&&e.classList.remove(...t)}function v5e(e,t){let n=vl();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,f)=>f-p);return c}),s=a+o;if(s!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let u=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return n.add(()=>t()),n.dispose}function _5e(e,t,n,r){let i=n?"enter":"leave",a=vl(),o=r!==void 0?E5e(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Cr(i,{enter:()=>t.enter,leave:()=>t.leave}),u=Cr(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Cr(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return z4(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),$4(e,...t.base,...s,...c),a.nextFrame(()=>{z4(e,...t.base,...s,...c),$4(e,...t.base,...s,...u),v5e(e,()=>(z4(e,...t.base,...s),$4(e,...t.base,...t.entered),o()))}),a.dispose}function T5e({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=kT(),s=pc(),u=wo(n);Gi(()=>{e&&(u.current="enter")},[e]),Gi(()=>{let c=vl();s.add(c.dispose);let p=t.current;if(p&&u.current!=="idle"&&o.current)return c.dispose(),i.current(u.current),c.add(_5e(p,r.current,u.current==="enter",()=>{c.dispose(),a.current(u.current)})),c.dispose},[n])}function Bs(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let $2=C.createContext(null);$2.displayName="TransitionContext";var S5e=(e=>(e.Visible="visible",e.Hidden="hidden",e))(S5e||{});function w5e(){let e=C.useContext($2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function A5e(){let e=C.useContext(z2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let z2=C.createContext(null);z2.displayName="NestingContext";function H2(e){return"children"in e?H2(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function kB(e,t){let n=wo(e),r=C.useRef([]),i=kT(),a=pc(),o=Zt((g,b=Qs.Hidden)=>{let y=r.current.findIndex(({el:T})=>T===g);y!==-1&&(Cr(b,{[Qs.Unmount](){r.current.splice(y,1)},[Qs.Hidden](){r.current[y].state="hidden"}}),a.microTask(()=>{var T;!H2(r)&&i.current&&((T=n.current)==null||T.call(n))}))}),s=Zt(g=>{let b=r.current.find(({el:y})=>y===g);return b?b.state!=="visible"&&(b.state="visible"):r.current.push({el:g,state:"visible"}),()=>o(g,Qs.Unmount)}),u=C.useRef([]),c=C.useRef(Promise.resolve()),p=C.useRef({enter:[],leave:[],idle:[]}),f=Zt((g,b,y)=>{u.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([T])=>T!==g)),t==null||t.chains.current[b].push([g,new Promise(T=>{u.current.push(T)})]),t==null||t.chains.current[b].push([g,new Promise(T=>{Promise.all(p.current[b].map(([E,v])=>v)).then(()=>T())})]),b==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(b)):y(b)}),m=Zt((g,b,y)=>{Promise.all(p.current[b].splice(0).map(([T,E])=>E)).then(()=>{var T;(T=u.current.shift())==null||T()}).then(()=>y(b))});return C.useMemo(()=>({children:r,register:s,unregister:o,onStart:f,onStop:m,wait:c,chains:p}),[s,o,r,f,m,p,c])}function C5e(){}let k5e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nN(e){var t;let n={};for(let r of k5e)n[r]=(t=e[r])!=null?t:C5e;return n}function x5e(e){let t=C.useRef(nN(e));return C.useEffect(()=>{t.current=nN(e)},[e]),t}let I5e="div",xB=nm.RenderStrategy;function R5e(e,t){var n,r;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s,enter:u,enterFrom:c,enterTo:p,entered:f,leave:m,leaveFrom:g,leaveTo:b,...y}=e,T=C.useRef(null),E=Pu(T,t),v=(n=y.unmount)==null||n?Qs.Unmount:Qs.Hidden,{show:w,appear:A,initial:R}=w5e(),[k,N]=C.useState(w?"visible":"hidden"),B=A5e(),{register:q,unregister:P}=B;C.useEffect(()=>q(T),[q,T]),C.useEffect(()=>{if(v===Qs.Hidden&&T.current){if(w&&k!=="visible"){N("visible");return}return Cr(k,{hidden:()=>P(T),visible:()=>q(T)})}},[k,T,q,P,w,v]);let Q=wo({base:Bs(y.className),enter:Bs(u),enterFrom:Bs(c),enterTo:Bs(p),entered:Bs(f),leave:Bs(m),leaveFrom:Bs(g),leaveTo:Bs(b)}),$=x5e({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s}),oe=ST();C.useEffect(()=>{if(oe&&k==="visible"&&T.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[T,k,oe]);let fe=R&&!A,ce=A&&w&&R,De=(()=>!oe||fe?"idle":w?"enter":"leave")(),H=y5e(0),W=Zt(L=>Cr(L,{enter:()=>{H.addFlag(Li.Opening),$.current.beforeEnter()},leave:()=>{H.addFlag(Li.Closing),$.current.beforeLeave()},idle:()=>{}})),se=Zt(L=>Cr(L,{enter:()=>{H.removeFlag(Li.Opening),$.current.afterEnter()},leave:()=>{H.removeFlag(Li.Closing),$.current.afterLeave()},idle:()=>{}})),D=kB(()=>{N("hidden"),P(T)},B);T5e({immediate:ce,container:T,classes:Q,direction:De,onStart:wo(L=>{D.onStart(T,L,W)}),onStop:wo(L=>{D.onStop(T,L,se),L==="leave"&&!H2(D)&&(N("hidden"),P(T))})});let pe=y,le={ref:E};return ce?pe={...pe,className:tm(y.className,...Q.current.enter,...Q.current.enterFrom)}:(pe.className=tm(y.className,(r=T.current)==null?void 0:r.className),pe.className===""&&delete pe.className),st.createElement(z2.Provider,{value:D},st.createElement(CB,{value:Cr(k,{visible:Li.Open,hidden:Li.Closed})|H.flags},Rl({ourProps:le,theirProps:pe,defaultTag:I5e,features:xB,visible:k==="visible",name:"Transition.Child"})))}function N5e(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=C.useRef(null),s=Pu(o,t);ST();let u=CT();if(n===void 0&&u!==null&&(n=(u&Li.Open)===Li.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,p]=C.useState(n?"visible":"hidden"),f=kB(()=>{p("hidden")}),[m,g]=C.useState(!0),b=C.useRef([n]);Gi(()=>{m!==!1&&b.current[b.current.length-1]!==n&&(b.current.push(n),g(!1))},[b,n]);let y=C.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);C.useEffect(()=>{if(n)p("visible");else if(!H2(f))p("hidden");else{let w=o.current;if(!w)return;let A=w.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&p("hidden")}},[n,f]);let T={unmount:i},E=Zt(()=>{var w;m&&g(!1),(w=e.beforeEnter)==null||w.call(e)}),v=Zt(()=>{var w;m&&g(!1),(w=e.beforeLeave)==null||w.call(e)});return st.createElement(z2.Provider,{value:f},st.createElement($2.Provider,{value:y},Rl({ourProps:{...T,as:C.Fragment,children:st.createElement(IB,{ref:s,...T,...a,beforeEnter:E,beforeLeave:v})},theirProps:{},defaultTag:C.Fragment,features:xB,visible:c==="visible",name:"Transition"})))}function O5e(e,t){let n=C.useContext($2)!==null,r=CT()!==null;return st.createElement(st.Fragment,null,!n&&r?st.createElement(Qy,{ref:t,...e}):st.createElement(IB,{ref:t,...e}))}let Qy=ys(N5e),IB=ys(R5e),D5e=ys(O5e),L5e=Object.assign(Qy,{Child:D5e,Root:Qy});const M5e=Ge.div` display: grid; grid-template-columns: 1fr auto; align-items: center; @@ -971,7 +971,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &:hover { background-color: ${ha}44; } -`;function H4(e){return e!=null&&e.title?e==null?void 0:e.title:(e==null?void 0:e.model)!==void 0&&(e==null?void 0:e.model.trim())!==""?e!=null&&e.class_name?`${e==null?void 0:e.class_name} - ${e==null?void 0:e.model}`:e==null?void 0:e.model:e==null?void 0:e.class_name}function z5e(e){const t=C.useContext(to),n=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.default}),r=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.saved}),i=bs(),a={value:JSON.stringify({t:"default",idx:-1}),title:"GPT-4"},[o,s]=C.useState([a]);C.useEffect(()=>{if(!n&&!r){s([a]);return}const c=[];n&&c.push({value:JSON.stringify({t:"default",idx:-1}),title:H4(n)}),r==null||r.forEach((p,f)=>{c.push({value:JSON.stringify({t:"saved",idx:f}),title:H4(p)})}),s(c)},[n,r]);const u=document.getElementById("model-select-top-div");return I.jsx(I.Fragment,{children:I.jsxs(M5e,{children:[I.jsx(P5e,{value:JSON.stringify({t:"default",idx:-1}),onChange:c=>{const p=JSON.parse(c);p.t==="saved"&&(t==null||t.setModelForRoleFromIndex("*",p.idx))},defaultValue:"0",children:I.jsxs("div",{className:"relative",children:[I.jsxs(B5e,{children:[I.jsx("div",{children:H4(n)||"GPT-4"}),I.jsx("div",{className:"pointer-events-none flex items-center",children:I.jsx(_Z,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),u&&u9.createPortal(I.jsx(L5e,{as:C.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:I.jsx(U5e,{children:o.map((c,p)=>I.jsx($5e,{selected:c.value===JSON.stringify({t:"default",idx:-1}),value:c.value,children:I.jsx("span",{children:c.title})},p))})}),u)]})}),I.jsx(F5e,{width:"1.3em",height:"1.3em",onClick:()=>{i("/models")}})]})})}const H5e=Ge.div` +`;function H4(e){return e!=null&&e.title?e==null?void 0:e.title:(e==null?void 0:e.model)!==void 0&&(e==null?void 0:e.model.trim())!==""?e!=null&&e.class_name?`${e==null?void 0:e.class_name} - ${e==null?void 0:e.model}`:e==null?void 0:e.model:e==null?void 0:e.class_name}function z5e(e){const t=C.useContext(to),n=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.default}),r=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.saved}),i=No(),a={value:JSON.stringify({t:"default",idx:-1}),title:"GPT-4"},[o,s]=C.useState([a]);C.useEffect(()=>{if(!n&&!r){s([a]);return}const c=[];n&&c.push({value:JSON.stringify({t:"default",idx:-1}),title:H4(n)}),r==null||r.forEach((p,f)=>{c.push({value:JSON.stringify({t:"saved",idx:f}),title:H4(p)})}),s(c)},[n,r]);const u=document.getElementById("model-select-top-div");return I.jsx(I.Fragment,{children:I.jsxs(M5e,{children:[I.jsx(P5e,{value:JSON.stringify({t:"default",idx:-1}),onChange:c=>{const p=JSON.parse(c);p.t==="saved"&&(t==null||t.setModelForRoleFromIndex("*",p.idx))},defaultValue:"0",children:I.jsxs("div",{className:"relative",children:[I.jsxs(B5e,{children:[I.jsx("div",{children:H4(n)||"GPT-4"}),I.jsx("div",{className:"pointer-events-none flex items-center",children:I.jsx(_Z,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),u&&u9.createPortal(I.jsx(L5e,{as:C.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:I.jsx(U5e,{children:o.map((c,p)=>I.jsx($5e,{selected:c.value===JSON.stringify({t:"default",idx:-1}),value:c.value,children:I.jsx("span",{children:c.title})},p))})}),u)]})}),I.jsx(F5e,{width:"1.3em",height:"1.3em",onClick:()=>{i("/models")}})]})})}const H5e=Ge.div` width: 100px; height: 6px; border-radius: 6px; @@ -1053,7 +1053,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin-left: 8px; z-index: 200; font-size: ${pr()}; -`,J5e=()=>{const e=bs(),t=TT(),n=C.useContext(to),r=eo(),i=zt(p=>p.uiState.dialogMessage),a=zt(p=>p.uiState.showDialog),o=zt(p=>{var f;return(f=p.serverState.config.models)==null?void 0:f.default}),s=zt(p=>p.uiState.bottomMessage),u=zt(p=>p.uiState.displayBottomMessageOnBottom),c=zt(p=>p.sessionState.history);return C.useEffect(()=>{const p=f=>{var m;if(f.metaKey&&f.altKey&&f.code==="KeyN"&&(n==null||n.stopSession(),r(uc())),(f.metaKey||f.ctrlKey)&&f.code==="KeyC"){const g=(m=window.getSelection())==null?void 0:m.toString();g&&setTimeout(()=>{navigator.clipboard.writeText(g)},100)}};return window.addEventListener("keydown",p),()=>{window.removeEventListener("keydown",p)}},[n,c]),C.useEffect(()=>{const p=f=>{f.data.type==="addModel"?e("/models"):f.data.type==="openSettings"&&e("/settings")};return window.addEventListener("message",p),()=>{window.removeEventListener("message",p)}},[]),I.jsxs(K5e,{children:[I.jsxs("div",{style:{scrollbarGutter:"stable both-edges",minHeight:"100%",display:"grid",gridTemplateRows:"1fr auto"},children:[I.jsx(S2e,{showDialog:a,onEnter:()=>{r(cc(!1))},onClose:()=>{r(cc(!1))},message:i}),I.jsxs(Z5e,{children:[I.jsx(Qme,{}),I.jsx(Q5e,{id:"model-select-top-div"}),I.jsxs(X5e,{children:[I.jsxs("div",{className:"mr-auto flex gap-2 items-center",children:[localStorage.getItem("ide")==="jetbrains"||localStorage.getItem("hideFeature")==="true"||I.jsx(ZZ,{className:"cursor-pointer",onClick:()=>{localStorage.setItem("hideFeature","true")},onMouseEnter:()=>{r(pu("🎁 New Feature: Use ⌘⇧R automatically debug errors in the terminal (you can click the sparkle icon to make it go away)"))},onMouseLeave:()=>{r(XI(setTimeout(()=>{r(pu(void 0))},2e3)))},width:"1.3em",height:"1.3em",color:"yellow"}),I.jsx(z5e,{}),(o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(t.pathname==="/settings"||parseInt(localStorage.getItem("ftc")||"0")>=125)&&I.jsx(W5e,{completed:parseInt(localStorage.getItem("ftc")||"0"),total:250})]}),I.jsx(zi,{text:"Help",onClick:()=>{e("/help")},children:I.jsx(KZ,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{e("/settings")},text:"Settings",children:I.jsx(kZ,{width:"1.4em",height:"1.4em"})})]})]}),I.jsx(Y5e,{displayOnBottom:u,onMouseEnter:()=>{r(XI(void 0))},onMouseLeave:p=>{p.buttons||r(pu(void 0))},hidden:!s,children:s})]}),I.jsx("div",{className:"text-sm",id:"tooltip-portal-div"})]})};class e3e{}const ko=Object.create(null);ko.open="0";ko.close="1";ko.ping="2";ko.pong="3";ko.message="4";ko.upgrade="5";ko.noop="6";const jh=Object.create(null);Object.keys(ko).forEach(e=>{jh[ko[e]]=e});const Jy={type:"error",data:"parser error"},RB=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",NB=typeof ArrayBuffer=="function",OB=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,RT=({type:e,data:t},n,r)=>RB&&t instanceof Blob?n?r(t):rN(t,r):NB&&(t instanceof ArrayBuffer||OB(t))?n?r(t):rN(new Blob([t]),r):r(ko[e]+(t||"")),rN=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function iN(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let j4;function t3e(e,t){if(RB&&e.data instanceof Blob)return e.data.arrayBuffer().then(iN).then(t);if(NB&&(e.data instanceof ArrayBuffer||OB(e.data)))return t(iN(e.data));RT(e,!1,n=>{j4||(j4=new TextEncoder),t(j4.encode(n))})}const aN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kd=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,i=0,a,o,s,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),p=new Uint8Array(c);for(r=0;r>4,p[i++]=(o&15)<<4|s>>2,p[i++]=(s&3)<<6|u&63;return c},r3e=typeof ArrayBuffer=="function",NT=(e,t)=>{if(typeof e!="string")return{type:"message",data:DB(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:i3e(e.substring(1),t)}:jh[n]?e.length>1?{type:jh[n],data:e.substring(1)}:{type:jh[n]}:Jy},i3e=(e,t)=>{if(r3e){const n=n3e(e);return DB(n,t)}else return{base64:!0,data:e}},DB=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},LB=String.fromCharCode(30),a3e=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((a,o)=>{RT(a,!1,s=>{r[o]=s,++i===n&&t(r.join(LB))})})},o3e=(e,t)=>{const n=e.split(LB),r=[];for(let i=0;i{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const a=new DataView(i.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{i=new Uint8Array(9);const a=new DataView(i.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let G4;function ch(e){return e.reduce((t,n)=>t+n.length,0)}function dh(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;iMath.pow(2,53-32)-1){s.enqueue(Jy);break}i=p*Math.pow(2,32)+c.getUint32(4),r=3}else{if(ch(n)e){s.enqueue(Jy);break}}}})}const MB=4;function Xn(e){if(e)return u3e(e)}function u3e(e){for(var t in Xn.prototype)e[t]=Xn.prototype[t];return e}Xn.prototype.on=Xn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Xn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Xn.prototype.off=Xn.prototype.removeListener=Xn.prototype.removeAllListeners=Xn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function FB(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const c3e=da.setTimeout,d3e=da.clearTimeout;function j2(e,t){t.useNativeTimers?(e.setTimeoutFn=c3e.bind(da),e.clearTimeoutFn=d3e.bind(da)):(e.setTimeoutFn=da.setTimeout.bind(da),e.clearTimeoutFn=da.clearTimeout.bind(da))}const p3e=1.33;function f3e(e){return typeof e=="string"?h3e(e):Math.ceil((e.byteLength||e.size)*p3e)}function h3e(e){let t=0,n=0;for(let r=0,i=e.length;r=57344?n+=3:(r++,n+=4);return n}function g3e(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function m3e(e){let t={},n=e.split("&");for(let r=0,i=n.length;r0);return t}function BB(){const e=lN(+new Date);return e!==sN?(oN=0,sN=e):e+"."+lN(oN++)}for(;ph{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};o3e(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,a3e(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=BB()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Y1(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,a)=>{this.onError("xhr post error",i,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Y1=class Gh extends Xn{constructor(t,n){super(),j2(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=FB(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new $B(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Gh.requestsCount++,Gh.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=v3e,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Gh.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Y1.requestsCount=0;Y1.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",uN);else if(typeof addEventListener=="function"){const e="onpagehide"in da?"pagehide":"unload";addEventListener(e,uN,!1)}}function uN(){for(let e in Y1.requests)Y1.requests.hasOwnProperty(e)&&Y1.requests[e].abort()}const DT=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),fh=da.WebSocket||da.MozWebSocket,cN=!0,S3e="arraybuffer",dN=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class w3e extends OT{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=dN?{}:FB(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=cN&&!dN?n?new fh(t,n):new fh(t):new fh(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const o={};try{cN&&this.ws.send(a)}catch{}i&&DT(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=BB()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!fh}}class A3e extends OT{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=l3e(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=s3e();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const a=()=>{r.read().then(({done:s,value:u})=>{s||(this.onPacket(u),a())}).catch(s=>{})};a();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{i&&DT(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const C3e={websocket:w3e,webtransport:A3e,polling:T3e},k3e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,x3e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function tE(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=k3e.exec(e||""),a={},o=14;for(;o--;)a[x3e[o]]=i[o]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=I3e(a,a.path),a.queryKey=R3e(a,a.query),a}function I3e(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function R3e(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,a){i&&(n[i]=a)}),n}let zB=class p1 extends Xn{constructor(t,n={}){super(),this.binaryType=S3e,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=tE(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=tE(n.host).host),j2(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=m3e(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=MB,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new C3e[t](r)}open(){let t;if(this.opts.rememberUpgrade&&p1.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;p1.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;p1.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function a(){r||(r=!0,p(),n.close(),n=null)}const o=f=>{const m=new Error("probe error: "+f);m.transport=n.name,a(),this.emitReserved("upgradeError",m)};function s(){o("transport closed")}function u(){o("socket closed")}function c(f){n&&f.name!==n.name&&a()}const p=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",s),this.off("close",u),this.off("upgrading",c)};n.once("open",i),n.once("error",o),n.once("close",s),this.once("close",u),this.once("upgrading",c),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",p1.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){p1.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,HB=Object.prototype.toString,L3e=typeof Blob=="function"||typeof Blob<"u"&&HB.call(Blob)==="[object BlobConstructor]",M3e=typeof File=="function"||typeof File<"u"&&HB.call(File)==="[object FileConstructor]";function LT(e){return O3e&&(e instanceof ArrayBuffer||D3e(e))||L3e&&e instanceof Blob||M3e&&e instanceof File}function Vh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let o=0;o{this.io.clearTimeoutFn(a),n.apply(this,[null,...o])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,a)=>{n.push((o,s)=>r?o?a(o):i(s):i(o)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...a)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ut.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ut.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ut.EVENT:case Ut.BINARY_EVENT:this.onevent(t);break;case Ut.ACK:case Ut.BINARY_ACK:this.onack(t);break;case Ut.DISCONNECT:this.ondisconnect();break;case Ut.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:Ut.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ut.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ic.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Ic.prototype.reset=function(){this.attempts=0};Ic.prototype.setMin=function(e){this.ms=e};Ic.prototype.setMax=function(e){this.max=e};Ic.prototype.setJitter=function(e){this.jitter=e};class iE extends Xn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,j2(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ic({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||H3e;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new zB(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Ua(n,"open",function(){r.onopen(),t&&t()}),a=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},o=Ua(n,"error",a);if(this._timeout!==!1){const s=this._timeout,u=this.setTimeoutFn(()=>{i(),a(new Error("timeout")),n.close()},s);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Ua(t,"ping",this.onping.bind(this)),Ua(t,"data",this.ondata.bind(this)),Ua(t,"error",this.onerror.bind(this)),Ua(t,"close",this.onclose.bind(this)),Ua(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){DT(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new jB(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const bd={};function Wh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=N3e(e,t.path||"/socket.io"),r=n.source,i=n.id,a=n.path,o=bd[i]&&a in bd[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let u;return s?u=new iE(r,t):(bd[i]||(bd[i]=new iE(r,t)),u=bd[i]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(Wh,{Manager:iE,Socket:jB,io:Wh,connect:Wh});class GB{}class G3e extends GB{constructor(n){super();Ns(this,"socket");console.log("Connecting to socket.io endpoint: ",n,window.windowId),this.socket=Wh(`${n}?window_id=${window.windowId}`,{path:"/gui/socket.io",transports:["websocket","polling","flashsocket"]})}send(n,r){this.socket.emit("message",{message_type:n,data:r,message_id:Xd()})}ackWithMessageMetadata(n,r,i){return a=>{n({message_id:r,message_type:i,data:a})}}onMessageType(n,r){this.socket.on("message",({message_type:i,data:a},o)=>{n===i&&r(a,this.ackWithMessageMetadata(o,"lolidk",n))})}onMessage(n){this.socket.on("message",({message_type:r,data:i},a)=>{n(r,i,this.ackWithMessageMetadata(a,"lolidk",r))})}onOpen(n){this.socket.on("connect",n)}onClose(n){this.socket.on("disconnect",n)}async sendAndReceive(n,r){return new Promise((i,a)=>{this.socket.emit("message",{message_type:n,data:r,message_id:Xd()},o=>{o&&o.error?a(o.error):i(o)})})}onError(n){this.socket.on("error",n)}close(){this.socket.disconnect()}}class V3e extends GB{constructor(n){super();Ns(this,"serverUrl");this.serverUrl=n,qa("websocketForwardingOpen",{url:this.serverUrl})}send(n,r){qa("websocketForwardingMessage",{message:{messageType:n,data:r},url:this.serverUrl})}onMessageType(n,r){window.addEventListener("message",i=>{if(i.data.type==="websocketForwardingMessage"){const a=JSON.parse(i.data.data);a.messageType===n&&r(a.data)}})}onMessage(n){window.addEventListener("message",r=>{if(r.data.type==="websocketForwardingMessage"){const i=JSON.parse(r.data.data);n(i.messageType,i.data)}})}onError(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingError"&&n(r.data.error)})}sendAndReceive(n,r){return new Promise(i=>{const a=o=>{if(o.data.type==="websocketForwardingMessage"){const s=JSON.parse(o.data.data);s.messageType===n&&(window.removeEventListener("message",a),i(s.data))}};window.addEventListener("message",a),this.send(n,r)})}onOpen(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingOpen"&&n()})}onClose(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingClose"&&n()})}close(){qa("websocketForwardingClose",{url:this.serverUrl})}}class W3e extends e3e{constructor(n,r,i){super();Ns(this,"messenger");Ns(this,"serverUrl");Ns(this,"useVscodeMessagePassing");Ns(this,"getSessionState");Ns(this,"onStateUpdateCallbacks",[]);this.serverUrl=n,this.useVscodeMessagePassing=r,this.getSessionState=i,this.serverUrl=n,this.useVscodeMessagePassing=r,this.messenger=r?new V3e(n):new G3e(n),this.messenger.onClose(()=>{console.log("GUI Connection closed: ",n)}),this.messenger.onError(a=>{console.log("GUI Connection error: ",a)}),this.messenger.onOpen(()=>{console.log("GUI Connection opened: ",n)}),this.messenger.onMessage((a,o,s)=>{this.handleMessage(a,o,s)})}onConnected(n){var r;(r=this.messenger)==null||r.onOpen(n)}handleMessage(n,r,i){switch(n){case"state_update":if(r.state)for(const o of this.onStateUpdateCallbacks)o(r.state);break;case"get_session_state":const a=this.getSessionState();i({history:a.history,context_items:a.context_items});break}}loadSession(n){var r;(r=this.messenger)==null||r.send("load_session",{session_id:n})}sendMainInput(n){var r;(r=this.messenger)==null||r.send("main_input",{input:n})}runFromState(n){var r;(r=this.messenger)==null||r.send("run_from_state",{state:n})}async getSessionTitle(n){var r;return await((r=this.messenger)==null?void 0:r.sendAndReceive("get_session_title",{history:n}))}reverseToIndex(n){var r;(r=this.messenger)==null||r.send("reverse_to_index",{index:n})}sendRefinementInput(n,r){var i;(i=this.messenger)==null||i.send("refinement_input",{input:n,index:r})}sendStepUserInput(n,r){var i;(i=this.messenger)==null||i.send("step_user_input",{input:n,index:r})}onStateUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("state_update",i=>{i.state&&n(i.state)}),this.onStateUpdateCallbacks.push(n)}onSessionUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("session_update",i=>{n(i)})}onConfigUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("config_update",i=>{n(i)})}getConfig(){var n;return(n=this.messenger)==null?void 0:n.sendAndReceive("get_config",{})}onAddContextItem(n){var r;(r=this.messenger)==null||r.onMessageType("add_context_item",i=>{n(i)})}onAvailableSlashCommands(n){var r;(r=this.messenger)==null||r.onMessageType("available_slash_commands",i=>{i.commands&&n(i.commands)})}stopSession(){var n;(n=this.messenger)==null||n.send("stop_session",{})}sendClear(){var n;(n=this.messenger)==null||n.send("clear_history",{})}retryAtIndex(n){var r;(r=this.messenger)==null||r.send("retry_at_index",{index:n})}deleteContextWithIds(n,r){var i;(i=this.messenger)==null||i.send("delete_context_with_ids",{ids:n.map(a=>`${a.provider_title}-${a.item_id}`),index:r})}setEditingAtIds(n){var r;(r=this.messenger)==null||r.send("set_editing_at_ids",{ids:n})}toggleAddingHighlightedCode(){var n;(n=this.messenger)==null||n.send("toggle_adding_highlighted_code",{})}showContextVirtualFile(n){var r;(r=this.messenger)==null||r.send("show_context_virtual_file",{index:n})}selectContextItem(n,r){var i;(i=this.messenger)==null||i.send("select_context_item",{id:n,query:r})}async getContextItem(n,r){var i;return await((i=this.messenger)==null?void 0:i.sendAndReceive("get_context_item",{id:n,query:r}))}selectContextItemAtIndex(n,r,i){var a;(a=this.messenger)==null||a.send("select_context_item_at_index",{id:n,query:r,index:i})}editStepAtIndex(n,r){var i;(i=this.messenger)==null||i.send("edit_step_at_index",{user_input:n,index:r})}setSystemMessage(n){var r;(r=this.messenger)==null||r.send("set_system_message",{system_message:n})}setTemperature(n){var r;(r=this.messenger)==null||r.send("set_temperature",{temperature:n})}addModelForRole(n,r,i){var a;(a=this.messenger)==null||a.send("add_model_for_role",{role:n,model:i,model_class:r})}setModelForRoleFromIndex(n,r){var i;(i=this.messenger)==null||i.send("set_model_for_role_from_index",{role:n,index:r})}saveContextGroup(n,r){var i;(i=this.messenger)==null||i.send("save_context_group",{context_items:r,title:n})}selectContextGroup(n){var r;(r=this.messenger)==null||r.send("select_context_group",{id:n})}deleteContextGroup(n){var r;(r=this.messenger)==null||r.send("delete_context_group",{id:n})}}function VB(e=!0){const[t,n]=C.useState(void 0),r=zt(a=>a.sessionState),i=()=>({history:r.history,context_items:r.context_items});return C.useEffect(()=>{t&&(t.getSessionState=i)},[r]),C.useEffect(()=>{const a=window.serverUrl,o=window.windowId;if(a==null||o==null)return;console.log("Creating GUI websocket",a,e);const s=new W3e(a,e,i);s.onConnected(()=>{n(s)})},[window.windowId]),t}function q3e(){const e=bB();console.error(e);const t=eo(),n=VB(!1);return I.jsxs("div",{id:"error-page",className:"text-center",style:{backgroundColor:Ht},children:[I.jsx("h1",{children:"Error in Continue React App"}),I.jsx("p",{children:I.jsx("i",{children:e.statusText||e.message})}),I.jsx("br",{}),I.jsx("p",{children:"Click below to Continue"}),I.jsx("br",{}),I.jsx(xP,{disabled:!1,showStop:!1,onClick:()=>{n==null||n.stopSession(),t(uc())}})]})}const WB="28px",K3e=Ge.div` +`,J5e=()=>{const e=No(),t=TT(),n=C.useContext(to),r=eo(),i=zt(p=>p.uiState.dialogMessage),a=zt(p=>p.uiState.showDialog),o=zt(p=>{var f;return(f=p.serverState.config.models)==null?void 0:f.default}),s=zt(p=>p.uiState.bottomMessage),u=zt(p=>p.uiState.displayBottomMessageOnBottom),c=zt(p=>p.sessionState.history);return C.useEffect(()=>{const p=f=>{var m;if(f.metaKey&&f.altKey&&f.code==="KeyN"&&(n==null||n.stopSession(),r(uc())),(f.metaKey||f.ctrlKey)&&f.code==="KeyC"){const g=(m=window.getSelection())==null?void 0:m.toString();g&&setTimeout(()=>{navigator.clipboard.writeText(g)},100)}};return window.addEventListener("keydown",p),()=>{window.removeEventListener("keydown",p)}},[n,c]),C.useEffect(()=>{const p=f=>{f.data.type==="addModel"?e("/models"):f.data.type==="openSettings"&&e("/settings")};return window.addEventListener("message",p),()=>{window.removeEventListener("message",p)}},[]),I.jsxs(K5e,{children:[I.jsxs("div",{style:{scrollbarGutter:"stable both-edges",minHeight:"100%",display:"grid",gridTemplateRows:"1fr auto"},children:[I.jsx(S2e,{showDialog:a,onEnter:()=>{r(cc(!1))},onClose:()=>{r(cc(!1))},message:i}),I.jsxs(Z5e,{children:[I.jsx(Qme,{}),I.jsx(Q5e,{id:"model-select-top-div"}),I.jsxs(X5e,{children:[I.jsxs("div",{className:"mr-auto flex gap-2 items-center",children:[localStorage.getItem("ide")==="jetbrains"||localStorage.getItem("hideFeature")==="true"||I.jsx(ZZ,{className:"cursor-pointer",onClick:()=>{localStorage.setItem("hideFeature","true")},onMouseEnter:()=>{r(pu("🎁 New Feature: Use ⌘⇧R automatically debug errors in the terminal (you can click the sparkle icon to make it go away)"))},onMouseLeave:()=>{r(XI(setTimeout(()=>{r(pu(void 0))},2e3)))},width:"1.3em",height:"1.3em",color:"yellow"}),I.jsx(z5e,{}),(o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(t.pathname==="/settings"||parseInt(localStorage.getItem("ftc")||"0")>=125)&&I.jsx(W5e,{completed:parseInt(localStorage.getItem("ftc")||"0"),total:250})]}),I.jsx(zi,{text:"Help",onClick:()=>{e("/help")},children:I.jsx(KZ,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{e("/settings")},text:"Settings",children:I.jsx(kZ,{width:"1.4em",height:"1.4em"})})]})]}),I.jsx(Y5e,{displayOnBottom:u,onMouseEnter:()=>{r(XI(void 0))},onMouseLeave:p=>{p.buttons||r(pu(void 0))},hidden:!s,children:s})]}),I.jsx("div",{className:"text-sm",id:"tooltip-portal-div"})]})};class e3e{}const ko=Object.create(null);ko.open="0";ko.close="1";ko.ping="2";ko.pong="3";ko.message="4";ko.upgrade="5";ko.noop="6";const jh=Object.create(null);Object.keys(ko).forEach(e=>{jh[ko[e]]=e});const Jy={type:"error",data:"parser error"},RB=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",NB=typeof ArrayBuffer=="function",OB=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,RT=({type:e,data:t},n,r)=>RB&&t instanceof Blob?n?r(t):rN(t,r):NB&&(t instanceof ArrayBuffer||OB(t))?n?r(t):rN(new Blob([t]),r):r(ko[e]+(t||"")),rN=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function iN(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let j4;function t3e(e,t){if(RB&&e.data instanceof Blob)return e.data.arrayBuffer().then(iN).then(t);if(NB&&(e.data instanceof ArrayBuffer||OB(e.data)))return t(iN(e.data));RT(e,!1,n=>{j4||(j4=new TextEncoder),t(j4.encode(n))})}const aN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kd=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,i=0,a,o,s,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),p=new Uint8Array(c);for(r=0;r>4,p[i++]=(o&15)<<4|s>>2,p[i++]=(s&3)<<6|u&63;return c},r3e=typeof ArrayBuffer=="function",NT=(e,t)=>{if(typeof e!="string")return{type:"message",data:DB(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:i3e(e.substring(1),t)}:jh[n]?e.length>1?{type:jh[n],data:e.substring(1)}:{type:jh[n]}:Jy},i3e=(e,t)=>{if(r3e){const n=n3e(e);return DB(n,t)}else return{base64:!0,data:e}},DB=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},LB=String.fromCharCode(30),a3e=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((a,o)=>{RT(a,!1,s=>{r[o]=s,++i===n&&t(r.join(LB))})})},o3e=(e,t)=>{const n=e.split(LB),r=[];for(let i=0;i{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const a=new DataView(i.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{i=new Uint8Array(9);const a=new DataView(i.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let G4;function ch(e){return e.reduce((t,n)=>t+n.length,0)}function dh(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;iMath.pow(2,53-32)-1){s.enqueue(Jy);break}i=p*Math.pow(2,32)+c.getUint32(4),r=3}else{if(ch(n)e){s.enqueue(Jy);break}}}})}const MB=4;function Xn(e){if(e)return u3e(e)}function u3e(e){for(var t in Xn.prototype)e[t]=Xn.prototype[t];return e}Xn.prototype.on=Xn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Xn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Xn.prototype.off=Xn.prototype.removeListener=Xn.prototype.removeAllListeners=Xn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function FB(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const c3e=da.setTimeout,d3e=da.clearTimeout;function j2(e,t){t.useNativeTimers?(e.setTimeoutFn=c3e.bind(da),e.clearTimeoutFn=d3e.bind(da)):(e.setTimeoutFn=da.setTimeout.bind(da),e.clearTimeoutFn=da.clearTimeout.bind(da))}const p3e=1.33;function f3e(e){return typeof e=="string"?h3e(e):Math.ceil((e.byteLength||e.size)*p3e)}function h3e(e){let t=0,n=0;for(let r=0,i=e.length;r=57344?n+=3:(r++,n+=4);return n}function g3e(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function m3e(e){let t={},n=e.split("&");for(let r=0,i=n.length;r0);return t}function BB(){const e=lN(+new Date);return e!==sN?(oN=0,sN=e):e+"."+lN(oN++)}for(;ph{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};o3e(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,a3e(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=BB()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Y1(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,a)=>{this.onError("xhr post error",i,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Y1=class Gh extends Xn{constructor(t,n){super(),j2(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=FB(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new $B(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Gh.requestsCount++,Gh.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=v3e,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Gh.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Y1.requestsCount=0;Y1.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",uN);else if(typeof addEventListener=="function"){const e="onpagehide"in da?"pagehide":"unload";addEventListener(e,uN,!1)}}function uN(){for(let e in Y1.requests)Y1.requests.hasOwnProperty(e)&&Y1.requests[e].abort()}const DT=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),fh=da.WebSocket||da.MozWebSocket,cN=!0,S3e="arraybuffer",dN=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class w3e extends OT{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=dN?{}:FB(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=cN&&!dN?n?new fh(t,n):new fh(t):new fh(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const o={};try{cN&&this.ws.send(a)}catch{}i&&DT(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=BB()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!fh}}class A3e extends OT{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=l3e(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=s3e();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const a=()=>{r.read().then(({done:s,value:u})=>{s||(this.onPacket(u),a())}).catch(s=>{})};a();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{i&&DT(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const C3e={websocket:w3e,webtransport:A3e,polling:T3e},k3e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,x3e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function tE(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=k3e.exec(e||""),a={},o=14;for(;o--;)a[x3e[o]]=i[o]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=I3e(a,a.path),a.queryKey=R3e(a,a.query),a}function I3e(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function R3e(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,a){i&&(n[i]=a)}),n}let zB=class p1 extends Xn{constructor(t,n={}){super(),this.binaryType=S3e,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=tE(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=tE(n.host).host),j2(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=m3e(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=MB,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new C3e[t](r)}open(){let t;if(this.opts.rememberUpgrade&&p1.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;p1.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;p1.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function a(){r||(r=!0,p(),n.close(),n=null)}const o=f=>{const m=new Error("probe error: "+f);m.transport=n.name,a(),this.emitReserved("upgradeError",m)};function s(){o("transport closed")}function u(){o("socket closed")}function c(f){n&&f.name!==n.name&&a()}const p=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",s),this.off("close",u),this.off("upgrading",c)};n.once("open",i),n.once("error",o),n.once("close",s),this.once("close",u),this.once("upgrading",c),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",p1.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){p1.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,HB=Object.prototype.toString,L3e=typeof Blob=="function"||typeof Blob<"u"&&HB.call(Blob)==="[object BlobConstructor]",M3e=typeof File=="function"||typeof File<"u"&&HB.call(File)==="[object FileConstructor]";function LT(e){return O3e&&(e instanceof ArrayBuffer||D3e(e))||L3e&&e instanceof Blob||M3e&&e instanceof File}function Vh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let o=0;o{this.io.clearTimeoutFn(a),n.apply(this,[null,...o])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,a)=>{n.push((o,s)=>r?o?a(o):i(s):i(o)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...a)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ut.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ut.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ut.EVENT:case Ut.BINARY_EVENT:this.onevent(t);break;case Ut.ACK:case Ut.BINARY_ACK:this.onack(t);break;case Ut.DISCONNECT:this.ondisconnect();break;case Ut.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:Ut.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ut.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ic.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Ic.prototype.reset=function(){this.attempts=0};Ic.prototype.setMin=function(e){this.ms=e};Ic.prototype.setMax=function(e){this.max=e};Ic.prototype.setJitter=function(e){this.jitter=e};class iE extends Xn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,j2(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ic({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||H3e;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new zB(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Ua(n,"open",function(){r.onopen(),t&&t()}),a=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},o=Ua(n,"error",a);if(this._timeout!==!1){const s=this._timeout,u=this.setTimeoutFn(()=>{i(),a(new Error("timeout")),n.close()},s);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Ua(t,"ping",this.onping.bind(this)),Ua(t,"data",this.ondata.bind(this)),Ua(t,"error",this.onerror.bind(this)),Ua(t,"close",this.onclose.bind(this)),Ua(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){DT(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new jB(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const bd={};function Wh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=N3e(e,t.path||"/socket.io"),r=n.source,i=n.id,a=n.path,o=bd[i]&&a in bd[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let u;return s?u=new iE(r,t):(bd[i]||(bd[i]=new iE(r,t)),u=bd[i]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(Wh,{Manager:iE,Socket:jB,io:Wh,connect:Wh});class GB{}class G3e extends GB{constructor(n){super();Ns(this,"socket");console.log("Connecting to socket.io endpoint: ",n,window.windowId),this.socket=Wh(`${n}?window_id=${window.windowId}`,{path:"/gui/socket.io",transports:["websocket","polling","flashsocket"]})}send(n,r){this.socket.emit("message",{message_type:n,data:r,message_id:Xd()})}ackWithMessageMetadata(n,r,i){return a=>{n({message_id:r,message_type:i,data:a})}}onMessageType(n,r){this.socket.on("message",({message_type:i,data:a},o)=>{n===i&&r(a,this.ackWithMessageMetadata(o,"lolidk",n))})}onMessage(n){this.socket.on("message",({message_type:r,data:i},a)=>{n(r,i,this.ackWithMessageMetadata(a,"lolidk",r))})}onOpen(n){this.socket.on("connect",n)}onClose(n){this.socket.on("disconnect",n)}async sendAndReceive(n,r){return new Promise((i,a)=>{this.socket.emit("message",{message_type:n,data:r,message_id:Xd()},o=>{o&&o.error?a(o.error):i(o)})})}onError(n){this.socket.on("error",n)}close(){this.socket.disconnect()}}class V3e extends GB{constructor(n){super();Ns(this,"serverUrl");this.serverUrl=n,qa("websocketForwardingOpen",{url:this.serverUrl})}send(n,r){qa("websocketForwardingMessage",{message:{messageType:n,data:r},url:this.serverUrl})}onMessageType(n,r){window.addEventListener("message",i=>{if(i.data.type==="websocketForwardingMessage"){const a=JSON.parse(i.data.data);a.messageType===n&&r(a.data)}})}onMessage(n){window.addEventListener("message",r=>{if(r.data.type==="websocketForwardingMessage"){const i=JSON.parse(r.data.data);n(i.messageType,i.data)}})}onError(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingError"&&n(r.data.error)})}sendAndReceive(n,r){return new Promise(i=>{const a=o=>{if(o.data.type==="websocketForwardingMessage"){const s=JSON.parse(o.data.data);s.messageType===n&&(window.removeEventListener("message",a),i(s.data))}};window.addEventListener("message",a),this.send(n,r)})}onOpen(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingOpen"&&n()})}onClose(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingClose"&&n()})}close(){qa("websocketForwardingClose",{url:this.serverUrl})}}class W3e extends e3e{constructor(n,r,i){super();Ns(this,"messenger");Ns(this,"serverUrl");Ns(this,"useVscodeMessagePassing");Ns(this,"getSessionState");Ns(this,"onStateUpdateCallbacks",[]);this.serverUrl=n,this.useVscodeMessagePassing=r,this.getSessionState=i,this.serverUrl=n,this.useVscodeMessagePassing=r,this.messenger=r?new V3e(n):new G3e(n),this.messenger.onClose(()=>{console.log("GUI Connection closed: ",n)}),this.messenger.onError(a=>{console.log("GUI Connection error: ",a)}),this.messenger.onOpen(()=>{console.log("GUI Connection opened: ",n)}),this.messenger.onMessage((a,o,s)=>{this.handleMessage(a,o,s)})}onConnected(n){var r;(r=this.messenger)==null||r.onOpen(n)}handleMessage(n,r,i){switch(n){case"state_update":if(r.state)for(const o of this.onStateUpdateCallbacks)o(r.state);break;case"get_session_state":const a=this.getSessionState();i({history:a.history,context_items:a.context_items});break}}loadSession(n){var r;(r=this.messenger)==null||r.send("load_session",{session_id:n})}sendMainInput(n){var r;(r=this.messenger)==null||r.send("main_input",{input:n})}runFromState(n){var r;(r=this.messenger)==null||r.send("run_from_state",{state:n})}async getSessionTitle(n){var r;return await((r=this.messenger)==null?void 0:r.sendAndReceive("get_session_title",{history:n}))}reverseToIndex(n){var r;(r=this.messenger)==null||r.send("reverse_to_index",{index:n})}sendRefinementInput(n,r){var i;(i=this.messenger)==null||i.send("refinement_input",{input:n,index:r})}sendStepUserInput(n,r){var i;(i=this.messenger)==null||i.send("step_user_input",{input:n,index:r})}onStateUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("state_update",i=>{i.state&&n(i.state)}),this.onStateUpdateCallbacks.push(n)}onSessionUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("session_update",i=>{n(i)})}onConfigUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("config_update",i=>{n(i)})}getConfig(){var n;return(n=this.messenger)==null?void 0:n.sendAndReceive("get_config",{})}onAddContextItem(n){var r;(r=this.messenger)==null||r.onMessageType("add_context_item",i=>{n(i)})}onAvailableSlashCommands(n){var r;(r=this.messenger)==null||r.onMessageType("available_slash_commands",i=>{i.commands&&n(i.commands)})}stopSession(){var n;(n=this.messenger)==null||n.send("stop_session",{})}sendClear(){var n;(n=this.messenger)==null||n.send("clear_history",{})}retryAtIndex(n){var r;(r=this.messenger)==null||r.send("retry_at_index",{index:n})}deleteContextWithIds(n,r){var i;(i=this.messenger)==null||i.send("delete_context_with_ids",{ids:n.map(a=>`${a.provider_title}-${a.item_id}`),index:r})}setEditingAtIds(n){var r;(r=this.messenger)==null||r.send("set_editing_at_ids",{ids:n})}toggleAddingHighlightedCode(){var n;(n=this.messenger)==null||n.send("toggle_adding_highlighted_code",{})}showContextVirtualFile(n){var r;(r=this.messenger)==null||r.send("show_context_virtual_file",{index:n})}selectContextItem(n,r){var i;(i=this.messenger)==null||i.send("select_context_item",{id:n,query:r})}async getContextItem(n,r){var i;return await((i=this.messenger)==null?void 0:i.sendAndReceive("get_context_item",{id:n,query:r}))}selectContextItemAtIndex(n,r,i){var a;(a=this.messenger)==null||a.send("select_context_item_at_index",{id:n,query:r,index:i})}editStepAtIndex(n,r){var i;(i=this.messenger)==null||i.send("edit_step_at_index",{user_input:n,index:r})}setSystemMessage(n){var r;(r=this.messenger)==null||r.send("set_system_message",{system_message:n})}setTemperature(n){var r;(r=this.messenger)==null||r.send("set_temperature",{temperature:n})}addModelForRole(n,r,i){var a;(a=this.messenger)==null||a.send("add_model_for_role",{role:n,model:i,model_class:r})}setModelForRoleFromIndex(n,r){var i;(i=this.messenger)==null||i.send("set_model_for_role_from_index",{role:n,index:r})}saveContextGroup(n,r){var i;(i=this.messenger)==null||i.send("save_context_group",{context_items:r,title:n})}selectContextGroup(n){var r;(r=this.messenger)==null||r.send("select_context_group",{id:n})}deleteContextGroup(n){var r;(r=this.messenger)==null||r.send("delete_context_group",{id:n})}}function VB(e=!0){const[t,n]=C.useState(void 0),r=zt(a=>a.sessionState),i=()=>({history:r.history,context_items:r.context_items});return C.useEffect(()=>{t&&(t.getSessionState=i)},[r]),C.useEffect(()=>{const a=window.serverUrl,o=window.windowId;if(a==null||o==null)return;console.log("Creating GUI websocket",a,e);const s=new W3e(a,e,i);s.onConnected(()=>{n(s)})},[window.windowId]),t}function q3e(){const e=bB();console.error(e);const t=eo(),n=VB(!1),r=No();return I.jsxs("div",{id:"error-page",className:"text-center",style:{backgroundColor:Ht},children:[I.jsx("h1",{children:"Error in Continue React App"}),I.jsx("p",{children:I.jsx("i",{children:e.statusText||e.message})}),I.jsx("br",{}),I.jsx("p",{children:"Click below to Continue"}),I.jsx("br",{}),I.jsx(xP,{disabled:!1,showStop:!1,onClick:()=>{n==null||n.stopSession(),t(uc()),localStorage.removeItem("persist:root"),r("/")}})]})}const WB="28px",K3e=Ge.div` margin-top: 16px; margin: auto; width: ${WB}; @@ -1069,7 +1069,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.4; } } -`;function Y3e(e){const t=window.vscMediaUrl;return I.jsx(K3e,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(AL,{width:e.size||WB})})}const aE=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(MZ,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&u9.createPortal(I.jsx(au,{id:t,place:"bottom",children:e}),n)]})};var bf=e=>e.type==="checkbox",F1=e=>e instanceof Date,ei=e=>e==null;const qB=e=>typeof e=="object";var ir=e=>!ei(e)&&!Array.isArray(e)&&qB(e)&&!F1(e),X3e=e=>ir(e)&&e.target?bf(e.target)?e.target.checked:e.target.value:e,Z3e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Q3e=(e,t)=>e.has(Z3e(t)),J3e=e=>{const t=e.constructor&&e.constructor.prototype;return ir(t)&&t.hasOwnProperty("isPrototypeOf")},FT=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Zo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(FT&&(e instanceof Blob||e instanceof FileList))&&(n||ir(e)))if(t=n?[]:{},!n&&!J3e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Zo(e[r]));else return e;return t}var yf=e=>Array.isArray(e)?e.filter(Boolean):[],qn=e=>e===void 0,lt=(e,t,n)=>{if(!t||!ir(e))return n;const r=yf(t.split(/[,[\].]+?/)).reduce((i,a)=>ei(i)?i:i[a],e);return qn(r)||r===e?qn(e[t])?n:e[t]:r},lu=e=>typeof e=="boolean";const fN={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ha={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ko={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},e4e=ut.createContext(null),KB=e=>{const{children:t,...n}=e;return ut.createElement(e4e.Provider,{value:n},t)};var t4e=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ha.all&&(t._proxyFormState[o]=!r||Ha.all),n&&(n[o]=!0),e[o]}});return i},sa=e=>ir(e)&&!Object.keys(e).length,n4e=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return sa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ha.all))},V4=e=>Array.isArray(e)?e:[e];function r4e(e){const t=ut.useRef(e);t.current=e,ut.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var Eo=e=>typeof e=="string",i4e=(e,t,n,r,i)=>Eo(e)?(r&&t.watch.add(e),lt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),lt(n,a))):(r&&(t.watchAll=!0),n),PT=e=>/^\w*$/.test(e),YB=e=>yf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Cn(e,t,n){let r=-1;const i=PT(t)?[t]:YB(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const oE=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=lt(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else ir(o)&&oE(o,t)}}};var hN=e=>({isOnSubmit:!e||e===Ha.onSubmit,isOnBlur:e===Ha.onBlur,isOnChange:e===Ha.onChange,isOnAll:e===Ha.all,isOnTouch:e===Ha.onTouched}),gN=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),o4e=(e,t,n)=>{const r=yf(lt(e,n));return Cn(r,"root",t[n]),Cn(e,n,r),e},BT=e=>e.type==="file",Js=e=>typeof e=="function",rm=e=>{if(!FT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},qh=e=>Eo(e),UT=e=>e.type==="radio",im=e=>e instanceof RegExp;const mN={value:!1,isValid:!1},bN={value:!0,isValid:!0};var XB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qn(e[0].attributes.value)?qn(e[0].value)||e[0].value===""?bN:{value:e[0].value,isValid:!0}:bN:mN}return mN};const yN={isValid:!1,value:null};var ZB=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,yN):yN;function EN(e,t,n="validate"){if(qh(e)||Array.isArray(e)&&e.every(qh)||lu(e)&&!e)return{type:n,message:qh(e)?e:"",ref:t}}var a1=e=>ir(e)&&!im(e)?e:{value:e,message:""},vN=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:b,valueAsNumber:y,mount:T,disabled:E}=e._f,v=lt(t,b);if(!T||E)return{};const w=o?o[0]:a,A=$=>{r&&w.reportValidity&&(w.setCustomValidity(lu($)?"":$||""),w.reportValidity())},R={},k=UT(a),N=bf(a),B=k||N,q=(y||BT(a))&&qn(a.value)&&qn(v)||rm(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,P=a4e.bind(null,b,n,R),Q=($,oe,fe,ce=Ko.maxLength,De=Ko.minLength)=>{const H=$?oe:fe;R[b]={type:$?ce:De,message:H,ref:a,...P($?ce:De,H)}};if(i?!Array.isArray(v)||!v.length:s&&(!B&&(q||ei(v))||lu(v)&&!v||N&&!XB(o).isValid||k&&!ZB(o).isValid)){const{value:$,message:oe}=qh(s)?{value:!!s,message:s}:a1(s);if($&&(R[b]={type:Ko.required,message:oe,ref:w,...P(Ko.required,oe)},!n))return A(oe),R}if(!q&&(!ei(p)||!ei(f))){let $,oe;const fe=a1(f),ce=a1(p);if(!ei(v)&&!isNaN(v)){const De=a.valueAsNumber||v&&+v;ei(fe.value)||($=De>fe.value),ei(ce.value)||(oe=Denew Date(new Date().toDateString()+" "+D),W=a.type=="time",se=a.type=="week";Eo(fe.value)&&v&&($=W?H(v)>H(fe.value):se?v>fe.value:De>new Date(fe.value)),Eo(ce.value)&&v&&(oe=W?H(v)+$.value,ce=!ei(oe.value)&&v.length<+oe.value;if((fe||ce)&&(Q(fe,$.message,oe.message),!n))return A(R[b].message),R}if(m&&!q&&Eo(v)){const{value:$,message:oe}=a1(m);if(im($)&&!v.match($)&&(R[b]={type:Ko.pattern,message:oe,ref:a,...P(Ko.pattern,oe)},!n))return A(oe),R}if(g){if(Js(g)){const $=await g(v,t),oe=EN($,w);if(oe&&(R[b]={...oe,...P(Ko.validate,oe.message)},!n))return A(oe.message),R}else if(ir(g)){let $={};for(const oe in g){if(!sa($)&&!n)break;const fe=EN(await g[oe](v,t),w,oe);fe&&($={...fe,...P(oe,fe.message)},A(fe.message),n&&(R[b]=$))}if(!sa($)&&(R[b]={ref:w,...$},!n))return R}}return A(!0),R};function s4e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var am=e=>ei(e)||!qB(e);function uu(e,t){if(am(e)||am(t))return e===t;if(F1(e)&&F1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(F1(a)&&F1(o)||ir(a)&&ir(o)||Array.isArray(a)&&Array.isArray(o)?!uu(a,o):a!==o)return!1}}return!0}var QB=e=>e.type==="select-multiple",u4e=e=>UT(e)||bf(e),q4=e=>rm(e)&&e.isConnected,JB=e=>{for(const t in e)if(Js(e[t]))return!0;return!1};function om(e,t={}){const n=Array.isArray(e);if(ir(e)||n)for(const r in e)Array.isArray(e[r])||ir(e[r])&&!JB(e[r])?(t[r]=Array.isArray(e[r])?[]:{},om(e[r],t[r])):ei(e[r])||(t[r]=!0);return t}function eU(e,t,n){const r=Array.isArray(e);if(ir(e)||r)for(const i in e)Array.isArray(e[i])||ir(e[i])&&!JB(e[i])?qn(t)||am(n[i])?n[i]=Array.isArray(e[i])?om(e[i],[]):{...om(e[i])}:eU(e[i],ei(t)?{}:t[i],n[i]):n[i]=!uu(e[i],t[i]);return n}var K4=(e,t)=>eU(e,t,om(t)),tU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>qn(e)?e:t?e===""?NaN:e&&+e:n&&Eo(e)?new Date(e):r?r(e):e;function Y4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return BT(t)?t.files:UT(t)?ZB(e.refs).value:QB(t)?[...t.selectedOptions].map(({value:n})=>n):bf(t)?XB(e.refs).value:tU(qn(t.value)?e.ref.value:t.value,e)}var c4e=(e,t,n,r)=>{const i={};for(const a of e){const o=lt(t,a);o&&Cn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},yd=e=>qn(e)?e:im(e)?e.source:ir(e)?im(e.value)?e.value.source:e.value:e,d4e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _N(e,t,n){const r=lt(e,n);if(r||PT(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=lt(t,a),s=lt(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var p4e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,f4e=(e,t)=>!yf(lt(e,t)).length&&vr(e,t);const h4e={mode:Ha.onSubmit,reValidateMode:Ha.onChange,shouldFocusError:!0};function g4e(e={},t){let n={...h4e,...e},r={submitCount:0,isDirty:!1,isLoading:Js(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=ir(n.defaultValues)||ir(n.values)?Zo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:Zo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:W4(),array:W4(),state:W4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,b=hN(n.mode),y=hN(n.reValidateMode),T=n.criteriaMode===Ha.all,E=U=>re=>{clearTimeout(p),p=setTimeout(U,re)},v=async U=>{if(f.isValid||U){const re=n.resolver?sa((await q()).errors):await Q(i,!0);re!==r.isValid&&m.state.next({isValid:re})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,re=[],de,xe,ye=!0,Te=!0)=>{if(xe&&de){if(s.action=!0,Te&&Array.isArray(lt(i,U))){const Le=de(lt(i,U),xe.argA,xe.argB);ye&&Cn(i,U,Le)}if(Te&&Array.isArray(lt(r.errors,U))){const Le=de(lt(r.errors,U),xe.argA,xe.argB);ye&&Cn(r.errors,U,Le),f4e(r.errors,U)}if(f.touchedFields&&Te&&Array.isArray(lt(r.touchedFields,U))){const Le=de(lt(r.touchedFields,U),xe.argA,xe.argB);ye&&Cn(r.touchedFields,U,Le)}f.dirtyFields&&(r.dirtyFields=K4(a,o)),m.state.next({name:U,isDirty:oe(U,re),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Cn(o,U,re)},R=(U,re)=>{Cn(r.errors,U,re),m.state.next({errors:r.errors})},k=(U,re,de,xe)=>{const ye=lt(i,U);if(ye){const Te=lt(o,U,qn(de)?lt(a,U):de);qn(Te)||xe&&xe.defaultChecked||re?Cn(o,U,re?Te:Y4(ye._f)):De(U,Te),s.mount&&v()}},N=(U,re,de,xe,ye)=>{let Te=!1,Le=!1;const ze={name:U};if(!de||xe){f.isDirty&&(Le=r.isDirty,r.isDirty=ze.isDirty=oe(),Te=Le!==ze.isDirty);const Ye=uu(lt(a,U),re);Le=lt(r.dirtyFields,U),Ye?vr(r.dirtyFields,U):Cn(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Te=Te||f.dirtyFields&&Le!==!Ye}if(de){const Ye=lt(r.touchedFields,U);Ye||(Cn(r.touchedFields,U,de),ze.touchedFields=r.touchedFields,Te=Te||f.touchedFields&&Ye!==de)}return Te&&ye&&m.state.next(ze),Te?ze:{}},B=(U,re,de,xe)=>{const ye=lt(r.errors,U),Te=f.isValid&&lu(re)&&r.isValid!==re;if(e.delayError&&de?(c=E(()=>R(U,de)),c(e.delayError)):(clearTimeout(p),c=null,de?Cn(r.errors,U,de):vr(r.errors,U)),(de?!uu(ye,de):ye)||!sa(xe)||Te){const Le={...xe,...Te&&lu(re)?{isValid:re}:{},errors:r.errors,name:U};r={...r,...Le},m.state.next(Le)}w(!1)},q=async U=>n.resolver(o,n.context,c4e(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:re}=await q(U);if(U)for(const de of U){const xe=lt(re,de);xe?Cn(r.errors,de,xe):vr(r.errors,de)}else r.errors=re;return re},Q=async(U,re,de={valid:!0})=>{for(const xe in U){const ye=U[xe];if(ye){const{_f:Te,...Le}=ye;if(Te){const ze=u.array.has(Te.name),Ye=await vN(ye,o,T,n.shouldUseNativeValidation&&!re,ze);if(Ye[Te.name]&&(de.valid=!1,re))break;!re&&(lt(Ye,Te.name)?ze?o4e(r.errors,Ye,Te.name):Cn(r.errors,Te.name,Ye[Te.name]):vr(r.errors,Te.name))}Le&&await Q(Le,re,de)}}return de.valid},$=()=>{for(const U of u.unMount){const re=lt(i,U);re&&(re._f.refs?re._f.refs.every(de=>!q4(de)):!q4(re._f.ref))&&X(U)}u.unMount=new Set},oe=(U,re)=>(U&&re&&Cn(o,U,re),!uu(pe(),a)),fe=(U,re,de)=>i4e(U,u,{...s.mount?o:qn(re)?a:Eo(U)?{[U]:re}:re},de,re),ce=U=>yf(lt(s.mount?o:a,U,e.shouldUnregister?lt(a,U,[]):[])),De=(U,re,de={})=>{const xe=lt(i,U);let ye=re;if(xe){const Te=xe._f;Te&&(!Te.disabled&&Cn(o,U,tU(re,Te)),ye=rm(Te.ref)&&ei(re)?"":re,QB(Te.ref)?[...Te.ref.options].forEach(Le=>Le.selected=ye.includes(Le.value)):Te.refs?bf(Te.ref)?Te.refs.length>1?Te.refs.forEach(Le=>(!Le.defaultChecked||!Le.disabled)&&(Le.checked=Array.isArray(ye)?!!ye.find(ze=>ze===Le.value):ye===Le.value)):Te.refs[0]&&(Te.refs[0].checked=!!ye):Te.refs.forEach(Le=>Le.checked=Le.value===ye):BT(Te.ref)?Te.ref.value="":(Te.ref.value=ye,Te.ref.type||m.values.next({name:U,values:{...o}})))}(de.shouldDirty||de.shouldTouch)&&N(U,ye,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&D(U)},H=(U,re,de)=>{for(const xe in re){const ye=re[xe],Te=`${U}.${xe}`,Le=lt(i,Te);(u.array.has(U)||!am(ye)||Le&&!Le._f)&&!F1(ye)?H(Te,ye,de):De(Te,ye,de)}},W=(U,re,de={})=>{const xe=lt(i,U),ye=u.array.has(U),Te=Zo(re);Cn(o,U,Te),ye?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&de.shouldDirty&&m.state.next({name:U,dirtyFields:K4(a,o),isDirty:oe(U,Te)})):xe&&!xe._f&&!ei(Te)?H(U,Te,de):De(U,Te,de),gN(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},se=async U=>{const re=U.target;let de=re.name,xe=!0;const ye=lt(i,de),Te=()=>re.type?Y4(ye._f):X3e(U);if(ye){let Le,ze;const Ye=Te(),jt=U.type===fN.BLUR||U.type===fN.FOCUS_OUT,ue=!d4e(ye._f)&&!n.resolver&&!lt(r.errors,de)&&!ye._f.deps||p4e(jt,lt(r.touchedFields,de),r.isSubmitted,y,b),Ee=gN(de,u,jt);Cn(o,de,Ye),jt?(ye._f.onBlur&&ye._f.onBlur(U),c&&c(0)):ye._f.onChange&&ye._f.onChange(U);const qe=N(de,Ye,jt,!1),j=!sa(qe)||Ee;if(!jt&&m.values.next({name:de,type:U.type,values:{...o}}),ue)return f.isValid&&v(),j&&m.state.next({name:de,...Ee?{}:qe});if(!jt&&Ee&&m.state.next({...r}),w(!0),n.resolver){const{errors:me}=await q([de]),Ve=_N(r.errors,i,de),ge=_N(me,i,Ve.name||de);Le=ge.error,de=ge.name,ze=sa(me)}else Le=(await vN(ye,o,T,n.shouldUseNativeValidation))[de],xe=Number.isNaN(Ye)||Ye===lt(o,de,Ye),xe&&(Le?ze=!1:f.isValid&&(ze=await Q(i,!0)));xe&&(ye._f.deps&&D(ye._f.deps),B(de,ze,Le,qe))}},D=async(U,re={})=>{let de,xe;const ye=V4(U);if(w(!0),n.resolver){const Te=await P(qn(U)?U:ye);de=sa(Te),xe=U?!ye.some(Le=>lt(Te,Le)):de}else U?(xe=(await Promise.all(ye.map(async Te=>{const Le=lt(i,Te);return await Q(Le&&Le._f?{[Te]:Le}:Le)}))).every(Boolean),!(!xe&&!r.isValid)&&v()):xe=de=await Q(i);return m.state.next({...!Eo(U)||f.isValid&&de!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:de}:{},errors:r.errors,isValidating:!1}),re.shouldFocus&&!xe&&oE(i,Te=>Te&<(r.errors,Te),U?ye:u.mount),xe},pe=U=>{const re={...a,...s.mount?o:{}};return qn(U)?re:Eo(U)?lt(re,U):U.map(de=>lt(re,de))},le=(U,re)=>({invalid:!!lt((re||r).errors,U),isDirty:!!lt((re||r).dirtyFields,U),isTouched:!!lt((re||r).touchedFields,U),error:lt((re||r).errors,U)}),L=U=>{U&&V4(U).forEach(re=>vr(r.errors,re)),m.state.next({errors:U?r.errors:{}})},ie=(U,re,de)=>{const xe=(lt(i,U,{_f:{}})._f||{}).ref;Cn(r.errors,U,{...re,ref:xe}),m.state.next({name:U,errors:r.errors,isValid:!1}),de&&de.shouldFocus&&xe&&xe.focus&&xe.focus()},Se=(U,re)=>Js(U)?m.values.subscribe({next:de=>U(fe(void 0,re),de)}):fe(U,re,!0),X=(U,re={})=>{for(const de of U?V4(U):u.mount)u.mount.delete(de),u.array.delete(de),re.keepValue||(vr(i,de),vr(o,de)),!re.keepError&&vr(r.errors,de),!re.keepDirty&&vr(r.dirtyFields,de),!re.keepTouched&&vr(r.touchedFields,de),!n.shouldUnregister&&!re.keepDefaultValue&&vr(a,de);m.values.next({values:{...o}}),m.state.next({...r,...re.keepDirty?{isDirty:oe()}:{}}),!re.keepIsValid&&v()},ke=({disabled:U,name:re,field:de,fields:xe})=>{if(lu(U)){const ye=U?void 0:lt(o,re,Y4(de?de._f:lt(xe,re)._f));Cn(o,re,ye),N(re,ye,!1,!1,!0)}},te=(U,re={})=>{let de=lt(i,U);const xe=lu(re.disabled);return Cn(i,U,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:U}},name:U,mount:!0,...re}}),u.mount.add(U),de?ke({field:de,disabled:re.disabled,name:U}):k(U,!0,re.value),{...xe?{disabled:re.disabled}:{},...n.progressive?{required:!!re.required,min:yd(re.min),max:yd(re.max),minLength:yd(re.minLength),maxLength:yd(re.maxLength),pattern:yd(re.pattern)}:{},name:U,onChange:se,onBlur:se,ref:ye=>{if(ye){te(U,re),de=lt(i,U);const Te=qn(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,Le=u4e(Te),ze=de._f.refs||[];if(Le?ze.find(Ye=>Ye===Te):Te===de._f.ref)return;Cn(i,U,{_f:{...de._f,...Le?{refs:[...ze.filter(q4),Te,...Array.isArray(lt(a,U))?[{}]:[]],ref:{type:Te.type,name:U}}:{ref:Te}}}),k(U,!1,void 0,Te)}else de=lt(i,U,{}),de._f&&(de._f.mount=!1),(n.shouldUnregister||re.shouldUnregister)&&!(Q3e(u.array,U)&&s.action)&&u.unMount.add(U)}}},Me=()=>n.shouldFocusError&&oE(i,U=>U&<(r.errors,U),u.mount),Re=(U,re)=>async de=>{de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let xe=Zo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ye,values:Te}=await q();r.errors=ye,xe=Te}else await Q(i);vr(r.errors,"root"),sa(r.errors)?(m.state.next({errors:{}}),await U(xe,de)):(re&&await re({...r.errors},de),Me(),setTimeout(Me)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Ze=(U,re={})=>{lt(i,U)&&(qn(re.defaultValue)?W(U,lt(a,U)):(W(U,re.defaultValue),Cn(a,U,re.defaultValue)),re.keepTouched||vr(r.touchedFields,U),re.keepDirty||(vr(r.dirtyFields,U),r.isDirty=re.defaultValue?oe(U,lt(a,U)):oe()),re.keepError||(vr(r.errors,U),f.isValid&&v()),m.state.next({...r}))},We=(U,re={})=>{const de=U?Zo(U):a,xe=Zo(de),ye=U&&!sa(U)?xe:a;if(re.keepDefaultValues||(a=de),!re.keepValues){if(re.keepDirtyValues||g)for(const Te of u.mount)lt(r.dirtyFields,Te)?Cn(ye,Te,lt(o,Te)):W(Te,lt(ye,Te));else{if(FT&&qn(U))for(const Te of u.mount){const Le=lt(i,Te);if(Le&&Le._f){const ze=Array.isArray(Le._f.refs)?Le._f.refs[0]:Le._f.ref;if(rm(ze)){const Ye=ze.closest("form");if(Ye){Ye.reset();break}}}}i={}}o=e.shouldUnregister?re.keepDefaultValues?Zo(a):{}:Zo(ye),m.array.next({values:{...ye}}),m.values.next({values:{...ye}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!re.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:re.keepSubmitCount?r.submitCount:0,isDirty:re.keepDirty?r.isDirty:!!(re.keepDefaultValues&&!uu(U,a)),isSubmitted:re.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re.keepDirtyValues?r.dirtyFields:re.keepDefaultValues&&U?K4(a,U):{},touchedFields:re.keepTouched?r.touchedFields:{},errors:re.keepErrors?r.errors:{},isSubmitSuccessful:re.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,re)=>We(Js(U)?U(o):U,re);return{control:{register:te,unregister:X,getFieldState:le,handleSubmit:Re,setError:ie,_executeSchema:q,_getWatch:fe,_getDirty:oe,_updateValid:v,_removeUnmounted:$,_updateFieldArray:A,_updateDisabledField:ke,_getFieldArray:ce,_reset:We,_resetDefaultValues:()=>Js(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:D,register:te,handleSubmit:Re,watch:Se,setValue:W,getValues:pe,reset:dt,resetField:Ze,clearErrors:L,unregister:X,setError:ie,setFocus:(U,re={})=>{const de=lt(i,U),xe=de&&de._f;if(xe){const ye=xe.refs?xe.refs[0]:xe.ref;ye.focus&&(ye.focus(),re.shouldSelect&&ye.select())}},getFieldState:le}}function nU(e={}){const t=ut.useRef(),n=ut.useRef(),[r,i]=ut.useState({isDirty:!1,isValidating:!1,isLoading:Js(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Js(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...g4e(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,r4e({subject:a._subjects.state,next:o=>{n4e(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),ut.useEffect(()=>{e.values&&!uu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),ut.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=t4e(r,a),t.current}const TN=Ge.hr` +`;function Y3e(e){const t=window.vscMediaUrl;return I.jsx(K3e,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(AL,{width:e.size||WB})})}const aE=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(MZ,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&u9.createPortal(I.jsx(au,{id:t,place:"bottom",children:e}),n)]})};var bf=e=>e.type==="checkbox",F1=e=>e instanceof Date,ei=e=>e==null;const qB=e=>typeof e=="object";var ir=e=>!ei(e)&&!Array.isArray(e)&&qB(e)&&!F1(e),X3e=e=>ir(e)&&e.target?bf(e.target)?e.target.checked:e.target.value:e,Z3e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Q3e=(e,t)=>e.has(Z3e(t)),J3e=e=>{const t=e.constructor&&e.constructor.prototype;return ir(t)&&t.hasOwnProperty("isPrototypeOf")},FT=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Qo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(FT&&(e instanceof Blob||e instanceof FileList))&&(n||ir(e)))if(t=n?[]:{},!n&&!J3e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Qo(e[r]));else return e;return t}var yf=e=>Array.isArray(e)?e.filter(Boolean):[],qn=e=>e===void 0,ut=(e,t,n)=>{if(!t||!ir(e))return n;const r=yf(t.split(/[,[\].]+?/)).reduce((i,a)=>ei(i)?i:i[a],e);return qn(r)||r===e?qn(e[t])?n:e[t]:r},lu=e=>typeof e=="boolean";const fN={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ha={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Yo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},e4e=st.createContext(null),KB=e=>{const{children:t,...n}=e;return st.createElement(e4e.Provider,{value:n},t)};var t4e=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ha.all&&(t._proxyFormState[o]=!r||Ha.all),n&&(n[o]=!0),e[o]}});return i},sa=e=>ir(e)&&!Object.keys(e).length,n4e=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return sa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ha.all))},V4=e=>Array.isArray(e)?e:[e];function r4e(e){const t=st.useRef(e);t.current=e,st.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var Eo=e=>typeof e=="string",i4e=(e,t,n,r,i)=>Eo(e)?(r&&t.watch.add(e),ut(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ut(n,a))):(r&&(t.watchAll=!0),n),PT=e=>/^\w*$/.test(e),YB=e=>yf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Cn(e,t,n){let r=-1;const i=PT(t)?[t]:YB(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const oE=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=ut(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else ir(o)&&oE(o,t)}}};var hN=e=>({isOnSubmit:!e||e===Ha.onSubmit,isOnBlur:e===Ha.onBlur,isOnChange:e===Ha.onChange,isOnAll:e===Ha.all,isOnTouch:e===Ha.onTouched}),gN=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),o4e=(e,t,n)=>{const r=yf(ut(e,n));return Cn(r,"root",t[n]),Cn(e,n,r),e},BT=e=>e.type==="file",Js=e=>typeof e=="function",rm=e=>{if(!FT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},qh=e=>Eo(e),UT=e=>e.type==="radio",im=e=>e instanceof RegExp;const mN={value:!1,isValid:!1},bN={value:!0,isValid:!0};var XB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qn(e[0].attributes.value)?qn(e[0].value)||e[0].value===""?bN:{value:e[0].value,isValid:!0}:bN:mN}return mN};const yN={isValid:!1,value:null};var ZB=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,yN):yN;function EN(e,t,n="validate"){if(qh(e)||Array.isArray(e)&&e.every(qh)||lu(e)&&!e)return{type:n,message:qh(e)?e:"",ref:t}}var a1=e=>ir(e)&&!im(e)?e:{value:e,message:""},vN=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:b,valueAsNumber:y,mount:T,disabled:E}=e._f,v=ut(t,b);if(!T||E)return{};const w=o?o[0]:a,A=$=>{r&&w.reportValidity&&(w.setCustomValidity(lu($)?"":$||""),w.reportValidity())},R={},k=UT(a),N=bf(a),B=k||N,q=(y||BT(a))&&qn(a.value)&&qn(v)||rm(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,P=a4e.bind(null,b,n,R),Q=($,oe,fe,ce=Yo.maxLength,De=Yo.minLength)=>{const H=$?oe:fe;R[b]={type:$?ce:De,message:H,ref:a,...P($?ce:De,H)}};if(i?!Array.isArray(v)||!v.length:s&&(!B&&(q||ei(v))||lu(v)&&!v||N&&!XB(o).isValid||k&&!ZB(o).isValid)){const{value:$,message:oe}=qh(s)?{value:!!s,message:s}:a1(s);if($&&(R[b]={type:Yo.required,message:oe,ref:w,...P(Yo.required,oe)},!n))return A(oe),R}if(!q&&(!ei(p)||!ei(f))){let $,oe;const fe=a1(f),ce=a1(p);if(!ei(v)&&!isNaN(v)){const De=a.valueAsNumber||v&&+v;ei(fe.value)||($=De>fe.value),ei(ce.value)||(oe=Denew Date(new Date().toDateString()+" "+D),W=a.type=="time",se=a.type=="week";Eo(fe.value)&&v&&($=W?H(v)>H(fe.value):se?v>fe.value:De>new Date(fe.value)),Eo(ce.value)&&v&&(oe=W?H(v)+$.value,ce=!ei(oe.value)&&v.length<+oe.value;if((fe||ce)&&(Q(fe,$.message,oe.message),!n))return A(R[b].message),R}if(m&&!q&&Eo(v)){const{value:$,message:oe}=a1(m);if(im($)&&!v.match($)&&(R[b]={type:Yo.pattern,message:oe,ref:a,...P(Yo.pattern,oe)},!n))return A(oe),R}if(g){if(Js(g)){const $=await g(v,t),oe=EN($,w);if(oe&&(R[b]={...oe,...P(Yo.validate,oe.message)},!n))return A(oe.message),R}else if(ir(g)){let $={};for(const oe in g){if(!sa($)&&!n)break;const fe=EN(await g[oe](v,t),w,oe);fe&&($={...fe,...P(oe,fe.message)},A(fe.message),n&&(R[b]=$))}if(!sa($)&&(R[b]={ref:w,...$},!n))return R}}return A(!0),R};function s4e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var am=e=>ei(e)||!qB(e);function uu(e,t){if(am(e)||am(t))return e===t;if(F1(e)&&F1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(F1(a)&&F1(o)||ir(a)&&ir(o)||Array.isArray(a)&&Array.isArray(o)?!uu(a,o):a!==o)return!1}}return!0}var QB=e=>e.type==="select-multiple",u4e=e=>UT(e)||bf(e),q4=e=>rm(e)&&e.isConnected,JB=e=>{for(const t in e)if(Js(e[t]))return!0;return!1};function om(e,t={}){const n=Array.isArray(e);if(ir(e)||n)for(const r in e)Array.isArray(e[r])||ir(e[r])&&!JB(e[r])?(t[r]=Array.isArray(e[r])?[]:{},om(e[r],t[r])):ei(e[r])||(t[r]=!0);return t}function eU(e,t,n){const r=Array.isArray(e);if(ir(e)||r)for(const i in e)Array.isArray(e[i])||ir(e[i])&&!JB(e[i])?qn(t)||am(n[i])?n[i]=Array.isArray(e[i])?om(e[i],[]):{...om(e[i])}:eU(e[i],ei(t)?{}:t[i],n[i]):n[i]=!uu(e[i],t[i]);return n}var K4=(e,t)=>eU(e,t,om(t)),tU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>qn(e)?e:t?e===""?NaN:e&&+e:n&&Eo(e)?new Date(e):r?r(e):e;function Y4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return BT(t)?t.files:UT(t)?ZB(e.refs).value:QB(t)?[...t.selectedOptions].map(({value:n})=>n):bf(t)?XB(e.refs).value:tU(qn(t.value)?e.ref.value:t.value,e)}var c4e=(e,t,n,r)=>{const i={};for(const a of e){const o=ut(t,a);o&&Cn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},yd=e=>qn(e)?e:im(e)?e.source:ir(e)?im(e.value)?e.value.source:e.value:e,d4e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _N(e,t,n){const r=ut(e,n);if(r||PT(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=ut(t,a),s=ut(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var p4e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,f4e=(e,t)=>!yf(ut(e,t)).length&&vr(e,t);const h4e={mode:Ha.onSubmit,reValidateMode:Ha.onChange,shouldFocusError:!0};function g4e(e={},t){let n={...h4e,...e},r={submitCount:0,isDirty:!1,isLoading:Js(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=ir(n.defaultValues)||ir(n.values)?Qo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:Qo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:W4(),array:W4(),state:W4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,b=hN(n.mode),y=hN(n.reValidateMode),T=n.criteriaMode===Ha.all,E=U=>re=>{clearTimeout(p),p=setTimeout(U,re)},v=async U=>{if(f.isValid||U){const re=n.resolver?sa((await q()).errors):await Q(i,!0);re!==r.isValid&&m.state.next({isValid:re})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,re=[],de,xe,ye=!0,Te=!0)=>{if(xe&&de){if(s.action=!0,Te&&Array.isArray(ut(i,U))){const Le=de(ut(i,U),xe.argA,xe.argB);ye&&Cn(i,U,Le)}if(Te&&Array.isArray(ut(r.errors,U))){const Le=de(ut(r.errors,U),xe.argA,xe.argB);ye&&Cn(r.errors,U,Le),f4e(r.errors,U)}if(f.touchedFields&&Te&&Array.isArray(ut(r.touchedFields,U))){const Le=de(ut(r.touchedFields,U),xe.argA,xe.argB);ye&&Cn(r.touchedFields,U,Le)}f.dirtyFields&&(r.dirtyFields=K4(a,o)),m.state.next({name:U,isDirty:oe(U,re),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Cn(o,U,re)},R=(U,re)=>{Cn(r.errors,U,re),m.state.next({errors:r.errors})},k=(U,re,de,xe)=>{const ye=ut(i,U);if(ye){const Te=ut(o,U,qn(de)?ut(a,U):de);qn(Te)||xe&&xe.defaultChecked||re?Cn(o,U,re?Te:Y4(ye._f)):De(U,Te),s.mount&&v()}},N=(U,re,de,xe,ye)=>{let Te=!1,Le=!1;const ze={name:U};if(!de||xe){f.isDirty&&(Le=r.isDirty,r.isDirty=ze.isDirty=oe(),Te=Le!==ze.isDirty);const Ye=uu(ut(a,U),re);Le=ut(r.dirtyFields,U),Ye?vr(r.dirtyFields,U):Cn(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Te=Te||f.dirtyFields&&Le!==!Ye}if(de){const Ye=ut(r.touchedFields,U);Ye||(Cn(r.touchedFields,U,de),ze.touchedFields=r.touchedFields,Te=Te||f.touchedFields&&Ye!==de)}return Te&&ye&&m.state.next(ze),Te?ze:{}},B=(U,re,de,xe)=>{const ye=ut(r.errors,U),Te=f.isValid&&lu(re)&&r.isValid!==re;if(e.delayError&&de?(c=E(()=>R(U,de)),c(e.delayError)):(clearTimeout(p),c=null,de?Cn(r.errors,U,de):vr(r.errors,U)),(de?!uu(ye,de):ye)||!sa(xe)||Te){const Le={...xe,...Te&&lu(re)?{isValid:re}:{},errors:r.errors,name:U};r={...r,...Le},m.state.next(Le)}w(!1)},q=async U=>n.resolver(o,n.context,c4e(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:re}=await q(U);if(U)for(const de of U){const xe=ut(re,de);xe?Cn(r.errors,de,xe):vr(r.errors,de)}else r.errors=re;return re},Q=async(U,re,de={valid:!0})=>{for(const xe in U){const ye=U[xe];if(ye){const{_f:Te,...Le}=ye;if(Te){const ze=u.array.has(Te.name),Ye=await vN(ye,o,T,n.shouldUseNativeValidation&&!re,ze);if(Ye[Te.name]&&(de.valid=!1,re))break;!re&&(ut(Ye,Te.name)?ze?o4e(r.errors,Ye,Te.name):Cn(r.errors,Te.name,Ye[Te.name]):vr(r.errors,Te.name))}Le&&await Q(Le,re,de)}}return de.valid},$=()=>{for(const U of u.unMount){const re=ut(i,U);re&&(re._f.refs?re._f.refs.every(de=>!q4(de)):!q4(re._f.ref))&&X(U)}u.unMount=new Set},oe=(U,re)=>(U&&re&&Cn(o,U,re),!uu(pe(),a)),fe=(U,re,de)=>i4e(U,u,{...s.mount?o:qn(re)?a:Eo(U)?{[U]:re}:re},de,re),ce=U=>yf(ut(s.mount?o:a,U,e.shouldUnregister?ut(a,U,[]):[])),De=(U,re,de={})=>{const xe=ut(i,U);let ye=re;if(xe){const Te=xe._f;Te&&(!Te.disabled&&Cn(o,U,tU(re,Te)),ye=rm(Te.ref)&&ei(re)?"":re,QB(Te.ref)?[...Te.ref.options].forEach(Le=>Le.selected=ye.includes(Le.value)):Te.refs?bf(Te.ref)?Te.refs.length>1?Te.refs.forEach(Le=>(!Le.defaultChecked||!Le.disabled)&&(Le.checked=Array.isArray(ye)?!!ye.find(ze=>ze===Le.value):ye===Le.value)):Te.refs[0]&&(Te.refs[0].checked=!!ye):Te.refs.forEach(Le=>Le.checked=Le.value===ye):BT(Te.ref)?Te.ref.value="":(Te.ref.value=ye,Te.ref.type||m.values.next({name:U,values:{...o}})))}(de.shouldDirty||de.shouldTouch)&&N(U,ye,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&D(U)},H=(U,re,de)=>{for(const xe in re){const ye=re[xe],Te=`${U}.${xe}`,Le=ut(i,Te);(u.array.has(U)||!am(ye)||Le&&!Le._f)&&!F1(ye)?H(Te,ye,de):De(Te,ye,de)}},W=(U,re,de={})=>{const xe=ut(i,U),ye=u.array.has(U),Te=Qo(re);Cn(o,U,Te),ye?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&de.shouldDirty&&m.state.next({name:U,dirtyFields:K4(a,o),isDirty:oe(U,Te)})):xe&&!xe._f&&!ei(Te)?H(U,Te,de):De(U,Te,de),gN(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},se=async U=>{const re=U.target;let de=re.name,xe=!0;const ye=ut(i,de),Te=()=>re.type?Y4(ye._f):X3e(U);if(ye){let Le,ze;const Ye=Te(),jt=U.type===fN.BLUR||U.type===fN.FOCUS_OUT,ue=!d4e(ye._f)&&!n.resolver&&!ut(r.errors,de)&&!ye._f.deps||p4e(jt,ut(r.touchedFields,de),r.isSubmitted,y,b),Ee=gN(de,u,jt);Cn(o,de,Ye),jt?(ye._f.onBlur&&ye._f.onBlur(U),c&&c(0)):ye._f.onChange&&ye._f.onChange(U);const qe=N(de,Ye,jt,!1),j=!sa(qe)||Ee;if(!jt&&m.values.next({name:de,type:U.type,values:{...o}}),ue)return f.isValid&&v(),j&&m.state.next({name:de,...Ee?{}:qe});if(!jt&&Ee&&m.state.next({...r}),w(!0),n.resolver){const{errors:me}=await q([de]),Ve=_N(r.errors,i,de),ge=_N(me,i,Ve.name||de);Le=ge.error,de=ge.name,ze=sa(me)}else Le=(await vN(ye,o,T,n.shouldUseNativeValidation))[de],xe=Number.isNaN(Ye)||Ye===ut(o,de,Ye),xe&&(Le?ze=!1:f.isValid&&(ze=await Q(i,!0)));xe&&(ye._f.deps&&D(ye._f.deps),B(de,ze,Le,qe))}},D=async(U,re={})=>{let de,xe;const ye=V4(U);if(w(!0),n.resolver){const Te=await P(qn(U)?U:ye);de=sa(Te),xe=U?!ye.some(Le=>ut(Te,Le)):de}else U?(xe=(await Promise.all(ye.map(async Te=>{const Le=ut(i,Te);return await Q(Le&&Le._f?{[Te]:Le}:Le)}))).every(Boolean),!(!xe&&!r.isValid)&&v()):xe=de=await Q(i);return m.state.next({...!Eo(U)||f.isValid&&de!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:de}:{},errors:r.errors,isValidating:!1}),re.shouldFocus&&!xe&&oE(i,Te=>Te&&ut(r.errors,Te),U?ye:u.mount),xe},pe=U=>{const re={...a,...s.mount?o:{}};return qn(U)?re:Eo(U)?ut(re,U):U.map(de=>ut(re,de))},le=(U,re)=>({invalid:!!ut((re||r).errors,U),isDirty:!!ut((re||r).dirtyFields,U),isTouched:!!ut((re||r).touchedFields,U),error:ut((re||r).errors,U)}),L=U=>{U&&V4(U).forEach(re=>vr(r.errors,re)),m.state.next({errors:U?r.errors:{}})},ie=(U,re,de)=>{const xe=(ut(i,U,{_f:{}})._f||{}).ref;Cn(r.errors,U,{...re,ref:xe}),m.state.next({name:U,errors:r.errors,isValid:!1}),de&&de.shouldFocus&&xe&&xe.focus&&xe.focus()},Se=(U,re)=>Js(U)?m.values.subscribe({next:de=>U(fe(void 0,re),de)}):fe(U,re,!0),X=(U,re={})=>{for(const de of U?V4(U):u.mount)u.mount.delete(de),u.array.delete(de),re.keepValue||(vr(i,de),vr(o,de)),!re.keepError&&vr(r.errors,de),!re.keepDirty&&vr(r.dirtyFields,de),!re.keepTouched&&vr(r.touchedFields,de),!n.shouldUnregister&&!re.keepDefaultValue&&vr(a,de);m.values.next({values:{...o}}),m.state.next({...r,...re.keepDirty?{isDirty:oe()}:{}}),!re.keepIsValid&&v()},ke=({disabled:U,name:re,field:de,fields:xe})=>{if(lu(U)){const ye=U?void 0:ut(o,re,Y4(de?de._f:ut(xe,re)._f));Cn(o,re,ye),N(re,ye,!1,!1,!0)}},te=(U,re={})=>{let de=ut(i,U);const xe=lu(re.disabled);return Cn(i,U,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:U}},name:U,mount:!0,...re}}),u.mount.add(U),de?ke({field:de,disabled:re.disabled,name:U}):k(U,!0,re.value),{...xe?{disabled:re.disabled}:{},...n.progressive?{required:!!re.required,min:yd(re.min),max:yd(re.max),minLength:yd(re.minLength),maxLength:yd(re.maxLength),pattern:yd(re.pattern)}:{},name:U,onChange:se,onBlur:se,ref:ye=>{if(ye){te(U,re),de=ut(i,U);const Te=qn(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,Le=u4e(Te),ze=de._f.refs||[];if(Le?ze.find(Ye=>Ye===Te):Te===de._f.ref)return;Cn(i,U,{_f:{...de._f,...Le?{refs:[...ze.filter(q4),Te,...Array.isArray(ut(a,U))?[{}]:[]],ref:{type:Te.type,name:U}}:{ref:Te}}}),k(U,!1,void 0,Te)}else de=ut(i,U,{}),de._f&&(de._f.mount=!1),(n.shouldUnregister||re.shouldUnregister)&&!(Q3e(u.array,U)&&s.action)&&u.unMount.add(U)}}},Me=()=>n.shouldFocusError&&oE(i,U=>U&&ut(r.errors,U),u.mount),Re=(U,re)=>async de=>{de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let xe=Qo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ye,values:Te}=await q();r.errors=ye,xe=Te}else await Q(i);vr(r.errors,"root"),sa(r.errors)?(m.state.next({errors:{}}),await U(xe,de)):(re&&await re({...r.errors},de),Me(),setTimeout(Me)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Ze=(U,re={})=>{ut(i,U)&&(qn(re.defaultValue)?W(U,ut(a,U)):(W(U,re.defaultValue),Cn(a,U,re.defaultValue)),re.keepTouched||vr(r.touchedFields,U),re.keepDirty||(vr(r.dirtyFields,U),r.isDirty=re.defaultValue?oe(U,ut(a,U)):oe()),re.keepError||(vr(r.errors,U),f.isValid&&v()),m.state.next({...r}))},We=(U,re={})=>{const de=U?Qo(U):a,xe=Qo(de),ye=U&&!sa(U)?xe:a;if(re.keepDefaultValues||(a=de),!re.keepValues){if(re.keepDirtyValues||g)for(const Te of u.mount)ut(r.dirtyFields,Te)?Cn(ye,Te,ut(o,Te)):W(Te,ut(ye,Te));else{if(FT&&qn(U))for(const Te of u.mount){const Le=ut(i,Te);if(Le&&Le._f){const ze=Array.isArray(Le._f.refs)?Le._f.refs[0]:Le._f.ref;if(rm(ze)){const Ye=ze.closest("form");if(Ye){Ye.reset();break}}}}i={}}o=e.shouldUnregister?re.keepDefaultValues?Qo(a):{}:Qo(ye),m.array.next({values:{...ye}}),m.values.next({values:{...ye}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!re.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:re.keepSubmitCount?r.submitCount:0,isDirty:re.keepDirty?r.isDirty:!!(re.keepDefaultValues&&!uu(U,a)),isSubmitted:re.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re.keepDirtyValues?r.dirtyFields:re.keepDefaultValues&&U?K4(a,U):{},touchedFields:re.keepTouched?r.touchedFields:{},errors:re.keepErrors?r.errors:{},isSubmitSuccessful:re.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,re)=>We(Js(U)?U(o):U,re);return{control:{register:te,unregister:X,getFieldState:le,handleSubmit:Re,setError:ie,_executeSchema:q,_getWatch:fe,_getDirty:oe,_updateValid:v,_removeUnmounted:$,_updateFieldArray:A,_updateDisabledField:ke,_getFieldArray:ce,_reset:We,_resetDefaultValues:()=>Js(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:D,register:te,handleSubmit:Re,watch:Se,setValue:W,getValues:pe,reset:dt,resetField:Ze,clearErrors:L,unregister:X,setError:ie,setFocus:(U,re={})=>{const de=ut(i,U),xe=de&&de._f;if(xe){const ye=xe.refs?xe.refs[0]:xe.ref;ye.focus&&(ye.focus(),re.shouldSelect&&ye.select())}},getFieldState:le}}function nU(e={}){const t=st.useRef(),n=st.useRef(),[r,i]=st.useState({isDirty:!1,isValidating:!1,isLoading:Js(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Js(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...g4e(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,r4e({subject:a._subjects.state,next:o=>{n4e(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),st.useEffect(()=>{e.values&&!uu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),st.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=t4e(r,a),t.current}const TN=Ge.hr` border: 0.5px solid ${Et}; `,m4e=Ge(oc)` background-color: transparent; @@ -1121,7 +1121,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho outline: none; border: none; } -`;function E4e(){const e=nU(),t=s=>console.log(s),n=bs(),r=C.useContext(to),i=zt(s=>s.serverState.config);eo();const a=()=>{if(!r)return;const s=e.watch("system_message"),u=e.watch("temperature");r.setSystemMessage(s||""),u&&r.setTemperature(u)},o=()=>{a(),n("/")};return C.useEffect(()=>{i&&(e.setValue("system_message",i.system_message),e.setValue("temperature",i.temperature))},[i]),I.jsx(KB,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:o,className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Settings"})]}),I.jsx("form",{onSubmit:e.handleSubmit(t),children:i?I.jsxs("div",{className:"p-2",children:[I.jsxs("h3",{className:"flex gap-1",children:["System Message",I.jsx(aE,{msg:`Set a system message with information that the LLM should always +`;function E4e(){const e=nU(),t=s=>console.log(s),n=No(),r=C.useContext(to),i=zt(s=>s.serverState.config);eo();const a=()=>{if(!r)return;const s=e.watch("system_message"),u=e.watch("temperature");r.setSystemMessage(s||""),u&&r.setTemperature(u)},o=()=>{a(),n("/")};return C.useEffect(()=>{i&&(e.setValue("system_message",i.system_message),e.setValue("temperature",i.temperature))},[i]),I.jsx(KB,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:o,className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Settings"})]}),I.jsx("form",{onSubmit:e.handleSubmit(t),children:i?I.jsxs("div",{className:"p-2",children:[I.jsxs("h3",{className:"flex gap-1",children:["System Message",I.jsx(aE,{msg:`Set a system message with information that the LLM should always keep in mind (e.g. "Please give concise answers. Always respond in Spanish.")`})]}),I.jsx(HX,{placeholder:"Enter a system message (e.g. 'Always respond in German')",...e.register("system_message")}),I.jsx(TN,{}),I.jsxs("h3",{className:"flex gap-1",children:["Temperature",I.jsx(aE,{msg:`Set temperature to any value between 0 and 1. Higher values will make the LLM more creative, while lower values will make it more @@ -1132,10 +1132,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */sm.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,b=1,y=2,T=1,E=2,v=4,w=8,A=16,R=32,k=64,N=128,B=256,q=512,P=30,Q="...",$=800,oe=16,fe=1,ce=2,De=3,H=1/0,W=9007199254740991,se=17976931348623157e292,D=0/0,pe=4294967295,le=pe-1,L=pe>>>1,ie=[["ary",N],["bind",T],["bindKey",E],["curry",w],["curryRight",A],["flip",q],["partial",R],["partialRight",k],["rearg",B]],Se="[object Arguments]",X="[object Array]",ke="[object AsyncFunction]",te="[object Boolean]",Me="[object Date]",Re="[object DOMException]",Ze="[object Error]",We="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",je="[object Number]",pt="[object Null]",U="[object Object]",re="[object Promise]",de="[object Proxy]",xe="[object RegExp]",ye="[object Set]",Te="[object String]",Le="[object Symbol]",ze="[object Undefined]",Ye="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",Ee="[object DataView]",qe="[object Float32Array]",j="[object Float64Array]",me="[object Int8Array]",Ve="[object Int16Array]",ge="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",ne="[object Uint16Array]",ve="[object Uint32Array]",Qe=/\b__p \+= '';/g,Fe=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,Je=/[&<>"']/g,Rt=RegExp(rt.source),Qt=RegExp(Je.source),kt=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,Xt=/<%=([\s\S]+?)%>/g,Wr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,Kr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aa=/[\\^$.*+?()[\]{}|]/g,si=RegExp(Aa.source),Or=/^\s+/,Es=/\s/,vs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yr=/\{\n\/\* \[wrapped with (.+)\] \*/,_s=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dr=/[()=,{}\[\]\/\s]/,Si=/\\(\\)?/g,Nl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,J=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,ar=/^(?:0|[1-9]\d*)$/,or=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zn=/($^)/,No=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Lr="\\u0300-\\u036f",Ef="\\ufe20-\\ufe2f",vf="\\u20d0-\\u20ff",GT=Lr+Ef+vf,VT="\\u2700-\\u27bf",WT="a-z\\xdf-\\xf6\\xf8-\\xff",yU="\\xac\\xb1\\xd7\\xf7",EU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vU="\\u2000-\\u206f",_U=" \\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",qT="A-Z\\xc0-\\xd6\\xd8-\\xde",KT="\\ufe0e\\ufe0f",YT=yU+EU+vU+_U,G2="['’]",TU="["+no+"]",XT="["+YT+"]",_f="["+GT+"]",ZT="\\d+",SU="["+VT+"]",QT="["+WT+"]",JT="[^"+no+YT+ZT+VT+WT+qT+"]",V2="\\ud83c[\\udffb-\\udfff]",wU="(?:"+_f+"|"+V2+")",eS="[^"+no+"]",W2="(?:\\ud83c[\\udde6-\\uddff]){2}",q2="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+qT+"]",tS="\\u200d",nS="(?:"+QT+"|"+JT+")",AU="(?:"+Bu+"|"+JT+")",rS="(?:"+G2+"(?:d|ll|m|re|s|t|ve))?",iS="(?:"+G2+"(?:D|LL|M|RE|S|T|VE))?",aS=wU+"?",oS="["+KT+"]?",CU="(?:"+tS+"(?:"+[eS,W2,q2].join("|")+")"+oS+aS+")*",kU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sS=oS+aS+CU,IU="(?:"+[SU,W2,q2].join("|")+")"+sS,RU="(?:"+[eS+_f+"?",_f,W2,q2,TU].join("|")+")",NU=RegExp(G2,"g"),OU=RegExp(_f,"g"),K2=RegExp(V2+"(?="+V2+")|"+RU+sS,"g"),DU=RegExp([Bu+"?"+QT+"+"+rS+"(?="+[XT,Bu,"$"].join("|")+")",AU+"+"+iS+"(?="+[XT,Bu+nS,"$"].join("|")+")",Bu+"?"+nS+"+"+rS,Bu+"+"+iS,xU,kU,ZT,IU].join("|"),"g"),LU=RegExp("["+tS+no+GT+KT+"]"),MU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],PU=-1,En={};En[qe]=En[j]=En[me]=En[Ve]=En[ge]=En[G]=En[K]=En[ne]=En[ve]=!0,En[Se]=En[X]=En[ue]=En[te]=En[Ee]=En[Me]=En[Ze]=En[We]=En[ot]=En[je]=En[U]=En[xe]=En[ye]=En[Te]=En[Ye]=!1;var mn={};mn[Se]=mn[X]=mn[ue]=mn[Ee]=mn[te]=mn[Me]=mn[qe]=mn[j]=mn[me]=mn[Ve]=mn[ge]=mn[ot]=mn[je]=mn[U]=mn[xe]=mn[ye]=mn[Te]=mn[Le]=mn[G]=mn[K]=mn[ne]=mn[ve]=!0,mn[Ze]=mn[We]=mn[Ye]=!1;var BU={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},UU={"&":"&","<":"<",">":">",'"':""","'":"'"},$U={"&":"&","<":"<",">":">",""":'"',"'":"'"},zU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HU=parseFloat,jU=parseInt,lS=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,GU=typeof self=="object"&&self&&self.Object===Object&&self,mr=lS||GU||Function("return this")(),Y2=t&&!t.nodeType&&t,Ol=Y2&&!0&&e&&!e.nodeType&&e,uS=Ol&&Ol.exports===Y2,X2=uS&&lS.process,Yi=function(){try{var ee=Ol&&Ol.require&&Ol.require("util").types;return ee||X2&&X2.binding&&X2.binding("util")}catch{}}(),cS=Yi&&Yi.isArrayBuffer,dS=Yi&&Yi.isDate,pS=Yi&&Yi.isMap,fS=Yi&&Yi.isRegExp,hS=Yi&&Yi.isSet,gS=Yi&&Yi.isTypedArray;function wi(ee,_e,he){switch(he.length){case 0:return ee.call(_e);case 1:return ee.call(_e,he[0]);case 2:return ee.call(_e,he[0],he[1]);case 3:return ee.call(_e,he[0],he[1],he[2])}return ee.apply(_e,he)}function VU(ee,_e,he,et){for(var _t=-1,Jt=ee==null?0:ee.length;++_t-1}function Z2(ee,_e,he){for(var et=-1,_t=ee==null?0:ee.length;++et<_t;)if(he(_e,ee[et]))return!0;return!1}function An(ee,_e){for(var he=-1,et=ee==null?0:ee.length,_t=Array(et);++he-1;);return he}function SS(ee,_e){for(var he=ee.length;he--&&Uu(_e,ee[he],0)>-1;);return he}function e$(ee,_e){for(var he=ee.length,et=0;he--;)ee[he]===_e&&++et;return et}var t$=t5(BU),n$=t5(UU);function r$(ee){return"\\"+zU[ee]}function i$(ee,_e){return ee==null?n:ee[_e]}function $u(ee){return LU.test(ee)}function a$(ee){return MU.test(ee)}function o$(ee){for(var _e,he=[];!(_e=ee.next()).done;)he.push(_e.value);return he}function a5(ee){var _e=-1,he=Array(ee.size);return ee.forEach(function(et,_t){he[++_e]=[_t,et]}),he}function wS(ee,_e){return function(he){return ee(_e(he))}}function ws(ee,_e){for(var he=-1,et=ee.length,_t=0,Jt=[];++he-1}function q$(l,d){var h=this.__data__,_=Uf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Oo.prototype.clear=j$,Oo.prototype.delete=G$,Oo.prototype.get=V$,Oo.prototype.has=W$,Oo.prototype.set=q$;function Do(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Ji(l,d,h,_,x,F){var z,Z=d&f,ae=d&m,we=d&g;if(h&&(z=x?h(l,_,x,F):h(l)),z!==n)return z;if(!Rn(l))return l;var Ce=Tt(l);if(Ce){if(z=Zz(l),!Z)return li(l,z)}else{var Ie=Fr(l),Xe=Ie==We||Ie==dt;if(Rs(l))return ow(l,Z);if(Ie==U||Ie==Se||Xe&&!x){if(z=ae||Xe?{}:Aw(l),!Z)return ae?$z(l,uz(z,l)):Uz(l,FS(z,l))}else{if(!mn[Ie])return x?l:{};z=Qz(l,Ie,Z)}}F||(F=new ka);var st=F.get(l);if(st)return st;F.set(l,z),eA(l)?l.forEach(function(yt){z.add(Ji(yt,d,h,yt,l,F))}):Qw(l)&&l.forEach(function(yt,Nt){z.set(Nt,Ji(yt,d,h,Nt,l,F))});var bt=we?ae?N5:R5:ae?ci:sr,wt=Ce?n:bt(l);return Xi(wt||l,function(yt,Nt){wt&&(Nt=yt,yt=l[Nt]),Pc(z,Nt,Ji(yt,d,h,Nt,l,F))}),z}function cz(l){var d=sr(l);return function(h){return PS(h,l,d)}}function PS(l,d,h){var _=h.length;if(l==null)return!_;for(l=pn(l);_--;){var x=h[_],F=d[x],z=l[x];if(z===n&&!(x in l)||!F(z))return!1}return!0}function BS(l,d,h){if(typeof l!="function")throw new Zi(o);return Gc(function(){l.apply(n,h)},d)}function Bc(l,d,h,_){var x=-1,F=Tf,z=!0,Z=l.length,ae=[],we=d.length;if(!Z)return ae;h&&(d=An(d,Ai(h))),_?(F=Z2,z=!1):d.length>=i&&(F=Nc,z=!1,d=new Ml(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:nA(_);h<_;)l[h++]=d;return l}function $S(l,d){var h=[];return Cs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function br(l,d,h,_,x){var F=-1,z=l.length;for(h||(h=eH),x||(x=[]);++F0&&h(Z)?d>1?br(Z,d-1,h,_,x):Ss(x,Z):_||(x[x.length]=Z)}return x}var p5=pw(),zS=pw(!0);function ro(l,d){return l&&p5(l,d,sr)}function f5(l,d){return l&&zS(l,d,sr)}function zf(l,d){return Ts(d,function(h){return Bo(l[h])})}function Pl(l,d){d=xs(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[ao(d[h++])];return h&&h==_?l:n}function HS(l,d,h){var _=d(l);return Tt(l)?_:Ss(_,h(l))}function Xr(l){return l==null?l===n?ze:pt:Dl&&Dl in pn(l)?Kz(l):sH(l)}function h5(l,d){return l>d}function fz(l,d){return l!=null&&an.call(l,d)}function hz(l,d){return l!=null&&d in pn(l)}function gz(l,d,h){return l>=Mr(d,h)&&l=120&&Ce.length>=120)?new Ml(z&&Ce):n}Ce=l[0];var Ie=-1,Xe=Z[0];e:for(;++Ie-1;)Z!==l&&Of.call(Z,ae,1),Of.call(l,ae,1);return l}function QS(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Po(x)?Of.call(l,x,1):S5(l,x)}}return l}function v5(l,d){return l+Mf(OS()*(d-l+1))}function xz(l,d,h,_){for(var x=-1,F=Jn(Lf((d-l)/(h||1)),0),z=he(F);F--;)z[_?F:++x]=l,l+=h;return z}function _5(l,d){var h="";if(!l||d<1||d>W)return h;do d%2&&(h+=l),d=Mf(d/2),d&&(l+=l);while(d);return h}function xt(l,d){return B5(xw(l,d,di),l+"")}function Iz(l){return MS(Zu(l))}function Rz(l,d){var h=Zu(l);return Qf(h,Fl(d,0,h.length))}function zc(l,d,h,_){if(!Rn(l))return l;d=xs(d,l);for(var x=-1,F=d.length,z=F-1,Z=l;Z!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=he(x);++_>>1,z=l[F];z!==null&&!ki(z)&&(h?z<=d:z=i){var we=d?null:Gz(l);if(we)return wf(we);z=!1,x=Nc,ae=new Ml}else ae=d?[]:Z;e:for(;++_=_?l:ea(l,d,h)}var aw=_$||function(l){return mr.clearTimeout(l)};function ow(l,d){if(d)return l.slice();var h=l.length,_=kS?kS(h):new l.constructor(h);return l.copy(_),_}function k5(l){var d=new l.constructor(l.byteLength);return new Rf(d).set(new Rf(l)),d}function Mz(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function Fz(l){var d=new l.constructor(l.source,Ke.exec(l));return d.lastIndex=l.lastIndex,d}function Pz(l){return Fc?pn(Fc.call(l)):{}}function sw(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function lw(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=ki(l),z=d!==n,Z=d===null,ae=d===d,we=ki(d);if(!Z&&!we&&!F&&l>d||F&&z&&ae&&!Z&&!we||_&&z&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=Z)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function uw(l,d,h,_){for(var x=-1,F=l.length,z=h.length,Z=-1,ae=d.length,we=Jn(F-z,0),Ce=he(ae+we),Ie=!_;++Z1?h[x-1]:n,z=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,z&&Zr(h[0],h[1],z)&&(F=x<3?n:F,x=1),d=pn(d);++_-1?x[F?d[z]:z]:n}}function gw(l){return Fo(function(d){var h=d.length,_=h,x=Qi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Zi(o);if(x&&!z&&Xf(F)=="wrapper")var z=new Qi([],!0)}for(_=z?_:h;++_1&&Bt.reverse(),Ce&&aeZ))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Xe=!0,st=h&y?new Ml:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(vs,`{ + */sm.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,b=1,y=2,T=1,E=2,v=4,w=8,A=16,R=32,k=64,N=128,B=256,q=512,P=30,Q="...",$=800,oe=16,fe=1,ce=2,De=3,H=1/0,W=9007199254740991,se=17976931348623157e292,D=0/0,pe=4294967295,le=pe-1,L=pe>>>1,ie=[["ary",N],["bind",T],["bindKey",E],["curry",w],["curryRight",A],["flip",q],["partial",R],["partialRight",k],["rearg",B]],Se="[object Arguments]",X="[object Array]",ke="[object AsyncFunction]",te="[object Boolean]",Me="[object Date]",Re="[object DOMException]",Ze="[object Error]",We="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",je="[object Number]",pt="[object Null]",U="[object Object]",re="[object Promise]",de="[object Proxy]",xe="[object RegExp]",ye="[object Set]",Te="[object String]",Le="[object Symbol]",ze="[object Undefined]",Ye="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",Ee="[object DataView]",qe="[object Float32Array]",j="[object Float64Array]",me="[object Int8Array]",Ve="[object Int16Array]",ge="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",ne="[object Uint16Array]",ve="[object Uint32Array]",Qe=/\b__p \+= '';/g,Fe=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,Je=/[&<>"']/g,Rt=RegExp(rt.source),Qt=RegExp(Je.source),kt=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,Xt=/<%=([\s\S]+?)%>/g,Wr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,Kr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aa=/[\\^$.*+?()[\]{}|]/g,si=RegExp(Aa.source),Or=/^\s+/,Es=/\s/,vs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yr=/\{\n\/\* \[wrapped with (.+)\] \*/,_s=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dr=/[()=,{}\[\]\/\s]/,Si=/\\(\\)?/g,Nl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,J=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,ar=/^(?:0|[1-9]\d*)$/,or=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zn=/($^)/,Oo=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Lr="\\u0300-\\u036f",Ef="\\ufe20-\\ufe2f",vf="\\u20d0-\\u20ff",GT=Lr+Ef+vf,VT="\\u2700-\\u27bf",WT="a-z\\xdf-\\xf6\\xf8-\\xff",yU="\\xac\\xb1\\xd7\\xf7",EU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vU="\\u2000-\\u206f",_U=" \\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",qT="A-Z\\xc0-\\xd6\\xd8-\\xde",KT="\\ufe0e\\ufe0f",YT=yU+EU+vU+_U,G2="['’]",TU="["+no+"]",XT="["+YT+"]",_f="["+GT+"]",ZT="\\d+",SU="["+VT+"]",QT="["+WT+"]",JT="[^"+no+YT+ZT+VT+WT+qT+"]",V2="\\ud83c[\\udffb-\\udfff]",wU="(?:"+_f+"|"+V2+")",eS="[^"+no+"]",W2="(?:\\ud83c[\\udde6-\\uddff]){2}",q2="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+qT+"]",tS="\\u200d",nS="(?:"+QT+"|"+JT+")",AU="(?:"+Bu+"|"+JT+")",rS="(?:"+G2+"(?:d|ll|m|re|s|t|ve))?",iS="(?:"+G2+"(?:D|LL|M|RE|S|T|VE))?",aS=wU+"?",oS="["+KT+"]?",CU="(?:"+tS+"(?:"+[eS,W2,q2].join("|")+")"+oS+aS+")*",kU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sS=oS+aS+CU,IU="(?:"+[SU,W2,q2].join("|")+")"+sS,RU="(?:"+[eS+_f+"?",_f,W2,q2,TU].join("|")+")",NU=RegExp(G2,"g"),OU=RegExp(_f,"g"),K2=RegExp(V2+"(?="+V2+")|"+RU+sS,"g"),DU=RegExp([Bu+"?"+QT+"+"+rS+"(?="+[XT,Bu,"$"].join("|")+")",AU+"+"+iS+"(?="+[XT,Bu+nS,"$"].join("|")+")",Bu+"?"+nS+"+"+rS,Bu+"+"+iS,xU,kU,ZT,IU].join("|"),"g"),LU=RegExp("["+tS+no+GT+KT+"]"),MU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],PU=-1,En={};En[qe]=En[j]=En[me]=En[Ve]=En[ge]=En[G]=En[K]=En[ne]=En[ve]=!0,En[Se]=En[X]=En[ue]=En[te]=En[Ee]=En[Me]=En[Ze]=En[We]=En[ot]=En[je]=En[U]=En[xe]=En[ye]=En[Te]=En[Ye]=!1;var mn={};mn[Se]=mn[X]=mn[ue]=mn[Ee]=mn[te]=mn[Me]=mn[qe]=mn[j]=mn[me]=mn[Ve]=mn[ge]=mn[ot]=mn[je]=mn[U]=mn[xe]=mn[ye]=mn[Te]=mn[Le]=mn[G]=mn[K]=mn[ne]=mn[ve]=!0,mn[Ze]=mn[We]=mn[Ye]=!1;var BU={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},UU={"&":"&","<":"<",">":">",'"':""","'":"'"},$U={"&":"&","<":"<",">":">",""":'"',"'":"'"},zU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HU=parseFloat,jU=parseInt,lS=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,GU=typeof self=="object"&&self&&self.Object===Object&&self,mr=lS||GU||Function("return this")(),Y2=t&&!t.nodeType&&t,Ol=Y2&&!0&&e&&!e.nodeType&&e,uS=Ol&&Ol.exports===Y2,X2=uS&&lS.process,Yi=function(){try{var ee=Ol&&Ol.require&&Ol.require("util").types;return ee||X2&&X2.binding&&X2.binding("util")}catch{}}(),cS=Yi&&Yi.isArrayBuffer,dS=Yi&&Yi.isDate,pS=Yi&&Yi.isMap,fS=Yi&&Yi.isRegExp,hS=Yi&&Yi.isSet,gS=Yi&&Yi.isTypedArray;function wi(ee,_e,he){switch(he.length){case 0:return ee.call(_e);case 1:return ee.call(_e,he[0]);case 2:return ee.call(_e,he[0],he[1]);case 3:return ee.call(_e,he[0],he[1],he[2])}return ee.apply(_e,he)}function VU(ee,_e,he,et){for(var _t=-1,Jt=ee==null?0:ee.length;++_t-1}function Z2(ee,_e,he){for(var et=-1,_t=ee==null?0:ee.length;++et<_t;)if(he(_e,ee[et]))return!0;return!1}function An(ee,_e){for(var he=-1,et=ee==null?0:ee.length,_t=Array(et);++he-1;);return he}function SS(ee,_e){for(var he=ee.length;he--&&Uu(_e,ee[he],0)>-1;);return he}function e$(ee,_e){for(var he=ee.length,et=0;he--;)ee[he]===_e&&++et;return et}var t$=t5(BU),n$=t5(UU);function r$(ee){return"\\"+zU[ee]}function i$(ee,_e){return ee==null?n:ee[_e]}function $u(ee){return LU.test(ee)}function a$(ee){return MU.test(ee)}function o$(ee){for(var _e,he=[];!(_e=ee.next()).done;)he.push(_e.value);return he}function a5(ee){var _e=-1,he=Array(ee.size);return ee.forEach(function(et,_t){he[++_e]=[_t,et]}),he}function wS(ee,_e){return function(he){return ee(_e(he))}}function ws(ee,_e){for(var he=-1,et=ee.length,_t=0,Jt=[];++he-1}function q$(l,d){var h=this.__data__,_=Uf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Do.prototype.clear=j$,Do.prototype.delete=G$,Do.prototype.get=V$,Do.prototype.has=W$,Do.prototype.set=q$;function Lo(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Ji(l,d,h,_,x,F){var z,Z=d&f,ae=d&m,we=d&g;if(h&&(z=x?h(l,_,x,F):h(l)),z!==n)return z;if(!Rn(l))return l;var Ce=Tt(l);if(Ce){if(z=Zz(l),!Z)return li(l,z)}else{var Ie=Fr(l),Xe=Ie==We||Ie==dt;if(Rs(l))return ow(l,Z);if(Ie==U||Ie==Se||Xe&&!x){if(z=ae||Xe?{}:Aw(l),!Z)return ae?$z(l,uz(z,l)):Uz(l,FS(z,l))}else{if(!mn[Ie])return x?l:{};z=Qz(l,Ie,Z)}}F||(F=new ka);var lt=F.get(l);if(lt)return lt;F.set(l,z),eA(l)?l.forEach(function(yt){z.add(Ji(yt,d,h,yt,l,F))}):Qw(l)&&l.forEach(function(yt,Nt){z.set(Nt,Ji(yt,d,h,Nt,l,F))});var bt=we?ae?N5:R5:ae?ci:sr,wt=Ce?n:bt(l);return Xi(wt||l,function(yt,Nt){wt&&(Nt=yt,yt=l[Nt]),Pc(z,Nt,Ji(yt,d,h,Nt,l,F))}),z}function cz(l){var d=sr(l);return function(h){return PS(h,l,d)}}function PS(l,d,h){var _=h.length;if(l==null)return!_;for(l=pn(l);_--;){var x=h[_],F=d[x],z=l[x];if(z===n&&!(x in l)||!F(z))return!1}return!0}function BS(l,d,h){if(typeof l!="function")throw new Zi(o);return Gc(function(){l.apply(n,h)},d)}function Bc(l,d,h,_){var x=-1,F=Tf,z=!0,Z=l.length,ae=[],we=d.length;if(!Z)return ae;h&&(d=An(d,Ai(h))),_?(F=Z2,z=!1):d.length>=i&&(F=Nc,z=!1,d=new Ml(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:nA(_);h<_;)l[h++]=d;return l}function $S(l,d){var h=[];return Cs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function br(l,d,h,_,x){var F=-1,z=l.length;for(h||(h=eH),x||(x=[]);++F0&&h(Z)?d>1?br(Z,d-1,h,_,x):Ss(x,Z):_||(x[x.length]=Z)}return x}var p5=pw(),zS=pw(!0);function ro(l,d){return l&&p5(l,d,sr)}function f5(l,d){return l&&zS(l,d,sr)}function zf(l,d){return Ts(d,function(h){return Uo(l[h])})}function Pl(l,d){d=xs(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[ao(d[h++])];return h&&h==_?l:n}function HS(l,d,h){var _=d(l);return Tt(l)?_:Ss(_,h(l))}function Xr(l){return l==null?l===n?ze:pt:Dl&&Dl in pn(l)?Kz(l):sH(l)}function h5(l,d){return l>d}function fz(l,d){return l!=null&&an.call(l,d)}function hz(l,d){return l!=null&&d in pn(l)}function gz(l,d,h){return l>=Mr(d,h)&&l=120&&Ce.length>=120)?new Ml(z&&Ce):n}Ce=l[0];var Ie=-1,Xe=Z[0];e:for(;++Ie-1;)Z!==l&&Of.call(Z,ae,1),Of.call(l,ae,1);return l}function QS(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Bo(x)?Of.call(l,x,1):S5(l,x)}}return l}function v5(l,d){return l+Mf(OS()*(d-l+1))}function xz(l,d,h,_){for(var x=-1,F=Jn(Lf((d-l)/(h||1)),0),z=he(F);F--;)z[_?F:++x]=l,l+=h;return z}function _5(l,d){var h="";if(!l||d<1||d>W)return h;do d%2&&(h+=l),d=Mf(d/2),d&&(l+=l);while(d);return h}function xt(l,d){return B5(xw(l,d,di),l+"")}function Iz(l){return MS(Zu(l))}function Rz(l,d){var h=Zu(l);return Qf(h,Fl(d,0,h.length))}function zc(l,d,h,_){if(!Rn(l))return l;d=xs(d,l);for(var x=-1,F=d.length,z=F-1,Z=l;Z!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=he(x);++_>>1,z=l[F];z!==null&&!ki(z)&&(h?z<=d:z=i){var we=d?null:Gz(l);if(we)return wf(we);z=!1,x=Nc,ae=new Ml}else ae=d?[]:Z;e:for(;++_=_?l:ea(l,d,h)}var aw=_$||function(l){return mr.clearTimeout(l)};function ow(l,d){if(d)return l.slice();var h=l.length,_=kS?kS(h):new l.constructor(h);return l.copy(_),_}function k5(l){var d=new l.constructor(l.byteLength);return new Rf(d).set(new Rf(l)),d}function Mz(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function Fz(l){var d=new l.constructor(l.source,Ke.exec(l));return d.lastIndex=l.lastIndex,d}function Pz(l){return Fc?pn(Fc.call(l)):{}}function sw(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function lw(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=ki(l),z=d!==n,Z=d===null,ae=d===d,we=ki(d);if(!Z&&!we&&!F&&l>d||F&&z&&ae&&!Z&&!we||_&&z&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=Z)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function uw(l,d,h,_){for(var x=-1,F=l.length,z=h.length,Z=-1,ae=d.length,we=Jn(F-z,0),Ce=he(ae+we),Ie=!_;++Z1?h[x-1]:n,z=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,z&&Zr(h[0],h[1],z)&&(F=x<3?n:F,x=1),d=pn(d);++_-1?x[F?d[z]:z]:n}}function gw(l){return Po(function(d){var h=d.length,_=h,x=Qi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Zi(o);if(x&&!z&&Xf(F)=="wrapper")var z=new Qi([],!0)}for(_=z?_:h;++_1&&Bt.reverse(),Ce&&aeZ))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Xe=!0,lt=h&y?new Ml:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(vs,`{ /* [wrapped with `+d+`] */ -`)}function eH(l){return Tt(l)||$l(l)||!!(RS&&l&&l[RS])}function Po(l,d){var h=typeof l;return d=d??W,!!d&&(h=="number"||h!="symbol"&&ar.test(l))&&l>-1&&l%1==0&&l0){if(++d>=$)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Qf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,$w(l,h)});function zw(l){var d=M(l);return d.__chain__=!0,d}function dj(l,d){return d(l),l}function Jf(l,d){return d(l)}var pj=Fo(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return d5(F,l)};return d>1||this.__actions__.length||!(_ instanceof Mt)||!Po(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Jf,args:[x],thisArg:n}),new Qi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function fj(){return zw(this)}function hj(){return new Qi(this.value(),this.__chain__)}function gj(){this.__values__===n&&(this.__values__=tA(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function mj(){return this}function bj(l){for(var d,h=this;h instanceof Bf;){var _=Lw(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function yj(){var l=this.__wrapped__;if(l instanceof Mt){var d=l;return this.__actions__.length&&(d=new Mt(this)),d=d.reverse(),d.__actions__.push({func:Jf,args:[U5],thisArg:n}),new Qi(d,this.__chain__)}return this.thru(U5)}function Ej(){return rw(this.__wrapped__,this.__actions__)}var vj=Vf(function(l,d,h){an.call(l,h)?++l[h]:Lo(l,h,1)});function _j(l,d,h){var _=Tt(l)?mS:dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}function Tj(l,d){var h=Tt(l)?Ts:$S;return h(l,mt(d,3))}var Sj=hw(Mw),wj=hw(Fw);function Aj(l,d){return br(e0(l,d),1)}function Cj(l,d){return br(e0(l,d),H)}function kj(l,d,h){return h=h===n?1:St(h),br(e0(l,d),h)}function Hw(l,d){var h=Tt(l)?Xi:Cs;return h(l,mt(d,3))}function jw(l,d){var h=Tt(l)?WU:US;return h(l,mt(d,3))}var xj=Vf(function(l,d,h){an.call(l,h)?l[h].push(d):Lo(l,h,[d])});function Ij(l,d,h,_){l=ui(l)?l:Zu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Jn(x+h,0)),a0(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Uu(l,d,h)>-1}var Rj=xt(function(l,d,h){var _=-1,x=typeof d=="function",F=ui(l)?he(l.length):[];return Cs(l,function(z){F[++_]=x?wi(d,z,h):Uc(z,d,h)}),F}),Nj=Vf(function(l,d,h){Lo(l,h,d)});function e0(l,d){var h=Tt(l)?An:WS;return h(l,mt(d,3))}function Oj(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),XS(l,d,h))}var Dj=Vf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Lj(l,d,h){var _=Tt(l)?Q2:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,Cs)}function Mj(l,d,h){var _=Tt(l)?qU:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,US)}function Fj(l,d){var h=Tt(l)?Ts:$S;return h(l,r0(mt(d,3)))}function Pj(l){var d=Tt(l)?MS:Iz;return d(l)}function Bj(l,d,h){(h?Zr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?oz:Rz;return _(l,d)}function Uj(l){var d=Tt(l)?sz:Oz;return d(l)}function $j(l){if(l==null)return 0;if(ui(l))return a0(l)?zu(l):l.length;var d=Fr(l);return d==ot||d==ye?l.size:b5(l).length}function zj(l,d,h){var _=Tt(l)?J2:Dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}var Hj=xt(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Zr(l,d[0],d[1])?d=[]:h>2&&Zr(d[0],d[1],d[2])&&(d=[d[0]]),XS(l,br(d,1),[])}),t0=T$||function(){return mr.Date.now()};function jj(l,d){if(typeof d!="function")throw new Zi(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function Gw(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,Mo(l,N,n,n,n,n,d)}function Vw(l,d){var h;if(typeof d!="function")throw new Zi(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var z5=xt(function(l,d,h){var _=T;if(h.length){var x=ws(h,Yu(z5));_|=R}return Mo(l,_,d,h,x)}),Ww=xt(function(l,d,h){var _=T|E;if(h.length){var x=ws(h,Yu(Ww));_|=R}return Mo(d,_,l,h,x)});function qw(l,d,h){d=h?n:d;var _=Mo(l,w,n,n,n,n,n,d);return _.placeholder=qw.placeholder,_}function Kw(l,d,h){d=h?n:d;var _=Mo(l,A,n,n,n,n,n,d);return _.placeholder=Kw.placeholder,_}function Yw(l,d,h){var _,x,F,z,Z,ae,we=0,Ce=!1,Ie=!1,Xe=!0;if(typeof l!="function")throw new Zi(o);d=na(d)||0,Rn(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Jn(na(h.maxWait)||0,d):F,Xe="trailing"in h?!!h.trailing:Xe);function st(Hn){var Ia=_,$o=x;return _=x=n,we=Hn,z=l.apply($o,Ia),z}function bt(Hn){return we=Hn,Z=Gc(Nt,d),Ce?st(Hn):z}function wt(Hn){var Ia=Hn-ae,$o=Hn-we,hA=d-Ia;return Ie?Mr(hA,F-$o):hA}function yt(Hn){var Ia=Hn-ae,$o=Hn-we;return ae===n||Ia>=d||Ia<0||Ie&&$o>=F}function Nt(){var Hn=t0();if(yt(Hn))return Bt(Hn);Z=Gc(Nt,wt(Hn))}function Bt(Hn){return Z=n,Xe&&_?st(Hn):(_=x=n,z)}function xi(){Z!==n&&aw(Z),we=0,_=ae=x=Z=n}function Qr(){return Z===n?z:Bt(t0())}function Ii(){var Hn=t0(),Ia=yt(Hn);if(_=arguments,x=this,ae=Hn,Ia){if(Z===n)return bt(ae);if(Ie)return aw(Z),Z=Gc(Nt,d),st(ae)}return Z===n&&(Z=Gc(Nt,d)),z}return Ii.cancel=xi,Ii.flush=Qr,Ii}var Gj=xt(function(l,d){return BS(l,1,d)}),Vj=xt(function(l,d,h){return BS(l,na(d)||0,h)});function Wj(l){return Mo(l,q)}function n0(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Zi(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var z=l.apply(this,_);return h.cache=F.set(x,z)||F,z};return h.cache=new(n0.Cache||Do),h}n0.Cache=Do;function r0(l){if(typeof l!="function")throw new Zi(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function qj(l){return Vw(2,l)}var Kj=Lz(function(l,d){d=d.length==1&&Tt(d[0])?An(d[0],Ai(mt())):An(br(d,1),Ai(mt()));var h=d.length;return xt(function(_){for(var x=-1,F=Mr(_.length,h);++x=d}),$l=jS(function(){return arguments}())?jS:function(l){return Mn(l)&&an.call(l,"callee")&&!IS.call(l,"callee")},Tt=he.isArray,uG=cS?Ai(cS):bz;function ui(l){return l!=null&&i0(l.length)&&!Bo(l)}function zn(l){return Mn(l)&&ui(l)}function cG(l){return l===!0||l===!1||Mn(l)&&Xr(l)==te}var Rs=w$||J5,dG=dS?Ai(dS):yz;function pG(l){return Mn(l)&&l.nodeType===1&&!Vc(l)}function fG(l){if(l==null)return!0;if(ui(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Rs(l)||Xu(l)||$l(l)))return!l.length;var d=Fr(l);if(d==ot||d==ye)return!l.size;if(jc(l))return!b5(l).length;for(var h in l)if(an.call(l,h))return!1;return!0}function hG(l,d){return $c(l,d)}function gG(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?$c(l,d,n,h):!!_}function j5(l){if(!Mn(l))return!1;var d=Xr(l);return d==Ze||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Vc(l)}function mG(l){return typeof l=="number"&&NS(l)}function Bo(l){if(!Rn(l))return!1;var d=Xr(l);return d==We||d==dt||d==ke||d==de}function Zw(l){return typeof l=="number"&&l==St(l)}function i0(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Rn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Mn(l){return l!=null&&typeof l=="object"}var Qw=pS?Ai(pS):vz;function bG(l,d){return l===d||m5(l,d,D5(d))}function yG(l,d,h){return h=typeof h=="function"?h:n,m5(l,d,D5(d),h)}function EG(l){return Jw(l)&&l!=+l}function vG(l){if(rH(l))throw new _t(a);return GS(l)}function _G(l){return l===null}function TG(l){return l==null}function Jw(l){return typeof l=="number"||Mn(l)&&Xr(l)==je}function Vc(l){if(!Mn(l)||Xr(l)!=U)return!1;var d=Nf(l);if(d===null)return!0;var h=an.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&kf.call(h)==y$}var G5=fS?Ai(fS):_z;function SG(l){return Zw(l)&&l>=-W&&l<=W}var eA=hS?Ai(hS):Tz;function a0(l){return typeof l=="string"||!Tt(l)&&Mn(l)&&Xr(l)==Te}function ki(l){return typeof l=="symbol"||Mn(l)&&Xr(l)==Le}var Xu=gS?Ai(gS):Sz;function wG(l){return l===n}function AG(l){return Mn(l)&&Fr(l)==Ye}function CG(l){return Mn(l)&&Xr(l)==jt}var kG=Yf(y5),xG=Yf(function(l,d){return l<=d});function tA(l){if(!l)return[];if(ui(l))return a0(l)?Ca(l):li(l);if(Oc&&l[Oc])return o$(l[Oc]());var d=Fr(l),h=d==ot?a5:d==ye?wf:Zu;return h(l)}function Uo(l){if(!l)return l===0?l:0;if(l=na(l),l===H||l===-H){var d=l<0?-1:1;return d*se}return l===l?l:0}function St(l){var d=Uo(l),h=d%1;return d===d?h?d-h:d:0}function nA(l){return l?Fl(St(l),0,pe):0}function na(l){if(typeof l=="number")return l;if(ki(l))return D;if(Rn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Rn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=_S(l);var h=Be.test(l);return h||un.test(l)?jU(l.slice(2),h?2:8):J.test(l)?D:+l}function rA(l){return io(l,ci(l))}function IG(l){return l?Fl(St(l),-W,W):l===0?l:0}function en(l){return l==null?"":Ci(l)}var RG=qu(function(l,d){if(jc(d)||ui(d)){io(d,sr(d),l);return}for(var h in d)an.call(d,h)&&Pc(l,h,d[h])}),iA=qu(function(l,d){io(d,ci(d),l)}),o0=qu(function(l,d,h,_){io(d,ci(d),l,_)}),NG=qu(function(l,d,h,_){io(d,sr(d),l,_)}),OG=Fo(d5);function DG(l,d){var h=Wu(l);return d==null?h:FS(h,d)}var LG=xt(function(l,d){l=pn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Zr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],z=ci(F),Z=-1,ae=z.length;++Z1),F}),io(l,N5(l),h),_&&(h=Ji(h,f|m|g,Vz));for(var x=d.length;x--;)S5(h,d[x]);return h});function QG(l,d){return oA(l,r0(mt(d)))}var JG=Fo(function(l,d){return l==null?{}:Cz(l,d)});function oA(l,d){if(l==null)return{};var h=An(N5(l),function(_){return[_]});return d=mt(d),ZS(l,h,function(_,x){return d(_,x[0])})}function eV(l,d,h){d=xs(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=OS();return Mr(l+x*(d-l+HU("1e-"+((x+"").length-1))),d)}return v5(l,d)}var dV=Ku(function(l,d,h){return d=d.toLowerCase(),l+(h?uA(d):d)});function uA(l){return q5(en(l).toLowerCase())}function cA(l){return l=en(l),l&&l.replace(or,t$).replace(OU,"")}function pV(l,d,h){l=en(l),d=Ci(d);var _=l.length;h=h===n?_:Fl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function fV(l){return l=en(l),l&&Qt.test(l)?l.replace(Je,n$):l}function hV(l){return l=en(l),l&&si.test(l)?l.replace(Aa,"\\$&"):l}var gV=Ku(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),mV=Ku(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),bV=fw("toLowerCase");function yV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Kf(Mf(x),h)+l+Kf(Lf(x),h)}function EV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;return d&&_>>0,h?(l=en(l),l&&(typeof d=="string"||d!=null&&!G5(d))&&(d=Ci(d),!d&&$u(l))?Is(Ca(l),0,h):l.split(d,h)):[]}var CV=Ku(function(l,d,h){return l+(h?" ":"")+q5(d)});function kV(l,d,h){return l=en(l),h=h==null?0:Fl(St(h),0,l.length),d=Ci(d),l.slice(h,h+d.length)==d}function xV(l,d,h){var _=M.templateSettings;h&&Zr(l,d,h)&&(d=n),l=en(l),d=o0({},d,_,vw);var x=o0({},d.imports,_.imports,vw),F=sr(x),z=i5(x,F),Z,ae,we=0,Ce=d.interpolate||Zn,Ie="__p += '",Xe=o5((d.escape||Zn).source+"|"+Ce.source+"|"+(Ce===Xt?Nl:Zn).source+"|"+(d.evaluate||Zn).source+"|$","g"),st="//# sourceURL="+(an.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++PU+"]")+` -`;l.replace(Xe,function(yt,Nt,Bt,xi,Qr,Ii){return Bt||(Bt=xi),Ie+=l.slice(we,Ii).replace(No,r$),Nt&&(Z=!0,Ie+=`' + +`)}function eH(l){return Tt(l)||$l(l)||!!(RS&&l&&l[RS])}function Bo(l,d){var h=typeof l;return d=d??W,!!d&&(h=="number"||h!="symbol"&&ar.test(l))&&l>-1&&l%1==0&&l0){if(++d>=$)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Qf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,$w(l,h)});function zw(l){var d=M(l);return d.__chain__=!0,d}function dj(l,d){return d(l),l}function Jf(l,d){return d(l)}var pj=Po(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return d5(F,l)};return d>1||this.__actions__.length||!(_ instanceof Mt)||!Bo(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Jf,args:[x],thisArg:n}),new Qi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function fj(){return zw(this)}function hj(){return new Qi(this.value(),this.__chain__)}function gj(){this.__values__===n&&(this.__values__=tA(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function mj(){return this}function bj(l){for(var d,h=this;h instanceof Bf;){var _=Lw(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function yj(){var l=this.__wrapped__;if(l instanceof Mt){var d=l;return this.__actions__.length&&(d=new Mt(this)),d=d.reverse(),d.__actions__.push({func:Jf,args:[U5],thisArg:n}),new Qi(d,this.__chain__)}return this.thru(U5)}function Ej(){return rw(this.__wrapped__,this.__actions__)}var vj=Vf(function(l,d,h){an.call(l,h)?++l[h]:Mo(l,h,1)});function _j(l,d,h){var _=Tt(l)?mS:dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}function Tj(l,d){var h=Tt(l)?Ts:$S;return h(l,mt(d,3))}var Sj=hw(Mw),wj=hw(Fw);function Aj(l,d){return br(e0(l,d),1)}function Cj(l,d){return br(e0(l,d),H)}function kj(l,d,h){return h=h===n?1:St(h),br(e0(l,d),h)}function Hw(l,d){var h=Tt(l)?Xi:Cs;return h(l,mt(d,3))}function jw(l,d){var h=Tt(l)?WU:US;return h(l,mt(d,3))}var xj=Vf(function(l,d,h){an.call(l,h)?l[h].push(d):Mo(l,h,[d])});function Ij(l,d,h,_){l=ui(l)?l:Zu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Jn(x+h,0)),a0(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Uu(l,d,h)>-1}var Rj=xt(function(l,d,h){var _=-1,x=typeof d=="function",F=ui(l)?he(l.length):[];return Cs(l,function(z){F[++_]=x?wi(d,z,h):Uc(z,d,h)}),F}),Nj=Vf(function(l,d,h){Mo(l,h,d)});function e0(l,d){var h=Tt(l)?An:WS;return h(l,mt(d,3))}function Oj(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),XS(l,d,h))}var Dj=Vf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Lj(l,d,h){var _=Tt(l)?Q2:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,Cs)}function Mj(l,d,h){var _=Tt(l)?qU:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,US)}function Fj(l,d){var h=Tt(l)?Ts:$S;return h(l,r0(mt(d,3)))}function Pj(l){var d=Tt(l)?MS:Iz;return d(l)}function Bj(l,d,h){(h?Zr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?oz:Rz;return _(l,d)}function Uj(l){var d=Tt(l)?sz:Oz;return d(l)}function $j(l){if(l==null)return 0;if(ui(l))return a0(l)?zu(l):l.length;var d=Fr(l);return d==ot||d==ye?l.size:b5(l).length}function zj(l,d,h){var _=Tt(l)?J2:Dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}var Hj=xt(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Zr(l,d[0],d[1])?d=[]:h>2&&Zr(d[0],d[1],d[2])&&(d=[d[0]]),XS(l,br(d,1),[])}),t0=T$||function(){return mr.Date.now()};function jj(l,d){if(typeof d!="function")throw new Zi(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function Gw(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,Fo(l,N,n,n,n,n,d)}function Vw(l,d){var h;if(typeof d!="function")throw new Zi(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var z5=xt(function(l,d,h){var _=T;if(h.length){var x=ws(h,Yu(z5));_|=R}return Fo(l,_,d,h,x)}),Ww=xt(function(l,d,h){var _=T|E;if(h.length){var x=ws(h,Yu(Ww));_|=R}return Fo(d,_,l,h,x)});function qw(l,d,h){d=h?n:d;var _=Fo(l,w,n,n,n,n,n,d);return _.placeholder=qw.placeholder,_}function Kw(l,d,h){d=h?n:d;var _=Fo(l,A,n,n,n,n,n,d);return _.placeholder=Kw.placeholder,_}function Yw(l,d,h){var _,x,F,z,Z,ae,we=0,Ce=!1,Ie=!1,Xe=!0;if(typeof l!="function")throw new Zi(o);d=na(d)||0,Rn(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Jn(na(h.maxWait)||0,d):F,Xe="trailing"in h?!!h.trailing:Xe);function lt(Hn){var Ia=_,zo=x;return _=x=n,we=Hn,z=l.apply(zo,Ia),z}function bt(Hn){return we=Hn,Z=Gc(Nt,d),Ce?lt(Hn):z}function wt(Hn){var Ia=Hn-ae,zo=Hn-we,hA=d-Ia;return Ie?Mr(hA,F-zo):hA}function yt(Hn){var Ia=Hn-ae,zo=Hn-we;return ae===n||Ia>=d||Ia<0||Ie&&zo>=F}function Nt(){var Hn=t0();if(yt(Hn))return Bt(Hn);Z=Gc(Nt,wt(Hn))}function Bt(Hn){return Z=n,Xe&&_?lt(Hn):(_=x=n,z)}function xi(){Z!==n&&aw(Z),we=0,_=ae=x=Z=n}function Qr(){return Z===n?z:Bt(t0())}function Ii(){var Hn=t0(),Ia=yt(Hn);if(_=arguments,x=this,ae=Hn,Ia){if(Z===n)return bt(ae);if(Ie)return aw(Z),Z=Gc(Nt,d),lt(ae)}return Z===n&&(Z=Gc(Nt,d)),z}return Ii.cancel=xi,Ii.flush=Qr,Ii}var Gj=xt(function(l,d){return BS(l,1,d)}),Vj=xt(function(l,d,h){return BS(l,na(d)||0,h)});function Wj(l){return Fo(l,q)}function n0(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Zi(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var z=l.apply(this,_);return h.cache=F.set(x,z)||F,z};return h.cache=new(n0.Cache||Lo),h}n0.Cache=Lo;function r0(l){if(typeof l!="function")throw new Zi(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function qj(l){return Vw(2,l)}var Kj=Lz(function(l,d){d=d.length==1&&Tt(d[0])?An(d[0],Ai(mt())):An(br(d,1),Ai(mt()));var h=d.length;return xt(function(_){for(var x=-1,F=Mr(_.length,h);++x=d}),$l=jS(function(){return arguments}())?jS:function(l){return Mn(l)&&an.call(l,"callee")&&!IS.call(l,"callee")},Tt=he.isArray,uG=cS?Ai(cS):bz;function ui(l){return l!=null&&i0(l.length)&&!Uo(l)}function zn(l){return Mn(l)&&ui(l)}function cG(l){return l===!0||l===!1||Mn(l)&&Xr(l)==te}var Rs=w$||J5,dG=dS?Ai(dS):yz;function pG(l){return Mn(l)&&l.nodeType===1&&!Vc(l)}function fG(l){if(l==null)return!0;if(ui(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Rs(l)||Xu(l)||$l(l)))return!l.length;var d=Fr(l);if(d==ot||d==ye)return!l.size;if(jc(l))return!b5(l).length;for(var h in l)if(an.call(l,h))return!1;return!0}function hG(l,d){return $c(l,d)}function gG(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?$c(l,d,n,h):!!_}function j5(l){if(!Mn(l))return!1;var d=Xr(l);return d==Ze||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Vc(l)}function mG(l){return typeof l=="number"&&NS(l)}function Uo(l){if(!Rn(l))return!1;var d=Xr(l);return d==We||d==dt||d==ke||d==de}function Zw(l){return typeof l=="number"&&l==St(l)}function i0(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Rn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Mn(l){return l!=null&&typeof l=="object"}var Qw=pS?Ai(pS):vz;function bG(l,d){return l===d||m5(l,d,D5(d))}function yG(l,d,h){return h=typeof h=="function"?h:n,m5(l,d,D5(d),h)}function EG(l){return Jw(l)&&l!=+l}function vG(l){if(rH(l))throw new _t(a);return GS(l)}function _G(l){return l===null}function TG(l){return l==null}function Jw(l){return typeof l=="number"||Mn(l)&&Xr(l)==je}function Vc(l){if(!Mn(l)||Xr(l)!=U)return!1;var d=Nf(l);if(d===null)return!0;var h=an.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&kf.call(h)==y$}var G5=fS?Ai(fS):_z;function SG(l){return Zw(l)&&l>=-W&&l<=W}var eA=hS?Ai(hS):Tz;function a0(l){return typeof l=="string"||!Tt(l)&&Mn(l)&&Xr(l)==Te}function ki(l){return typeof l=="symbol"||Mn(l)&&Xr(l)==Le}var Xu=gS?Ai(gS):Sz;function wG(l){return l===n}function AG(l){return Mn(l)&&Fr(l)==Ye}function CG(l){return Mn(l)&&Xr(l)==jt}var kG=Yf(y5),xG=Yf(function(l,d){return l<=d});function tA(l){if(!l)return[];if(ui(l))return a0(l)?Ca(l):li(l);if(Oc&&l[Oc])return o$(l[Oc]());var d=Fr(l),h=d==ot?a5:d==ye?wf:Zu;return h(l)}function $o(l){if(!l)return l===0?l:0;if(l=na(l),l===H||l===-H){var d=l<0?-1:1;return d*se}return l===l?l:0}function St(l){var d=$o(l),h=d%1;return d===d?h?d-h:d:0}function nA(l){return l?Fl(St(l),0,pe):0}function na(l){if(typeof l=="number")return l;if(ki(l))return D;if(Rn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Rn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=_S(l);var h=Be.test(l);return h||un.test(l)?jU(l.slice(2),h?2:8):J.test(l)?D:+l}function rA(l){return io(l,ci(l))}function IG(l){return l?Fl(St(l),-W,W):l===0?l:0}function en(l){return l==null?"":Ci(l)}var RG=qu(function(l,d){if(jc(d)||ui(d)){io(d,sr(d),l);return}for(var h in d)an.call(d,h)&&Pc(l,h,d[h])}),iA=qu(function(l,d){io(d,ci(d),l)}),o0=qu(function(l,d,h,_){io(d,ci(d),l,_)}),NG=qu(function(l,d,h,_){io(d,sr(d),l,_)}),OG=Po(d5);function DG(l,d){var h=Wu(l);return d==null?h:FS(h,d)}var LG=xt(function(l,d){l=pn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Zr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],z=ci(F),Z=-1,ae=z.length;++Z1),F}),io(l,N5(l),h),_&&(h=Ji(h,f|m|g,Vz));for(var x=d.length;x--;)S5(h,d[x]);return h});function QG(l,d){return oA(l,r0(mt(d)))}var JG=Po(function(l,d){return l==null?{}:Cz(l,d)});function oA(l,d){if(l==null)return{};var h=An(N5(l),function(_){return[_]});return d=mt(d),ZS(l,h,function(_,x){return d(_,x[0])})}function eV(l,d,h){d=xs(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=OS();return Mr(l+x*(d-l+HU("1e-"+((x+"").length-1))),d)}return v5(l,d)}var dV=Ku(function(l,d,h){return d=d.toLowerCase(),l+(h?uA(d):d)});function uA(l){return q5(en(l).toLowerCase())}function cA(l){return l=en(l),l&&l.replace(or,t$).replace(OU,"")}function pV(l,d,h){l=en(l),d=Ci(d);var _=l.length;h=h===n?_:Fl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function fV(l){return l=en(l),l&&Qt.test(l)?l.replace(Je,n$):l}function hV(l){return l=en(l),l&&si.test(l)?l.replace(Aa,"\\$&"):l}var gV=Ku(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),mV=Ku(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),bV=fw("toLowerCase");function yV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Kf(Mf(x),h)+l+Kf(Lf(x),h)}function EV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;return d&&_>>0,h?(l=en(l),l&&(typeof d=="string"||d!=null&&!G5(d))&&(d=Ci(d),!d&&$u(l))?Is(Ca(l),0,h):l.split(d,h)):[]}var CV=Ku(function(l,d,h){return l+(h?" ":"")+q5(d)});function kV(l,d,h){return l=en(l),h=h==null?0:Fl(St(h),0,l.length),d=Ci(d),l.slice(h,h+d.length)==d}function xV(l,d,h){var _=M.templateSettings;h&&Zr(l,d,h)&&(d=n),l=en(l),d=o0({},d,_,vw);var x=o0({},d.imports,_.imports,vw),F=sr(x),z=i5(x,F),Z,ae,we=0,Ce=d.interpolate||Zn,Ie="__p += '",Xe=o5((d.escape||Zn).source+"|"+Ce.source+"|"+(Ce===Xt?Nl:Zn).source+"|"+(d.evaluate||Zn).source+"|$","g"),lt="//# sourceURL="+(an.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++PU+"]")+` +`;l.replace(Xe,function(yt,Nt,Bt,xi,Qr,Ii){return Bt||(Bt=xi),Ie+=l.slice(we,Ii).replace(Oo,r$),Nt&&(Z=!0,Ie+=`' + __e(`+Nt+`) + '`),Qr&&(ae=!0,Ie+=`'; `+Qr+`; @@ -1151,7 +1151,7 @@ __p += '`),Bt&&(Ie+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Ie+`return __p -}`;var wt=pA(function(){return Jt(F,st+"return "+Ie).apply(n,z)});if(wt.source=Ie,j5(wt))throw wt;return wt}function IV(l){return en(l).toLowerCase()}function RV(l){return en(l).toUpperCase()}function NV(l,d,h){if(l=en(l),l&&(h||d===n))return _S(l);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=Ca(d),F=TS(_,x),z=SS(_,x)+1;return Is(_,F,z).join("")}function OV(l,d,h){if(l=en(l),l&&(h||d===n))return l.slice(0,AS(l)+1);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=SS(_,Ca(d))+1;return Is(_,0,x).join("")}function DV(l,d,h){if(l=en(l),l&&(h||d===n))return l.replace(Or,"");if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=TS(_,Ca(d));return Is(_,x).join("")}function LV(l,d){var h=P,_=Q;if(Rn(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?Ci(d.omission):_}l=en(l);var F=l.length;if($u(l)){var z=Ca(l);F=z.length}if(h>=F)return l;var Z=h-zu(_);if(Z<1)return _;var ae=z?Is(z,0,Z).join(""):l.slice(0,Z);if(x===n)return ae+_;if(z&&(Z+=ae.length-Z),G5(x)){if(l.slice(Z).search(x)){var we,Ce=ae;for(x.global||(x=o5(x.source,en(Ke.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?Z:Ie)}}else if(l.indexOf(Ci(x),Z)!=Z){var Xe=ae.lastIndexOf(x);Xe>-1&&(ae=ae.slice(0,Xe))}return ae+_}function MV(l){return l=en(l),l&&Rt.test(l)?l.replace(rt,c$):l}var FV=Ku(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),q5=fw("toUpperCase");function dA(l,d,h){return l=en(l),d=h?n:d,d===n?a$(l)?f$(l):XU(l):l.match(d)||[]}var pA=xt(function(l,d){try{return wi(l,n,d)}catch(h){return j5(h)?h:new _t(h)}}),PV=Fo(function(l,d){return Xi(d,function(h){h=ao(h),Lo(l,h,z5(l[h],l))}),l});function BV(l){var d=l==null?0:l.length,h=mt();return l=d?An(l,function(_){if(typeof _[1]!="function")throw new Zi(o);return[h(_[0]),_[1]]}):[],xt(function(_){for(var x=-1;++xW)return[];var h=pe,_=Mr(l,pe);d=mt(d),l-=pe;for(var x=r5(_,d);++h0||d<0)?new Mt(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Mt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Mt.prototype.toArray=function(){return this.take(pe)},ro(Mt.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var z=this.__wrapped__,Z=_?[1]:arguments,ae=z instanceof Mt,we=Z[0],Ce=ae||Tt(z),Ie=function(Nt){var Bt=x.apply(M,Ss([Nt],Z));return _&&Xe?Bt[0]:Bt};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Xe=this.__chain__,st=!!this.__actions__.length,bt=F&&!Xe,wt=ae&&!st;if(!F&&Ce){z=wt?z:new Mt(this);var yt=l.apply(z,Z);return yt.__actions__.push({func:Jf,args:[Ie],thisArg:n}),new Qi(yt,Xe)}return bt&&wt?l.apply(this,Z):(yt=this.thru(Ie),bt?_?yt.value()[0]:yt.value():yt)})}),Xi(["pop","push","shift","sort","splice","unshift"],function(l){var d=Af[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(z){return d.apply(Tt(z)?z:[],x)})}}),ro(Mt.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";an.call(Vu,_)||(Vu[_]=[]),Vu[_].push({name:d,func:h})}}),Vu[Wf(n,E).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=M$,Mt.prototype.reverse=F$,Mt.prototype.value=P$,M.prototype.at=pj,M.prototype.chain=fj,M.prototype.commit=hj,M.prototype.next=gj,M.prototype.plant=bj,M.prototype.reverse=yj,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Ej,M.prototype.first=M.prototype.head,Oc&&(M.prototype[Oc]=mj),M},Hu=h$();Ol?((Ol.exports=Hu)._=Hu,Y2._=Hu):mr._=Hu}).call(Jl)})(sm,sm.exports);var v4e=sm.exports;const el=Vi(v4e);function uo(e,t){const n=el.cloneDeep(e);for(const r in t)typeof t[r]=="function"?el.updateWith(n,r,t[r]):el.updateWith(n,r,i=>t[r]);return n}const Rc={};Rc["Requires API Key"]="#FF0000";Rc.Local="#00bb00";Rc["Open-Source"]="#0033FF";Rc.Free="#ffff00";const _4e={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},T4e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},S4e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},w4e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},A4e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},C4e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Da=[_4e,T4e,w4e,S4e,A4e,C4e],SN={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},sE={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},lE={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},uE={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},rU={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},cE={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},iU={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},k4e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},o1=[sE,lE,uE,rU,iU,cE,k4e],wN={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},AN={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},x4e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function CN(e){return x4e[e]||e}const aU={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[wN,AN],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Da]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Da],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: +}`;var wt=pA(function(){return Jt(F,lt+"return "+Ie).apply(n,z)});if(wt.source=Ie,j5(wt))throw wt;return wt}function IV(l){return en(l).toLowerCase()}function RV(l){return en(l).toUpperCase()}function NV(l,d,h){if(l=en(l),l&&(h||d===n))return _S(l);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=Ca(d),F=TS(_,x),z=SS(_,x)+1;return Is(_,F,z).join("")}function OV(l,d,h){if(l=en(l),l&&(h||d===n))return l.slice(0,AS(l)+1);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=SS(_,Ca(d))+1;return Is(_,0,x).join("")}function DV(l,d,h){if(l=en(l),l&&(h||d===n))return l.replace(Or,"");if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=TS(_,Ca(d));return Is(_,x).join("")}function LV(l,d){var h=P,_=Q;if(Rn(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?Ci(d.omission):_}l=en(l);var F=l.length;if($u(l)){var z=Ca(l);F=z.length}if(h>=F)return l;var Z=h-zu(_);if(Z<1)return _;var ae=z?Is(z,0,Z).join(""):l.slice(0,Z);if(x===n)return ae+_;if(z&&(Z+=ae.length-Z),G5(x)){if(l.slice(Z).search(x)){var we,Ce=ae;for(x.global||(x=o5(x.source,en(Ke.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?Z:Ie)}}else if(l.indexOf(Ci(x),Z)!=Z){var Xe=ae.lastIndexOf(x);Xe>-1&&(ae=ae.slice(0,Xe))}return ae+_}function MV(l){return l=en(l),l&&Rt.test(l)?l.replace(rt,c$):l}var FV=Ku(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),q5=fw("toUpperCase");function dA(l,d,h){return l=en(l),d=h?n:d,d===n?a$(l)?f$(l):XU(l):l.match(d)||[]}var pA=xt(function(l,d){try{return wi(l,n,d)}catch(h){return j5(h)?h:new _t(h)}}),PV=Po(function(l,d){return Xi(d,function(h){h=ao(h),Mo(l,h,z5(l[h],l))}),l});function BV(l){var d=l==null?0:l.length,h=mt();return l=d?An(l,function(_){if(typeof _[1]!="function")throw new Zi(o);return[h(_[0]),_[1]]}):[],xt(function(_){for(var x=-1;++xW)return[];var h=pe,_=Mr(l,pe);d=mt(d),l-=pe;for(var x=r5(_,d);++h0||d<0)?new Mt(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Mt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Mt.prototype.toArray=function(){return this.take(pe)},ro(Mt.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var z=this.__wrapped__,Z=_?[1]:arguments,ae=z instanceof Mt,we=Z[0],Ce=ae||Tt(z),Ie=function(Nt){var Bt=x.apply(M,Ss([Nt],Z));return _&&Xe?Bt[0]:Bt};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Xe=this.__chain__,lt=!!this.__actions__.length,bt=F&&!Xe,wt=ae&&!lt;if(!F&&Ce){z=wt?z:new Mt(this);var yt=l.apply(z,Z);return yt.__actions__.push({func:Jf,args:[Ie],thisArg:n}),new Qi(yt,Xe)}return bt&&wt?l.apply(this,Z):(yt=this.thru(Ie),bt?_?yt.value()[0]:yt.value():yt)})}),Xi(["pop","push","shift","sort","splice","unshift"],function(l){var d=Af[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(z){return d.apply(Tt(z)?z:[],x)})}}),ro(Mt.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";an.call(Vu,_)||(Vu[_]=[]),Vu[_].push({name:d,func:h})}}),Vu[Wf(n,E).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=M$,Mt.prototype.reverse=F$,Mt.prototype.value=P$,M.prototype.at=pj,M.prototype.chain=fj,M.prototype.commit=hj,M.prototype.next=gj,M.prototype.plant=bj,M.prototype.reverse=yj,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Ej,M.prototype.first=M.prototype.head,Oc&&(M.prototype[Oc]=mj),M},Hu=h$();Ol?((Ol.exports=Hu)._=Hu,Y2._=Hu):mr._=Hu}).call(Jl)})(sm,sm.exports);var v4e=sm.exports;const el=Vi(v4e);function uo(e,t){const n=el.cloneDeep(e);for(const r in t)typeof t[r]=="function"?el.updateWith(n,r,t[r]):el.updateWith(n,r,i=>t[r]);return n}const Rc={};Rc["Requires API Key"]="#FF0000";Rc.Local="#00bb00";Rc["Open-Source"]="#0033FF";Rc.Free="#ffff00";const _4e={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},T4e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},S4e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},w4e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},A4e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},C4e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Da=[_4e,T4e,w4e,S4e,A4e,C4e],SN={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},sE={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},lE={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},uE={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},rU={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},cE={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},iU={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},k4e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},o1=[sE,lE,uE,rU,iU,cE,k4e],wN={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},AN={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},x4e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function CN(e){return x4e[e]||e}const aU={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[wN,AN],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Da]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Da],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: 1. Obtain an API key from [here](https://together.ai) 2. Paste below 3. Select a model preset`,tags:["Requires API Key","Open-Source"],params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your TogetherAI API key",required:!0},...Da],packages:[uo(lE,{"dimensions[0].options":e=>el.mapValues(e,t=>el.assign({},t,{model:"togethercomputer/"+t.model.replace("llama2","llama-2").replace(":","-")}))}),uo(sE,{"dimensions[0].options":e=>el.mapValues(e,t=>el.assign({},t,{model:"togethercomputer/"+t.model.replace("codellama","CodeLlama").replace(":","-").replace("instruct","Instruct")}))}),uo(uE,{"params.model":"WizardLM/WizardCoder-15B-V1.0","params.title":"WizardCoder-15b","dimensions[0].options":{"15b":{model:"WizardLM/WizardCoder-15B-V1.0",title:"WizardCoder-15b"},"34b (Python)":{model:"WizardLM/WizardCoder-Python-34B-V1.0",title:"WizardCoder-34b-Python"}}}),uo(rU,{"params.model":"Phind/Phind-CodeLlama-34B-Python-v1"}),uo(cE,{"params.model":"mistralai/Mistral-7B-Instruct-v0.1"})].map(e=>(e.params.context_length=4096,e))},lmstudio:{title:"LM Studio",class:"GGML",description:"One of the fastest ways to get started with local models on Mac or Windows",longDescription:`LMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started: @@ -1214,7 +1214,7 @@ function print() { __p += __j.call(arguments, '') } padding: 1rem; justify-items: center; align-items: center; -`;function D4e(){const e=bs();return C.useContext(to),eo(),I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht,zIndex:2},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Select LLM Provider"})]}),I.jsx(O4e,{children:Object.entries(aU).map(([t,n])=>I.jsx(oU,{title:n.title,description:n.description,tags:n.tags,icon:n.icon,refUrl:`https://continue.dev/docs/reference/Models/${n.class.toLowerCase()}`,onClick:r=>{e(`/modelconfig/${t}`)}}))})]})}const L4e=Ge.div` +`;function D4e(){const e=No();return C.useContext(to),eo(),I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht,zIndex:2},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Select LLM Provider"})]}),I.jsx(O4e,{children:Object.entries(aU).map(([t,n])=>I.jsx(oU,{title:n.title,description:n.description,tags:n.tags,icon:n.icon,refUrl:`https://continue.dev/docs/reference/Models/${n.class.toLowerCase()}`,onClick:r=>{e(`/modelconfig/${t}`)}}))})]})}const L4e=Ge.div` display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-gap: 2rem; @@ -1240,4 +1240,4 @@ function print() { __p += __j.call(arguments, '') } cursor: pointer; } `} -`;function F4e(){var u,c,p,f,m;const e=nU(),{modelName:t}=Bme(),[n,r]=C.useState(void 0);C.useEffect(()=>{t&&r(aU[t])},[t]);const i=C.useContext(to);eo();const a=bs(),o=window.vscMediaUrl,s=C.useCallback(()=>{var g;return((g=n==null?void 0:n.collectInputFor)==null?void 0:g.some(b=>{if(!b.required)return!1;const y=e.watch(b.key);return typeof y>"u"||typeof y=="string"&&y===""}))||!1},[n,e]);return I.jsx(KB,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht,zIndex:2},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>a("/models"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Configure Model"})]}),I.jsxs("div",{className:"px-2",children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o&&(n==null?void 0:n.icon)&&I.jsx("img",{src:`${o}/logos/${n==null?void 0:n.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h2",{children:n==null?void 0:n.title})]}),(u=n==null?void 0:n.tags)==null?void 0:u.map(g=>I.jsx("span",{style:{backgroundColor:`${Rc[g]}55`,color:"white",padding:"2px 4px",borderRadius:It,marginRight:"4px"},children:g})),I.jsx(Ug,{className:"mt-2",source:(n==null?void 0:n.longDescription)||(n==null?void 0:n.description),maxHeight:200}),I.jsx("br",{}),(((c=n==null?void 0:n.collectInputFor)==null?void 0:c.filter(g=>g.required).length)||0)>0&&I.jsxs(I.Fragment,{children:[I.jsx("h3",{className:"mb-2",children:"Enter required parameters"}),(p=n==null?void 0:n.collectInputFor)==null?void 0:p.filter(g=>g.required).map(g=>I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(Ig,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!0})})]}))]}),(((f=n==null?void 0:n.collectInputFor)==null?void 0:f.filter(g=>!g.required).length)||0)>0&&I.jsxs("details",{children:[I.jsx("summary",{className:"mb-2",children:I.jsx("b",{children:"Advanced (optional)"})}),(m=n==null?void 0:n.collectInputFor)==null?void 0:m.map(g=>g.required?null:I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(Ig,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!1})})]}))]}),I.jsx("h3",{className:"mb-2",children:"Select a model preset"})]}),I.jsxs(L4e,{children:[n==null?void 0:n.packages.map(g=>I.jsx(oU,{disabled:s(),title:g.title,description:g.description,tags:g.tags,refUrl:g.refUrl,icon:g.icon||n.icon,dimensions:g.dimensions,onClick:(b,y)=>{var E;if(s())return;const T={};for(const v of n.collectInputFor||[])T[v.key]=v.inputType==="text"?e.watch(v.key):parseFloat(e.watch(v.key));i==null||i.addModelForRole("*",n.class,{...g.params,...n.params,...el.merge({},...((E=g.dimensions)==null?void 0:E.map((v,w)=>y!=null&&y[w]?{...v.options[y[w]]}:{}))||[]),...T}),a("/")}})),I.jsx(M4e,{disabled:s(),onClick:g=>{var y;if(!n||s())return;const b={};for(const T of n.collectInputFor||[])b[T.key]=T.inputType==="text"?e.watch(T.key):parseFloat(e.watch(T.key));i==null||i.addModelForRole("*",n.class,{...(y=n.packages[0])==null?void 0:y.params,...n.params,...b}),a("/")},children:I.jsx("h3",{className:"text-center my-2",children:"Configure Model in config.py"})})]})]})})}const P4e={meilisearchUrl:void 0,slashCommands:[],selectedContextItems:[],config:{system_message:"",temperature:.5},contextProviders:[],savedContextGroups:[]},sU=pf({name:"serverState",initialState:P4e,reducers:{setSlashCommands:(e,t)=>({...e,slashCommands:t.payload}),setContextProviders:(e,t)=>({...e,contextProviders:t.payload}),setConfig:(e,t)=>({...e,config:t.payload})}}),{setContextProviders:B4e,setSlashCommands:U4e,setConfig:kN}=sU.actions,$4e=sU.reducer,X4=window,lU=pf({name:"config",initialState:{apiUrl:X4.serverUrl||"http://localhost:8000",workspacePaths:X4.workspacePaths||[],vscMachineId:X4.vscMachineId||void 0},reducers:{setWorkspacePaths:(e,t)=>({...e,workspacePaths:t.payload}),setApiUrl:(e,t)=>({...e,apiUrl:t.payload}),setVscMachineId:(e,t)=>({...e,vscMachineId:t.payload}),setSessionId:(e,t)=>({...e,sessionId:t.payload}),setDataSwitchOn:(e,t)=>({...e,dataSwitchOn:t.payload})}}),{setVscMachineId:z4e,setApiUrl:H4e,setWorkspacePaths:j4e,setSessionId:Wbe,setDataSwitchOn:qbe}=lU.actions,G4e=lU.reducer;function V4e(e,t){const n=zt(u=>u.config.apiUrl),r=zt(u=>u.sessionState.active),i=zt(u=>u.sessionState.title),a=zt(u=>u.sessionState.history),[o,s]=C.useState(!1);C.useEffect(()=>{t(Zd(!1)),qa("onLoad",{})},[]),C.useEffect(()=>{(async()=>{if(e&&!o&&!r&&i==="New Session"&&a&&a.filter(u=>!(u!=null&&u.hide)).length>=2){s(!0);const u=await e.getSessionTitle(a);t(wP(u))}})()},[r,a,i,e,o]),C.useEffect(()=>{e&&(e.onSessionUpdate(u=>{t(g0e(u))}),e.onAddContextItem(u=>{t(TP(u))}),e.onConfigUpdate(u=>{t(kN(u))}),fetch(`${n}/slash_commands`).then(async u=>{const c=await u.json();t(U4e(c))}),fetch(`${n}/context_providers`).then(async u=>{const c=await u.json();t(B4e(c))}),e.getConfig().then(u=>{t(kN(u))}))},[e]),C.useEffect(()=>{const u=c=>{switch(c.data.type){case"onLoad":window.windowId=c.data.windowId,window.serverUrl=c.data.serverUrl,window.workspacePaths=c.data.workspacePaths,window.vscMachineId=c.data.vscMachineId,window.vscMediaUrl=c.data.vscMediaUrl,t(H4e(c.data.serverUrl)),t(j4e(c.data.workspacePaths)),t(z4e(c.data.vscMachineId));break;case"highlightedCode":t(m0e({rangeInFileWithContents:c.data.rangeInFileWithContents,edit:c.data.edit}));break;case"serverStatus":t(Y0e(c.data.message));break;case"stopSession":e==null||e.stopSession();break}};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)},[e]),C.useEffect(()=>{document.body.style.getPropertyValue("--vscode-editor-foreground")&&localStorage.setItem("--vscode-editor-foreground",document.body.style.getPropertyValue("--vscode-editor-foreground")),document.body.style.getPropertyValue("--vscode-editor-background")&&localStorage.setItem("--vscode-editor-background",document.body.style.getPropertyValue("--vscode-editor-background")),document.body.style.getPropertyValue("--vscode-list-hoverBackground")&&localStorage.setItem("--vscode-list-hoverBackground",document.body.style.getPropertyValue("--vscode-list-hoverBackground"))},[])}const W4e=t2e([{path:"/",element:I.jsx(J5e,{}),errorElement:I.jsx(q3e,{}),children:[{path:"/index.html",element:I.jsx(qR,{})},{path:"/",element:I.jsx(qR,{})},{path:"/history",element:I.jsx(f2e,{})},{path:"/help",element:I.jsx(YR,{})},{path:"/settings",element:I.jsx(E4e,{})},{path:"/models",element:I.jsx(D4e,{})},{path:"/help",element:I.jsx(YR,{})},{path:"/modelconfig/:modelName",element:I.jsx(F4e,{})}]}]),to=C.createContext(void 0);function q4e(){const e=VB(!1),t=eo();return V4e(e,t),I.jsx(to.Provider,{value:e,children:I.jsx(Xme,{router:W4e})})}var $T={},zT={};zT.__esModule=!0;zT.default=X4e;function Kh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kh=function(n){return typeof n}:Kh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kh(e)}function Z4(){}var K4e={getItem:Z4,setItem:Z4,removeItem:Z4};function Y4e(e){if((typeof self>"u"?"undefined":Kh(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function X4e(e){var t="".concat(e,"Storage");return Y4e(t)?self[t]:K4e}$T.__esModule=!0;$T.default=J4e;var Z4e=Q4e(zT);function Q4e(e){return e&&e.__esModule?e:{default:e}}function J4e(e){var t=(0,Z4e.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,o){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var uU=void 0,ebe=tbe($T);function tbe(e){return e&&e.__esModule?e:{default:e}}var nbe=(0,ebe.default)("local");uU=nbe;var HT="persist:",cU="persist/FLUSH",jT="persist/REHYDRATE",dU="persist/PAUSE",pU="persist/PERSIST",fU="persist/PURGE",hU="persist/REGISTER",rbe=-1;function Yh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yh=function(n){return typeof n}:Yh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yh(e)}function xN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ibe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gbe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var mbe=5e3;function bbe(e,t){var n=e.version!==void 0?e.version:rbe;e.debug;var r=e.stateReconciler===void 0?obe:e.stateReconciler,i=e.getStoredState||ube,a=e.timeout!==void 0?e.timeout:mbe,o=null,s=!1,u=!0,c=function(f){return f._persist.rehydrated&&o&&!u&&o.update(f),f};return function(p,f){var m=p||{},g=m._persist,b=hbe(m,["_persist"]),y=b;if(f.type===pU){var T=!1,E=function(B,q){T||(f.rehydrate(e.key,B,q),T=!0)};if(a&&setTimeout(function(){!T&&E(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),u=!1,o||(o=sbe(e)),g)return Yo({},t(y,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(N){var B=e.migrate||function(q,P){return Promise.resolve(q)};B(N,n).then(function(q){E(q)},function(q){E(void 0,q)})},function(N){E(void 0,N)}),Yo({},t(y,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===fU)return s=!0,f.result(dbe(e)),Yo({},t(y,f),{_persist:g});if(f.type===cU)return f.result(o&&o.flush()),Yo({},t(y,f),{_persist:g});if(f.type===dU)u=!0;else if(f.type===jT){if(s)return Yo({},y,{_persist:Yo({},g,{rehydrated:!0})});if(f.key===e.key){var v=t(y,f),w=f.payload,A=r!==!1&&w!==void 0?r(w,p,v,e):v,R=Yo({},A,{_persist:Yo({},g,{rehydrated:!0})});return c(R)}}}if(!g)return t(p,f);var k=t(y,f);return k===y?p:c(Yo({},k,{_persist:g}))}}function RN(e){return vbe(e)||Ebe(e)||ybe()}function ybe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Ebe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function vbe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:gU,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case hU:return dE({},t,{registry:[].concat(RN(t.registry),[n.key])});case jT:var r=t.registry.indexOf(n.key),i=RN(t.registry);return i.splice(r,1),dE({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Sbe(e,t,n){var r=n||!1,i=oT(Tbe,gU,t&&t.enhancer?t.enhancer:void 0),a=function(c){i.dispatch({type:hU,key:c})},o=function(c,p,f){var m={type:jT,payload:p,err:f,key:c};e.dispatch(m),i.dispatch(m),r&&s.getState().bootstrapped&&(r(),r=!1)},s=dE({},i,{purge:function(){var c=[];return e.dispatch({type:fU,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:cU,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){e.dispatch({type:dU})},persist:function(){e.dispatch({type:pU,register:a,rehydrate:o})}});return t&&t.manualPersist||s.persist(),s}const wbe=mP({config:G4e,misc:X0e,uiState:q0e,sessionState:y0e,serverState:$4e}),Abe={key:"root",storage:uU},Cbe=bbe(Abe,wbe),mU=t0e({reducer:Cbe,middleware:e=>e({serializableCheck:!1})}),kbe=Sbe(mU);function Xh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xh=function(n){return typeof n}:Xh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xh(e)}function xbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ON(e,t){for(var n=0;n{const t=zt(i=>{var a,o;return(o=(a=i==null?void 0:i.serverState)==null?void 0:a.config)==null?void 0:o.allow_anonymous_telemetry}),[n,r]=ut.useState(void 0);return C.useEffect(()=>{t?(ep.init("phc_JS6XFROuNbhJtVCEdTSYk6gl5ArRrTNMpCcguAXlSPs",{api_host:"https://app.posthog.com",disable_session_recording:!0}),r(n)):r(void 0)},[t]),t?I.jsx(Pge,{client:n,children:e}):I.jsx(I.Fragment,{children:e})};J4.createRoot(document.getElementById("root")).render(I.jsx(ut.StrictMode,{children:I.jsx(_fe,{store:mU,children:I.jsx(bU,{loading:null,persistor:kbe,children:I.jsx(Obe,{children:I.jsx(q4e,{})})})})})); +`;function F4e(){var u,c,p,f,m;const e=nU(),{modelName:t}=Bme(),[n,r]=C.useState(void 0);C.useEffect(()=>{t&&r(aU[t])},[t]);const i=C.useContext(to);eo();const a=No(),o=window.vscMediaUrl,s=C.useCallback(()=>{var g;return((g=n==null?void 0:n.collectInputFor)==null?void 0:g.some(b=>{if(!b.required)return!1;const y=e.watch(b.key);return typeof y>"u"||typeof y=="string"&&y===""}))||!1},[n,e]);return I.jsx(KB,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${Et}`,backgroundColor:Ht,zIndex:2},children:[I.jsx(mc,{width:"1.2em",height:"1.2em",onClick:()=>a("/models"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Configure Model"})]}),I.jsxs("div",{className:"px-2",children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o&&(n==null?void 0:n.icon)&&I.jsx("img",{src:`${o}/logos/${n==null?void 0:n.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h2",{children:n==null?void 0:n.title})]}),(u=n==null?void 0:n.tags)==null?void 0:u.map(g=>I.jsx("span",{style:{backgroundColor:`${Rc[g]}55`,color:"white",padding:"2px 4px",borderRadius:It,marginRight:"4px"},children:g})),I.jsx(Ug,{className:"mt-2",source:(n==null?void 0:n.longDescription)||(n==null?void 0:n.description),maxHeight:200}),I.jsx("br",{}),(((c=n==null?void 0:n.collectInputFor)==null?void 0:c.filter(g=>g.required).length)||0)>0&&I.jsxs(I.Fragment,{children:[I.jsx("h3",{className:"mb-2",children:"Enter required parameters"}),(p=n==null?void 0:n.collectInputFor)==null?void 0:p.filter(g=>g.required).map(g=>I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(Ig,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!0})})]}))]}),(((f=n==null?void 0:n.collectInputFor)==null?void 0:f.filter(g=>!g.required).length)||0)>0&&I.jsxs("details",{children:[I.jsx("summary",{className:"mb-2",children:I.jsx("b",{children:"Advanced (optional)"})}),(m=n==null?void 0:n.collectInputFor)==null?void 0:m.map(g=>g.required?null:I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(Ig,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!1})})]}))]}),I.jsx("h3",{className:"mb-2",children:"Select a model preset"})]}),I.jsxs(L4e,{children:[n==null?void 0:n.packages.map(g=>I.jsx(oU,{disabled:s(),title:g.title,description:g.description,tags:g.tags,refUrl:g.refUrl,icon:g.icon||n.icon,dimensions:g.dimensions,onClick:(b,y)=>{var E;if(s())return;const T={};for(const v of n.collectInputFor||[])T[v.key]=v.inputType==="text"?e.watch(v.key):parseFloat(e.watch(v.key));i==null||i.addModelForRole("*",n.class,{...g.params,...n.params,...el.merge({},...((E=g.dimensions)==null?void 0:E.map((v,w)=>y!=null&&y[w]?{...v.options[y[w]]}:{}))||[]),...T}),a("/")}})),I.jsx(M4e,{disabled:s(),onClick:g=>{var y;if(!n||s())return;const b={};for(const T of n.collectInputFor||[])b[T.key]=T.inputType==="text"?e.watch(T.key):parseFloat(e.watch(T.key));i==null||i.addModelForRole("*",n.class,{...(y=n.packages[0])==null?void 0:y.params,...n.params,...b}),a("/")},children:I.jsx("h3",{className:"text-center my-2",children:"Configure Model in config.py"})})]})]})})}const P4e={meilisearchUrl:void 0,slashCommands:[],selectedContextItems:[],config:{system_message:"",temperature:.5},contextProviders:[],savedContextGroups:[]},sU=pf({name:"serverState",initialState:P4e,reducers:{setSlashCommands:(e,t)=>({...e,slashCommands:t.payload}),setContextProviders:(e,t)=>({...e,contextProviders:t.payload}),setConfig:(e,t)=>({...e,config:t.payload})}}),{setContextProviders:B4e,setSlashCommands:U4e,setConfig:kN}=sU.actions,$4e=sU.reducer,X4=window,lU=pf({name:"config",initialState:{apiUrl:X4.serverUrl||"http://localhost:8000",workspacePaths:X4.workspacePaths||[],vscMachineId:X4.vscMachineId||void 0},reducers:{setWorkspacePaths:(e,t)=>({...e,workspacePaths:t.payload}),setApiUrl:(e,t)=>({...e,apiUrl:t.payload}),setVscMachineId:(e,t)=>({...e,vscMachineId:t.payload}),setSessionId:(e,t)=>({...e,sessionId:t.payload}),setDataSwitchOn:(e,t)=>({...e,dataSwitchOn:t.payload})}}),{setVscMachineId:z4e,setApiUrl:H4e,setWorkspacePaths:j4e,setSessionId:Wbe,setDataSwitchOn:qbe}=lU.actions,G4e=lU.reducer;function V4e(e,t){const n=zt(u=>u.config.apiUrl),r=zt(u=>u.sessionState.active),i=zt(u=>u.sessionState.title),a=zt(u=>u.sessionState.history),[o,s]=C.useState(!1);C.useEffect(()=>{t(Zd(!1)),qa("onLoad",{})},[]),C.useEffect(()=>{(async()=>{if(e&&!o&&!r&&i==="New Session"&&a&&a.filter(u=>!(u!=null&&u.hide)).length>=2){s(!0);const u=await e.getSessionTitle(a);t(wP(u))}})()},[r,a,i,e,o]),C.useEffect(()=>{e&&(e.onSessionUpdate(u=>{t(g0e(u))}),e.onAddContextItem(u=>{t(TP(u))}),e.onConfigUpdate(u=>{t(kN(u))}),fetch(`${n}/slash_commands`).then(async u=>{const c=await u.json();t(U4e(c))}),fetch(`${n}/context_providers`).then(async u=>{const c=await u.json();t(B4e(c))}),e.getConfig().then(u=>{t(kN(u))}))},[e]),C.useEffect(()=>{const u=c=>{switch(c.data.type){case"onLoad":window.windowId=c.data.windowId,window.serverUrl=c.data.serverUrl,window.workspacePaths=c.data.workspacePaths,window.vscMachineId=c.data.vscMachineId,window.vscMediaUrl=c.data.vscMediaUrl,t(H4e(c.data.serverUrl)),t(j4e(c.data.workspacePaths)),t(z4e(c.data.vscMachineId));break;case"highlightedCode":t(m0e({rangeInFileWithContents:c.data.rangeInFileWithContents,edit:c.data.edit}));break;case"serverStatus":t(Y0e(c.data.message));break;case"stopSession":e==null||e.stopSession();break}};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)},[e]),C.useEffect(()=>{document.body.style.getPropertyValue("--vscode-editor-foreground")&&localStorage.setItem("--vscode-editor-foreground",document.body.style.getPropertyValue("--vscode-editor-foreground")),document.body.style.getPropertyValue("--vscode-editor-background")&&localStorage.setItem("--vscode-editor-background",document.body.style.getPropertyValue("--vscode-editor-background")),document.body.style.getPropertyValue("--vscode-list-hoverBackground")&&localStorage.setItem("--vscode-list-hoverBackground",document.body.style.getPropertyValue("--vscode-list-hoverBackground"))},[])}const W4e=t2e([{path:"/",element:I.jsx(J5e,{}),errorElement:I.jsx(q3e,{}),children:[{path:"/index.html",element:I.jsx(qR,{})},{path:"/",element:I.jsx(qR,{})},{path:"/history",element:I.jsx(f2e,{})},{path:"/help",element:I.jsx(YR,{})},{path:"/settings",element:I.jsx(E4e,{})},{path:"/models",element:I.jsx(D4e,{})},{path:"/help",element:I.jsx(YR,{})},{path:"/modelconfig/:modelName",element:I.jsx(F4e,{})}]}]),to=C.createContext(void 0);function q4e(){const e=VB(!1),t=eo();return V4e(e,t),I.jsx(to.Provider,{value:e,children:I.jsx(Xme,{router:W4e})})}var $T={},zT={};zT.__esModule=!0;zT.default=X4e;function Kh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kh=function(n){return typeof n}:Kh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kh(e)}function Z4(){}var K4e={getItem:Z4,setItem:Z4,removeItem:Z4};function Y4e(e){if((typeof self>"u"?"undefined":Kh(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function X4e(e){var t="".concat(e,"Storage");return Y4e(t)?self[t]:K4e}$T.__esModule=!0;$T.default=J4e;var Z4e=Q4e(zT);function Q4e(e){return e&&e.__esModule?e:{default:e}}function J4e(e){var t=(0,Z4e.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,o){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var uU=void 0,ebe=tbe($T);function tbe(e){return e&&e.__esModule?e:{default:e}}var nbe=(0,ebe.default)("local");uU=nbe;var HT="persist:",cU="persist/FLUSH",jT="persist/REHYDRATE",dU="persist/PAUSE",pU="persist/PERSIST",fU="persist/PURGE",hU="persist/REGISTER",rbe=-1;function Yh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yh=function(n){return typeof n}:Yh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yh(e)}function xN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ibe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gbe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var mbe=5e3;function bbe(e,t){var n=e.version!==void 0?e.version:rbe;e.debug;var r=e.stateReconciler===void 0?obe:e.stateReconciler,i=e.getStoredState||ube,a=e.timeout!==void 0?e.timeout:mbe,o=null,s=!1,u=!0,c=function(f){return f._persist.rehydrated&&o&&!u&&o.update(f),f};return function(p,f){var m=p||{},g=m._persist,b=hbe(m,["_persist"]),y=b;if(f.type===pU){var T=!1,E=function(B,q){T||(f.rehydrate(e.key,B,q),T=!0)};if(a&&setTimeout(function(){!T&&E(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),u=!1,o||(o=sbe(e)),g)return Xo({},t(y,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(N){var B=e.migrate||function(q,P){return Promise.resolve(q)};B(N,n).then(function(q){E(q)},function(q){E(void 0,q)})},function(N){E(void 0,N)}),Xo({},t(y,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===fU)return s=!0,f.result(dbe(e)),Xo({},t(y,f),{_persist:g});if(f.type===cU)return f.result(o&&o.flush()),Xo({},t(y,f),{_persist:g});if(f.type===dU)u=!0;else if(f.type===jT){if(s)return Xo({},y,{_persist:Xo({},g,{rehydrated:!0})});if(f.key===e.key){var v=t(y,f),w=f.payload,A=r!==!1&&w!==void 0?r(w,p,v,e):v,R=Xo({},A,{_persist:Xo({},g,{rehydrated:!0})});return c(R)}}}if(!g)return t(p,f);var k=t(y,f);return k===y?p:c(Xo({},k,{_persist:g}))}}function RN(e){return vbe(e)||Ebe(e)||ybe()}function ybe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Ebe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function vbe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:gU,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case hU:return dE({},t,{registry:[].concat(RN(t.registry),[n.key])});case jT:var r=t.registry.indexOf(n.key),i=RN(t.registry);return i.splice(r,1),dE({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Sbe(e,t,n){var r=n||!1,i=oT(Tbe,gU,t&&t.enhancer?t.enhancer:void 0),a=function(c){i.dispatch({type:hU,key:c})},o=function(c,p,f){var m={type:jT,payload:p,err:f,key:c};e.dispatch(m),i.dispatch(m),r&&s.getState().bootstrapped&&(r(),r=!1)},s=dE({},i,{purge:function(){var c=[];return e.dispatch({type:fU,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:cU,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){e.dispatch({type:dU})},persist:function(){e.dispatch({type:pU,register:a,rehydrate:o})}});return t&&t.manualPersist||s.persist(),s}const wbe=mP({config:G4e,misc:X0e,uiState:q0e,sessionState:y0e,serverState:$4e}),Abe={key:"root",storage:uU},Cbe=bbe(Abe,wbe),mU=t0e({reducer:Cbe,middleware:e=>e({serializableCheck:!1})}),kbe=Sbe(mU);function Xh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xh=function(n){return typeof n}:Xh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xh(e)}function xbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ON(e,t){for(var n=0;n{const t=zt(i=>{var a,o;return(o=(a=i==null?void 0:i.serverState)==null?void 0:a.config)==null?void 0:o.allow_anonymous_telemetry}),[n,r]=st.useState(void 0);return C.useEffect(()=>{t?(ep.init("phc_JS6XFROuNbhJtVCEdTSYk6gl5ArRrTNMpCcguAXlSPs",{api_host:"https://app.posthog.com",disable_session_recording:!0}),r(n)):r(void 0)},[t]),t?I.jsx(Pge,{client:n,children:e}):I.jsx(I.Fragment,{children:e})};J4.createRoot(document.getElementById("root")).render(I.jsx(st.StrictMode,{children:I.jsx(_fe,{store:mU,children:I.jsx(bU,{loading:null,persistor:kbe,children:I.jsx(Obe,{children:I.jsx(q4e,{})})})})})); diff --git a/gui/src/components/TextDialog.tsx b/gui/src/components/TextDialog.tsx index acf9675aa..da0f2c577 100644 --- a/gui/src/components/TextDialog.tsx +++ b/gui/src/components/TextDialog.tsx @@ -1,5 +1,5 @@ // Write a component that displays a dialog box with a text field and a button. -import React, { useEffect, useState } from "react"; +import React, { isValidElement, useEffect, useState } from "react"; import styled from "styled-components"; import { Button, secondaryDark, vscBackground, vscForeground } from "."; import { isMetaEquivalentKeyPressed } from "../util"; @@ -71,6 +71,10 @@ const TextDialog = (props: { }; }, [props]); + if (!isValidElement(props.message) && typeof props.message !== "string") { + return null; + } + return ( { @@ -86,7 +90,7 @@ const TextDialog = (props: { {typeof props.message === "string" ? ( {props.message || ""} - ) : ( + ) : !React.isValidElement(props.message) ? null : ( props.message )} diff --git a/gui/src/pages/error.tsx b/gui/src/pages/error.tsx index c1b2d3dc8..0b956f2f9 100644 --- a/gui/src/pages/error.tsx +++ b/gui/src/pages/error.tsx @@ -1,5 +1,5 @@ import { useDispatch } from "react-redux"; -import { useRouteError } from "react-router-dom"; +import { useNavigate, useRouteError } from "react-router-dom"; import { newSession } from "../redux/slices/sessionStateReducer"; import useContinueGUIProtocol from "../hooks/useContinueClient"; import ContinueButton from "../components/ContinueButton"; @@ -10,6 +10,7 @@ export default function ErrorPage() { console.error(error); const dispatch = useDispatch(); const client = useContinueGUIProtocol(false); + const navigate = useNavigate(); return (
{ client?.stopSession(); dispatch(newSession()); + localStorage.removeItem("persist:root"); + navigate("/"); }} >
diff --git a/gui/src/pages/gui.tsx b/gui/src/pages/gui.tsx index 3f4a16d94..505f6a816 100644 --- a/gui/src/pages/gui.tsx +++ b/gui/src/pages/gui.tsx @@ -398,7 +398,7 @@ function GUI(props: GUIProps) { localStorage.setItem("mainTextEntryCounter", "1"); } }, - [client, sessionState.history, sessionState.context_items] + [client, sessionState.history, sessionState.context_items, defaultModel] ); useEffect(() => { diff --git a/server/continuedev/libs/llm/openai.py b/server/continuedev/libs/llm/openai.py index b06cc341b..8d2dd7e90 100644 --- a/server/continuedev/libs/llm/openai.py +++ b/server/continuedev/libs/llm/openai.py @@ -1,4 +1,5 @@ -from typing import Callable, List, Literal, Optional +import asyncio +from typing import List, Literal, Optional import certifi from ..util.count_tokens import MAX_TOKENS_FOR_MODEL @@ -160,6 +161,11 @@ class OpenAI(LLM): ): if not hasattr(chunk, "choices") or len(chunk.choices) == 0: continue + + if self.api_type == "azure": + # To smooth out the response streaming, which typically comes in bursts + await asyncio.sleep(0.01) + yield chunk.choices[0].delta else: async for chunk in await openai.Completion.acreate( diff --git a/server/continuedev/libs/llm/proxy_server.py b/server/continuedev/libs/llm/proxy_server.py index 19a5da5c2..5afdcaa4d 100644 --- a/server/continuedev/libs/llm/proxy_server.py +++ b/server/continuedev/libs/llm/proxy_server.py @@ -1,3 +1,4 @@ +import asyncio import json import traceback from typing import List @@ -70,6 +71,7 @@ class ProxyServer(LLM): if chunk.strip() != "": loaded_chunk = json.loads(chunk) yield loaded_chunk + await asyncio.sleep(0.01) except Exception as e: posthog_logger.capture_event( diff --git a/server/continuedev/server/protocols/gui.py b/server/continuedev/server/protocols/gui.py index 92c51d965..a279ff491 100644 --- a/server/continuedev/server/protocols/gui.py +++ b/server/continuedev/server/protocols/gui.py @@ -282,6 +282,21 @@ class GUIProtocolServer: _running_autopilots: Dict[str, Autopilot] = {} async def run_from_state(self, state: SessionState, step: Optional[Step] = None): + if step is not None or len(state.history) > 0: + step_to_log = step or state.history[-1] + posthog_logger.capture_event( + "step run", + { + "step_name": step_to_log.name, + "params": step_to_log.params, + "context": list( + map( + lambda item: item.dict(), + state.context_items, + ) + ), + }, + ) autopilot = self.get_autopilot(state) cancel_token = str(uuid.uuid4()) self._running_autopilots[cancel_token] = autopilot From 401e79e333c5e11f6d85ddbcf0d78a8b0bc2c92b Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 1 Nov 2023 19:41:23 +0000 Subject: [PATCH 17/19] =?UTF-8?q?ci:=20=F0=9F=8F=B7=20Update=20PyPI=20vers?= =?UTF-8?q?ion=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/pyproject.toml b/server/pyproject.toml index c3d6830d5..26435da1e 100644 --- a/server/pyproject.toml +++ b/server/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "continuedev" -version = "0.1.75" +version = "0.1.76" description = "" authors = ["Nate Sesti "] readme = "README.md" From d8e69430500258be344f7df3145cc29d850d78ac Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 1 Nov 2023 19:54:15 +0000 Subject: [PATCH 18/19] =?UTF-8?q?=F0=9F=92=9A=20Update=20package.json=20ve?= =?UTF-8?q?rsion=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/package-lock.json | 4 ++-- extensions/vscode/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 955bf6b9c..3ba8911b0 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.1.41", + "version": "0.1.42", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "continue", - "version": "0.1.41", + "version": "0.1.42", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index a22aac863..fbce17546 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -1,7 +1,7 @@ { "name": "continue", "icon": "media/icon.png", - "version": "0.1.41", + "version": "0.1.42", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From c1695df2d6fed3f9ed58b2c6818dcee8ab185a89 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 1 Nov 2023 13:49:42 -0700 Subject: [PATCH 19/19] =?UTF-8?q?=F0=9F=90=9B=20small=20bug=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/webview/assets/index.js | 34 +++++++++---------- extensions/vscode/gui/assets/index.js | 34 +++++++++---------- extensions/vscode/src/continueIdeClient.ts | 2 +- server/continuedev/server/protocols/gui.py | 2 +- server/continuedev/server/window_manager.py | 11 +++--- 5 files changed, 42 insertions(+), 41 deletions(-) diff --git a/extensions/intellij/src/main/resources/webview/assets/index.js b/extensions/intellij/src/main/resources/webview/assets/index.js index ed209b663..bcc6ed6e2 100644 --- a/extensions/intellij/src/main/resources/webview/assets/index.js +++ b/extensions/intellij/src/main/resources/webview/assets/index.js @@ -45,7 +45,7 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var c9=Symbol.for("react.element"),d9=Symbol.for("react.portal"),wm=Symbol.for("react.fragment"),Am=Symbol.for("react.strict_mode"),Cm=Symbol.for("react.profiler"),km=Symbol.for("react.provider"),xm=Symbol.for("react.context"),YK=Symbol.for("react.server_context"),Im=Symbol.for("react.forward_ref"),Rm=Symbol.for("react.suspense"),Nm=Symbol.for("react.suspense_list"),Om=Symbol.for("react.memo"),Dm=Symbol.for("react.lazy"),XK=Symbol.for("react.offscreen"),qD;qD=Symbol.for("react.module.reference");function _a(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case c9:switch(e=e.type,e){case wm:case Cm:case Am:case Rm:case Nm:return e;default:switch(e=e&&e.$$typeof,e){case YK:case xm:case Im:case Dm:case Om:case km:return e;default:return t}}case d9:return t}}}sn.ContextConsumer=xm;sn.ContextProvider=km;sn.Element=c9;sn.ForwardRef=Im;sn.Fragment=wm;sn.Lazy=Dm;sn.Memo=Om;sn.Portal=d9;sn.Profiler=Cm;sn.StrictMode=Am;sn.Suspense=Rm;sn.SuspenseList=Nm;sn.isAsyncMode=function(){return!1};sn.isConcurrentMode=function(){return!1};sn.isContextConsumer=function(e){return _a(e)===xm};sn.isContextProvider=function(e){return _a(e)===km};sn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===c9};sn.isForwardRef=function(e){return _a(e)===Im};sn.isFragment=function(e){return _a(e)===wm};sn.isLazy=function(e){return _a(e)===Dm};sn.isMemo=function(e){return _a(e)===Om};sn.isPortal=function(e){return _a(e)===d9};sn.isProfiler=function(e){return _a(e)===Cm};sn.isStrictMode=function(e){return _a(e)===Am};sn.isSuspense=function(e){return _a(e)===Rm};sn.isSuspenseList=function(e){return _a(e)===Nm};sn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wm||e===Cm||e===Am||e===Rm||e===Nm||e===XK||typeof e=="object"&&e!==null&&(e.$$typeof===Dm||e.$$typeof===Om||e.$$typeof===km||e.$$typeof===xm||e.$$typeof===Im||e.$$typeof===qD||e.getModuleId!==void 0)};sn.typeOf=_a;WD.exports=sn;var p9=WD.exports;const ZK=Vi(p9);function QK(e){function t(le,L,ie,Se,X){for(var ke=0,te=0,Me=0,Re=0,Ze,We,dt=0,ot=0,je,pt=je=Ze=0,U=0,re=0,de=0,xe=0,ye=ie.length,Te=ye-1,Le,ze="",Ye="",jt="",ue="",Ee;UZe)&&(xe=(ze=ze.replace(" ",":")).length),0Se&&(Se=(L=L.trim()).charCodeAt(0)),Se){case 38:return L.replace(E,"$1"+le.trim());case 58:return le.trim()+L.replace(E,"$1"+le.trim());default:if(0<1*ie&&0te.charCodeAt(8))break;case 115:X=X.replace(te,"-webkit-"+te)+";"+X;break;case 207:case 102:X=X.replace(te,"-webkit-"+(102ie.charCodeAt(0)&&(ie=ie.trim()),pe=ie,ie=[pe],0Ye)&&(xe=(ze=ze.replace(" ",":")).length),0Se&&(Se=(L=L.trim()).charCodeAt(0)),Se){case 38:return L.replace(E,"$1"+le.trim());case 58:return le.trim()+L.replace(E,"$1"+le.trim());default:if(0<1*ie&&0te.charCodeAt(8))break;case 115:X=X.replace(te,"-webkit-"+te)+";"+X;break;case 207:case 102:X=X.replace(te,"-webkit-"+(102ie.charCodeAt(0)&&(ie=ie.trim()),pe=ie,ie=[pe],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var yY=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Bp(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=Pd&&(Pd=t+1),Ch.set(e,t),wg.set(t,e)},_Y="style["+rc+'][data-styled-version="5.3.11"]',TY=new RegExp("^"+rc+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),SY=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;c--){var p=u[c];if(p&&p.nodeType===1&&p.hasAttribute(rc))return p}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(rc,"active"),r.setAttribute("data-styled-version","5.3.11");var o=AY();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},CY=function(){function e(n){var r=this.element=QD(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=m+",")}),a+=""+c+p+'{content:"'+f+`"}/*!sc*/ -`}}}return a}(this)},e}(),RY=/(a)(d)/gi,NC=function(e){return String.fromCharCode(e+(e>25?39:97))};function qb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=NC(t%52)+n;return(NC(t%52)+n).replace(RY,"$1-$2")}var A1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eL=function(e){return A1(5381,e)};function NY(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=A1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var E=r(f,"."+T,void 0,i);n.insertRules(i,T,E)}a.push(T)}}return a.join(" ")},e}(),LY=/^\s*\/\/.*$/gm,MY=[":","[",".","#"];function FY(e){var t,n,r,i,a=e===void 0?ul:e,o=a.options,s=o===void 0?ul:o,u=a.plugins,c=u===void 0?Sg:u,p=new QK(s),f=[],m=function(y){function T(E){if(E)try{y(E+"}")}catch{}}return function(E,v,w,A,R,k,N,B,q,P){switch(E){case 1:if(q===0&&v.charCodeAt(0)===64)return y(v+";"),"";break;case 2:if(B===0)return v+"/*|*/";break;case 3:switch(B){case 102:case 112:return y(w[0]+v),"";default:return v+(P===0?"/*|*/":"")}case-2:v.split("/*|*/}").forEach(T)}}}(function(y){f.push(y)}),g=function(y,T,E){return T===0&&MY.indexOf(E[n.length])!==-1||E.match(i)?y:"."+t};function b(y,T,E,v){v===void 0&&(v="&");var w=y.replace(LY,""),A=T&&E?E+" "+T+" { "+w+" }":w;return t=v,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(E||!T?"":T,A)}return p.use([].concat(c,[function(y,T,E){y===2&&E.length&&E[0].lastIndexOf(n)>0&&(E[0]=E[0].replace(r,g))},m,function(y){if(y===-2){var T=f;return f=[],T}}])),b.hash=c.length?c.reduce(function(y,T){return T.name||Bp(15),A1(y,T.name)},5381).toString():"",b}var tL=st.createContext();tL.Consumer;var nL=st.createContext(),PY=(nL.Consumer,new JD),Kb=FY();function BY(){return C.useContext(tL)||PY}function UY(){return C.useContext(nL)||Kb}var rL=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Kb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Bp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Kb),this.name+t.hash},e}(),$Y=/([A-Z])/,zY=/([A-Z])/g,HY=/^ms-/,jY=function(e){return"-"+e.toLowerCase()};function OC(e){return $Y.test(e)?e.replace(zY,jY).replace(HY,"-ms-"):e}var DC=function(e){return e==null||e===!1||e===""};function ic(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,WY=/(^-|-$)/g;function C3(e){return e.replace(VY,"-").replace(WY,"")}var aL=function(e){return qb(eL(e)>>>0)};function A0(e){return typeof e=="string"&&!0}var Yb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},qY=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function KY(e,t,n){var r=e[n];Yb(t)&&Yb(r)?oL(r,t):e[n]=t}function oL(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),R=w&&w+"-"+(A0(v)?v:C3(IC(v)));return lL(v,is({},A,{attrs:m,componentId:R}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(v){this._foldedDefaultProps=r?oL({},e.defaultProps,v):v}}),Object.defineProperty(b,"toString",{value:function(){return"."+b.styledComponentId}}),i&&mY(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Xb=function(e){return function t(n,r,i){if(i===void 0&&(i=ul),!p9.isValidElementType(r))return Bp(1,String(r));var a=function(){return n(r,i,iL.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,is({},i,{},o))},a.attrs=function(o){return t(n,r,is({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(lL,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Xb[e]=Xb(e)});function Gm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r25?39:97))};function qb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=NC(t%52)+n;return(NC(t%52)+n).replace(RY,"$1-$2")}var A1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eL=function(e){return A1(5381,e)};function NY(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=A1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var E=r(f,"."+T,void 0,i);n.insertRules(i,T,E)}a.push(T)}}return a.join(" ")},e}(),LY=/^\s*\/\/.*$/gm,MY=[":","[",".","#"];function FY(e){var t,n,r,i,a=e===void 0?ul:e,o=a.options,s=o===void 0?ul:o,u=a.plugins,c=u===void 0?Sg:u,p=new QK(s),f=[],m=function(y){function T(E){if(E)try{y(E+"}")}catch{}}return function(E,v,w,A,R,k,N,B,q,P){switch(E){case 1:if(q===0&&v.charCodeAt(0)===64)return y(v+";"),"";break;case 2:if(B===0)return v+"/*|*/";break;case 3:switch(B){case 102:case 112:return y(w[0]+v),"";default:return v+(P===0?"/*|*/":"")}case-2:v.split("/*|*/}").forEach(T)}}}(function(y){f.push(y)}),g=function(y,T,E){return T===0&&MY.indexOf(E[n.length])!==-1||E.match(i)?y:"."+t};function b(y,T,E,v){v===void 0&&(v="&");var w=y.replace(LY,""),A=T&&E?E+" "+T+" { "+w+" }":w;return t=v,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(E||!T?"":T,A)}return p.use([].concat(c,[function(y,T,E){y===2&&E.length&&E[0].lastIndexOf(n)>0&&(E[0]=E[0].replace(r,g))},m,function(y){if(y===-2){var T=f;return f=[],T}}])),b.hash=c.length?c.reduce(function(y,T){return T.name||Bp(15),A1(y,T.name)},5381).toString():"",b}var tL=st.createContext();tL.Consumer;var nL=st.createContext(),PY=(nL.Consumer,new JD),Kb=FY();function BY(){return C.useContext(tL)||PY}function UY(){return C.useContext(nL)||Kb}var rL=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Kb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Bp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Kb),this.name+t.hash},e}(),$Y=/([A-Z])/,zY=/([A-Z])/g,HY=/^ms-/,jY=function(e){return"-"+e.toLowerCase()};function OC(e){return $Y.test(e)?e.replace(zY,jY).replace(HY,"-ms-"):e}var DC=function(e){return e==null||e===!1||e===""};function ic(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,WY=/(^-|-$)/g;function C3(e){return e.replace(VY,"-").replace(WY,"")}var aL=function(e){return qb(eL(e)>>>0)};function A0(e){return typeof e=="string"&&!0}var Yb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},qY=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function KY(e,t,n){var r=e[n];Yb(t)&&Yb(r)?oL(r,t):e[n]=t}function oL(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),R=w&&w+"-"+(A0(v)?v:C3(IC(v)));return lL(v,is({},A,{attrs:m,componentId:R}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(v){this._foldedDefaultProps=r?oL({},e.defaultProps,v):v}}),Object.defineProperty(b,"toString",{value:function(){return"."+b.styledComponentId}}),i&&mY(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Xb=function(e){return function t(n,r,i){if(i===void 0&&(i=ul),!p9.isValidElementType(r))return Bp(1,String(r));var a=function(){return n(r,i,iL.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,is({},i,{},o))},a.attrs=function(o){return t(n,r,is({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(lL,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Xb[e]=Xb(e)});function Gm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r"u"||zC[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=AX),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),zC[n]=!0}const jC=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},kX="DEFAULT_TOOLTIP_ID",xX={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},IX=C.createContext({getTooltipData:()=>xX});function TL(e=kX){return C.useContext(IX).getTooltipData(e)}const RX=typeof window<"u"?C.useLayoutEffect:C.useEffect,NX=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},GC=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(NX(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},VC=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[sX(Number(i)),aX(),lX({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(iX({element:n,padding:5})),$C(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,b;const y={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:E}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},v=(b={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&b!==void 0?b:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const R=`${s}`.match(/(\d+)px/);A=R!=null&&R[1]?Number(R[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:E!=null?`${E}px`:"",right:"",bottom:"",...w,[v]:`-${4+A}px`},place:f}})):$C(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var OX="core-styles-module_tooltip__3vRRp",DX="core-styles-module_fixed__pcSol",LX="core-styles-module_arrow__cvMwQ",MX="core-styles-module_noArrow__xock6",FX="core-styles-module_clickable__ZuTTB",PX="core-styles-module_show__Nt9eE",x3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const BX=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:b=0,float:y=!1,hidden:T=!1,noArrow:E=!1,clickable:v=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:R=!1,style:k,position:N,afterShow:B,afterHide:q,content:P,contentWrapperRef:Q,isOpen:$,setIsOpen:oe,activeAnchor:fe,setActiveAnchor:ce,border:De,opacity:H})=>{const W=C.useRef(null),se=C.useRef(null),D=C.useRef(null),pe=C.useRef(null),[le,L]=C.useState(o),[ie,Se]=C.useState({}),[X,ke]=C.useState({}),[te,Me]=C.useState(!1),[Re,Ze]=C.useState(!1),We=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:je}=TL(e),pt=C.useRef(!1),[U,re]=C.useState([]),de=C.useRef(!1),xe=c||u.includes("click");RX(()=>(de.current=!0,()=>{de.current=!1}),[]),C.useEffect(()=>{if(!te){const ge=setTimeout(()=>{Ze(!1)},150);return()=>{clearTimeout(ge)}}return()=>null},[te]);const ye=ge=>{de.current&&(ge&&Ze(!0),setTimeout(()=>{de.current&&(oe==null||oe(ge),$===void 0&&Me(ge))},10))};C.useEffect(()=>{if($===void 0)return()=>null;$&&Ze(!0);const ge=setTimeout(()=>{Me($)},10);return()=>{clearTimeout(ge)}},[$]),C.useEffect(()=>{te!==We.current&&(We.current=te,te?B==null||B():q==null||q())},[te]);const Te=(ge=b)=>{pe.current&&clearTimeout(pe.current),pe.current=setTimeout(()=>{pt.current||ye(!1)},ge)},Le=ge=>{var G;if(!ge)return;const K=(G=ge.currentTarget)!==null&&G!==void 0?G:ge.target;if(!(K!=null&&K.isConnected))return ce(null),void je({current:null});g?(D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{ye(!0)},g)):ye(!0),ce(K),je({current:K}),pe.current&&clearTimeout(pe.current)},ze=()=>{v?Te(b||100):b?Te():ye(!1),D.current&&clearTimeout(D.current)},Ye=({x:ge,y:G})=>{VC({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:ge,y:G,width:0,height:0,top:G,left:ge,right:ge,bottom:G})},tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(K=>{Object.keys(K.tooltipStyles).length&&Se(K.tooltipStyles),Object.keys(K.tooltipArrowStyles).length&&ke(K.tooltipArrowStyles),L(K.place)})},jt=ge=>{if(!ge)return;const G=ge,K={x:G.clientX,y:G.clientY};Ye(K),dt.current=K},ue=ge=>{Le(ge),b&&Te()},Ee=ge=>{var G;[document.querySelector(`[id='${i}']`),...U].some(K=>K==null?void 0:K.contains(ge.target))||!((G=W.current)===null||G===void 0)&&G.contains(ge.target)||(ye(!1),D.current&&clearTimeout(D.current))},qe=jC(Le,50,!0),j=jC(ze,50,!0);C.useEffect(()=>{var ge,G;const K=new Set(ot);U.forEach(Qt=>{K.add({current:Qt})});const ne=document.querySelector(`[id='${i}']`);ne&&K.add({current:ne});const ve=()=>{ye(!1)},Qe=GC(fe),Fe=GC(W.current);A&&(window.addEventListener("scroll",ve),Qe==null||Qe.addEventListener("scroll",ve),Fe==null||Fe.addEventListener("scroll",ve)),R&&window.addEventListener("resize",ve);const at=Qt=>{Qt.key==="Escape"&&ye(!1)};w&&window.addEventListener("keydown",at);const rt=[];xe?(window.addEventListener("click",Ee),rt.push({event:"click",listener:ue})):(rt.push({event:"mouseenter",listener:qe},{event:"mouseleave",listener:j},{event:"focus",listener:qe},{event:"blur",listener:j}),y&&rt.push({event:"mousemove",listener:jt}));const Je=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return v&&!xe&&((ge=W.current)===null||ge===void 0||ge.addEventListener("mouseenter",Je),(G=W.current)===null||G===void 0||G.addEventListener("mouseleave",Rt)),rt.forEach(({event:Qt,listener:kt})=>{K.forEach(rn=>{var Xt;(Xt=rn.current)===null||Xt===void 0||Xt.addEventListener(Qt,kt)})}),()=>{var Qt,kt;A&&(window.removeEventListener("scroll",ve),Qe==null||Qe.removeEventListener("scroll",ve),Fe==null||Fe.removeEventListener("scroll",ve)),R&&window.removeEventListener("resize",ve),xe&&window.removeEventListener("click",Ee),w&&window.removeEventListener("keydown",at),v&&!xe&&((Qt=W.current)===null||Qt===void 0||Qt.removeEventListener("mouseenter",Je),(kt=W.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),rt.forEach(({event:rn,listener:Xt})=>{K.forEach(Wr=>{var qr;(qr=Wr.current)===null||qr===void 0||qr.removeEventListener(rn,Xt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let ge=a??"";!ge&&e&&(ge=`[data-tooltip-id='${e}']`);const G=new MutationObserver(K=>{const ne=[];K.forEach(ve=>{if(ve.type==="attributes"&&ve.attributeName==="data-tooltip-id"&&ve.target.getAttribute("data-tooltip-id")===e&&ne.push(ve.target),ve.type==="childList"&&(fe&&[...ve.removedNodes].some(Qe=>{var Fe;return!!(!((Fe=Qe==null?void 0:Qe.contains)===null||Fe===void 0)&&Fe.call(Qe,fe))&&(Ze(!1),ye(!1),ce(null),D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current),!0)}),ge))try{const Qe=[...ve.addedNodes].filter(Fe=>Fe.nodeType===1);ne.push(...Qe.filter(Fe=>Fe.matches(ge))),ne.push(...Qe.flatMap(Fe=>[...Fe.querySelectorAll(ge)]))}catch{}}),ne.length&&re(ve=>[...ve,...ne])});return G.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{G.disconnect()}},[e,a,fe]);const me=()=>{N?Ye(N):y?dt.current&&Ye(dt.current):VC({place:o,offset:s,elementReference:fe,tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(ge=>{de.current&&(Object.keys(ge.tooltipStyles).length&&Se(ge.tooltipStyles),Object.keys(ge.tooltipArrowStyles).length&&ke(ge.tooltipArrowStyles),L(ge.place))})};C.useEffect(()=>{me()},[te,fe,P,k,o,s,p,N]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const ge=new ResizeObserver(()=>{me()});return ge.observe(Q.current),()=>{ge.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var ge;const G=document.querySelector(`[id='${i}']`),K=[...U,G];fe&&K.includes(fe)||ce((ge=U[0])!==null&&ge!==void 0?ge:G)},[i,U,fe]),C.useEffect(()=>()=>{D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current)},[]),C.useEffect(()=>{let ge=a;if(!ge&&e&&(ge=`[data-tooltip-id='${e}']`),ge)try{const G=Array.from(document.querySelectorAll(ge));re(G)}catch{re([])}},[e,a]);const Ve=!T&&P&&te&&Object.keys(ie).length>0;return Re?st.createElement(m,{id:e,role:"tooltip",className:MC("react-tooltip",OX,x3.tooltip,x3[r],t,`react-tooltip__place-${le}`,{[PX]:Ve,[DX]:p==="fixed",[FX]:v}),style:{...k,...ie,opacity:H!==void 0&&Ve?H:void 0},ref:W},P,st.createElement(m,{className:MC("react-tooltip-arrow",LX,x3.arrow,n,{[MX]:E}),style:X,ref:se})):null},UX=({content:e})=>st.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),$X=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:b=!1,positionStrategy:y="absolute",middlewares:T,delayShow:E=0,delayHide:v=0,float:w=!1,hidden:A=!1,noArrow:R=!1,clickable:k=!1,closeOnEsc:N=!1,closeOnScroll:B=!1,closeOnResize:q=!1,style:P,position:Q,isOpen:$,disableStyleInjection:oe=!1,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W})=>{const[se,D]=C.useState(r),[pe,le]=C.useState(i),[L,ie]=C.useState(c),[Se,X]=C.useState(u),[ke,te]=C.useState(p),[Me,Re]=C.useState(E),[Ze,We]=C.useState(v),[dt,ot]=C.useState(w),[je,pt]=C.useState(A),[U,re]=C.useState(f),[de,xe]=C.useState(g),[ye,Te]=C.useState(y),[Le,ze]=C.useState(null),Ye=C.useRef(oe),{anchorRefs:jt,activeAnchor:ue}=TL(e),Ee=ge=>ge==null?void 0:ge.getAttributeNames().reduce((G,K)=>{var ne;return K.startsWith("data-tooltip-")&&(G[K.replace(/^data-tooltip-/,"")]=(ne=ge==null?void 0:ge.getAttribute(K))!==null&&ne!==void 0?ne:null),G},{}),qe=ge=>{const G={place:K=>{var ne;ie((ne=K)!==null&&ne!==void 0?ne:c)},content:K=>{D(K??r)},html:K=>{le(K??i)},variant:K=>{var ne;X((ne=K)!==null&&ne!==void 0?ne:u)},offset:K=>{te(K===null?p:Number(K))},wrapper:K=>{var ne;re((ne=K)!==null&&ne!==void 0?ne:f)},events:K=>{const ne=K==null?void 0:K.split(" ");xe(ne??g)},"position-strategy":K=>{var ne;Te((ne=K)!==null&&ne!==void 0?ne:y)},"delay-show":K=>{Re(K===null?E:Number(K))},"delay-hide":K=>{We(K===null?v:Number(K))},float:K=>{ot(K===null?w:K==="true")},hidden:K=>{pt(K===null?A:K==="true")}};Object.values(G).forEach(K=>K(null)),Object.entries(ge).forEach(([K,ne])=>{var ve;(ve=G[K])===null||ve===void 0||ve.call(G,ne)})};C.useEffect(()=>{D(r)},[r]),C.useEffect(()=>{le(i)},[i]),C.useEffect(()=>{ie(c)},[c]),C.useEffect(()=>{X(u)},[u]),C.useEffect(()=>{te(p)},[p]),C.useEffect(()=>{Re(E)},[E]),C.useEffect(()=>{We(v)},[v]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Te(y)},[y]),C.useEffect(()=>{Ye.current!==oe&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[oe]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:oe==="core",disableBase:oe}}))},[]),C.useEffect(()=>{var ge;const G=new Set(jt);let K=n;if(!K&&e&&(K=`[data-tooltip-id='${e}']`),K)try{document.querySelectorAll(K).forEach(at=>{G.add({current:at})})}catch{console.warn(`[react-tooltip] "${K}" is not a valid CSS selector`)}const ne=document.querySelector(`[id='${t}']`);if(ne&&G.add({current:ne}),!G.size)return()=>null;const ve=(ge=Le??ne)!==null&&ge!==void 0?ge:ue.current,Qe=new MutationObserver(at=>{at.forEach(rt=>{var Je;if(!ve||rt.type!=="attributes"||!(!((Je=rt.attributeName)===null||Je===void 0)&&Je.startsWith("data-tooltip-")))return;const Rt=Ee(ve);qe(Rt)})}),Fe={attributes:!0,childList:!1,subtree:!1};if(ve){const at=Ee(ve);qe(at),Qe.observe(ve,Fe)}return()=>{Qe.disconnect()}},[jt,ue,Le,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),fe&&!CSS.supports("border",`${fe}`)&&console.warn(`[react-tooltip] "${fe}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),ce&&!CSS.supports("opacity",`${ce}`)&&console.warn(`[react-tooltip] "${ce}" is not a valid \`opacity\`.`)},[]);let j=m;const me=C.useRef(null);if(a){const ge=a({content:se??null,activeAnchor:Le});j=ge?st.createElement("div",{ref:me,className:"react-tooltip-content-wrapper"},ge):null}else se&&(j=se);pe&&(j=st.createElement(UX,{content:pe}));const Ve={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:j,contentWrapperRef:me,place:L,variant:Se,offset:ke,wrapper:U,events:de,openOnClick:b,positionStrategy:ye,middlewares:T,delayShow:Me,delayHide:Ze,float:dt,hidden:je,noArrow:R,clickable:k,closeOnEsc:N,closeOnScroll:B,closeOnResize:q,style:P,position:Q,isOpen:$,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W,activeAnchor:Le,setActiveAnchor:ge=>ze(ge)};return st.createElement(BX,{...Ve})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||HC({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||HC({css:` +*/const AX="react-tooltip-core-styles",CX="react-tooltip-base-styles",zC={core:!1,base:!1};function HC({css:e,id:t=CX,type:n="base",ref:r}){var i,a;if(!e||typeof document>"u"||zC[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=AX),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),zC[n]=!0}const jC=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},kX="DEFAULT_TOOLTIP_ID",xX={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},IX=C.createContext({getTooltipData:()=>xX});function TL(e=kX){return C.useContext(IX).getTooltipData(e)}const RX=typeof window<"u"?C.useLayoutEffect:C.useEffect,NX=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},GC=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(NX(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},VC=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[sX(Number(i)),aX(),lX({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(iX({element:n,padding:5})),$C(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,b;const y={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:E}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},v=(b={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&b!==void 0?b:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const R=`${s}`.match(/(\d+)px/);A=R!=null&&R[1]?Number(R[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:E!=null?`${E}px`:"",right:"",bottom:"",...w,[v]:`-${4+A}px`},place:f}})):$C(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var OX="core-styles-module_tooltip__3vRRp",DX="core-styles-module_fixed__pcSol",LX="core-styles-module_arrow__cvMwQ",MX="core-styles-module_noArrow__xock6",FX="core-styles-module_clickable__ZuTTB",PX="core-styles-module_show__Nt9eE",x3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const BX=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:b=0,float:y=!1,hidden:T=!1,noArrow:E=!1,clickable:v=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:R=!1,style:k,position:N,afterShow:B,afterHide:q,content:P,contentWrapperRef:Q,isOpen:$,setIsOpen:oe,activeAnchor:fe,setActiveAnchor:ce,border:De,opacity:H})=>{const W=C.useRef(null),se=C.useRef(null),D=C.useRef(null),pe=C.useRef(null),[le,L]=C.useState(o),[ie,Se]=C.useState({}),[X,ke]=C.useState({}),[te,Me]=C.useState(!1),[Re,Ye]=C.useState(!1),We=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:je}=TL(e),pt=C.useRef(!1),[U,re]=C.useState([]),de=C.useRef(!1),xe=c||u.includes("click");RX(()=>(de.current=!0,()=>{de.current=!1}),[]),C.useEffect(()=>{if(!te){const ge=setTimeout(()=>{Ye(!1)},150);return()=>{clearTimeout(ge)}}return()=>null},[te]);const ye=ge=>{de.current&&(ge&&Ye(!0),setTimeout(()=>{de.current&&(oe==null||oe(ge),$===void 0&&Me(ge))},10))};C.useEffect(()=>{if($===void 0)return()=>null;$&&Ye(!0);const ge=setTimeout(()=>{Me($)},10);return()=>{clearTimeout(ge)}},[$]),C.useEffect(()=>{te!==We.current&&(We.current=te,te?B==null||B():q==null||q())},[te]);const Te=(ge=b)=>{pe.current&&clearTimeout(pe.current),pe.current=setTimeout(()=>{pt.current||ye(!1)},ge)},Le=ge=>{var G;if(!ge)return;const K=(G=ge.currentTarget)!==null&&G!==void 0?G:ge.target;if(!(K!=null&&K.isConnected))return ce(null),void je({current:null});g?(D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{ye(!0)},g)):ye(!0),ce(K),je({current:K}),pe.current&&clearTimeout(pe.current)},ze=()=>{v?Te(b||100):b?Te():ye(!1),D.current&&clearTimeout(D.current)},Xe=({x:ge,y:G})=>{VC({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:ge,y:G,width:0,height:0,top:G,left:ge,right:ge,bottom:G})},tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(K=>{Object.keys(K.tooltipStyles).length&&Se(K.tooltipStyles),Object.keys(K.tooltipArrowStyles).length&&ke(K.tooltipArrowStyles),L(K.place)})},jt=ge=>{if(!ge)return;const G=ge,K={x:G.clientX,y:G.clientY};Xe(K),dt.current=K},ue=ge=>{Le(ge),b&&Te()},Ee=ge=>{var G;[document.querySelector(`[id='${i}']`),...U].some(K=>K==null?void 0:K.contains(ge.target))||!((G=W.current)===null||G===void 0)&&G.contains(ge.target)||(ye(!1),D.current&&clearTimeout(D.current))},qe=jC(Le,50,!0),j=jC(ze,50,!0);C.useEffect(()=>{var ge,G;const K=new Set(ot);U.forEach(Qt=>{K.add({current:Qt})});const ne=document.querySelector(`[id='${i}']`);ne&&K.add({current:ne});const ve=()=>{ye(!1)},Qe=GC(fe),Fe=GC(W.current);A&&(window.addEventListener("scroll",ve),Qe==null||Qe.addEventListener("scroll",ve),Fe==null||Fe.addEventListener("scroll",ve)),R&&window.addEventListener("resize",ve);const at=Qt=>{Qt.key==="Escape"&&ye(!1)};w&&window.addEventListener("keydown",at);const rt=[];xe?(window.addEventListener("click",Ee),rt.push({event:"click",listener:ue})):(rt.push({event:"mouseenter",listener:qe},{event:"mouseleave",listener:j},{event:"focus",listener:qe},{event:"blur",listener:j}),y&&rt.push({event:"mousemove",listener:jt}));const Je=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return v&&!xe&&((ge=W.current)===null||ge===void 0||ge.addEventListener("mouseenter",Je),(G=W.current)===null||G===void 0||G.addEventListener("mouseleave",Rt)),rt.forEach(({event:Qt,listener:kt})=>{K.forEach(rn=>{var Xt;(Xt=rn.current)===null||Xt===void 0||Xt.addEventListener(Qt,kt)})}),()=>{var Qt,kt;A&&(window.removeEventListener("scroll",ve),Qe==null||Qe.removeEventListener("scroll",ve),Fe==null||Fe.removeEventListener("scroll",ve)),R&&window.removeEventListener("resize",ve),xe&&window.removeEventListener("click",Ee),w&&window.removeEventListener("keydown",at),v&&!xe&&((Qt=W.current)===null||Qt===void 0||Qt.removeEventListener("mouseenter",Je),(kt=W.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),rt.forEach(({event:rn,listener:Xt})=>{K.forEach(Wr=>{var qr;(qr=Wr.current)===null||qr===void 0||qr.removeEventListener(rn,Xt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let ge=a??"";!ge&&e&&(ge=`[data-tooltip-id='${e}']`);const G=new MutationObserver(K=>{const ne=[];K.forEach(ve=>{if(ve.type==="attributes"&&ve.attributeName==="data-tooltip-id"&&ve.target.getAttribute("data-tooltip-id")===e&&ne.push(ve.target),ve.type==="childList"&&(fe&&[...ve.removedNodes].some(Qe=>{var Fe;return!!(!((Fe=Qe==null?void 0:Qe.contains)===null||Fe===void 0)&&Fe.call(Qe,fe))&&(Ye(!1),ye(!1),ce(null),D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current),!0)}),ge))try{const Qe=[...ve.addedNodes].filter(Fe=>Fe.nodeType===1);ne.push(...Qe.filter(Fe=>Fe.matches(ge))),ne.push(...Qe.flatMap(Fe=>[...Fe.querySelectorAll(ge)]))}catch{}}),ne.length&&re(ve=>[...ve,...ne])});return G.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{G.disconnect()}},[e,a,fe]);const me=()=>{N?Xe(N):y?dt.current&&Xe(dt.current):VC({place:o,offset:s,elementReference:fe,tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(ge=>{de.current&&(Object.keys(ge.tooltipStyles).length&&Se(ge.tooltipStyles),Object.keys(ge.tooltipArrowStyles).length&&ke(ge.tooltipArrowStyles),L(ge.place))})};C.useEffect(()=>{me()},[te,fe,P,k,o,s,p,N]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const ge=new ResizeObserver(()=>{me()});return ge.observe(Q.current),()=>{ge.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var ge;const G=document.querySelector(`[id='${i}']`),K=[...U,G];fe&&K.includes(fe)||ce((ge=U[0])!==null&&ge!==void 0?ge:G)},[i,U,fe]),C.useEffect(()=>()=>{D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current)},[]),C.useEffect(()=>{let ge=a;if(!ge&&e&&(ge=`[data-tooltip-id='${e}']`),ge)try{const G=Array.from(document.querySelectorAll(ge));re(G)}catch{re([])}},[e,a]);const Ve=!T&&P&&te&&Object.keys(ie).length>0;return Re?st.createElement(m,{id:e,role:"tooltip",className:MC("react-tooltip",OX,x3.tooltip,x3[r],t,`react-tooltip__place-${le}`,{[PX]:Ve,[DX]:p==="fixed",[FX]:v}),style:{...k,...ie,opacity:H!==void 0&&Ve?H:void 0},ref:W},P,st.createElement(m,{className:MC("react-tooltip-arrow",LX,x3.arrow,n,{[MX]:E}),style:X,ref:se})):null},UX=({content:e})=>st.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),$X=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:b=!1,positionStrategy:y="absolute",middlewares:T,delayShow:E=0,delayHide:v=0,float:w=!1,hidden:A=!1,noArrow:R=!1,clickable:k=!1,closeOnEsc:N=!1,closeOnScroll:B=!1,closeOnResize:q=!1,style:P,position:Q,isOpen:$,disableStyleInjection:oe=!1,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W})=>{const[se,D]=C.useState(r),[pe,le]=C.useState(i),[L,ie]=C.useState(c),[Se,X]=C.useState(u),[ke,te]=C.useState(p),[Me,Re]=C.useState(E),[Ye,We]=C.useState(v),[dt,ot]=C.useState(w),[je,pt]=C.useState(A),[U,re]=C.useState(f),[de,xe]=C.useState(g),[ye,Te]=C.useState(y),[Le,ze]=C.useState(null),Xe=C.useRef(oe),{anchorRefs:jt,activeAnchor:ue}=TL(e),Ee=ge=>ge==null?void 0:ge.getAttributeNames().reduce((G,K)=>{var ne;return K.startsWith("data-tooltip-")&&(G[K.replace(/^data-tooltip-/,"")]=(ne=ge==null?void 0:ge.getAttribute(K))!==null&&ne!==void 0?ne:null),G},{}),qe=ge=>{const G={place:K=>{var ne;ie((ne=K)!==null&&ne!==void 0?ne:c)},content:K=>{D(K??r)},html:K=>{le(K??i)},variant:K=>{var ne;X((ne=K)!==null&&ne!==void 0?ne:u)},offset:K=>{te(K===null?p:Number(K))},wrapper:K=>{var ne;re((ne=K)!==null&&ne!==void 0?ne:f)},events:K=>{const ne=K==null?void 0:K.split(" ");xe(ne??g)},"position-strategy":K=>{var ne;Te((ne=K)!==null&&ne!==void 0?ne:y)},"delay-show":K=>{Re(K===null?E:Number(K))},"delay-hide":K=>{We(K===null?v:Number(K))},float:K=>{ot(K===null?w:K==="true")},hidden:K=>{pt(K===null?A:K==="true")}};Object.values(G).forEach(K=>K(null)),Object.entries(ge).forEach(([K,ne])=>{var ve;(ve=G[K])===null||ve===void 0||ve.call(G,ne)})};C.useEffect(()=>{D(r)},[r]),C.useEffect(()=>{le(i)},[i]),C.useEffect(()=>{ie(c)},[c]),C.useEffect(()=>{X(u)},[u]),C.useEffect(()=>{te(p)},[p]),C.useEffect(()=>{Re(E)},[E]),C.useEffect(()=>{We(v)},[v]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Te(y)},[y]),C.useEffect(()=>{Xe.current!==oe&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[oe]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:oe==="core",disableBase:oe}}))},[]),C.useEffect(()=>{var ge;const G=new Set(jt);let K=n;if(!K&&e&&(K=`[data-tooltip-id='${e}']`),K)try{document.querySelectorAll(K).forEach(at=>{G.add({current:at})})}catch{console.warn(`[react-tooltip] "${K}" is not a valid CSS selector`)}const ne=document.querySelector(`[id='${t}']`);if(ne&&G.add({current:ne}),!G.size)return()=>null;const ve=(ge=Le??ne)!==null&&ge!==void 0?ge:ue.current,Qe=new MutationObserver(at=>{at.forEach(rt=>{var Je;if(!ve||rt.type!=="attributes"||!(!((Je=rt.attributeName)===null||Je===void 0)&&Je.startsWith("data-tooltip-")))return;const Rt=Ee(ve);qe(Rt)})}),Fe={attributes:!0,childList:!1,subtree:!1};if(ve){const at=Ee(ve);qe(at),Qe.observe(ve,Fe)}return()=>{Qe.disconnect()}},[jt,ue,Le,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),fe&&!CSS.supports("border",`${fe}`)&&console.warn(`[react-tooltip] "${fe}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),ce&&!CSS.supports("opacity",`${ce}`)&&console.warn(`[react-tooltip] "${ce}" is not a valid \`opacity\`.`)},[]);let j=m;const me=C.useRef(null);if(a){const ge=a({content:se??null,activeAnchor:Le});j=ge?st.createElement("div",{ref:me,className:"react-tooltip-content-wrapper"},ge):null}else se&&(j=se);pe&&(j=st.createElement(UX,{content:pe}));const Ve={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:j,contentWrapperRef:me,place:L,variant:Se,offset:ke,wrapper:U,events:de,openOnClick:b,positionStrategy:ye,middlewares:T,delayShow:Me,delayHide:Ye,float:dt,hidden:je,noArrow:R,clickable:k,closeOnEsc:N,closeOnScroll:B,closeOnResize:q,style:P,position:Q,isOpen:$,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W,activeAnchor:Le,setActiveAnchor:ge=>ze(ge)};return st.createElement(BX,{...Ve})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||HC({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||HC({css:` .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px;transform:rotate(45deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function Km(){const e=window.navigator.platform.toUpperCase();return e.indexOf("MAC")>=0?"mac":e.indexOf("LINUX")>=0?"linux":e.indexOf("WIN")>=0?"windows":"unknown"}function xg(e){switch(Km()){case"mac":return e.metaKey;case"linux":case"windows":return e.ctrlKey;default:return e.metaKey}}function zX(){switch(Km()){case"mac":return"⌘";case"linux":case"windows":return"^";default:return"⌘"}}function pr(){const e=localStorage.getItem("fontSize");return e?parseInt(e):14}function WC(e){switch(e.split(".").pop()){case"py":return"python";case"js":return"javascript";case"ts":return"typescript";case"java":return"java";case"go":return"go";case"rb":return"ruby";case"rs":return"rust";case"c":return"c";case"cpp":return"cpp";case"cs":return"csharp";case"php":return"php";case"scala":return"scala";case"swift":return"swift";case"kt":return"kotlin";case"md":return"markdown";case"json":return"json";case"html":return"html";case"css":return"css";case"sh":return"shell";case"yaml":return"yaml";case"toml":return"toml";case"tex":return"latex";case"sql":return"sql";default:return""}}const It="5px",Et="#646464",ha="#1bbe84",Vt="var(--vscode-list-hoverBackground, rgb(45 45 45))",Ht="var(--vscode-editor-background, rgb(30 30 30))",Yt="var(--vscode-editor-foreground, #fff)";if(typeof document<"u"){const e=localStorage.getItem("--vscode-editor-foreground"),t=localStorage.getItem("--vscode-editor-background"),n=localStorage.getItem("--vscode-list-hoverBackground");e&&document.body.style.setProperty("--vscode-editor-foreground",e),t&&document.body.style.setProperty("--vscode-editor-background",t),n&&document.body.style.setProperty("--vscode-list-hoverBackground",n)}const oc=Ge.button` padding: 10px 12px; margin: 8px 0; @@ -240,9 +240,9 @@ Error generating stack: `+a.message+` * * @author Feross Aboukhadijeh * @license MIT - */var oQ=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const xL=Vi(oQ);function Bd(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?YC(e.position):"start"in e||"end"in e?YC(e):"line"in e||"column"in e?Jb(e):""}function Jb(e){return XC(e&&e.line)+":"+XC(e&&e.column)}function YC(e){return Jb(e&&e.start)+"-"+Jb(e&&e.end)}function XC(e){return e&&typeof e=="number"?e:1}class Ta extends Error{constructor(t,n,r){const i=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}n&&("type"in n||"position"in n?n.position&&(a=n.position):"start"in n||"end"in n?a=n:("line"in n||"column"in n)&&(a.start=n)),this.name=Bd(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}Ta.prototype.file="";Ta.prototype.name="";Ta.prototype.reason="";Ta.prototype.message="";Ta.prototype.stack="";Ta.prototype.fatal=null;Ta.prototype.column=null;Ta.prototype.line=null;Ta.prototype.source=null;Ta.prototype.ruleId=null;Ta.prototype.position=null;const po={basename:sQ,dirname:lQ,extname:uQ,join:cQ,sep:"/"};function sQ(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Hp(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function lQ(e){if(Hp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function uQ(e){Hp(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function cQ(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function pQ(e,t){let n="",r=0,i=-1,a=0,o=-1,s,u;for(;++o<=e.length;){if(o2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Hp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const fQ={cwd:hQ};function hQ(){return"/"}function ey(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function gQ(e){if(typeof e=="string")e=new URL(e);else if(!ey(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mQ(e)}function mQ(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||kh.call(t,i)},rk=function(t,n){JC&&n.name==="__proto__"?JC(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ik=function(t,n){if(n==="__proto__")if(kh.call(t,n)){if(ek)return ek(t,n).value}else return;return t[n]},yQ=function e(){var t,n,r,i,a,o,s=arguments[0],u=1,c=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});uo.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(c){const p=c;if(s&&n)throw p;return i(p)}s||(u instanceof Promise?u.then(a,i):u instanceof Error?i(u):a(u))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const _Q=OL().freeze(),NL={}.hasOwnProperty;function OL(){const e=EQ(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=u,a.parse=c,a.stringify=p,a.run=f,a.runSync=m,a.process=g,a.processSync=b,a;function a(){const y=OL();let T=-1;for(;++T{if(k||!N||!B)R(k);else{const q=a.stringify(N,B);q==null||(wQ(q)?B.value=q:B.result=q),R(k,B)}});function R(k,N){k||!N?w(k):v?v(N):T(null,N)}}}function b(y){let T;a.freeze(),D3("processSync",a.Parser),L3("processSync",a.Compiler);const E=ed(y);return a.process(E,v),sk("processSync","process",T),E;function v(w){T=!0,QC(w)}}}function ak(e,t){return typeof e=="function"&&e.prototype&&(TQ(e.prototype)||t in e.prototype)}function TQ(e){let t;for(t in e)if(NL.call(e,t))return!0;return!1}function D3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function L3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function M3(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ok(e){if(!ty(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sk(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ed(e){return SQ(e)?e:new IL(e)}function SQ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wQ(e){return typeof e=="string"||xL(e)}const AQ={};function CQ(e,t){const n=t||AQ,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return DL(e,r,i)}function DL(e,t,n){if(kQ(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lk(e.children,t,n)}return Array.isArray(e)?lk(e,t,n):""}function lk(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Bi(e,e.length,0,t),e):t}const uk={}.hasOwnProperty;function LL(e){const t={};let n=-1;for(;++no))return;const N=t.events.length;let B=N,q,P;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(q){P=t.events[B][1].end;break}q=!0}for(E(r),k=N;kw;){const R=n[A];t.containerState=R[1],R[0].exit.call(t,e)}n.length=w}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function BQ(e,t,n){return Gt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ng(e){if(e===null||gn(e)||_u(e))return 1;if(Ym(e))return 2}function Xm(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);dk(f,-u),dk(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ca(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ca(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=ca(c,Xm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ca(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=ca(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Bi(e,r-1,n-r+3,c),n=r+c.length-p-2;break}}for(n=-1;++n0&&Dt(k)?Gt(e,v,"linePrefix",a+1)(k):v(k)}function v(k){return k===null||gt(k)?e.check(fk,y,A)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||gt(k)?(e.exit("codeFlowValue"),v(k)):(e.consume(k),w)}function A(k){return e.exit("codeFenced"),t(k)}function R(k,N,B){let q=0;return P;function P(ce){return k.enter("lineEnding"),k.consume(ce),k.exit("lineEnding"),Q}function Q(ce){return k.enter("codeFencedFence"),Dt(ce)?Gt(k,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ce):$(ce)}function $(ce){return ce===s?(k.enter("codeFencedFenceSequence"),oe(ce)):B(ce)}function oe(ce){return ce===s?(q++,k.consume(ce),oe):q>=o?(k.exit("codeFencedFenceSequence"),Dt(ce)?Gt(k,fe,"whitespace")(ce):fe(ce)):B(ce)}function fe(ce){return ce===null||gt(ce)?(k.exit("codeFencedFence"),N(ce)):B(ce)}}}function XQ(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const F3={name:"codeIndented",tokenize:QQ},ZQ={tokenize:JQ,partial:!0};function QQ(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Gt(e,a,"linePrefix",4+1)(c)}function a(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):gt(c)?e.attempt(ZQ,o,u)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||gt(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function u(c){return e.exit("codeIndented"),t(c)}}function JQ(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Gt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):gt(o)?i(o):n(o)}}const eJ={name:"codeText",tokenize:rJ,resolve:tJ,previous:nJ};function tJ(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function UL(e,t,n,r,i,a,o,s,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return f;function f(E){return E===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(E),e.exit(a),m):E===null||E===32||E===41||Rg(E)?n(E):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(E))}function m(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===62?(e.exit("chunkString"),e.exit(s),m(E)):E===null||E===60||gt(E)?n(E):(e.consume(E),E===92?b:g)}function b(E){return E===60||E===62||E===92?(e.consume(E),g):g(E)}function y(E){return!p&&(E===null||E===41||gn(E))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(E)):p999||g===null||g===91||g===93&&!u||g===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):gt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||gt(g)||s++>999?(e.exit("chunkString"),p(g)):(e.consume(g),u||(u=!Dt(g)),g===92?m:f)}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,f):f(g)}}function zL(e,t,n,r,i,a){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,u):n(m)}function u(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),c(m))}function c(m){return m===o?(e.exit(a),u(o)):m===null?n(m):gt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Gt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===o||m===null||gt(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:p)}function f(m){return m===o||m===92?(e.consume(m),p):p(m)}}function Ud(e,t){let n;return r;function r(i){return gt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Dt(i)?Gt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Wa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const cJ={name:"definition",tokenize:pJ},dJ={tokenize:fJ,partial:!0};function pJ(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return $L.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return i=Wa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return gn(g)?Ud(e,c)(g):c(g)}function c(g){return UL(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(dJ,f,f)(g)}function f(g){return Dt(g)?Gt(e,m,"whitespace")(g):m(g)}function m(g){return g===null||gt(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function fJ(e,t,n){return r;function r(s){return gn(s)?Ud(e,i)(s):n(s)}function i(s){return zL(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Dt(s)?Gt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||gt(s)?t(s):n(s)}}const hJ={name:"hardBreakEscape",tokenize:gJ};function gJ(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return gt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const mJ={name:"headingAtx",tokenize:yJ,resolve:bJ};function bJ(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Bi(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function yJ(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||gn(p)?(e.exit("atxHeadingSequence"),s(p)):n(p)}function s(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||gt(p)?(e.exit("atxHeading"),t(p)):Dt(p)?Gt(e,s,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),s(p))}function c(p){return p===null||p===35||gn(p)?(e.exit("atxHeadingText"),s(p)):(e.consume(p),c)}}const EJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gk=["pre","script","style","textarea"],vJ={name:"htmlFlow",tokenize:wJ,resolveTo:SJ,concrete:!0},_J={tokenize:CJ,partial:!0},TJ={tokenize:AJ,partial:!0};function SJ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function wJ(e,t,n){const r=this;let i,a,o,s,u;return c;function c(L){return p(L)}function p(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),f}function f(L){return L===33?(e.consume(L),m):L===47?(e.consume(L),a=!0,y):L===63?(e.consume(L),i=3,r.interrupt?t:D):ti(L)?(e.consume(L),o=String.fromCharCode(L),T):n(L)}function m(L){return L===45?(e.consume(L),i=2,g):L===91?(e.consume(L),i=5,s=0,b):ti(L)?(e.consume(L),i=4,r.interrupt?t:D):n(L)}function g(L){return L===45?(e.consume(L),r.interrupt?t:D):n(L)}function b(L){const ie="CDATA[";return L===ie.charCodeAt(s++)?(e.consume(L),s===ie.length?r.interrupt?t:$:b):n(L)}function y(L){return ti(L)?(e.consume(L),o=String.fromCharCode(L),T):n(L)}function T(L){if(L===null||L===47||L===62||gn(L)){const ie=L===47,Se=o.toLowerCase();return!ie&&!a&&gk.includes(Se)?(i=1,r.interrupt?t(L):$(L)):EJ.includes(o.toLowerCase())?(i=6,ie?(e.consume(L),E):r.interrupt?t(L):$(L)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):a?v(L):w(L))}return L===45||jr(L)?(e.consume(L),o+=String.fromCharCode(L),T):n(L)}function E(L){return L===62?(e.consume(L),r.interrupt?t:$):n(L)}function v(L){return Dt(L)?(e.consume(L),v):P(L)}function w(L){return L===47?(e.consume(L),P):L===58||L===95||ti(L)?(e.consume(L),A):Dt(L)?(e.consume(L),w):P(L)}function A(L){return L===45||L===46||L===58||L===95||jr(L)?(e.consume(L),A):R(L)}function R(L){return L===61?(e.consume(L),k):Dt(L)?(e.consume(L),R):w(L)}function k(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),u=L,N):Dt(L)?(e.consume(L),k):B(L)}function N(L){return L===u?(e.consume(L),u=null,q):L===null||gt(L)?n(L):(e.consume(L),N)}function B(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||gn(L)?R(L):(e.consume(L),B)}function q(L){return L===47||L===62||Dt(L)?w(L):n(L)}function P(L){return L===62?(e.consume(L),Q):n(L)}function Q(L){return L===null||gt(L)?$(L):Dt(L)?(e.consume(L),Q):n(L)}function $(L){return L===45&&i===2?(e.consume(L),De):L===60&&i===1?(e.consume(L),H):L===62&&i===4?(e.consume(L),pe):L===63&&i===3?(e.consume(L),D):L===93&&i===5?(e.consume(L),se):gt(L)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(_J,le,oe)(L)):L===null||gt(L)?(e.exit("htmlFlowData"),oe(L)):(e.consume(L),$)}function oe(L){return e.check(TJ,fe,le)(L)}function fe(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ce}function ce(L){return L===null||gt(L)?oe(L):(e.enter("htmlFlowData"),$(L))}function De(L){return L===45?(e.consume(L),D):$(L)}function H(L){return L===47?(e.consume(L),o="",W):$(L)}function W(L){if(L===62){const ie=o.toLowerCase();return gk.includes(ie)?(e.consume(L),pe):$(L)}return ti(L)&&o.length<8?(e.consume(L),o+=String.fromCharCode(L),W):$(L)}function se(L){return L===93?(e.consume(L),D):$(L)}function D(L){return L===62?(e.consume(L),pe):L===45&&i===2?(e.consume(L),D):$(L)}function pe(L){return L===null||gt(L)?(e.exit("htmlFlowData"),le(L)):(e.consume(L),pe)}function le(L){return e.exit("htmlFlow"),t(L)}}function AJ(e,t,n){const r=this;return i;function i(o){return gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function CJ(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(jp,t,n)}}const kJ={name:"htmlText",tokenize:xJ};function xJ(e,t,n){const r=this;let i,a,o;return s;function s(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),u}function u(D){return D===33?(e.consume(D),c):D===47?(e.consume(D),R):D===63?(e.consume(D),w):ti(D)?(e.consume(D),B):n(D)}function c(D){return D===45?(e.consume(D),p):D===91?(e.consume(D),a=0,b):ti(D)?(e.consume(D),v):n(D)}function p(D){return D===45?(e.consume(D),g):n(D)}function f(D){return D===null?n(D):D===45?(e.consume(D),m):gt(D)?(o=f,H(D)):(e.consume(D),f)}function m(D){return D===45?(e.consume(D),g):f(D)}function g(D){return D===62?De(D):D===45?m(D):f(D)}function b(D){const pe="CDATA[";return D===pe.charCodeAt(a++)?(e.consume(D),a===pe.length?y:b):n(D)}function y(D){return D===null?n(D):D===93?(e.consume(D),T):gt(D)?(o=y,H(D)):(e.consume(D),y)}function T(D){return D===93?(e.consume(D),E):y(D)}function E(D){return D===62?De(D):D===93?(e.consume(D),E):y(D)}function v(D){return D===null||D===62?De(D):gt(D)?(o=v,H(D)):(e.consume(D),v)}function w(D){return D===null?n(D):D===63?(e.consume(D),A):gt(D)?(o=w,H(D)):(e.consume(D),w)}function A(D){return D===62?De(D):w(D)}function R(D){return ti(D)?(e.consume(D),k):n(D)}function k(D){return D===45||jr(D)?(e.consume(D),k):N(D)}function N(D){return gt(D)?(o=N,H(D)):Dt(D)?(e.consume(D),N):De(D)}function B(D){return D===45||jr(D)?(e.consume(D),B):D===47||D===62||gn(D)?q(D):n(D)}function q(D){return D===47?(e.consume(D),De):D===58||D===95||ti(D)?(e.consume(D),P):gt(D)?(o=q,H(D)):Dt(D)?(e.consume(D),q):De(D)}function P(D){return D===45||D===46||D===58||D===95||jr(D)?(e.consume(D),P):Q(D)}function Q(D){return D===61?(e.consume(D),$):gt(D)?(o=Q,H(D)):Dt(D)?(e.consume(D),Q):q(D)}function $(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),i=D,oe):gt(D)?(o=$,H(D)):Dt(D)?(e.consume(D),$):(e.consume(D),fe)}function oe(D){return D===i?(e.consume(D),i=void 0,ce):D===null?n(D):gt(D)?(o=oe,H(D)):(e.consume(D),oe)}function fe(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||gn(D)?q(D):(e.consume(D),fe)}function ce(D){return D===47||D===62||gn(D)?q(D):n(D)}function De(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function H(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),W}function W(D){return Dt(D)?Gt(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):se(D)}function se(D){return e.enter("htmlTextData"),o(D)}}const A9={name:"labelEnd",tokenize:LJ,resolveTo:DJ,resolveAll:OJ},IJ={tokenize:MJ},RJ={tokenize:FJ},NJ={tokenize:PJ};function OJ(e){let t=-1;for(;++t=3&&(c===null||gt(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),Dt(c)?Gt(e,s,"whitespace")(c):s(c))}}const pi={name:"list",tokenize:WJ,continuation:{tokenize:qJ},exit:YJ},GJ={tokenize:XJ,partial:!0},VJ={tokenize:KJ,partial:!0};function WJ(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:ny(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(xh,n,c)(g):c(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return ny(g)&&++o<10?(e.consume(g),u):(!r.interrupt||o<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(jp,r.interrupt?n:p,e.attempt(GJ,m,f))}function p(g){return r.containerState.initialBlankLine=!0,a++,m(g)}function f(g){return Dt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function qJ(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(jp,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Gt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Dt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(VJ,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Gt(e,e.attempt(pi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function KJ(e,t,n){const r=this;return Gt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function YJ(e){e.exit(this.containerState.type)}function XJ(e,t,n){const r=this;return Gt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!Dt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const mk={name:"setextUnderline",tokenize:QJ,resolveTo:ZJ};function ZJ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function QJ(e,t,n){const r=this;let i;return a;function a(c){let p=r.events.length,f;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){f=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Dt(c)?Gt(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||gt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const JJ={tokenize:eee};function eee(e){const t=this,n=e.attempt(jp,r,e.attempt(this.parser.constructs.flowInitial,i,Gt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aJ,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tee={resolveAll:jL()},nee=HL("string"),ree=HL("text");function HL(e){return{tokenize:t,resolveAll:jL(e==="text"?iee:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(p){return c(p)?a(p):s(p)}function s(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return c(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function c(p){if(p===null)return!0;const f=i[p];let m=-1;if(f)for(;++m-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function see(e,t){let n=-1;const r=[];let i;for(;++ne.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function lQ(e){if(Hp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function uQ(e){Hp(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function cQ(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function pQ(e,t){let n="",r=0,i=-1,a=0,o=-1,s,u;for(;++o<=e.length;){if(o2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Hp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const fQ={cwd:hQ};function hQ(){return"/"}function ey(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function gQ(e){if(typeof e=="string")e=new URL(e);else if(!ey(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mQ(e)}function mQ(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||kh.call(t,i)},rk=function(t,n){JC&&n.name==="__proto__"?JC(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ik=function(t,n){if(n==="__proto__")if(kh.call(t,n)){if(ek)return ek(t,n).value}else return;return t[n]},yQ=function e(){var t,n,r,i,a,o,s=arguments[0],u=1,c=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});uo.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(c){const p=c;if(s&&n)throw p;return i(p)}s||(u instanceof Promise?u.then(a,i):u instanceof Error?i(u):a(u))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const _Q=OL().freeze(),NL={}.hasOwnProperty;function OL(){const e=EQ(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=u,a.parse=c,a.stringify=p,a.run=f,a.runSync=m,a.process=g,a.processSync=b,a;function a(){const y=OL();let T=-1;for(;++T{if(k||!N||!B)R(k);else{const q=a.stringify(N,B);q==null||(wQ(q)?B.value=q:B.result=q),R(k,B)}});function R(k,N){k||!N?w(k):v?v(N):T(null,N)}}}function b(y){let T;a.freeze(),D3("processSync",a.Parser),L3("processSync",a.Compiler);const E=ed(y);return a.process(E,v),sk("processSync","process",T),E;function v(w){T=!0,QC(w)}}}function ak(e,t){return typeof e=="function"&&e.prototype&&(TQ(e.prototype)||t in e.prototype)}function TQ(e){let t;for(t in e)if(NL.call(e,t))return!0;return!1}function D3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function L3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function M3(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ok(e){if(!ty(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sk(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ed(e){return SQ(e)?e:new IL(e)}function SQ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wQ(e){return typeof e=="string"||xL(e)}const AQ={};function CQ(e,t){const n=t||AQ,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return DL(e,r,i)}function DL(e,t,n){if(kQ(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lk(e.children,t,n)}return Array.isArray(e)?lk(e,t,n):""}function lk(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Bi(e,e.length,0,t),e):t}const uk={}.hasOwnProperty;function LL(e){const t={};let n=-1;for(;++no))return;const N=t.events.length;let B=N,q,P;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(q){P=t.events[B][1].end;break}q=!0}for(E(r),k=N;kw;){const R=n[A];t.containerState=R[1],R[0].exit.call(t,e)}n.length=w}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function BQ(e,t,n){return Gt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ng(e){if(e===null||gn(e)||_u(e))return 1;if(Ym(e))return 2}function Xm(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);dk(f,-u),dk(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ca(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ca(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=ca(c,Xm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ca(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=ca(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Bi(e,r-1,n-r+3,c),n=r+c.length-p-2;break}}for(n=-1;++n0&&Dt(k)?Gt(e,v,"linePrefix",a+1)(k):v(k)}function v(k){return k===null||gt(k)?e.check(fk,y,A)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||gt(k)?(e.exit("codeFlowValue"),v(k)):(e.consume(k),w)}function A(k){return e.exit("codeFenced"),t(k)}function R(k,N,B){let q=0;return P;function P(ce){return k.enter("lineEnding"),k.consume(ce),k.exit("lineEnding"),Q}function Q(ce){return k.enter("codeFencedFence"),Dt(ce)?Gt(k,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ce):$(ce)}function $(ce){return ce===s?(k.enter("codeFencedFenceSequence"),oe(ce)):B(ce)}function oe(ce){return ce===s?(q++,k.consume(ce),oe):q>=o?(k.exit("codeFencedFenceSequence"),Dt(ce)?Gt(k,fe,"whitespace")(ce):fe(ce)):B(ce)}function fe(ce){return ce===null||gt(ce)?(k.exit("codeFencedFence"),N(ce)):B(ce)}}}function XQ(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const F3={name:"codeIndented",tokenize:QQ},ZQ={tokenize:JQ,partial:!0};function QQ(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Gt(e,a,"linePrefix",4+1)(c)}function a(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):gt(c)?e.attempt(ZQ,o,u)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||gt(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function u(c){return e.exit("codeIndented"),t(c)}}function JQ(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Gt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):gt(o)?i(o):n(o)}}const eJ={name:"codeText",tokenize:rJ,resolve:tJ,previous:nJ};function tJ(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function UL(e,t,n,r,i,a,o,s,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return f;function f(E){return E===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(E),e.exit(a),m):E===null||E===32||E===41||Rg(E)?n(E):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(E))}function m(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===62?(e.exit("chunkString"),e.exit(s),m(E)):E===null||E===60||gt(E)?n(E):(e.consume(E),E===92?b:g)}function b(E){return E===60||E===62||E===92?(e.consume(E),g):g(E)}function y(E){return!p&&(E===null||E===41||gn(E))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(E)):p999||g===null||g===91||g===93&&!u||g===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):gt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||gt(g)||s++>999?(e.exit("chunkString"),p(g)):(e.consume(g),u||(u=!Dt(g)),g===92?m:f)}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,f):f(g)}}function zL(e,t,n,r,i,a){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,u):n(m)}function u(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),c(m))}function c(m){return m===o?(e.exit(a),u(o)):m===null?n(m):gt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Gt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===o||m===null||gt(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:p)}function f(m){return m===o||m===92?(e.consume(m),p):p(m)}}function Ud(e,t){let n;return r;function r(i){return gt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Dt(i)?Gt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Wa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const cJ={name:"definition",tokenize:pJ},dJ={tokenize:fJ,partial:!0};function pJ(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return $L.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return i=Wa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return gn(g)?Ud(e,c)(g):c(g)}function c(g){return UL(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(dJ,f,f)(g)}function f(g){return Dt(g)?Gt(e,m,"whitespace")(g):m(g)}function m(g){return g===null||gt(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function fJ(e,t,n){return r;function r(s){return gn(s)?Ud(e,i)(s):n(s)}function i(s){return zL(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Dt(s)?Gt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||gt(s)?t(s):n(s)}}const hJ={name:"hardBreakEscape",tokenize:gJ};function gJ(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return gt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const mJ={name:"headingAtx",tokenize:yJ,resolve:bJ};function bJ(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Bi(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function yJ(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||gn(p)?(e.exit("atxHeadingSequence"),s(p)):n(p)}function s(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||gt(p)?(e.exit("atxHeading"),t(p)):Dt(p)?Gt(e,s,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),s(p))}function c(p){return p===null||p===35||gn(p)?(e.exit("atxHeadingText"),s(p)):(e.consume(p),c)}}const EJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gk=["pre","script","style","textarea"],vJ={name:"htmlFlow",tokenize:wJ,resolveTo:SJ,concrete:!0},_J={tokenize:CJ,partial:!0},TJ={tokenize:AJ,partial:!0};function SJ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function wJ(e,t,n){const r=this;let i,a,o,s,u;return c;function c(L){return p(L)}function p(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),f}function f(L){return L===33?(e.consume(L),m):L===47?(e.consume(L),a=!0,y):L===63?(e.consume(L),i=3,r.interrupt?t:D):ti(L)?(e.consume(L),o=String.fromCharCode(L),T):n(L)}function m(L){return L===45?(e.consume(L),i=2,g):L===91?(e.consume(L),i=5,s=0,b):ti(L)?(e.consume(L),i=4,r.interrupt?t:D):n(L)}function g(L){return L===45?(e.consume(L),r.interrupt?t:D):n(L)}function b(L){const ie="CDATA[";return L===ie.charCodeAt(s++)?(e.consume(L),s===ie.length?r.interrupt?t:$:b):n(L)}function y(L){return ti(L)?(e.consume(L),o=String.fromCharCode(L),T):n(L)}function T(L){if(L===null||L===47||L===62||gn(L)){const ie=L===47,Se=o.toLowerCase();return!ie&&!a&&gk.includes(Se)?(i=1,r.interrupt?t(L):$(L)):EJ.includes(o.toLowerCase())?(i=6,ie?(e.consume(L),E):r.interrupt?t(L):$(L)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):a?v(L):w(L))}return L===45||jr(L)?(e.consume(L),o+=String.fromCharCode(L),T):n(L)}function E(L){return L===62?(e.consume(L),r.interrupt?t:$):n(L)}function v(L){return Dt(L)?(e.consume(L),v):P(L)}function w(L){return L===47?(e.consume(L),P):L===58||L===95||ti(L)?(e.consume(L),A):Dt(L)?(e.consume(L),w):P(L)}function A(L){return L===45||L===46||L===58||L===95||jr(L)?(e.consume(L),A):R(L)}function R(L){return L===61?(e.consume(L),k):Dt(L)?(e.consume(L),R):w(L)}function k(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),u=L,N):Dt(L)?(e.consume(L),k):B(L)}function N(L){return L===u?(e.consume(L),u=null,q):L===null||gt(L)?n(L):(e.consume(L),N)}function B(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||gn(L)?R(L):(e.consume(L),B)}function q(L){return L===47||L===62||Dt(L)?w(L):n(L)}function P(L){return L===62?(e.consume(L),Q):n(L)}function Q(L){return L===null||gt(L)?$(L):Dt(L)?(e.consume(L),Q):n(L)}function $(L){return L===45&&i===2?(e.consume(L),De):L===60&&i===1?(e.consume(L),H):L===62&&i===4?(e.consume(L),pe):L===63&&i===3?(e.consume(L),D):L===93&&i===5?(e.consume(L),se):gt(L)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(_J,le,oe)(L)):L===null||gt(L)?(e.exit("htmlFlowData"),oe(L)):(e.consume(L),$)}function oe(L){return e.check(TJ,fe,le)(L)}function fe(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ce}function ce(L){return L===null||gt(L)?oe(L):(e.enter("htmlFlowData"),$(L))}function De(L){return L===45?(e.consume(L),D):$(L)}function H(L){return L===47?(e.consume(L),o="",W):$(L)}function W(L){if(L===62){const ie=o.toLowerCase();return gk.includes(ie)?(e.consume(L),pe):$(L)}return ti(L)&&o.length<8?(e.consume(L),o+=String.fromCharCode(L),W):$(L)}function se(L){return L===93?(e.consume(L),D):$(L)}function D(L){return L===62?(e.consume(L),pe):L===45&&i===2?(e.consume(L),D):$(L)}function pe(L){return L===null||gt(L)?(e.exit("htmlFlowData"),le(L)):(e.consume(L),pe)}function le(L){return e.exit("htmlFlow"),t(L)}}function AJ(e,t,n){const r=this;return i;function i(o){return gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function CJ(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(jp,t,n)}}const kJ={name:"htmlText",tokenize:xJ};function xJ(e,t,n){const r=this;let i,a,o;return s;function s(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),u}function u(D){return D===33?(e.consume(D),c):D===47?(e.consume(D),R):D===63?(e.consume(D),w):ti(D)?(e.consume(D),B):n(D)}function c(D){return D===45?(e.consume(D),p):D===91?(e.consume(D),a=0,b):ti(D)?(e.consume(D),v):n(D)}function p(D){return D===45?(e.consume(D),g):n(D)}function f(D){return D===null?n(D):D===45?(e.consume(D),m):gt(D)?(o=f,H(D)):(e.consume(D),f)}function m(D){return D===45?(e.consume(D),g):f(D)}function g(D){return D===62?De(D):D===45?m(D):f(D)}function b(D){const pe="CDATA[";return D===pe.charCodeAt(a++)?(e.consume(D),a===pe.length?y:b):n(D)}function y(D){return D===null?n(D):D===93?(e.consume(D),T):gt(D)?(o=y,H(D)):(e.consume(D),y)}function T(D){return D===93?(e.consume(D),E):y(D)}function E(D){return D===62?De(D):D===93?(e.consume(D),E):y(D)}function v(D){return D===null||D===62?De(D):gt(D)?(o=v,H(D)):(e.consume(D),v)}function w(D){return D===null?n(D):D===63?(e.consume(D),A):gt(D)?(o=w,H(D)):(e.consume(D),w)}function A(D){return D===62?De(D):w(D)}function R(D){return ti(D)?(e.consume(D),k):n(D)}function k(D){return D===45||jr(D)?(e.consume(D),k):N(D)}function N(D){return gt(D)?(o=N,H(D)):Dt(D)?(e.consume(D),N):De(D)}function B(D){return D===45||jr(D)?(e.consume(D),B):D===47||D===62||gn(D)?q(D):n(D)}function q(D){return D===47?(e.consume(D),De):D===58||D===95||ti(D)?(e.consume(D),P):gt(D)?(o=q,H(D)):Dt(D)?(e.consume(D),q):De(D)}function P(D){return D===45||D===46||D===58||D===95||jr(D)?(e.consume(D),P):Q(D)}function Q(D){return D===61?(e.consume(D),$):gt(D)?(o=Q,H(D)):Dt(D)?(e.consume(D),Q):q(D)}function $(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),i=D,oe):gt(D)?(o=$,H(D)):Dt(D)?(e.consume(D),$):(e.consume(D),fe)}function oe(D){return D===i?(e.consume(D),i=void 0,ce):D===null?n(D):gt(D)?(o=oe,H(D)):(e.consume(D),oe)}function fe(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||gn(D)?q(D):(e.consume(D),fe)}function ce(D){return D===47||D===62||gn(D)?q(D):n(D)}function De(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function H(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),W}function W(D){return Dt(D)?Gt(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):se(D)}function se(D){return e.enter("htmlTextData"),o(D)}}const A9={name:"labelEnd",tokenize:LJ,resolveTo:DJ,resolveAll:OJ},IJ={tokenize:MJ},RJ={tokenize:FJ},NJ={tokenize:PJ};function OJ(e){let t=-1;for(;++t=3&&(c===null||gt(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),Dt(c)?Gt(e,s,"whitespace")(c):s(c))}}const pi={name:"list",tokenize:WJ,continuation:{tokenize:qJ},exit:YJ},GJ={tokenize:XJ,partial:!0},VJ={tokenize:KJ,partial:!0};function WJ(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:ny(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(xh,n,c)(g):c(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return ny(g)&&++o<10?(e.consume(g),u):(!r.interrupt||o<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(jp,r.interrupt?n:p,e.attempt(GJ,m,f))}function p(g){return r.containerState.initialBlankLine=!0,a++,m(g)}function f(g){return Dt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function qJ(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(jp,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Gt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Dt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(VJ,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Gt(e,e.attempt(pi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function KJ(e,t,n){const r=this;return Gt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function YJ(e){e.exit(this.containerState.type)}function XJ(e,t,n){const r=this;return Gt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!Dt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const mk={name:"setextUnderline",tokenize:QJ,resolveTo:ZJ};function ZJ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function QJ(e,t,n){const r=this;let i;return a;function a(c){let p=r.events.length,f;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){f=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Dt(c)?Gt(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||gt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const JJ={tokenize:eee};function eee(e){const t=this,n=e.attempt(jp,r,e.attempt(this.parser.constructs.flowInitial,i,Gt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aJ,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tee={resolveAll:jL()},nee=HL("string"),ree=HL("text");function HL(e){return{tokenize:t,resolveAll:jL(e==="text"?iee:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(p){return c(p)?a(p):s(p)}function s(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return c(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function c(p){if(p===null)return!0;const f=i[p];let m=-1;if(f)for(;++m-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function see(e,t){let n=-1;const r=[];let i;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const _ee=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function VL(e){return e.replace(_ee,Tee)}function Tee(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return GL(n.slice(a?2:1),a?16:10)}return Tp(n)||e}const WL={}.hasOwnProperty,See=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),wee(n)(vee(yee(n).document().write(Eee()(e,t,!0))))};function wee(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xe),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(pt),blockQuote:s(Ze),characterEscape:Q,characterReference:Q,codeFenced:s(We),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(We,u),codeText:s(dt,u),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(ot),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(je),hardBreakEscape:s(U),hardBreakTrailing:s(U),htmlFlow:s(re,u),htmlFlowData:Q,htmlText:s(re,u),htmlTextData:Q,image:s(de),label:u,link:s(xe),listItem:s(Te),listItemValue:b,listOrdered:s(ye,g),listUnordered:s(ye),paragraph:s(Le),reference:Se,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(pt),strong:s(ze),thematicBreak:s(jt)},exit:{atxHeading:p(),atxHeadingSequence:N,autolink:p(),autolinkEmail:Re,autolinkProtocol:Me,blockQuote:p(),characterEscapeValue:$,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:te,codeFenced:p(v),codeFencedFence:E,codeFencedFenceInfo:y,codeFencedFenceMeta:T,codeFlowValue:$,codeIndented:p(w),codeText:p(H),codeTextData:$,data:$,definition:p(),definitionDestinationString:k,definitionLabelString:A,definitionTitleString:R,emphasis:p(),hardBreakEscape:p(fe),hardBreakTrailing:p(fe),htmlFlow:p(ce),htmlFlowData:$,htmlText:p(De),htmlTextData:$,image:p(se),label:pe,labelText:D,lineEnding:oe,link:p(W),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:X,resourceDestinationString:le,resourceTitleString:L,resource:ie,setextHeading:p(P),setextHeadingLineSequence:q,setextHeadingText:B,strong:p(),thematicBreak:p()}};qL(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let Ee={type:"root",children:[]};const qe={stack:[Ee],tokenStack:[],config:t,enter:c,exit:f,buffer:u,resume:m,setData:a,getData:o},j=[];let me=-1;for(;++me0){const Ve=qe.tokenStack[qe.tokenStack.length-1];(Ve[1]||yk).call(qe,void 0,Ve[0])}for(Ee.position={start:Ds(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Ds(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me{const r=this.data("settings");return See(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function kee(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function xee(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` +`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}const lee={42:pi,43:pi,45:pi,48:pi,49:pi,50:pi,51:pi,52:pi,53:pi,54:pi,55:pi,56:pi,57:pi,62:ML},uee={91:cJ},cee={[-2]:F3,[-1]:F3,32:F3},dee={35:mJ,42:xh,45:[mk,xh],60:vJ,61:mk,95:xh,96:hk,126:hk},pee={38:PL,92:FL},fee={[-5]:P3,[-4]:P3,[-3]:P3,33:BJ,38:PL,42:ry,60:[zQ,kJ],91:$J,92:[hJ,FL],93:A9,95:ry,96:eJ},hee={null:[ry,tee]},gee={null:[42,95]},mee={null:[]},bee=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:gee,contentInitial:uee,disable:mee,document:lee,flow:dee,flowInitial:cee,insideSpan:hee,string:pee,text:fee},Symbol.toStringTag,{value:"Module"}));function yee(e){const n=LL([bee,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(LQ),document:i(FQ),flow:i(JJ),string:i(nee),text:i(ree)};return r;function i(a){return o;function o(s){return aee(r,a,s)}}}const bk=/[\0\t\n\r]/g;function Eee(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const u=[];let c,p,f,m,g;for(a=t+a.toString(o),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const _ee=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function VL(e){return e.replace(_ee,Tee)}function Tee(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return GL(n.slice(a?2:1),a?16:10)}return Tp(n)||e}const WL={}.hasOwnProperty,See=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),wee(n)(vee(yee(n).document().write(Eee()(e,t,!0))))};function wee(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xe),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(pt),blockQuote:s(Ye),characterEscape:Q,characterReference:Q,codeFenced:s(We),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(We,u),codeText:s(dt,u),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(ot),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(je),hardBreakEscape:s(U),hardBreakTrailing:s(U),htmlFlow:s(re,u),htmlFlowData:Q,htmlText:s(re,u),htmlTextData:Q,image:s(de),label:u,link:s(xe),listItem:s(Te),listItemValue:b,listOrdered:s(ye,g),listUnordered:s(ye),paragraph:s(Le),reference:Se,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(pt),strong:s(ze),thematicBreak:s(jt)},exit:{atxHeading:p(),atxHeadingSequence:N,autolink:p(),autolinkEmail:Re,autolinkProtocol:Me,blockQuote:p(),characterEscapeValue:$,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:te,codeFenced:p(v),codeFencedFence:E,codeFencedFenceInfo:y,codeFencedFenceMeta:T,codeFlowValue:$,codeIndented:p(w),codeText:p(H),codeTextData:$,data:$,definition:p(),definitionDestinationString:k,definitionLabelString:A,definitionTitleString:R,emphasis:p(),hardBreakEscape:p(fe),hardBreakTrailing:p(fe),htmlFlow:p(ce),htmlFlowData:$,htmlText:p(De),htmlTextData:$,image:p(se),label:pe,labelText:D,lineEnding:oe,link:p(W),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:X,resourceDestinationString:le,resourceTitleString:L,resource:ie,setextHeading:p(P),setextHeadingLineSequence:q,setextHeadingText:B,strong:p(),thematicBreak:p()}};qL(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let Ee={type:"root",children:[]};const qe={stack:[Ee],tokenStack:[],config:t,enter:c,exit:f,buffer:u,resume:m,setData:a,getData:o},j=[];let me=-1;for(;++me0){const Ve=qe.tokenStack[qe.tokenStack.length-1];(Ve[1]||yk).call(qe,void 0,Ve[0])}for(Ee.position={start:Ds(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Ds(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me{const r=this.data("settings");return See(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function kee(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function xee(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` `}]}function Iee(e,t){const n=t.value?t.value+` `:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Ree(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nee(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bc(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function KL(e,t){const n=String(t.identifier).toUpperCase(),r=bc(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=i+1);const o=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function Oee(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},KL(e,{type:"footnoteReference",identifier:i,position:t.position})}function Dee(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lee(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function YL(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Mee(e,t){const n=e.definition(t.identifier);if(!n)return YL(e,t);const r={src:bc(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function Fee(e,t){const n={src:bc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Pee(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Bee(e,t){const n=e.definition(t.identifier);if(!n)return YL(e,t);const r={href:bc(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Uee(e,t){const n={href:bc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $ee(e,t,n){const r=e.all(t),i=n?zee(n):XL(t),a={},o=[];if(typeof t.checked=="boolean"){const p=r[0];let f;p&&p.type==="element"&&p.tagName==="p"?f=p:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++stypeof e=="object"&&e!=null&&e.nodeType===1,bI=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",u4=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,Xue=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var Zue=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:fe=>fe!==f;if(!mI(e))throw new TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,y=[],T=e;for(;mI(T)&&g(T);){if(T=Xue(T),T===b){y.push(T);break}T!=null&&T===document.body&&u4(T)&&!u4(document.documentElement)||T!=null&&u4(T,m)&&y.push(T)}let E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:R,width:k,top:N,right:B,bottom:q,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?N:c==="end"?q:N+R/2,$=p==="center"?P+k/2:p==="end"?B:P,oe=[];for(let fe=0;fe=0&&P>=0&&q<=v&&B<=E&&N>=W&&q<=D&&P>=pe&&B<=se)return oe;let le=getComputedStyle(ce),L=parseInt(le.borderLeftWidth,10),ie=parseInt(le.borderTopWidth,10),Se=parseInt(le.borderRightWidth,10),X=parseInt(le.borderBottomWidth,10),ke=0,te=0,Me="offsetWidth"in ce?ce.offsetWidth-ce.clientWidth-L-Se:0,Re="offsetHeight"in ce?ce.offsetHeight-ce.clientHeight-ie-X:0,Ze="offsetWidth"in ce?ce.offsetWidth===0?0:H/ce.offsetWidth:0,We="offsetHeight"in ce?ce.offsetHeight===0?0:De/ce.offsetHeight:0;if(b===ce)ke=c==="start"?Q:c==="end"?Q-v:c==="nearest"?V0(A,A+v,v,ie,X,A+Q,A+Q+R,R):Q-v/2,te=p==="start"?$:p==="center"?$-E/2:p==="end"?$-E:V0(w,w+E,E,L,Se,w+$,w+$+k,k),ke=Math.max(0,ke+A),te=Math.max(0,te+w);else{ke=c==="start"?Q-W-ie:c==="end"?Q-D+X+Re:c==="nearest"?V0(W,D,De,ie,X+Re,Q,Q+R,R):Q-(W+De/2)+Re/2,te=p==="start"?$-pe-L:p==="center"?$-(pe+H/2)+Me/2:p==="end"?$-se+Se+Me:V0(pe,se,H,L,Se+Me,$,$+k,k);let{scrollLeft:dt,scrollTop:ot}=ce;ke=Math.max(0,Math.min(ot+ke/We,ce.scrollHeight-De/We+Re)),te=Math.max(0,Math.min(dt+te/Ze,ce.scrollWidth-H/Ze+Me)),Q+=ot-ke,$+=dt-te}oe.push({el:ce,top:ke,left:te})}return oe},$g=function(){return $g=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function q0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=Ap(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function Ap(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?Ap(1,0,n,r,!1):Ap(-1,n-1,n,r,!1):-1}function EI(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(yI(i,e,n)||r&&yI(i,n.document.activeElement,n))})}var r1e=LF(function(e){FF(e).textContent=""},500);function i1e(e,t){var n=FF(t);e&&(n.textContent=e,r1e(t))}function FF(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var a1e=["isInitialMount","highlightedIndex","items","environment"],PF={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function o1e(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){s1e(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(nn({type:i},a))}function s1e(e,t,n,r){var i=t.props,a=t.type,o="on"+P7(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](nn({type:a},r))}function l1e(e,t){return t.changes}function u1e(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var c1e=LF(function(e,t){i1e(e(),t)},200),d1e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function p1e(e){var t=e.id,n=t===void 0?"downshift-"+e1e():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function f1e(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function h1e(e){return e?String(e):""}function P7(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function BF(e){var t=C.useRef(e);return t.current=e,t}function g1e(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=my(m,g.props);var b=e(m,g),y=g.props.stateReducer(m,nn({},g,{changes:b}));return y},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=BF(n),p=C.useCallback(function(m){return u(nn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&o1e(f,my(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Kd={itemToString:h1e,stateReducer:l1e,getA11ySelectionMessage:u1e,scrollIntoView:Jue,environment:typeof window>"u"?{}:window};function bo(e,t,n){n===void 0&&(n=PF);var r=e["default"+P7(t)];return r!==void 0?r:n[t]}function K0(e,t,n){n===void 0&&(n=PF);var r=e[t];if(r!==void 0)return r;var i=e["initial"+P7(t)];return i!==void 0?i:bo(e,t,n)}function m1e(e){var t=K0(e,"selectedItem"),n=K0(e,"isOpen"),r=K0(e,"highlightedIndex"),i=K0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Yd(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function b1e(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!EI(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!EI(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var y1e=function(){return DF};function vI(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=C1(n,a1e);C.useEffect(function(){r||c1e(function(){return e(nn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function E1e(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return d1e(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var v1e=DF;function _I(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return nn({isOpen:!1,highlightedIndex:-1},i&&nn({selectedItem:e.items[t],isOpen:bo(e,"isOpen"),highlightedIndex:bo(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function _1e(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Yd(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:bo(i,"highlightedIndex"),isOpen:bo(i,"isOpen"),selectedItem:bo(i,"selectedItem"),inputValue:bo(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return nn({},e,a)}be.array.isRequired,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.func,be.string,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function T1e(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}$g($g({},Kd),{getA11yStatusMessage:T1e});var B7=0,U7=1,$7=2,z7=3,H7=4,j7=5,G7=6,V7=7,W7=8,zg=9,q7=10,UF=11,$F=12,K7=13,zF=14,HF=15,jF=16,GF=17,VF=18,Y7=19,WF=20,qF=21,X7=22,KF=Object.freeze({__proto__:null,InputKeyDownArrowDown:B7,InputKeyDownArrowUp:U7,InputKeyDownEscape:$7,InputKeyDownHome:z7,InputKeyDownEnd:H7,InputKeyDownPageUp:j7,InputKeyDownPageDown:G7,InputKeyDownEnter:V7,InputChange:W7,InputBlur:zg,InputFocus:q7,MenuMouseLeave:UF,ItemMouseMove:$F,ItemClick:K7,ToggleButtonClick:zF,FunctionToggleMenu:HF,FunctionOpenMenu:jF,FunctionCloseMenu:GF,FunctionSetHighlightedIndex:VF,FunctionSelectItem:Y7,FunctionSetInputValue:WF,FunctionReset:qF,ControlledPropUpdatedSelectedItem:X7});function S1e(e){var t=m1e(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),nn({},t,{inputValue:r})}be.array.isRequired,be.func,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.string,be.string,be.string,be.func,be.string,be.string,be.func,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function w1e(e,t,n){var r=C.useRef(),i=g1e(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){MF(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:X7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[my(a,n),o]}var A1e=nn({},Kd,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:t1e});function C1e(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case K7:o={isOpen:bo(i,"isOpen"),highlightedIndex:bo(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case B7:e.isOpen?o={highlightedIndex:q0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Yd(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case U7:e.isOpen?a?o=_I(i,e.highlightedIndex):o={highlightedIndex:q0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Yd(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case V7:o=_I(i,e.highlightedIndex);break;case $7:o=nn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case j7:o={highlightedIndex:q0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case G7:o={highlightedIndex:q0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case z7:o={highlightedIndex:Ap(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case H7:o={highlightedIndex:Ap(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case zg:o=nn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case W7:o={isOpen:!0,highlightedIndex:bo(i,"highlightedIndex"),inputValue:t.inputValue};break;case q7:o={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case Y7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case X7:o={inputValue:t.inputValue};break;default:return _1e(e,t,KF)}return nn({},e,o)}var k1e=["onMouseLeave","refKey","ref"],x1e=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],I1e=["onClick","onPress","refKey","ref"],R1e=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];YF.stateChangeTypes=KF;function YF(e){e===void 0&&(e={});var t=nn({},A1e,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=S1e(t),f=w1e(C1e,p,t),m=f[0],g=f[1],b=m.isOpen,y=m.highlightedIndex,T=m.selectedItem,E=m.inputValue,v=C.useRef(null),w=C.useRef({}),A=C.useRef(null),R=C.useRef(null),k=C.useRef(!0),N=p1e(t),B=C.useRef(),q=BF({state:m,props:t}),P=C.useCallback(function(ke){return w.current[N.getItemId(ke)]},[N]);vI(s,[b,y,E,i],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),vI(u,[T],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=E1e({menuElement:v.current,highlightedIndex:y,isOpen:b,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});v1e({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var ke=n||r||b;ke&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var $=b1e(b,[A,v,R],o,function(){g({type:zg,selectItem:!1})}),oe=y1e();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var ke;if(!b)w.current={};else if(((ke=o.document)==null?void 0:ke.activeElement)!==A.current){var te;A==null||(te=A.current)==null||te.focus()}},[b,o]);var fe=C.useMemo(function(){return{ArrowDown:function(te){te.preventDefault(),g({type:B7,altKey:te.altKey,getItemNodeFromIndex:P})},ArrowUp:function(te){te.preventDefault(),g({type:U7,altKey:te.altKey,getItemNodeFromIndex:P})},Home:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:z7,getItemNodeFromIndex:P}))},End:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:H7,getItemNodeFromIndex:P}))},Escape:function(te){var Me=q.current.state;(Me.isOpen||Me.inputValue||Me.selectedItem||Me.highlightedIndex>-1)&&(te.preventDefault(),g({type:$7}))},Enter:function(te){var Me=q.current.state;!Me.isOpen||te.which===229||(te.preventDefault(),g({type:V7,getItemNodeFromIndex:P}))},PageUp:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:j7,getItemNodeFromIndex:P}))},PageDown:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:G7,getItemNodeFromIndex:P}))}}},[g,q,P]),ce=C.useCallback(function(ke){return nn({id:N.labelId,htmlFor:N.inputId},ke)},[N]),De=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onMouseLeave,We=Re.refKey,dt=We===void 0?"ref":We,ot=Re.ref,je=C1(Re,k1e),pt=te===void 0?{}:te;return pt.suppressRefError,nn((Me={},Me[dt]=W0(ot,function(U){v.current=U}),Me.id=N.menuId,Me.role="listbox",Me["aria-labelledby"]=je&&je["aria-label"]?void 0:""+N.labelId,Me.onMouseLeave=qo(Ze,function(){g({type:UF})}),Me),je)},[g,oe,N]),H=C.useCallback(function(ke){var te,Me,Re=ke===void 0?{}:ke,Ze=Re.item,We=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,je=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,re=Re.onClick;Re.onPress;var de=Re.disabled,xe=C1(Re,x1e),ye=q.current,Te=ye.props,Le=ye.state,ze=f1e(Ze,We,Te.items,"Pass either item or index to getItemProps!"),Ye=ze[1],jt="onClick",ue=re,Ee=function(){Ye!==Le.highlightedIndex&&(Q.current=!1,g({type:$F,index:Ye,disabled:de}))},qe=function(){g({type:K7,index:Ye})},j=function(Ve){return Ve.preventDefault()};return nn((te={},te[ot]=W0(je,function(me){me&&(w.current[N.getItemId(Ye)]=me)}),te.disabled=de,te.role="option",te["aria-selected"]=""+(Ye===Le.highlightedIndex),te.id=N.getItemId(Ye),te),!de&&(Me={},Me[jt]=qo(ue,qe),Me),{onMouseMove:qo(pt,Ee),onMouseDown:qo(U,j)},xe)},[g,q,Q,N]),W=C.useCallback(function(ke){var te,Me=ke===void 0?{}:ke,Re=Me.onClick;Me.onPress;var Ze=Me.refKey,We=Ze===void 0?"ref":Ze,dt=Me.ref,ot=C1(Me,I1e),je=q.current.state,pt=function(){g({type:zF})};return nn((te={},te[We]=W0(dt,function(U){R.current=U}),te["aria-controls"]=N.menuId,te["aria-expanded"]=je.isOpen,te.id=N.toggleButtonId,te.tabIndex=-1,te),!ot.disabled&&nn({},{onClick:qo(Re,pt)}),ot)},[g,q,N]),se=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onKeyDown,We=Re.onChange,dt=Re.onInput,ot=Re.onFocus,je=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,re=Re.ref,de=C1(Re,R1e),xe=te===void 0?{}:te;xe.suppressRefError;var ye=q.current.state,Te=function(j){var me=n1e(j);me&&fe[me]&&fe[me](j)},Le=function(j){g({type:W7,inputValue:j.target.value})},ze=function(j){if(ye.isOpen&&!$.current.isMouseDown){var me=j.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:zg,selectItem:!me})}},Ye=function(){ye.isOpen||g({type:q7})},jt="onChange",ue={};if(!de.disabled){var Ee;ue=(Ee={},Ee[jt]=qo(We,dt,Le),Ee.onKeyDown=qo(Ze,Te),Ee.onBlur=qo(je,ze),Ee.onFocus=qo(ot,Ye),Ee)}return nn((Me={},Me[U]=W0(re,function(qe){A.current=qe}),Me["aria-activedescendant"]=ye.isOpen&&ye.highlightedIndex>-1?N.getItemId(ye.highlightedIndex):"",Me["aria-autocomplete"]="list",Me["aria-controls"]=N.menuId,Me["aria-expanded"]=ye.isOpen,Me["aria-labelledby"]=de&&de["aria-label"]?void 0:""+N.labelId,Me.autoComplete="off",Me.id=N.inputId,Me.role="combobox",Me.value=ye.inputValue,Me),ue,de)},[oe,q,N,fe,g,$,o]),D=C.useCallback(function(){g({type:HF})},[g]),pe=C.useCallback(function(){g({type:GF})},[g]),le=C.useCallback(function(){g({type:jF})},[g]),L=C.useCallback(function(ke){g({type:VF,highlightedIndex:ke})},[g]),ie=C.useCallback(function(ke){g({type:Y7,selectedItem:ke})},[g]),Se=C.useCallback(function(ke){g({type:WF,inputValue:ke})},[g]),X=C.useCallback(function(){g({type:qF})},[g]);return{getItemProps:H,getLabelProps:ce,getMenuProps:De,getInputProps:se,getToggleButtonProps:W,toggleMenu:D,openMenu:le,closeMenu:pe,setHighlightedIndex:L,setInputValue:Se,selectItem:ie,reset:X,highlightedIndex:y,isOpen:b,selectedItem:T,inputValue:E}}function N1e(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}be.array,be.array,be.array,be.func,be.func,be.func,be.number,be.number,be.number,be.func,be.func,be.string,be.string,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});Kd.itemToString,Kd.stateReducer,Kd.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:XF,setPrototypeOf:TI,isFrozen:O1e,getPrototypeOf:D1e,getOwnPropertyDescriptor:ZF}=Object;let{freeze:ii,seal:Ya,create:QF}=Object,{apply:by,construct:yy}=typeof Reflect<"u"&&Reflect;ii||(ii=function(t){return t});Ya||(Ya=function(t){return t});by||(by=function(t,n,r){return t.apply(n,r)});yy||(yy=function(t,n){return new t(...n)});const Y0=va(Array.prototype.forEach),SI=va(Array.prototype.pop),ld=va(Array.prototype.push),Fh=va(String.prototype.toLowerCase),c4=va(String.prototype.toString),L1e=va(String.prototype.match),ud=va(String.prototype.replace),M1e=va(String.prototype.indexOf),F1e=va(String.prototype.trim),Ni=va(RegExp.prototype.test),cd=P1e(TypeError);function va(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Fh;TI&&TI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(O1e(t)||(t[r]=a),i=a)}e[i]=!0}return e}function r1(e){const t=QF(null);for(const[n,r]of XF(e))ZF(e,n)!==void 0&&(t[n]=r);return t}function X0(e,t){for(;e!==null;){const r=ZF(e,t);if(r){if(r.get)return va(r.get);if(typeof r.value=="function")return va(r.value)}e=D1e(e)}function n(r){return console.warn("fallback value for",r),null}return n}const wI=ii(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),d4=ii(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),p4=ii(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B1e=ii(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),f4=ii(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U1e=ii(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),AI=ii(["#text"]),CI=ii(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),h4=ii(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kI=ii(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z0=ii(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$1e=Ya(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z1e=Ya(/<%[\w\W]*|[\w\W]*%>/gm),H1e=Ya(/\${[\w\W]*}/gm),j1e=Ya(/^data-[\-\w.\u00B7-\uFFFF]/),G1e=Ya(/^aria-[\-\w]+$/),JF=Ya(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V1e=Ya(/^(?:\w+script|data):/i),W1e=Ya(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eP=Ya(/^html$/i);var xI=Object.freeze({__proto__:null,MUSTACHE_EXPR:$1e,ERB_EXPR:z1e,TMPLIT_EXPR:H1e,DATA_ATTR:j1e,ARIA_ATTR:G1e,IS_ALLOWED_URI:JF,IS_SCRIPT_OR_DATA:V1e,ATTR_WHITESPACE:W1e,DOCTYPE_NAME:eP});const q1e=function(){return typeof window>"u"?null:window},K1e=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function tP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q1e();const t=Ke=>tP(Ke);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,b=u.prototype,y=X0(b,"cloneNode"),T=X0(b,"nextSibling"),E=X0(b,"childNodes"),v=X0(b,"parentNode");if(typeof o=="function"){const Ke=n.createElement("template");Ke.content&&Ke.content.ownerDocument&&(n=Ke.content.ownerDocument)}let w,A="";const{implementation:R,createNodeIterator:k,createDocumentFragment:N,getElementsByTagName:B}=n,{importNode:q}=r;let P={};t.isSupported=typeof XF=="function"&&typeof v=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:$,TMPLIT_EXPR:oe,DATA_ATTR:fe,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:H}=xI;let{IS_ALLOWED_URI:W}=xI,se=null;const D=At({},[...wI,...d4,...p4,...f4,...AI]);let pe=null;const le=At({},[...CI,...h4,...kI,...Z0]);let L=Object.seal(QF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Se=null,X=!0,ke=!0,te=!1,Me=!0,Re=!1,Ze=!1,We=!1,dt=!1,ot=!1,je=!1,pt=!1,U=!0,re=!1;const de="user-content-";let xe=!0,ye=!1,Te={},Le=null;const ze=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ye=null;const jt=At({},["audio","video","img","source","image","track"]);let ue=null;const Ee=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",j="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let Ve=me,ge=!1,G=null;const K=At({},[qe,j,me],c4);let ne=null;const ve=["application/xhtml+xml","text/html"],Qe="text/html";let Fe=null,at=null;const rt=n.createElement("form"),Je=function(J){return J instanceof RegExp||J instanceof Function},Rt=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(at&&at===J)){if((!J||typeof J!="object")&&(J={}),J=r1(J),ne=ve.indexOf(J.PARSER_MEDIA_TYPE)===-1?ne=Qe:ne=J.PARSER_MEDIA_TYPE,Fe=ne==="application/xhtml+xml"?c4:Fh,se="ALLOWED_TAGS"in J?At({},J.ALLOWED_TAGS,Fe):D,pe="ALLOWED_ATTR"in J?At({},J.ALLOWED_ATTR,Fe):le,G="ALLOWED_NAMESPACES"in J?At({},J.ALLOWED_NAMESPACES,c4):K,ue="ADD_URI_SAFE_ATTR"in J?At(r1(Ee),J.ADD_URI_SAFE_ATTR,Fe):Ee,Ye="ADD_DATA_URI_TAGS"in J?At(r1(jt),J.ADD_DATA_URI_TAGS,Fe):jt,Le="FORBID_CONTENTS"in J?At({},J.FORBID_CONTENTS,Fe):ze,ie="FORBID_TAGS"in J?At({},J.FORBID_TAGS,Fe):{},Se="FORBID_ATTR"in J?At({},J.FORBID_ATTR,Fe):{},Te="USE_PROFILES"in J?J.USE_PROFILES:!1,X=J.ALLOW_ARIA_ATTR!==!1,ke=J.ALLOW_DATA_ATTR!==!1,te=J.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=J.SAFE_FOR_TEMPLATES||!1,Ze=J.WHOLE_DOCUMENT||!1,ot=J.RETURN_DOM||!1,je=J.RETURN_DOM_FRAGMENT||!1,pt=J.RETURN_TRUSTED_TYPE||!1,dt=J.FORCE_BODY||!1,U=J.SANITIZE_DOM!==!1,re=J.SANITIZE_NAMED_PROPS||!1,xe=J.KEEP_CONTENT!==!1,ye=J.IN_PLACE||!1,W=J.ALLOWED_URI_REGEXP||JF,Ve=J.NAMESPACE||me,L=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(ke=!1),je&&(ot=!0),Te&&(se=At({},[...AI]),pe=[],Te.html===!0&&(At(se,wI),At(pe,CI)),Te.svg===!0&&(At(se,d4),At(pe,h4),At(pe,Z0)),Te.svgFilters===!0&&(At(se,p4),At(pe,h4),At(pe,Z0)),Te.mathMl===!0&&(At(se,f4),At(pe,kI),At(pe,Z0))),J.ADD_TAGS&&(se===D&&(se=r1(se)),At(se,J.ADD_TAGS,Fe)),J.ADD_ATTR&&(pe===le&&(pe=r1(pe)),At(pe,J.ADD_ATTR,Fe)),J.ADD_URI_SAFE_ATTR&&At(ue,J.ADD_URI_SAFE_ATTR,Fe),J.FORBID_CONTENTS&&(Le===ze&&(Le=r1(Le)),At(Le,J.FORBID_CONTENTS,Fe)),xe&&(se["#text"]=!0),Ze&&At(se,["html","head","body"]),se.table&&(At(se,["tbody"]),delete ie.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=J.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=K1e(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ii&&ii(J),at=J}},Qt=At({},["mi","mo","mn","ms","mtext"]),kt=At({},["foreignobject","desc","title","annotation-xml"]),rn=At({},["title","style","font","a","script"]),Xt=At({},d4);At(Xt,p4),At(Xt,B1e);const Wr=At({},f4);At(Wr,U1e);const qr=function(J){let Be=v(J);(!Be||!Be.tagName)&&(Be={namespaceURI:Ve,tagName:"template"});const it=Fh(J.tagName),un=Fh(Be.tagName);return G[J.namespaceURI]?J.namespaceURI===j?Be.namespaceURI===me?it==="svg":Be.namespaceURI===qe?it==="svg"&&(un==="annotation-xml"||Qt[un]):!!Xt[it]:J.namespaceURI===qe?Be.namespaceURI===me?it==="math":Be.namespaceURI===j?it==="math"&&kt[un]:!!Wr[it]:J.namespaceURI===me?Be.namespaceURI===j&&!kt[un]||Be.namespaceURI===qe&&!Qt[un]?!1:!Wr[it]&&(rn[it]||!Xt[it]):!!(ne==="application/xhtml+xml"&&G[J.namespaceURI]):!1},Kr=function(J){ld(t.removed,{element:J});try{J.parentNode.removeChild(J)}catch{J.remove()}},Aa=function(J,Be){try{ld(t.removed,{attribute:Be.getAttributeNode(J),from:Be})}catch{ld(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(J),J==="is"&&!pe[J])if(ot||je)try{Kr(Be)}catch{}else try{Be.setAttribute(J,"")}catch{}},si=function(J){let Be=null,it=null;if(dt)J=""+J;else{const or=L1e(J,/^[\r\n\t ]+/);it=or&&or[0]}ne==="application/xhtml+xml"&&Ve===me&&(J=''+J+"");const un=w?w.createHTML(J):J;if(Ve===me)try{Be=new m().parseFromString(un,ne)}catch{}if(!Be||!Be.documentElement){Be=R.createDocument(Ve,"template",null);try{Be.documentElement.innerHTML=ge?A:un}catch{}}const ar=Be.body||Be.documentElement;return J&&it&&ar.insertBefore(n.createTextNode(it),ar.childNodes[0]||null),Ve===me?B.call(Be,Ze?"html":"body")[0]:Ze?Be.documentElement:ar},Or=function(J){return k.call(J.ownerDocument||J,J,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Es=function(J){return J instanceof f&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof p)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},vs=function(J){return typeof s=="function"&&J instanceof s},Yr=function(J,Be,it){P[J]&&Y0(P[J],un=>{un.call(t,Be,it,at)})},_s=function(J){let Be=null;if(Yr("beforeSanitizeElements",J,null),Es(J))return Kr(J),!0;const it=Fe(J.nodeName);if(Yr("uponSanitizeElement",J,{tagName:it,allowedTags:se}),J.hasChildNodes()&&!vs(J.firstElementChild)&&Ni(/<[/\w]/g,J.innerHTML)&&Ni(/<[/\w]/g,J.textContent))return Kr(J),!0;if(!se[it]||ie[it]){if(!ie[it]&&Dr(it)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it)))return!1;if(xe&&!Le[it]){const un=v(J)||J.parentNode,ar=E(J)||J.childNodes;if(ar&&un){const or=ar.length;for(let Zn=or-1;Zn>=0;--Zn)un.insertBefore(y(ar[Zn],!0),T(J))}}return Kr(J),!0}return J instanceof u&&!qr(J)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ni(/<\/no(script|embed|frames)/i,J.innerHTML)?(Kr(J),!0):(Re&&J.nodeType===3&&(Be=J.textContent,Y0([Q,$,oe],un=>{Be=ud(Be,un," ")}),J.textContent!==Be&&(ld(t.removed,{element:J.cloneNode()}),J.textContent=Be)),Yr("afterSanitizeElements",J,null),!1)},qt=function(J,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in rt))return!1;if(!(ke&&!Se[Be]&&Ni(fe,Be))){if(!(X&&Ni(ce,Be))){if(!pe[Be]||Se[Be]){if(!(Dr(J)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,J)||L.tagNameCheck instanceof Function&&L.tagNameCheck(J))&&(L.attributeNameCheck instanceof RegExp&&Ni(L.attributeNameCheck,Be)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(Be))||Be==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ni(W,ud(it,H,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&J!=="script"&&M1e(it,"data:")===0&&Ye[J])){if(!(te&&!Ni(De,ud(it,H,"")))){if(it)return!1}}}}}}return!0},Dr=function(J){return J.indexOf("-")>0},Si=function(J){Yr("beforeSanitizeAttributes",J,null);const{attributes:Be}=J;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};let un=Be.length;for(;un--;){const ar=Be[un],{name:or,namespaceURI:Zn,value:Oo}=ar,no=Fe(or);let Lr=or==="value"?Oo:F1e(Oo);if(it.attrName=no,it.attrValue=Lr,it.keepAttr=!0,it.forceKeepAttr=void 0,Yr("uponSanitizeAttribute",J,it),Lr=it.attrValue,it.forceKeepAttr||(Aa(or,J),!it.keepAttr))continue;if(!Me&&Ni(/\/>/i,Lr)){Aa(or,J);continue}Re&&Y0([Q,$,oe],vf=>{Lr=ud(Lr,vf," ")});const Ef=Fe(J.nodeName);if(qt(Ef,no,Lr)){if(re&&(no==="id"||no==="name")&&(Aa(or,J),Lr=de+Lr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Zn)switch(g.getAttributeType(Ef,no)){case"TrustedHTML":{Lr=w.createHTML(Lr);break}case"TrustedScriptURL":{Lr=w.createScriptURL(Lr);break}}try{Zn?J.setAttributeNS(Zn,or,Lr):J.setAttribute(or,Lr),SI(t.removed)}catch{}}}Yr("afterSanitizeAttributes",J,null)},Nl=function Ke(J){let Be=null;const it=Or(J);for(Yr("beforeSanitizeShadowDOM",J,null);Be=it.nextNode();)Yr("uponSanitizeShadowNode",Be,null),!_s(Be)&&(Be.content instanceof a&&Ke(Be.content),Si(Be));Yr("afterSanitizeShadowDOM",J,null)};return t.sanitize=function(Ke){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,un=null,ar=null;if(ge=!Ke,ge&&(Ke=""),typeof Ke!="string"&&!vs(Ke))if(typeof Ke.toString=="function"){if(Ke=Ke.toString(),typeof Ke!="string")throw cd("dirty is not a string, aborting")}else throw cd("toString is not a function");if(!t.isSupported)return Ke;if(We||Rt(J),t.removed=[],typeof Ke=="string"&&(ye=!1),ye){if(Ke.nodeName){const Oo=Fe(Ke.nodeName);if(!se[Oo]||ie[Oo])throw cd("root node is forbidden and cannot be sanitized in-place")}}else if(Ke instanceof s)Be=si(""),it=Be.ownerDocument.importNode(Ke,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Ze&&Ke.indexOf("<")===-1)return w&&pt?w.createHTML(Ke):Ke;if(Be=si(Ke),!Be)return ot?null:pt?A:""}Be&&dt&&Kr(Be.firstChild);const or=Or(ye?Ke:Be);for(;un=or.nextNode();)_s(un)||(un.content instanceof a&&Nl(un.content),Si(un));if(ye)return Ke;if(ot){if(je)for(ar=N.call(Be.ownerDocument);Be.firstChild;)ar.appendChild(Be.firstChild);else ar=Be;return(pe.shadowroot||pe.shadowrootmode)&&(ar=q.call(r,ar,!0)),ar}let Zn=Ze?Be.outerHTML:Be.innerHTML;return Ze&&se["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ni(eP,Be.ownerDocument.doctype.name)&&(Zn=" + */var R2=60103,N2=60106,nf=60107,rf=60108,af=60114,of=60109,sf=60110,lf=60112,uf=60113,F7=60120,cf=60115,df=60116,xF=60121,IF=60122,RF=60117,NF=60129,OF=60131;if(typeof Symbol=="function"&&Symbol.for){var yr=Symbol.for;R2=yr("react.element"),N2=yr("react.portal"),nf=yr("react.fragment"),rf=yr("react.strict_mode"),af=yr("react.profiler"),of=yr("react.provider"),sf=yr("react.context"),lf=yr("react.forward_ref"),uf=yr("react.suspense"),F7=yr("react.suspense_list"),cf=yr("react.memo"),df=yr("react.lazy"),xF=yr("react.block"),IF=yr("react.server.block"),RF=yr("react.fundamental"),NF=yr("react.debug_trace_mode"),OF=yr("react.legacy_hidden")}function Ja(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R2:switch(e=e.type,e){case nf:case af:case rf:case uf:case F7:return e;default:switch(e=e&&e.$$typeof,e){case sf:case lf:case df:case cf:case of:return e;default:return t}}case N2:return t}}}var $ue=of,zue=R2,Hue=lf,jue=nf,Gue=df,Vue=cf,Wue=N2,que=af,Kue=rf,Yue=uf;yn.ContextConsumer=sf;yn.ContextProvider=$ue;yn.Element=zue;yn.ForwardRef=Hue;yn.Fragment=jue;yn.Lazy=Gue;yn.Memo=Vue;yn.Portal=Wue;yn.Profiler=que;yn.StrictMode=Kue;yn.Suspense=Yue;yn.isAsyncMode=function(){return!1};yn.isConcurrentMode=function(){return!1};yn.isContextConsumer=function(e){return Ja(e)===sf};yn.isContextProvider=function(e){return Ja(e)===of};yn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R2};yn.isForwardRef=function(e){return Ja(e)===lf};yn.isFragment=function(e){return Ja(e)===nf};yn.isLazy=function(e){return Ja(e)===df};yn.isMemo=function(e){return Ja(e)===cf};yn.isPortal=function(e){return Ja(e)===N2};yn.isProfiler=function(e){return Ja(e)===af};yn.isStrictMode=function(e){return Ja(e)===rf};yn.isSuspense=function(e){return Ja(e)===uf};yn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nf||e===af||e===NF||e===rf||e===uf||e===F7||e===OF||typeof e=="object"&&e!==null&&(e.$$typeof===df||e.$$typeof===cf||e.$$typeof===of||e.$$typeof===sf||e.$$typeof===lf||e.$$typeof===RF||e.$$typeof===xF||e[0]===IF)};yn.typeOf=Ja;let mI=e=>typeof e=="object"&&e!=null&&e.nodeType===1,bI=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",u4=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,Xue=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var Zue=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:fe=>fe!==f;if(!mI(e))throw new TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,y=[],T=e;for(;mI(T)&&g(T);){if(T=Xue(T),T===b){y.push(T);break}T!=null&&T===document.body&&u4(T)&&!u4(document.documentElement)||T!=null&&u4(T,m)&&y.push(T)}let E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:R,width:k,top:N,right:B,bottom:q,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?N:c==="end"?q:N+R/2,$=p==="center"?P+k/2:p==="end"?B:P,oe=[];for(let fe=0;fe=0&&P>=0&&q<=v&&B<=E&&N>=W&&q<=D&&P>=pe&&B<=se)return oe;let le=getComputedStyle(ce),L=parseInt(le.borderLeftWidth,10),ie=parseInt(le.borderTopWidth,10),Se=parseInt(le.borderRightWidth,10),X=parseInt(le.borderBottomWidth,10),ke=0,te=0,Me="offsetWidth"in ce?ce.offsetWidth-ce.clientWidth-L-Se:0,Re="offsetHeight"in ce?ce.offsetHeight-ce.clientHeight-ie-X:0,Ye="offsetWidth"in ce?ce.offsetWidth===0?0:H/ce.offsetWidth:0,We="offsetHeight"in ce?ce.offsetHeight===0?0:De/ce.offsetHeight:0;if(b===ce)ke=c==="start"?Q:c==="end"?Q-v:c==="nearest"?V0(A,A+v,v,ie,X,A+Q,A+Q+R,R):Q-v/2,te=p==="start"?$:p==="center"?$-E/2:p==="end"?$-E:V0(w,w+E,E,L,Se,w+$,w+$+k,k),ke=Math.max(0,ke+A),te=Math.max(0,te+w);else{ke=c==="start"?Q-W-ie:c==="end"?Q-D+X+Re:c==="nearest"?V0(W,D,De,ie,X+Re,Q,Q+R,R):Q-(W+De/2)+Re/2,te=p==="start"?$-pe-L:p==="center"?$-(pe+H/2)+Me/2:p==="end"?$-se+Se+Me:V0(pe,se,H,L,Se+Me,$,$+k,k);let{scrollLeft:dt,scrollTop:ot}=ce;ke=Math.max(0,Math.min(ot+ke/We,ce.scrollHeight-De/We+Re)),te=Math.max(0,Math.min(dt+te/Ye,ce.scrollWidth-H/Ye+Me)),Q+=ot-ke,$+=dt-te}oe.push({el:ce,top:ke,left:te})}return oe},$g=function(){return $g=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function q0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=Ap(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function Ap(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?Ap(1,0,n,r,!1):Ap(-1,n-1,n,r,!1):-1}function EI(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(yI(i,e,n)||r&&yI(i,n.document.activeElement,n))})}var r1e=LF(function(e){FF(e).textContent=""},500);function i1e(e,t){var n=FF(t);e&&(n.textContent=e,r1e(t))}function FF(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var a1e=["isInitialMount","highlightedIndex","items","environment"],PF={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function o1e(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){s1e(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(nn({type:i},a))}function s1e(e,t,n,r){var i=t.props,a=t.type,o="on"+P7(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](nn({type:a},r))}function l1e(e,t){return t.changes}function u1e(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var c1e=LF(function(e,t){i1e(e(),t)},200),d1e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function p1e(e){var t=e.id,n=t===void 0?"downshift-"+e1e():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function f1e(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function h1e(e){return e?String(e):""}function P7(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function BF(e){var t=C.useRef(e);return t.current=e,t}function g1e(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=my(m,g.props);var b=e(m,g),y=g.props.stateReducer(m,nn({},g,{changes:b}));return y},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=BF(n),p=C.useCallback(function(m){return u(nn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&o1e(f,my(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Kd={itemToString:h1e,stateReducer:l1e,getA11ySelectionMessage:u1e,scrollIntoView:Jue,environment:typeof window>"u"?{}:window};function bo(e,t,n){n===void 0&&(n=PF);var r=e["default"+P7(t)];return r!==void 0?r:n[t]}function K0(e,t,n){n===void 0&&(n=PF);var r=e[t];if(r!==void 0)return r;var i=e["initial"+P7(t)];return i!==void 0?i:bo(e,t,n)}function m1e(e){var t=K0(e,"selectedItem"),n=K0(e,"isOpen"),r=K0(e,"highlightedIndex"),i=K0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Yd(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function b1e(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!EI(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!EI(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var y1e=function(){return DF};function vI(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=C1(n,a1e);C.useEffect(function(){r||c1e(function(){return e(nn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function E1e(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return d1e(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var v1e=DF;function _I(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return nn({isOpen:!1,highlightedIndex:-1},i&&nn({selectedItem:e.items[t],isOpen:bo(e,"isOpen"),highlightedIndex:bo(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function _1e(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Yd(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:bo(i,"highlightedIndex"),isOpen:bo(i,"isOpen"),selectedItem:bo(i,"selectedItem"),inputValue:bo(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return nn({},e,a)}be.array.isRequired,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.func,be.string,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function T1e(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}$g($g({},Kd),{getA11yStatusMessage:T1e});var B7=0,U7=1,$7=2,z7=3,H7=4,j7=5,G7=6,V7=7,W7=8,zg=9,q7=10,UF=11,$F=12,K7=13,zF=14,HF=15,jF=16,GF=17,VF=18,Y7=19,WF=20,qF=21,X7=22,KF=Object.freeze({__proto__:null,InputKeyDownArrowDown:B7,InputKeyDownArrowUp:U7,InputKeyDownEscape:$7,InputKeyDownHome:z7,InputKeyDownEnd:H7,InputKeyDownPageUp:j7,InputKeyDownPageDown:G7,InputKeyDownEnter:V7,InputChange:W7,InputBlur:zg,InputFocus:q7,MenuMouseLeave:UF,ItemMouseMove:$F,ItemClick:K7,ToggleButtonClick:zF,FunctionToggleMenu:HF,FunctionOpenMenu:jF,FunctionCloseMenu:GF,FunctionSetHighlightedIndex:VF,FunctionSelectItem:Y7,FunctionSetInputValue:WF,FunctionReset:qF,ControlledPropUpdatedSelectedItem:X7});function S1e(e){var t=m1e(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),nn({},t,{inputValue:r})}be.array.isRequired,be.func,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.string,be.string,be.string,be.func,be.string,be.string,be.func,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function w1e(e,t,n){var r=C.useRef(),i=g1e(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){MF(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:X7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[my(a,n),o]}var A1e=nn({},Kd,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:t1e});function C1e(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case K7:o={isOpen:bo(i,"isOpen"),highlightedIndex:bo(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case B7:e.isOpen?o={highlightedIndex:q0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Yd(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case U7:e.isOpen?a?o=_I(i,e.highlightedIndex):o={highlightedIndex:q0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Yd(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case V7:o=_I(i,e.highlightedIndex);break;case $7:o=nn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case j7:o={highlightedIndex:q0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case G7:o={highlightedIndex:q0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case z7:o={highlightedIndex:Ap(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case H7:o={highlightedIndex:Ap(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case zg:o=nn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case W7:o={isOpen:!0,highlightedIndex:bo(i,"highlightedIndex"),inputValue:t.inputValue};break;case q7:o={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case Y7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case X7:o={inputValue:t.inputValue};break;default:return _1e(e,t,KF)}return nn({},e,o)}var k1e=["onMouseLeave","refKey","ref"],x1e=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],I1e=["onClick","onPress","refKey","ref"],R1e=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];YF.stateChangeTypes=KF;function YF(e){e===void 0&&(e={});var t=nn({},A1e,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=S1e(t),f=w1e(C1e,p,t),m=f[0],g=f[1],b=m.isOpen,y=m.highlightedIndex,T=m.selectedItem,E=m.inputValue,v=C.useRef(null),w=C.useRef({}),A=C.useRef(null),R=C.useRef(null),k=C.useRef(!0),N=p1e(t),B=C.useRef(),q=BF({state:m,props:t}),P=C.useCallback(function(ke){return w.current[N.getItemId(ke)]},[N]);vI(s,[b,y,E,i],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),vI(u,[T],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=E1e({menuElement:v.current,highlightedIndex:y,isOpen:b,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});v1e({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var ke=n||r||b;ke&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var $=b1e(b,[A,v,R],o,function(){g({type:zg,selectItem:!1})}),oe=y1e();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var ke;if(!b)w.current={};else if(((ke=o.document)==null?void 0:ke.activeElement)!==A.current){var te;A==null||(te=A.current)==null||te.focus()}},[b,o]);var fe=C.useMemo(function(){return{ArrowDown:function(te){te.preventDefault(),g({type:B7,altKey:te.altKey,getItemNodeFromIndex:P})},ArrowUp:function(te){te.preventDefault(),g({type:U7,altKey:te.altKey,getItemNodeFromIndex:P})},Home:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:z7,getItemNodeFromIndex:P}))},End:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:H7,getItemNodeFromIndex:P}))},Escape:function(te){var Me=q.current.state;(Me.isOpen||Me.inputValue||Me.selectedItem||Me.highlightedIndex>-1)&&(te.preventDefault(),g({type:$7}))},Enter:function(te){var Me=q.current.state;!Me.isOpen||te.which===229||(te.preventDefault(),g({type:V7,getItemNodeFromIndex:P}))},PageUp:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:j7,getItemNodeFromIndex:P}))},PageDown:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:G7,getItemNodeFromIndex:P}))}}},[g,q,P]),ce=C.useCallback(function(ke){return nn({id:N.labelId,htmlFor:N.inputId},ke)},[N]),De=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ye=Re.onMouseLeave,We=Re.refKey,dt=We===void 0?"ref":We,ot=Re.ref,je=C1(Re,k1e),pt=te===void 0?{}:te;return pt.suppressRefError,nn((Me={},Me[dt]=W0(ot,function(U){v.current=U}),Me.id=N.menuId,Me.role="listbox",Me["aria-labelledby"]=je&&je["aria-label"]?void 0:""+N.labelId,Me.onMouseLeave=qo(Ye,function(){g({type:UF})}),Me),je)},[g,oe,N]),H=C.useCallback(function(ke){var te,Me,Re=ke===void 0?{}:ke,Ye=Re.item,We=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,je=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,re=Re.onClick;Re.onPress;var de=Re.disabled,xe=C1(Re,x1e),ye=q.current,Te=ye.props,Le=ye.state,ze=f1e(Ye,We,Te.items,"Pass either item or index to getItemProps!"),Xe=ze[1],jt="onClick",ue=re,Ee=function(){Xe!==Le.highlightedIndex&&(Q.current=!1,g({type:$F,index:Xe,disabled:de}))},qe=function(){g({type:K7,index:Xe})},j=function(Ve){return Ve.preventDefault()};return nn((te={},te[ot]=W0(je,function(me){me&&(w.current[N.getItemId(Xe)]=me)}),te.disabled=de,te.role="option",te["aria-selected"]=""+(Xe===Le.highlightedIndex),te.id=N.getItemId(Xe),te),!de&&(Me={},Me[jt]=qo(ue,qe),Me),{onMouseMove:qo(pt,Ee),onMouseDown:qo(U,j)},xe)},[g,q,Q,N]),W=C.useCallback(function(ke){var te,Me=ke===void 0?{}:ke,Re=Me.onClick;Me.onPress;var Ye=Me.refKey,We=Ye===void 0?"ref":Ye,dt=Me.ref,ot=C1(Me,I1e),je=q.current.state,pt=function(){g({type:zF})};return nn((te={},te[We]=W0(dt,function(U){R.current=U}),te["aria-controls"]=N.menuId,te["aria-expanded"]=je.isOpen,te.id=N.toggleButtonId,te.tabIndex=-1,te),!ot.disabled&&nn({},{onClick:qo(Re,pt)}),ot)},[g,q,N]),se=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ye=Re.onKeyDown,We=Re.onChange,dt=Re.onInput,ot=Re.onFocus,je=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,re=Re.ref,de=C1(Re,R1e),xe=te===void 0?{}:te;xe.suppressRefError;var ye=q.current.state,Te=function(j){var me=n1e(j);me&&fe[me]&&fe[me](j)},Le=function(j){g({type:W7,inputValue:j.target.value})},ze=function(j){if(ye.isOpen&&!$.current.isMouseDown){var me=j.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:zg,selectItem:!me})}},Xe=function(){ye.isOpen||g({type:q7})},jt="onChange",ue={};if(!de.disabled){var Ee;ue=(Ee={},Ee[jt]=qo(We,dt,Le),Ee.onKeyDown=qo(Ye,Te),Ee.onBlur=qo(je,ze),Ee.onFocus=qo(ot,Xe),Ee)}return nn((Me={},Me[U]=W0(re,function(qe){A.current=qe}),Me["aria-activedescendant"]=ye.isOpen&&ye.highlightedIndex>-1?N.getItemId(ye.highlightedIndex):"",Me["aria-autocomplete"]="list",Me["aria-controls"]=N.menuId,Me["aria-expanded"]=ye.isOpen,Me["aria-labelledby"]=de&&de["aria-label"]?void 0:""+N.labelId,Me.autoComplete="off",Me.id=N.inputId,Me.role="combobox",Me.value=ye.inputValue,Me),ue,de)},[oe,q,N,fe,g,$,o]),D=C.useCallback(function(){g({type:HF})},[g]),pe=C.useCallback(function(){g({type:GF})},[g]),le=C.useCallback(function(){g({type:jF})},[g]),L=C.useCallback(function(ke){g({type:VF,highlightedIndex:ke})},[g]),ie=C.useCallback(function(ke){g({type:Y7,selectedItem:ke})},[g]),Se=C.useCallback(function(ke){g({type:WF,inputValue:ke})},[g]),X=C.useCallback(function(){g({type:qF})},[g]);return{getItemProps:H,getLabelProps:ce,getMenuProps:De,getInputProps:se,getToggleButtonProps:W,toggleMenu:D,openMenu:le,closeMenu:pe,setHighlightedIndex:L,setInputValue:Se,selectItem:ie,reset:X,highlightedIndex:y,isOpen:b,selectedItem:T,inputValue:E}}function N1e(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}be.array,be.array,be.array,be.func,be.func,be.func,be.number,be.number,be.number,be.func,be.func,be.string,be.string,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});Kd.itemToString,Kd.stateReducer,Kd.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:XF,setPrototypeOf:TI,isFrozen:O1e,getPrototypeOf:D1e,getOwnPropertyDescriptor:ZF}=Object;let{freeze:ii,seal:Ya,create:QF}=Object,{apply:by,construct:yy}=typeof Reflect<"u"&&Reflect;ii||(ii=function(t){return t});Ya||(Ya=function(t){return t});by||(by=function(t,n,r){return t.apply(n,r)});yy||(yy=function(t,n){return new t(...n)});const Y0=va(Array.prototype.forEach),SI=va(Array.prototype.pop),ld=va(Array.prototype.push),Fh=va(String.prototype.toLowerCase),c4=va(String.prototype.toString),L1e=va(String.prototype.match),ud=va(String.prototype.replace),M1e=va(String.prototype.indexOf),F1e=va(String.prototype.trim),Ni=va(RegExp.prototype.test),cd=P1e(TypeError);function va(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Fh;TI&&TI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(O1e(t)||(t[r]=a),i=a)}e[i]=!0}return e}function r1(e){const t=QF(null);for(const[n,r]of XF(e))ZF(e,n)!==void 0&&(t[n]=r);return t}function X0(e,t){for(;e!==null;){const r=ZF(e,t);if(r){if(r.get)return va(r.get);if(typeof r.value=="function")return va(r.value)}e=D1e(e)}function n(r){return console.warn("fallback value for",r),null}return n}const wI=ii(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),d4=ii(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),p4=ii(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B1e=ii(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),f4=ii(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U1e=ii(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),AI=ii(["#text"]),CI=ii(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),h4=ii(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kI=ii(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z0=ii(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$1e=Ya(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z1e=Ya(/<%[\w\W]*|[\w\W]*%>/gm),H1e=Ya(/\${[\w\W]*}/gm),j1e=Ya(/^data-[\-\w.\u00B7-\uFFFF]/),G1e=Ya(/^aria-[\-\w]+$/),JF=Ya(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V1e=Ya(/^(?:\w+script|data):/i),W1e=Ya(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eP=Ya(/^html$/i);var xI=Object.freeze({__proto__:null,MUSTACHE_EXPR:$1e,ERB_EXPR:z1e,TMPLIT_EXPR:H1e,DATA_ATTR:j1e,ARIA_ATTR:G1e,IS_ALLOWED_URI:JF,IS_SCRIPT_OR_DATA:V1e,ATTR_WHITESPACE:W1e,DOCTYPE_NAME:eP});const q1e=function(){return typeof window>"u"?null:window},K1e=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function tP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q1e();const t=Ke=>tP(Ke);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,b=u.prototype,y=X0(b,"cloneNode"),T=X0(b,"nextSibling"),E=X0(b,"childNodes"),v=X0(b,"parentNode");if(typeof o=="function"){const Ke=n.createElement("template");Ke.content&&Ke.content.ownerDocument&&(n=Ke.content.ownerDocument)}let w,A="";const{implementation:R,createNodeIterator:k,createDocumentFragment:N,getElementsByTagName:B}=n,{importNode:q}=r;let P={};t.isSupported=typeof XF=="function"&&typeof v=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:$,TMPLIT_EXPR:oe,DATA_ATTR:fe,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:H}=xI;let{IS_ALLOWED_URI:W}=xI,se=null;const D=At({},[...wI,...d4,...p4,...f4,...AI]);let pe=null;const le=At({},[...CI,...h4,...kI,...Z0]);let L=Object.seal(QF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Se=null,X=!0,ke=!0,te=!1,Me=!0,Re=!1,Ye=!1,We=!1,dt=!1,ot=!1,je=!1,pt=!1,U=!0,re=!1;const de="user-content-";let xe=!0,ye=!1,Te={},Le=null;const ze=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Xe=null;const jt=At({},["audio","video","img","source","image","track"]);let ue=null;const Ee=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",j="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let Ve=me,ge=!1,G=null;const K=At({},[qe,j,me],c4);let ne=null;const ve=["application/xhtml+xml","text/html"],Qe="text/html";let Fe=null,at=null;const rt=n.createElement("form"),Je=function(J){return J instanceof RegExp||J instanceof Function},Rt=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(at&&at===J)){if((!J||typeof J!="object")&&(J={}),J=r1(J),ne=ve.indexOf(J.PARSER_MEDIA_TYPE)===-1?ne=Qe:ne=J.PARSER_MEDIA_TYPE,Fe=ne==="application/xhtml+xml"?c4:Fh,se="ALLOWED_TAGS"in J?At({},J.ALLOWED_TAGS,Fe):D,pe="ALLOWED_ATTR"in J?At({},J.ALLOWED_ATTR,Fe):le,G="ALLOWED_NAMESPACES"in J?At({},J.ALLOWED_NAMESPACES,c4):K,ue="ADD_URI_SAFE_ATTR"in J?At(r1(Ee),J.ADD_URI_SAFE_ATTR,Fe):Ee,Xe="ADD_DATA_URI_TAGS"in J?At(r1(jt),J.ADD_DATA_URI_TAGS,Fe):jt,Le="FORBID_CONTENTS"in J?At({},J.FORBID_CONTENTS,Fe):ze,ie="FORBID_TAGS"in J?At({},J.FORBID_TAGS,Fe):{},Se="FORBID_ATTR"in J?At({},J.FORBID_ATTR,Fe):{},Te="USE_PROFILES"in J?J.USE_PROFILES:!1,X=J.ALLOW_ARIA_ATTR!==!1,ke=J.ALLOW_DATA_ATTR!==!1,te=J.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=J.SAFE_FOR_TEMPLATES||!1,Ye=J.WHOLE_DOCUMENT||!1,ot=J.RETURN_DOM||!1,je=J.RETURN_DOM_FRAGMENT||!1,pt=J.RETURN_TRUSTED_TYPE||!1,dt=J.FORCE_BODY||!1,U=J.SANITIZE_DOM!==!1,re=J.SANITIZE_NAMED_PROPS||!1,xe=J.KEEP_CONTENT!==!1,ye=J.IN_PLACE||!1,W=J.ALLOWED_URI_REGEXP||JF,Ve=J.NAMESPACE||me,L=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(ke=!1),je&&(ot=!0),Te&&(se=At({},[...AI]),pe=[],Te.html===!0&&(At(se,wI),At(pe,CI)),Te.svg===!0&&(At(se,d4),At(pe,h4),At(pe,Z0)),Te.svgFilters===!0&&(At(se,p4),At(pe,h4),At(pe,Z0)),Te.mathMl===!0&&(At(se,f4),At(pe,kI),At(pe,Z0))),J.ADD_TAGS&&(se===D&&(se=r1(se)),At(se,J.ADD_TAGS,Fe)),J.ADD_ATTR&&(pe===le&&(pe=r1(pe)),At(pe,J.ADD_ATTR,Fe)),J.ADD_URI_SAFE_ATTR&&At(ue,J.ADD_URI_SAFE_ATTR,Fe),J.FORBID_CONTENTS&&(Le===ze&&(Le=r1(Le)),At(Le,J.FORBID_CONTENTS,Fe)),xe&&(se["#text"]=!0),Ye&&At(se,["html","head","body"]),se.table&&(At(se,["tbody"]),delete ie.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=J.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=K1e(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ii&&ii(J),at=J}},Qt=At({},["mi","mo","mn","ms","mtext"]),kt=At({},["foreignobject","desc","title","annotation-xml"]),rn=At({},["title","style","font","a","script"]),Xt=At({},d4);At(Xt,p4),At(Xt,B1e);const Wr=At({},f4);At(Wr,U1e);const qr=function(J){let Be=v(J);(!Be||!Be.tagName)&&(Be={namespaceURI:Ve,tagName:"template"});const it=Fh(J.tagName),un=Fh(Be.tagName);return G[J.namespaceURI]?J.namespaceURI===j?Be.namespaceURI===me?it==="svg":Be.namespaceURI===qe?it==="svg"&&(un==="annotation-xml"||Qt[un]):!!Xt[it]:J.namespaceURI===qe?Be.namespaceURI===me?it==="math":Be.namespaceURI===j?it==="math"&&kt[un]:!!Wr[it]:J.namespaceURI===me?Be.namespaceURI===j&&!kt[un]||Be.namespaceURI===qe&&!Qt[un]?!1:!Wr[it]&&(rn[it]||!Xt[it]):!!(ne==="application/xhtml+xml"&&G[J.namespaceURI]):!1},Kr=function(J){ld(t.removed,{element:J});try{J.parentNode.removeChild(J)}catch{J.remove()}},Aa=function(J,Be){try{ld(t.removed,{attribute:Be.getAttributeNode(J),from:Be})}catch{ld(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(J),J==="is"&&!pe[J])if(ot||je)try{Kr(Be)}catch{}else try{Be.setAttribute(J,"")}catch{}},si=function(J){let Be=null,it=null;if(dt)J=""+J;else{const or=L1e(J,/^[\r\n\t ]+/);it=or&&or[0]}ne==="application/xhtml+xml"&&Ve===me&&(J=''+J+"");const un=w?w.createHTML(J):J;if(Ve===me)try{Be=new m().parseFromString(un,ne)}catch{}if(!Be||!Be.documentElement){Be=R.createDocument(Ve,"template",null);try{Be.documentElement.innerHTML=ge?A:un}catch{}}const ar=Be.body||Be.documentElement;return J&&it&&ar.insertBefore(n.createTextNode(it),ar.childNodes[0]||null),Ve===me?B.call(Be,Ye?"html":"body")[0]:Ye?Be.documentElement:ar},Or=function(J){return k.call(J.ownerDocument||J,J,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Es=function(J){return J instanceof f&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof p)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},vs=function(J){return typeof s=="function"&&J instanceof s},Yr=function(J,Be,it){P[J]&&Y0(P[J],un=>{un.call(t,Be,it,at)})},_s=function(J){let Be=null;if(Yr("beforeSanitizeElements",J,null),Es(J))return Kr(J),!0;const it=Fe(J.nodeName);if(Yr("uponSanitizeElement",J,{tagName:it,allowedTags:se}),J.hasChildNodes()&&!vs(J.firstElementChild)&&Ni(/<[/\w]/g,J.innerHTML)&&Ni(/<[/\w]/g,J.textContent))return Kr(J),!0;if(!se[it]||ie[it]){if(!ie[it]&&Dr(it)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it)))return!1;if(xe&&!Le[it]){const un=v(J)||J.parentNode,ar=E(J)||J.childNodes;if(ar&&un){const or=ar.length;for(let Zn=or-1;Zn>=0;--Zn)un.insertBefore(y(ar[Zn],!0),T(J))}}return Kr(J),!0}return J instanceof u&&!qr(J)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ni(/<\/no(script|embed|frames)/i,J.innerHTML)?(Kr(J),!0):(Re&&J.nodeType===3&&(Be=J.textContent,Y0([Q,$,oe],un=>{Be=ud(Be,un," ")}),J.textContent!==Be&&(ld(t.removed,{element:J.cloneNode()}),J.textContent=Be)),Yr("afterSanitizeElements",J,null),!1)},qt=function(J,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in rt))return!1;if(!(ke&&!Se[Be]&&Ni(fe,Be))){if(!(X&&Ni(ce,Be))){if(!pe[Be]||Se[Be]){if(!(Dr(J)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,J)||L.tagNameCheck instanceof Function&&L.tagNameCheck(J))&&(L.attributeNameCheck instanceof RegExp&&Ni(L.attributeNameCheck,Be)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(Be))||Be==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ni(W,ud(it,H,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&J!=="script"&&M1e(it,"data:")===0&&Xe[J])){if(!(te&&!Ni(De,ud(it,H,"")))){if(it)return!1}}}}}}return!0},Dr=function(J){return J.indexOf("-")>0},Si=function(J){Yr("beforeSanitizeAttributes",J,null);const{attributes:Be}=J;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};let un=Be.length;for(;un--;){const ar=Be[un],{name:or,namespaceURI:Zn,value:Oo}=ar,no=Fe(or);let Lr=or==="value"?Oo:F1e(Oo);if(it.attrName=no,it.attrValue=Lr,it.keepAttr=!0,it.forceKeepAttr=void 0,Yr("uponSanitizeAttribute",J,it),Lr=it.attrValue,it.forceKeepAttr||(Aa(or,J),!it.keepAttr))continue;if(!Me&&Ni(/\/>/i,Lr)){Aa(or,J);continue}Re&&Y0([Q,$,oe],vf=>{Lr=ud(Lr,vf," ")});const Ef=Fe(J.nodeName);if(qt(Ef,no,Lr)){if(re&&(no==="id"||no==="name")&&(Aa(or,J),Lr=de+Lr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Zn)switch(g.getAttributeType(Ef,no)){case"TrustedHTML":{Lr=w.createHTML(Lr);break}case"TrustedScriptURL":{Lr=w.createScriptURL(Lr);break}}try{Zn?J.setAttributeNS(Zn,or,Lr):J.setAttribute(or,Lr),SI(t.removed)}catch{}}}Yr("afterSanitizeAttributes",J,null)},Nl=function Ke(J){let Be=null;const it=Or(J);for(Yr("beforeSanitizeShadowDOM",J,null);Be=it.nextNode();)Yr("uponSanitizeShadowNode",Be,null),!_s(Be)&&(Be.content instanceof a&&Ke(Be.content),Si(Be));Yr("afterSanitizeShadowDOM",J,null)};return t.sanitize=function(Ke){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,un=null,ar=null;if(ge=!Ke,ge&&(Ke=""),typeof Ke!="string"&&!vs(Ke))if(typeof Ke.toString=="function"){if(Ke=Ke.toString(),typeof Ke!="string")throw cd("dirty is not a string, aborting")}else throw cd("toString is not a function");if(!t.isSupported)return Ke;if(We||Rt(J),t.removed=[],typeof Ke=="string"&&(ye=!1),ye){if(Ke.nodeName){const Oo=Fe(Ke.nodeName);if(!se[Oo]||ie[Oo])throw cd("root node is forbidden and cannot be sanitized in-place")}}else if(Ke instanceof s)Be=si(""),it=Be.ownerDocument.importNode(Ke,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Ye&&Ke.indexOf("<")===-1)return w&&pt?w.createHTML(Ke):Ke;if(Be=si(Ke),!Be)return ot?null:pt?A:""}Be&&dt&&Kr(Be.firstChild);const or=Or(ye?Ke:Be);for(;un=or.nextNode();)_s(un)||(un.content instanceof a&&Nl(un.content),Si(un));if(ye)return Ke;if(ot){if(je)for(ar=N.call(Be.ownerDocument);Be.firstChild;)ar.appendChild(Be.firstChild);else ar=Be;return(pe.shadowroot||pe.shadowrootmode)&&(ar=q.call(r,ar,!0)),ar}let Zn=Ye?Be.outerHTML:Be.innerHTML;return Ye&&se["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ni(eP,Be.ownerDocument.doctype.name)&&(Zn=" `+Zn),Re&&Y0([Q,$,oe],Oo=>{Zn=ud(Zn,Oo," ")}),w&&pt?w.createHTML(Zn):Zn},t.setConfig=function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rt(Ke),We=!0},t.clearConfig=function(){at=null,We=!1},t.isValidAttribute=function(Ke,J,Be){at||Rt({});const it=Fe(Ke),un=Fe(J);return qt(it,un,Be)},t.addHook=function(Ke,J){typeof J=="function"&&(P[Ke]=P[Ke]||[],ld(P[Ke],J))},t.removeHook=function(Ke){if(P[Ke])return SI(P[Ke])},t.removeHooks=function(Ke){P[Ke]&&(P[Ke]=[])},t.removeAllHooks=function(){P={}},t}var Y1e=tP(),Z7={};const X1e={folder:["folder","white"],"karma.conf.js":["karma","green"],"karma.conf.coffee":["karma","green"],"README.md":["info","blue"],"CHANGELOG.md":["clock","blue"],CHANGELOG:["clock","blue"],"CHANGES.md":["clock","blue"],"VERSION.md":["clock","blue"],VERSION:["clock","blue"],mvnw:["maven","red"],"tsconfig.json":["tsconfig","blue"],"swagger.json":["json","green"],"swagger.yml":["json","green"],"swagger.yaml":["json","green"],"mime.types":["config","grey-light"],Jenkinsfile:["jenkins","red"],"babel.config.js":["babel","yellow"],"babel.config.json":["babel","yellow"],"babel.config.cjs":["babel","yellow"],"bower.json":["bower","orange"],"Bower.json":["bower","orange"],"firebase.json":["firebase","orange"],geckodriver:["firefox","orange"],"Gruntfile.js":["grunt","orange"],"gruntfile.babel.js":["grunt","orange"],"Gruntfile.babel.js":["grunt","orange"],"gruntfile.js":["grunt","orange"],"Gruntfile.coffee":["grunt","orange"],"gruntfile.coffee":["grunt","orange"],"ionic.config.json":["ionic","blue"],"Ionic.config.json":["ionic","blue"],"ionic.project":["ionic","blue"],"Ionic.project":["ionic","blue"],"platformio.ini":["platformio","orange"],"rollup.config.js":["rollup","red"],"sass-lint.yml":["sass","pink"],"stylelint.config.js":["stylelint","white"],"stylelint.config.cjs":["stylelint","white"],"yarn.clean":["yarn","blue"],"yarn.lock":["yarn","blue"],"webpack.config.js":["webpack","blue"],"webpack.config.build.js":["webpack","blue"],"webpack.common.js":["webpack","blue"],"webpack.dev.js":["webpack","blue"],"webpack.prod.js":["webpack","blue"],"npm-debug.log":["npm_ignored","ignore"]},Z1e={".bsl":["bsl","red"],".mdo":["mdo","red"],".cls":["salesforce","blue"],".apex":["salesforce","blue"],".asm":["asm","red"],".s":["asm","red"],".bicep":["bicep","blue"],".c":["c","blue"],".h":["c","purple"],".m":["c","yellow"],".cs":["c-sharp","blue"],".cshtml":["html","blue"],".aspx":["html","blue"],".ascx":["html","green"],".asax":["html","yellow"],".master":["html","yellow"],".cc":["cpp","blue"],".cpp":["cpp","blue"],".cxx":["cpp","blue"],".c++":["cpp","blue"],".hh":["cpp","purple"],".hpp":["cpp","purple"],".hxx":["cpp","purple"],".h++":["cpp","purple"],".mm":["cpp","yellow"],".clj":["clojure","green"],".cljs":["clojure","green"],".cljc":["clojure","green"],".edn":["clojure","blue"],".cfc":["coldfusion","blue"],".cfm":["coldfusion","blue"],".coffee":["coffee","yellow"],".litcoffee":["coffee","yellow"],".config":["config","grey-light"],".cfg":["config","grey-light"],".conf":["config","grey-light"],".cr":["crystal","white"],".ecr":["crystal_embedded","white"],".slang":["crystal_embedded","white"],".cson":["json","yellow"],".css":["css","blue"],".css.map":["css","blue"],".sss":["css","blue"],".csv":["csv","green"],".xls":["xls","green"],".xlsx":["xls","green"],".cu":["cu","green"],".cuh":["cu","purple"],".hu":["cu","purple"],".cake":["cake","red"],".ctp":["cake_php","red"],".d":["d","red"],".doc":["word","blue"],".docx":["word","blue"],".ejs":["ejs","yellow"],".ex":["elixir","purple"],".exs":["elixir_script","purple"],".elm":["elm","blue"],".ico":["favicon","yellow"],".fs":["f-sharp","blue"],".fsx":["f-sharp","blue"],".gitignore":["git","ignore"],".gitconfig":["git","ignore"],".gitkeep":["git","ignore"],".gitattributes":["git","ignore"],".gitmodules":["git","ignore"],".go":["go2","blue"],".slide":["go","blue"],".article":["go","blue"],".gd":["godot","blue"],".godot":["godot","red"],".tres":["godot","yellow"],".tscn":["godot","purple"],".gradle":["gradle","blue"],".groovy":["grails","green"],".gsp":["grails","green"],".gql":["graphql","pink"],".graphql":["graphql","pink"],".graphqls":["graphql","pink"],".hack":["hacklang","orange"],".haml":["haml","red"],".handlebars":["mustache","orange"],".hbs":["mustache","orange"],".hjs":["mustache","orange"],".hs":["haskell","purple"],".lhs":["haskell","purple"],".hx":["haxe","orange"],".hxs":["haxe","yellow"],".hxp":["haxe","blue"],".hxml":["haxe","purple"],".html":["html","orange"],".jade":["jade","red"],".java":["java","red"],".class":["java","red"],".classpath":["java","red"],".properties":["java","red"],".js":["javascript","yellow"],".js.map":["javascript","yellow"],".spec.js":["javascript","orange"],".test.js":["javascript","orange"],".es":["javascript","yellow"],".es5":["javascript","yellow"],".es6":["javascript","yellow"],".es7":["javascript","yellow"],".jinja":["jinja","red"],".jinja2":["jinja","red"],".json":["json","yellow"],".jl":["julia","purple"],".kt":["kotlin","orange"],".kts":["kotlin","orange"],".dart":["dart","blue"],".less":["less","blue"],".liquid":["liquid","green"],".ls":["livescript","blue"],".lua":["lua","blue"],".markdown":["markdown","blue"],".md":["markdown","blue"],".argdown":["argdown","blue"],".ad":["argdown","blue"],".mustache":["mustache","orange"],".stache":["mustache","orange"],".nim":["nim","yellow"],".nims":["nim","yellow"],".github-issues":["github","white"],".ipynb":["notebook","blue"],".njk":["nunjucks","green"],".nunjucks":["nunjucks","green"],".nunjs":["nunjucks","green"],".nunj":["nunjucks","green"],".njs":["nunjucks","green"],".nj":["nunjucks","green"],".npm-debug.log":["npm","ignore"],".npmignore":["npm","red"],".npmrc":["npm","red"],".ml":["ocaml","orange"],".mli":["ocaml","orange"],".cmx":["ocaml","orange"],".cmxa":["ocaml","orange"],".odata":["odata","orange"],".pl":["perl","blue"],".php":["php","purple"],".php.inc":["php","purple"],".pipeline":["pipeline","orange"],".pddl":["pddl","purple"],".plan":["plan","green"],".happenings":["happenings","blue"],".ps1":["powershell","blue"],".psd1":["powershell","blue"],".psm1":["powershell","blue"],".prisma":["prisma","blue"],".pug":["pug","red"],".pp":["puppet","yellow"],".epp":["puppet","yellow"],".purs":["purescript","white"],".py":["python","blue"],".jsx":["react","blue"],".spec.jsx":["react","orange"],".test.jsx":["react","orange"],".cjsx":["react","blue"],".spec.tsx":["react","orange"],".test.tsx":["react","orange"],".re":["reasonml","red"],".res":["rescript","red"],".resi":["rescript","pink"],".R":["R","blue"],".rmd":["R","blue"],".rb":["ruby","red"],".erb":["html_erb","red"],".erb.html":["html_erb","red"],".html.erb":["html_erb","red"],".rs":["rust","grey-light"],".sass":["sass","pink"],".scss":["sass","pink"],".springBeans":["spring","green"],".slim":["slim","orange"],".smarty.tpl":["smarty","yellow"],".tpl":["smarty","yellow"],".sbt":["sbt","blue"],".scala":["scala","red"],".sol":["ethereum","blue"],".styl":["stylus","green"],".svelte":["svelte","red"],".swift":["swift","orange"],".sql":["db","pink"],".soql":["db","blue"],".tf":["terraform","purple"],".tf.json":["terraform","purple"],".tfvars":["terraform","purple"],".tex":["tex","blue"],".sty":["tex","yellow"],".dtx":["tex","orange"],".ins":["tex","white"],".txt":["default","white"],".toml":["config","grey-light"],".twig":["twig","green"],".ts":["typescript","blue"],".tsx":["typescript","blue"],".spec.ts":["typescript","orange"],".test.ts":["typescript","orange"],".vala":["vala","grey-light"],".vapi":["vala","grey-light"],".component":["html","orange"],".vue":["vue","green"],".wasm":["wasm","purple"],".wat":["wat","purple"],".xml":["xml","orange"],".yml":["yml","purple"],".yaml":["yml","purple"],".pro":["prolog","orange"],".jar":["zip","red"],".zip":["zip","grey-light"],".wgt":["wgt","blue"],".ai":["illustrator","yellow"],".psd":["photoshop","blue"],".pdf":["pdf","red"],".eot":["font","red"],".ttf":["font","red"],".woff":["font","red"],".woff2":["font","red"],".gif":["image","purple"],".jpg":["image","purple"],".jpeg":["image","purple"],".png":["image","purple"],".pxm":["image","purple"],".svg":["svg","purple"],".svgx":["image","purple"],".tiff":["image","purple"],".webp":["image","purple"],".sublime-project":["sublime","orange"],".sublime-workspace":["sublime","orange"],".code-search":["code-search","purple"],".sh":["shell","green"],".zsh":["shell","green"],".fish":["shell","green"],".zshrc":["shell","green"],".bashrc":["shell","green"],".mov":["video","pink"],".ogv":["video","pink"],".webm":["video","pink"],".avi":["video","pink"],".mpg":["video","pink"],".mp4":["video","pink"],".mp3":["audio","purple"],".ogg":["audio","purple"],".wav":["audio","purple"],".flac":["audio","purple"],".3ds":["svg","blue"],".3dm":["svg","blue"],".stl":["svg","blue"],".obj":["svg","blue"],".dae":["svg","blue"],".bat":["windows","blue"],".cmd":["windows","blue"],".babelrc":["babel","yellow"],".babelrc.js":["babel","yellow"],".babelrc.cjs":["babel","yellow"],".bowerrc":["bower","orange"],".codeclimate.yml":["code-climate","green"],".eslintrc":["eslint","purple"],".eslintrc.js":["eslint","purple"],".eslintrc.cjs":["eslint","purple"],".eslintrc.yaml":["eslint","purple"],".eslintrc.yml":["eslint","purple"],".eslintrc.json":["eslint","purple"],".eslintignore":["eslint","grey"],".firebaserc":["firebase","orange"],".jshintrc":["javascript","blue"],".jscsrc":["javascript","blue"],".stylelintrc":["stylelint","white"],".stylelintrc.json":["stylelint","white"],".stylelintrc.yaml":["stylelint","white"],".stylelintrc.yml":["stylelint","white"],".stylelintrc.js":["stylelint","white"],".stylelintignore":["stylelint","grey"],".direnv":["config","grey-light"],".env":["config","grey-light"],".static":["config","grey-light"],".editorconfig":["config","grey-light"],".slugignore":["config","grey-light"],".tmp":["clock","grey-light"],".htaccess":["config","grey-light"],".key":["lock","green"],".cert":["lock","green"],".cer":["lock","green"],".crt":["lock","green"],".pem":["lock","green"],".DS_Store":["ignored","ignore"]},Q1e=[["TODO",["todo","blue"]],["Procfile",["heroku","purple"]],["cmakelists.txt",["makefile","blue"]],["CMakeLists.txt",["makefile","blue"]],["CMAKELISTS.txt",["makefile","blue"]],["CMAKELISTS.TXT",["makefile","blue"]],["omakefile",["makefile","grey-light"]],["OMakefile",["makefile","grey-light"]],["OMAKEFILE",["makefile","grey-light"]],["qmakefile",["makefile","purple"]],["QMakefile",["makefile","purple"]],["QMAKEFILE",["makefile","purple"]],["makefile",["makefile","orange"]],["Makefile",["makefile","orange"]],["MAKEFILE",["makefile","orange"]],["CONTRIBUTING",["license","red"]],["COMPILING",["license","orange"]],["COPYING",["license","yellow"]],["LICENCE.md",["license","yellow"]],["LICENSE.md",["license","yellow"]],["LICENCE",["license","yellow"]],["LICENSE",["license","yellow"]],["gulpfile.js",["gulp","red"]],["gulpfile",["gulp","red"]],["Gulpfile",["gulp","red"]],["GULPFILE",["gulp","red"]],["docker-compose.override.yaml",["docker","pink"]],["docker-compose.override.yml",["docker","pink"]],["docker-compose.yaml",["docker","pink"]],["docker-compose.yml",["docker","pink"]],["docker-healthcheck",["docker","green"]],[".dockerignore",["docker","grey"]],["DOCKERFILE",["docker","blue"]],["Dockerfile",["docker","blue"]],["dockerfile",["docker","blue"]],["gemfile",["ruby","red"]],["Gemfile",["ruby","red"]],["mix",["hex","red"]]],J1e={files:X1e,extensions:Z1e,partials:Q1e,default:["default","white"]},ece='',tce='',nce='',rce='',ice='',ace='',oce='',sce='',lce='',uce='',cce='',dce='',pce='',fce='',hce='',gce='',mce='',bce='',yce='',Ece='',vce='',_ce='',Tce='',Sce='',wce='',Ace='',Cce='',kce='',xce='',Ice='',Rce='',Nce='',Oce='',Dce='',Lce='',Mce='',Fce='',Pce='',Bce='',Uce='',$ce='',zce='',Hce='',jce='',Gce='',Vce='',Wce='',qce='',Kce='',Yce='',Xce='',Zce='',Qce='',Jce='',ede='',tde='',nde='',rde='',ide='',ade='',ode='',sde='',lde='',ude='',cde='',dde='',pde='',fde='',hde='',gde='',mde='',bde='',yde='',Ede='',vde='',_de='',Tde='',Sde='',wde='',Ade='',Cde='',kde='',xde='',Ide='',Rde='',Nde='',Ode='',Dde='',Lde='',Mde='',Fde='',Pde='',Bde='',Ude='',$de='',zde='',Hde='',jde='',Gde='',Vde='',Wde='',qde='',Kde='',Yde='',Xde='',Zde='',Qde='',Jde='',epe='',tpe='',npe='',rpe='',ipe='',ape='',ope='',spe='',lpe='',upe='',cpe='',dpe='',ppe='',fpe='',hpe='',gpe='',mpe='',bpe='',ype='',Epe='',vpe='',_pe='',Tpe='',Spe='',wpe='',Ape='',Cpe='',kpe='',xpe='',Ipe='',Rpe='',Npe='',Ope='',Dpe='',Lpe='',Mpe={folder:ece,bsl:tce,mdo:nce,salesforce:rce,asm:ice,bicep:ace,c:oce,"c-sharp":'',html:sce,cpp:lce,clojure:uce,coldfusion:cce,coffee:dce,config:pce,crystal:fce,crystal_embedded:hce,json:gce,css:mce,csv:bce,xls:yce,cu:Ece,cake:vce,cake_php:_ce,d:Tce,word:Sce,ejs:wce,elixir:Ace,elixir_script:Cce,hex:kce,elm:xce,favicon:Ice,"f-sharp":'',git:Rce,go2:Nce,go:Oce,godot:Dce,gradle:Lce,grails:Mce,graphql:Fce,hacklang:Pce,haml:Bce,mustache:Uce,haskell:$ce,haxe:zce,jade:Hce,java:jce,javascript:Gce,jinja:Vce,julia:Wce,karma:qce,kotlin:Kce,dart:Yce,less:Xce,liquid:Zce,livescript:Qce,lua:Jce,markdown:ede,argdown:tde,info:nde,clock:rde,maven:ide,nim:ade,github:ode,notebook:sde,nunjucks:lde,npm:ude,ocaml:cde,odata:dde,perl:pde,php:fde,pipeline:hde,pddl:gde,plan:mde,happenings:bde,powershell:yde,prisma:Ede,pug:vde,puppet:_de,purescript:Tde,python:Sde,react:wde,reasonml:Ade,rescript:Cde,R:kde,ruby:xde,html_erb:Ide,rust:Rde,sass:Nde,spring:Ode,slim:Dde,smarty:Lde,sbt:Mde,scala:Fde,ethereum:Pde,stylus:Bde,svelte:Ude,swift:$de,db:zde,terraform:Hde,tex:jde,default:'',twig:Gde,typescript:Vde,tsconfig:Wde,vala:qde,vue:Kde,wasm:Yde,wat:Xde,xml:Zde,yml:Qde,prolog:Jde,zip:epe,wgt:tpe,illustrator:npe,photoshop:rpe,pdf:ipe,font:ape,image:ope,svg:spe,sublime:lpe,"code-search":'',shell:upe,video:cpe,audio:dpe,windows:ppe,jenkins:fpe,babel:hpe,bower:gpe,docker:mpe,"code-climate":'',eslint:bpe,firebase:ype,firefox:Epe,grunt:vpe,gulp:_pe,ionic:Tpe,platformio:Spe,rollup:wpe,stylelint:Ape,yarn:Cpe,webpack:kpe,lock:xpe,license:Ipe,makefile:Rpe,heroku:Npe,todo:Ope,npm_ignored:Dpe,ignored:Lpe};var Hg=Jl&&Jl.__assign||function(){return Hg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return i[1]}return i1.default},nP=function(e){var t=Upe(e),n=t[0],r=t[1];return{svg:Bpe[n],color:r}};Z7.getIcon=nP;var $pe=function(e){return function(t){var n=nP(t);return Hg(Hg({},n),{color:e[n.color]})}},zpe=Z7.themeIcons=$pe;const Ey=({filename:e,height:t,width:n})=>{const r=zpe({blue:"#268bd2",grey:"#657b83","grey-light":"#839496",green:"#859900",orange:"#cb4b16",pink:"#d33682",purple:"#6c71c4",red:"#dc322f",white:"#fdf6e3",yellow:"#b58900",ignore:"#586e75"}),{svg:i,color:a}=r(e),o=Y1e.sanitize(i);return I.jsx("div",{dangerouslySetInnerHTML:{__html:o},style:{width:n,height:t,fill:a}})};var Q7={};Object.defineProperty(Q7,"__esModule",{value:!0});Q7.testFunc=void 0;var Hpe=function(){console.log("test")};Q7.testFunc=Hpe;function jpe(e,t){var n;if(typeof vscode>"u"){if(localStorage.getItem("ide"),window.postIntellijMessage===void 0)throw console.log("Unable to send message: postIntellijMessage is undefined. ",e,t),new Error("postIntellijMessage is undefined");(n=window.postIntellijMessage)==null||n.call(window,e,t);return}vscode.postMessage({type:e,...t})}function qa(e,t,n=0){try{jpe(e,t)}catch(r){n<5?(console.log(`Attempt ${n} failed. Retrying...`),setTimeout(()=>qa(e,t,n+1),Math.pow(2,n)*1e3)):console.error("Max attempts reached. Message could not be sent.",r)}}var rP={exports:{}},iP={};/** * @license React * use-sync-external-store-shim.production.min.js @@ -606,11 +606,11 @@ Hint: It might not be working because maybe you're not up to date with the Meili ${({isLastItem:e})=>e&&"border-bottom: 1px solid gray;"} cursor: pointer; z-index: 500; -`,QI=st.forwardRef((e,t)=>{var Te,Le,ze,Ye,jt,ue,Ee,qe;const n=zt(j=>j.serverState.meilisearchUrl||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const j=new G0e({host:n});i(j)},[n]);const a=C.useContext(to),o=eo(),s=zt(j=>j.config.workspacePaths);zt(j=>j.sessionState.history);const[u,c]=st.useState([]),[p,f]=st.useState(0),[m,g]=st.useState([]),b=st.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Te=b.current)==null?void 0:Te.scrollHeight,(Le=b.current)==null?void 0:Le.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[y,T]=C.useState(!1),[E,v]=C.useState(void 0),[w,A]=C.useState(void 0),R=zt(j=>{var me;return((me=j.serverState.slashCommands)==null?void 0:me.map(Ve=>({name:`/${Ve.name}`,description:Ve.description})))||[]}),k=zt(j=>typeof e.index<"u"?j.sessionState.contextItemsAtIndex[e.index]||[]:j.sessionState.context_items||[]),N=zt(j=>j.sessionState.history),B=zt(j=>j.sessionState.active);C.useEffect(()=>{y||(v(void 0),A(void 0))},[y]);const q=zt(j=>j.serverState.contextProviders),P=()=>{T(!1),v(void 0),A(void 0),H.setInputValue("@")};C.useEffect(()=>{E||g((q==null?void 0:q.map(j=>({name:j.display_title,description:j.description,id:j.title})).sort((j,me)=>j.id==="file"?-1:1))||[])},[E]);const[Q,$]=C.useState(""),oe=C.useCallback(async(j,me)=>{const Ve=await(a==null?void 0:a.getContextItem(j,me));e.isMainInput?o(TP(Ve)):typeof e.index<"u"&&o(SP({item:Ve,index:e.index}))},[a,e.index]),fe=C.useCallback(({inputValue:j,highlightedIndex:me})=>{var Ve;if(!j){g([]),v(void 0),T(!1);return}if(Q===""&&(q!=null&&q.some(ge=>ge.display_title===j))){H.setInputValue(""),$("");return}if($(j),w&&!j.startsWith(`@${w.title}`)&&A(void 0),(Ve=e.onInputValueChange)==null||Ve.call(e,j),j.endsWith("@")||y){const ge=(j==null?void 0:j.split("@"))||[];if(ge.length>1){T(!0);const G=ge[ge.length-1]||"";if(E&&!j.endsWith("@")){const K=G.split(" ");ce(E.title,K.length>1?K[1]:"").then(ne=>{g(ne)})}else{const K=(q==null?void 0:q.filter(ne=>`@${ne.title}`.toLowerCase().startsWith(j.toLowerCase())||`@${ne.display_title}`.toLowerCase().startsWith(j.toLowerCase())).map(ne=>({name:ne.display_title,description:ne.description,id:ne.title})).sort((ne,ve)=>ne.id==="file"?-1:1))||[];g(K),T(!0)}return}else T(!1),v(void 0)}v(void 0),g((R==null?void 0:R.filter(ge=>{const G=ge.name.toLowerCase(),K=j.toLowerCase();return G.startsWith(K)&&G!==K}))||[]),(j.startsWith("/")||j.startsWith("@"))&&o(Ad(null))},[R,y,E,w]),ce=async(j,me)=>{const Ve=s&&s.length>0?`workspace_dir IN [ ${s.map(ge=>`"${ge}"`).join(", ")} ] AND provider_name = '${j}'`:void 0;try{const ge=await(r==null?void 0:r.index(J0e).search(me,{filter:Ve}));return(ge==null?void 0:ge.hits.map(G=>({name:G.name,description:G.description,id:G.id,content:G.content})))||[]}catch(ge){return console.log("Error searching context items",ge),[]}},{getInputProps:De,...H}=YF({onInputValueChange:fe,items:m,itemToString(j){return j?j.name:""}});C.useEffect(()=>{H.highlightedIndex<0&&H.setHighlightedIndex(0)},[H.inputValue]);const W=st.useRef(null),se=st.useRef(null),D=()=>{var j;return(((j=W.current)==null?void 0:j.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>RP};C.useImperativeHandle(t,()=>H,[H]);const pe=st.useRef(null),le=C.useCallback(()=>{var ge;if(ye(!0),!pe.current)return;const j=pe.current.querySelectorAll(`.pill-button-${e.index||"main"}`),me=Array.from(j),Ve=me.findIndex(G=>G===document.activeElement);if(Ve===me.length-1)(ge=b.current)==null||ge.focus();else if(Ve!==-1){const G=me[(Ve+1)%me.length];G==null||G.focus()}else{const G=me[0];G==null||G.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const j=me=>{me.key==="Tab"&&(me.preventDefault(),le())};return b.current.addEventListener("keydown",j),()=>{var me;(me=b.current)==null||me.removeEventListener("keydown",j)}}},[b.current]),C.useEffect(()=>{e.value&&H.setInputValue(e.value)},[e.value,H.setInputValue]);const[L,ie]=C.useState(!1);C.useLayoutEffect(()=>{se.current&&H.setHighlightedIndex(0)},[m,H.setHighlightedIndex,se.current]);const[Se,X]=C.useState(!1),[ke,te]=C.useState(!1);C.useEffect(()=>{const j=Ve=>{Ve.key==="Meta"&&X(!0)},me=Ve=>{Ve.key==="Meta"&&X(!1)};return window.addEventListener("keydown",j),window.addEventListener("keyup",me),()=>{window.removeEventListener("keydown",j),window.removeEventListener("keyup",me)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const j=me=>{var Ve;me.data.type==="focusContinueInput"?(b.current.focus(),o(Ad(null))):me.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(Ve=b.current)!=null&&Ve.value.startsWith("/edit")||H.setInputValue("/edit "),o(Ad(null))):me.data.type==="focusContinueInputWithNewSession"&&(a==null||a.stopSession(),o(uc()),o(Ad(null)))};return window.addEventListener("message",j),()=>{window.removeEventListener("message",j)}},[b.current,e.isMainInput]);const Me=st.useRef(null),Re=C.useCallback(j=>{const me=m[H.highlightedIndex],Ve=me==null?void 0:me.name,ge=q.find(G=>G.display_title===Ve);if(ge){if(ge.dynamic&&ge.requires_query){A(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}else if(ge.dynamic){if(!me.id)return;const G=H.inputValue.split("@"),K=G[G.length-1];if(oe(me.id,K),H.inputValue.includes("@")){const ne=q.find(ve=>ve.title===me.id);!E&&!(ne!=null&&ne.dynamic)?(H.setInputValue(`@${me.id} `),v(ne)):H.setInputValue("")}H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}}else{if(E&&me.id){oe(me.id,""),H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}v(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault(),ce(ge.title,"").then(G=>g(G))},[m,H.highlightedIndex,q,E,H.inputValue,oe]),[Ze,We]=C.useState(!1),[dt,ot]=C.useState(!1),[je,pt]=C.useState(void 0),[U,re]=C.useState(void 0),de=st.useRef(null),[xe,ye]=C.useState(!1);return C.useEffect(()=>{ke||ye(!1)},[ke]),I.jsxs("div",{ref:de,style:{paddingTop:"4px",backgroundColor:Ht},children:[k.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",paddingTop:pr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var j;H.setInputValue("@"),(j=b.current)==null||j.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Ye=H.inputValue)==null?void 0:Ye.startsWith("/edit"))||ke&&Se&&((jt=H.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||k.length>0&&xe?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:pe,style:{backgroundColor:Ht},children:[k.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:j=>{ot(me=>!me)},id:"toggle-context-div",children:dt?I.jsx(gZ,{width:"14px",height:"14px",color:Et}):I.jsx(yZ,{width:"14px",height:"14px",color:Et})}),I.jsx(nhe,{className:k.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var j;o(w4({ids:k.map(me=>me.description.id),index:e.index})),(j=b.current)==null||j.focus(),pt(void 0),re(void 0)},onKeyDown:j=>{var me;j.key==="Backspace"&&(o(w4({ids:k.map(Ve=>Ve.description.id),index:e.index})),(me=b.current)==null||me.focus(),pt(void 0),re(void 0))},children:I.jsx(kL,{width:"1.4em",height:"1.4em"})}),k.map((j,me)=>{var Ve,ge,G,K;return I.jsx(A0e,{inputIndex:e.index,areMultipleItems:k.length>1,item:j,editing:j.editing&&((ge=(Ve=b.current)==null?void 0:Ve.value)==null?void 0:ge.startsWith("/edit")),editingAny:(K=(G=b.current)==null?void 0:G.value)==null?void 0:K.startsWith("/edit"),stepIndex:e.index,index:me,onDelete:()=>{var ne;o(w4({ids:[j.description.id],index:e.index})),(ne=b.current)==null||ne.focus(),(j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name||j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name)&&(pt(void 0),re(void 0))},onClick:ne=>{j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name?re(void 0):re(j)},onBlur:()=>{re(void 0)},toggleViewContent:()=>{pt(ne=>{if(!ne)return j;if(!(ne.description.id.item_id===j.description.id.item_id&&ne.description.id.provider_name===j.description.id.provider_name))return j})},previewing:j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name,focusing:j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name,prefixInputWithEdit:ne=>{var ve,Qe,Fe;!ne&&((ve=b.current)!=null&&ve.value.startsWith("/edit"))&&H.setInputValue((Qe=b.current)==null?void 0:Qe.value.replace("/edit ","")),!H.inputValue.startsWith("/edit")&&(H.setInputValue(`/edit ${H.inputValue}`),(Fe=b.current)==null||Fe.focus())}},`${j.description.id.item_id}${me}`)})]}):k.length>0&&I.jsxs("div",{onClick:()=>{var j;(j=b.current)==null||j.focus(),ye(!0)},style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",cursor:"default",paddingTop:pr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",k.length," ","context item",k.length===1?"":"s"]}),je&&I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(je.description.description)} +`,QI=st.forwardRef((e,t)=>{var Te,Le,ze,Xe,jt,ue,Ee,qe;const n=zt(j=>j.serverState.meilisearchUrl||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const j=new G0e({host:n});i(j)},[n]);const a=C.useContext(to),o=eo(),s=zt(j=>j.config.workspacePaths);zt(j=>j.sessionState.history);const[u,c]=st.useState([]),[p,f]=st.useState(0),[m,g]=st.useState([]),b=st.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Te=b.current)==null?void 0:Te.scrollHeight,(Le=b.current)==null?void 0:Le.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[y,T]=C.useState(!1),[E,v]=C.useState(void 0),[w,A]=C.useState(void 0),R=zt(j=>{var me;return((me=j.serverState.slashCommands)==null?void 0:me.map(Ve=>({name:`/${Ve.name}`,description:Ve.description})))||[]}),k=zt(j=>typeof e.index<"u"?j.sessionState.contextItemsAtIndex[e.index]||[]:j.sessionState.context_items||[]),N=zt(j=>j.sessionState.history),B=zt(j=>j.sessionState.active);C.useEffect(()=>{y||(v(void 0),A(void 0))},[y]);const q=zt(j=>j.serverState.contextProviders),P=()=>{T(!1),v(void 0),A(void 0),H.setInputValue("@")};C.useEffect(()=>{E||g((q==null?void 0:q.map(j=>({name:j.display_title,description:j.description,id:j.title})).sort((j,me)=>j.id==="file"?-1:1))||[])},[E]);const[Q,$]=C.useState(""),oe=C.useCallback(async(j,me)=>{const Ve=await(a==null?void 0:a.getContextItem(j,me));e.isMainInput?o(TP(Ve)):typeof e.index<"u"&&o(SP({item:Ve,index:e.index}))},[a,e.index]),fe=C.useCallback(({inputValue:j,highlightedIndex:me})=>{var Ve;if(!j){g([]),v(void 0),T(!1);return}if(Q===""&&(q!=null&&q.some(ge=>ge.display_title===j))){H.setInputValue(""),$("");return}if($(j),w&&!j.startsWith(`@${w.title}`)&&A(void 0),(Ve=e.onInputValueChange)==null||Ve.call(e,j),j.endsWith("@")||y){const ge=(j==null?void 0:j.split("@"))||[];if(ge.length>1){T(!0);const G=ge[ge.length-1]||"";if(E&&!j.endsWith("@")){const K=G.split(" ");ce(E.title,K.length>1?K[1]:"").then(ne=>{g(ne)})}else{const K=(q==null?void 0:q.filter(ne=>`@${ne.title}`.toLowerCase().startsWith(j.toLowerCase())||`@${ne.display_title}`.toLowerCase().startsWith(j.toLowerCase())).map(ne=>({name:ne.display_title,description:ne.description,id:ne.title})).sort((ne,ve)=>ne.id==="file"?-1:1))||[];g(K),T(!0)}return}else T(!1),v(void 0)}v(void 0),g((R==null?void 0:R.filter(ge=>{const G=ge.name.toLowerCase(),K=j.toLowerCase();return G.startsWith(K)&&G!==K}))||[]),(j.startsWith("/")||j.startsWith("@"))&&o(Ad(null))},[R,y,E,w]),ce=async(j,me)=>{const Ve=s&&s.length>0?`workspace_dir IN [ ${s.map(ge=>`"${ge}"`).join(", ")} ] AND provider_name = '${j}'`:void 0;try{const ge=await(r==null?void 0:r.index(J0e).search(me,{filter:Ve}));return(ge==null?void 0:ge.hits.map(G=>({name:G.name,description:G.description,id:G.id,content:G.content})))||[]}catch(ge){return console.log("Error searching context items",ge),[]}},{getInputProps:De,...H}=YF({onInputValueChange:fe,items:m,itemToString(j){return j?j.name:""}});C.useEffect(()=>{H.highlightedIndex<0&&H.setHighlightedIndex(0)},[H.inputValue]);const W=st.useRef(null),se=st.useRef(null),D=()=>{var j;return(((j=W.current)==null?void 0:j.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>RP};C.useImperativeHandle(t,()=>H,[H]);const pe=st.useRef(null),le=C.useCallback(()=>{var ge;if(ye(!0),!pe.current)return;const j=pe.current.querySelectorAll(`.pill-button-${e.index||"main"}`),me=Array.from(j),Ve=me.findIndex(G=>G===document.activeElement);if(Ve===me.length-1)(ge=b.current)==null||ge.focus();else if(Ve!==-1){const G=me[(Ve+1)%me.length];G==null||G.focus()}else{const G=me[0];G==null||G.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const j=me=>{me.key==="Tab"&&(me.preventDefault(),le())};return b.current.addEventListener("keydown",j),()=>{var me;(me=b.current)==null||me.removeEventListener("keydown",j)}}},[b.current]),C.useEffect(()=>{e.value&&H.setInputValue(e.value)},[e.value,H.setInputValue]);const[L,ie]=C.useState(!1);C.useLayoutEffect(()=>{se.current&&H.setHighlightedIndex(0)},[m,H.setHighlightedIndex,se.current]);const[Se,X]=C.useState(!1),[ke,te]=C.useState(!1);C.useEffect(()=>{const j=Ve=>{Ve.key==="Meta"&&X(!0)},me=Ve=>{Ve.key==="Meta"&&X(!1)};return window.addEventListener("keydown",j),window.addEventListener("keyup",me),()=>{window.removeEventListener("keydown",j),window.removeEventListener("keyup",me)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const j=me=>{var Ve;me.data.type==="focusContinueInput"?(b.current.focus(),o(Ad(null))):me.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(Ve=b.current)!=null&&Ve.value.startsWith("/edit")||H.setInputValue("/edit "),o(Ad(null))):me.data.type==="focusContinueInputWithNewSession"&&(a==null||a.stopSession(),o(uc()),o(Ad(null)))};return window.addEventListener("message",j),()=>{window.removeEventListener("message",j)}},[b.current,e.isMainInput]);const Me=st.useRef(null),Re=C.useCallback(j=>{const me=m[H.highlightedIndex],Ve=me==null?void 0:me.name,ge=q.find(G=>G.display_title===Ve);if(ge){if(ge.dynamic&&ge.requires_query){A(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}else if(ge.dynamic){if(!me.id)return;const G=H.inputValue.split("@"),K=G[G.length-1];if(oe(me.id,K),H.inputValue.includes("@")){const ne=q.find(ve=>ve.title===me.id);!E&&!(ne!=null&&ne.dynamic)?(H.setInputValue(`@${me.id} `),v(ne)):H.setInputValue("")}H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}}else{if(E&&me.id){oe(me.id,""),H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}v(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault(),ce(ge.title,"").then(G=>g(G))},[m,H.highlightedIndex,q,E,H.inputValue,oe]),[Ye,We]=C.useState(!1),[dt,ot]=C.useState(!1),[je,pt]=C.useState(void 0),[U,re]=C.useState(void 0),de=st.useRef(null),[xe,ye]=C.useState(!1);return C.useEffect(()=>{ke||ye(!1)},[ke]),I.jsxs("div",{ref:de,style:{paddingTop:"4px",backgroundColor:Ht},children:[k.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",paddingTop:pr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var j;H.setInputValue("@"),(j=b.current)==null||j.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Xe=H.inputValue)==null?void 0:Xe.startsWith("/edit"))||ke&&Se&&((jt=H.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||k.length>0&&xe?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:pe,style:{backgroundColor:Ht},children:[k.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:j=>{ot(me=>!me)},id:"toggle-context-div",children:dt?I.jsx(gZ,{width:"14px",height:"14px",color:Et}):I.jsx(yZ,{width:"14px",height:"14px",color:Et})}),I.jsx(nhe,{className:k.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var j;o(w4({ids:k.map(me=>me.description.id),index:e.index})),(j=b.current)==null||j.focus(),pt(void 0),re(void 0)},onKeyDown:j=>{var me;j.key==="Backspace"&&(o(w4({ids:k.map(Ve=>Ve.description.id),index:e.index})),(me=b.current)==null||me.focus(),pt(void 0),re(void 0))},children:I.jsx(kL,{width:"1.4em",height:"1.4em"})}),k.map((j,me)=>{var Ve,ge,G,K;return I.jsx(A0e,{inputIndex:e.index,areMultipleItems:k.length>1,item:j,editing:j.editing&&((ge=(Ve=b.current)==null?void 0:Ve.value)==null?void 0:ge.startsWith("/edit")),editingAny:(K=(G=b.current)==null?void 0:G.value)==null?void 0:K.startsWith("/edit"),stepIndex:e.index,index:me,onDelete:()=>{var ne;o(w4({ids:[j.description.id],index:e.index})),(ne=b.current)==null||ne.focus(),(j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name||j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name)&&(pt(void 0),re(void 0))},onClick:ne=>{j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name?re(void 0):re(j)},onBlur:()=>{re(void 0)},toggleViewContent:()=>{pt(ne=>{if(!ne)return j;if(!(ne.description.id.item_id===j.description.id.item_id&&ne.description.id.provider_name===j.description.id.provider_name))return j})},previewing:j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name,focusing:j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name,prefixInputWithEdit:ne=>{var ve,Qe,Fe;!ne&&((ve=b.current)!=null&&ve.value.startsWith("/edit"))&&H.setInputValue((Qe=b.current)==null?void 0:Qe.value.replace("/edit ","")),!H.inputValue.startsWith("/edit")&&(H.setInputValue(`/edit ${H.inputValue}`),(Fe=b.current)==null||Fe.focus())}},`${j.description.id.item_id}${me}`)})]}):k.length>0&&I.jsxs("div",{onClick:()=>{var j;(j=b.current)==null||j.focus(),ye(!0)},style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",cursor:"default",paddingTop:pr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",k.length," ","context item",k.length===1?"":"s"]}),je&&I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(je.description.description)} ${je.content} \`\`\``,maxHeight:200})}),dt&&I.jsx("div",{children:k.map(j=>I.jsxs(rhe,{children:[I.jsxs(ihe,{children:[I.jsx(Ey,{height:"20px",width:"20px",filename:j.description.name}),j.description.name]}),I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(j.description.description)} ${j.content} -\`\`\``,maxHeight:200})})]}))}),I.jsxs("div",{className:"flex px-2 relative",style:{backgroundColor:Ht},ref:W,children:[I.jsxs(the,{loading:e.active||!1,isFirst:!1,isLast:!1,borderColor:e.active?void 0:Ht,borderRadius:It,children:[I.jsx(ahe,{onClick:()=>{var j;(j=b.current)==null||j.focus()},onMouseEnter:()=>ie(!0),onMouseLeave:j=>{var me;j.relatedTarget===Me.current||j.relatedTarget instanceof Node&&((me=Me.current)!=null&&me.contains(j.relatedTarget))||ie(!1)},rows:e.isMainInput?void 0:1,inQueryForDynamicProvider:typeof w<"u",fontSize:pr(),disabled:e.disabled,placeholder:"Ask a question, '/' for slash commands, '@' to add context",...De({onCompositionStart:()=>We(!0),onCompositionEnd:()=>We(!1),onChange:j=>{},onFocus:j=>{te(!0),o(pu(void 0))},onBlur:j=>{var me,Ve;(me=de.current)!=null&&me.contains(j.relatedTarget)||(Ve=document.getElementById("toggle-context-div"))!=null&&Ve.contains(j.relatedTarget)||te(!1)},onKeyDown:j=>{var me,Ve;if(o(pu(void 0)),j.key==="Enter"&&j.shiftKey)j.nativeEvent.preventDownshiftDefault=!0,T(!1);else if(j.key==="Enter"&&(!H.isOpen||m.length===0)&&!Ze){const ge=H.inputValue;if(w){const G=ge.split("@");oe(w.title,G[G.length-1]),T(!1),H.setInputValue("");return}else ge!==""&&(f(u.length+1),c([...u,ge])),j.nativeEvent.preventDownshiftDefault=!0,e.onEnter&&e.onEnter(j,ge);T(!1)}else if(j.key==="Enter"&&y)Re(j);else if(j.key==="Tab"&&H.isOpen&&m.length>0&&((me=m[H.highlightedIndex])!=null&&me.name.startsWith("/")))H.setInputValue(m[0].name),j.preventDefault();else if(j.key==="Tab")j.nativeEvent.preventDownshiftDefault=!0;else{if((j.key==="ArrowUp"||j.key==="ArrowDown")&&m.length>0)return;if(j.key==="ArrowUp"){if(p==0||j.currentTarget.selectionStart!==0){j.nativeEvent.preventDownshiftDefault=!0;return}else p==u.length&&(u.length===0||u[u.length-1]!==j.currentTarget.value)&&c([...u,j.currentTarget.value]);H.setInputValue(u[p-1]),f(ge=>ge-1),T(!1)}else if(j.key==="ArrowDown"){if(p===u.length||j.currentTarget.selectionStart!==j.currentTarget.value.length){j.nativeEvent.preventDownshiftDefault=!0;return}pMath.min(ge+1,u.length)),T(!1)}else if(j.key==="Escape"){if(E){P(),j.nativeEvent.preventDownshiftDefault=!0;return}else if(w){P(),j.nativeEvent.preventDownshiftDefault=!0;return}T(!1),H.isOpen&&m.length>0?(H.closeMenu(),j.nativeEvent.preventDownshiftDefault=!0):(j.nativeEvent.preventDownshiftDefault=!0,(Ve=b.current)==null||Ve.blur(),qa("focusEditor",{}))}else j.key==="Home"||j.key==="End"?j.nativeEvent.preventDownshiftDefault=!0:localStorage.getItem("ide")==="jetbrains"&&(Km()==="mac"?Z0e(j,H.inputValue,H.setInputValue):Q0e(j,H.inputValue,H.setInputValue))}},onClick:()=>{o(pu(void 0))},ref:b})}),e.isMainInput||I.jsx(ohe,{ref:Me,children:L&&I.jsx("div",{className:"flex",children:I.jsxs(I.Fragment,{children:[N.filter((j,me)=>{var Ve;return((Ve=e.groupIndices)==null?void 0:Ve.includes(me))&&j.logs}).some(j=>j.logs.length>0)&&I.jsx(zi,{onClick:j=>{if(j.stopPropagation(),e.groupIndices){const me=`This is the exact prompt sent to the LLM: +\`\`\``,maxHeight:200})})]}))}),I.jsxs("div",{className:"flex px-2 relative",style:{backgroundColor:Ht},ref:W,children:[I.jsxs(the,{loading:e.active||!1,isFirst:!1,isLast:!1,borderColor:e.active?void 0:Ht,borderRadius:It,children:[I.jsx(ahe,{onClick:()=>{var j;(j=b.current)==null||j.focus()},onMouseEnter:()=>ie(!0),onMouseLeave:j=>{var me;j.relatedTarget===Me.current||j.relatedTarget instanceof Node&&((me=Me.current)!=null&&me.contains(j.relatedTarget))||ie(!1)},rows:e.isMainInput?void 0:1,inQueryForDynamicProvider:typeof w<"u",fontSize:pr(),disabled:e.disabled,placeholder:"Ask a question, '/' for slash commands, '@' to add context",...De({onCompositionStart:()=>We(!0),onCompositionEnd:()=>We(!1),onChange:j=>{},onFocus:j=>{te(!0),o(pu(void 0))},onBlur:j=>{var me,Ve;(me=de.current)!=null&&me.contains(j.relatedTarget)||(Ve=document.getElementById("toggle-context-div"))!=null&&Ve.contains(j.relatedTarget)||te(!1)},onKeyDown:j=>{var me,Ve;if(!Ye)if(o(pu(void 0)),j.key==="Enter"&&j.shiftKey)j.nativeEvent.preventDownshiftDefault=!0,T(!1);else if(j.key==="Enter"&&(!H.isOpen||m.length===0)&&!Ye){const ge=H.inputValue;if(w){const G=ge.split("@");oe(w.title,G[G.length-1]),T(!1),H.setInputValue("");return}else ge!==""&&(f(u.length+1),c([...u,ge])),j.nativeEvent.preventDownshiftDefault=!0,e.onEnter&&e.onEnter(j,ge);T(!1)}else if(j.key==="Enter"&&y)Re(j);else if(j.key==="Tab"&&H.isOpen&&m.length>0&&((me=m[H.highlightedIndex])!=null&&me.name.startsWith("/")))H.setInputValue(m[0].name),j.preventDefault();else if(j.key==="Tab")j.nativeEvent.preventDownshiftDefault=!0;else{if((j.key==="ArrowUp"||j.key==="ArrowDown")&&m.length>0)return;if(j.key==="ArrowUp"){if(p==0||j.currentTarget.selectionStart!==0){j.nativeEvent.preventDownshiftDefault=!0;return}else p==u.length&&(u.length===0||u[u.length-1]!==j.currentTarget.value)&&c([...u,j.currentTarget.value]);H.setInputValue(u[p-1]),f(ge=>ge-1),T(!1)}else if(j.key==="ArrowDown"){if(p===u.length||j.currentTarget.selectionStart!==j.currentTarget.value.length){j.nativeEvent.preventDownshiftDefault=!0;return}pMath.min(ge+1,u.length)),T(!1)}else if(j.key==="Escape"){if(E){P(),j.nativeEvent.preventDownshiftDefault=!0;return}else if(w){P(),j.nativeEvent.preventDownshiftDefault=!0;return}T(!1),H.isOpen&&m.length>0?(H.closeMenu(),j.nativeEvent.preventDownshiftDefault=!0):(j.nativeEvent.preventDownshiftDefault=!0,(Ve=b.current)==null||Ve.blur(),qa("focusEditor",{}))}else j.key==="Home"||j.key==="End"?j.nativeEvent.preventDownshiftDefault=!0:localStorage.getItem("ide")==="jetbrains"&&(Km()==="mac"?Z0e(j,H.inputValue,H.setInputValue):Q0e(j,H.inputValue,H.setInputValue))}},onClick:()=>{o(pu(void 0))},ref:b})}),e.isMainInput||I.jsx(ohe,{ref:Me,children:L&&I.jsx("div",{className:"flex",children:I.jsxs(I.Fragment,{children:[N.filter((j,me)=>{var Ve;return((Ve=e.groupIndices)==null?void 0:Ve.includes(me))&&j.logs}).some(j=>j.logs.length>0)&&I.jsx(zi,{onClick:j=>{if(j.stopPropagation(),e.groupIndices){const me=`This is the exact prompt sent to the LLM: `+N.filter((Ve,ge)=>{var G;return(G=e.groupIndices)==null?void 0:G.includes(ge)}).flatMap(Ve=>Ve.logs||[]).join(` `);qa("showVirtualFile",{name:"inspect_prompt.md",content:me})}},text:"Inspect Prompt",children:I.jsx(iZ,{width:"1.3em",height:"1.3em"})}),I.jsx(zi,{onClick:j=>{var me;j.stopPropagation(),e.active&&e.groupIndices?a==null||a.stopSession():(me=e.onDelete)==null||me.call(e)},text:e.active?`Stop (${zX()}⌫)`:"Delete",children:e.active?null:I.jsx(w9,{width:"1.4em",height:"1.4em"})})]})})})]}),w&&I.jsxs(she,{children:["Enter ",w.display_title," Query"]}),I.jsxs(lhe,{...H.getMenuProps({ref:se}),isMainInput:e.isMainInput,showAbove:D(),ulHeightPixels:((ue=se.current)==null?void 0:ue.getBoundingClientRect().height)||0,hidden:!H.isOpen||m.length===0||((Ee=b.current)==null?void 0:Ee.value)==="",fontSize:pr(),children:[E&&I.jsxs("div",{style:{backgroundColor:Vt,borderBottom:`0.5px solid ${Et}`,display:"flex",gap:"4px",position:"sticky",top:"0px"},className:"py-2 px-4 my-0",children:[I.jsx(mc,{width:"1.4em",height:"1.4em",className:"cursor-pointer",onClick:j=>{var me;P(),(me=b.current)==null||me.focus()}}),E.display_title," -"," ",E.description]}),H.isOpen&&m.map((j,me)=>I.jsxs(ZI,{style:{borderTop:me===0?"none":`0.5px solid ${Et}`},...H.getItemProps({item:j,index:me}),highlighted:H.highlightedIndex===me,selected:H.selectedItem===j,onClick:Ve=>{var ge;Re(Ve),Ve.stopPropagation(),Ve.preventDefault(),(ge=b.current)==null||ge.focus()},children:[I.jsxs("span",{className:"flex justify-between w-full items-center",children:[I.jsxs("div",{className:"flex items-center justify-center",children:[E&&I.jsx(Ey,{height:"20px",width:"20px",filename:j.name}),j.name," "]}),I.jsx("span",{style:{color:Et,float:"right",textAlign:"right"},children:j.description})]}),(q==null?void 0:q.filter(Ve=>!Ve.dynamic||Ve.requires_query).find(Ve=>Ve.title===j.id))&&I.jsx(tZ,{width:"1.2em",height:"1.2em",color:Et,className:"ml-2 flex-shrink-0"})]},`${j.name}${me}`)),H.isOpen&&m.length===0&&I.jsx(ZI,{highlighted:!1,selected:!1,isLastItem:!1,children:I.jsx("span",{style:{color:Et,float:"right",textAlign:"right",display:"flex",width:"100%",cursor:"default"},children:"No items found"})},"empty-items-li")]})]}),e.isMainInput&&I.jsx(xP,{disabled:!B&&(!((qe=b.current)!=null&&qe.value)||typeof a>"u"),onClick:()=>{var j;B?(a==null||a.stopSession(),o(Zd(!1))):(j=e.onEnter)==null||j.call(e,void 0)},showStop:B})]})});function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t=0||(p[u]=o[u]);return p}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function che(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function OP(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Xg(e);if(t){var i=Xg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return che(this,n)}}function Co(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var a,o,s=[],u=!0,c=!1;try{for(i=i.call(n);!(u=(a=i.next()).done)&&(s.push(a.value),!r||s.length!==r);u=!0);}catch(p){c=!0,o=p}finally{try{u||i.return==null||i.return()}finally{if(c)throw o}}return s}}(e,t)||lT(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. @@ -626,7 +626,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * from https://github.com/LiosK/uuidv7/blob/e501462ea3d23241de13192ceae726956f9b3b7d/src/index.ts */Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e});var tR="0123456789abcdef",dhe=function(){function e(t){if(Un(this,e),this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}return $n(e,[{key:"toString",value:function(){for(var t="",n=0;n>>4)+tR.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(t){return this.compareTo(t)===0}},{key:"compareTo",value:function(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var a=new Uint8Array(16);return a[0]=t/Math.pow(2,40),a[1]=t/Math.pow(2,32),a[2]=t/Math.pow(2,24),a[3]=t/Math.pow(2,16),a[4]=t/Math.pow(2,8),a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}}]),e}(),phe=function(){function e(){Un(this,e),ct(this,"timestamp",0),ct(this,"counter",0),ct(this,"random",new fhe)}return $n(e,[{key:"generate",value:function(){var t=this.generateOrAbort();if(t!==void 0)return t;this.timestamp=0;var n=this.generateOrAbort();if(n===void 0)throw new Error("Could not generate UUID after timestamp reset");return n}},{key:"generateOrAbort",value:function(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return dhe.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),DP=function(e){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t=this.buffer.length&&(DP(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),hhe=function(){return(nR||(nR=new phe)).generate()},LP=Array.prototype,MP=Object.prototype,uT=MP.toString,ghe=MP.hasOwnProperty,ht=typeof window<"u"?window:{},Ql=ht.navigator||{userAgent:""},jn=ht.document||{},aa=Ql.userAgent,mhe=["localhost","127.0.0.1"],rR=LP.forEach,iR=LP.indexOf,bhe=Array.isArray,cT={},In={log:function(){if(ma.DEBUG&&!ja(window.console)&&window.console){for(var e=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r0&&(t[r]=n)}),t},Ehe=["$performance_raw"];function vhe(e,t){return n=e,r=function(a,o){return o&&Ehe.indexOf(o)>-1?a:typeof a=="string"&&t!==null?a.slice(0,t):a},i=new Set,function a(o,s){return o!==Object(o)?r?r(o,s):o:i.has(o)?void 0:(i.add(o),ts(o)?(u=[],os(o,function(c){u.push(a(c))})):(u={},hn(o,function(c,p){i.has(c)||(u[p]=a(c,p))})),u);var u}(n);var n,r,i}function dT(e){var t,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",p=[];if(!e)return e;e=_he(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,p[u++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},aR=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=aa,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return hhe().toString()}},The=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},oR=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{In.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},sR=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Qd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;FP(p)&&(m=p(f));var b=c.call(u,f);return m!==!1&&b!==!1||(g=!1),g}}}(t,r,s)}else In.error("No valid element provided to register_event")}}();function pT(e,t){var n=function(){var r=jn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=jn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):jn.body.appendChild(r)};jn.body?n():jn.addEventListener("DOMContentLoaded",n)}var Sr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return hn(t,function(r){var i=oR(jn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=jn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=Sr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=oR(jn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||fn(e," OPR/")?fn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":fn(e,"IEMobile")||fn(e,"WPDesktop")?"Internet Explorer Mobile":fn(e,"SamsungBrowser/")?"Samsung Internet":fn(e,"Edge")||fn(e,"Edg/")?"Microsoft Edge":fn(e,"FBIOS")?"Facebook Mobile":fn(e,"Chrome")?"Chrome":fn(e,"CriOS")?"Chrome iOS":fn(e,"UCWEB")||fn(e,"UCBrowser")?"UC Browser":fn(e,"FxiOS")?"Firefox iOS":fn(t,"Apple")?fn(e,"Mobile")?"Mobile Safari":"Safari":fn(e,"Android")?"Android Mobile":fn(e,"Konqueror")?"Konqueror":fn(e,"Firefox")?"Firefox":fn(e,"MSIE")||fn(e,"Trident/")?"Internet Explorer":fn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Sr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Ql.language||Ql.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return jn.referrer||"$direct"},referringDomain:function(){if(!jn.referrer)return"$direct";var e=jn.createElement("a");return e.href=jn.referrer,e.host},properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera),$device:Sr.device(aa),$device_type:Sr.deviceType(aa)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera),$browser_language:Sr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:ma.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:BP()/1e3})},people_properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera)}),{$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera)})}};function Zg(e){switch(pl(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Qg(e){var t="";return Ph(e)&&!zP(e)&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){$P(n)&&n.textContent&&(t+=Ry(n.textContent).split(/(\s+)/).filter(N1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Ry(t)}function lR(e){return!!e&&e.nodeType===1}function fu(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function $P(e){return!!e&&e.nodeType===3}function uR(e){return!!e&&e.nodeType===11}var k4=["a","button","form","input","select","textarea","label"];function Ph(e){for(var t=e;t.parentNode&&!fu(t,"body");t=t.parentNode){var n=Zg(t).split(" ");if(fn(n,"ph-sensitive")||fn(n,"ph-no-capture"))return!1}if(fn(Zg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function zP(e){return!!(fu(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||fu(e,"select")||fu(e,"textarea")||e.getAttribute("contenteditable")==="true")}function N1(e){return!(e===null||ja(e)||typeof e=="string"&&(e=Ry(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function cR(e){var t=Qg(e);return N1(t="".concat(t," ").concat(HP(e)).trim())?t:""}function HP(e){var t="";return e&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Qg(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(HP(n)).trim())}catch(a){console.error(a)}}),t}var She=function(){function e(t){Un(this,e),this.clicks=[],this.enabled=t}return $n(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),whe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,yo={is_supported:function(){return!0},error:function(e){In.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=cR(e):i.$el_text=Qg(e));var a=Zg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),hn(e.attributes,function(c){var p;zP(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&N1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return hn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),N1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return hn(this._customProperties,function(r){hn(r.event_selectors,function(i){hn(document.querySelectorAll(i),function(a){fn(e,a)&&Ph(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if($P(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||fu(g,"html")||!lR(g))return!1;if(y!=null&&y.url_allowlist){var T=window.location.href,E=y.url_allowlist;if(E&&!E.some(function($){return T.match($)}))return!1}if(y!=null&&y.dom_event_allowlist){var v=y.dom_event_allowlist;if(v&&!v.some(function($){return b.type===$}))return!1}if(y!=null&&y.element_allowlist){var w=y.element_allowlist;if(w&&!w.some(function($){return g.tagName.toLowerCase()===$}))return!1}if(y!=null&&y.css_selector_allowlist){var A=y.css_selector_allowlist;if(A&&!A.some(function($){return g.matches($)}))return!1}for(var R=!1,k=[g],N=!0,B=g;B.parentNode&&!fu(B,"body");)if(uR(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(N=B.parentNode||!1))break;if(k4.indexOf(N.tagName.toLowerCase())>-1)R=!0;else{var q=window.getComputedStyle(N);q&&q.getPropertyValue("cursor")==="pointer"&&(R=!0)}k.push(N),B=N}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&b.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return b.type==="submit";case"input":case"select":case"textarea":return b.type==="change"||b.type==="click";default:return R?b.type==="click":b.type==="click"&&(k4.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!fu(s,"body");)uR(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(hn(o,function(g){var b=Ph(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=b&&N1(u)&&u),fn(Zg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var y=r._getAugmentPropertiesFromElement(g);$r(p,y)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=cR(a):c[0].$el_text=Qg(a)),u&&(c[0].attr__href=u),f)return!1;var m=$r(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Qd(document,"submit",n,!1,!0),Qd(document,"change",n,!1,!0),Qd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new She(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?In.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},dR,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=ja(t)?10:t,n=ja(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Jg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Jg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Fy);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},Fy,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(D1)||{};this.instance.register(ct({},D1,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(D1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Vs)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=vt(vt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Vs,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Vs)||{};this.instance.register(ct({},Vs,vt(vt({},n),{},ct({},t,{}))))}else this.instance.unregister(Vs)}}]),e}(),Ihe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",bR=2,Rhe=4,GP=3,Nhe=6,Ohe=0,Dhe=5e6,Lhe="rrweb/console@1",fo,Mhe=$n(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Un(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,b;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(b=o.adds)===null||b===void 0?void 0:b.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==GP||o.data.source!==Ohe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,b=Co(i.getNodeOrRelevantParent(p.id),2),y=b[0],T=b[1];return i.mutationBuckets[y]===0?!1:(i.mutationBuckets[y]=(f=i.mutationBuckets[y])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[y]=Math.max(i.mutationBuckets[y]-1,0),i.mutationBuckets[y]===0&&(i.loggedTracker[y]||(i.loggedTracker[y]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,y,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Fhe="/s/",VP="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(fo||(fo={}));var Phe=[fo.MouseMove,fo.MouseInteraction,fo.Scroll,fo.ViewportResize,fo.Input,fo.TouchMove,fo.MediaInteraction,fo.Drag],Bhe=function(){function e(t){var n=this;Un(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Fhe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return $n(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(Ly),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(pR),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(fR);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},Ly,!!t.sessionRecording),ct(o,pR,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,fR,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:BP()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?pT(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(ma.LIB_VERSION),function(r){if(r)return In.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===GP&&Phe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[bR,Rhe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return In.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aDhe){var c,p=hs(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Ihe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&pl(u)==="object"&&u.type===Nhe&&pl(u.data)==="object"&&u.data.plugin===Lhe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:VP,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===bR}})}}]),e}(),lo={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Uhe=["first-input","navigation","paint","resource"],$he=["/s/","/e/"],zhe=function(){function e(t){Un(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return $n(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!mhe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Uhe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else In.log("PostHog Peformance observer not started because we are on localhost.");else In.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if($he.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[lo.timeOrigin]=s,o[lo.timestamp]=Math.floor(s+t.startTime),lo)a[u]!==void 0&&(o[lo[u]]=a[u]);if(this.capturePerformanceEvent(o),Hhe(t)){var c,p=hs(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},lo.timeOrigin,s),ct(f,lo.timestamp,Math.floor(s+t.startTime)),ct(f,lo.name,m.name),ct(f,lo.duration,m.duration),ct(f,lo.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[lo.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Hhe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},jhe=function(){function e(t){Un(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return $n(e,[{key:"call",value:function(){var t=this,n=dT(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(D1),group_properties:this.instance.get_property(Vs),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),Ys.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=hs(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=hs(t.siteApps);try{var m=function(){var g=c.value,b=g.id,y=g.url,T=[p,p[p.length-1]==="/"&&y[0]==="/"?y.substring(1):y].join("");window["__$$ph_site_app_".concat(b)]=a.instance,pT(T,function(E){E&&console.error("Error while initializing PostHog app with config id ".concat(b),E)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Ghe=["https://app.posthog.com","https://eu.posthog.com"],Vhe=["source"],Whe=function(){function e(t){Un(this,e),this.instance=t}return $n(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(vt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=sR(t.hash,"__posthog")||sR(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Ghe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=vt(vt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=uhe(s,Vhe);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),pT(a,function(c){c?In.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Qd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),qhe="__ph_opt_in_out_";function Khe(e,t){qP(!0,e,t)}function Yhe(e,t){qP(!1,e,t)}function Xhe(e,t){return WP(e,t)==="1"}function yR(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return hn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){fn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||WP(e,t)==="0"}function Zhe(e,t){fT(t=t||{}).remove(hT(e,t),!!t.crossSubdomainCookie)}function fT(e){return(e=e||{}).persistenceType==="localStorage"?Kn:e.persistenceType==="localStorage+cookie"?Dy:yo}function hT(e,t){return((t=t||{}).persistencePrefix||qhe)+e}function WP(e,t){return fT(t).get(hT(e,t))}function qP(e,t,n){PP(t)&&t.length?(fT(n=n||{}).set(hT(t,n),e?1:0,yhe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var KP=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Un(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return $n(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),Qhe=function(e){NP(n,KP);var t=OP(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Un(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return $n(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;hn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(xy(a.filter(function(o){return o.url.indexOf("/e")===0})),xy(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,vt(vt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return hn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),Jhe=function(){function e(t){Un(this,e),this.enabled=t,this.metrics={}}return $n(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Ui=Uint8Array,ni=Uint16Array,dc=Uint32Array,gT=new Ui([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mT=new Ui([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ER=new Ui([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),YP=function(e,t){for(var n=new ni(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Sn)<<1;ql=(61680&(ql=(52428&ql)>>>2|(13107&ql)<<2))>>>4|(3855&ql)<<4,zy[Sn]=((65280&ql)>>>8|(255&ql)<<8)>>>1}var Jd=function(e,t,n){for(var r=e.length,i=0,a=new ni(t);i>>u]=c}else for(o=new ni(r),i=0;i>>15-e[i];return o},wu=new Ui(288);for(Sn=0;Sn<144;++Sn)wu[Sn]=8;for(Sn=144;Sn<256;++Sn)wu[Sn]=9;for(Sn=256;Sn<280;++Sn)wu[Sn]=7;for(Sn=280;Sn<288;++Sn)wu[Sn]=8;var em=new Ui(32);for(Sn=0;Sn<32;++Sn)em[Sn]=5;var tu,tge=Jd(wu,9,0),nge=Jd(em,5,0),ZP=function(e){return(e/8>>0)+(7&e&&1)},QP=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof ni?ni:e instanceof dc?dc:Ui)(n-t);return r.set(e.subarray(t,n)),r},Ko=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},dd=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},R4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new ni(m+1),b=rge(n[p-1],g,0);if(b>t){r=0;var y=0,T=b-t,E=1<t))break;y+=E-(1<>>=T;y>0;){var w=a[r].s;g[w]=0&&y;--r){var A=a[r].s;g[A]==t&&(--g[A],++y)}b=t}return[new Ui(g),b]},rge=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},_R=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ni(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},pd=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[ER[$-1]];--$);var oe,fe,ce,De,H=c+5<<3,W=pd(i,wu)+pd(a,em)+o,se=pd(i,m)+pd(a,y)+o+14+3*$+pd(N,P)+(2*N[16]+3*N[17]+7*N[18]);if(H<=W&&H<=se)return Uh(t,p,e.subarray(u,u+c));if(Ko(t,p,1+(se15&&(Ko(t,p,L[B]>>>5&127),p+=L[B]>>>12)}}}else oe=tge,fe=wu,ce=nge,De=em;for(B=0;B255){ie=r[B]>>>18&31,dd(t,p,oe[ie+257]),p+=fe[ie+257],ie>7&&(Ko(t,p,r[B]>>>23&31),p+=gT[ie]);var Se=31&r[B];dd(t,p,ce[Se]),p+=De[Se],Se>3&&(dd(t,p,r[B]>>>5&8191),p+=mT[Se])}else dd(t,p,oe[r[B]]),p+=fe[r[B]];return dd(t,p,oe[256]),p+fe[256]},ige=new dc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),age=new Ui(0),oge=function(){for(var e=new dc(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),sge=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},lge=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Ui(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),b=0;if(!o||f<8)for(var y=0;y<=f;y+=65535){var T=y+65535;T>>13,w=8191&E,A=(1<7e3||ce>24576)&&pe>423){b=TR(a,g,0,P,Q,$,fe,ce,H,y-H,b),ce=oe=fe=0,H=y;for(var le=0;le<286;++le)Q[le]=0;for(le=0;le<30;++le)$[le]=0}var L=2,ie=0,Se=w,X=se-D&32767;if(pe>2&&W==q(y-X))for(var ke=Math.min(v,pe)-1,te=Math.min(32767,y),Me=Math.min(258,pe);X<=te&&--Se&&se!=D;){if(a[y+L]==a[y+L-X]){for(var Re=0;ReL){if(L=Re,ie=X,Re>ke)break;var Ze=Math.min(X,Re-2),We=0;for(le=0;leWe&&(We=ot,D=dt)}}}X+=(se=D)-(D=R[se])+32768&32767}if(ie){P[ce++]=268435456|$y[L]<<18|vR[ie];var je=31&$y[L],pt=31&vR[ie];fe+=gT[je]+mT[pt],++Q[257+je],++$[pt],De=y+L,++oe}else P[ce++]=a[y],++Q[a[y]]}}b=TR(a,g,p,P,Q,$,fe,ce,H,y-H,b),p||(b=Uh(g,b,age))}return QP(m,0,u+ZP(b)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},Hy=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},uge=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&Hy(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},cge=function(e){return 10+(e.filename&&e.filename.length+1||0)};function dge(e,t){t===void 0&&(t={});var n=sge(),r=e.length;n.p(e);var i=lge(e,t,cge(t),8),a=i.length;return uge(i,t),Hy(i,a-8,n.d()),Hy(i,a-4,r),i}function pge(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Ui(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Ui(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return QP(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(tu||(tu={}));var fge=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=ma.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=hs(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return hn(c,function(b,y){p=encodeURIComponent(b.toString()),f=encodeURIComponent(y),g[g.length]=f+"="+p}),g.join(m)}(r)},bT=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},JP=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var b=bT(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),hn(r,function(y,T){g.setRequestHeader(T,y)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var y;try{y=JSON.parse(g.responseText)}catch(T){return void In.error(T)}o(y)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(b)},hge=18e5,gge=function(e){NP(n,KP);var t=OP(n);function n(r,i,a){var o;return Un(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return $n(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(hge,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=hs(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=hs(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))ma.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,bT(s,vt(vt({},u),{},{sendBeacon:!0})))}catch(c){ma.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?ma.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):JP({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),rh=1800,SR=60,mge=864e5,bge=function(){function e(t,n,r){Un(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||rh;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=rh):a>rh?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=Co(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>mge,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),yge=$n(function e(t,n,r,i){Un(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],b={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",b),o})}}),Ege=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},vge=function(){function e(t){Un(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return $n(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function wR(e){return typeof Event<"u"&&eB(e,Event)}function eB(e,t){try{return e instanceof t}catch{return!1}}function AR(e){return e===null||pl(e)!=="object"&&typeof e!="function"}function $h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function N4(e){return $h(e,"DOMError")}var CR=/\(error: (.*)\)/,kR=50,zh="?";function O4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var _ge=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Tge=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Age=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Cge=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` +`)).length,i=0;i127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},aR=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=aa,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return hhe().toString()}},The=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},oR=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{In.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},sR=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Qd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;FP(p)&&(m=p(f));var b=c.call(u,f);return m!==!1&&b!==!1||(g=!1),g}}}(t,r,s)}else In.error("No valid element provided to register_event")}}();function pT(e,t){var n=function(){var r=jn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=jn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):jn.body.appendChild(r)};jn.body?n():jn.addEventListener("DOMContentLoaded",n)}var Sr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return hn(t,function(r){var i=oR(jn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=jn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=Sr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=oR(jn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||fn(e," OPR/")?fn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":fn(e,"IEMobile")||fn(e,"WPDesktop")?"Internet Explorer Mobile":fn(e,"SamsungBrowser/")?"Samsung Internet":fn(e,"Edge")||fn(e,"Edg/")?"Microsoft Edge":fn(e,"FBIOS")?"Facebook Mobile":fn(e,"Chrome")?"Chrome":fn(e,"CriOS")?"Chrome iOS":fn(e,"UCWEB")||fn(e,"UCBrowser")?"UC Browser":fn(e,"FxiOS")?"Firefox iOS":fn(t,"Apple")?fn(e,"Mobile")?"Mobile Safari":"Safari":fn(e,"Android")?"Android Mobile":fn(e,"Konqueror")?"Konqueror":fn(e,"Firefox")?"Firefox":fn(e,"MSIE")||fn(e,"Trident/")?"Internet Explorer":fn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Sr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Ql.language||Ql.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return jn.referrer||"$direct"},referringDomain:function(){if(!jn.referrer)return"$direct";var e=jn.createElement("a");return e.href=jn.referrer,e.host},properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera),$device:Sr.device(aa),$device_type:Sr.deviceType(aa)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera),$browser_language:Sr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:ma.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:BP()/1e3})},people_properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera)}),{$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera)})}};function Zg(e){switch(pl(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Qg(e){var t="";return Ph(e)&&!zP(e)&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){$P(n)&&n.textContent&&(t+=Ry(n.textContent).split(/(\s+)/).filter(N1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Ry(t)}function lR(e){return!!e&&e.nodeType===1}function fu(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function $P(e){return!!e&&e.nodeType===3}function uR(e){return!!e&&e.nodeType===11}var k4=["a","button","form","input","select","textarea","label"];function Ph(e){for(var t=e;t.parentNode&&!fu(t,"body");t=t.parentNode){var n=Zg(t).split(" ");if(fn(n,"ph-sensitive")||fn(n,"ph-no-capture"))return!1}if(fn(Zg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function zP(e){return!!(fu(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||fu(e,"select")||fu(e,"textarea")||e.getAttribute("contenteditable")==="true")}function N1(e){return!(e===null||ja(e)||typeof e=="string"&&(e=Ry(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function cR(e){var t=Qg(e);return N1(t="".concat(t," ").concat(HP(e)).trim())?t:""}function HP(e){var t="";return e&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Qg(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(HP(n)).trim())}catch(a){console.error(a)}}),t}var She=function(){function e(t){Un(this,e),this.clicks=[],this.enabled=t}return $n(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),whe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,yo={is_supported:function(){return!0},error:function(e){In.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=cR(e):i.$el_text=Qg(e));var a=Zg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),hn(e.attributes,function(c){var p;zP(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&N1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return hn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),N1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return hn(this._customProperties,function(r){hn(r.event_selectors,function(i){hn(document.querySelectorAll(i),function(a){fn(e,a)&&Ph(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if($P(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||fu(g,"html")||!lR(g))return!1;if(y!=null&&y.url_allowlist){var T=window.location.href,E=y.url_allowlist;if(E&&!E.some(function($){return T.match($)}))return!1}if(y!=null&&y.dom_event_allowlist){var v=y.dom_event_allowlist;if(v&&!v.some(function($){return b.type===$}))return!1}if(y!=null&&y.element_allowlist){var w=y.element_allowlist;if(w&&!w.some(function($){return g.tagName.toLowerCase()===$}))return!1}if(y!=null&&y.css_selector_allowlist){var A=y.css_selector_allowlist;if(A&&!A.some(function($){return g.matches($)}))return!1}for(var R=!1,k=[g],N=!0,B=g;B.parentNode&&!fu(B,"body");)if(uR(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(N=B.parentNode||!1))break;if(k4.indexOf(N.tagName.toLowerCase())>-1)R=!0;else{var q=window.getComputedStyle(N);q&&q.getPropertyValue("cursor")==="pointer"&&(R=!0)}k.push(N),B=N}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&b.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return b.type==="submit";case"input":case"select":case"textarea":return b.type==="change"||b.type==="click";default:return R?b.type==="click":b.type==="click"&&(k4.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!fu(s,"body");)uR(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(hn(o,function(g){var b=Ph(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=b&&N1(u)&&u),fn(Zg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var y=r._getAugmentPropertiesFromElement(g);$r(p,y)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=cR(a):c[0].$el_text=Qg(a)),u&&(c[0].attr__href=u),f)return!1;var m=$r(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Qd(document,"submit",n,!1,!0),Qd(document,"change",n,!1,!0),Qd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new She(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?In.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},dR,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=ja(t)?10:t,n=ja(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Jg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Jg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Fy);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},Fy,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(D1)||{};this.instance.register(ct({},D1,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(D1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Vs)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=vt(vt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Vs,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Vs)||{};this.instance.register(ct({},Vs,vt(vt({},n),{},ct({},t,{}))))}else this.instance.unregister(Vs)}}]),e}(),Ihe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",bR=2,Rhe=4,GP=3,Nhe=6,Ohe=0,Dhe=5e6,Lhe="rrweb/console@1",fo,Mhe=$n(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Un(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,b;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(b=o.adds)===null||b===void 0?void 0:b.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==GP||o.data.source!==Ohe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,b=Co(i.getNodeOrRelevantParent(p.id),2),y=b[0],T=b[1];return i.mutationBuckets[y]===0?!1:(i.mutationBuckets[y]=(f=i.mutationBuckets[y])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[y]=Math.max(i.mutationBuckets[y]-1,0),i.mutationBuckets[y]===0&&(i.loggedTracker[y]||(i.loggedTracker[y]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,y,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Fhe="/s/",VP="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(fo||(fo={}));var Phe=[fo.MouseMove,fo.MouseInteraction,fo.Scroll,fo.ViewportResize,fo.Input,fo.TouchMove,fo.MediaInteraction,fo.Drag],Bhe=function(){function e(t){var n=this;Un(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Fhe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return $n(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(Ly),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(pR),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(fR);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},Ly,!!t.sessionRecording),ct(o,pR,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,fR,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:BP()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?pT(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(ma.LIB_VERSION),function(r){if(r)return In.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===GP&&Phe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[bR,Rhe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return In.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aDhe){var c,p=hs(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Ihe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&pl(u)==="object"&&u.type===Nhe&&pl(u.data)==="object"&&u.data.plugin===Lhe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:VP,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===bR}})}}]),e}(),lo={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Uhe=["first-input","navigation","paint","resource"],$he=["/s/","/e/"],zhe=function(){function e(t){Un(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return $n(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!mhe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Uhe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else In.log("PostHog Peformance observer not started because we are on localhost.");else In.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if($he.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[lo.timeOrigin]=s,o[lo.timestamp]=Math.floor(s+t.startTime),lo)a[u]!==void 0&&(o[lo[u]]=a[u]);if(this.capturePerformanceEvent(o),Hhe(t)){var c,p=hs(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},lo.timeOrigin,s),ct(f,lo.timestamp,Math.floor(s+t.startTime)),ct(f,lo.name,m.name),ct(f,lo.duration,m.duration),ct(f,lo.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[lo.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Hhe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},jhe=function(){function e(t){Un(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return $n(e,[{key:"call",value:function(){var t=this,n=dT(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(D1),group_properties:this.instance.get_property(Vs),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),Ys.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=hs(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=hs(t.siteApps);try{var m=function(){var g=c.value,b=g.id,y=g.url,T=[p,p[p.length-1]==="/"&&y[0]==="/"?y.substring(1):y].join("");window["__$$ph_site_app_".concat(b)]=a.instance,pT(T,function(E){E&&console.error("Error while initializing PostHog app with config id ".concat(b),E)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Ghe=["https://app.posthog.com","https://eu.posthog.com"],Vhe=["source"],Whe=function(){function e(t){Un(this,e),this.instance=t}return $n(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(vt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=sR(t.hash,"__posthog")||sR(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Ghe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=vt(vt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=uhe(s,Vhe);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),pT(a,function(c){c?In.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Qd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),qhe="__ph_opt_in_out_";function Khe(e,t){qP(!0,e,t)}function Yhe(e,t){qP(!1,e,t)}function Xhe(e,t){return WP(e,t)==="1"}function yR(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return hn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){fn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||WP(e,t)==="0"}function Zhe(e,t){fT(t=t||{}).remove(hT(e,t),!!t.crossSubdomainCookie)}function fT(e){return(e=e||{}).persistenceType==="localStorage"?Kn:e.persistenceType==="localStorage+cookie"?Dy:yo}function hT(e,t){return((t=t||{}).persistencePrefix||qhe)+e}function WP(e,t){return fT(t).get(hT(e,t))}function qP(e,t,n){PP(t)&&t.length?(fT(n=n||{}).set(hT(t,n),e?1:0,yhe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var KP=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Un(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return $n(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),Qhe=function(e){NP(n,KP);var t=OP(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Un(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return $n(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;hn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(xy(a.filter(function(o){return o.url.indexOf("/e")===0})),xy(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,vt(vt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return hn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),Jhe=function(){function e(t){Un(this,e),this.enabled=t,this.metrics={}}return $n(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Ui=Uint8Array,ni=Uint16Array,dc=Uint32Array,gT=new Ui([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mT=new Ui([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ER=new Ui([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),YP=function(e,t){for(var n=new ni(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Sn)<<1;ql=(61680&(ql=(52428&ql)>>>2|(13107&ql)<<2))>>>4|(3855&ql)<<4,zy[Sn]=((65280&ql)>>>8|(255&ql)<<8)>>>1}var Jd=function(e,t,n){for(var r=e.length,i=0,a=new ni(t);i>>u]=c}else for(o=new ni(r),i=0;i>>15-e[i];return o},wu=new Ui(288);for(Sn=0;Sn<144;++Sn)wu[Sn]=8;for(Sn=144;Sn<256;++Sn)wu[Sn]=9;for(Sn=256;Sn<280;++Sn)wu[Sn]=7;for(Sn=280;Sn<288;++Sn)wu[Sn]=8;var em=new Ui(32);for(Sn=0;Sn<32;++Sn)em[Sn]=5;var tu,tge=Jd(wu,9,0),nge=Jd(em,5,0),ZP=function(e){return(e/8>>0)+(7&e&&1)},QP=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof ni?ni:e instanceof dc?dc:Ui)(n-t);return r.set(e.subarray(t,n)),r},Ko=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},dd=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},R4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new ni(m+1),b=rge(n[p-1],g,0);if(b>t){r=0;var y=0,T=b-t,E=1<t))break;y+=E-(1<>>=T;y>0;){var w=a[r].s;g[w]=0&&y;--r){var A=a[r].s;g[A]==t&&(--g[A],++y)}b=t}return[new Ui(g),b]},rge=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},_R=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ni(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},pd=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[ER[$-1]];--$);var oe,fe,ce,De,H=c+5<<3,W=pd(i,wu)+pd(a,em)+o,se=pd(i,m)+pd(a,y)+o+14+3*$+pd(N,P)+(2*N[16]+3*N[17]+7*N[18]);if(H<=W&&H<=se)return Uh(t,p,e.subarray(u,u+c));if(Ko(t,p,1+(se15&&(Ko(t,p,L[B]>>>5&127),p+=L[B]>>>12)}}}else oe=tge,fe=wu,ce=nge,De=em;for(B=0;B255){ie=r[B]>>>18&31,dd(t,p,oe[ie+257]),p+=fe[ie+257],ie>7&&(Ko(t,p,r[B]>>>23&31),p+=gT[ie]);var Se=31&r[B];dd(t,p,ce[Se]),p+=De[Se],Se>3&&(dd(t,p,r[B]>>>5&8191),p+=mT[Se])}else dd(t,p,oe[r[B]]),p+=fe[r[B]];return dd(t,p,oe[256]),p+fe[256]},ige=new dc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),age=new Ui(0),oge=function(){for(var e=new dc(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),sge=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},lge=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Ui(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),b=0;if(!o||f<8)for(var y=0;y<=f;y+=65535){var T=y+65535;T>>13,w=8191&E,A=(1<7e3||ce>24576)&&pe>423){b=TR(a,g,0,P,Q,$,fe,ce,H,y-H,b),ce=oe=fe=0,H=y;for(var le=0;le<286;++le)Q[le]=0;for(le=0;le<30;++le)$[le]=0}var L=2,ie=0,Se=w,X=se-D&32767;if(pe>2&&W==q(y-X))for(var ke=Math.min(v,pe)-1,te=Math.min(32767,y),Me=Math.min(258,pe);X<=te&&--Se&&se!=D;){if(a[y+L]==a[y+L-X]){for(var Re=0;ReL){if(L=Re,ie=X,Re>ke)break;var Ye=Math.min(X,Re-2),We=0;for(le=0;leWe&&(We=ot,D=dt)}}}X+=(se=D)-(D=R[se])+32768&32767}if(ie){P[ce++]=268435456|$y[L]<<18|vR[ie];var je=31&$y[L],pt=31&vR[ie];fe+=gT[je]+mT[pt],++Q[257+je],++$[pt],De=y+L,++oe}else P[ce++]=a[y],++Q[a[y]]}}b=TR(a,g,p,P,Q,$,fe,ce,H,y-H,b),p||(b=Uh(g,b,age))}return QP(m,0,u+ZP(b)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},Hy=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},uge=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&Hy(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},cge=function(e){return 10+(e.filename&&e.filename.length+1||0)};function dge(e,t){t===void 0&&(t={});var n=sge(),r=e.length;n.p(e);var i=lge(e,t,cge(t),8),a=i.length;return uge(i,t),Hy(i,a-8,n.d()),Hy(i,a-4,r),i}function pge(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Ui(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Ui(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return QP(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(tu||(tu={}));var fge=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=ma.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=hs(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return hn(c,function(b,y){p=encodeURIComponent(b.toString()),f=encodeURIComponent(y),g[g.length]=f+"="+p}),g.join(m)}(r)},bT=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},JP=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var b=bT(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),hn(r,function(y,T){g.setRequestHeader(T,y)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var y;try{y=JSON.parse(g.responseText)}catch(T){return void In.error(T)}o(y)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(b)},hge=18e5,gge=function(e){NP(n,KP);var t=OP(n);function n(r,i,a){var o;return Un(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return $n(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(hge,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=hs(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=hs(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))ma.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,bT(s,vt(vt({},u),{},{sendBeacon:!0})))}catch(c){ma.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?ma.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):JP({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),rh=1800,SR=60,mge=864e5,bge=function(){function e(t,n,r){Un(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||rh;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=rh):a>rh?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=Co(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>mge,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),yge=$n(function e(t,n,r,i){Un(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],b={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",b),o})}}),Ege=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},vge=function(){function e(t){Un(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return $n(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function wR(e){return typeof Event<"u"&&eB(e,Event)}function eB(e,t){try{return e instanceof t}catch{return!1}}function AR(e){return e===null||pl(e)!=="object"&&typeof e!="function"}function $h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function N4(e){return $h(e,"DOMError")}var CR=/\(error: (.*)\)/,kR=50,zh="?";function O4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var _ge=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Tge=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Age=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Cge=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` `),u=a;u1024)){var p=CR.test(c)?c.replace(CR,"$1"):c;if(!p.match(/\S*Error: /)){var f,m=hs(r);try{for(m.s();!(f=m.n()).done;){var g=(0,f.value)(p);if(g){o.push(g);break}}}catch(b){m.e(b)}finally{m.f()}if(o.length>=kR)break}}}return function(b){if(!b.length)return[];var y=b.slice(0,kR);return y.reverse(),y.map(function(T){return vt(vt({},T),{},{filename:T.filename||y[y.length-1].filename,function:T.function||"?"})})}(o)}}).apply(void 0,[[30,function(e){var t=_ge.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){var n=Tge.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=Co(xR(t[1]||zh,t[2]),2),i=r[0];return O4(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=Sge.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=wge.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||zh,a=Co(xR(i,r),2);return i=a[0],O4(r=a[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=Age.exec(e);return t?O4(t[2],t[1]||zh,+t[3],t[4]?+t[4]:void 0):void 0}]]),xR=function(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:zh,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},kge=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,xge=/Minified React error #\d+;/i;function Ige(e){var t=e.stacktrace||e.stack||"",n=function(r){if(r){if(typeof r.framesToPop=="number")return r.framesToPop;if(xge.test(r.message))return 1}return 0}(e);try{return Cge(t,n)}catch{}return[]}function D4(e){var t=Ige(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function Rge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:40,n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:"".concat(i.slice(0,t),"...")}return""}function IR(e){var t=Co(e,5),n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s={};if(o===void 0&&typeof n=="string"){var u="Error",c=n,p=n.match(kge);p&&(u=p[1],c=p[2]),s={$exception_type:u,$exception_message:c}}var f=o||n;if(N4(f)||function(y){return $h(y,"DOMException")}(f)){var m=f;if(function(y){return"stack"in y}(f))s=D4(f);else{var g=m.name||(N4(m)?"DOMError":"DOMException"),b=m.message?"".concat(g,": ").concat(m.message):g;s=function(y){return{$exception_type:"Error",$exception_message:y}}(b),s.$exception_type=N4(m)?"DOMError":"DOMException",s.$exception_message=s.$exception_message||b}"code"in m&&(s.$exception_DOMException_code="".concat(m.code))}else(function(y){return $h(y,"ErrorEvent")})(f)&&f.error?s=D4(f.error):function(y){switch(Object.prototype.toString.call(y)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return eB(y,Error)}}(f)?s=D4(f):function(y){return $h(y,"Object")}(f)||wR(f)?(s=function(y){return{$exception_type:wR(y)?y.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",Rge(y))}}(f),s.$exception_is_synthetic=!0):(s.$exception_type=s.$exception_type||"Error",s.$exception_message=s.$exception_message||f,s.$exception_is_synthetic=!0);return vt(vt(vt(vt({},s),{},{$exception_type:s.$exception_type||"UnknownErrorType",$exception_message:s.$exception_message||""},r?{$exception_source:r}:{}),i?{$exception_lineno:i}:{}),a?{$exception_colno:a}:{})}var RR,NR,Nge=function(){function e(t){Un(this,e),ct(this,"originalOnErrorHandler",void 0),ct(this,"originalOnUnhandledRejectionHandler",void 0),ct(this,"errorsToIgnore",[]),this.instance=t}return $n(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var t,n=arguments.length,r=new Array(n),i=0;i1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Py);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.surveys;return n.instance.persistence.register(ct({},Py,o)),t(o)})}},{key:"getActiveMatchingSurveys",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(i){var a=i.filter(function(o){return!(!o.start_date||o.end_date)}).filter(function(o){var s,u;if(!o.conditions)return!0;var c=(s=o.conditions)===null||s===void 0||!s.url||window.location.href.indexOf(o.conditions.url)>-1,p=(u=o.conditions)===null||u===void 0||!u.selector||document.querySelector(o.conditions.selector);return c&&p}).filter(function(o){if(!o.linked_flag_key&&!o.targeting_flag_key)return!0;var s=!o.linked_flag_key||n.instance.featureFlags.isFeatureEnabled(o.linked_flag_key),u=!o.targeting_flag_key||n.instance.featureFlags.isFeatureEnabled(o.targeting_flag_key);return s&&u});return t(a)},r)}}]),e}(),Dge={"X-PostHog-Retry-After-Recordings":VP,"X-PostHog-Retry-After-Events":"events"},Lge=function(){function e(){Un(this,e),ct(this,"limits",{})}return $n(e,[{key:"isRateLimited",value:function(t){var n=this.limits[t||"events"]||!1;return n!==!1&&new Date().getTime()1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,c={segmentRegister:!1,syncCode:!1},p=function(A){return function(){c[A]||(c[A]=!0,c.segmentRegister&&c.syncCode&&(s==null||s(i)))}};if(this.set_config($r({},OR(),a,{name:o,token:t,callback_fn:(o===gi?o:gi+"."+o)+"._jsc"})),this.uuidFn=aR(this.config.uuid_version||"og"),this._jsc=function(){},(ht!=null&&(n=ht.rrweb)!==null&&n!==void 0&&n.record||ht!=null&&ht.rrwebRecord)&&(this.__loaded_recorder_version=ht==null||(u=ht.rrweb)===null||u===void 0?void 0:u.version),this.persistence=new hR(this.config),this._captureMetrics=new Jhe(this.get_config("_capture_metrics")),this._requestQueue=new Qhe(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new gge(this._captureMetrics,this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new bge(this.config,this.persistence,this.uuidFn),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new hR(vt(vt({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(p("segmentRegister"))):p("segmentRegister")(),((r=a.bootstrap)===null||r===void 0?void 0:r.distinctID)!==void 0){var f,m,g=this.get_config("get_device_id")(this.uuidFn()),b=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?g:a.bootstrap.distinctID;this.persistence.set_user_state((m=a.bootstrap)!==null&&m!==void 0&&m.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:b})}if(this._hasBootstrappedFeatureFlags()){var y,T,E=Object.keys(((y=a.bootstrap)===null||y===void 0?void 0:y.featureFlags)||{}).filter(function(A){var R,k;return!((R=a.bootstrap)===null||R===void 0||(k=R.featureFlags)===null||k===void 0||!k[A])}).reduce(function(A,R){var k,N;return A[R]=((k=a.bootstrap)===null||k===void 0||(N=k.featureFlags)===null||N===void 0?void 0:N[R])||!1,A},{}),v=Object.keys(((T=a.bootstrap)===null||T===void 0?void 0:T.featureFlagPayloads)||{}).filter(function(A){return E[A]}).reduce(function(A,R){var k,N,B,q;return(k=a.bootstrap)!==null&&k!==void 0&&(N=k.featureFlagPayloads)!==null&&N!==void 0&&N[R]&&(A[R]=(B=a.bootstrap)===null||B===void 0||(q=B.featureFlagPayloads)===null||q===void 0?void 0:q[R]),A},{});this.featureFlags.receivedFeatureFlags({featureFlags:E,featureFlagPayloads:v})}if(!this.get_distinct_id()){var w=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_user_state("anonymous")}ht.addEventListener&&ht.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),p("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(t){console.error("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:jn.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new jhe(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var t=this;this.has_opted_out_capturing()||os(this.__request_queue,function(n){t._send_request.apply(t,xy(n))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(t,n){if(ja(t))return null;if(Hh)return function(o){t(o,n)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],t(o,n)},a}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(t,n,r){var i=JSON.stringify(n);this.__compress_and_send_json_request(t,i,r||ih,jy)}},{key:"__compress_and_send_json_request",value:function(t,n,r,i){var a=function(c,p,f){return c===tu.GZipJS?[dge(pge(p),{mtime:0}),vt(vt({},f),{},{blob:!0,urlQueryArgs:{compression:tu.GZipJS}})]:[{data:dT(p)},f]}(this.compression[tu.GZipJS]?tu.GZipJS:tu.Base64,n,r),o=Co(a,2),s=o[0],u=o[1];this._send_request(t,s,u,i)}},{key:"_send_request",value:function(t,n,r,i){if(this.rateLimiter.isRateLimited(r._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(tB)this.__request_queue.push([t,n,r,i]);else{var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=$r(a,r||{}),Hh||(r.method="GET");var o="sendBeacon"in ht.navigator&&r.transport==="sendBeacon";if(t=fge(t,r.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{ht.navigator.sendBeacon(t,bT(n,vt(vt({},r),{},{sendBeacon:!0})))}catch{}else if(Hh)try{JP({url:t,data:n,headers:this.get_config("xhr_headers"),options:r,captureMetrics:this._captureMetrics,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(p){console.error(p)}else{var s,u=jn.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=t;var c=jn.getElementsByTagName("script")[0];(s=c.parentNode)===null||s===void 0||s.insertBefore(u,c)}}}},{key:"_execute_array",value:function(t){var n,r=this,i=[],a=[],o=[];os(t,function(u){u&&(n=u[0],ts(n)?o.push(u):typeof u=="function"?u.call(r):ts(u)&&n==="alias"?i.push(u):ts(u)&&n.indexOf("capture")!==-1&&typeof r[n]=="function"?o.push(u):a.push(u))});var s=function(u,c){os(u,function(p){if(ts(p[0])){var f=c;hn(p,function(m){f=f[m[0]].apply(f,m.slice(1))})}else this[p[0]].apply(this,p.slice(1))},c)};s(i,this),s(a,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var t,n;return((t=this.config.bootstrap)===null||t===void 0?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)===null||n===void 0?void 0:n.featureFlags).length>0||!1}},{key:"push",value:function(t){this._execute_array([t])}},{key:"captureException",value:function(t,n){var r;(r=this.exceptionAutocapture)===null||r===void 0||r.captureException([t.name,void 0,void 0,void 0,t],n)}},{key:"capture",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ih;if(this.__loaded&&!function(c,p){var f=!1;try{var m=c.get_config("token"),g=c.get_config("respect_dnt"),b=c.get_config("opt_out_capturing_persistence_type"),y=c.get_config("opt_out_capturing_cookie_prefix")||void 0,T=c.get_config("window");m&&(f=yR(m,{respectDnt:g,persistenceType:b,persistencePrefix:y,window:T}))}catch(E){p||console.error("Unexpected error when checking capturing opt-out status: "+E)}return f}(this,!1)){this._captureMetrics.incr("capture"),t==="$snapshot"&&this._captureMetrics.incr("snapshot");var i=(r=r||ih).transport;if(i&&(r.transport=i),ja(t)||typeof t!="string")console.error("No event name provided to posthog.capture");else if(!The(aa)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var a={uuid:this.uuidFn("v7"),event:t,properties:this._calculate_event_properties(t,n||{})};t==="$identify"&&(a.$set=r.$set,a.$set_once=r.$set_once),(a=vhe(a,r._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=r.timestamp||new Date,this.get_config("debug")&&In.log("PostHog.js send",a);var o=JSON.stringify(a),s=this.get_config("api_host")+(r.endpoint||"/e/"),u=r!==ih;return!this.get_config("request_batching")||u&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(s,o,r):this._requestQueue.enqueue(s,a,r),this._invokeCaptureHooks(t,a),a}}}},{key:"_addCaptureHook",value:function(t){this.__captureHooks.push(t)}},{key:"_invokeCaptureHooks",value:function(t,n){this.config._onCapture(t,n),hn(this.__captureHooks,function(r){return r(t)})}},{key:"_calculate_event_properties",value:function(t,n){var r,i=this.persistence.remove_event_timer(t),a=vt({},n);if(a.token=this.get_config("token"),t==="$snapshot"){var o=vt(vt({},this.persistence.properties()),this.sessionPersistence.properties());return a.distinct_id=o.distinct_id,a}var s=Sr.properties();if(this.sessionManager){var u=this.sessionManager.checkAndGetSessionAndWindowId(),c=u.sessionId,p=u.windowId;a.$session_id=c,a.$window_id=p}if((r=this.webPerformance)!==null&&r!==void 0&&r.isEnabled&&(t==="$pageview"&&this.pageViewIdManager.onPageview(),a=$r(a,{$pageview_id:this.pageViewIdManager.getPageViewId()})),t==="$pageview"&&(a.title=jn.title),t==="$performance_event"){var f=this.persistence.properties();return a.distinct_id=f.distinct_id,a.$current_url=s.$current_url,a}if(i!==void 0){var m=new Date().getTime()-i;a.$duration=parseFloat((m/1e3).toFixed(3))}a=$r({},Sr.properties(),this.persistence.properties(),this.sessionPersistence.properties(),a);var g=this.get_config("property_blacklist");ts(g)?hn(g,function(y){delete a[y]}):console.error("Invalid value for property_blacklist config: "+g);var b=this.get_config("sanitize_properties");return b&&(a=b(a,t)),a}},{key:"register",value:function(t,n){this.persistence.register(t,n)}},{key:"register_once",value:function(t,n,r){this.persistence.register_once(t,n,r)}},{key:"register_for_session",value:function(t){this.sessionPersistence.register(t)}},{key:"unregister",value:function(t){this.persistence.unregister(t)}},{key:"unregister_for_session",value:function(t){this.sessionPersistence.unregister(t)}},{key:"_register_single",value:function(t,n){this.register(ct({},t,n))}},{key:"getFeatureFlag",value:function(t,n){return this.featureFlags.getFeatureFlag(t,n)}},{key:"getFeatureFlagPayload",value:function(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}},{key:"isFeatureEnabled",value:function(t,n){return this.featureFlags.isFeatureEnabled(t,n)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}},{key:"getEarlyAccessFeatures",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,n)}},{key:"onFeatureFlags",value:function(t){return this.featureFlags.onFeatureFlags(t)}},{key:"onSessionId",value:function(t){return this.sessionManager.onSessionId(t)}},{key:"getSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(t,n)}},{key:"getActiveMatchingSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(t,n)}},{key:"identify",value:function(t,n,r){if(t){this._captureMetrics.incr("identify");var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var a=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:a},"")}t!==i&&t!==this.get_property(Bh)&&(this.unregister(Bh),this.register({distinct_id:t}));var o=this.persistence.get_user_state()==="anonymous";t!==i&&o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(n||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Jg))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(t,n){(t||n)&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:n||{}}))}},{key:"group",value:function(t,n,r){if(t&&n){this._captureMetrics.incr("group");var i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:vt(vt({},i),{},ct({},t,n))}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags(ct({},t,r))),i[t]===n||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,n)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(t,n)}},{key:"resetGroupPropertiesForFlags",value:function(t){this.featureFlags.resetGroupPropertiesForFlags(t)}},{key:"reset",value:function(t){var n=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var r=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:r,$device_id:t?r:n},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(t){var n=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=r.sessionId,a=r.sessionStartTimestamp,o=n+"/replay/"+i;if(t!=null&&t.withTimestamp&&a){var s,u=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!a)return o;var c=Math.max(Math.floor((new Date().getTime()-a)/1e3)-u,0);o+="?t=".concat(c)}return o}},{key:"alias",value:function(t,n){return t===this.get_property(jP)?(In.critical("Attempting to create alias for existing People user - aborting."),-2):(ja(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(Bh,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(t),-1))}},{key:"set_config",value:function(t){var n=vt({},this.config);Ny(t)&&($r(this.config,t),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),Kn.is_supported()&&Kn.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(ma.DEBUG=!0),this.sessionRecording&&t.disable_session_recording!==void 0&&n.disable_session_recording!==t.disable_session_recording&&(t.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var t;return!((t=this.sessionRecording)===null||t===void 0||!t.started())}},{key:"loadToolbar",value:function(t){return this.toolbar.loadToolbar(t)}},{key:"get_config",value:function(t){var n;return(n=this.config)===null||n===void 0?void 0:n[t]}},{key:"get_property",value:function(t){return this.persistence.props[t]}},{key:"getSessionProperty",value:function(t){return this.sessionPersistence.props[t]}},{key:"toString",value:function(){var t,n=(t=this.get_config("name"))!==null&&t!==void 0?t:gi;return n!==gi&&(n=gi+"."+n),n}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&Kn.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!yo.get("ph_optout")||(yo.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(t){var n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),this.get_config("disable_persistence")||this.sessionPersistence.disabled===n||this.sessionPersistence.set_disabled(n)}},{key:"_gdpr_call_func",value:function(t,n){return n=$r({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},n||{}),Kn.is_supported()||n.persistence_type!=="localStorage"||(n.persistence_type="cookie"),t(this.get_config("token"),{capture:n.capture,captureEventName:n.capture_event_name,captureProperties:n.capture_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieExpiration:n.cookie_expiration,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie})}},{key:"opt_in_capturing",value:function(t){t=$r({enable_persistence:!0},t||{}),this._gdpr_call_func(Khe,t),this._gdpr_update_persistence(t)}},{key:"opt_out_capturing",value:function(t){var n=$r({clear_persistence:!0},t||{});this._gdpr_call_func(Yhe,n),this._gdpr_update_persistence(n)}},{key:"has_opted_in_capturing",value:function(t){return this._gdpr_call_func(Xhe,t)}},{key:"has_opted_out_capturing",value:function(t){return this._gdpr_call_func(yR,t)}},{key:"clear_opt_in_out_capturing",value:function(t){var n=$r({enable_persistence:!0},t??{});this._gdpr_call_func(Zhe,n),this._gdpr_update_persistence(n)}},{key:"debug",value:function(t){t===!1?(ht.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(ht.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();(function(e,t){for(var n=0;np(g,typeof g=="string"?null:g.state,b===0?"default":void 0));let a=u(n??i.length-1),o=Wn.Pop,s=null;function u(g){return Math.min(Math.max(g,0),i.length-1)}function c(){return i[a]}function p(g,b,y){b===void 0&&(b=null);let T=Vy(i?c().pathname:"/",g,b,y);return Au(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(g)),T}function f(g){return typeof g=="string"?g:D2(g)}return{get index(){return a},get action(){return o},get location(){return c()},createHref:f,createURL(g){return new URL(f(g),"http://localhost")},encodeLocation(g){let b=typeof g=="string"?Ro(g):g;return{pathname:b.pathname||"",search:b.search||"",hash:b.hash||""}},push(g,b){o=Wn.Push;let y=p(g,b);a+=1,i.splice(a,i.length,y),r&&s&&s({action:o,location:y,delta:1})},replace(g,b){o=Wn.Replace;let y=p(g,b);i[a]=y,r&&s&&s({action:o,location:y,delta:0})},go(g){o=Wn.Pop;let b=u(a+g),y=i[b];a=b,s&&s({action:o,location:y,delta:g})},listen(g){return s=g,()=>{s=null}}}}function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Au(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Kge(){return Math.random().toString(36).substr(2,8)}function Vy(e,t,n,r){return n===void 0&&(n=null),Nn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ro(t):t,{state:n,key:t&&t.key||r||Kge()})}function D2(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ro(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var tr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tr||(tr={}));const Yge=new Set(["lazy","caseSensitive","path","id","index","children"]);function Xge(e){return e.index===!0}function Wy(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if($t(i.index!==!0||!i.children,"Cannot specify children on an index route"),$t(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Xge(i)){let u=Nn({},i,t(i),{id:s});return r[s]=u,u}else{let u=Nn({},i,t(i),{id:s,children:void 0});return r[s]=u,i.children&&(u.children=Wy(i.children,t,o,r)),u}})}function L1(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ro(t):t,i=hf(r.pathname||"/",n);if(i==null)return null;let a=rB(e);Zge(a);let o=null;for(let s=0;o==null&&s{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};u.relativePath.startsWith("/")&&($t(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=fl([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&($t(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),rB(a.children,t,p,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:ime(c,a.index),routesMeta:p})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let u of iB(a.path))i(a,o,u)}),t}function iB(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=iB(r.join("/")),s=[];return s.push(...o.map(u=>u===""?a:[a,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Zge(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ame(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Qge=/^:\w+$/,Jge=3,eme=2,tme=1,nme=10,rme=-2,DR=e=>e==="*";function ime(e,t){let n=e.split("/"),r=n.length;return n.some(DR)&&(r+=rme),t&&(r+=eme),n.filter(i=>!DR(i)).reduce((i,a)=>i+(Qge.test(a)?Jge:a===""?tme:nme),r)}function ame(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function ome(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(p==="*"){let m=s[f]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}return c[p]=cme(s[f]||"",p),c},{}),pathname:a,pathnameBase:o,pattern:e}}function lme(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Au(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function ume(e){try{return decodeURI(e)}catch(t){return Au(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function cme(e,t){try{return decodeURIComponent(e)}catch(n){return Au(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function hf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function dme(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ro(e):e;return{pathname:n?n.startsWith("/")?n:pme(n,t):t,search:hme(r),hash:gme(i)}}function pme(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function L4(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function vT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function aB(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ro(e):(i=Nn({},e),$t(!i.pathname||!i.pathname.includes("?"),L4("?","pathname","search",i)),$t(!i.pathname||!i.pathname.includes("#"),L4("#","pathname","hash",i)),$t(!i.search||!i.search.includes("#"),L4("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let f=t.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let u=dme(i,s),c=o&&o!=="/"&&o.endsWith("/"),p=(a||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}const fl=e=>e.join("/").replace(/\/\/+/g,"/"),fme=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hme=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gme=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class oB{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function sB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lB=["post","put","patch","delete"],mme=new Set(lB),bme=["get",...lB],yme=new Set(bme),Eme=new Set([301,302,303,307,308]),vme=new Set([307,308]),M4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_me={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},uB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tme=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Sme(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$t(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let G=e.detectErrorBoundary;i=K=>({hasErrorBoundary:G(K)})}else i=Tme;let a={},o=Wy(e.routes,i,void 0,a),s,u=e.basename||"/",c=Nn({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),p=null,f=new Set,m=null,g=null,b=null,y=e.hydrationData!=null,T=L1(o,e.history.location,u),E=null;if(T==null){let G=oa(404,{pathname:e.history.location.pathname}),{matches:K,route:ne}=zR(o);T=K,E={[ne.id]:G}}let v=!T.some(G=>G.route.lazy)&&(!T.some(G=>G.route.loader)||e.hydrationData!=null),w,A={historyAction:e.history.action,location:e.history.location,matches:T,initialized:v,navigation:M4,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},R=Wn.Pop,k=!1,N,B=!1,q=!1,P=[],Q=[],$=new Map,oe=0,fe=-1,ce=new Map,De=new Set,H=new Map,W=new Map,se=new Map,D=!1;function pe(){return p=e.history.listen(G=>{let{action:K,location:ne,delta:ve}=G;if(D){D=!1;return}Au(se.size===0||ve!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Qe=ue({currentLocation:A.location,nextLocation:ne,historyAction:K});if(Qe&&ve!=null){D=!0,e.history.go(ve*-1),jt(Qe,{state:"blocked",location:ne,proceed(){jt(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),e.history.go(ve)},reset(){let Fe=new Map(A.blockers);Fe.set(Qe,fd),ie({blockers:Fe})}});return}return te(K,ne)}),A.initialized||te(Wn.Pop,A.location),w}function le(){p&&p(),f.clear(),N&&N.abort(),A.fetchers.forEach((G,K)=>de(K)),A.blockers.forEach((G,K)=>Ye(K))}function L(G){return f.add(G),()=>f.delete(G)}function ie(G){A=Nn({},A,G),f.forEach(K=>K(A))}function Se(G,K){var ne,ve;let Qe=A.actionData!=null&&A.navigation.formMethod!=null&&Ba(A.navigation.formMethod)&&A.navigation.state==="loading"&&((ne=G.state)==null?void 0:ne._isRedirect)!==!0,Fe;K.actionData?Object.keys(K.actionData).length>0?Fe=K.actionData:Fe=null:Qe?Fe=A.actionData:Fe=null;let at=K.loaderData?$R(A.loaderData,K.loaderData,K.matches||[],K.errors):A.loaderData,rt=A.blockers;rt.size>0&&(rt=new Map(rt),rt.forEach((Rt,Qt)=>rt.set(Qt,fd)));let Je=k===!0||A.navigation.formMethod!=null&&Ba(A.navigation.formMethod)&&((ve=G.state)==null?void 0:ve._isRedirect)!==!0;s&&(o=s,s=void 0),B||R===Wn.Pop||(R===Wn.Push?e.history.push(G,G.state):R===Wn.Replace&&e.history.replace(G,G.state)),ie(Nn({},K,{actionData:Fe,loaderData:at,historyAction:R,location:G,initialized:!0,navigation:M4,revalidation:"idle",restoreScrollPosition:Ve(G,K.matches||A.matches),preventScrollReset:Je,blockers:rt})),R=Wn.Pop,k=!1,B=!1,q=!1,P=[],Q=[]}async function X(G,K){if(typeof G=="number"){e.history.go(G);return}let ne=qy(A.location,A.matches,u,c.v7_prependBasename,G,K==null?void 0:K.fromRouteId,K==null?void 0:K.relative),{path:ve,submission:Qe,error:Fe}=LR(c.v7_normalizeFormMethod,!1,ne,K),at=A.location,rt=Vy(A.location,ve,K&&K.state);rt=Nn({},rt,e.history.encodeLocation(rt));let Je=K&&K.replace!=null?K.replace:void 0,Rt=Wn.Push;Je===!0?Rt=Wn.Replace:Je===!1||Qe!=null&&Ba(Qe.formMethod)&&Qe.formAction===A.location.pathname+A.location.search&&(Rt=Wn.Replace);let Qt=K&&"preventScrollReset"in K?K.preventScrollReset===!0:void 0,kt=ue({currentLocation:at,nextLocation:rt,historyAction:Rt});if(kt){jt(kt,{state:"blocked",location:rt,proceed(){jt(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:rt}),X(G,K)},reset(){let rn=new Map(A.blockers);rn.set(kt,fd),ie({blockers:rn})}});return}return await te(Rt,rt,{submission:Qe,pendingError:Fe,preventScrollReset:Qt,replace:K&&K.replace})}function ke(){if(U(),ie({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){te(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}te(R||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function te(G,K,ne){N&&N.abort(),N=null,R=G,B=(ne&&ne.startUninterruptedRevalidation)===!0,me(A.location,A.matches),k=(ne&&ne.preventScrollReset)===!0;let ve=s||o,Qe=ne&&ne.overrideNavigation,Fe=L1(ve,K,u);if(!Fe){let rn=oa(404,{pathname:K.pathname}),{matches:Xt,route:Wr}=zR(ve);Ee(),Se(K,{matches:Xt,loaderData:{},errors:{[Wr.id]:rn}});return}if(A.initialized&&!q&&xme(A.location,K)&&!(ne&&ne.submission&&Ba(ne.submission.formMethod))){Se(K,{matches:Fe});return}N=new AbortController;let at=gd(e.history,K,N.signal,ne&&ne.submission),rt,Je;if(ne&&ne.pendingError)Je={[M1(Fe).route.id]:ne.pendingError};else if(ne&&ne.submission&&Ba(ne.submission.formMethod)){let rn=await Me(at,K,ne.submission,Fe,{replace:ne.replace});if(rn.shortCircuited)return;rt=rn.pendingActionData,Je=rn.pendingActionError,Qe=ah(K,ne.submission),at=new Request(at.url,{signal:at.signal})}let{shortCircuited:Rt,loaderData:Qt,errors:kt}=await Re(at,K,Fe,Qe,ne&&ne.submission,ne&&ne.fetcherSubmission,ne&&ne.replace,rt,Je);Rt||(N=null,Se(K,Nn({matches:Fe},rt?{actionData:rt}:{},{loaderData:Qt,errors:kt})))}async function Me(G,K,ne,ve,Qe){Qe===void 0&&(Qe={}),U();let Fe=Dme(K,ne);ie({navigation:Fe});let at,rt=Yy(ve,K);if(!rt.route.action&&!rt.route.lazy)at={type:tr.error,error:oa(405,{method:G.method,pathname:K.pathname,routeId:rt.route.id})};else if(at=await hd("action",G,rt,ve,a,i,u),G.signal.aborted)return{shortCircuited:!0};if(K1(at)){let Je;return Qe&&Qe.replace!=null?Je=Qe.replace:Je=at.location===A.location.pathname+A.location.search,await je(A,at,{submission:ne,replace:Je}),{shortCircuited:!0}}if(tp(at)){let Je=M1(ve,rt.route.id);return(Qe&&Qe.replace)!==!0&&(R=Wn.Push),{pendingActionData:{},pendingActionError:{[Je.route.id]:at.error}}}if(su(at))throw oa(400,{type:"defer-action"});return{pendingActionData:{[rt.route.id]:at.data}}}async function Re(G,K,ne,ve,Qe,Fe,at,rt,Je){let Rt=ve||ah(K,Qe),Qt=Qe||Fe||GR(Rt),kt=s||o,[rn,Xt]=MR(e.history,A,ne,Qt,K,q,P,Q,H,De,kt,u,rt,Je);if(Ee(qt=>!(ne&&ne.some(Dr=>Dr.route.id===qt))||rn&&rn.some(Dr=>Dr.route.id===qt)),fe=++oe,rn.length===0&&Xt.length===0){let qt=Te();return Se(K,Nn({matches:ne,loaderData:{},errors:Je||null},rt?{actionData:rt}:{},qt?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!B){Xt.forEach(Dr=>{let Si=A.fetchers.get(Dr.key),Nl=md(void 0,Si?Si.data:void 0);A.fetchers.set(Dr.key,Nl)});let qt=rt||A.actionData;ie(Nn({navigation:Rt},qt?Object.keys(qt).length===0?{actionData:null}:{actionData:qt}:{},Xt.length>0?{fetchers:new Map(A.fetchers)}:{}))}Xt.forEach(qt=>{$.has(qt.key)&&xe(qt.key),qt.controller&&$.set(qt.key,qt.controller)});let Wr=()=>Xt.forEach(qt=>xe(qt.key));N&&N.signal.addEventListener("abort",Wr);let{results:qr,loaderResults:Kr,fetcherResults:Aa}=await pt(A.matches,ne,rn,Xt,G);if(G.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",Wr),Xt.forEach(qt=>$.delete(qt.key));let si=HR(qr);if(si){if(si.idx>=rn.length){let qt=Xt[si.idx-rn.length].key;De.add(qt)}return await je(A,si.result,{replace:at}),{shortCircuited:!0}}let{loaderData:Or,errors:Es}=UR(A,ne,rn,Kr,Je,Xt,Aa,W);W.forEach((qt,Dr)=>{qt.subscribe(Si=>{(Si||qt.done)&&W.delete(Dr)})});let vs=Te(),Yr=Le(fe),_s=vs||Yr||Xt.length>0;return Nn({loaderData:Or,errors:Es},_s?{fetchers:new Map(A.fetchers)}:{})}function Ze(G){return A.fetchers.get(G)||_me}function We(G,K,ne,ve){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$.has(G)&&xe(G);let Qe=s||o,Fe=qy(A.location,A.matches,u,c.v7_prependBasename,ne,K,ve==null?void 0:ve.relative),at=L1(Qe,Fe,u);if(!at){re(G,K,oa(404,{pathname:Fe}));return}let{path:rt,submission:Je,error:Rt}=LR(c.v7_normalizeFormMethod,!0,Fe,ve);if(Rt){re(G,K,Rt);return}let Qt=Yy(at,rt);if(k=(ve&&ve.preventScrollReset)===!0,Je&&Ba(Je.formMethod)){dt(G,K,rt,Qt,at,Je);return}H.set(G,{routeId:K,path:rt}),ot(G,K,rt,Qt,at,Je)}async function dt(G,K,ne,ve,Qe,Fe){if(U(),H.delete(G),!ve.route.action&&!ve.route.lazy){let Ke=oa(405,{method:Fe.formMethod,pathname:ne,routeId:K});re(G,K,Ke);return}let at=A.fetchers.get(G),rt=Lme(Fe,at);A.fetchers.set(G,rt),ie({fetchers:new Map(A.fetchers)});let Je=new AbortController,Rt=gd(e.history,ne,Je.signal,Fe);$.set(G,Je);let Qt=oe,kt=await hd("action",Rt,ve,Qe,a,i,u);if(Rt.signal.aborted){$.get(G)===Je&&$.delete(G);return}if(K1(kt))if($.delete(G),fe>Qt){let Ke=d1(void 0);A.fetchers.set(G,Ke),ie({fetchers:new Map(A.fetchers)});return}else{De.add(G);let Ke=md(Fe);return A.fetchers.set(G,Ke),ie({fetchers:new Map(A.fetchers)}),je(A,kt,{submission:Fe,isFetchActionRedirect:!0})}if(tp(kt)){re(G,K,kt.error);return}if(su(kt))throw oa(400,{type:"defer-action"});let rn=A.navigation.location||A.location,Xt=gd(e.history,rn,Je.signal),Wr=s||o,qr=A.navigation.state!=="idle"?L1(Wr,A.navigation.location,u):A.matches;$t(qr,"Didn't find any matches after fetcher action");let Kr=++oe;ce.set(G,Kr);let Aa=md(Fe,kt.data);A.fetchers.set(G,Aa);let[si,Or]=MR(e.history,A,qr,Fe,rn,q,P,Q,H,De,Wr,u,{[ve.route.id]:kt.data},void 0);Or.filter(Ke=>Ke.key!==G).forEach(Ke=>{let J=Ke.key,Be=A.fetchers.get(J),it=md(void 0,Be?Be.data:void 0);A.fetchers.set(J,it),$.has(J)&&xe(J),Ke.controller&&$.set(J,Ke.controller)}),ie({fetchers:new Map(A.fetchers)});let Es=()=>Or.forEach(Ke=>xe(Ke.key));Je.signal.addEventListener("abort",Es);let{results:vs,loaderResults:Yr,fetcherResults:_s}=await pt(A.matches,qr,si,Or,Xt);if(Je.signal.aborted)return;Je.signal.removeEventListener("abort",Es),ce.delete(G),$.delete(G),Or.forEach(Ke=>$.delete(Ke.key));let qt=HR(vs);if(qt){if(qt.idx>=si.length){let Ke=Or[qt.idx-si.length].key;De.add(Ke)}return je(A,qt.result)}let{loaderData:Dr,errors:Si}=UR(A,A.matches,si,Yr,void 0,Or,_s,W);if(A.fetchers.has(G)){let Ke=d1(kt.data);A.fetchers.set(G,Ke)}let Nl=Le(Kr);A.navigation.state==="loading"&&Kr>fe?($t(R,"Expected pending action"),N&&N.abort(),Se(A.navigation.location,{matches:qr,loaderData:Dr,errors:Si,fetchers:new Map(A.fetchers)})):(ie(Nn({errors:Si,loaderData:$R(A.loaderData,Dr,qr,Si)},Nl||Or.length>0?{fetchers:new Map(A.fetchers)}:{})),q=!1)}async function ot(G,K,ne,ve,Qe,Fe){let at=A.fetchers.get(G),rt=md(Fe,at?at.data:void 0);A.fetchers.set(G,rt),ie({fetchers:new Map(A.fetchers)});let Je=new AbortController,Rt=gd(e.history,ne,Je.signal);$.set(G,Je);let Qt=oe,kt=await hd("loader",Rt,ve,Qe,a,i,u);if(su(kt)&&(kt=await pB(kt,Rt.signal,!0)||kt),$.get(G)===Je&&$.delete(G),Rt.signal.aborted)return;if(K1(kt))if(fe>Qt){let Xt=d1(void 0);A.fetchers.set(G,Xt),ie({fetchers:new Map(A.fetchers)});return}else{De.add(G),await je(A,kt);return}if(tp(kt)){let Xt=M1(A.matches,K);A.fetchers.delete(G),ie({fetchers:new Map(A.fetchers),errors:{[Xt.route.id]:kt.error}});return}$t(!su(kt),"Unhandled fetcher deferred data");let rn=d1(kt.data);A.fetchers.set(G,rn),ie({fetchers:new Map(A.fetchers)})}async function je(G,K,ne){let{submission:ve,replace:Qe,isFetchActionRedirect:Fe}=ne===void 0?{}:ne;K.revalidate&&(q=!0);let at=Vy(G.location,K.location,Nn({_isRedirect:!0},Fe?{_isFetchActionRedirect:!0}:{}));if($t(at,"Expected a location on the redirect navigation"),uB.test(K.location)&&n){let Rt=e.history.createURL(K.location),Qt=hf(Rt.pathname,u)==null;if(t.location.origin!==Rt.origin||Qt){Qe?t.location.replace(K.location):t.location.assign(K.location);return}}N=null;let rt=Qe===!0?Wn.Replace:Wn.Push,Je=ve||GR(G.navigation);if(vme.has(K.status)&&Je&&Ba(Je.formMethod))await te(rt,at,{submission:Nn({},Je,{formAction:K.location}),preventScrollReset:k});else if(Fe)await te(rt,at,{overrideNavigation:ah(at),fetcherSubmission:Je,preventScrollReset:k});else{let Rt=ah(at,Je);await te(rt,at,{overrideNavigation:Rt,preventScrollReset:k})}}async function pt(G,K,ne,ve,Qe){let Fe=await Promise.all([...ne.map(Je=>hd("loader",Qe,Je,K,a,i,u)),...ve.map(Je=>Je.matches&&Je.match&&Je.controller?hd("loader",gd(e.history,Je.path,Je.controller.signal),Je.match,Je.matches,a,i,u):{type:tr.error,error:oa(404,{pathname:Je.path})})]),at=Fe.slice(0,ne.length),rt=Fe.slice(ne.length);return await Promise.all([jR(G,ne,at,at.map(()=>Qe.signal),!1,A.loaderData),jR(G,ve.map(Je=>Je.match),rt,ve.map(Je=>Je.controller?Je.controller.signal:null),!0)]),{results:Fe,loaderResults:at,fetcherResults:rt}}function U(){q=!0,P.push(...Ee()),H.forEach((G,K)=>{$.has(K)&&(Q.push(K),xe(K))})}function re(G,K,ne){let ve=M1(A.matches,K);de(G),ie({errors:{[ve.route.id]:ne},fetchers:new Map(A.fetchers)})}function de(G){let K=A.fetchers.get(G);$.has(G)&&!(K&&K.state==="loading"&&ce.has(G))&&xe(G),H.delete(G),ce.delete(G),De.delete(G),A.fetchers.delete(G)}function xe(G){let K=$.get(G);$t(K,"Expected fetch controller: "+G),K.abort(),$.delete(G)}function ye(G){for(let K of G){let ne=Ze(K),ve=d1(ne.data);A.fetchers.set(K,ve)}}function Te(){let G=[],K=!1;for(let ne of De){let ve=A.fetchers.get(ne);$t(ve,"Expected fetcher: "+ne),ve.state==="loading"&&(De.delete(ne),G.push(ne),K=!0)}return ye(G),K}function Le(G){let K=[];for(let[ne,ve]of ce)if(ve0}function ze(G,K){let ne=A.blockers.get(G)||fd;return se.get(G)!==K&&se.set(G,K),ne}function Ye(G){A.blockers.delete(G),se.delete(G)}function jt(G,K){let ne=A.blockers.get(G)||fd;$t(ne.state==="unblocked"&&K.state==="blocked"||ne.state==="blocked"&&K.state==="blocked"||ne.state==="blocked"&&K.state==="proceeding"||ne.state==="blocked"&&K.state==="unblocked"||ne.state==="proceeding"&&K.state==="unblocked","Invalid blocker state transition: "+ne.state+" -> "+K.state);let ve=new Map(A.blockers);ve.set(G,K),ie({blockers:ve})}function ue(G){let{currentLocation:K,nextLocation:ne,historyAction:ve}=G;if(se.size===0)return;se.size>1&&Au(!1,"A router only supports one blocker at a time");let Qe=Array.from(se.entries()),[Fe,at]=Qe[Qe.length-1],rt=A.blockers.get(Fe);if(!(rt&&rt.state==="proceeding")&&at({currentLocation:K,nextLocation:ne,historyAction:ve}))return Fe}function Ee(G){let K=[];return W.forEach((ne,ve)=>{(!G||G(ve))&&(ne.cancel(),K.push(ve),W.delete(ve))}),K}function qe(G,K,ne){if(m=G,b=K,g=ne||null,!y&&A.navigation===M4){y=!0;let ve=Ve(A.location,A.matches);ve!=null&&ie({restoreScrollPosition:ve})}return()=>{m=null,b=null,g=null}}function j(G,K){return g&&g(G,K.map(ve=>Ome(ve,A.loaderData)))||G.key}function me(G,K){if(m&&b){let ne=j(G,K);m[ne]=b()}}function Ve(G,K){if(m){let ne=j(G,K),ve=m[ne];if(typeof ve=="number")return ve}return null}function ge(G){a={},s=Wy(G,i,void 0,a)}return w={get basename(){return u},get state(){return A},get routes(){return o},initialize:pe,subscribe:L,enableScrollRestoration:qe,navigate:X,fetch:We,revalidate:ke,createHref:G=>e.history.createHref(G),encodeLocation:G=>e.history.encodeLocation(G),getFetcher:Ze,deleteFetcher:de,dispose:le,getBlocker:ze,deleteBlocker:Ye,_internalFetchControllers:$,_internalActiveDeferreds:W,_internalSetRoutes:ge},w}function wme(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function qy(e,t,n,r,i,a,o){let s,u;if(a!=null&&o!=="path"){s=[];for(let p of t)if(s.push(p),p.route.id===a){u=p;break}}else s=t,u=t[t.length-1];let c=aB(i||".",vT(s).map(p=>p.pathnameBase),hf(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!_T(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:fl([n,c.pathname])),D2(c)}function LR(e,t,n,r){if(!r||!wme(r))return{path:n};if(r.formMethod&&!Nme(r.formMethod))return{path:n,error:oa(405,{method:r.formMethod})};let i=()=>({path:n,error:oa(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=dB(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ba(o))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,b)=>{let[y,T]=b;return""+g+y+"="+T+` + */function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var t=1;tp(g,typeof g=="string"?null:g.state,b===0?"default":void 0));let a=u(n??i.length-1),o=Wn.Pop,s=null;function u(g){return Math.min(Math.max(g,0),i.length-1)}function c(){return i[a]}function p(g,b,y){b===void 0&&(b=null);let T=Vy(i?c().pathname:"/",g,b,y);return Au(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(g)),T}function f(g){return typeof g=="string"?g:D2(g)}return{get index(){return a},get action(){return o},get location(){return c()},createHref:f,createURL(g){return new URL(f(g),"http://localhost")},encodeLocation(g){let b=typeof g=="string"?Ro(g):g;return{pathname:b.pathname||"",search:b.search||"",hash:b.hash||""}},push(g,b){o=Wn.Push;let y=p(g,b);a+=1,i.splice(a,i.length,y),r&&s&&s({action:o,location:y,delta:1})},replace(g,b){o=Wn.Replace;let y=p(g,b);i[a]=y,r&&s&&s({action:o,location:y,delta:0})},go(g){o=Wn.Pop;let b=u(a+g),y=i[b];a=b,s&&s({action:o,location:y,delta:g})},listen(g){return s=g,()=>{s=null}}}}function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Au(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Kge(){return Math.random().toString(36).substr(2,8)}function Vy(e,t,n,r){return n===void 0&&(n=null),Nn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ro(t):t,{state:n,key:t&&t.key||r||Kge()})}function D2(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ro(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var tr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tr||(tr={}));const Yge=new Set(["lazy","caseSensitive","path","id","index","children"]);function Xge(e){return e.index===!0}function Wy(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if($t(i.index!==!0||!i.children,"Cannot specify children on an index route"),$t(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Xge(i)){let u=Nn({},i,t(i),{id:s});return r[s]=u,u}else{let u=Nn({},i,t(i),{id:s,children:void 0});return r[s]=u,i.children&&(u.children=Wy(i.children,t,o,r)),u}})}function L1(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ro(t):t,i=hf(r.pathname||"/",n);if(i==null)return null;let a=rB(e);Zge(a);let o=null;for(let s=0;o==null&&s{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};u.relativePath.startsWith("/")&&($t(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=fl([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&($t(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),rB(a.children,t,p,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:ime(c,a.index),routesMeta:p})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let u of iB(a.path))i(a,o,u)}),t}function iB(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=iB(r.join("/")),s=[];return s.push(...o.map(u=>u===""?a:[a,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Zge(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ame(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Qge=/^:\w+$/,Jge=3,eme=2,tme=1,nme=10,rme=-2,DR=e=>e==="*";function ime(e,t){let n=e.split("/"),r=n.length;return n.some(DR)&&(r+=rme),t&&(r+=eme),n.filter(i=>!DR(i)).reduce((i,a)=>i+(Qge.test(a)?Jge:a===""?tme:nme),r)}function ame(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function ome(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(p==="*"){let m=s[f]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}return c[p]=cme(s[f]||"",p),c},{}),pathname:a,pathnameBase:o,pattern:e}}function lme(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Au(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function ume(e){try{return decodeURI(e)}catch(t){return Au(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function cme(e,t){try{return decodeURIComponent(e)}catch(n){return Au(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function hf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function dme(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ro(e):e;return{pathname:n?n.startsWith("/")?n:pme(n,t):t,search:hme(r),hash:gme(i)}}function pme(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function L4(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function vT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function aB(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ro(e):(i=Nn({},e),$t(!i.pathname||!i.pathname.includes("?"),L4("?","pathname","search",i)),$t(!i.pathname||!i.pathname.includes("#"),L4("#","pathname","hash",i)),$t(!i.search||!i.search.includes("#"),L4("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let f=t.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let u=dme(i,s),c=o&&o!=="/"&&o.endsWith("/"),p=(a||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}const fl=e=>e.join("/").replace(/\/\/+/g,"/"),fme=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hme=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gme=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class oB{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function sB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lB=["post","put","patch","delete"],mme=new Set(lB),bme=["get",...lB],yme=new Set(bme),Eme=new Set([301,302,303,307,308]),vme=new Set([307,308]),M4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_me={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},uB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tme=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Sme(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$t(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let G=e.detectErrorBoundary;i=K=>({hasErrorBoundary:G(K)})}else i=Tme;let a={},o=Wy(e.routes,i,void 0,a),s,u=e.basename||"/",c=Nn({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),p=null,f=new Set,m=null,g=null,b=null,y=e.hydrationData!=null,T=L1(o,e.history.location,u),E=null;if(T==null){let G=oa(404,{pathname:e.history.location.pathname}),{matches:K,route:ne}=zR(o);T=K,E={[ne.id]:G}}let v=!T.some(G=>G.route.lazy)&&(!T.some(G=>G.route.loader)||e.hydrationData!=null),w,A={historyAction:e.history.action,location:e.history.location,matches:T,initialized:v,navigation:M4,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},R=Wn.Pop,k=!1,N,B=!1,q=!1,P=[],Q=[],$=new Map,oe=0,fe=-1,ce=new Map,De=new Set,H=new Map,W=new Map,se=new Map,D=!1;function pe(){return p=e.history.listen(G=>{let{action:K,location:ne,delta:ve}=G;if(D){D=!1;return}Au(se.size===0||ve!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Qe=ue({currentLocation:A.location,nextLocation:ne,historyAction:K});if(Qe&&ve!=null){D=!0,e.history.go(ve*-1),jt(Qe,{state:"blocked",location:ne,proceed(){jt(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),e.history.go(ve)},reset(){let Fe=new Map(A.blockers);Fe.set(Qe,fd),ie({blockers:Fe})}});return}return te(K,ne)}),A.initialized||te(Wn.Pop,A.location),w}function le(){p&&p(),f.clear(),N&&N.abort(),A.fetchers.forEach((G,K)=>de(K)),A.blockers.forEach((G,K)=>Xe(K))}function L(G){return f.add(G),()=>f.delete(G)}function ie(G){A=Nn({},A,G),f.forEach(K=>K(A))}function Se(G,K){var ne,ve;let Qe=A.actionData!=null&&A.navigation.formMethod!=null&&Ba(A.navigation.formMethod)&&A.navigation.state==="loading"&&((ne=G.state)==null?void 0:ne._isRedirect)!==!0,Fe;K.actionData?Object.keys(K.actionData).length>0?Fe=K.actionData:Fe=null:Qe?Fe=A.actionData:Fe=null;let at=K.loaderData?$R(A.loaderData,K.loaderData,K.matches||[],K.errors):A.loaderData,rt=A.blockers;rt.size>0&&(rt=new Map(rt),rt.forEach((Rt,Qt)=>rt.set(Qt,fd)));let Je=k===!0||A.navigation.formMethod!=null&&Ba(A.navigation.formMethod)&&((ve=G.state)==null?void 0:ve._isRedirect)!==!0;s&&(o=s,s=void 0),B||R===Wn.Pop||(R===Wn.Push?e.history.push(G,G.state):R===Wn.Replace&&e.history.replace(G,G.state)),ie(Nn({},K,{actionData:Fe,loaderData:at,historyAction:R,location:G,initialized:!0,navigation:M4,revalidation:"idle",restoreScrollPosition:Ve(G,K.matches||A.matches),preventScrollReset:Je,blockers:rt})),R=Wn.Pop,k=!1,B=!1,q=!1,P=[],Q=[]}async function X(G,K){if(typeof G=="number"){e.history.go(G);return}let ne=qy(A.location,A.matches,u,c.v7_prependBasename,G,K==null?void 0:K.fromRouteId,K==null?void 0:K.relative),{path:ve,submission:Qe,error:Fe}=LR(c.v7_normalizeFormMethod,!1,ne,K),at=A.location,rt=Vy(A.location,ve,K&&K.state);rt=Nn({},rt,e.history.encodeLocation(rt));let Je=K&&K.replace!=null?K.replace:void 0,Rt=Wn.Push;Je===!0?Rt=Wn.Replace:Je===!1||Qe!=null&&Ba(Qe.formMethod)&&Qe.formAction===A.location.pathname+A.location.search&&(Rt=Wn.Replace);let Qt=K&&"preventScrollReset"in K?K.preventScrollReset===!0:void 0,kt=ue({currentLocation:at,nextLocation:rt,historyAction:Rt});if(kt){jt(kt,{state:"blocked",location:rt,proceed(){jt(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:rt}),X(G,K)},reset(){let rn=new Map(A.blockers);rn.set(kt,fd),ie({blockers:rn})}});return}return await te(Rt,rt,{submission:Qe,pendingError:Fe,preventScrollReset:Qt,replace:K&&K.replace})}function ke(){if(U(),ie({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){te(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}te(R||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function te(G,K,ne){N&&N.abort(),N=null,R=G,B=(ne&&ne.startUninterruptedRevalidation)===!0,me(A.location,A.matches),k=(ne&&ne.preventScrollReset)===!0;let ve=s||o,Qe=ne&&ne.overrideNavigation,Fe=L1(ve,K,u);if(!Fe){let rn=oa(404,{pathname:K.pathname}),{matches:Xt,route:Wr}=zR(ve);Ee(),Se(K,{matches:Xt,loaderData:{},errors:{[Wr.id]:rn}});return}if(A.initialized&&!q&&xme(A.location,K)&&!(ne&&ne.submission&&Ba(ne.submission.formMethod))){Se(K,{matches:Fe});return}N=new AbortController;let at=gd(e.history,K,N.signal,ne&&ne.submission),rt,Je;if(ne&&ne.pendingError)Je={[M1(Fe).route.id]:ne.pendingError};else if(ne&&ne.submission&&Ba(ne.submission.formMethod)){let rn=await Me(at,K,ne.submission,Fe,{replace:ne.replace});if(rn.shortCircuited)return;rt=rn.pendingActionData,Je=rn.pendingActionError,Qe=ah(K,ne.submission),at=new Request(at.url,{signal:at.signal})}let{shortCircuited:Rt,loaderData:Qt,errors:kt}=await Re(at,K,Fe,Qe,ne&&ne.submission,ne&&ne.fetcherSubmission,ne&&ne.replace,rt,Je);Rt||(N=null,Se(K,Nn({matches:Fe},rt?{actionData:rt}:{},{loaderData:Qt,errors:kt})))}async function Me(G,K,ne,ve,Qe){Qe===void 0&&(Qe={}),U();let Fe=Dme(K,ne);ie({navigation:Fe});let at,rt=Yy(ve,K);if(!rt.route.action&&!rt.route.lazy)at={type:tr.error,error:oa(405,{method:G.method,pathname:K.pathname,routeId:rt.route.id})};else if(at=await hd("action",G,rt,ve,a,i,u),G.signal.aborted)return{shortCircuited:!0};if(K1(at)){let Je;return Qe&&Qe.replace!=null?Je=Qe.replace:Je=at.location===A.location.pathname+A.location.search,await je(A,at,{submission:ne,replace:Je}),{shortCircuited:!0}}if(tp(at)){let Je=M1(ve,rt.route.id);return(Qe&&Qe.replace)!==!0&&(R=Wn.Push),{pendingActionData:{},pendingActionError:{[Je.route.id]:at.error}}}if(su(at))throw oa(400,{type:"defer-action"});return{pendingActionData:{[rt.route.id]:at.data}}}async function Re(G,K,ne,ve,Qe,Fe,at,rt,Je){let Rt=ve||ah(K,Qe),Qt=Qe||Fe||GR(Rt),kt=s||o,[rn,Xt]=MR(e.history,A,ne,Qt,K,q,P,Q,H,De,kt,u,rt,Je);if(Ee(qt=>!(ne&&ne.some(Dr=>Dr.route.id===qt))||rn&&rn.some(Dr=>Dr.route.id===qt)),fe=++oe,rn.length===0&&Xt.length===0){let qt=Te();return Se(K,Nn({matches:ne,loaderData:{},errors:Je||null},rt?{actionData:rt}:{},qt?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!B){Xt.forEach(Dr=>{let Si=A.fetchers.get(Dr.key),Nl=md(void 0,Si?Si.data:void 0);A.fetchers.set(Dr.key,Nl)});let qt=rt||A.actionData;ie(Nn({navigation:Rt},qt?Object.keys(qt).length===0?{actionData:null}:{actionData:qt}:{},Xt.length>0?{fetchers:new Map(A.fetchers)}:{}))}Xt.forEach(qt=>{$.has(qt.key)&&xe(qt.key),qt.controller&&$.set(qt.key,qt.controller)});let Wr=()=>Xt.forEach(qt=>xe(qt.key));N&&N.signal.addEventListener("abort",Wr);let{results:qr,loaderResults:Kr,fetcherResults:Aa}=await pt(A.matches,ne,rn,Xt,G);if(G.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",Wr),Xt.forEach(qt=>$.delete(qt.key));let si=HR(qr);if(si){if(si.idx>=rn.length){let qt=Xt[si.idx-rn.length].key;De.add(qt)}return await je(A,si.result,{replace:at}),{shortCircuited:!0}}let{loaderData:Or,errors:Es}=UR(A,ne,rn,Kr,Je,Xt,Aa,W);W.forEach((qt,Dr)=>{qt.subscribe(Si=>{(Si||qt.done)&&W.delete(Dr)})});let vs=Te(),Yr=Le(fe),_s=vs||Yr||Xt.length>0;return Nn({loaderData:Or,errors:Es},_s?{fetchers:new Map(A.fetchers)}:{})}function Ye(G){return A.fetchers.get(G)||_me}function We(G,K,ne,ve){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$.has(G)&&xe(G);let Qe=s||o,Fe=qy(A.location,A.matches,u,c.v7_prependBasename,ne,K,ve==null?void 0:ve.relative),at=L1(Qe,Fe,u);if(!at){re(G,K,oa(404,{pathname:Fe}));return}let{path:rt,submission:Je,error:Rt}=LR(c.v7_normalizeFormMethod,!0,Fe,ve);if(Rt){re(G,K,Rt);return}let Qt=Yy(at,rt);if(k=(ve&&ve.preventScrollReset)===!0,Je&&Ba(Je.formMethod)){dt(G,K,rt,Qt,at,Je);return}H.set(G,{routeId:K,path:rt}),ot(G,K,rt,Qt,at,Je)}async function dt(G,K,ne,ve,Qe,Fe){if(U(),H.delete(G),!ve.route.action&&!ve.route.lazy){let Ke=oa(405,{method:Fe.formMethod,pathname:ne,routeId:K});re(G,K,Ke);return}let at=A.fetchers.get(G),rt=Lme(Fe,at);A.fetchers.set(G,rt),ie({fetchers:new Map(A.fetchers)});let Je=new AbortController,Rt=gd(e.history,ne,Je.signal,Fe);$.set(G,Je);let Qt=oe,kt=await hd("action",Rt,ve,Qe,a,i,u);if(Rt.signal.aborted){$.get(G)===Je&&$.delete(G);return}if(K1(kt))if($.delete(G),fe>Qt){let Ke=d1(void 0);A.fetchers.set(G,Ke),ie({fetchers:new Map(A.fetchers)});return}else{De.add(G);let Ke=md(Fe);return A.fetchers.set(G,Ke),ie({fetchers:new Map(A.fetchers)}),je(A,kt,{submission:Fe,isFetchActionRedirect:!0})}if(tp(kt)){re(G,K,kt.error);return}if(su(kt))throw oa(400,{type:"defer-action"});let rn=A.navigation.location||A.location,Xt=gd(e.history,rn,Je.signal),Wr=s||o,qr=A.navigation.state!=="idle"?L1(Wr,A.navigation.location,u):A.matches;$t(qr,"Didn't find any matches after fetcher action");let Kr=++oe;ce.set(G,Kr);let Aa=md(Fe,kt.data);A.fetchers.set(G,Aa);let[si,Or]=MR(e.history,A,qr,Fe,rn,q,P,Q,H,De,Wr,u,{[ve.route.id]:kt.data},void 0);Or.filter(Ke=>Ke.key!==G).forEach(Ke=>{let J=Ke.key,Be=A.fetchers.get(J),it=md(void 0,Be?Be.data:void 0);A.fetchers.set(J,it),$.has(J)&&xe(J),Ke.controller&&$.set(J,Ke.controller)}),ie({fetchers:new Map(A.fetchers)});let Es=()=>Or.forEach(Ke=>xe(Ke.key));Je.signal.addEventListener("abort",Es);let{results:vs,loaderResults:Yr,fetcherResults:_s}=await pt(A.matches,qr,si,Or,Xt);if(Je.signal.aborted)return;Je.signal.removeEventListener("abort",Es),ce.delete(G),$.delete(G),Or.forEach(Ke=>$.delete(Ke.key));let qt=HR(vs);if(qt){if(qt.idx>=si.length){let Ke=Or[qt.idx-si.length].key;De.add(Ke)}return je(A,qt.result)}let{loaderData:Dr,errors:Si}=UR(A,A.matches,si,Yr,void 0,Or,_s,W);if(A.fetchers.has(G)){let Ke=d1(kt.data);A.fetchers.set(G,Ke)}let Nl=Le(Kr);A.navigation.state==="loading"&&Kr>fe?($t(R,"Expected pending action"),N&&N.abort(),Se(A.navigation.location,{matches:qr,loaderData:Dr,errors:Si,fetchers:new Map(A.fetchers)})):(ie(Nn({errors:Si,loaderData:$R(A.loaderData,Dr,qr,Si)},Nl||Or.length>0?{fetchers:new Map(A.fetchers)}:{})),q=!1)}async function ot(G,K,ne,ve,Qe,Fe){let at=A.fetchers.get(G),rt=md(Fe,at?at.data:void 0);A.fetchers.set(G,rt),ie({fetchers:new Map(A.fetchers)});let Je=new AbortController,Rt=gd(e.history,ne,Je.signal);$.set(G,Je);let Qt=oe,kt=await hd("loader",Rt,ve,Qe,a,i,u);if(su(kt)&&(kt=await pB(kt,Rt.signal,!0)||kt),$.get(G)===Je&&$.delete(G),Rt.signal.aborted)return;if(K1(kt))if(fe>Qt){let Xt=d1(void 0);A.fetchers.set(G,Xt),ie({fetchers:new Map(A.fetchers)});return}else{De.add(G),await je(A,kt);return}if(tp(kt)){let Xt=M1(A.matches,K);A.fetchers.delete(G),ie({fetchers:new Map(A.fetchers),errors:{[Xt.route.id]:kt.error}});return}$t(!su(kt),"Unhandled fetcher deferred data");let rn=d1(kt.data);A.fetchers.set(G,rn),ie({fetchers:new Map(A.fetchers)})}async function je(G,K,ne){let{submission:ve,replace:Qe,isFetchActionRedirect:Fe}=ne===void 0?{}:ne;K.revalidate&&(q=!0);let at=Vy(G.location,K.location,Nn({_isRedirect:!0},Fe?{_isFetchActionRedirect:!0}:{}));if($t(at,"Expected a location on the redirect navigation"),uB.test(K.location)&&n){let Rt=e.history.createURL(K.location),Qt=hf(Rt.pathname,u)==null;if(t.location.origin!==Rt.origin||Qt){Qe?t.location.replace(K.location):t.location.assign(K.location);return}}N=null;let rt=Qe===!0?Wn.Replace:Wn.Push,Je=ve||GR(G.navigation);if(vme.has(K.status)&&Je&&Ba(Je.formMethod))await te(rt,at,{submission:Nn({},Je,{formAction:K.location}),preventScrollReset:k});else if(Fe)await te(rt,at,{overrideNavigation:ah(at),fetcherSubmission:Je,preventScrollReset:k});else{let Rt=ah(at,Je);await te(rt,at,{overrideNavigation:Rt,preventScrollReset:k})}}async function pt(G,K,ne,ve,Qe){let Fe=await Promise.all([...ne.map(Je=>hd("loader",Qe,Je,K,a,i,u)),...ve.map(Je=>Je.matches&&Je.match&&Je.controller?hd("loader",gd(e.history,Je.path,Je.controller.signal),Je.match,Je.matches,a,i,u):{type:tr.error,error:oa(404,{pathname:Je.path})})]),at=Fe.slice(0,ne.length),rt=Fe.slice(ne.length);return await Promise.all([jR(G,ne,at,at.map(()=>Qe.signal),!1,A.loaderData),jR(G,ve.map(Je=>Je.match),rt,ve.map(Je=>Je.controller?Je.controller.signal:null),!0)]),{results:Fe,loaderResults:at,fetcherResults:rt}}function U(){q=!0,P.push(...Ee()),H.forEach((G,K)=>{$.has(K)&&(Q.push(K),xe(K))})}function re(G,K,ne){let ve=M1(A.matches,K);de(G),ie({errors:{[ve.route.id]:ne},fetchers:new Map(A.fetchers)})}function de(G){let K=A.fetchers.get(G);$.has(G)&&!(K&&K.state==="loading"&&ce.has(G))&&xe(G),H.delete(G),ce.delete(G),De.delete(G),A.fetchers.delete(G)}function xe(G){let K=$.get(G);$t(K,"Expected fetch controller: "+G),K.abort(),$.delete(G)}function ye(G){for(let K of G){let ne=Ye(K),ve=d1(ne.data);A.fetchers.set(K,ve)}}function Te(){let G=[],K=!1;for(let ne of De){let ve=A.fetchers.get(ne);$t(ve,"Expected fetcher: "+ne),ve.state==="loading"&&(De.delete(ne),G.push(ne),K=!0)}return ye(G),K}function Le(G){let K=[];for(let[ne,ve]of ce)if(ve0}function ze(G,K){let ne=A.blockers.get(G)||fd;return se.get(G)!==K&&se.set(G,K),ne}function Xe(G){A.blockers.delete(G),se.delete(G)}function jt(G,K){let ne=A.blockers.get(G)||fd;$t(ne.state==="unblocked"&&K.state==="blocked"||ne.state==="blocked"&&K.state==="blocked"||ne.state==="blocked"&&K.state==="proceeding"||ne.state==="blocked"&&K.state==="unblocked"||ne.state==="proceeding"&&K.state==="unblocked","Invalid blocker state transition: "+ne.state+" -> "+K.state);let ve=new Map(A.blockers);ve.set(G,K),ie({blockers:ve})}function ue(G){let{currentLocation:K,nextLocation:ne,historyAction:ve}=G;if(se.size===0)return;se.size>1&&Au(!1,"A router only supports one blocker at a time");let Qe=Array.from(se.entries()),[Fe,at]=Qe[Qe.length-1],rt=A.blockers.get(Fe);if(!(rt&&rt.state==="proceeding")&&at({currentLocation:K,nextLocation:ne,historyAction:ve}))return Fe}function Ee(G){let K=[];return W.forEach((ne,ve)=>{(!G||G(ve))&&(ne.cancel(),K.push(ve),W.delete(ve))}),K}function qe(G,K,ne){if(m=G,b=K,g=ne||null,!y&&A.navigation===M4){y=!0;let ve=Ve(A.location,A.matches);ve!=null&&ie({restoreScrollPosition:ve})}return()=>{m=null,b=null,g=null}}function j(G,K){return g&&g(G,K.map(ve=>Ome(ve,A.loaderData)))||G.key}function me(G,K){if(m&&b){let ne=j(G,K);m[ne]=b()}}function Ve(G,K){if(m){let ne=j(G,K),ve=m[ne];if(typeof ve=="number")return ve}return null}function ge(G){a={},s=Wy(G,i,void 0,a)}return w={get basename(){return u},get state(){return A},get routes(){return o},initialize:pe,subscribe:L,enableScrollRestoration:qe,navigate:X,fetch:We,revalidate:ke,createHref:G=>e.history.createHref(G),encodeLocation:G=>e.history.encodeLocation(G),getFetcher:Ye,deleteFetcher:de,dispose:le,getBlocker:ze,deleteBlocker:Xe,_internalFetchControllers:$,_internalActiveDeferreds:W,_internalSetRoutes:ge},w}function wme(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function qy(e,t,n,r,i,a,o){let s,u;if(a!=null&&o!=="path"){s=[];for(let p of t)if(s.push(p),p.route.id===a){u=p;break}}else s=t,u=t[t.length-1];let c=aB(i||".",vT(s).map(p=>p.pathnameBase),hf(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!_T(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:fl([n,c.pathname])),D2(c)}function LR(e,t,n,r){if(!r||!wme(r))return{path:n};if(r.formMethod&&!Nme(r.formMethod))return{path:n,error:oa(405,{method:r.formMethod})};let i=()=>({path:n,error:oa(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=dB(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ba(o))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,b)=>{let[y,T]=b;return""+g+y+"="+T+` `},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ba(o))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}$t(typeof FormData=="function","FormData is not available in this environment");let u,c;if(r.formData)u=Ky(r.formData),c=r.formData;else if(r.body instanceof FormData)u=Ky(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=BR(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=BR(u)}catch{return i()}let p={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Ba(p.formMethod))return{path:n,submission:p};let f=Ro(n);return t&&f.search&&_T(f.search)&&u.append("index",""),f.search="?"+u,{path:D2(f),submission:p}}function Ame(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function MR(e,t,n,r,i,a,o,s,u,c,p,f,m,g){let b=g?Object.values(g)[0]:m?Object.values(m)[0]:void 0,y=e.createURL(t.location),T=e.createURL(i),E=g?Object.keys(g)[0]:void 0,w=Ame(n,E).filter((R,k)=>{if(R.route.lazy)return!0;if(R.route.loader==null)return!1;if(Cme(t.loaderData,t.matches[k],R)||o.some(q=>q===R.route.id))return!0;let N=t.matches[k],B=R;return FR(R,Nn({currentUrl:y,currentParams:N.params,nextUrl:T,nextParams:B.params},r,{actionResult:b,defaultShouldRevalidate:a||y.pathname+y.search===T.pathname+T.search||y.search!==T.search||cB(N,B)}))}),A=[];return u.forEach((R,k)=>{if(!n.some(Q=>Q.route.id===R.routeId))return;let N=L1(p,R.path,f);if(!N){A.push({key:k,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let B=t.fetchers.get(k),q=Yy(N,R.path),P=!1;c.has(k)?P=!1:s.includes(k)?P=!0:B&&B.state!=="idle"&&B.data===void 0?P=a:P=FR(q,Nn({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:T,nextParams:n[n.length-1].params},r,{actionResult:b,defaultShouldRevalidate:a})),P&&A.push({key:k,routeId:R.routeId,path:R.path,matches:N,match:q,controller:new AbortController})}),[w,A]}function Cme(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function cB(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function FR(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function PR(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];$t(i,"No route found in manifest");let a={};for(let o in r){let u=i[o]!==void 0&&o!=="hasErrorBoundary";Au(!u,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!u&&!Yge.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Nn({},t(i),{lazy:void 0}))}async function hd(e,t,n,r,i,a,o,s){s===void 0&&(s={});let u,c,p,f=b=>{let y,T=new Promise((E,v)=>y=v);return p=()=>y(),t.signal.addEventListener("abort",p),Promise.race([b({request:t,params:n.params,context:s.requestContext}),T])};try{let b=n.route[e];if(n.route.lazy)if(b)c=(await Promise.all([f(b),PR(n.route,a,i)]))[0];else if(await PR(n.route,a,i),b=n.route[e],b)c=await f(b);else if(e==="action"){let y=new URL(t.url),T=y.pathname+y.search;throw oa(405,{method:t.method,pathname:T,routeId:n.route.id})}else return{type:tr.data,data:void 0};else if(b)c=await f(b);else{let y=new URL(t.url),T=y.pathname+y.search;throw oa(404,{pathname:T})}$t(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(b){u=tr.error,c=b}finally{p&&t.signal.removeEventListener("abort",p)}if(Rme(c)){let b=c.status;if(Eme.has(b)){let E=c.headers.get("Location");if($t(E,"Redirects returned/thrown from loaders/actions must have a Location header"),!uB.test(E))E=qy(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,E);else if(!s.isStaticRequest){let v=new URL(t.url),w=E.startsWith("//")?new URL(v.protocol+E):new URL(E),A=hf(w.pathname,o)!=null;w.origin===v.origin&&A&&(E=w.pathname+w.search+w.hash)}if(s.isStaticRequest)throw c.headers.set("Location",E),c;return{type:tr.redirect,status:b,location:E,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(s.isRouteRequest)throw{type:u||tr.data,response:c};let y,T=c.headers.get("Content-Type");return T&&/\bapplication\/json\b/.test(T)?y=await c.json():y=await c.text(),u===tr.error?{type:u,error:new oB(b,c.statusText,y),headers:c.headers}:{type:tr.data,data:y,statusCode:c.status,headers:c.headers}}if(u===tr.error)return{type:u,error:c};if(Ime(c)){var m,g;return{type:tr.deferred,deferredData:c,statusCode:(m=c.init)==null?void 0:m.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:tr.data,data:c}}function gd(e,t,n,r){let i=e.createURL(dB(t)).toString(),a={signal:n};if(r&&Ba(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=Ky(r.formData):a.body=r.formData}return new Request(i,a)}function Ky(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function BR(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function kme(e,t,n,r,i){let a={},o=null,s,u=!1,c={};return n.forEach((p,f)=>{let m=t[f].route.id;if($t(!K1(p),"Cannot handle redirect results in processLoaderData"),tp(p)){let g=M1(e,m),b=p.error;r&&(b=Object.values(r)[0],r=void 0),o=o||{},o[g.route.id]==null&&(o[g.route.id]=b),a[m]=void 0,u||(u=!0,s=sB(p.error)?p.error.status:500),p.headers&&(c[m]=p.headers)}else su(p)?(i.set(m,p.deferredData),a[m]=p.deferredData.data):a[m]=p.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(s=p.statusCode),p.headers&&(c[m]=p.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function UR(e,t,n,r,i,a,o,s){let{loaderData:u,errors:c}=kme(t,n,r,i,s);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function zR(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function oa(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?s="defer() is not supported in actions":a==="invalid-body"&&(s="Unable to encode submission body")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new oB(e||500,o,new Error(s),!0)}function HR(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(K1(n))return{result:n,idx:t}}}function dB(e){let t=typeof e=="string"?Ro(e):e;return D2(Nn({},t,{hash:""}))}function xme(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function su(e){return e.type===tr.deferred}function tp(e){return e.type===tr.error}function K1(e){return(e&&e.type)===tr.redirect}function Ime(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Rme(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Nme(e){return yme.has(e.toLowerCase())}function Ba(e){return mme.has(e.toLowerCase())}async function jR(e,t,n,r,i,a){for(let o=0;of.route.id===u.route.id),p=c!=null&&!cB(c,u)&&(a&&a[u.route.id])!==void 0;if(su(s)&&(i||p)){let f=r[o];$t(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await pB(s,f,i).then(m=>{m&&(n[o]=m||n[o])})}}}async function pB(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:tr.data,data:e.deferredData.unwrappedData}}catch(i){return{type:tr.error,error:i}}return{type:tr.data,data:e.deferredData.data}}}function _T(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ome(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function Yy(e,t){let n=typeof t=="string"?Ro(t).search:t.search;if(e[e.length-1].route.index&&_T(n||""))return e[e.length-1];let r=vT(e);return r[r.length-1]}function GR(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function ah(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Dme(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function md(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function Lme(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function d1(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** * React Router v6.14.2 * @@ -755,7 +755,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 0; z-index: 100; background-color: ${Ht}; -`;function l2e({error:e,resetErrorBoundary:t}){return I.jsxs("div",{role:"alert",children:[I.jsx("p",{children:"Something went wrong:"}),I.jsx("pre",{style:{color:"red"},children:e.message}),I.jsx(oc,{onClick:t,children:"Restart"})]})}function qR(e){var ce,De;const t=C.useContext(to),n=Bge(),r=eo(),i=No(),a=zt(H=>H.sessionState),o=zt(H=>{var W;return(W=H.serverState.config.models)==null?void 0:W.default}),s=zt(H=>H.misc.serverStatusMessage),u=zt(H=>H.sessionState.title),c=zt(H=>H.sessionState.active),[p,f]=C.useState(!1),[m,g]=C.useState([]);C.useState(!0);const[b,y]=C.useState(!1);C.useEffect(()=>{setTimeout(()=>{y(!0)},5e3)},[]);const T=C.useRef(null),E=C.useRef(null),v=C.useRef(null),w=zt(H=>H.uiState.bottomMessage),A=zt(H=>H.misc.takenAction);C.useEffect(()=>{v.current&&r(W0e(v.current.getBoundingClientRect().top{var W;const H=()=>{var L,ie;const D=((L=E.current)==null?void 0:L.scrollTop)||0,pe=((ie=E.current)==null?void 0:ie.scrollHeight)||0,le=window.innerHeight||0;D+le+-25>=pe?k(!1):k(!0)};return(W=E.current)==null||W.addEventListener("scroll",H),()=>{window.removeEventListener("scroll",H)}},[E.current]),C.useLayoutEffect(()=>{var H,W;R||(W=E.current)==null||W.scrollTo({top:(H=E.current)==null?void 0:H.scrollHeight,behavior:"instant"})},[(ce=E.current)==null?void 0:ce.scrollHeight,a.history]),C.useEffect(()=>{const H=W=>{W.key==="Backspace"&&xg(W)&&!W.shiftKey?(t==null||t.stopSession(),r(Zd(!1))):W.key==="Escape"&&r(pu(void 0))};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[t,c]);const N=C.useCallback(H=>{if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!H.startsWith("/")||H.startsWith("/edit"))){const pe=localStorage.getItem("ftc");if(pe){const le=parseInt(pe);if(localStorage.setItem("ftc",(le+1).toString()),le>=250){console.log(o,"FTC"),r(cc(!0)),r(C4(I.jsx(r2e,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}f(!0);const W=[...a.history,{name:"User Input",description:H,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:H},hide:!1,depth:0}],se={history:W,context_items:a.context_items};for(let pe of a.context_items)r(SP({item:pe,index:W.length-1}));t.runFromState(se),W.push({name:"Generating Response...",description:" ",observations:[],logs:[],step_type:"SimpleChatStep",params:{},hide:!1,depth:0}),r(KI(W)),r(Zd(!0));const D=localStorage.getItem("mainTextEntryCounter");if(D){let pe=parseInt(D);localStorage.setItem("mainTextEntryCounter",(pe+1).toString()),pe===300&&(r(C4(I.jsxs("div",{className:"text-center p-4",children:["👋 Thanks for using Continue. We are a beta product and love working closely with our first users. If you're interested in speaking, enter your name and email. We won't use this information for anything other than reaching out.",I.jsx("br",{}),I.jsx("br",{}),I.jsxs("form",{onSubmit:le=>{le.preventDefault(),n==null||n.capture("user_interest_form",{name:le.target.elements[0].value,email:le.target.elements[1].value}),r(C4(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(V0e(!1)),r(cc(!0)))}else localStorage.setItem("mainTextEntryCounter","1")},[t,a.history,a.context_items,o]);C.useEffect(()=>{const H=W=>{W.data.type==="userInput"&&N(W.data.input)};return window.addEventListener("message",H),()=>window.removeEventListener("message",H)},[N]);const B=H=>{if(r(Ad(null)),T.current&&t){let W=T.current.inputValue;if(W.trim()==="")return;if(W.startsWith("#")&&(W.length===7||W.length===4)){localStorage.setItem("continueButtonColor",W),T.current.setInputValue("");return}H&&xg(H)&&(W=`/edit ${W}`),T.current.setInputValue(""),N(W)}},q=(H,W)=>{t&&t.sendStepUserInput(H,W)},P=C.useCallback(H=>{let W=!1;for(let se=H+1;se{const W=[];let se=-1;for(let D=H;D>=0;D--)if(typeof a.history[D]<"u"&&a.history[D].name==="User Input"&&a.history[D].hide===!1){W.push(D),se=D;break}if(W.length===0)return[];for(let D=se+1;D{const W=Q(H),se=W[0];g(D=>{const pe=[...D];return pe[H]=!pe[H],!W.some((L,ie)=>ie>0&&pe[L])?pe[se]=!1:!W.some((ie,Se)=>Se>0&&!pe[ie])&&(pe[se]=!0),pe})},[Q]);C.useEffect(()=>{u&&fe(u)},[u]);const[oe,fe]=C.useState(u||"New Session");return I.jsxs(i2e,{ref:E,onKeyDown:H=>{H.key==="Enter"&&H.ctrlKey&&B()},children:[I.jsxs(s2e,{children:[I.jsx(a2e,{onClick:H=>{H.target.setSelectionRange(0,H.target.value.length)},value:oe,onChange:H=>fe(H.target.value),onBlur:H=>{H.target.value===u||typeof u>"u"&&H.target.value==="New Session"||r(wP(H.target.value))},onKeyDown:H=>{H.key==="Enter"?(H.preventDefault(),H.target.blur()):H.key==="Escape"&&(fe(u||"New Session"),H.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[I.jsx(zi,{onClick:()=>{t==null||t.stopSession(),r(uc())},text:"New Session (⌥⌘N)",children:I.jsx(CL,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(OZ,{width:"1.4em",height:"1.4em"})})]})]}),A&&b&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(zge,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{qa("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(o2e,{children:(De=a==null?void 0:a.history)==null?void 0:De.map((H,W)=>H.hide?null:I.jsx(C.Fragment,{children:I.jsx(WX,{FallbackComponent:l2e,onReset:()=>{t==null||t.stopSession(),r(uc())},children:H.name==="User Input"?H.hide||I.jsx(QI,{isMainInput:!1,value:H.description,active:c&&P(W),onEnter:(se,D)=>{if(D){t==null||t.stopSession();const pe=[...a.history.slice(0,W),{name:"User Input",description:D,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:D},hide:!1,depth:0}];r(KI(pe)),r(Zd(!0));const le={history:pe,context_items:a.context_items};console.log("State: ",le),t.runFromState(le)}se==null||se.stopPropagation(),se==null||se.preventDefault()},groupIndices:Q(W),onToggle:se=>{g(D=>{const pe=[...D];return Q(W).forEach(le=>{pe[le]=se}),pe})},onToggleAll:se=>{g(D=>D.map(pe=>se))},isToggleOpen:typeof m[W]>"u"?!0:m[W],index:W,onDelete:()=>{Q(W).forEach(se=>{console.log(se),r(S4(se))})}}):I.jsx(Gge,{historyNode:H,iconElement:H.step_type==="DefaultModelEditCodeStep"?I.jsx(wZ,{width:"16px",height:"16px"}):H.error?I.jsx(wL,{width:"16px",height:"16px",color:"red"}):I.jsx(SL,{width:"16px",height:"16px"}),open:typeof m[W]>"u"?!H.error:m[W],onToggle:()=>$(W),children:H.error?I.jsx(Wge,{onClose:()=>$(W),error:H.error,onDelete:()=>{r(S4(W))}}):I.jsx(Uue,{index:W,isLast:W===a.history.length-1,isFirst:W===0,open:typeof m[W]>"u"?!0:m[W],onUserInput:se=>{q(se,W)},step:H,onReverse:()=>{t==null||t.reverseToIndex(W)},onRetry:()=>{t==null||t.retryAtIndex(W),f(!0)},onDelete:()=>{r(S4(W))},noUserInputParent:Q(W).length===0},W)})})},W))}),I.jsx("div",{ref:v}),I.jsx(QI,{isMainInput:!0,ref:T,onEnter:(H,W)=>{B(H),H==null||H.stopPropagation(),H==null||H.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const u2e=Ge.div` +`;function l2e({error:e,resetErrorBoundary:t}){return I.jsxs("div",{role:"alert",children:[I.jsx("p",{children:"Something went wrong:"}),I.jsx("pre",{style:{color:"red"},children:e.message}),I.jsx(oc,{onClick:t,children:"Restart"})]})}function qR(e){var ce,De;const t=C.useContext(to),n=Bge(),r=eo(),i=No(),a=zt(H=>H.sessionState),o=zt(H=>{var W;return(W=H.serverState.config.models)==null?void 0:W.default}),s=zt(H=>H.misc.serverStatusMessage),u=zt(H=>H.sessionState.title),c=zt(H=>H.sessionState.active),[p,f]=C.useState(!1),[m,g]=C.useState([]);C.useState(!0);const[b,y]=C.useState(!1);C.useEffect(()=>{setTimeout(()=>{y(!0)},5e3)},[]);const T=C.useRef(null),E=C.useRef(null),v=C.useRef(null),w=zt(H=>H.uiState.bottomMessage),A=zt(H=>H.misc.takenAction);C.useEffect(()=>{v.current&&r(W0e(v.current.getBoundingClientRect().top{var W;const H=()=>{var L,ie;const D=((L=E.current)==null?void 0:L.scrollTop)||0,pe=((ie=E.current)==null?void 0:ie.scrollHeight)||0,le=window.innerHeight||0;D+le+-25>=pe?k(!1):k(!0)};return(W=E.current)==null||W.addEventListener("scroll",H),()=>{window.removeEventListener("scroll",H)}},[E.current]),C.useLayoutEffect(()=>{var H,W;R||(W=E.current)==null||W.scrollTo({top:(H=E.current)==null?void 0:H.scrollHeight,behavior:"instant"})},[(ce=E.current)==null?void 0:ce.scrollHeight,a.history]),C.useEffect(()=>{const H=W=>{W.key==="Backspace"&&xg(W)&&!W.shiftKey?(t==null||t.stopSession(),r(Zd(!1))):W.key==="Escape"&&r(pu(void 0))};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[t,c]);const N=C.useCallback(H=>{if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!H.startsWith("/")||H.startsWith("/edit"))){const pe=localStorage.getItem("ftc");if(pe){const le=parseInt(pe);if(localStorage.setItem("ftc",(le+1).toString()),le>=250){r(cc(!0)),r(C4(I.jsx(r2e,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}f(!0);const W=[...a.history,{name:"User Input",description:H,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:H},hide:!1,depth:0}],se={history:W,context_items:a.context_items};for(let pe of a.context_items)r(SP({item:pe,index:W.length-1}));t.runFromState(se),W.push({name:"Generating Response...",description:" ",observations:[],logs:[],step_type:"SimpleChatStep",params:{},hide:!1,depth:0}),r(KI(W)),r(Zd(!0));const D=localStorage.getItem("mainTextEntryCounter");if(D){let pe=parseInt(D);localStorage.setItem("mainTextEntryCounter",(pe+1).toString()),pe===300&&(r(C4(I.jsxs("div",{className:"text-center p-4",children:["👋 Thanks for using Continue. We are a beta product and love working closely with our first users. If you're interested in speaking, enter your name and email. We won't use this information for anything other than reaching out.",I.jsx("br",{}),I.jsx("br",{}),I.jsxs("form",{onSubmit:le=>{le.preventDefault(),n==null||n.capture("user_interest_form",{name:le.target.elements[0].value,email:le.target.elements[1].value}),r(C4(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(V0e(!1)),r(cc(!0)))}else localStorage.setItem("mainTextEntryCounter","1")},[t,a.history,a.context_items,o]);C.useEffect(()=>{const H=W=>{W.data.type==="userInput"&&N(W.data.input)};return window.addEventListener("message",H),()=>window.removeEventListener("message",H)},[N]);const B=H=>{if(r(Ad(null)),T.current&&t){let W=T.current.inputValue;if(W.trim()==="")return;if(W.startsWith("#")&&(W.length===7||W.length===4)){localStorage.setItem("continueButtonColor",W),T.current.setInputValue("");return}H&&xg(H)&&(W=`/edit ${W}`),T.current.setInputValue(""),N(W)}},q=(H,W)=>{t&&t.sendStepUserInput(H,W)},P=C.useCallback(H=>{let W=!1;for(let se=H+1;se{const W=[];let se=-1;for(let D=H;D>=0;D--)if(typeof a.history[D]<"u"&&a.history[D].name==="User Input"&&a.history[D].hide===!1){W.push(D),se=D;break}if(W.length===0)return[];for(let D=se+1;D{const W=Q(H),se=W[0];g(D=>{const pe=[...D];return pe[H]=!pe[H],!W.some((L,ie)=>ie>0&&pe[L])?pe[se]=!1:!W.some((ie,Se)=>Se>0&&!pe[ie])&&(pe[se]=!0),pe})},[Q]);C.useEffect(()=>{u&&fe(u)},[u]);const[oe,fe]=C.useState(u||"New Session");return I.jsxs(i2e,{ref:E,onKeyDown:H=>{H.key==="Enter"&&H.ctrlKey&&B()},children:[I.jsxs(s2e,{children:[I.jsx(a2e,{onClick:H=>{H.target.setSelectionRange(0,H.target.value.length)},value:oe,onChange:H=>fe(H.target.value),onBlur:H=>{H.target.value===u||typeof u>"u"&&H.target.value==="New Session"||r(wP(H.target.value))},onKeyDown:H=>{H.key==="Enter"?(H.preventDefault(),H.target.blur()):H.key==="Escape"&&(fe(u||"New Session"),H.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[I.jsx(zi,{onClick:()=>{t==null||t.stopSession(),r(uc())},text:"New Session (⌥⌘N)",children:I.jsx(CL,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(OZ,{width:"1.4em",height:"1.4em"})})]})]}),A&&b&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(zge,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{qa("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(o2e,{children:(De=a==null?void 0:a.history)==null?void 0:De.map((H,W)=>H.hide?null:I.jsx(C.Fragment,{children:I.jsx(WX,{FallbackComponent:l2e,onReset:()=>{t==null||t.stopSession(),r(uc())},children:H.name==="User Input"?H.hide||I.jsx(QI,{isMainInput:!1,value:H.description,active:c&&P(W),onEnter:(se,D)=>{if(D){t==null||t.stopSession();const pe=[...a.history.slice(0,W),{name:"User Input",description:D,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:D},hide:!1,depth:0}];r(KI(pe)),r(Zd(!0));const le={history:pe,context_items:a.context_items};console.log("State: ",le),t.runFromState(le)}se==null||se.stopPropagation(),se==null||se.preventDefault()},groupIndices:Q(W),onToggle:se=>{g(D=>{const pe=[...D];return Q(W).forEach(le=>{pe[le]=se}),pe})},onToggleAll:se=>{g(D=>D.map(pe=>se))},isToggleOpen:typeof m[W]>"u"?!0:m[W],index:W,onDelete:()=>{Q(W).forEach(se=>{console.log(se),r(S4(se))})}}):I.jsx(Gge,{historyNode:H,iconElement:H.step_type==="DefaultModelEditCodeStep"?I.jsx(wZ,{width:"16px",height:"16px"}):H.error?I.jsx(wL,{width:"16px",height:"16px",color:"red"}):I.jsx(SL,{width:"16px",height:"16px"}),open:typeof m[W]>"u"?!H.error:m[W],onToggle:()=>$(W),children:H.error?I.jsx(Wge,{onClose:()=>$(W),error:H.error,onDelete:()=>{r(S4(W))}}):I.jsx(Uue,{index:W,isLast:W===a.history.length-1,isFirst:W===0,open:typeof m[W]>"u"?!0:m[W],onUserInput:se=>{q(se,W)},step:H,onReverse:()=>{t==null||t.reverseToIndex(W)},onRetry:()=>{t==null||t.retryAtIndex(W),f(!0)},onDelete:()=>{r(S4(W))},noUserInputParent:Q(W).length===0},W)})})},W))}),I.jsx("div",{ref:v}),I.jsx(QI,{isMainInput:!0,ref:T,onEnter:(H,W)=>{B(H),H==null||H.stopPropagation(),H==null||H.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const u2e=Ge.div` display: flex; flex-direction: row; align-items: center; @@ -873,7 +873,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `;Ge.p` color: ${Yt}; margin: 8px auto; -`;const S2e=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),I.jsx(v2e,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(_2e,{onClick:t=>{t.stopPropagation()},children:I.jsx(T2e,{children:typeof e.message=="string"?I.jsx(N9,{children:e.message||""}):st.isValidElement(e.message)?e.message:null})})}));var w2e=Object.defineProperty,A2e=(e,t,n)=>t in e?w2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P4=(e,t,n)=>(A2e(e,typeof t!="symbol"?t+"":t,n),n);let C2e=class{constructor(){P4(this,"current",this.detect()),P4(this,"handoffState","pending"),P4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},hu=new C2e,Gi=(e,t)=>{hu.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function wo(e){let t=C.useRef(e);return Gi(()=>{t.current=e},[e]),t}function yB(e,t){let[n,r]=C.useState(e),i=wo(e);return Gi(()=>r(i.current),[i,r,...t]),n}function k2e(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function vl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return k2e(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=vl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function pc(){let[e]=C.useState(vl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Zt=function(e){let t=wo(e);return st.useCallback((...n)=>t.current(...n),[t])};function x2e(){let e=typeof document>"u";return"useSyncExternalStore"in Q4?(t=>t.useSyncExternalStore)(Q4)(()=>()=>{},()=>!1,()=>!e):!1}function ST(){let e=x2e(),[t,n]=C.useState(hu.isHandoffComplete);return t&&hu.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>hu.handoff(),[]),e?!1:t}var XR;let B2=(XR=st.useId)!=null?XR:function(){let e=ST(),[t,n]=st.useState(e?()=>hu.nextId():null);return Gi(()=>{t===null&&n(hu.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Cr),r}function EB(e){return hu.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZR=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var I2e=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(I2e||{}),R2e=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(R2e||{}),N2e=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(N2e||{}),wT=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wT||{});function vB(e,t=0){var n;return e===((n=EB(e))==null?void 0:n.body)?!1:Cr(t,{0(){return e.matches(ZR)},1(){let r=e;for(;r!==null;){if(r.matches(ZR))return!0;r=r.parentElement}return!1}})}var O2e=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(O2e||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function D2e(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lh(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function L2e(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function M2e(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!vB(u,wT.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);lh("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),lh("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),L2e("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QR(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function F2e(e,t){let[n,r]=C.useState(()=>QR(e));return Gi(()=>{r(QR(e))},[e.type,e.as]),Gi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let P2e=Symbol();function Pu(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Zt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[P2e]))?void 0:n}function B2e(e){throw new Error("Unexpected object: "+e)}var yi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(yi||{});function U2e(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:B2e(e)}})();return a===-1?r:a}function tm(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var nm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(nm||{}),Qs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qs||{});function Rl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=_B(t,e);if(a)return uh(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return uh(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Cr(c?0:1,{0(){return null},1(){return uh({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return uh(s,n,r,o)}function uh(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=B4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,b]of Object.entries(t))typeof b=="boolean"&&(f=!0),b===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(Zy(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(b=>` - ${b}`).join(` +`;const S2e=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),!C.isValidElement(e.message)&&typeof e.message!="string"?null:I.jsx(v2e,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(_2e,{onClick:t=>{t.stopPropagation()},children:I.jsx(T2e,{children:typeof e.message=="string"?I.jsx(N9,{children:e.message||""}):st.isValidElement(e.message)?e.message:null})})}));var w2e=Object.defineProperty,A2e=(e,t,n)=>t in e?w2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P4=(e,t,n)=>(A2e(e,typeof t!="symbol"?t+"":t,n),n);let C2e=class{constructor(){P4(this,"current",this.detect()),P4(this,"handoffState","pending"),P4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},hu=new C2e,Gi=(e,t)=>{hu.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function wo(e){let t=C.useRef(e);return Gi(()=>{t.current=e},[e]),t}function yB(e,t){let[n,r]=C.useState(e),i=wo(e);return Gi(()=>r(i.current),[i,r,...t]),n}function k2e(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function vl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return k2e(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=vl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function pc(){let[e]=C.useState(vl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Zt=function(e){let t=wo(e);return st.useCallback((...n)=>t.current(...n),[t])};function x2e(){let e=typeof document>"u";return"useSyncExternalStore"in Q4?(t=>t.useSyncExternalStore)(Q4)(()=>()=>{},()=>!1,()=>!e):!1}function ST(){let e=x2e(),[t,n]=C.useState(hu.isHandoffComplete);return t&&hu.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>hu.handoff(),[]),e?!1:t}var XR;let B2=(XR=st.useId)!=null?XR:function(){let e=ST(),[t,n]=st.useState(e?()=>hu.nextId():null);return Gi(()=>{t===null&&n(hu.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Cr),r}function EB(e){return hu.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZR=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var I2e=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(I2e||{}),R2e=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(R2e||{}),N2e=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(N2e||{}),wT=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wT||{});function vB(e,t=0){var n;return e===((n=EB(e))==null?void 0:n.body)?!1:Cr(t,{0(){return e.matches(ZR)},1(){let r=e;for(;r!==null;){if(r.matches(ZR))return!0;r=r.parentElement}return!1}})}var O2e=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(O2e||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function D2e(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lh(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function L2e(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function M2e(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!vB(u,wT.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);lh("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),lh("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),L2e("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QR(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function F2e(e,t){let[n,r]=C.useState(()=>QR(e));return Gi(()=>{r(QR(e))},[e.type,e.as]),Gi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let P2e=Symbol();function Pu(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Zt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[P2e]))?void 0:n}function B2e(e){throw new Error("Unexpected object: "+e)}var yi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(yi||{});function U2e(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:B2e(e)}})();return a===-1?r:a}function tm(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var nm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(nm||{}),Qs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qs||{});function Rl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=_B(t,e);if(a)return uh(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return uh(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Cr(c?0:1,{0(){return null},1(){return uh({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return uh(s,n,r,o)}function uh(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=B4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,b]of Object.entries(t))typeof b=="boolean"&&(f=!0),b===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(Zy(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(b=>` - ${b}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(b=>` - ${b}`).join(` `)].join(` `));let f=c.props,m=typeof(f==null?void 0:f.className)=="function"?(...b)=>tm(f==null?void 0:f.className(...b),s.className):tm(f==null?void 0:f.className,s.className),g=m?{className:m}:{};return C.cloneElement(c,Object.assign({},_B(c.props,Zy(B4(s,["ref"]))),p,u,$2e(c.ref,u.ref),g))}return C.createElement(i,Object.assign({},B4(s,["ref"]),i!==C.Fragment&&u,i!==C.Fragment&&p),c)}function $2e(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function _B(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...a)}}});return t}function ys(e){var t;return Object.assign(C.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Zy(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function B4(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function z2e(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&H2e(n)?!1:r}function H2e(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function TB(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))wB(n,SB(t,r),i);return n}function SB(e,t){return e?e+"["+t+"]":t}function wB(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())wB(e,SB(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):TB(n,t,e)}let j2e="div";var AB=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(AB||{});function G2e(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Rl({ourProps:i,theirProps:r,slot:{},defaultTag:j2e,name:"Hidden"})}let V2e=ys(G2e),AT=C.createContext(null);AT.displayName="OpenClosedContext";var Li=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Li||{});function CT(){return C.useContext(AT)}function CB({value:e,children:t}){return st.createElement(AT.Provider,{value:e},t)}var ur=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ur||{});function W2e(e,t,n){let[r,i]=C.useState(n),a=e!==void 0,o=C.useRef(a),s=C.useRef(!1),u=C.useRef(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!u.current&&(u.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Zt(c=>(a||i(c),t==null?void 0:t(c)))]}function JR(e){return[e.screenX,e.screenY]}function q2e(){let e=C.useRef([-1,-1]);return{wasMoved(t){let n=JR(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=JR(t)}}}function kT(){let e=C.useRef(!1);return Gi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let eN=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tN(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return eN.test(o)&&(o=o.replace(eN,"")),o}function K2e(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():tN(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return tN(e).trim()}function Y2e(e){let t=C.useRef(""),n=C.useRef("");return Zt(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=K2e(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var X2e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(X2e||{}),Z2e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Z2e||{}),Q2e=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Q2e||{}),J2e=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(J2e||{});function U4(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=D2e(t(e.options.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let e5e={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=U4(e),i=U2e(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var s;return!o.dataRef.current.disabled&&((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=U4(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=U4(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},xT=C.createContext(null);xT.displayName="ListboxActionsContext";function gf(e){let t=C.useContext(xT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gf),n}return t}let IT=C.createContext(null);IT.displayName="ListboxDataContext";function mf(e){let t=C.useContext(IT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,mf),n}return t}function t5e(e,t){return Cr(t.type,e5e,e,t)}let n5e=C.Fragment;function r5e(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(ie,Se)=>ie===Se,disabled:u=!1,horizontal:c=!1,multiple:p=!1,...f}=e;const m=c?"horizontal":"vertical";let g=Pu(t),[b=p?[]:void 0,y]=W2e(n,o,r),[T,E]=C.useReducer(t5e,{dataRef:C.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=C.useRef({static:!1,hold:!1}),w=C.useRef(null),A=C.useRef(null),R=C.useRef(null),k=Zt(typeof s=="string"?(ie,Se)=>{let X=s;return(ie==null?void 0:ie[X])===(Se==null?void 0:Se[X])}:s),N=C.useCallback(ie=>Cr(B.mode,{1:()=>b.some(Se=>k(Se,ie)),0:()=>k(b,ie)}),[b]),B=C.useMemo(()=>({...T,value:b,disabled:u,mode:p?1:0,orientation:m,compare:k,isSelected:N,optionsPropsRef:v,labelRef:w,buttonRef:A,optionsRef:R}),[b,u,p,T]);Gi(()=>{T.dataRef.current=B},[B]),M2e([B.buttonRef,B.optionsRef],(ie,Se)=>{var X;E({type:1}),vB(Se,wT.Loose)||(ie.preventDefault(),(X=B.buttonRef.current)==null||X.focus())},B.listboxState===0);let q=C.useMemo(()=>({open:B.listboxState===0,disabled:u,value:b}),[B,u,b]),P=Zt(ie=>{let Se=B.options.find(X=>X.id===ie);Se&&H(Se.dataRef.current.value)}),Q=Zt(()=>{if(B.activeOptionIndex!==null){let{dataRef:ie,id:Se}=B.options[B.activeOptionIndex];H(ie.current.value),E({type:2,focus:yi.Specific,id:Se})}}),$=Zt(()=>E({type:0})),oe=Zt(()=>E({type:1})),fe=Zt((ie,Se,X)=>ie===yi.Specific?E({type:2,focus:yi.Specific,id:Se,trigger:X}):E({type:2,focus:ie,trigger:X})),ce=Zt((ie,Se)=>(E({type:5,id:ie,dataRef:Se}),()=>E({type:6,id:ie}))),De=Zt(ie=>(E({type:7,id:ie}),()=>E({type:7,id:null}))),H=Zt(ie=>Cr(B.mode,{0(){return y==null?void 0:y(ie)},1(){let Se=B.value.slice(),X=Se.findIndex(ke=>k(ke,ie));return X===-1?Se.push(ie):Se.splice(X,1),y==null?void 0:y(Se)}})),W=Zt(ie=>E({type:3,value:ie})),se=Zt(()=>E({type:4})),D=C.useMemo(()=>({onChange:H,registerOption:ce,registerLabel:De,goToOption:fe,closeListbox:oe,openListbox:$,selectActiveOption:Q,selectOption:P,search:W,clearSearch:se}),[]),pe={ref:g},le=C.useRef(null),L=pc();return C.useEffect(()=>{le.current&&r!==void 0&&L.addEventListener(le.current,"reset",()=>{y==null||y(r)})},[le,y]),st.createElement(xT.Provider,{value:D},st.createElement(IT.Provider,{value:B},st.createElement(CB,{value:Cr(B.listboxState,{0:Li.Open,1:Li.Closed})},a!=null&&b!=null&&TB({[a]:b}).map(([ie,Se],X)=>st.createElement(V2e,{features:AB.Hidden,ref:X===0?ke=>{var te;le.current=(te=ke==null?void 0:ke.closest("form"))!=null?te:null}:void 0,...Zy({key:ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:ie,value:Se})})),Rl({ourProps:pe,theirProps:f,slot:q,defaultTag:n5e,name:"Listbox"}))))}let i5e="button";function a5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-button-${r}`,...a}=e,o=mf("Listbox.Button"),s=gf("Listbox.Button"),u=Pu(o.buttonRef,t),c=pc(),p=Zt(T=>{switch(T.key){case ur.Space:case ur.Enter:case ur.ArrowDown:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.First)});break;case ur.ArrowUp:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.Last)});break}}),f=Zt(T=>{switch(T.key){case ur.Space:T.preventDefault();break}}),m=Zt(T=>{if(z2e(T.currentTarget))return T.preventDefault();o.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var E;return(E=o.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})})):(T.preventDefault(),s.openListbox())}),g=yB(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),b=C.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),y={ref:u,id:i,type:F2e(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":g,disabled:o.disabled,onKeyDown:p,onKeyUp:f,onClick:m};return Rl({ourProps:y,theirProps:a,slot:b,defaultTag:i5e,name:"Listbox.Button"})}let o5e="label";function s5e(e,t){let n=B2(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,a=mf("Listbox.Label"),o=gf("Listbox.Label"),s=Pu(a.labelRef,t);Gi(()=>o.registerLabel(r),[r]);let u=Zt(()=>{var p;return(p=a.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=C.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return Rl({ourProps:{ref:s,id:r,onClick:u},theirProps:i,slot:c,defaultTag:o5e,name:"Listbox.Label"})}let l5e="ul",u5e=nm.RenderStrategy|nm.Static;function c5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-options-${r}`,...a}=e,o=mf("Listbox.Options"),s=gf("Listbox.Options"),u=Pu(o.optionsRef,t),c=pc(),p=pc(),f=CT(),m=(()=>f!==null?(f&Li.Open)===Li.Open:o.listboxState===0)();C.useEffect(()=>{var E;let v=o.optionsRef.current;v&&o.listboxState===0&&v!==((E=EB(v))==null?void 0:E.activeElement)&&v.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let g=Zt(E=>{switch(p.dispose(),E.key){case ur.Space:if(o.searchQuery!=="")return E.preventDefault(),E.stopPropagation(),s.search(E.key);case ur.Enter:if(E.preventDefault(),E.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:v}=o.options[o.activeOptionIndex];s.onChange(v.current.value)}o.mode===0&&(s.closeListbox(),vl().nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})}));break;case Cr(o.orientation,{vertical:ur.ArrowDown,horizontal:ur.ArrowRight}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Next);case Cr(o.orientation,{vertical:ur.ArrowUp,horizontal:ur.ArrowLeft}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Previous);case ur.Home:case ur.PageUp:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.First);case ur.End:case ur.PageDown:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Last);case ur.Escape:return E.preventDefault(),E.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})});case ur.Tab:E.preventDefault(),E.stopPropagation();break;default:E.key.length===1&&(s.search(E.key),p.setTimeout(()=>s.clearSearch(),350));break}}),b=yB(()=>{var E,v,w;return(w=(E=o.labelRef.current)==null?void 0:E.id)!=null?w:(v=o.buttonRef.current)==null?void 0:v.id},[o.labelRef.current,o.buttonRef.current]),y=C.useMemo(()=>({open:o.listboxState===0}),[o]),T={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":b,"aria-orientation":o.orientation,id:i,onKeyDown:g,role:"listbox",tabIndex:0,ref:u};return Rl({ourProps:T,theirProps:a,slot:y,defaultTag:l5e,features:u5e,visible:m,name:"Listbox.Options"})}let d5e="li";function p5e(e,t){let n=B2(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...o}=e,s=mf("Listbox.Option"),u=gf("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===r:!1,p=s.isSelected(a),f=C.useRef(null),m=Y2e(f),g=wo({disabled:i,value:a,domRef:f,get textValue(){return m()}}),b=Pu(t,f);Gi(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let k=vl();return k.requestAnimationFrame(()=>{var N,B;(B=(N=f.current)==null?void 0:N.scrollIntoView)==null||B.call(N,{block:"nearest"})}),k.dispose},[f,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Gi(()=>u.registerOption(r,g),[g,r]);let y=Zt(k=>{if(i)return k.preventDefault();u.onChange(a),s.mode===0&&(u.closeListbox(),vl().nextFrame(()=>{var N;return(N=s.buttonRef.current)==null?void 0:N.focus({preventScroll:!0})}))}),T=Zt(()=>{if(i)return u.goToOption(yi.Nothing);u.goToOption(yi.Specific,r)}),E=q2e(),v=Zt(k=>E.update(k)),w=Zt(k=>{E.wasMoved(k)&&(i||c||u.goToOption(yi.Specific,r,0))}),A=Zt(k=>{E.wasMoved(k)&&(i||c&&u.goToOption(yi.Nothing))}),R=C.useMemo(()=>({active:c,selected:p,disabled:i}),[c,p,i]);return Rl({ourProps:{id:r,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:y,onFocus:T,onPointerEnter:v,onMouseEnter:v,onPointerMove:w,onMouseMove:w,onPointerLeave:A,onMouseLeave:A},theirProps:o,slot:R,defaultTag:d5e,name:"Listbox.Option"})}let f5e=ys(r5e),h5e=ys(a5e),g5e=ys(s5e),m5e=ys(c5e),b5e=ys(p5e),U2=Object.assign(f5e,{Button:h5e,Label:g5e,Options:m5e,Option:b5e});function y5e(e=0){let[t,n]=C.useState(e),r=kT(),i=C.useCallback(u=>{r.current&&n(c=>c|u)},[t,r]),a=C.useCallback(u=>!!(t&u),[t]),o=C.useCallback(u=>{r.current&&n(c=>c&~u)},[n,r]),s=C.useCallback(u=>{r.current&&n(c=>c^u)},[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:s}}function E5e(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function $4(e,...t){e&&t.length>0&&e.classList.add(...t)}function z4(e,...t){e&&t.length>0&&e.classList.remove(...t)}function v5e(e,t){let n=vl();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,f)=>f-p);return c}),s=a+o;if(s!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let u=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return n.add(()=>t()),n.dispose}function _5e(e,t,n,r){let i=n?"enter":"leave",a=vl(),o=r!==void 0?E5e(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Cr(i,{enter:()=>t.enter,leave:()=>t.leave}),u=Cr(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Cr(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return z4(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),$4(e,...t.base,...s,...c),a.nextFrame(()=>{z4(e,...t.base,...s,...c),$4(e,...t.base,...s,...u),v5e(e,()=>(z4(e,...t.base,...s),$4(e,...t.base,...t.entered),o()))}),a.dispose}function T5e({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=kT(),s=pc(),u=wo(n);Gi(()=>{e&&(u.current="enter")},[e]),Gi(()=>{let c=vl();s.add(c.dispose);let p=t.current;if(p&&u.current!=="idle"&&o.current)return c.dispose(),i.current(u.current),c.add(_5e(p,r.current,u.current==="enter",()=>{c.dispose(),a.current(u.current)})),c.dispose},[n])}function Bs(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let $2=C.createContext(null);$2.displayName="TransitionContext";var S5e=(e=>(e.Visible="visible",e.Hidden="hidden",e))(S5e||{});function w5e(){let e=C.useContext($2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function A5e(){let e=C.useContext(z2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let z2=C.createContext(null);z2.displayName="NestingContext";function H2(e){return"children"in e?H2(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function kB(e,t){let n=wo(e),r=C.useRef([]),i=kT(),a=pc(),o=Zt((g,b=Qs.Hidden)=>{let y=r.current.findIndex(({el:T})=>T===g);y!==-1&&(Cr(b,{[Qs.Unmount](){r.current.splice(y,1)},[Qs.Hidden](){r.current[y].state="hidden"}}),a.microTask(()=>{var T;!H2(r)&&i.current&&((T=n.current)==null||T.call(n))}))}),s=Zt(g=>{let b=r.current.find(({el:y})=>y===g);return b?b.state!=="visible"&&(b.state="visible"):r.current.push({el:g,state:"visible"}),()=>o(g,Qs.Unmount)}),u=C.useRef([]),c=C.useRef(Promise.resolve()),p=C.useRef({enter:[],leave:[],idle:[]}),f=Zt((g,b,y)=>{u.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([T])=>T!==g)),t==null||t.chains.current[b].push([g,new Promise(T=>{u.current.push(T)})]),t==null||t.chains.current[b].push([g,new Promise(T=>{Promise.all(p.current[b].map(([E,v])=>v)).then(()=>T())})]),b==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(b)):y(b)}),m=Zt((g,b,y)=>{Promise.all(p.current[b].splice(0).map(([T,E])=>E)).then(()=>{var T;(T=u.current.shift())==null||T()}).then(()=>y(b))});return C.useMemo(()=>({children:r,register:s,unregister:o,onStart:f,onStop:m,wait:c,chains:p}),[s,o,r,f,m,p,c])}function C5e(){}let k5e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nN(e){var t;let n={};for(let r of k5e)n[r]=(t=e[r])!=null?t:C5e;return n}function x5e(e){let t=C.useRef(nN(e));return C.useEffect(()=>{t.current=nN(e)},[e]),t}let I5e="div",xB=nm.RenderStrategy;function R5e(e,t){var n,r;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s,enter:u,enterFrom:c,enterTo:p,entered:f,leave:m,leaveFrom:g,leaveTo:b,...y}=e,T=C.useRef(null),E=Pu(T,t),v=(n=y.unmount)==null||n?Qs.Unmount:Qs.Hidden,{show:w,appear:A,initial:R}=w5e(),[k,N]=C.useState(w?"visible":"hidden"),B=A5e(),{register:q,unregister:P}=B;C.useEffect(()=>q(T),[q,T]),C.useEffect(()=>{if(v===Qs.Hidden&&T.current){if(w&&k!=="visible"){N("visible");return}return Cr(k,{hidden:()=>P(T),visible:()=>q(T)})}},[k,T,q,P,w,v]);let Q=wo({base:Bs(y.className),enter:Bs(u),enterFrom:Bs(c),enterTo:Bs(p),entered:Bs(f),leave:Bs(m),leaveFrom:Bs(g),leaveTo:Bs(b)}),$=x5e({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s}),oe=ST();C.useEffect(()=>{if(oe&&k==="visible"&&T.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[T,k,oe]);let fe=R&&!A,ce=A&&w&&R,De=(()=>!oe||fe?"idle":w?"enter":"leave")(),H=y5e(0),W=Zt(L=>Cr(L,{enter:()=>{H.addFlag(Li.Opening),$.current.beforeEnter()},leave:()=>{H.addFlag(Li.Closing),$.current.beforeLeave()},idle:()=>{}})),se=Zt(L=>Cr(L,{enter:()=>{H.removeFlag(Li.Opening),$.current.afterEnter()},leave:()=>{H.removeFlag(Li.Closing),$.current.afterLeave()},idle:()=>{}})),D=kB(()=>{N("hidden"),P(T)},B);T5e({immediate:ce,container:T,classes:Q,direction:De,onStart:wo(L=>{D.onStart(T,L,W)}),onStop:wo(L=>{D.onStop(T,L,se),L==="leave"&&!H2(D)&&(N("hidden"),P(T))})});let pe=y,le={ref:E};return ce?pe={...pe,className:tm(y.className,...Q.current.enter,...Q.current.enterFrom)}:(pe.className=tm(y.className,(r=T.current)==null?void 0:r.className),pe.className===""&&delete pe.className),st.createElement(z2.Provider,{value:D},st.createElement(CB,{value:Cr(k,{visible:Li.Open,hidden:Li.Closed})|H.flags},Rl({ourProps:le,theirProps:pe,defaultTag:I5e,features:xB,visible:k==="visible",name:"Transition.Child"})))}function N5e(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=C.useRef(null),s=Pu(o,t);ST();let u=CT();if(n===void 0&&u!==null&&(n=(u&Li.Open)===Li.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,p]=C.useState(n?"visible":"hidden"),f=kB(()=>{p("hidden")}),[m,g]=C.useState(!0),b=C.useRef([n]);Gi(()=>{m!==!1&&b.current[b.current.length-1]!==n&&(b.current.push(n),g(!1))},[b,n]);let y=C.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);C.useEffect(()=>{if(n)p("visible");else if(!H2(f))p("hidden");else{let w=o.current;if(!w)return;let A=w.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&p("hidden")}},[n,f]);let T={unmount:i},E=Zt(()=>{var w;m&&g(!1),(w=e.beforeEnter)==null||w.call(e)}),v=Zt(()=>{var w;m&&g(!1),(w=e.beforeLeave)==null||w.call(e)});return st.createElement(z2.Provider,{value:f},st.createElement($2.Provider,{value:y},Rl({ourProps:{...T,as:C.Fragment,children:st.createElement(IB,{ref:s,...T,...a,beforeEnter:E,beforeLeave:v})},theirProps:{},defaultTag:C.Fragment,features:xB,visible:c==="visible",name:"Transition"})))}function O5e(e,t){let n=C.useContext($2)!==null,r=CT()!==null;return st.createElement(st.Fragment,null,!n&&r?st.createElement(Qy,{ref:t,...e}):st.createElement(IB,{ref:t,...e}))}let Qy=ys(N5e),IB=ys(R5e),D5e=ys(O5e),L5e=Object.assign(Qy,{Child:D5e,Root:Qy});const M5e=Ge.div` @@ -1069,7 +1069,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.4; } } -`;function Y3e(e){const t=window.vscMediaUrl;return I.jsx(K3e,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(AL,{width:e.size||WB})})}const aE=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(MZ,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&u9.createPortal(I.jsx(au,{id:t,place:"bottom",children:e}),n)]})};var bf=e=>e.type==="checkbox",F1=e=>e instanceof Date,ei=e=>e==null;const qB=e=>typeof e=="object";var ir=e=>!ei(e)&&!Array.isArray(e)&&qB(e)&&!F1(e),X3e=e=>ir(e)&&e.target?bf(e.target)?e.target.checked:e.target.value:e,Z3e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Q3e=(e,t)=>e.has(Z3e(t)),J3e=e=>{const t=e.constructor&&e.constructor.prototype;return ir(t)&&t.hasOwnProperty("isPrototypeOf")},FT=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Qo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(FT&&(e instanceof Blob||e instanceof FileList))&&(n||ir(e)))if(t=n?[]:{},!n&&!J3e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Qo(e[r]));else return e;return t}var yf=e=>Array.isArray(e)?e.filter(Boolean):[],qn=e=>e===void 0,ut=(e,t,n)=>{if(!t||!ir(e))return n;const r=yf(t.split(/[,[\].]+?/)).reduce((i,a)=>ei(i)?i:i[a],e);return qn(r)||r===e?qn(e[t])?n:e[t]:r},lu=e=>typeof e=="boolean";const fN={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ha={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Yo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},e4e=st.createContext(null),KB=e=>{const{children:t,...n}=e;return st.createElement(e4e.Provider,{value:n},t)};var t4e=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ha.all&&(t._proxyFormState[o]=!r||Ha.all),n&&(n[o]=!0),e[o]}});return i},sa=e=>ir(e)&&!Object.keys(e).length,n4e=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return sa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ha.all))},V4=e=>Array.isArray(e)?e:[e];function r4e(e){const t=st.useRef(e);t.current=e,st.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var Eo=e=>typeof e=="string",i4e=(e,t,n,r,i)=>Eo(e)?(r&&t.watch.add(e),ut(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ut(n,a))):(r&&(t.watchAll=!0),n),PT=e=>/^\w*$/.test(e),YB=e=>yf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Cn(e,t,n){let r=-1;const i=PT(t)?[t]:YB(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const oE=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=ut(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else ir(o)&&oE(o,t)}}};var hN=e=>({isOnSubmit:!e||e===Ha.onSubmit,isOnBlur:e===Ha.onBlur,isOnChange:e===Ha.onChange,isOnAll:e===Ha.all,isOnTouch:e===Ha.onTouched}),gN=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),o4e=(e,t,n)=>{const r=yf(ut(e,n));return Cn(r,"root",t[n]),Cn(e,n,r),e},BT=e=>e.type==="file",Js=e=>typeof e=="function",rm=e=>{if(!FT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},qh=e=>Eo(e),UT=e=>e.type==="radio",im=e=>e instanceof RegExp;const mN={value:!1,isValid:!1},bN={value:!0,isValid:!0};var XB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qn(e[0].attributes.value)?qn(e[0].value)||e[0].value===""?bN:{value:e[0].value,isValid:!0}:bN:mN}return mN};const yN={isValid:!1,value:null};var ZB=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,yN):yN;function EN(e,t,n="validate"){if(qh(e)||Array.isArray(e)&&e.every(qh)||lu(e)&&!e)return{type:n,message:qh(e)?e:"",ref:t}}var a1=e=>ir(e)&&!im(e)?e:{value:e,message:""},vN=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:b,valueAsNumber:y,mount:T,disabled:E}=e._f,v=ut(t,b);if(!T||E)return{};const w=o?o[0]:a,A=$=>{r&&w.reportValidity&&(w.setCustomValidity(lu($)?"":$||""),w.reportValidity())},R={},k=UT(a),N=bf(a),B=k||N,q=(y||BT(a))&&qn(a.value)&&qn(v)||rm(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,P=a4e.bind(null,b,n,R),Q=($,oe,fe,ce=Yo.maxLength,De=Yo.minLength)=>{const H=$?oe:fe;R[b]={type:$?ce:De,message:H,ref:a,...P($?ce:De,H)}};if(i?!Array.isArray(v)||!v.length:s&&(!B&&(q||ei(v))||lu(v)&&!v||N&&!XB(o).isValid||k&&!ZB(o).isValid)){const{value:$,message:oe}=qh(s)?{value:!!s,message:s}:a1(s);if($&&(R[b]={type:Yo.required,message:oe,ref:w,...P(Yo.required,oe)},!n))return A(oe),R}if(!q&&(!ei(p)||!ei(f))){let $,oe;const fe=a1(f),ce=a1(p);if(!ei(v)&&!isNaN(v)){const De=a.valueAsNumber||v&&+v;ei(fe.value)||($=De>fe.value),ei(ce.value)||(oe=Denew Date(new Date().toDateString()+" "+D),W=a.type=="time",se=a.type=="week";Eo(fe.value)&&v&&($=W?H(v)>H(fe.value):se?v>fe.value:De>new Date(fe.value)),Eo(ce.value)&&v&&(oe=W?H(v)+$.value,ce=!ei(oe.value)&&v.length<+oe.value;if((fe||ce)&&(Q(fe,$.message,oe.message),!n))return A(R[b].message),R}if(m&&!q&&Eo(v)){const{value:$,message:oe}=a1(m);if(im($)&&!v.match($)&&(R[b]={type:Yo.pattern,message:oe,ref:a,...P(Yo.pattern,oe)},!n))return A(oe),R}if(g){if(Js(g)){const $=await g(v,t),oe=EN($,w);if(oe&&(R[b]={...oe,...P(Yo.validate,oe.message)},!n))return A(oe.message),R}else if(ir(g)){let $={};for(const oe in g){if(!sa($)&&!n)break;const fe=EN(await g[oe](v,t),w,oe);fe&&($={...fe,...P(oe,fe.message)},A(fe.message),n&&(R[b]=$))}if(!sa($)&&(R[b]={ref:w,...$},!n))return R}}return A(!0),R};function s4e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var am=e=>ei(e)||!qB(e);function uu(e,t){if(am(e)||am(t))return e===t;if(F1(e)&&F1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(F1(a)&&F1(o)||ir(a)&&ir(o)||Array.isArray(a)&&Array.isArray(o)?!uu(a,o):a!==o)return!1}}return!0}var QB=e=>e.type==="select-multiple",u4e=e=>UT(e)||bf(e),q4=e=>rm(e)&&e.isConnected,JB=e=>{for(const t in e)if(Js(e[t]))return!0;return!1};function om(e,t={}){const n=Array.isArray(e);if(ir(e)||n)for(const r in e)Array.isArray(e[r])||ir(e[r])&&!JB(e[r])?(t[r]=Array.isArray(e[r])?[]:{},om(e[r],t[r])):ei(e[r])||(t[r]=!0);return t}function eU(e,t,n){const r=Array.isArray(e);if(ir(e)||r)for(const i in e)Array.isArray(e[i])||ir(e[i])&&!JB(e[i])?qn(t)||am(n[i])?n[i]=Array.isArray(e[i])?om(e[i],[]):{...om(e[i])}:eU(e[i],ei(t)?{}:t[i],n[i]):n[i]=!uu(e[i],t[i]);return n}var K4=(e,t)=>eU(e,t,om(t)),tU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>qn(e)?e:t?e===""?NaN:e&&+e:n&&Eo(e)?new Date(e):r?r(e):e;function Y4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return BT(t)?t.files:UT(t)?ZB(e.refs).value:QB(t)?[...t.selectedOptions].map(({value:n})=>n):bf(t)?XB(e.refs).value:tU(qn(t.value)?e.ref.value:t.value,e)}var c4e=(e,t,n,r)=>{const i={};for(const a of e){const o=ut(t,a);o&&Cn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},yd=e=>qn(e)?e:im(e)?e.source:ir(e)?im(e.value)?e.value.source:e.value:e,d4e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _N(e,t,n){const r=ut(e,n);if(r||PT(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=ut(t,a),s=ut(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var p4e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,f4e=(e,t)=>!yf(ut(e,t)).length&&vr(e,t);const h4e={mode:Ha.onSubmit,reValidateMode:Ha.onChange,shouldFocusError:!0};function g4e(e={},t){let n={...h4e,...e},r={submitCount:0,isDirty:!1,isLoading:Js(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=ir(n.defaultValues)||ir(n.values)?Qo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:Qo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:W4(),array:W4(),state:W4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,b=hN(n.mode),y=hN(n.reValidateMode),T=n.criteriaMode===Ha.all,E=U=>re=>{clearTimeout(p),p=setTimeout(U,re)},v=async U=>{if(f.isValid||U){const re=n.resolver?sa((await q()).errors):await Q(i,!0);re!==r.isValid&&m.state.next({isValid:re})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,re=[],de,xe,ye=!0,Te=!0)=>{if(xe&&de){if(s.action=!0,Te&&Array.isArray(ut(i,U))){const Le=de(ut(i,U),xe.argA,xe.argB);ye&&Cn(i,U,Le)}if(Te&&Array.isArray(ut(r.errors,U))){const Le=de(ut(r.errors,U),xe.argA,xe.argB);ye&&Cn(r.errors,U,Le),f4e(r.errors,U)}if(f.touchedFields&&Te&&Array.isArray(ut(r.touchedFields,U))){const Le=de(ut(r.touchedFields,U),xe.argA,xe.argB);ye&&Cn(r.touchedFields,U,Le)}f.dirtyFields&&(r.dirtyFields=K4(a,o)),m.state.next({name:U,isDirty:oe(U,re),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Cn(o,U,re)},R=(U,re)=>{Cn(r.errors,U,re),m.state.next({errors:r.errors})},k=(U,re,de,xe)=>{const ye=ut(i,U);if(ye){const Te=ut(o,U,qn(de)?ut(a,U):de);qn(Te)||xe&&xe.defaultChecked||re?Cn(o,U,re?Te:Y4(ye._f)):De(U,Te),s.mount&&v()}},N=(U,re,de,xe,ye)=>{let Te=!1,Le=!1;const ze={name:U};if(!de||xe){f.isDirty&&(Le=r.isDirty,r.isDirty=ze.isDirty=oe(),Te=Le!==ze.isDirty);const Ye=uu(ut(a,U),re);Le=ut(r.dirtyFields,U),Ye?vr(r.dirtyFields,U):Cn(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Te=Te||f.dirtyFields&&Le!==!Ye}if(de){const Ye=ut(r.touchedFields,U);Ye||(Cn(r.touchedFields,U,de),ze.touchedFields=r.touchedFields,Te=Te||f.touchedFields&&Ye!==de)}return Te&&ye&&m.state.next(ze),Te?ze:{}},B=(U,re,de,xe)=>{const ye=ut(r.errors,U),Te=f.isValid&&lu(re)&&r.isValid!==re;if(e.delayError&&de?(c=E(()=>R(U,de)),c(e.delayError)):(clearTimeout(p),c=null,de?Cn(r.errors,U,de):vr(r.errors,U)),(de?!uu(ye,de):ye)||!sa(xe)||Te){const Le={...xe,...Te&&lu(re)?{isValid:re}:{},errors:r.errors,name:U};r={...r,...Le},m.state.next(Le)}w(!1)},q=async U=>n.resolver(o,n.context,c4e(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:re}=await q(U);if(U)for(const de of U){const xe=ut(re,de);xe?Cn(r.errors,de,xe):vr(r.errors,de)}else r.errors=re;return re},Q=async(U,re,de={valid:!0})=>{for(const xe in U){const ye=U[xe];if(ye){const{_f:Te,...Le}=ye;if(Te){const ze=u.array.has(Te.name),Ye=await vN(ye,o,T,n.shouldUseNativeValidation&&!re,ze);if(Ye[Te.name]&&(de.valid=!1,re))break;!re&&(ut(Ye,Te.name)?ze?o4e(r.errors,Ye,Te.name):Cn(r.errors,Te.name,Ye[Te.name]):vr(r.errors,Te.name))}Le&&await Q(Le,re,de)}}return de.valid},$=()=>{for(const U of u.unMount){const re=ut(i,U);re&&(re._f.refs?re._f.refs.every(de=>!q4(de)):!q4(re._f.ref))&&X(U)}u.unMount=new Set},oe=(U,re)=>(U&&re&&Cn(o,U,re),!uu(pe(),a)),fe=(U,re,de)=>i4e(U,u,{...s.mount?o:qn(re)?a:Eo(U)?{[U]:re}:re},de,re),ce=U=>yf(ut(s.mount?o:a,U,e.shouldUnregister?ut(a,U,[]):[])),De=(U,re,de={})=>{const xe=ut(i,U);let ye=re;if(xe){const Te=xe._f;Te&&(!Te.disabled&&Cn(o,U,tU(re,Te)),ye=rm(Te.ref)&&ei(re)?"":re,QB(Te.ref)?[...Te.ref.options].forEach(Le=>Le.selected=ye.includes(Le.value)):Te.refs?bf(Te.ref)?Te.refs.length>1?Te.refs.forEach(Le=>(!Le.defaultChecked||!Le.disabled)&&(Le.checked=Array.isArray(ye)?!!ye.find(ze=>ze===Le.value):ye===Le.value)):Te.refs[0]&&(Te.refs[0].checked=!!ye):Te.refs.forEach(Le=>Le.checked=Le.value===ye):BT(Te.ref)?Te.ref.value="":(Te.ref.value=ye,Te.ref.type||m.values.next({name:U,values:{...o}})))}(de.shouldDirty||de.shouldTouch)&&N(U,ye,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&D(U)},H=(U,re,de)=>{for(const xe in re){const ye=re[xe],Te=`${U}.${xe}`,Le=ut(i,Te);(u.array.has(U)||!am(ye)||Le&&!Le._f)&&!F1(ye)?H(Te,ye,de):De(Te,ye,de)}},W=(U,re,de={})=>{const xe=ut(i,U),ye=u.array.has(U),Te=Qo(re);Cn(o,U,Te),ye?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&de.shouldDirty&&m.state.next({name:U,dirtyFields:K4(a,o),isDirty:oe(U,Te)})):xe&&!xe._f&&!ei(Te)?H(U,Te,de):De(U,Te,de),gN(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},se=async U=>{const re=U.target;let de=re.name,xe=!0;const ye=ut(i,de),Te=()=>re.type?Y4(ye._f):X3e(U);if(ye){let Le,ze;const Ye=Te(),jt=U.type===fN.BLUR||U.type===fN.FOCUS_OUT,ue=!d4e(ye._f)&&!n.resolver&&!ut(r.errors,de)&&!ye._f.deps||p4e(jt,ut(r.touchedFields,de),r.isSubmitted,y,b),Ee=gN(de,u,jt);Cn(o,de,Ye),jt?(ye._f.onBlur&&ye._f.onBlur(U),c&&c(0)):ye._f.onChange&&ye._f.onChange(U);const qe=N(de,Ye,jt,!1),j=!sa(qe)||Ee;if(!jt&&m.values.next({name:de,type:U.type,values:{...o}}),ue)return f.isValid&&v(),j&&m.state.next({name:de,...Ee?{}:qe});if(!jt&&Ee&&m.state.next({...r}),w(!0),n.resolver){const{errors:me}=await q([de]),Ve=_N(r.errors,i,de),ge=_N(me,i,Ve.name||de);Le=ge.error,de=ge.name,ze=sa(me)}else Le=(await vN(ye,o,T,n.shouldUseNativeValidation))[de],xe=Number.isNaN(Ye)||Ye===ut(o,de,Ye),xe&&(Le?ze=!1:f.isValid&&(ze=await Q(i,!0)));xe&&(ye._f.deps&&D(ye._f.deps),B(de,ze,Le,qe))}},D=async(U,re={})=>{let de,xe;const ye=V4(U);if(w(!0),n.resolver){const Te=await P(qn(U)?U:ye);de=sa(Te),xe=U?!ye.some(Le=>ut(Te,Le)):de}else U?(xe=(await Promise.all(ye.map(async Te=>{const Le=ut(i,Te);return await Q(Le&&Le._f?{[Te]:Le}:Le)}))).every(Boolean),!(!xe&&!r.isValid)&&v()):xe=de=await Q(i);return m.state.next({...!Eo(U)||f.isValid&&de!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:de}:{},errors:r.errors,isValidating:!1}),re.shouldFocus&&!xe&&oE(i,Te=>Te&&ut(r.errors,Te),U?ye:u.mount),xe},pe=U=>{const re={...a,...s.mount?o:{}};return qn(U)?re:Eo(U)?ut(re,U):U.map(de=>ut(re,de))},le=(U,re)=>({invalid:!!ut((re||r).errors,U),isDirty:!!ut((re||r).dirtyFields,U),isTouched:!!ut((re||r).touchedFields,U),error:ut((re||r).errors,U)}),L=U=>{U&&V4(U).forEach(re=>vr(r.errors,re)),m.state.next({errors:U?r.errors:{}})},ie=(U,re,de)=>{const xe=(ut(i,U,{_f:{}})._f||{}).ref;Cn(r.errors,U,{...re,ref:xe}),m.state.next({name:U,errors:r.errors,isValid:!1}),de&&de.shouldFocus&&xe&&xe.focus&&xe.focus()},Se=(U,re)=>Js(U)?m.values.subscribe({next:de=>U(fe(void 0,re),de)}):fe(U,re,!0),X=(U,re={})=>{for(const de of U?V4(U):u.mount)u.mount.delete(de),u.array.delete(de),re.keepValue||(vr(i,de),vr(o,de)),!re.keepError&&vr(r.errors,de),!re.keepDirty&&vr(r.dirtyFields,de),!re.keepTouched&&vr(r.touchedFields,de),!n.shouldUnregister&&!re.keepDefaultValue&&vr(a,de);m.values.next({values:{...o}}),m.state.next({...r,...re.keepDirty?{isDirty:oe()}:{}}),!re.keepIsValid&&v()},ke=({disabled:U,name:re,field:de,fields:xe})=>{if(lu(U)){const ye=U?void 0:ut(o,re,Y4(de?de._f:ut(xe,re)._f));Cn(o,re,ye),N(re,ye,!1,!1,!0)}},te=(U,re={})=>{let de=ut(i,U);const xe=lu(re.disabled);return Cn(i,U,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:U}},name:U,mount:!0,...re}}),u.mount.add(U),de?ke({field:de,disabled:re.disabled,name:U}):k(U,!0,re.value),{...xe?{disabled:re.disabled}:{},...n.progressive?{required:!!re.required,min:yd(re.min),max:yd(re.max),minLength:yd(re.minLength),maxLength:yd(re.maxLength),pattern:yd(re.pattern)}:{},name:U,onChange:se,onBlur:se,ref:ye=>{if(ye){te(U,re),de=ut(i,U);const Te=qn(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,Le=u4e(Te),ze=de._f.refs||[];if(Le?ze.find(Ye=>Ye===Te):Te===de._f.ref)return;Cn(i,U,{_f:{...de._f,...Le?{refs:[...ze.filter(q4),Te,...Array.isArray(ut(a,U))?[{}]:[]],ref:{type:Te.type,name:U}}:{ref:Te}}}),k(U,!1,void 0,Te)}else de=ut(i,U,{}),de._f&&(de._f.mount=!1),(n.shouldUnregister||re.shouldUnregister)&&!(Q3e(u.array,U)&&s.action)&&u.unMount.add(U)}}},Me=()=>n.shouldFocusError&&oE(i,U=>U&&ut(r.errors,U),u.mount),Re=(U,re)=>async de=>{de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let xe=Qo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ye,values:Te}=await q();r.errors=ye,xe=Te}else await Q(i);vr(r.errors,"root"),sa(r.errors)?(m.state.next({errors:{}}),await U(xe,de)):(re&&await re({...r.errors},de),Me(),setTimeout(Me)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Ze=(U,re={})=>{ut(i,U)&&(qn(re.defaultValue)?W(U,ut(a,U)):(W(U,re.defaultValue),Cn(a,U,re.defaultValue)),re.keepTouched||vr(r.touchedFields,U),re.keepDirty||(vr(r.dirtyFields,U),r.isDirty=re.defaultValue?oe(U,ut(a,U)):oe()),re.keepError||(vr(r.errors,U),f.isValid&&v()),m.state.next({...r}))},We=(U,re={})=>{const de=U?Qo(U):a,xe=Qo(de),ye=U&&!sa(U)?xe:a;if(re.keepDefaultValues||(a=de),!re.keepValues){if(re.keepDirtyValues||g)for(const Te of u.mount)ut(r.dirtyFields,Te)?Cn(ye,Te,ut(o,Te)):W(Te,ut(ye,Te));else{if(FT&&qn(U))for(const Te of u.mount){const Le=ut(i,Te);if(Le&&Le._f){const ze=Array.isArray(Le._f.refs)?Le._f.refs[0]:Le._f.ref;if(rm(ze)){const Ye=ze.closest("form");if(Ye){Ye.reset();break}}}}i={}}o=e.shouldUnregister?re.keepDefaultValues?Qo(a):{}:Qo(ye),m.array.next({values:{...ye}}),m.values.next({values:{...ye}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!re.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:re.keepSubmitCount?r.submitCount:0,isDirty:re.keepDirty?r.isDirty:!!(re.keepDefaultValues&&!uu(U,a)),isSubmitted:re.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re.keepDirtyValues?r.dirtyFields:re.keepDefaultValues&&U?K4(a,U):{},touchedFields:re.keepTouched?r.touchedFields:{},errors:re.keepErrors?r.errors:{},isSubmitSuccessful:re.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,re)=>We(Js(U)?U(o):U,re);return{control:{register:te,unregister:X,getFieldState:le,handleSubmit:Re,setError:ie,_executeSchema:q,_getWatch:fe,_getDirty:oe,_updateValid:v,_removeUnmounted:$,_updateFieldArray:A,_updateDisabledField:ke,_getFieldArray:ce,_reset:We,_resetDefaultValues:()=>Js(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:D,register:te,handleSubmit:Re,watch:Se,setValue:W,getValues:pe,reset:dt,resetField:Ze,clearErrors:L,unregister:X,setError:ie,setFocus:(U,re={})=>{const de=ut(i,U),xe=de&&de._f;if(xe){const ye=xe.refs?xe.refs[0]:xe.ref;ye.focus&&(ye.focus(),re.shouldSelect&&ye.select())}},getFieldState:le}}function nU(e={}){const t=st.useRef(),n=st.useRef(),[r,i]=st.useState({isDirty:!1,isValidating:!1,isLoading:Js(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Js(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...g4e(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,r4e({subject:a._subjects.state,next:o=>{n4e(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),st.useEffect(()=>{e.values&&!uu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),st.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=t4e(r,a),t.current}const TN=Ge.hr` +`;function Y3e(e){const t=window.vscMediaUrl;return I.jsx(K3e,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(AL,{width:e.size||WB})})}const aE=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(MZ,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&u9.createPortal(I.jsx(au,{id:t,place:"bottom",children:e}),n)]})};var bf=e=>e.type==="checkbox",F1=e=>e instanceof Date,ei=e=>e==null;const qB=e=>typeof e=="object";var ir=e=>!ei(e)&&!Array.isArray(e)&&qB(e)&&!F1(e),X3e=e=>ir(e)&&e.target?bf(e.target)?e.target.checked:e.target.value:e,Z3e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Q3e=(e,t)=>e.has(Z3e(t)),J3e=e=>{const t=e.constructor&&e.constructor.prototype;return ir(t)&&t.hasOwnProperty("isPrototypeOf")},FT=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Qo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(FT&&(e instanceof Blob||e instanceof FileList))&&(n||ir(e)))if(t=n?[]:{},!n&&!J3e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Qo(e[r]));else return e;return t}var yf=e=>Array.isArray(e)?e.filter(Boolean):[],qn=e=>e===void 0,ut=(e,t,n)=>{if(!t||!ir(e))return n;const r=yf(t.split(/[,[\].]+?/)).reduce((i,a)=>ei(i)?i:i[a],e);return qn(r)||r===e?qn(e[t])?n:e[t]:r},lu=e=>typeof e=="boolean";const fN={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ha={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Yo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},e4e=st.createContext(null),KB=e=>{const{children:t,...n}=e;return st.createElement(e4e.Provider,{value:n},t)};var t4e=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ha.all&&(t._proxyFormState[o]=!r||Ha.all),n&&(n[o]=!0),e[o]}});return i},sa=e=>ir(e)&&!Object.keys(e).length,n4e=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return sa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ha.all))},V4=e=>Array.isArray(e)?e:[e];function r4e(e){const t=st.useRef(e);t.current=e,st.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var Eo=e=>typeof e=="string",i4e=(e,t,n,r,i)=>Eo(e)?(r&&t.watch.add(e),ut(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ut(n,a))):(r&&(t.watchAll=!0),n),PT=e=>/^\w*$/.test(e),YB=e=>yf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Cn(e,t,n){let r=-1;const i=PT(t)?[t]:YB(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const oE=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=ut(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else ir(o)&&oE(o,t)}}};var hN=e=>({isOnSubmit:!e||e===Ha.onSubmit,isOnBlur:e===Ha.onBlur,isOnChange:e===Ha.onChange,isOnAll:e===Ha.all,isOnTouch:e===Ha.onTouched}),gN=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),o4e=(e,t,n)=>{const r=yf(ut(e,n));return Cn(r,"root",t[n]),Cn(e,n,r),e},BT=e=>e.type==="file",Js=e=>typeof e=="function",rm=e=>{if(!FT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},qh=e=>Eo(e),UT=e=>e.type==="radio",im=e=>e instanceof RegExp;const mN={value:!1,isValid:!1},bN={value:!0,isValid:!0};var XB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qn(e[0].attributes.value)?qn(e[0].value)||e[0].value===""?bN:{value:e[0].value,isValid:!0}:bN:mN}return mN};const yN={isValid:!1,value:null};var ZB=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,yN):yN;function EN(e,t,n="validate"){if(qh(e)||Array.isArray(e)&&e.every(qh)||lu(e)&&!e)return{type:n,message:qh(e)?e:"",ref:t}}var a1=e=>ir(e)&&!im(e)?e:{value:e,message:""},vN=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:b,valueAsNumber:y,mount:T,disabled:E}=e._f,v=ut(t,b);if(!T||E)return{};const w=o?o[0]:a,A=$=>{r&&w.reportValidity&&(w.setCustomValidity(lu($)?"":$||""),w.reportValidity())},R={},k=UT(a),N=bf(a),B=k||N,q=(y||BT(a))&&qn(a.value)&&qn(v)||rm(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,P=a4e.bind(null,b,n,R),Q=($,oe,fe,ce=Yo.maxLength,De=Yo.minLength)=>{const H=$?oe:fe;R[b]={type:$?ce:De,message:H,ref:a,...P($?ce:De,H)}};if(i?!Array.isArray(v)||!v.length:s&&(!B&&(q||ei(v))||lu(v)&&!v||N&&!XB(o).isValid||k&&!ZB(o).isValid)){const{value:$,message:oe}=qh(s)?{value:!!s,message:s}:a1(s);if($&&(R[b]={type:Yo.required,message:oe,ref:w,...P(Yo.required,oe)},!n))return A(oe),R}if(!q&&(!ei(p)||!ei(f))){let $,oe;const fe=a1(f),ce=a1(p);if(!ei(v)&&!isNaN(v)){const De=a.valueAsNumber||v&&+v;ei(fe.value)||($=De>fe.value),ei(ce.value)||(oe=Denew Date(new Date().toDateString()+" "+D),W=a.type=="time",se=a.type=="week";Eo(fe.value)&&v&&($=W?H(v)>H(fe.value):se?v>fe.value:De>new Date(fe.value)),Eo(ce.value)&&v&&(oe=W?H(v)+$.value,ce=!ei(oe.value)&&v.length<+oe.value;if((fe||ce)&&(Q(fe,$.message,oe.message),!n))return A(R[b].message),R}if(m&&!q&&Eo(v)){const{value:$,message:oe}=a1(m);if(im($)&&!v.match($)&&(R[b]={type:Yo.pattern,message:oe,ref:a,...P(Yo.pattern,oe)},!n))return A(oe),R}if(g){if(Js(g)){const $=await g(v,t),oe=EN($,w);if(oe&&(R[b]={...oe,...P(Yo.validate,oe.message)},!n))return A(oe.message),R}else if(ir(g)){let $={};for(const oe in g){if(!sa($)&&!n)break;const fe=EN(await g[oe](v,t),w,oe);fe&&($={...fe,...P(oe,fe.message)},A(fe.message),n&&(R[b]=$))}if(!sa($)&&(R[b]={ref:w,...$},!n))return R}}return A(!0),R};function s4e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var am=e=>ei(e)||!qB(e);function uu(e,t){if(am(e)||am(t))return e===t;if(F1(e)&&F1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(F1(a)&&F1(o)||ir(a)&&ir(o)||Array.isArray(a)&&Array.isArray(o)?!uu(a,o):a!==o)return!1}}return!0}var QB=e=>e.type==="select-multiple",u4e=e=>UT(e)||bf(e),q4=e=>rm(e)&&e.isConnected,JB=e=>{for(const t in e)if(Js(e[t]))return!0;return!1};function om(e,t={}){const n=Array.isArray(e);if(ir(e)||n)for(const r in e)Array.isArray(e[r])||ir(e[r])&&!JB(e[r])?(t[r]=Array.isArray(e[r])?[]:{},om(e[r],t[r])):ei(e[r])||(t[r]=!0);return t}function eU(e,t,n){const r=Array.isArray(e);if(ir(e)||r)for(const i in e)Array.isArray(e[i])||ir(e[i])&&!JB(e[i])?qn(t)||am(n[i])?n[i]=Array.isArray(e[i])?om(e[i],[]):{...om(e[i])}:eU(e[i],ei(t)?{}:t[i],n[i]):n[i]=!uu(e[i],t[i]);return n}var K4=(e,t)=>eU(e,t,om(t)),tU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>qn(e)?e:t?e===""?NaN:e&&+e:n&&Eo(e)?new Date(e):r?r(e):e;function Y4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return BT(t)?t.files:UT(t)?ZB(e.refs).value:QB(t)?[...t.selectedOptions].map(({value:n})=>n):bf(t)?XB(e.refs).value:tU(qn(t.value)?e.ref.value:t.value,e)}var c4e=(e,t,n,r)=>{const i={};for(const a of e){const o=ut(t,a);o&&Cn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},yd=e=>qn(e)?e:im(e)?e.source:ir(e)?im(e.value)?e.value.source:e.value:e,d4e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _N(e,t,n){const r=ut(e,n);if(r||PT(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=ut(t,a),s=ut(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var p4e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,f4e=(e,t)=>!yf(ut(e,t)).length&&vr(e,t);const h4e={mode:Ha.onSubmit,reValidateMode:Ha.onChange,shouldFocusError:!0};function g4e(e={},t){let n={...h4e,...e},r={submitCount:0,isDirty:!1,isLoading:Js(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=ir(n.defaultValues)||ir(n.values)?Qo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:Qo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:W4(),array:W4(),state:W4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,b=hN(n.mode),y=hN(n.reValidateMode),T=n.criteriaMode===Ha.all,E=U=>re=>{clearTimeout(p),p=setTimeout(U,re)},v=async U=>{if(f.isValid||U){const re=n.resolver?sa((await q()).errors):await Q(i,!0);re!==r.isValid&&m.state.next({isValid:re})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,re=[],de,xe,ye=!0,Te=!0)=>{if(xe&&de){if(s.action=!0,Te&&Array.isArray(ut(i,U))){const Le=de(ut(i,U),xe.argA,xe.argB);ye&&Cn(i,U,Le)}if(Te&&Array.isArray(ut(r.errors,U))){const Le=de(ut(r.errors,U),xe.argA,xe.argB);ye&&Cn(r.errors,U,Le),f4e(r.errors,U)}if(f.touchedFields&&Te&&Array.isArray(ut(r.touchedFields,U))){const Le=de(ut(r.touchedFields,U),xe.argA,xe.argB);ye&&Cn(r.touchedFields,U,Le)}f.dirtyFields&&(r.dirtyFields=K4(a,o)),m.state.next({name:U,isDirty:oe(U,re),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Cn(o,U,re)},R=(U,re)=>{Cn(r.errors,U,re),m.state.next({errors:r.errors})},k=(U,re,de,xe)=>{const ye=ut(i,U);if(ye){const Te=ut(o,U,qn(de)?ut(a,U):de);qn(Te)||xe&&xe.defaultChecked||re?Cn(o,U,re?Te:Y4(ye._f)):De(U,Te),s.mount&&v()}},N=(U,re,de,xe,ye)=>{let Te=!1,Le=!1;const ze={name:U};if(!de||xe){f.isDirty&&(Le=r.isDirty,r.isDirty=ze.isDirty=oe(),Te=Le!==ze.isDirty);const Xe=uu(ut(a,U),re);Le=ut(r.dirtyFields,U),Xe?vr(r.dirtyFields,U):Cn(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Te=Te||f.dirtyFields&&Le!==!Xe}if(de){const Xe=ut(r.touchedFields,U);Xe||(Cn(r.touchedFields,U,de),ze.touchedFields=r.touchedFields,Te=Te||f.touchedFields&&Xe!==de)}return Te&&ye&&m.state.next(ze),Te?ze:{}},B=(U,re,de,xe)=>{const ye=ut(r.errors,U),Te=f.isValid&&lu(re)&&r.isValid!==re;if(e.delayError&&de?(c=E(()=>R(U,de)),c(e.delayError)):(clearTimeout(p),c=null,de?Cn(r.errors,U,de):vr(r.errors,U)),(de?!uu(ye,de):ye)||!sa(xe)||Te){const Le={...xe,...Te&&lu(re)?{isValid:re}:{},errors:r.errors,name:U};r={...r,...Le},m.state.next(Le)}w(!1)},q=async U=>n.resolver(o,n.context,c4e(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:re}=await q(U);if(U)for(const de of U){const xe=ut(re,de);xe?Cn(r.errors,de,xe):vr(r.errors,de)}else r.errors=re;return re},Q=async(U,re,de={valid:!0})=>{for(const xe in U){const ye=U[xe];if(ye){const{_f:Te,...Le}=ye;if(Te){const ze=u.array.has(Te.name),Xe=await vN(ye,o,T,n.shouldUseNativeValidation&&!re,ze);if(Xe[Te.name]&&(de.valid=!1,re))break;!re&&(ut(Xe,Te.name)?ze?o4e(r.errors,Xe,Te.name):Cn(r.errors,Te.name,Xe[Te.name]):vr(r.errors,Te.name))}Le&&await Q(Le,re,de)}}return de.valid},$=()=>{for(const U of u.unMount){const re=ut(i,U);re&&(re._f.refs?re._f.refs.every(de=>!q4(de)):!q4(re._f.ref))&&X(U)}u.unMount=new Set},oe=(U,re)=>(U&&re&&Cn(o,U,re),!uu(pe(),a)),fe=(U,re,de)=>i4e(U,u,{...s.mount?o:qn(re)?a:Eo(U)?{[U]:re}:re},de,re),ce=U=>yf(ut(s.mount?o:a,U,e.shouldUnregister?ut(a,U,[]):[])),De=(U,re,de={})=>{const xe=ut(i,U);let ye=re;if(xe){const Te=xe._f;Te&&(!Te.disabled&&Cn(o,U,tU(re,Te)),ye=rm(Te.ref)&&ei(re)?"":re,QB(Te.ref)?[...Te.ref.options].forEach(Le=>Le.selected=ye.includes(Le.value)):Te.refs?bf(Te.ref)?Te.refs.length>1?Te.refs.forEach(Le=>(!Le.defaultChecked||!Le.disabled)&&(Le.checked=Array.isArray(ye)?!!ye.find(ze=>ze===Le.value):ye===Le.value)):Te.refs[0]&&(Te.refs[0].checked=!!ye):Te.refs.forEach(Le=>Le.checked=Le.value===ye):BT(Te.ref)?Te.ref.value="":(Te.ref.value=ye,Te.ref.type||m.values.next({name:U,values:{...o}})))}(de.shouldDirty||de.shouldTouch)&&N(U,ye,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&D(U)},H=(U,re,de)=>{for(const xe in re){const ye=re[xe],Te=`${U}.${xe}`,Le=ut(i,Te);(u.array.has(U)||!am(ye)||Le&&!Le._f)&&!F1(ye)?H(Te,ye,de):De(Te,ye,de)}},W=(U,re,de={})=>{const xe=ut(i,U),ye=u.array.has(U),Te=Qo(re);Cn(o,U,Te),ye?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&de.shouldDirty&&m.state.next({name:U,dirtyFields:K4(a,o),isDirty:oe(U,Te)})):xe&&!xe._f&&!ei(Te)?H(U,Te,de):De(U,Te,de),gN(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},se=async U=>{const re=U.target;let de=re.name,xe=!0;const ye=ut(i,de),Te=()=>re.type?Y4(ye._f):X3e(U);if(ye){let Le,ze;const Xe=Te(),jt=U.type===fN.BLUR||U.type===fN.FOCUS_OUT,ue=!d4e(ye._f)&&!n.resolver&&!ut(r.errors,de)&&!ye._f.deps||p4e(jt,ut(r.touchedFields,de),r.isSubmitted,y,b),Ee=gN(de,u,jt);Cn(o,de,Xe),jt?(ye._f.onBlur&&ye._f.onBlur(U),c&&c(0)):ye._f.onChange&&ye._f.onChange(U);const qe=N(de,Xe,jt,!1),j=!sa(qe)||Ee;if(!jt&&m.values.next({name:de,type:U.type,values:{...o}}),ue)return f.isValid&&v(),j&&m.state.next({name:de,...Ee?{}:qe});if(!jt&&Ee&&m.state.next({...r}),w(!0),n.resolver){const{errors:me}=await q([de]),Ve=_N(r.errors,i,de),ge=_N(me,i,Ve.name||de);Le=ge.error,de=ge.name,ze=sa(me)}else Le=(await vN(ye,o,T,n.shouldUseNativeValidation))[de],xe=Number.isNaN(Xe)||Xe===ut(o,de,Xe),xe&&(Le?ze=!1:f.isValid&&(ze=await Q(i,!0)));xe&&(ye._f.deps&&D(ye._f.deps),B(de,ze,Le,qe))}},D=async(U,re={})=>{let de,xe;const ye=V4(U);if(w(!0),n.resolver){const Te=await P(qn(U)?U:ye);de=sa(Te),xe=U?!ye.some(Le=>ut(Te,Le)):de}else U?(xe=(await Promise.all(ye.map(async Te=>{const Le=ut(i,Te);return await Q(Le&&Le._f?{[Te]:Le}:Le)}))).every(Boolean),!(!xe&&!r.isValid)&&v()):xe=de=await Q(i);return m.state.next({...!Eo(U)||f.isValid&&de!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:de}:{},errors:r.errors,isValidating:!1}),re.shouldFocus&&!xe&&oE(i,Te=>Te&&ut(r.errors,Te),U?ye:u.mount),xe},pe=U=>{const re={...a,...s.mount?o:{}};return qn(U)?re:Eo(U)?ut(re,U):U.map(de=>ut(re,de))},le=(U,re)=>({invalid:!!ut((re||r).errors,U),isDirty:!!ut((re||r).dirtyFields,U),isTouched:!!ut((re||r).touchedFields,U),error:ut((re||r).errors,U)}),L=U=>{U&&V4(U).forEach(re=>vr(r.errors,re)),m.state.next({errors:U?r.errors:{}})},ie=(U,re,de)=>{const xe=(ut(i,U,{_f:{}})._f||{}).ref;Cn(r.errors,U,{...re,ref:xe}),m.state.next({name:U,errors:r.errors,isValid:!1}),de&&de.shouldFocus&&xe&&xe.focus&&xe.focus()},Se=(U,re)=>Js(U)?m.values.subscribe({next:de=>U(fe(void 0,re),de)}):fe(U,re,!0),X=(U,re={})=>{for(const de of U?V4(U):u.mount)u.mount.delete(de),u.array.delete(de),re.keepValue||(vr(i,de),vr(o,de)),!re.keepError&&vr(r.errors,de),!re.keepDirty&&vr(r.dirtyFields,de),!re.keepTouched&&vr(r.touchedFields,de),!n.shouldUnregister&&!re.keepDefaultValue&&vr(a,de);m.values.next({values:{...o}}),m.state.next({...r,...re.keepDirty?{isDirty:oe()}:{}}),!re.keepIsValid&&v()},ke=({disabled:U,name:re,field:de,fields:xe})=>{if(lu(U)){const ye=U?void 0:ut(o,re,Y4(de?de._f:ut(xe,re)._f));Cn(o,re,ye),N(re,ye,!1,!1,!0)}},te=(U,re={})=>{let de=ut(i,U);const xe=lu(re.disabled);return Cn(i,U,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:U}},name:U,mount:!0,...re}}),u.mount.add(U),de?ke({field:de,disabled:re.disabled,name:U}):k(U,!0,re.value),{...xe?{disabled:re.disabled}:{},...n.progressive?{required:!!re.required,min:yd(re.min),max:yd(re.max),minLength:yd(re.minLength),maxLength:yd(re.maxLength),pattern:yd(re.pattern)}:{},name:U,onChange:se,onBlur:se,ref:ye=>{if(ye){te(U,re),de=ut(i,U);const Te=qn(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,Le=u4e(Te),ze=de._f.refs||[];if(Le?ze.find(Xe=>Xe===Te):Te===de._f.ref)return;Cn(i,U,{_f:{...de._f,...Le?{refs:[...ze.filter(q4),Te,...Array.isArray(ut(a,U))?[{}]:[]],ref:{type:Te.type,name:U}}:{ref:Te}}}),k(U,!1,void 0,Te)}else de=ut(i,U,{}),de._f&&(de._f.mount=!1),(n.shouldUnregister||re.shouldUnregister)&&!(Q3e(u.array,U)&&s.action)&&u.unMount.add(U)}}},Me=()=>n.shouldFocusError&&oE(i,U=>U&&ut(r.errors,U),u.mount),Re=(U,re)=>async de=>{de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let xe=Qo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ye,values:Te}=await q();r.errors=ye,xe=Te}else await Q(i);vr(r.errors,"root"),sa(r.errors)?(m.state.next({errors:{}}),await U(xe,de)):(re&&await re({...r.errors},de),Me(),setTimeout(Me)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Ye=(U,re={})=>{ut(i,U)&&(qn(re.defaultValue)?W(U,ut(a,U)):(W(U,re.defaultValue),Cn(a,U,re.defaultValue)),re.keepTouched||vr(r.touchedFields,U),re.keepDirty||(vr(r.dirtyFields,U),r.isDirty=re.defaultValue?oe(U,ut(a,U)):oe()),re.keepError||(vr(r.errors,U),f.isValid&&v()),m.state.next({...r}))},We=(U,re={})=>{const de=U?Qo(U):a,xe=Qo(de),ye=U&&!sa(U)?xe:a;if(re.keepDefaultValues||(a=de),!re.keepValues){if(re.keepDirtyValues||g)for(const Te of u.mount)ut(r.dirtyFields,Te)?Cn(ye,Te,ut(o,Te)):W(Te,ut(ye,Te));else{if(FT&&qn(U))for(const Te of u.mount){const Le=ut(i,Te);if(Le&&Le._f){const ze=Array.isArray(Le._f.refs)?Le._f.refs[0]:Le._f.ref;if(rm(ze)){const Xe=ze.closest("form");if(Xe){Xe.reset();break}}}}i={}}o=e.shouldUnregister?re.keepDefaultValues?Qo(a):{}:Qo(ye),m.array.next({values:{...ye}}),m.values.next({values:{...ye}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!re.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:re.keepSubmitCount?r.submitCount:0,isDirty:re.keepDirty?r.isDirty:!!(re.keepDefaultValues&&!uu(U,a)),isSubmitted:re.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re.keepDirtyValues?r.dirtyFields:re.keepDefaultValues&&U?K4(a,U):{},touchedFields:re.keepTouched?r.touchedFields:{},errors:re.keepErrors?r.errors:{},isSubmitSuccessful:re.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,re)=>We(Js(U)?U(o):U,re);return{control:{register:te,unregister:X,getFieldState:le,handleSubmit:Re,setError:ie,_executeSchema:q,_getWatch:fe,_getDirty:oe,_updateValid:v,_removeUnmounted:$,_updateFieldArray:A,_updateDisabledField:ke,_getFieldArray:ce,_reset:We,_resetDefaultValues:()=>Js(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:D,register:te,handleSubmit:Re,watch:Se,setValue:W,getValues:pe,reset:dt,resetField:Ye,clearErrors:L,unregister:X,setError:ie,setFocus:(U,re={})=>{const de=ut(i,U),xe=de&&de._f;if(xe){const ye=xe.refs?xe.refs[0]:xe.ref;ye.focus&&(ye.focus(),re.shouldSelect&&ye.select())}},getFieldState:le}}function nU(e={}){const t=st.useRef(),n=st.useRef(),[r,i]=st.useState({isDirty:!1,isValidating:!1,isLoading:Js(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Js(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...g4e(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,r4e({subject:a._subjects.state,next:o=>{n4e(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),st.useEffect(()=>{e.values&&!uu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),st.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=t4e(r,a),t.current}const TN=Ge.hr` border: 0.5px solid ${Et}; `,m4e=Ge(oc)` background-color: transparent; @@ -1132,10 +1132,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */sm.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,b=1,y=2,T=1,E=2,v=4,w=8,A=16,R=32,k=64,N=128,B=256,q=512,P=30,Q="...",$=800,oe=16,fe=1,ce=2,De=3,H=1/0,W=9007199254740991,se=17976931348623157e292,D=0/0,pe=4294967295,le=pe-1,L=pe>>>1,ie=[["ary",N],["bind",T],["bindKey",E],["curry",w],["curryRight",A],["flip",q],["partial",R],["partialRight",k],["rearg",B]],Se="[object Arguments]",X="[object Array]",ke="[object AsyncFunction]",te="[object Boolean]",Me="[object Date]",Re="[object DOMException]",Ze="[object Error]",We="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",je="[object Number]",pt="[object Null]",U="[object Object]",re="[object Promise]",de="[object Proxy]",xe="[object RegExp]",ye="[object Set]",Te="[object String]",Le="[object Symbol]",ze="[object Undefined]",Ye="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",Ee="[object DataView]",qe="[object Float32Array]",j="[object Float64Array]",me="[object Int8Array]",Ve="[object Int16Array]",ge="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",ne="[object Uint16Array]",ve="[object Uint32Array]",Qe=/\b__p \+= '';/g,Fe=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,Je=/[&<>"']/g,Rt=RegExp(rt.source),Qt=RegExp(Je.source),kt=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,Xt=/<%=([\s\S]+?)%>/g,Wr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,Kr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aa=/[\\^$.*+?()[\]{}|]/g,si=RegExp(Aa.source),Or=/^\s+/,Es=/\s/,vs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yr=/\{\n\/\* \[wrapped with (.+)\] \*/,_s=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dr=/[()=,{}\[\]\/\s]/,Si=/\\(\\)?/g,Nl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,J=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,ar=/^(?:0|[1-9]\d*)$/,or=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zn=/($^)/,Oo=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Lr="\\u0300-\\u036f",Ef="\\ufe20-\\ufe2f",vf="\\u20d0-\\u20ff",GT=Lr+Ef+vf,VT="\\u2700-\\u27bf",WT="a-z\\xdf-\\xf6\\xf8-\\xff",yU="\\xac\\xb1\\xd7\\xf7",EU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vU="\\u2000-\\u206f",_U=" \\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",qT="A-Z\\xc0-\\xd6\\xd8-\\xde",KT="\\ufe0e\\ufe0f",YT=yU+EU+vU+_U,G2="['’]",TU="["+no+"]",XT="["+YT+"]",_f="["+GT+"]",ZT="\\d+",SU="["+VT+"]",QT="["+WT+"]",JT="[^"+no+YT+ZT+VT+WT+qT+"]",V2="\\ud83c[\\udffb-\\udfff]",wU="(?:"+_f+"|"+V2+")",eS="[^"+no+"]",W2="(?:\\ud83c[\\udde6-\\uddff]){2}",q2="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+qT+"]",tS="\\u200d",nS="(?:"+QT+"|"+JT+")",AU="(?:"+Bu+"|"+JT+")",rS="(?:"+G2+"(?:d|ll|m|re|s|t|ve))?",iS="(?:"+G2+"(?:D|LL|M|RE|S|T|VE))?",aS=wU+"?",oS="["+KT+"]?",CU="(?:"+tS+"(?:"+[eS,W2,q2].join("|")+")"+oS+aS+")*",kU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sS=oS+aS+CU,IU="(?:"+[SU,W2,q2].join("|")+")"+sS,RU="(?:"+[eS+_f+"?",_f,W2,q2,TU].join("|")+")",NU=RegExp(G2,"g"),OU=RegExp(_f,"g"),K2=RegExp(V2+"(?="+V2+")|"+RU+sS,"g"),DU=RegExp([Bu+"?"+QT+"+"+rS+"(?="+[XT,Bu,"$"].join("|")+")",AU+"+"+iS+"(?="+[XT,Bu+nS,"$"].join("|")+")",Bu+"?"+nS+"+"+rS,Bu+"+"+iS,xU,kU,ZT,IU].join("|"),"g"),LU=RegExp("["+tS+no+GT+KT+"]"),MU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],PU=-1,En={};En[qe]=En[j]=En[me]=En[Ve]=En[ge]=En[G]=En[K]=En[ne]=En[ve]=!0,En[Se]=En[X]=En[ue]=En[te]=En[Ee]=En[Me]=En[Ze]=En[We]=En[ot]=En[je]=En[U]=En[xe]=En[ye]=En[Te]=En[Ye]=!1;var mn={};mn[Se]=mn[X]=mn[ue]=mn[Ee]=mn[te]=mn[Me]=mn[qe]=mn[j]=mn[me]=mn[Ve]=mn[ge]=mn[ot]=mn[je]=mn[U]=mn[xe]=mn[ye]=mn[Te]=mn[Le]=mn[G]=mn[K]=mn[ne]=mn[ve]=!0,mn[Ze]=mn[We]=mn[Ye]=!1;var BU={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},UU={"&":"&","<":"<",">":">",'"':""","'":"'"},$U={"&":"&","<":"<",">":">",""":'"',"'":"'"},zU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HU=parseFloat,jU=parseInt,lS=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,GU=typeof self=="object"&&self&&self.Object===Object&&self,mr=lS||GU||Function("return this")(),Y2=t&&!t.nodeType&&t,Ol=Y2&&!0&&e&&!e.nodeType&&e,uS=Ol&&Ol.exports===Y2,X2=uS&&lS.process,Yi=function(){try{var ee=Ol&&Ol.require&&Ol.require("util").types;return ee||X2&&X2.binding&&X2.binding("util")}catch{}}(),cS=Yi&&Yi.isArrayBuffer,dS=Yi&&Yi.isDate,pS=Yi&&Yi.isMap,fS=Yi&&Yi.isRegExp,hS=Yi&&Yi.isSet,gS=Yi&&Yi.isTypedArray;function wi(ee,_e,he){switch(he.length){case 0:return ee.call(_e);case 1:return ee.call(_e,he[0]);case 2:return ee.call(_e,he[0],he[1]);case 3:return ee.call(_e,he[0],he[1],he[2])}return ee.apply(_e,he)}function VU(ee,_e,he,et){for(var _t=-1,Jt=ee==null?0:ee.length;++_t-1}function Z2(ee,_e,he){for(var et=-1,_t=ee==null?0:ee.length;++et<_t;)if(he(_e,ee[et]))return!0;return!1}function An(ee,_e){for(var he=-1,et=ee==null?0:ee.length,_t=Array(et);++he-1;);return he}function SS(ee,_e){for(var he=ee.length;he--&&Uu(_e,ee[he],0)>-1;);return he}function e$(ee,_e){for(var he=ee.length,et=0;he--;)ee[he]===_e&&++et;return et}var t$=t5(BU),n$=t5(UU);function r$(ee){return"\\"+zU[ee]}function i$(ee,_e){return ee==null?n:ee[_e]}function $u(ee){return LU.test(ee)}function a$(ee){return MU.test(ee)}function o$(ee){for(var _e,he=[];!(_e=ee.next()).done;)he.push(_e.value);return he}function a5(ee){var _e=-1,he=Array(ee.size);return ee.forEach(function(et,_t){he[++_e]=[_t,et]}),he}function wS(ee,_e){return function(he){return ee(_e(he))}}function ws(ee,_e){for(var he=-1,et=ee.length,_t=0,Jt=[];++he-1}function q$(l,d){var h=this.__data__,_=Uf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Do.prototype.clear=j$,Do.prototype.delete=G$,Do.prototype.get=V$,Do.prototype.has=W$,Do.prototype.set=q$;function Lo(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Ji(l,d,h,_,x,F){var z,Z=d&f,ae=d&m,we=d&g;if(h&&(z=x?h(l,_,x,F):h(l)),z!==n)return z;if(!Rn(l))return l;var Ce=Tt(l);if(Ce){if(z=Zz(l),!Z)return li(l,z)}else{var Ie=Fr(l),Xe=Ie==We||Ie==dt;if(Rs(l))return ow(l,Z);if(Ie==U||Ie==Se||Xe&&!x){if(z=ae||Xe?{}:Aw(l),!Z)return ae?$z(l,uz(z,l)):Uz(l,FS(z,l))}else{if(!mn[Ie])return x?l:{};z=Qz(l,Ie,Z)}}F||(F=new ka);var lt=F.get(l);if(lt)return lt;F.set(l,z),eA(l)?l.forEach(function(yt){z.add(Ji(yt,d,h,yt,l,F))}):Qw(l)&&l.forEach(function(yt,Nt){z.set(Nt,Ji(yt,d,h,Nt,l,F))});var bt=we?ae?N5:R5:ae?ci:sr,wt=Ce?n:bt(l);return Xi(wt||l,function(yt,Nt){wt&&(Nt=yt,yt=l[Nt]),Pc(z,Nt,Ji(yt,d,h,Nt,l,F))}),z}function cz(l){var d=sr(l);return function(h){return PS(h,l,d)}}function PS(l,d,h){var _=h.length;if(l==null)return!_;for(l=pn(l);_--;){var x=h[_],F=d[x],z=l[x];if(z===n&&!(x in l)||!F(z))return!1}return!0}function BS(l,d,h){if(typeof l!="function")throw new Zi(o);return Gc(function(){l.apply(n,h)},d)}function Bc(l,d,h,_){var x=-1,F=Tf,z=!0,Z=l.length,ae=[],we=d.length;if(!Z)return ae;h&&(d=An(d,Ai(h))),_?(F=Z2,z=!1):d.length>=i&&(F=Nc,z=!1,d=new Ml(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:nA(_);h<_;)l[h++]=d;return l}function $S(l,d){var h=[];return Cs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function br(l,d,h,_,x){var F=-1,z=l.length;for(h||(h=eH),x||(x=[]);++F0&&h(Z)?d>1?br(Z,d-1,h,_,x):Ss(x,Z):_||(x[x.length]=Z)}return x}var p5=pw(),zS=pw(!0);function ro(l,d){return l&&p5(l,d,sr)}function f5(l,d){return l&&zS(l,d,sr)}function zf(l,d){return Ts(d,function(h){return Uo(l[h])})}function Pl(l,d){d=xs(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[ao(d[h++])];return h&&h==_?l:n}function HS(l,d,h){var _=d(l);return Tt(l)?_:Ss(_,h(l))}function Xr(l){return l==null?l===n?ze:pt:Dl&&Dl in pn(l)?Kz(l):sH(l)}function h5(l,d){return l>d}function fz(l,d){return l!=null&&an.call(l,d)}function hz(l,d){return l!=null&&d in pn(l)}function gz(l,d,h){return l>=Mr(d,h)&&l=120&&Ce.length>=120)?new Ml(z&&Ce):n}Ce=l[0];var Ie=-1,Xe=Z[0];e:for(;++Ie-1;)Z!==l&&Of.call(Z,ae,1),Of.call(l,ae,1);return l}function QS(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Bo(x)?Of.call(l,x,1):S5(l,x)}}return l}function v5(l,d){return l+Mf(OS()*(d-l+1))}function xz(l,d,h,_){for(var x=-1,F=Jn(Lf((d-l)/(h||1)),0),z=he(F);F--;)z[_?F:++x]=l,l+=h;return z}function _5(l,d){var h="";if(!l||d<1||d>W)return h;do d%2&&(h+=l),d=Mf(d/2),d&&(l+=l);while(d);return h}function xt(l,d){return B5(xw(l,d,di),l+"")}function Iz(l){return MS(Zu(l))}function Rz(l,d){var h=Zu(l);return Qf(h,Fl(d,0,h.length))}function zc(l,d,h,_){if(!Rn(l))return l;d=xs(d,l);for(var x=-1,F=d.length,z=F-1,Z=l;Z!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=he(x);++_>>1,z=l[F];z!==null&&!ki(z)&&(h?z<=d:z=i){var we=d?null:Gz(l);if(we)return wf(we);z=!1,x=Nc,ae=new Ml}else ae=d?[]:Z;e:for(;++_=_?l:ea(l,d,h)}var aw=_$||function(l){return mr.clearTimeout(l)};function ow(l,d){if(d)return l.slice();var h=l.length,_=kS?kS(h):new l.constructor(h);return l.copy(_),_}function k5(l){var d=new l.constructor(l.byteLength);return new Rf(d).set(new Rf(l)),d}function Mz(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function Fz(l){var d=new l.constructor(l.source,Ke.exec(l));return d.lastIndex=l.lastIndex,d}function Pz(l){return Fc?pn(Fc.call(l)):{}}function sw(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function lw(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=ki(l),z=d!==n,Z=d===null,ae=d===d,we=ki(d);if(!Z&&!we&&!F&&l>d||F&&z&&ae&&!Z&&!we||_&&z&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=Z)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function uw(l,d,h,_){for(var x=-1,F=l.length,z=h.length,Z=-1,ae=d.length,we=Jn(F-z,0),Ce=he(ae+we),Ie=!_;++Z1?h[x-1]:n,z=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,z&&Zr(h[0],h[1],z)&&(F=x<3?n:F,x=1),d=pn(d);++_-1?x[F?d[z]:z]:n}}function gw(l){return Po(function(d){var h=d.length,_=h,x=Qi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Zi(o);if(x&&!z&&Xf(F)=="wrapper")var z=new Qi([],!0)}for(_=z?_:h;++_1&&Bt.reverse(),Ce&&aeZ))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Xe=!0,lt=h&y?new Ml:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(vs,`{ + */sm.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,b=1,y=2,T=1,E=2,v=4,w=8,A=16,R=32,k=64,N=128,B=256,q=512,P=30,Q="...",$=800,oe=16,fe=1,ce=2,De=3,H=1/0,W=9007199254740991,se=17976931348623157e292,D=0/0,pe=4294967295,le=pe-1,L=pe>>>1,ie=[["ary",N],["bind",T],["bindKey",E],["curry",w],["curryRight",A],["flip",q],["partial",R],["partialRight",k],["rearg",B]],Se="[object Arguments]",X="[object Array]",ke="[object AsyncFunction]",te="[object Boolean]",Me="[object Date]",Re="[object DOMException]",Ye="[object Error]",We="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",je="[object Number]",pt="[object Null]",U="[object Object]",re="[object Promise]",de="[object Proxy]",xe="[object RegExp]",ye="[object Set]",Te="[object String]",Le="[object Symbol]",ze="[object Undefined]",Xe="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",Ee="[object DataView]",qe="[object Float32Array]",j="[object Float64Array]",me="[object Int8Array]",Ve="[object Int16Array]",ge="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",ne="[object Uint16Array]",ve="[object Uint32Array]",Qe=/\b__p \+= '';/g,Fe=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,Je=/[&<>"']/g,Rt=RegExp(rt.source),Qt=RegExp(Je.source),kt=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,Xt=/<%=([\s\S]+?)%>/g,Wr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,Kr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aa=/[\\^$.*+?()[\]{}|]/g,si=RegExp(Aa.source),Or=/^\s+/,Es=/\s/,vs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yr=/\{\n\/\* \[wrapped with (.+)\] \*/,_s=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dr=/[()=,{}\[\]\/\s]/,Si=/\\(\\)?/g,Nl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,J=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,ar=/^(?:0|[1-9]\d*)$/,or=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zn=/($^)/,Oo=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Lr="\\u0300-\\u036f",Ef="\\ufe20-\\ufe2f",vf="\\u20d0-\\u20ff",GT=Lr+Ef+vf,VT="\\u2700-\\u27bf",WT="a-z\\xdf-\\xf6\\xf8-\\xff",yU="\\xac\\xb1\\xd7\\xf7",EU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vU="\\u2000-\\u206f",_U=" \\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",qT="A-Z\\xc0-\\xd6\\xd8-\\xde",KT="\\ufe0e\\ufe0f",YT=yU+EU+vU+_U,G2="['’]",TU="["+no+"]",XT="["+YT+"]",_f="["+GT+"]",ZT="\\d+",SU="["+VT+"]",QT="["+WT+"]",JT="[^"+no+YT+ZT+VT+WT+qT+"]",V2="\\ud83c[\\udffb-\\udfff]",wU="(?:"+_f+"|"+V2+")",eS="[^"+no+"]",W2="(?:\\ud83c[\\udde6-\\uddff]){2}",q2="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+qT+"]",tS="\\u200d",nS="(?:"+QT+"|"+JT+")",AU="(?:"+Bu+"|"+JT+")",rS="(?:"+G2+"(?:d|ll|m|re|s|t|ve))?",iS="(?:"+G2+"(?:D|LL|M|RE|S|T|VE))?",aS=wU+"?",oS="["+KT+"]?",CU="(?:"+tS+"(?:"+[eS,W2,q2].join("|")+")"+oS+aS+")*",kU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sS=oS+aS+CU,IU="(?:"+[SU,W2,q2].join("|")+")"+sS,RU="(?:"+[eS+_f+"?",_f,W2,q2,TU].join("|")+")",NU=RegExp(G2,"g"),OU=RegExp(_f,"g"),K2=RegExp(V2+"(?="+V2+")|"+RU+sS,"g"),DU=RegExp([Bu+"?"+QT+"+"+rS+"(?="+[XT,Bu,"$"].join("|")+")",AU+"+"+iS+"(?="+[XT,Bu+nS,"$"].join("|")+")",Bu+"?"+nS+"+"+rS,Bu+"+"+iS,xU,kU,ZT,IU].join("|"),"g"),LU=RegExp("["+tS+no+GT+KT+"]"),MU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],PU=-1,En={};En[qe]=En[j]=En[me]=En[Ve]=En[ge]=En[G]=En[K]=En[ne]=En[ve]=!0,En[Se]=En[X]=En[ue]=En[te]=En[Ee]=En[Me]=En[Ye]=En[We]=En[ot]=En[je]=En[U]=En[xe]=En[ye]=En[Te]=En[Xe]=!1;var mn={};mn[Se]=mn[X]=mn[ue]=mn[Ee]=mn[te]=mn[Me]=mn[qe]=mn[j]=mn[me]=mn[Ve]=mn[ge]=mn[ot]=mn[je]=mn[U]=mn[xe]=mn[ye]=mn[Te]=mn[Le]=mn[G]=mn[K]=mn[ne]=mn[ve]=!0,mn[Ye]=mn[We]=mn[Xe]=!1;var BU={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},UU={"&":"&","<":"<",">":">",'"':""","'":"'"},$U={"&":"&","<":"<",">":">",""":'"',"'":"'"},zU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HU=parseFloat,jU=parseInt,lS=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,GU=typeof self=="object"&&self&&self.Object===Object&&self,mr=lS||GU||Function("return this")(),Y2=t&&!t.nodeType&&t,Ol=Y2&&!0&&e&&!e.nodeType&&e,uS=Ol&&Ol.exports===Y2,X2=uS&&lS.process,Yi=function(){try{var ee=Ol&&Ol.require&&Ol.require("util").types;return ee||X2&&X2.binding&&X2.binding("util")}catch{}}(),cS=Yi&&Yi.isArrayBuffer,dS=Yi&&Yi.isDate,pS=Yi&&Yi.isMap,fS=Yi&&Yi.isRegExp,hS=Yi&&Yi.isSet,gS=Yi&&Yi.isTypedArray;function wi(ee,_e,he){switch(he.length){case 0:return ee.call(_e);case 1:return ee.call(_e,he[0]);case 2:return ee.call(_e,he[0],he[1]);case 3:return ee.call(_e,he[0],he[1],he[2])}return ee.apply(_e,he)}function VU(ee,_e,he,et){for(var _t=-1,Jt=ee==null?0:ee.length;++_t-1}function Z2(ee,_e,he){for(var et=-1,_t=ee==null?0:ee.length;++et<_t;)if(he(_e,ee[et]))return!0;return!1}function An(ee,_e){for(var he=-1,et=ee==null?0:ee.length,_t=Array(et);++he-1;);return he}function SS(ee,_e){for(var he=ee.length;he--&&Uu(_e,ee[he],0)>-1;);return he}function e$(ee,_e){for(var he=ee.length,et=0;he--;)ee[he]===_e&&++et;return et}var t$=t5(BU),n$=t5(UU);function r$(ee){return"\\"+zU[ee]}function i$(ee,_e){return ee==null?n:ee[_e]}function $u(ee){return LU.test(ee)}function a$(ee){return MU.test(ee)}function o$(ee){for(var _e,he=[];!(_e=ee.next()).done;)he.push(_e.value);return he}function a5(ee){var _e=-1,he=Array(ee.size);return ee.forEach(function(et,_t){he[++_e]=[_t,et]}),he}function wS(ee,_e){return function(he){return ee(_e(he))}}function ws(ee,_e){for(var he=-1,et=ee.length,_t=0,Jt=[];++he-1}function q$(l,d){var h=this.__data__,_=Uf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Do.prototype.clear=j$,Do.prototype.delete=G$,Do.prototype.get=V$,Do.prototype.has=W$,Do.prototype.set=q$;function Lo(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Ji(l,d,h,_,x,F){var z,Z=d&f,ae=d&m,we=d&g;if(h&&(z=x?h(l,_,x,F):h(l)),z!==n)return z;if(!Rn(l))return l;var Ce=Tt(l);if(Ce){if(z=Zz(l),!Z)return li(l,z)}else{var Ie=Fr(l),Ze=Ie==We||Ie==dt;if(Rs(l))return ow(l,Z);if(Ie==U||Ie==Se||Ze&&!x){if(z=ae||Ze?{}:Aw(l),!Z)return ae?$z(l,uz(z,l)):Uz(l,FS(z,l))}else{if(!mn[Ie])return x?l:{};z=Qz(l,Ie,Z)}}F||(F=new ka);var lt=F.get(l);if(lt)return lt;F.set(l,z),eA(l)?l.forEach(function(yt){z.add(Ji(yt,d,h,yt,l,F))}):Qw(l)&&l.forEach(function(yt,Nt){z.set(Nt,Ji(yt,d,h,Nt,l,F))});var bt=we?ae?N5:R5:ae?ci:sr,wt=Ce?n:bt(l);return Xi(wt||l,function(yt,Nt){wt&&(Nt=yt,yt=l[Nt]),Pc(z,Nt,Ji(yt,d,h,Nt,l,F))}),z}function cz(l){var d=sr(l);return function(h){return PS(h,l,d)}}function PS(l,d,h){var _=h.length;if(l==null)return!_;for(l=pn(l);_--;){var x=h[_],F=d[x],z=l[x];if(z===n&&!(x in l)||!F(z))return!1}return!0}function BS(l,d,h){if(typeof l!="function")throw new Zi(o);return Gc(function(){l.apply(n,h)},d)}function Bc(l,d,h,_){var x=-1,F=Tf,z=!0,Z=l.length,ae=[],we=d.length;if(!Z)return ae;h&&(d=An(d,Ai(h))),_?(F=Z2,z=!1):d.length>=i&&(F=Nc,z=!1,d=new Ml(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:nA(_);h<_;)l[h++]=d;return l}function $S(l,d){var h=[];return Cs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function br(l,d,h,_,x){var F=-1,z=l.length;for(h||(h=eH),x||(x=[]);++F0&&h(Z)?d>1?br(Z,d-1,h,_,x):Ss(x,Z):_||(x[x.length]=Z)}return x}var p5=pw(),zS=pw(!0);function ro(l,d){return l&&p5(l,d,sr)}function f5(l,d){return l&&zS(l,d,sr)}function zf(l,d){return Ts(d,function(h){return Uo(l[h])})}function Pl(l,d){d=xs(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[ao(d[h++])];return h&&h==_?l:n}function HS(l,d,h){var _=d(l);return Tt(l)?_:Ss(_,h(l))}function Xr(l){return l==null?l===n?ze:pt:Dl&&Dl in pn(l)?Kz(l):sH(l)}function h5(l,d){return l>d}function fz(l,d){return l!=null&&an.call(l,d)}function hz(l,d){return l!=null&&d in pn(l)}function gz(l,d,h){return l>=Mr(d,h)&&l=120&&Ce.length>=120)?new Ml(z&&Ce):n}Ce=l[0];var Ie=-1,Ze=Z[0];e:for(;++Ie-1;)Z!==l&&Of.call(Z,ae,1),Of.call(l,ae,1);return l}function QS(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Bo(x)?Of.call(l,x,1):S5(l,x)}}return l}function v5(l,d){return l+Mf(OS()*(d-l+1))}function xz(l,d,h,_){for(var x=-1,F=Jn(Lf((d-l)/(h||1)),0),z=he(F);F--;)z[_?F:++x]=l,l+=h;return z}function _5(l,d){var h="";if(!l||d<1||d>W)return h;do d%2&&(h+=l),d=Mf(d/2),d&&(l+=l);while(d);return h}function xt(l,d){return B5(xw(l,d,di),l+"")}function Iz(l){return MS(Zu(l))}function Rz(l,d){var h=Zu(l);return Qf(h,Fl(d,0,h.length))}function zc(l,d,h,_){if(!Rn(l))return l;d=xs(d,l);for(var x=-1,F=d.length,z=F-1,Z=l;Z!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=he(x);++_>>1,z=l[F];z!==null&&!ki(z)&&(h?z<=d:z=i){var we=d?null:Gz(l);if(we)return wf(we);z=!1,x=Nc,ae=new Ml}else ae=d?[]:Z;e:for(;++_=_?l:ea(l,d,h)}var aw=_$||function(l){return mr.clearTimeout(l)};function ow(l,d){if(d)return l.slice();var h=l.length,_=kS?kS(h):new l.constructor(h);return l.copy(_),_}function k5(l){var d=new l.constructor(l.byteLength);return new Rf(d).set(new Rf(l)),d}function Mz(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function Fz(l){var d=new l.constructor(l.source,Ke.exec(l));return d.lastIndex=l.lastIndex,d}function Pz(l){return Fc?pn(Fc.call(l)):{}}function sw(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function lw(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=ki(l),z=d!==n,Z=d===null,ae=d===d,we=ki(d);if(!Z&&!we&&!F&&l>d||F&&z&&ae&&!Z&&!we||_&&z&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=Z)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function uw(l,d,h,_){for(var x=-1,F=l.length,z=h.length,Z=-1,ae=d.length,we=Jn(F-z,0),Ce=he(ae+we),Ie=!_;++Z1?h[x-1]:n,z=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,z&&Zr(h[0],h[1],z)&&(F=x<3?n:F,x=1),d=pn(d);++_-1?x[F?d[z]:z]:n}}function gw(l){return Po(function(d){var h=d.length,_=h,x=Qi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Zi(o);if(x&&!z&&Xf(F)=="wrapper")var z=new Qi([],!0)}for(_=z?_:h;++_1&&Bt.reverse(),Ce&&aeZ))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Ze=!0,lt=h&y?new Ml:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(vs,`{ /* [wrapped with `+d+`] */ -`)}function eH(l){return Tt(l)||$l(l)||!!(RS&&l&&l[RS])}function Bo(l,d){var h=typeof l;return d=d??W,!!d&&(h=="number"||h!="symbol"&&ar.test(l))&&l>-1&&l%1==0&&l0){if(++d>=$)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Qf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,$w(l,h)});function zw(l){var d=M(l);return d.__chain__=!0,d}function dj(l,d){return d(l),l}function Jf(l,d){return d(l)}var pj=Po(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return d5(F,l)};return d>1||this.__actions__.length||!(_ instanceof Mt)||!Bo(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Jf,args:[x],thisArg:n}),new Qi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function fj(){return zw(this)}function hj(){return new Qi(this.value(),this.__chain__)}function gj(){this.__values__===n&&(this.__values__=tA(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function mj(){return this}function bj(l){for(var d,h=this;h instanceof Bf;){var _=Lw(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function yj(){var l=this.__wrapped__;if(l instanceof Mt){var d=l;return this.__actions__.length&&(d=new Mt(this)),d=d.reverse(),d.__actions__.push({func:Jf,args:[U5],thisArg:n}),new Qi(d,this.__chain__)}return this.thru(U5)}function Ej(){return rw(this.__wrapped__,this.__actions__)}var vj=Vf(function(l,d,h){an.call(l,h)?++l[h]:Mo(l,h,1)});function _j(l,d,h){var _=Tt(l)?mS:dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}function Tj(l,d){var h=Tt(l)?Ts:$S;return h(l,mt(d,3))}var Sj=hw(Mw),wj=hw(Fw);function Aj(l,d){return br(e0(l,d),1)}function Cj(l,d){return br(e0(l,d),H)}function kj(l,d,h){return h=h===n?1:St(h),br(e0(l,d),h)}function Hw(l,d){var h=Tt(l)?Xi:Cs;return h(l,mt(d,3))}function jw(l,d){var h=Tt(l)?WU:US;return h(l,mt(d,3))}var xj=Vf(function(l,d,h){an.call(l,h)?l[h].push(d):Mo(l,h,[d])});function Ij(l,d,h,_){l=ui(l)?l:Zu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Jn(x+h,0)),a0(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Uu(l,d,h)>-1}var Rj=xt(function(l,d,h){var _=-1,x=typeof d=="function",F=ui(l)?he(l.length):[];return Cs(l,function(z){F[++_]=x?wi(d,z,h):Uc(z,d,h)}),F}),Nj=Vf(function(l,d,h){Mo(l,h,d)});function e0(l,d){var h=Tt(l)?An:WS;return h(l,mt(d,3))}function Oj(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),XS(l,d,h))}var Dj=Vf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Lj(l,d,h){var _=Tt(l)?Q2:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,Cs)}function Mj(l,d,h){var _=Tt(l)?qU:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,US)}function Fj(l,d){var h=Tt(l)?Ts:$S;return h(l,r0(mt(d,3)))}function Pj(l){var d=Tt(l)?MS:Iz;return d(l)}function Bj(l,d,h){(h?Zr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?oz:Rz;return _(l,d)}function Uj(l){var d=Tt(l)?sz:Oz;return d(l)}function $j(l){if(l==null)return 0;if(ui(l))return a0(l)?zu(l):l.length;var d=Fr(l);return d==ot||d==ye?l.size:b5(l).length}function zj(l,d,h){var _=Tt(l)?J2:Dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}var Hj=xt(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Zr(l,d[0],d[1])?d=[]:h>2&&Zr(d[0],d[1],d[2])&&(d=[d[0]]),XS(l,br(d,1),[])}),t0=T$||function(){return mr.Date.now()};function jj(l,d){if(typeof d!="function")throw new Zi(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function Gw(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,Fo(l,N,n,n,n,n,d)}function Vw(l,d){var h;if(typeof d!="function")throw new Zi(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var z5=xt(function(l,d,h){var _=T;if(h.length){var x=ws(h,Yu(z5));_|=R}return Fo(l,_,d,h,x)}),Ww=xt(function(l,d,h){var _=T|E;if(h.length){var x=ws(h,Yu(Ww));_|=R}return Fo(d,_,l,h,x)});function qw(l,d,h){d=h?n:d;var _=Fo(l,w,n,n,n,n,n,d);return _.placeholder=qw.placeholder,_}function Kw(l,d,h){d=h?n:d;var _=Fo(l,A,n,n,n,n,n,d);return _.placeholder=Kw.placeholder,_}function Yw(l,d,h){var _,x,F,z,Z,ae,we=0,Ce=!1,Ie=!1,Xe=!0;if(typeof l!="function")throw new Zi(o);d=na(d)||0,Rn(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Jn(na(h.maxWait)||0,d):F,Xe="trailing"in h?!!h.trailing:Xe);function lt(Hn){var Ia=_,zo=x;return _=x=n,we=Hn,z=l.apply(zo,Ia),z}function bt(Hn){return we=Hn,Z=Gc(Nt,d),Ce?lt(Hn):z}function wt(Hn){var Ia=Hn-ae,zo=Hn-we,hA=d-Ia;return Ie?Mr(hA,F-zo):hA}function yt(Hn){var Ia=Hn-ae,zo=Hn-we;return ae===n||Ia>=d||Ia<0||Ie&&zo>=F}function Nt(){var Hn=t0();if(yt(Hn))return Bt(Hn);Z=Gc(Nt,wt(Hn))}function Bt(Hn){return Z=n,Xe&&_?lt(Hn):(_=x=n,z)}function xi(){Z!==n&&aw(Z),we=0,_=ae=x=Z=n}function Qr(){return Z===n?z:Bt(t0())}function Ii(){var Hn=t0(),Ia=yt(Hn);if(_=arguments,x=this,ae=Hn,Ia){if(Z===n)return bt(ae);if(Ie)return aw(Z),Z=Gc(Nt,d),lt(ae)}return Z===n&&(Z=Gc(Nt,d)),z}return Ii.cancel=xi,Ii.flush=Qr,Ii}var Gj=xt(function(l,d){return BS(l,1,d)}),Vj=xt(function(l,d,h){return BS(l,na(d)||0,h)});function Wj(l){return Fo(l,q)}function n0(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Zi(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var z=l.apply(this,_);return h.cache=F.set(x,z)||F,z};return h.cache=new(n0.Cache||Lo),h}n0.Cache=Lo;function r0(l){if(typeof l!="function")throw new Zi(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function qj(l){return Vw(2,l)}var Kj=Lz(function(l,d){d=d.length==1&&Tt(d[0])?An(d[0],Ai(mt())):An(br(d,1),Ai(mt()));var h=d.length;return xt(function(_){for(var x=-1,F=Mr(_.length,h);++x=d}),$l=jS(function(){return arguments}())?jS:function(l){return Mn(l)&&an.call(l,"callee")&&!IS.call(l,"callee")},Tt=he.isArray,uG=cS?Ai(cS):bz;function ui(l){return l!=null&&i0(l.length)&&!Uo(l)}function zn(l){return Mn(l)&&ui(l)}function cG(l){return l===!0||l===!1||Mn(l)&&Xr(l)==te}var Rs=w$||J5,dG=dS?Ai(dS):yz;function pG(l){return Mn(l)&&l.nodeType===1&&!Vc(l)}function fG(l){if(l==null)return!0;if(ui(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Rs(l)||Xu(l)||$l(l)))return!l.length;var d=Fr(l);if(d==ot||d==ye)return!l.size;if(jc(l))return!b5(l).length;for(var h in l)if(an.call(l,h))return!1;return!0}function hG(l,d){return $c(l,d)}function gG(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?$c(l,d,n,h):!!_}function j5(l){if(!Mn(l))return!1;var d=Xr(l);return d==Ze||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Vc(l)}function mG(l){return typeof l=="number"&&NS(l)}function Uo(l){if(!Rn(l))return!1;var d=Xr(l);return d==We||d==dt||d==ke||d==de}function Zw(l){return typeof l=="number"&&l==St(l)}function i0(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Rn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Mn(l){return l!=null&&typeof l=="object"}var Qw=pS?Ai(pS):vz;function bG(l,d){return l===d||m5(l,d,D5(d))}function yG(l,d,h){return h=typeof h=="function"?h:n,m5(l,d,D5(d),h)}function EG(l){return Jw(l)&&l!=+l}function vG(l){if(rH(l))throw new _t(a);return GS(l)}function _G(l){return l===null}function TG(l){return l==null}function Jw(l){return typeof l=="number"||Mn(l)&&Xr(l)==je}function Vc(l){if(!Mn(l)||Xr(l)!=U)return!1;var d=Nf(l);if(d===null)return!0;var h=an.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&kf.call(h)==y$}var G5=fS?Ai(fS):_z;function SG(l){return Zw(l)&&l>=-W&&l<=W}var eA=hS?Ai(hS):Tz;function a0(l){return typeof l=="string"||!Tt(l)&&Mn(l)&&Xr(l)==Te}function ki(l){return typeof l=="symbol"||Mn(l)&&Xr(l)==Le}var Xu=gS?Ai(gS):Sz;function wG(l){return l===n}function AG(l){return Mn(l)&&Fr(l)==Ye}function CG(l){return Mn(l)&&Xr(l)==jt}var kG=Yf(y5),xG=Yf(function(l,d){return l<=d});function tA(l){if(!l)return[];if(ui(l))return a0(l)?Ca(l):li(l);if(Oc&&l[Oc])return o$(l[Oc]());var d=Fr(l),h=d==ot?a5:d==ye?wf:Zu;return h(l)}function $o(l){if(!l)return l===0?l:0;if(l=na(l),l===H||l===-H){var d=l<0?-1:1;return d*se}return l===l?l:0}function St(l){var d=$o(l),h=d%1;return d===d?h?d-h:d:0}function nA(l){return l?Fl(St(l),0,pe):0}function na(l){if(typeof l=="number")return l;if(ki(l))return D;if(Rn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Rn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=_S(l);var h=Be.test(l);return h||un.test(l)?jU(l.slice(2),h?2:8):J.test(l)?D:+l}function rA(l){return io(l,ci(l))}function IG(l){return l?Fl(St(l),-W,W):l===0?l:0}function en(l){return l==null?"":Ci(l)}var RG=qu(function(l,d){if(jc(d)||ui(d)){io(d,sr(d),l);return}for(var h in d)an.call(d,h)&&Pc(l,h,d[h])}),iA=qu(function(l,d){io(d,ci(d),l)}),o0=qu(function(l,d,h,_){io(d,ci(d),l,_)}),NG=qu(function(l,d,h,_){io(d,sr(d),l,_)}),OG=Po(d5);function DG(l,d){var h=Wu(l);return d==null?h:FS(h,d)}var LG=xt(function(l,d){l=pn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Zr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],z=ci(F),Z=-1,ae=z.length;++Z1),F}),io(l,N5(l),h),_&&(h=Ji(h,f|m|g,Vz));for(var x=d.length;x--;)S5(h,d[x]);return h});function QG(l,d){return oA(l,r0(mt(d)))}var JG=Po(function(l,d){return l==null?{}:Cz(l,d)});function oA(l,d){if(l==null)return{};var h=An(N5(l),function(_){return[_]});return d=mt(d),ZS(l,h,function(_,x){return d(_,x[0])})}function eV(l,d,h){d=xs(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=OS();return Mr(l+x*(d-l+HU("1e-"+((x+"").length-1))),d)}return v5(l,d)}var dV=Ku(function(l,d,h){return d=d.toLowerCase(),l+(h?uA(d):d)});function uA(l){return q5(en(l).toLowerCase())}function cA(l){return l=en(l),l&&l.replace(or,t$).replace(OU,"")}function pV(l,d,h){l=en(l),d=Ci(d);var _=l.length;h=h===n?_:Fl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function fV(l){return l=en(l),l&&Qt.test(l)?l.replace(Je,n$):l}function hV(l){return l=en(l),l&&si.test(l)?l.replace(Aa,"\\$&"):l}var gV=Ku(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),mV=Ku(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),bV=fw("toLowerCase");function yV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Kf(Mf(x),h)+l+Kf(Lf(x),h)}function EV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;return d&&_>>0,h?(l=en(l),l&&(typeof d=="string"||d!=null&&!G5(d))&&(d=Ci(d),!d&&$u(l))?Is(Ca(l),0,h):l.split(d,h)):[]}var CV=Ku(function(l,d,h){return l+(h?" ":"")+q5(d)});function kV(l,d,h){return l=en(l),h=h==null?0:Fl(St(h),0,l.length),d=Ci(d),l.slice(h,h+d.length)==d}function xV(l,d,h){var _=M.templateSettings;h&&Zr(l,d,h)&&(d=n),l=en(l),d=o0({},d,_,vw);var x=o0({},d.imports,_.imports,vw),F=sr(x),z=i5(x,F),Z,ae,we=0,Ce=d.interpolate||Zn,Ie="__p += '",Xe=o5((d.escape||Zn).source+"|"+Ce.source+"|"+(Ce===Xt?Nl:Zn).source+"|"+(d.evaluate||Zn).source+"|$","g"),lt="//# sourceURL="+(an.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++PU+"]")+` -`;l.replace(Xe,function(yt,Nt,Bt,xi,Qr,Ii){return Bt||(Bt=xi),Ie+=l.slice(we,Ii).replace(Oo,r$),Nt&&(Z=!0,Ie+=`' + +`)}function eH(l){return Tt(l)||$l(l)||!!(RS&&l&&l[RS])}function Bo(l,d){var h=typeof l;return d=d??W,!!d&&(h=="number"||h!="symbol"&&ar.test(l))&&l>-1&&l%1==0&&l0){if(++d>=$)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Qf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,$w(l,h)});function zw(l){var d=M(l);return d.__chain__=!0,d}function dj(l,d){return d(l),l}function Jf(l,d){return d(l)}var pj=Po(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return d5(F,l)};return d>1||this.__actions__.length||!(_ instanceof Mt)||!Bo(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Jf,args:[x],thisArg:n}),new Qi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function fj(){return zw(this)}function hj(){return new Qi(this.value(),this.__chain__)}function gj(){this.__values__===n&&(this.__values__=tA(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function mj(){return this}function bj(l){for(var d,h=this;h instanceof Bf;){var _=Lw(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function yj(){var l=this.__wrapped__;if(l instanceof Mt){var d=l;return this.__actions__.length&&(d=new Mt(this)),d=d.reverse(),d.__actions__.push({func:Jf,args:[U5],thisArg:n}),new Qi(d,this.__chain__)}return this.thru(U5)}function Ej(){return rw(this.__wrapped__,this.__actions__)}var vj=Vf(function(l,d,h){an.call(l,h)?++l[h]:Mo(l,h,1)});function _j(l,d,h){var _=Tt(l)?mS:dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}function Tj(l,d){var h=Tt(l)?Ts:$S;return h(l,mt(d,3))}var Sj=hw(Mw),wj=hw(Fw);function Aj(l,d){return br(e0(l,d),1)}function Cj(l,d){return br(e0(l,d),H)}function kj(l,d,h){return h=h===n?1:St(h),br(e0(l,d),h)}function Hw(l,d){var h=Tt(l)?Xi:Cs;return h(l,mt(d,3))}function jw(l,d){var h=Tt(l)?WU:US;return h(l,mt(d,3))}var xj=Vf(function(l,d,h){an.call(l,h)?l[h].push(d):Mo(l,h,[d])});function Ij(l,d,h,_){l=ui(l)?l:Zu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Jn(x+h,0)),a0(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Uu(l,d,h)>-1}var Rj=xt(function(l,d,h){var _=-1,x=typeof d=="function",F=ui(l)?he(l.length):[];return Cs(l,function(z){F[++_]=x?wi(d,z,h):Uc(z,d,h)}),F}),Nj=Vf(function(l,d,h){Mo(l,h,d)});function e0(l,d){var h=Tt(l)?An:WS;return h(l,mt(d,3))}function Oj(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),XS(l,d,h))}var Dj=Vf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Lj(l,d,h){var _=Tt(l)?Q2:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,Cs)}function Mj(l,d,h){var _=Tt(l)?qU:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,US)}function Fj(l,d){var h=Tt(l)?Ts:$S;return h(l,r0(mt(d,3)))}function Pj(l){var d=Tt(l)?MS:Iz;return d(l)}function Bj(l,d,h){(h?Zr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?oz:Rz;return _(l,d)}function Uj(l){var d=Tt(l)?sz:Oz;return d(l)}function $j(l){if(l==null)return 0;if(ui(l))return a0(l)?zu(l):l.length;var d=Fr(l);return d==ot||d==ye?l.size:b5(l).length}function zj(l,d,h){var _=Tt(l)?J2:Dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}var Hj=xt(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Zr(l,d[0],d[1])?d=[]:h>2&&Zr(d[0],d[1],d[2])&&(d=[d[0]]),XS(l,br(d,1),[])}),t0=T$||function(){return mr.Date.now()};function jj(l,d){if(typeof d!="function")throw new Zi(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function Gw(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,Fo(l,N,n,n,n,n,d)}function Vw(l,d){var h;if(typeof d!="function")throw new Zi(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var z5=xt(function(l,d,h){var _=T;if(h.length){var x=ws(h,Yu(z5));_|=R}return Fo(l,_,d,h,x)}),Ww=xt(function(l,d,h){var _=T|E;if(h.length){var x=ws(h,Yu(Ww));_|=R}return Fo(d,_,l,h,x)});function qw(l,d,h){d=h?n:d;var _=Fo(l,w,n,n,n,n,n,d);return _.placeholder=qw.placeholder,_}function Kw(l,d,h){d=h?n:d;var _=Fo(l,A,n,n,n,n,n,d);return _.placeholder=Kw.placeholder,_}function Yw(l,d,h){var _,x,F,z,Z,ae,we=0,Ce=!1,Ie=!1,Ze=!0;if(typeof l!="function")throw new Zi(o);d=na(d)||0,Rn(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Jn(na(h.maxWait)||0,d):F,Ze="trailing"in h?!!h.trailing:Ze);function lt(Hn){var Ia=_,zo=x;return _=x=n,we=Hn,z=l.apply(zo,Ia),z}function bt(Hn){return we=Hn,Z=Gc(Nt,d),Ce?lt(Hn):z}function wt(Hn){var Ia=Hn-ae,zo=Hn-we,hA=d-Ia;return Ie?Mr(hA,F-zo):hA}function yt(Hn){var Ia=Hn-ae,zo=Hn-we;return ae===n||Ia>=d||Ia<0||Ie&&zo>=F}function Nt(){var Hn=t0();if(yt(Hn))return Bt(Hn);Z=Gc(Nt,wt(Hn))}function Bt(Hn){return Z=n,Ze&&_?lt(Hn):(_=x=n,z)}function xi(){Z!==n&&aw(Z),we=0,_=ae=x=Z=n}function Qr(){return Z===n?z:Bt(t0())}function Ii(){var Hn=t0(),Ia=yt(Hn);if(_=arguments,x=this,ae=Hn,Ia){if(Z===n)return bt(ae);if(Ie)return aw(Z),Z=Gc(Nt,d),lt(ae)}return Z===n&&(Z=Gc(Nt,d)),z}return Ii.cancel=xi,Ii.flush=Qr,Ii}var Gj=xt(function(l,d){return BS(l,1,d)}),Vj=xt(function(l,d,h){return BS(l,na(d)||0,h)});function Wj(l){return Fo(l,q)}function n0(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Zi(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var z=l.apply(this,_);return h.cache=F.set(x,z)||F,z};return h.cache=new(n0.Cache||Lo),h}n0.Cache=Lo;function r0(l){if(typeof l!="function")throw new Zi(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function qj(l){return Vw(2,l)}var Kj=Lz(function(l,d){d=d.length==1&&Tt(d[0])?An(d[0],Ai(mt())):An(br(d,1),Ai(mt()));var h=d.length;return xt(function(_){for(var x=-1,F=Mr(_.length,h);++x=d}),$l=jS(function(){return arguments}())?jS:function(l){return Mn(l)&&an.call(l,"callee")&&!IS.call(l,"callee")},Tt=he.isArray,uG=cS?Ai(cS):bz;function ui(l){return l!=null&&i0(l.length)&&!Uo(l)}function zn(l){return Mn(l)&&ui(l)}function cG(l){return l===!0||l===!1||Mn(l)&&Xr(l)==te}var Rs=w$||J5,dG=dS?Ai(dS):yz;function pG(l){return Mn(l)&&l.nodeType===1&&!Vc(l)}function fG(l){if(l==null)return!0;if(ui(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Rs(l)||Xu(l)||$l(l)))return!l.length;var d=Fr(l);if(d==ot||d==ye)return!l.size;if(jc(l))return!b5(l).length;for(var h in l)if(an.call(l,h))return!1;return!0}function hG(l,d){return $c(l,d)}function gG(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?$c(l,d,n,h):!!_}function j5(l){if(!Mn(l))return!1;var d=Xr(l);return d==Ye||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Vc(l)}function mG(l){return typeof l=="number"&&NS(l)}function Uo(l){if(!Rn(l))return!1;var d=Xr(l);return d==We||d==dt||d==ke||d==de}function Zw(l){return typeof l=="number"&&l==St(l)}function i0(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Rn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Mn(l){return l!=null&&typeof l=="object"}var Qw=pS?Ai(pS):vz;function bG(l,d){return l===d||m5(l,d,D5(d))}function yG(l,d,h){return h=typeof h=="function"?h:n,m5(l,d,D5(d),h)}function EG(l){return Jw(l)&&l!=+l}function vG(l){if(rH(l))throw new _t(a);return GS(l)}function _G(l){return l===null}function TG(l){return l==null}function Jw(l){return typeof l=="number"||Mn(l)&&Xr(l)==je}function Vc(l){if(!Mn(l)||Xr(l)!=U)return!1;var d=Nf(l);if(d===null)return!0;var h=an.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&kf.call(h)==y$}var G5=fS?Ai(fS):_z;function SG(l){return Zw(l)&&l>=-W&&l<=W}var eA=hS?Ai(hS):Tz;function a0(l){return typeof l=="string"||!Tt(l)&&Mn(l)&&Xr(l)==Te}function ki(l){return typeof l=="symbol"||Mn(l)&&Xr(l)==Le}var Xu=gS?Ai(gS):Sz;function wG(l){return l===n}function AG(l){return Mn(l)&&Fr(l)==Xe}function CG(l){return Mn(l)&&Xr(l)==jt}var kG=Yf(y5),xG=Yf(function(l,d){return l<=d});function tA(l){if(!l)return[];if(ui(l))return a0(l)?Ca(l):li(l);if(Oc&&l[Oc])return o$(l[Oc]());var d=Fr(l),h=d==ot?a5:d==ye?wf:Zu;return h(l)}function $o(l){if(!l)return l===0?l:0;if(l=na(l),l===H||l===-H){var d=l<0?-1:1;return d*se}return l===l?l:0}function St(l){var d=$o(l),h=d%1;return d===d?h?d-h:d:0}function nA(l){return l?Fl(St(l),0,pe):0}function na(l){if(typeof l=="number")return l;if(ki(l))return D;if(Rn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Rn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=_S(l);var h=Be.test(l);return h||un.test(l)?jU(l.slice(2),h?2:8):J.test(l)?D:+l}function rA(l){return io(l,ci(l))}function IG(l){return l?Fl(St(l),-W,W):l===0?l:0}function en(l){return l==null?"":Ci(l)}var RG=qu(function(l,d){if(jc(d)||ui(d)){io(d,sr(d),l);return}for(var h in d)an.call(d,h)&&Pc(l,h,d[h])}),iA=qu(function(l,d){io(d,ci(d),l)}),o0=qu(function(l,d,h,_){io(d,ci(d),l,_)}),NG=qu(function(l,d,h,_){io(d,sr(d),l,_)}),OG=Po(d5);function DG(l,d){var h=Wu(l);return d==null?h:FS(h,d)}var LG=xt(function(l,d){l=pn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Zr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],z=ci(F),Z=-1,ae=z.length;++Z1),F}),io(l,N5(l),h),_&&(h=Ji(h,f|m|g,Vz));for(var x=d.length;x--;)S5(h,d[x]);return h});function QG(l,d){return oA(l,r0(mt(d)))}var JG=Po(function(l,d){return l==null?{}:Cz(l,d)});function oA(l,d){if(l==null)return{};var h=An(N5(l),function(_){return[_]});return d=mt(d),ZS(l,h,function(_,x){return d(_,x[0])})}function eV(l,d,h){d=xs(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=OS();return Mr(l+x*(d-l+HU("1e-"+((x+"").length-1))),d)}return v5(l,d)}var dV=Ku(function(l,d,h){return d=d.toLowerCase(),l+(h?uA(d):d)});function uA(l){return q5(en(l).toLowerCase())}function cA(l){return l=en(l),l&&l.replace(or,t$).replace(OU,"")}function pV(l,d,h){l=en(l),d=Ci(d);var _=l.length;h=h===n?_:Fl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function fV(l){return l=en(l),l&&Qt.test(l)?l.replace(Je,n$):l}function hV(l){return l=en(l),l&&si.test(l)?l.replace(Aa,"\\$&"):l}var gV=Ku(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),mV=Ku(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),bV=fw("toLowerCase");function yV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Kf(Mf(x),h)+l+Kf(Lf(x),h)}function EV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;return d&&_>>0,h?(l=en(l),l&&(typeof d=="string"||d!=null&&!G5(d))&&(d=Ci(d),!d&&$u(l))?Is(Ca(l),0,h):l.split(d,h)):[]}var CV=Ku(function(l,d,h){return l+(h?" ":"")+q5(d)});function kV(l,d,h){return l=en(l),h=h==null?0:Fl(St(h),0,l.length),d=Ci(d),l.slice(h,h+d.length)==d}function xV(l,d,h){var _=M.templateSettings;h&&Zr(l,d,h)&&(d=n),l=en(l),d=o0({},d,_,vw);var x=o0({},d.imports,_.imports,vw),F=sr(x),z=i5(x,F),Z,ae,we=0,Ce=d.interpolate||Zn,Ie="__p += '",Ze=o5((d.escape||Zn).source+"|"+Ce.source+"|"+(Ce===Xt?Nl:Zn).source+"|"+(d.evaluate||Zn).source+"|$","g"),lt="//# sourceURL="+(an.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++PU+"]")+` +`;l.replace(Ze,function(yt,Nt,Bt,xi,Qr,Ii){return Bt||(Bt=xi),Ie+=l.slice(we,Ii).replace(Oo,r$),Nt&&(Z=!0,Ie+=`' + __e(`+Nt+`) + '`),Qr&&(ae=!0,Ie+=`'; `+Qr+`; @@ -1151,7 +1151,7 @@ __p += '`),Bt&&(Ie+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Ie+`return __p -}`;var wt=pA(function(){return Jt(F,lt+"return "+Ie).apply(n,z)});if(wt.source=Ie,j5(wt))throw wt;return wt}function IV(l){return en(l).toLowerCase()}function RV(l){return en(l).toUpperCase()}function NV(l,d,h){if(l=en(l),l&&(h||d===n))return _S(l);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=Ca(d),F=TS(_,x),z=SS(_,x)+1;return Is(_,F,z).join("")}function OV(l,d,h){if(l=en(l),l&&(h||d===n))return l.slice(0,AS(l)+1);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=SS(_,Ca(d))+1;return Is(_,0,x).join("")}function DV(l,d,h){if(l=en(l),l&&(h||d===n))return l.replace(Or,"");if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=TS(_,Ca(d));return Is(_,x).join("")}function LV(l,d){var h=P,_=Q;if(Rn(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?Ci(d.omission):_}l=en(l);var F=l.length;if($u(l)){var z=Ca(l);F=z.length}if(h>=F)return l;var Z=h-zu(_);if(Z<1)return _;var ae=z?Is(z,0,Z).join(""):l.slice(0,Z);if(x===n)return ae+_;if(z&&(Z+=ae.length-Z),G5(x)){if(l.slice(Z).search(x)){var we,Ce=ae;for(x.global||(x=o5(x.source,en(Ke.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?Z:Ie)}}else if(l.indexOf(Ci(x),Z)!=Z){var Xe=ae.lastIndexOf(x);Xe>-1&&(ae=ae.slice(0,Xe))}return ae+_}function MV(l){return l=en(l),l&&Rt.test(l)?l.replace(rt,c$):l}var FV=Ku(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),q5=fw("toUpperCase");function dA(l,d,h){return l=en(l),d=h?n:d,d===n?a$(l)?f$(l):XU(l):l.match(d)||[]}var pA=xt(function(l,d){try{return wi(l,n,d)}catch(h){return j5(h)?h:new _t(h)}}),PV=Po(function(l,d){return Xi(d,function(h){h=ao(h),Mo(l,h,z5(l[h],l))}),l});function BV(l){var d=l==null?0:l.length,h=mt();return l=d?An(l,function(_){if(typeof _[1]!="function")throw new Zi(o);return[h(_[0]),_[1]]}):[],xt(function(_){for(var x=-1;++xW)return[];var h=pe,_=Mr(l,pe);d=mt(d),l-=pe;for(var x=r5(_,d);++h0||d<0)?new Mt(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Mt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Mt.prototype.toArray=function(){return this.take(pe)},ro(Mt.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var z=this.__wrapped__,Z=_?[1]:arguments,ae=z instanceof Mt,we=Z[0],Ce=ae||Tt(z),Ie=function(Nt){var Bt=x.apply(M,Ss([Nt],Z));return _&&Xe?Bt[0]:Bt};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Xe=this.__chain__,lt=!!this.__actions__.length,bt=F&&!Xe,wt=ae&&!lt;if(!F&&Ce){z=wt?z:new Mt(this);var yt=l.apply(z,Z);return yt.__actions__.push({func:Jf,args:[Ie],thisArg:n}),new Qi(yt,Xe)}return bt&&wt?l.apply(this,Z):(yt=this.thru(Ie),bt?_?yt.value()[0]:yt.value():yt)})}),Xi(["pop","push","shift","sort","splice","unshift"],function(l){var d=Af[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(z){return d.apply(Tt(z)?z:[],x)})}}),ro(Mt.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";an.call(Vu,_)||(Vu[_]=[]),Vu[_].push({name:d,func:h})}}),Vu[Wf(n,E).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=M$,Mt.prototype.reverse=F$,Mt.prototype.value=P$,M.prototype.at=pj,M.prototype.chain=fj,M.prototype.commit=hj,M.prototype.next=gj,M.prototype.plant=bj,M.prototype.reverse=yj,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Ej,M.prototype.first=M.prototype.head,Oc&&(M.prototype[Oc]=mj),M},Hu=h$();Ol?((Ol.exports=Hu)._=Hu,Y2._=Hu):mr._=Hu}).call(Jl)})(sm,sm.exports);var v4e=sm.exports;const el=Vi(v4e);function uo(e,t){const n=el.cloneDeep(e);for(const r in t)typeof t[r]=="function"?el.updateWith(n,r,t[r]):el.updateWith(n,r,i=>t[r]);return n}const Rc={};Rc["Requires API Key"]="#FF0000";Rc.Local="#00bb00";Rc["Open-Source"]="#0033FF";Rc.Free="#ffff00";const _4e={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},T4e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},S4e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},w4e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},A4e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},C4e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Da=[_4e,T4e,w4e,S4e,A4e,C4e],SN={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},sE={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},lE={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},uE={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},rU={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},cE={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},iU={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},k4e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},o1=[sE,lE,uE,rU,iU,cE,k4e],wN={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},AN={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},x4e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function CN(e){return x4e[e]||e}const aU={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[wN,AN],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Da]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Da],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: +}`;var wt=pA(function(){return Jt(F,lt+"return "+Ie).apply(n,z)});if(wt.source=Ie,j5(wt))throw wt;return wt}function IV(l){return en(l).toLowerCase()}function RV(l){return en(l).toUpperCase()}function NV(l,d,h){if(l=en(l),l&&(h||d===n))return _S(l);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=Ca(d),F=TS(_,x),z=SS(_,x)+1;return Is(_,F,z).join("")}function OV(l,d,h){if(l=en(l),l&&(h||d===n))return l.slice(0,AS(l)+1);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=SS(_,Ca(d))+1;return Is(_,0,x).join("")}function DV(l,d,h){if(l=en(l),l&&(h||d===n))return l.replace(Or,"");if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=TS(_,Ca(d));return Is(_,x).join("")}function LV(l,d){var h=P,_=Q;if(Rn(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?Ci(d.omission):_}l=en(l);var F=l.length;if($u(l)){var z=Ca(l);F=z.length}if(h>=F)return l;var Z=h-zu(_);if(Z<1)return _;var ae=z?Is(z,0,Z).join(""):l.slice(0,Z);if(x===n)return ae+_;if(z&&(Z+=ae.length-Z),G5(x)){if(l.slice(Z).search(x)){var we,Ce=ae;for(x.global||(x=o5(x.source,en(Ke.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?Z:Ie)}}else if(l.indexOf(Ci(x),Z)!=Z){var Ze=ae.lastIndexOf(x);Ze>-1&&(ae=ae.slice(0,Ze))}return ae+_}function MV(l){return l=en(l),l&&Rt.test(l)?l.replace(rt,c$):l}var FV=Ku(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),q5=fw("toUpperCase");function dA(l,d,h){return l=en(l),d=h?n:d,d===n?a$(l)?f$(l):XU(l):l.match(d)||[]}var pA=xt(function(l,d){try{return wi(l,n,d)}catch(h){return j5(h)?h:new _t(h)}}),PV=Po(function(l,d){return Xi(d,function(h){h=ao(h),Mo(l,h,z5(l[h],l))}),l});function BV(l){var d=l==null?0:l.length,h=mt();return l=d?An(l,function(_){if(typeof _[1]!="function")throw new Zi(o);return[h(_[0]),_[1]]}):[],xt(function(_){for(var x=-1;++xW)return[];var h=pe,_=Mr(l,pe);d=mt(d),l-=pe;for(var x=r5(_,d);++h0||d<0)?new Mt(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Mt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Mt.prototype.toArray=function(){return this.take(pe)},ro(Mt.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var z=this.__wrapped__,Z=_?[1]:arguments,ae=z instanceof Mt,we=Z[0],Ce=ae||Tt(z),Ie=function(Nt){var Bt=x.apply(M,Ss([Nt],Z));return _&&Ze?Bt[0]:Bt};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Ze=this.__chain__,lt=!!this.__actions__.length,bt=F&&!Ze,wt=ae&&!lt;if(!F&&Ce){z=wt?z:new Mt(this);var yt=l.apply(z,Z);return yt.__actions__.push({func:Jf,args:[Ie],thisArg:n}),new Qi(yt,Ze)}return bt&&wt?l.apply(this,Z):(yt=this.thru(Ie),bt?_?yt.value()[0]:yt.value():yt)})}),Xi(["pop","push","shift","sort","splice","unshift"],function(l){var d=Af[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(z){return d.apply(Tt(z)?z:[],x)})}}),ro(Mt.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";an.call(Vu,_)||(Vu[_]=[]),Vu[_].push({name:d,func:h})}}),Vu[Wf(n,E).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=M$,Mt.prototype.reverse=F$,Mt.prototype.value=P$,M.prototype.at=pj,M.prototype.chain=fj,M.prototype.commit=hj,M.prototype.next=gj,M.prototype.plant=bj,M.prototype.reverse=yj,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Ej,M.prototype.first=M.prototype.head,Oc&&(M.prototype[Oc]=mj),M},Hu=h$();Ol?((Ol.exports=Hu)._=Hu,Y2._=Hu):mr._=Hu}).call(Jl)})(sm,sm.exports);var v4e=sm.exports;const el=Vi(v4e);function uo(e,t){const n=el.cloneDeep(e);for(const r in t)typeof t[r]=="function"?el.updateWith(n,r,t[r]):el.updateWith(n,r,i=>t[r]);return n}const Rc={};Rc["Requires API Key"]="#FF0000";Rc.Local="#00bb00";Rc["Open-Source"]="#0033FF";Rc.Free="#ffff00";const _4e={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},T4e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},S4e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},w4e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},A4e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},C4e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Da=[_4e,T4e,w4e,S4e,A4e,C4e],SN={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},sE={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},lE={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},uE={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},rU={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},cE={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},iU={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},k4e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},o1=[sE,lE,uE,rU,iU,cE,k4e],wN={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},AN={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},x4e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function CN(e){return x4e[e]||e}const aU={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[wN,AN],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Da]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Da],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: 1. Obtain an API key from [here](https://together.ai) 2. Paste below 3. Select a model preset`,tags:["Requires API Key","Open-Source"],params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your TogetherAI API key",required:!0},...Da],packages:[uo(lE,{"dimensions[0].options":e=>el.mapValues(e,t=>el.assign({},t,{model:"togethercomputer/"+t.model.replace("llama2","llama-2").replace(":","-")}))}),uo(sE,{"dimensions[0].options":e=>el.mapValues(e,t=>el.assign({},t,{model:"togethercomputer/"+t.model.replace("codellama","CodeLlama").replace(":","-").replace("instruct","Instruct")}))}),uo(uE,{"params.model":"WizardLM/WizardCoder-15B-V1.0","params.title":"WizardCoder-15b","dimensions[0].options":{"15b":{model:"WizardLM/WizardCoder-15B-V1.0",title:"WizardCoder-15b"},"34b (Python)":{model:"WizardLM/WizardCoder-Python-34B-V1.0",title:"WizardCoder-34b-Python"}}}),uo(rU,{"params.model":"Phind/Phind-CodeLlama-34B-Python-v1"}),uo(cE,{"params.model":"mistralai/Mistral-7B-Instruct-v0.1"})].map(e=>(e.params.context_length=4096,e))},lmstudio:{title:"LM Studio",class:"GGML",description:"One of the fastest ways to get started with local models on Mac or Windows",longDescription:`LMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started: diff --git a/extensions/vscode/gui/assets/index.js b/extensions/vscode/gui/assets/index.js index ed209b663..bcc6ed6e2 100644 --- a/extensions/vscode/gui/assets/index.js +++ b/extensions/vscode/gui/assets/index.js @@ -45,7 +45,7 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var c9=Symbol.for("react.element"),d9=Symbol.for("react.portal"),wm=Symbol.for("react.fragment"),Am=Symbol.for("react.strict_mode"),Cm=Symbol.for("react.profiler"),km=Symbol.for("react.provider"),xm=Symbol.for("react.context"),YK=Symbol.for("react.server_context"),Im=Symbol.for("react.forward_ref"),Rm=Symbol.for("react.suspense"),Nm=Symbol.for("react.suspense_list"),Om=Symbol.for("react.memo"),Dm=Symbol.for("react.lazy"),XK=Symbol.for("react.offscreen"),qD;qD=Symbol.for("react.module.reference");function _a(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case c9:switch(e=e.type,e){case wm:case Cm:case Am:case Rm:case Nm:return e;default:switch(e=e&&e.$$typeof,e){case YK:case xm:case Im:case Dm:case Om:case km:return e;default:return t}}case d9:return t}}}sn.ContextConsumer=xm;sn.ContextProvider=km;sn.Element=c9;sn.ForwardRef=Im;sn.Fragment=wm;sn.Lazy=Dm;sn.Memo=Om;sn.Portal=d9;sn.Profiler=Cm;sn.StrictMode=Am;sn.Suspense=Rm;sn.SuspenseList=Nm;sn.isAsyncMode=function(){return!1};sn.isConcurrentMode=function(){return!1};sn.isContextConsumer=function(e){return _a(e)===xm};sn.isContextProvider=function(e){return _a(e)===km};sn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===c9};sn.isForwardRef=function(e){return _a(e)===Im};sn.isFragment=function(e){return _a(e)===wm};sn.isLazy=function(e){return _a(e)===Dm};sn.isMemo=function(e){return _a(e)===Om};sn.isPortal=function(e){return _a(e)===d9};sn.isProfiler=function(e){return _a(e)===Cm};sn.isStrictMode=function(e){return _a(e)===Am};sn.isSuspense=function(e){return _a(e)===Rm};sn.isSuspenseList=function(e){return _a(e)===Nm};sn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wm||e===Cm||e===Am||e===Rm||e===Nm||e===XK||typeof e=="object"&&e!==null&&(e.$$typeof===Dm||e.$$typeof===Om||e.$$typeof===km||e.$$typeof===xm||e.$$typeof===Im||e.$$typeof===qD||e.getModuleId!==void 0)};sn.typeOf=_a;WD.exports=sn;var p9=WD.exports;const ZK=Vi(p9);function QK(e){function t(le,L,ie,Se,X){for(var ke=0,te=0,Me=0,Re=0,Ze,We,dt=0,ot=0,je,pt=je=Ze=0,U=0,re=0,de=0,xe=0,ye=ie.length,Te=ye-1,Le,ze="",Ye="",jt="",ue="",Ee;UZe)&&(xe=(ze=ze.replace(" ",":")).length),0Se&&(Se=(L=L.trim()).charCodeAt(0)),Se){case 38:return L.replace(E,"$1"+le.trim());case 58:return le.trim()+L.replace(E,"$1"+le.trim());default:if(0<1*ie&&0te.charCodeAt(8))break;case 115:X=X.replace(te,"-webkit-"+te)+";"+X;break;case 207:case 102:X=X.replace(te,"-webkit-"+(102ie.charCodeAt(0)&&(ie=ie.trim()),pe=ie,ie=[pe],0Ye)&&(xe=(ze=ze.replace(" ",":")).length),0Se&&(Se=(L=L.trim()).charCodeAt(0)),Se){case 38:return L.replace(E,"$1"+le.trim());case 58:return le.trim()+L.replace(E,"$1"+le.trim());default:if(0<1*ie&&0te.charCodeAt(8))break;case 115:X=X.replace(te,"-webkit-"+te)+";"+X;break;case 207:case 102:X=X.replace(te,"-webkit-"+(102ie.charCodeAt(0)&&(ie=ie.trim()),pe=ie,ie=[pe],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var yY=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Bp(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=Pd&&(Pd=t+1),Ch.set(e,t),wg.set(t,e)},_Y="style["+rc+'][data-styled-version="5.3.11"]',TY=new RegExp("^"+rc+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),SY=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;c--){var p=u[c];if(p&&p.nodeType===1&&p.hasAttribute(rc))return p}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(rc,"active"),r.setAttribute("data-styled-version","5.3.11");var o=AY();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},CY=function(){function e(n){var r=this.element=QD(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=m+",")}),a+=""+c+p+'{content:"'+f+`"}/*!sc*/ -`}}}return a}(this)},e}(),RY=/(a)(d)/gi,NC=function(e){return String.fromCharCode(e+(e>25?39:97))};function qb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=NC(t%52)+n;return(NC(t%52)+n).replace(RY,"$1-$2")}var A1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eL=function(e){return A1(5381,e)};function NY(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=A1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var E=r(f,"."+T,void 0,i);n.insertRules(i,T,E)}a.push(T)}}return a.join(" ")},e}(),LY=/^\s*\/\/.*$/gm,MY=[":","[",".","#"];function FY(e){var t,n,r,i,a=e===void 0?ul:e,o=a.options,s=o===void 0?ul:o,u=a.plugins,c=u===void 0?Sg:u,p=new QK(s),f=[],m=function(y){function T(E){if(E)try{y(E+"}")}catch{}}return function(E,v,w,A,R,k,N,B,q,P){switch(E){case 1:if(q===0&&v.charCodeAt(0)===64)return y(v+";"),"";break;case 2:if(B===0)return v+"/*|*/";break;case 3:switch(B){case 102:case 112:return y(w[0]+v),"";default:return v+(P===0?"/*|*/":"")}case-2:v.split("/*|*/}").forEach(T)}}}(function(y){f.push(y)}),g=function(y,T,E){return T===0&&MY.indexOf(E[n.length])!==-1||E.match(i)?y:"."+t};function b(y,T,E,v){v===void 0&&(v="&");var w=y.replace(LY,""),A=T&&E?E+" "+T+" { "+w+" }":w;return t=v,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(E||!T?"":T,A)}return p.use([].concat(c,[function(y,T,E){y===2&&E.length&&E[0].lastIndexOf(n)>0&&(E[0]=E[0].replace(r,g))},m,function(y){if(y===-2){var T=f;return f=[],T}}])),b.hash=c.length?c.reduce(function(y,T){return T.name||Bp(15),A1(y,T.name)},5381).toString():"",b}var tL=st.createContext();tL.Consumer;var nL=st.createContext(),PY=(nL.Consumer,new JD),Kb=FY();function BY(){return C.useContext(tL)||PY}function UY(){return C.useContext(nL)||Kb}var rL=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Kb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Bp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Kb),this.name+t.hash},e}(),$Y=/([A-Z])/,zY=/([A-Z])/g,HY=/^ms-/,jY=function(e){return"-"+e.toLowerCase()};function OC(e){return $Y.test(e)?e.replace(zY,jY).replace(HY,"-ms-"):e}var DC=function(e){return e==null||e===!1||e===""};function ic(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,WY=/(^-|-$)/g;function C3(e){return e.replace(VY,"-").replace(WY,"")}var aL=function(e){return qb(eL(e)>>>0)};function A0(e){return typeof e=="string"&&!0}var Yb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},qY=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function KY(e,t,n){var r=e[n];Yb(t)&&Yb(r)?oL(r,t):e[n]=t}function oL(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),R=w&&w+"-"+(A0(v)?v:C3(IC(v)));return lL(v,is({},A,{attrs:m,componentId:R}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(v){this._foldedDefaultProps=r?oL({},e.defaultProps,v):v}}),Object.defineProperty(b,"toString",{value:function(){return"."+b.styledComponentId}}),i&&mY(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Xb=function(e){return function t(n,r,i){if(i===void 0&&(i=ul),!p9.isValidElementType(r))return Bp(1,String(r));var a=function(){return n(r,i,iL.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,is({},i,{},o))},a.attrs=function(o){return t(n,r,is({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(lL,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Xb[e]=Xb(e)});function Gm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r25?39:97))};function qb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=NC(t%52)+n;return(NC(t%52)+n).replace(RY,"$1-$2")}var A1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eL=function(e){return A1(5381,e)};function NY(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=A1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var E=r(f,"."+T,void 0,i);n.insertRules(i,T,E)}a.push(T)}}return a.join(" ")},e}(),LY=/^\s*\/\/.*$/gm,MY=[":","[",".","#"];function FY(e){var t,n,r,i,a=e===void 0?ul:e,o=a.options,s=o===void 0?ul:o,u=a.plugins,c=u===void 0?Sg:u,p=new QK(s),f=[],m=function(y){function T(E){if(E)try{y(E+"}")}catch{}}return function(E,v,w,A,R,k,N,B,q,P){switch(E){case 1:if(q===0&&v.charCodeAt(0)===64)return y(v+";"),"";break;case 2:if(B===0)return v+"/*|*/";break;case 3:switch(B){case 102:case 112:return y(w[0]+v),"";default:return v+(P===0?"/*|*/":"")}case-2:v.split("/*|*/}").forEach(T)}}}(function(y){f.push(y)}),g=function(y,T,E){return T===0&&MY.indexOf(E[n.length])!==-1||E.match(i)?y:"."+t};function b(y,T,E,v){v===void 0&&(v="&");var w=y.replace(LY,""),A=T&&E?E+" "+T+" { "+w+" }":w;return t=v,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(E||!T?"":T,A)}return p.use([].concat(c,[function(y,T,E){y===2&&E.length&&E[0].lastIndexOf(n)>0&&(E[0]=E[0].replace(r,g))},m,function(y){if(y===-2){var T=f;return f=[],T}}])),b.hash=c.length?c.reduce(function(y,T){return T.name||Bp(15),A1(y,T.name)},5381).toString():"",b}var tL=st.createContext();tL.Consumer;var nL=st.createContext(),PY=(nL.Consumer,new JD),Kb=FY();function BY(){return C.useContext(tL)||PY}function UY(){return C.useContext(nL)||Kb}var rL=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Kb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Bp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Kb),this.name+t.hash},e}(),$Y=/([A-Z])/,zY=/([A-Z])/g,HY=/^ms-/,jY=function(e){return"-"+e.toLowerCase()};function OC(e){return $Y.test(e)?e.replace(zY,jY).replace(HY,"-ms-"):e}var DC=function(e){return e==null||e===!1||e===""};function ic(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,WY=/(^-|-$)/g;function C3(e){return e.replace(VY,"-").replace(WY,"")}var aL=function(e){return qb(eL(e)>>>0)};function A0(e){return typeof e=="string"&&!0}var Yb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},qY=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function KY(e,t,n){var r=e[n];Yb(t)&&Yb(r)?oL(r,t):e[n]=t}function oL(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),R=w&&w+"-"+(A0(v)?v:C3(IC(v)));return lL(v,is({},A,{attrs:m,componentId:R}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(v){this._foldedDefaultProps=r?oL({},e.defaultProps,v):v}}),Object.defineProperty(b,"toString",{value:function(){return"."+b.styledComponentId}}),i&&mY(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Xb=function(e){return function t(n,r,i){if(i===void 0&&(i=ul),!p9.isValidElementType(r))return Bp(1,String(r));var a=function(){return n(r,i,iL.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,is({},i,{},o))},a.attrs=function(o){return t(n,r,is({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(lL,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Xb[e]=Xb(e)});function Gm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r"u"||zC[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=AX),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),zC[n]=!0}const jC=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},kX="DEFAULT_TOOLTIP_ID",xX={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},IX=C.createContext({getTooltipData:()=>xX});function TL(e=kX){return C.useContext(IX).getTooltipData(e)}const RX=typeof window<"u"?C.useLayoutEffect:C.useEffect,NX=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},GC=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(NX(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},VC=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[sX(Number(i)),aX(),lX({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(iX({element:n,padding:5})),$C(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,b;const y={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:E}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},v=(b={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&b!==void 0?b:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const R=`${s}`.match(/(\d+)px/);A=R!=null&&R[1]?Number(R[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:E!=null?`${E}px`:"",right:"",bottom:"",...w,[v]:`-${4+A}px`},place:f}})):$C(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var OX="core-styles-module_tooltip__3vRRp",DX="core-styles-module_fixed__pcSol",LX="core-styles-module_arrow__cvMwQ",MX="core-styles-module_noArrow__xock6",FX="core-styles-module_clickable__ZuTTB",PX="core-styles-module_show__Nt9eE",x3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const BX=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:b=0,float:y=!1,hidden:T=!1,noArrow:E=!1,clickable:v=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:R=!1,style:k,position:N,afterShow:B,afterHide:q,content:P,contentWrapperRef:Q,isOpen:$,setIsOpen:oe,activeAnchor:fe,setActiveAnchor:ce,border:De,opacity:H})=>{const W=C.useRef(null),se=C.useRef(null),D=C.useRef(null),pe=C.useRef(null),[le,L]=C.useState(o),[ie,Se]=C.useState({}),[X,ke]=C.useState({}),[te,Me]=C.useState(!1),[Re,Ze]=C.useState(!1),We=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:je}=TL(e),pt=C.useRef(!1),[U,re]=C.useState([]),de=C.useRef(!1),xe=c||u.includes("click");RX(()=>(de.current=!0,()=>{de.current=!1}),[]),C.useEffect(()=>{if(!te){const ge=setTimeout(()=>{Ze(!1)},150);return()=>{clearTimeout(ge)}}return()=>null},[te]);const ye=ge=>{de.current&&(ge&&Ze(!0),setTimeout(()=>{de.current&&(oe==null||oe(ge),$===void 0&&Me(ge))},10))};C.useEffect(()=>{if($===void 0)return()=>null;$&&Ze(!0);const ge=setTimeout(()=>{Me($)},10);return()=>{clearTimeout(ge)}},[$]),C.useEffect(()=>{te!==We.current&&(We.current=te,te?B==null||B():q==null||q())},[te]);const Te=(ge=b)=>{pe.current&&clearTimeout(pe.current),pe.current=setTimeout(()=>{pt.current||ye(!1)},ge)},Le=ge=>{var G;if(!ge)return;const K=(G=ge.currentTarget)!==null&&G!==void 0?G:ge.target;if(!(K!=null&&K.isConnected))return ce(null),void je({current:null});g?(D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{ye(!0)},g)):ye(!0),ce(K),je({current:K}),pe.current&&clearTimeout(pe.current)},ze=()=>{v?Te(b||100):b?Te():ye(!1),D.current&&clearTimeout(D.current)},Ye=({x:ge,y:G})=>{VC({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:ge,y:G,width:0,height:0,top:G,left:ge,right:ge,bottom:G})},tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(K=>{Object.keys(K.tooltipStyles).length&&Se(K.tooltipStyles),Object.keys(K.tooltipArrowStyles).length&&ke(K.tooltipArrowStyles),L(K.place)})},jt=ge=>{if(!ge)return;const G=ge,K={x:G.clientX,y:G.clientY};Ye(K),dt.current=K},ue=ge=>{Le(ge),b&&Te()},Ee=ge=>{var G;[document.querySelector(`[id='${i}']`),...U].some(K=>K==null?void 0:K.contains(ge.target))||!((G=W.current)===null||G===void 0)&&G.contains(ge.target)||(ye(!1),D.current&&clearTimeout(D.current))},qe=jC(Le,50,!0),j=jC(ze,50,!0);C.useEffect(()=>{var ge,G;const K=new Set(ot);U.forEach(Qt=>{K.add({current:Qt})});const ne=document.querySelector(`[id='${i}']`);ne&&K.add({current:ne});const ve=()=>{ye(!1)},Qe=GC(fe),Fe=GC(W.current);A&&(window.addEventListener("scroll",ve),Qe==null||Qe.addEventListener("scroll",ve),Fe==null||Fe.addEventListener("scroll",ve)),R&&window.addEventListener("resize",ve);const at=Qt=>{Qt.key==="Escape"&&ye(!1)};w&&window.addEventListener("keydown",at);const rt=[];xe?(window.addEventListener("click",Ee),rt.push({event:"click",listener:ue})):(rt.push({event:"mouseenter",listener:qe},{event:"mouseleave",listener:j},{event:"focus",listener:qe},{event:"blur",listener:j}),y&&rt.push({event:"mousemove",listener:jt}));const Je=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return v&&!xe&&((ge=W.current)===null||ge===void 0||ge.addEventListener("mouseenter",Je),(G=W.current)===null||G===void 0||G.addEventListener("mouseleave",Rt)),rt.forEach(({event:Qt,listener:kt})=>{K.forEach(rn=>{var Xt;(Xt=rn.current)===null||Xt===void 0||Xt.addEventListener(Qt,kt)})}),()=>{var Qt,kt;A&&(window.removeEventListener("scroll",ve),Qe==null||Qe.removeEventListener("scroll",ve),Fe==null||Fe.removeEventListener("scroll",ve)),R&&window.removeEventListener("resize",ve),xe&&window.removeEventListener("click",Ee),w&&window.removeEventListener("keydown",at),v&&!xe&&((Qt=W.current)===null||Qt===void 0||Qt.removeEventListener("mouseenter",Je),(kt=W.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),rt.forEach(({event:rn,listener:Xt})=>{K.forEach(Wr=>{var qr;(qr=Wr.current)===null||qr===void 0||qr.removeEventListener(rn,Xt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let ge=a??"";!ge&&e&&(ge=`[data-tooltip-id='${e}']`);const G=new MutationObserver(K=>{const ne=[];K.forEach(ve=>{if(ve.type==="attributes"&&ve.attributeName==="data-tooltip-id"&&ve.target.getAttribute("data-tooltip-id")===e&&ne.push(ve.target),ve.type==="childList"&&(fe&&[...ve.removedNodes].some(Qe=>{var Fe;return!!(!((Fe=Qe==null?void 0:Qe.contains)===null||Fe===void 0)&&Fe.call(Qe,fe))&&(Ze(!1),ye(!1),ce(null),D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current),!0)}),ge))try{const Qe=[...ve.addedNodes].filter(Fe=>Fe.nodeType===1);ne.push(...Qe.filter(Fe=>Fe.matches(ge))),ne.push(...Qe.flatMap(Fe=>[...Fe.querySelectorAll(ge)]))}catch{}}),ne.length&&re(ve=>[...ve,...ne])});return G.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{G.disconnect()}},[e,a,fe]);const me=()=>{N?Ye(N):y?dt.current&&Ye(dt.current):VC({place:o,offset:s,elementReference:fe,tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(ge=>{de.current&&(Object.keys(ge.tooltipStyles).length&&Se(ge.tooltipStyles),Object.keys(ge.tooltipArrowStyles).length&&ke(ge.tooltipArrowStyles),L(ge.place))})};C.useEffect(()=>{me()},[te,fe,P,k,o,s,p,N]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const ge=new ResizeObserver(()=>{me()});return ge.observe(Q.current),()=>{ge.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var ge;const G=document.querySelector(`[id='${i}']`),K=[...U,G];fe&&K.includes(fe)||ce((ge=U[0])!==null&&ge!==void 0?ge:G)},[i,U,fe]),C.useEffect(()=>()=>{D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current)},[]),C.useEffect(()=>{let ge=a;if(!ge&&e&&(ge=`[data-tooltip-id='${e}']`),ge)try{const G=Array.from(document.querySelectorAll(ge));re(G)}catch{re([])}},[e,a]);const Ve=!T&&P&&te&&Object.keys(ie).length>0;return Re?st.createElement(m,{id:e,role:"tooltip",className:MC("react-tooltip",OX,x3.tooltip,x3[r],t,`react-tooltip__place-${le}`,{[PX]:Ve,[DX]:p==="fixed",[FX]:v}),style:{...k,...ie,opacity:H!==void 0&&Ve?H:void 0},ref:W},P,st.createElement(m,{className:MC("react-tooltip-arrow",LX,x3.arrow,n,{[MX]:E}),style:X,ref:se})):null},UX=({content:e})=>st.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),$X=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:b=!1,positionStrategy:y="absolute",middlewares:T,delayShow:E=0,delayHide:v=0,float:w=!1,hidden:A=!1,noArrow:R=!1,clickable:k=!1,closeOnEsc:N=!1,closeOnScroll:B=!1,closeOnResize:q=!1,style:P,position:Q,isOpen:$,disableStyleInjection:oe=!1,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W})=>{const[se,D]=C.useState(r),[pe,le]=C.useState(i),[L,ie]=C.useState(c),[Se,X]=C.useState(u),[ke,te]=C.useState(p),[Me,Re]=C.useState(E),[Ze,We]=C.useState(v),[dt,ot]=C.useState(w),[je,pt]=C.useState(A),[U,re]=C.useState(f),[de,xe]=C.useState(g),[ye,Te]=C.useState(y),[Le,ze]=C.useState(null),Ye=C.useRef(oe),{anchorRefs:jt,activeAnchor:ue}=TL(e),Ee=ge=>ge==null?void 0:ge.getAttributeNames().reduce((G,K)=>{var ne;return K.startsWith("data-tooltip-")&&(G[K.replace(/^data-tooltip-/,"")]=(ne=ge==null?void 0:ge.getAttribute(K))!==null&&ne!==void 0?ne:null),G},{}),qe=ge=>{const G={place:K=>{var ne;ie((ne=K)!==null&&ne!==void 0?ne:c)},content:K=>{D(K??r)},html:K=>{le(K??i)},variant:K=>{var ne;X((ne=K)!==null&&ne!==void 0?ne:u)},offset:K=>{te(K===null?p:Number(K))},wrapper:K=>{var ne;re((ne=K)!==null&&ne!==void 0?ne:f)},events:K=>{const ne=K==null?void 0:K.split(" ");xe(ne??g)},"position-strategy":K=>{var ne;Te((ne=K)!==null&&ne!==void 0?ne:y)},"delay-show":K=>{Re(K===null?E:Number(K))},"delay-hide":K=>{We(K===null?v:Number(K))},float:K=>{ot(K===null?w:K==="true")},hidden:K=>{pt(K===null?A:K==="true")}};Object.values(G).forEach(K=>K(null)),Object.entries(ge).forEach(([K,ne])=>{var ve;(ve=G[K])===null||ve===void 0||ve.call(G,ne)})};C.useEffect(()=>{D(r)},[r]),C.useEffect(()=>{le(i)},[i]),C.useEffect(()=>{ie(c)},[c]),C.useEffect(()=>{X(u)},[u]),C.useEffect(()=>{te(p)},[p]),C.useEffect(()=>{Re(E)},[E]),C.useEffect(()=>{We(v)},[v]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Te(y)},[y]),C.useEffect(()=>{Ye.current!==oe&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[oe]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:oe==="core",disableBase:oe}}))},[]),C.useEffect(()=>{var ge;const G=new Set(jt);let K=n;if(!K&&e&&(K=`[data-tooltip-id='${e}']`),K)try{document.querySelectorAll(K).forEach(at=>{G.add({current:at})})}catch{console.warn(`[react-tooltip] "${K}" is not a valid CSS selector`)}const ne=document.querySelector(`[id='${t}']`);if(ne&&G.add({current:ne}),!G.size)return()=>null;const ve=(ge=Le??ne)!==null&&ge!==void 0?ge:ue.current,Qe=new MutationObserver(at=>{at.forEach(rt=>{var Je;if(!ve||rt.type!=="attributes"||!(!((Je=rt.attributeName)===null||Je===void 0)&&Je.startsWith("data-tooltip-")))return;const Rt=Ee(ve);qe(Rt)})}),Fe={attributes:!0,childList:!1,subtree:!1};if(ve){const at=Ee(ve);qe(at),Qe.observe(ve,Fe)}return()=>{Qe.disconnect()}},[jt,ue,Le,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),fe&&!CSS.supports("border",`${fe}`)&&console.warn(`[react-tooltip] "${fe}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),ce&&!CSS.supports("opacity",`${ce}`)&&console.warn(`[react-tooltip] "${ce}" is not a valid \`opacity\`.`)},[]);let j=m;const me=C.useRef(null);if(a){const ge=a({content:se??null,activeAnchor:Le});j=ge?st.createElement("div",{ref:me,className:"react-tooltip-content-wrapper"},ge):null}else se&&(j=se);pe&&(j=st.createElement(UX,{content:pe}));const Ve={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:j,contentWrapperRef:me,place:L,variant:Se,offset:ke,wrapper:U,events:de,openOnClick:b,positionStrategy:ye,middlewares:T,delayShow:Me,delayHide:Ze,float:dt,hidden:je,noArrow:R,clickable:k,closeOnEsc:N,closeOnScroll:B,closeOnResize:q,style:P,position:Q,isOpen:$,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W,activeAnchor:Le,setActiveAnchor:ge=>ze(ge)};return st.createElement(BX,{...Ve})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||HC({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||HC({css:` +*/const AX="react-tooltip-core-styles",CX="react-tooltip-base-styles",zC={core:!1,base:!1};function HC({css:e,id:t=CX,type:n="base",ref:r}){var i,a;if(!e||typeof document>"u"||zC[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=AX),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),zC[n]=!0}const jC=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},kX="DEFAULT_TOOLTIP_ID",xX={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},IX=C.createContext({getTooltipData:()=>xX});function TL(e=kX){return C.useContext(IX).getTooltipData(e)}const RX=typeof window<"u"?C.useLayoutEffect:C.useEffect,NX=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},GC=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(NX(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},VC=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[sX(Number(i)),aX(),lX({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(iX({element:n,padding:5})),$C(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,b;const y={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:E}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},v=(b={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&b!==void 0?b:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const R=`${s}`.match(/(\d+)px/);A=R!=null&&R[1]?Number(R[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:E!=null?`${E}px`:"",right:"",bottom:"",...w,[v]:`-${4+A}px`},place:f}})):$C(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var OX="core-styles-module_tooltip__3vRRp",DX="core-styles-module_fixed__pcSol",LX="core-styles-module_arrow__cvMwQ",MX="core-styles-module_noArrow__xock6",FX="core-styles-module_clickable__ZuTTB",PX="core-styles-module_show__Nt9eE",x3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const BX=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:b=0,float:y=!1,hidden:T=!1,noArrow:E=!1,clickable:v=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:R=!1,style:k,position:N,afterShow:B,afterHide:q,content:P,contentWrapperRef:Q,isOpen:$,setIsOpen:oe,activeAnchor:fe,setActiveAnchor:ce,border:De,opacity:H})=>{const W=C.useRef(null),se=C.useRef(null),D=C.useRef(null),pe=C.useRef(null),[le,L]=C.useState(o),[ie,Se]=C.useState({}),[X,ke]=C.useState({}),[te,Me]=C.useState(!1),[Re,Ye]=C.useState(!1),We=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:je}=TL(e),pt=C.useRef(!1),[U,re]=C.useState([]),de=C.useRef(!1),xe=c||u.includes("click");RX(()=>(de.current=!0,()=>{de.current=!1}),[]),C.useEffect(()=>{if(!te){const ge=setTimeout(()=>{Ye(!1)},150);return()=>{clearTimeout(ge)}}return()=>null},[te]);const ye=ge=>{de.current&&(ge&&Ye(!0),setTimeout(()=>{de.current&&(oe==null||oe(ge),$===void 0&&Me(ge))},10))};C.useEffect(()=>{if($===void 0)return()=>null;$&&Ye(!0);const ge=setTimeout(()=>{Me($)},10);return()=>{clearTimeout(ge)}},[$]),C.useEffect(()=>{te!==We.current&&(We.current=te,te?B==null||B():q==null||q())},[te]);const Te=(ge=b)=>{pe.current&&clearTimeout(pe.current),pe.current=setTimeout(()=>{pt.current||ye(!1)},ge)},Le=ge=>{var G;if(!ge)return;const K=(G=ge.currentTarget)!==null&&G!==void 0?G:ge.target;if(!(K!=null&&K.isConnected))return ce(null),void je({current:null});g?(D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{ye(!0)},g)):ye(!0),ce(K),je({current:K}),pe.current&&clearTimeout(pe.current)},ze=()=>{v?Te(b||100):b?Te():ye(!1),D.current&&clearTimeout(D.current)},Xe=({x:ge,y:G})=>{VC({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:ge,y:G,width:0,height:0,top:G,left:ge,right:ge,bottom:G})},tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(K=>{Object.keys(K.tooltipStyles).length&&Se(K.tooltipStyles),Object.keys(K.tooltipArrowStyles).length&&ke(K.tooltipArrowStyles),L(K.place)})},jt=ge=>{if(!ge)return;const G=ge,K={x:G.clientX,y:G.clientY};Xe(K),dt.current=K},ue=ge=>{Le(ge),b&&Te()},Ee=ge=>{var G;[document.querySelector(`[id='${i}']`),...U].some(K=>K==null?void 0:K.contains(ge.target))||!((G=W.current)===null||G===void 0)&&G.contains(ge.target)||(ye(!1),D.current&&clearTimeout(D.current))},qe=jC(Le,50,!0),j=jC(ze,50,!0);C.useEffect(()=>{var ge,G;const K=new Set(ot);U.forEach(Qt=>{K.add({current:Qt})});const ne=document.querySelector(`[id='${i}']`);ne&&K.add({current:ne});const ve=()=>{ye(!1)},Qe=GC(fe),Fe=GC(W.current);A&&(window.addEventListener("scroll",ve),Qe==null||Qe.addEventListener("scroll",ve),Fe==null||Fe.addEventListener("scroll",ve)),R&&window.addEventListener("resize",ve);const at=Qt=>{Qt.key==="Escape"&&ye(!1)};w&&window.addEventListener("keydown",at);const rt=[];xe?(window.addEventListener("click",Ee),rt.push({event:"click",listener:ue})):(rt.push({event:"mouseenter",listener:qe},{event:"mouseleave",listener:j},{event:"focus",listener:qe},{event:"blur",listener:j}),y&&rt.push({event:"mousemove",listener:jt}));const Je=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return v&&!xe&&((ge=W.current)===null||ge===void 0||ge.addEventListener("mouseenter",Je),(G=W.current)===null||G===void 0||G.addEventListener("mouseleave",Rt)),rt.forEach(({event:Qt,listener:kt})=>{K.forEach(rn=>{var Xt;(Xt=rn.current)===null||Xt===void 0||Xt.addEventListener(Qt,kt)})}),()=>{var Qt,kt;A&&(window.removeEventListener("scroll",ve),Qe==null||Qe.removeEventListener("scroll",ve),Fe==null||Fe.removeEventListener("scroll",ve)),R&&window.removeEventListener("resize",ve),xe&&window.removeEventListener("click",Ee),w&&window.removeEventListener("keydown",at),v&&!xe&&((Qt=W.current)===null||Qt===void 0||Qt.removeEventListener("mouseenter",Je),(kt=W.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),rt.forEach(({event:rn,listener:Xt})=>{K.forEach(Wr=>{var qr;(qr=Wr.current)===null||qr===void 0||qr.removeEventListener(rn,Xt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let ge=a??"";!ge&&e&&(ge=`[data-tooltip-id='${e}']`);const G=new MutationObserver(K=>{const ne=[];K.forEach(ve=>{if(ve.type==="attributes"&&ve.attributeName==="data-tooltip-id"&&ve.target.getAttribute("data-tooltip-id")===e&&ne.push(ve.target),ve.type==="childList"&&(fe&&[...ve.removedNodes].some(Qe=>{var Fe;return!!(!((Fe=Qe==null?void 0:Qe.contains)===null||Fe===void 0)&&Fe.call(Qe,fe))&&(Ye(!1),ye(!1),ce(null),D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current),!0)}),ge))try{const Qe=[...ve.addedNodes].filter(Fe=>Fe.nodeType===1);ne.push(...Qe.filter(Fe=>Fe.matches(ge))),ne.push(...Qe.flatMap(Fe=>[...Fe.querySelectorAll(ge)]))}catch{}}),ne.length&&re(ve=>[...ve,...ne])});return G.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{G.disconnect()}},[e,a,fe]);const me=()=>{N?Xe(N):y?dt.current&&Xe(dt.current):VC({place:o,offset:s,elementReference:fe,tooltipReference:W.current,tooltipArrowReference:se.current,strategy:p,middlewares:f,border:De}).then(ge=>{de.current&&(Object.keys(ge.tooltipStyles).length&&Se(ge.tooltipStyles),Object.keys(ge.tooltipArrowStyles).length&&ke(ge.tooltipArrowStyles),L(ge.place))})};C.useEffect(()=>{me()},[te,fe,P,k,o,s,p,N]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const ge=new ResizeObserver(()=>{me()});return ge.observe(Q.current),()=>{ge.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var ge;const G=document.querySelector(`[id='${i}']`),K=[...U,G];fe&&K.includes(fe)||ce((ge=U[0])!==null&&ge!==void 0?ge:G)},[i,U,fe]),C.useEffect(()=>()=>{D.current&&clearTimeout(D.current),pe.current&&clearTimeout(pe.current)},[]),C.useEffect(()=>{let ge=a;if(!ge&&e&&(ge=`[data-tooltip-id='${e}']`),ge)try{const G=Array.from(document.querySelectorAll(ge));re(G)}catch{re([])}},[e,a]);const Ve=!T&&P&&te&&Object.keys(ie).length>0;return Re?st.createElement(m,{id:e,role:"tooltip",className:MC("react-tooltip",OX,x3.tooltip,x3[r],t,`react-tooltip__place-${le}`,{[PX]:Ve,[DX]:p==="fixed",[FX]:v}),style:{...k,...ie,opacity:H!==void 0&&Ve?H:void 0},ref:W},P,st.createElement(m,{className:MC("react-tooltip-arrow",LX,x3.arrow,n,{[MX]:E}),style:X,ref:se})):null},UX=({content:e})=>st.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),$X=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:b=!1,positionStrategy:y="absolute",middlewares:T,delayShow:E=0,delayHide:v=0,float:w=!1,hidden:A=!1,noArrow:R=!1,clickable:k=!1,closeOnEsc:N=!1,closeOnScroll:B=!1,closeOnResize:q=!1,style:P,position:Q,isOpen:$,disableStyleInjection:oe=!1,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W})=>{const[se,D]=C.useState(r),[pe,le]=C.useState(i),[L,ie]=C.useState(c),[Se,X]=C.useState(u),[ke,te]=C.useState(p),[Me,Re]=C.useState(E),[Ye,We]=C.useState(v),[dt,ot]=C.useState(w),[je,pt]=C.useState(A),[U,re]=C.useState(f),[de,xe]=C.useState(g),[ye,Te]=C.useState(y),[Le,ze]=C.useState(null),Xe=C.useRef(oe),{anchorRefs:jt,activeAnchor:ue}=TL(e),Ee=ge=>ge==null?void 0:ge.getAttributeNames().reduce((G,K)=>{var ne;return K.startsWith("data-tooltip-")&&(G[K.replace(/^data-tooltip-/,"")]=(ne=ge==null?void 0:ge.getAttribute(K))!==null&&ne!==void 0?ne:null),G},{}),qe=ge=>{const G={place:K=>{var ne;ie((ne=K)!==null&&ne!==void 0?ne:c)},content:K=>{D(K??r)},html:K=>{le(K??i)},variant:K=>{var ne;X((ne=K)!==null&&ne!==void 0?ne:u)},offset:K=>{te(K===null?p:Number(K))},wrapper:K=>{var ne;re((ne=K)!==null&&ne!==void 0?ne:f)},events:K=>{const ne=K==null?void 0:K.split(" ");xe(ne??g)},"position-strategy":K=>{var ne;Te((ne=K)!==null&&ne!==void 0?ne:y)},"delay-show":K=>{Re(K===null?E:Number(K))},"delay-hide":K=>{We(K===null?v:Number(K))},float:K=>{ot(K===null?w:K==="true")},hidden:K=>{pt(K===null?A:K==="true")}};Object.values(G).forEach(K=>K(null)),Object.entries(ge).forEach(([K,ne])=>{var ve;(ve=G[K])===null||ve===void 0||ve.call(G,ne)})};C.useEffect(()=>{D(r)},[r]),C.useEffect(()=>{le(i)},[i]),C.useEffect(()=>{ie(c)},[c]),C.useEffect(()=>{X(u)},[u]),C.useEffect(()=>{te(p)},[p]),C.useEffect(()=>{Re(E)},[E]),C.useEffect(()=>{We(v)},[v]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Te(y)},[y]),C.useEffect(()=>{Xe.current!==oe&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[oe]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:oe==="core",disableBase:oe}}))},[]),C.useEffect(()=>{var ge;const G=new Set(jt);let K=n;if(!K&&e&&(K=`[data-tooltip-id='${e}']`),K)try{document.querySelectorAll(K).forEach(at=>{G.add({current:at})})}catch{console.warn(`[react-tooltip] "${K}" is not a valid CSS selector`)}const ne=document.querySelector(`[id='${t}']`);if(ne&&G.add({current:ne}),!G.size)return()=>null;const ve=(ge=Le??ne)!==null&&ge!==void 0?ge:ue.current,Qe=new MutationObserver(at=>{at.forEach(rt=>{var Je;if(!ve||rt.type!=="attributes"||!(!((Je=rt.attributeName)===null||Je===void 0)&&Je.startsWith("data-tooltip-")))return;const Rt=Ee(ve);qe(Rt)})}),Fe={attributes:!0,childList:!1,subtree:!1};if(ve){const at=Ee(ve);qe(at),Qe.observe(ve,Fe)}return()=>{Qe.disconnect()}},[jt,ue,Le,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),fe&&!CSS.supports("border",`${fe}`)&&console.warn(`[react-tooltip] "${fe}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),ce&&!CSS.supports("opacity",`${ce}`)&&console.warn(`[react-tooltip] "${ce}" is not a valid \`opacity\`.`)},[]);let j=m;const me=C.useRef(null);if(a){const ge=a({content:se??null,activeAnchor:Le});j=ge?st.createElement("div",{ref:me,className:"react-tooltip-content-wrapper"},ge):null}else se&&(j=se);pe&&(j=st.createElement(UX,{content:pe}));const Ve={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:j,contentWrapperRef:me,place:L,variant:Se,offset:ke,wrapper:U,events:de,openOnClick:b,positionStrategy:ye,middlewares:T,delayShow:Me,delayHide:Ye,float:dt,hidden:je,noArrow:R,clickable:k,closeOnEsc:N,closeOnScroll:B,closeOnResize:q,style:P,position:Q,isOpen:$,border:fe,opacity:ce,setIsOpen:De,afterShow:H,afterHide:W,activeAnchor:Le,setActiveAnchor:ge=>ze(ge)};return st.createElement(BX,{...Ve})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||HC({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||HC({css:` .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px;transform:rotate(45deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function Km(){const e=window.navigator.platform.toUpperCase();return e.indexOf("MAC")>=0?"mac":e.indexOf("LINUX")>=0?"linux":e.indexOf("WIN")>=0?"windows":"unknown"}function xg(e){switch(Km()){case"mac":return e.metaKey;case"linux":case"windows":return e.ctrlKey;default:return e.metaKey}}function zX(){switch(Km()){case"mac":return"⌘";case"linux":case"windows":return"^";default:return"⌘"}}function pr(){const e=localStorage.getItem("fontSize");return e?parseInt(e):14}function WC(e){switch(e.split(".").pop()){case"py":return"python";case"js":return"javascript";case"ts":return"typescript";case"java":return"java";case"go":return"go";case"rb":return"ruby";case"rs":return"rust";case"c":return"c";case"cpp":return"cpp";case"cs":return"csharp";case"php":return"php";case"scala":return"scala";case"swift":return"swift";case"kt":return"kotlin";case"md":return"markdown";case"json":return"json";case"html":return"html";case"css":return"css";case"sh":return"shell";case"yaml":return"yaml";case"toml":return"toml";case"tex":return"latex";case"sql":return"sql";default:return""}}const It="5px",Et="#646464",ha="#1bbe84",Vt="var(--vscode-list-hoverBackground, rgb(45 45 45))",Ht="var(--vscode-editor-background, rgb(30 30 30))",Yt="var(--vscode-editor-foreground, #fff)";if(typeof document<"u"){const e=localStorage.getItem("--vscode-editor-foreground"),t=localStorage.getItem("--vscode-editor-background"),n=localStorage.getItem("--vscode-list-hoverBackground");e&&document.body.style.setProperty("--vscode-editor-foreground",e),t&&document.body.style.setProperty("--vscode-editor-background",t),n&&document.body.style.setProperty("--vscode-list-hoverBackground",n)}const oc=Ge.button` padding: 10px 12px; margin: 8px 0; @@ -240,9 +240,9 @@ Error generating stack: `+a.message+` * * @author Feross Aboukhadijeh * @license MIT - */var oQ=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const xL=Vi(oQ);function Bd(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?YC(e.position):"start"in e||"end"in e?YC(e):"line"in e||"column"in e?Jb(e):""}function Jb(e){return XC(e&&e.line)+":"+XC(e&&e.column)}function YC(e){return Jb(e&&e.start)+"-"+Jb(e&&e.end)}function XC(e){return e&&typeof e=="number"?e:1}class Ta extends Error{constructor(t,n,r){const i=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}n&&("type"in n||"position"in n?n.position&&(a=n.position):"start"in n||"end"in n?a=n:("line"in n||"column"in n)&&(a.start=n)),this.name=Bd(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}Ta.prototype.file="";Ta.prototype.name="";Ta.prototype.reason="";Ta.prototype.message="";Ta.prototype.stack="";Ta.prototype.fatal=null;Ta.prototype.column=null;Ta.prototype.line=null;Ta.prototype.source=null;Ta.prototype.ruleId=null;Ta.prototype.position=null;const po={basename:sQ,dirname:lQ,extname:uQ,join:cQ,sep:"/"};function sQ(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Hp(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function lQ(e){if(Hp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function uQ(e){Hp(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function cQ(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function pQ(e,t){let n="",r=0,i=-1,a=0,o=-1,s,u;for(;++o<=e.length;){if(o2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Hp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const fQ={cwd:hQ};function hQ(){return"/"}function ey(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function gQ(e){if(typeof e=="string")e=new URL(e);else if(!ey(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mQ(e)}function mQ(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||kh.call(t,i)},rk=function(t,n){JC&&n.name==="__proto__"?JC(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ik=function(t,n){if(n==="__proto__")if(kh.call(t,n)){if(ek)return ek(t,n).value}else return;return t[n]},yQ=function e(){var t,n,r,i,a,o,s=arguments[0],u=1,c=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});uo.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(c){const p=c;if(s&&n)throw p;return i(p)}s||(u instanceof Promise?u.then(a,i):u instanceof Error?i(u):a(u))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const _Q=OL().freeze(),NL={}.hasOwnProperty;function OL(){const e=EQ(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=u,a.parse=c,a.stringify=p,a.run=f,a.runSync=m,a.process=g,a.processSync=b,a;function a(){const y=OL();let T=-1;for(;++T{if(k||!N||!B)R(k);else{const q=a.stringify(N,B);q==null||(wQ(q)?B.value=q:B.result=q),R(k,B)}});function R(k,N){k||!N?w(k):v?v(N):T(null,N)}}}function b(y){let T;a.freeze(),D3("processSync",a.Parser),L3("processSync",a.Compiler);const E=ed(y);return a.process(E,v),sk("processSync","process",T),E;function v(w){T=!0,QC(w)}}}function ak(e,t){return typeof e=="function"&&e.prototype&&(TQ(e.prototype)||t in e.prototype)}function TQ(e){let t;for(t in e)if(NL.call(e,t))return!0;return!1}function D3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function L3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function M3(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ok(e){if(!ty(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sk(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ed(e){return SQ(e)?e:new IL(e)}function SQ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wQ(e){return typeof e=="string"||xL(e)}const AQ={};function CQ(e,t){const n=t||AQ,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return DL(e,r,i)}function DL(e,t,n){if(kQ(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lk(e.children,t,n)}return Array.isArray(e)?lk(e,t,n):""}function lk(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Bi(e,e.length,0,t),e):t}const uk={}.hasOwnProperty;function LL(e){const t={};let n=-1;for(;++no))return;const N=t.events.length;let B=N,q,P;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(q){P=t.events[B][1].end;break}q=!0}for(E(r),k=N;kw;){const R=n[A];t.containerState=R[1],R[0].exit.call(t,e)}n.length=w}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function BQ(e,t,n){return Gt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ng(e){if(e===null||gn(e)||_u(e))return 1;if(Ym(e))return 2}function Xm(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);dk(f,-u),dk(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ca(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ca(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=ca(c,Xm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ca(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=ca(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Bi(e,r-1,n-r+3,c),n=r+c.length-p-2;break}}for(n=-1;++n0&&Dt(k)?Gt(e,v,"linePrefix",a+1)(k):v(k)}function v(k){return k===null||gt(k)?e.check(fk,y,A)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||gt(k)?(e.exit("codeFlowValue"),v(k)):(e.consume(k),w)}function A(k){return e.exit("codeFenced"),t(k)}function R(k,N,B){let q=0;return P;function P(ce){return k.enter("lineEnding"),k.consume(ce),k.exit("lineEnding"),Q}function Q(ce){return k.enter("codeFencedFence"),Dt(ce)?Gt(k,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ce):$(ce)}function $(ce){return ce===s?(k.enter("codeFencedFenceSequence"),oe(ce)):B(ce)}function oe(ce){return ce===s?(q++,k.consume(ce),oe):q>=o?(k.exit("codeFencedFenceSequence"),Dt(ce)?Gt(k,fe,"whitespace")(ce):fe(ce)):B(ce)}function fe(ce){return ce===null||gt(ce)?(k.exit("codeFencedFence"),N(ce)):B(ce)}}}function XQ(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const F3={name:"codeIndented",tokenize:QQ},ZQ={tokenize:JQ,partial:!0};function QQ(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Gt(e,a,"linePrefix",4+1)(c)}function a(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):gt(c)?e.attempt(ZQ,o,u)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||gt(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function u(c){return e.exit("codeIndented"),t(c)}}function JQ(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Gt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):gt(o)?i(o):n(o)}}const eJ={name:"codeText",tokenize:rJ,resolve:tJ,previous:nJ};function tJ(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function UL(e,t,n,r,i,a,o,s,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return f;function f(E){return E===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(E),e.exit(a),m):E===null||E===32||E===41||Rg(E)?n(E):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(E))}function m(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===62?(e.exit("chunkString"),e.exit(s),m(E)):E===null||E===60||gt(E)?n(E):(e.consume(E),E===92?b:g)}function b(E){return E===60||E===62||E===92?(e.consume(E),g):g(E)}function y(E){return!p&&(E===null||E===41||gn(E))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(E)):p999||g===null||g===91||g===93&&!u||g===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):gt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||gt(g)||s++>999?(e.exit("chunkString"),p(g)):(e.consume(g),u||(u=!Dt(g)),g===92?m:f)}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,f):f(g)}}function zL(e,t,n,r,i,a){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,u):n(m)}function u(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),c(m))}function c(m){return m===o?(e.exit(a),u(o)):m===null?n(m):gt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Gt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===o||m===null||gt(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:p)}function f(m){return m===o||m===92?(e.consume(m),p):p(m)}}function Ud(e,t){let n;return r;function r(i){return gt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Dt(i)?Gt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Wa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const cJ={name:"definition",tokenize:pJ},dJ={tokenize:fJ,partial:!0};function pJ(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return $L.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return i=Wa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return gn(g)?Ud(e,c)(g):c(g)}function c(g){return UL(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(dJ,f,f)(g)}function f(g){return Dt(g)?Gt(e,m,"whitespace")(g):m(g)}function m(g){return g===null||gt(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function fJ(e,t,n){return r;function r(s){return gn(s)?Ud(e,i)(s):n(s)}function i(s){return zL(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Dt(s)?Gt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||gt(s)?t(s):n(s)}}const hJ={name:"hardBreakEscape",tokenize:gJ};function gJ(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return gt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const mJ={name:"headingAtx",tokenize:yJ,resolve:bJ};function bJ(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Bi(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function yJ(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||gn(p)?(e.exit("atxHeadingSequence"),s(p)):n(p)}function s(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||gt(p)?(e.exit("atxHeading"),t(p)):Dt(p)?Gt(e,s,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),s(p))}function c(p){return p===null||p===35||gn(p)?(e.exit("atxHeadingText"),s(p)):(e.consume(p),c)}}const EJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gk=["pre","script","style","textarea"],vJ={name:"htmlFlow",tokenize:wJ,resolveTo:SJ,concrete:!0},_J={tokenize:CJ,partial:!0},TJ={tokenize:AJ,partial:!0};function SJ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function wJ(e,t,n){const r=this;let i,a,o,s,u;return c;function c(L){return p(L)}function p(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),f}function f(L){return L===33?(e.consume(L),m):L===47?(e.consume(L),a=!0,y):L===63?(e.consume(L),i=3,r.interrupt?t:D):ti(L)?(e.consume(L),o=String.fromCharCode(L),T):n(L)}function m(L){return L===45?(e.consume(L),i=2,g):L===91?(e.consume(L),i=5,s=0,b):ti(L)?(e.consume(L),i=4,r.interrupt?t:D):n(L)}function g(L){return L===45?(e.consume(L),r.interrupt?t:D):n(L)}function b(L){const ie="CDATA[";return L===ie.charCodeAt(s++)?(e.consume(L),s===ie.length?r.interrupt?t:$:b):n(L)}function y(L){return ti(L)?(e.consume(L),o=String.fromCharCode(L),T):n(L)}function T(L){if(L===null||L===47||L===62||gn(L)){const ie=L===47,Se=o.toLowerCase();return!ie&&!a&&gk.includes(Se)?(i=1,r.interrupt?t(L):$(L)):EJ.includes(o.toLowerCase())?(i=6,ie?(e.consume(L),E):r.interrupt?t(L):$(L)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):a?v(L):w(L))}return L===45||jr(L)?(e.consume(L),o+=String.fromCharCode(L),T):n(L)}function E(L){return L===62?(e.consume(L),r.interrupt?t:$):n(L)}function v(L){return Dt(L)?(e.consume(L),v):P(L)}function w(L){return L===47?(e.consume(L),P):L===58||L===95||ti(L)?(e.consume(L),A):Dt(L)?(e.consume(L),w):P(L)}function A(L){return L===45||L===46||L===58||L===95||jr(L)?(e.consume(L),A):R(L)}function R(L){return L===61?(e.consume(L),k):Dt(L)?(e.consume(L),R):w(L)}function k(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),u=L,N):Dt(L)?(e.consume(L),k):B(L)}function N(L){return L===u?(e.consume(L),u=null,q):L===null||gt(L)?n(L):(e.consume(L),N)}function B(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||gn(L)?R(L):(e.consume(L),B)}function q(L){return L===47||L===62||Dt(L)?w(L):n(L)}function P(L){return L===62?(e.consume(L),Q):n(L)}function Q(L){return L===null||gt(L)?$(L):Dt(L)?(e.consume(L),Q):n(L)}function $(L){return L===45&&i===2?(e.consume(L),De):L===60&&i===1?(e.consume(L),H):L===62&&i===4?(e.consume(L),pe):L===63&&i===3?(e.consume(L),D):L===93&&i===5?(e.consume(L),se):gt(L)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(_J,le,oe)(L)):L===null||gt(L)?(e.exit("htmlFlowData"),oe(L)):(e.consume(L),$)}function oe(L){return e.check(TJ,fe,le)(L)}function fe(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ce}function ce(L){return L===null||gt(L)?oe(L):(e.enter("htmlFlowData"),$(L))}function De(L){return L===45?(e.consume(L),D):$(L)}function H(L){return L===47?(e.consume(L),o="",W):$(L)}function W(L){if(L===62){const ie=o.toLowerCase();return gk.includes(ie)?(e.consume(L),pe):$(L)}return ti(L)&&o.length<8?(e.consume(L),o+=String.fromCharCode(L),W):$(L)}function se(L){return L===93?(e.consume(L),D):$(L)}function D(L){return L===62?(e.consume(L),pe):L===45&&i===2?(e.consume(L),D):$(L)}function pe(L){return L===null||gt(L)?(e.exit("htmlFlowData"),le(L)):(e.consume(L),pe)}function le(L){return e.exit("htmlFlow"),t(L)}}function AJ(e,t,n){const r=this;return i;function i(o){return gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function CJ(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(jp,t,n)}}const kJ={name:"htmlText",tokenize:xJ};function xJ(e,t,n){const r=this;let i,a,o;return s;function s(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),u}function u(D){return D===33?(e.consume(D),c):D===47?(e.consume(D),R):D===63?(e.consume(D),w):ti(D)?(e.consume(D),B):n(D)}function c(D){return D===45?(e.consume(D),p):D===91?(e.consume(D),a=0,b):ti(D)?(e.consume(D),v):n(D)}function p(D){return D===45?(e.consume(D),g):n(D)}function f(D){return D===null?n(D):D===45?(e.consume(D),m):gt(D)?(o=f,H(D)):(e.consume(D),f)}function m(D){return D===45?(e.consume(D),g):f(D)}function g(D){return D===62?De(D):D===45?m(D):f(D)}function b(D){const pe="CDATA[";return D===pe.charCodeAt(a++)?(e.consume(D),a===pe.length?y:b):n(D)}function y(D){return D===null?n(D):D===93?(e.consume(D),T):gt(D)?(o=y,H(D)):(e.consume(D),y)}function T(D){return D===93?(e.consume(D),E):y(D)}function E(D){return D===62?De(D):D===93?(e.consume(D),E):y(D)}function v(D){return D===null||D===62?De(D):gt(D)?(o=v,H(D)):(e.consume(D),v)}function w(D){return D===null?n(D):D===63?(e.consume(D),A):gt(D)?(o=w,H(D)):(e.consume(D),w)}function A(D){return D===62?De(D):w(D)}function R(D){return ti(D)?(e.consume(D),k):n(D)}function k(D){return D===45||jr(D)?(e.consume(D),k):N(D)}function N(D){return gt(D)?(o=N,H(D)):Dt(D)?(e.consume(D),N):De(D)}function B(D){return D===45||jr(D)?(e.consume(D),B):D===47||D===62||gn(D)?q(D):n(D)}function q(D){return D===47?(e.consume(D),De):D===58||D===95||ti(D)?(e.consume(D),P):gt(D)?(o=q,H(D)):Dt(D)?(e.consume(D),q):De(D)}function P(D){return D===45||D===46||D===58||D===95||jr(D)?(e.consume(D),P):Q(D)}function Q(D){return D===61?(e.consume(D),$):gt(D)?(o=Q,H(D)):Dt(D)?(e.consume(D),Q):q(D)}function $(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),i=D,oe):gt(D)?(o=$,H(D)):Dt(D)?(e.consume(D),$):(e.consume(D),fe)}function oe(D){return D===i?(e.consume(D),i=void 0,ce):D===null?n(D):gt(D)?(o=oe,H(D)):(e.consume(D),oe)}function fe(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||gn(D)?q(D):(e.consume(D),fe)}function ce(D){return D===47||D===62||gn(D)?q(D):n(D)}function De(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function H(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),W}function W(D){return Dt(D)?Gt(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):se(D)}function se(D){return e.enter("htmlTextData"),o(D)}}const A9={name:"labelEnd",tokenize:LJ,resolveTo:DJ,resolveAll:OJ},IJ={tokenize:MJ},RJ={tokenize:FJ},NJ={tokenize:PJ};function OJ(e){let t=-1;for(;++t=3&&(c===null||gt(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),Dt(c)?Gt(e,s,"whitespace")(c):s(c))}}const pi={name:"list",tokenize:WJ,continuation:{tokenize:qJ},exit:YJ},GJ={tokenize:XJ,partial:!0},VJ={tokenize:KJ,partial:!0};function WJ(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:ny(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(xh,n,c)(g):c(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return ny(g)&&++o<10?(e.consume(g),u):(!r.interrupt||o<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(jp,r.interrupt?n:p,e.attempt(GJ,m,f))}function p(g){return r.containerState.initialBlankLine=!0,a++,m(g)}function f(g){return Dt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function qJ(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(jp,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Gt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Dt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(VJ,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Gt(e,e.attempt(pi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function KJ(e,t,n){const r=this;return Gt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function YJ(e){e.exit(this.containerState.type)}function XJ(e,t,n){const r=this;return Gt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!Dt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const mk={name:"setextUnderline",tokenize:QJ,resolveTo:ZJ};function ZJ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function QJ(e,t,n){const r=this;let i;return a;function a(c){let p=r.events.length,f;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){f=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Dt(c)?Gt(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||gt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const JJ={tokenize:eee};function eee(e){const t=this,n=e.attempt(jp,r,e.attempt(this.parser.constructs.flowInitial,i,Gt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aJ,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tee={resolveAll:jL()},nee=HL("string"),ree=HL("text");function HL(e){return{tokenize:t,resolveAll:jL(e==="text"?iee:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(p){return c(p)?a(p):s(p)}function s(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return c(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function c(p){if(p===null)return!0;const f=i[p];let m=-1;if(f)for(;++m-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function see(e,t){let n=-1;const r=[];let i;for(;++ne.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function lQ(e){if(Hp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function uQ(e){Hp(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function cQ(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function pQ(e,t){let n="",r=0,i=-1,a=0,o=-1,s,u;for(;++o<=e.length;){if(o2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Hp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const fQ={cwd:hQ};function hQ(){return"/"}function ey(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function gQ(e){if(typeof e=="string")e=new URL(e);else if(!ey(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mQ(e)}function mQ(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||kh.call(t,i)},rk=function(t,n){JC&&n.name==="__proto__"?JC(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ik=function(t,n){if(n==="__proto__")if(kh.call(t,n)){if(ek)return ek(t,n).value}else return;return t[n]},yQ=function e(){var t,n,r,i,a,o,s=arguments[0],u=1,c=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});uo.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(c){const p=c;if(s&&n)throw p;return i(p)}s||(u instanceof Promise?u.then(a,i):u instanceof Error?i(u):a(u))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const _Q=OL().freeze(),NL={}.hasOwnProperty;function OL(){const e=EQ(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=u,a.parse=c,a.stringify=p,a.run=f,a.runSync=m,a.process=g,a.processSync=b,a;function a(){const y=OL();let T=-1;for(;++T{if(k||!N||!B)R(k);else{const q=a.stringify(N,B);q==null||(wQ(q)?B.value=q:B.result=q),R(k,B)}});function R(k,N){k||!N?w(k):v?v(N):T(null,N)}}}function b(y){let T;a.freeze(),D3("processSync",a.Parser),L3("processSync",a.Compiler);const E=ed(y);return a.process(E,v),sk("processSync","process",T),E;function v(w){T=!0,QC(w)}}}function ak(e,t){return typeof e=="function"&&e.prototype&&(TQ(e.prototype)||t in e.prototype)}function TQ(e){let t;for(t in e)if(NL.call(e,t))return!0;return!1}function D3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function L3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function M3(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ok(e){if(!ty(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sk(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ed(e){return SQ(e)?e:new IL(e)}function SQ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wQ(e){return typeof e=="string"||xL(e)}const AQ={};function CQ(e,t){const n=t||AQ,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return DL(e,r,i)}function DL(e,t,n){if(kQ(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lk(e.children,t,n)}return Array.isArray(e)?lk(e,t,n):""}function lk(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Bi(e,e.length,0,t),e):t}const uk={}.hasOwnProperty;function LL(e){const t={};let n=-1;for(;++no))return;const N=t.events.length;let B=N,q,P;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(q){P=t.events[B][1].end;break}q=!0}for(E(r),k=N;kw;){const R=n[A];t.containerState=R[1],R[0].exit.call(t,e)}n.length=w}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function BQ(e,t,n){return Gt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ng(e){if(e===null||gn(e)||_u(e))return 1;if(Ym(e))return 2}function Xm(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);dk(f,-u),dk(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ca(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ca(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=ca(c,Xm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ca(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=ca(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Bi(e,r-1,n-r+3,c),n=r+c.length-p-2;break}}for(n=-1;++n0&&Dt(k)?Gt(e,v,"linePrefix",a+1)(k):v(k)}function v(k){return k===null||gt(k)?e.check(fk,y,A)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||gt(k)?(e.exit("codeFlowValue"),v(k)):(e.consume(k),w)}function A(k){return e.exit("codeFenced"),t(k)}function R(k,N,B){let q=0;return P;function P(ce){return k.enter("lineEnding"),k.consume(ce),k.exit("lineEnding"),Q}function Q(ce){return k.enter("codeFencedFence"),Dt(ce)?Gt(k,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ce):$(ce)}function $(ce){return ce===s?(k.enter("codeFencedFenceSequence"),oe(ce)):B(ce)}function oe(ce){return ce===s?(q++,k.consume(ce),oe):q>=o?(k.exit("codeFencedFenceSequence"),Dt(ce)?Gt(k,fe,"whitespace")(ce):fe(ce)):B(ce)}function fe(ce){return ce===null||gt(ce)?(k.exit("codeFencedFence"),N(ce)):B(ce)}}}function XQ(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const F3={name:"codeIndented",tokenize:QQ},ZQ={tokenize:JQ,partial:!0};function QQ(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Gt(e,a,"linePrefix",4+1)(c)}function a(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):gt(c)?e.attempt(ZQ,o,u)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||gt(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function u(c){return e.exit("codeIndented"),t(c)}}function JQ(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Gt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):gt(o)?i(o):n(o)}}const eJ={name:"codeText",tokenize:rJ,resolve:tJ,previous:nJ};function tJ(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function UL(e,t,n,r,i,a,o,s,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return f;function f(E){return E===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(E),e.exit(a),m):E===null||E===32||E===41||Rg(E)?n(E):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(E))}function m(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===62?(e.exit("chunkString"),e.exit(s),m(E)):E===null||E===60||gt(E)?n(E):(e.consume(E),E===92?b:g)}function b(E){return E===60||E===62||E===92?(e.consume(E),g):g(E)}function y(E){return!p&&(E===null||E===41||gn(E))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(E)):p999||g===null||g===91||g===93&&!u||g===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):gt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||gt(g)||s++>999?(e.exit("chunkString"),p(g)):(e.consume(g),u||(u=!Dt(g)),g===92?m:f)}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,f):f(g)}}function zL(e,t,n,r,i,a){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,u):n(m)}function u(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),c(m))}function c(m){return m===o?(e.exit(a),u(o)):m===null?n(m):gt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Gt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===o||m===null||gt(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:p)}function f(m){return m===o||m===92?(e.consume(m),p):p(m)}}function Ud(e,t){let n;return r;function r(i){return gt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Dt(i)?Gt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Wa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const cJ={name:"definition",tokenize:pJ},dJ={tokenize:fJ,partial:!0};function pJ(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return $L.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return i=Wa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return gn(g)?Ud(e,c)(g):c(g)}function c(g){return UL(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(dJ,f,f)(g)}function f(g){return Dt(g)?Gt(e,m,"whitespace")(g):m(g)}function m(g){return g===null||gt(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function fJ(e,t,n){return r;function r(s){return gn(s)?Ud(e,i)(s):n(s)}function i(s){return zL(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Dt(s)?Gt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||gt(s)?t(s):n(s)}}const hJ={name:"hardBreakEscape",tokenize:gJ};function gJ(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return gt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const mJ={name:"headingAtx",tokenize:yJ,resolve:bJ};function bJ(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Bi(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function yJ(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||gn(p)?(e.exit("atxHeadingSequence"),s(p)):n(p)}function s(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||gt(p)?(e.exit("atxHeading"),t(p)):Dt(p)?Gt(e,s,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),s(p))}function c(p){return p===null||p===35||gn(p)?(e.exit("atxHeadingText"),s(p)):(e.consume(p),c)}}const EJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gk=["pre","script","style","textarea"],vJ={name:"htmlFlow",tokenize:wJ,resolveTo:SJ,concrete:!0},_J={tokenize:CJ,partial:!0},TJ={tokenize:AJ,partial:!0};function SJ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function wJ(e,t,n){const r=this;let i,a,o,s,u;return c;function c(L){return p(L)}function p(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),f}function f(L){return L===33?(e.consume(L),m):L===47?(e.consume(L),a=!0,y):L===63?(e.consume(L),i=3,r.interrupt?t:D):ti(L)?(e.consume(L),o=String.fromCharCode(L),T):n(L)}function m(L){return L===45?(e.consume(L),i=2,g):L===91?(e.consume(L),i=5,s=0,b):ti(L)?(e.consume(L),i=4,r.interrupt?t:D):n(L)}function g(L){return L===45?(e.consume(L),r.interrupt?t:D):n(L)}function b(L){const ie="CDATA[";return L===ie.charCodeAt(s++)?(e.consume(L),s===ie.length?r.interrupt?t:$:b):n(L)}function y(L){return ti(L)?(e.consume(L),o=String.fromCharCode(L),T):n(L)}function T(L){if(L===null||L===47||L===62||gn(L)){const ie=L===47,Se=o.toLowerCase();return!ie&&!a&&gk.includes(Se)?(i=1,r.interrupt?t(L):$(L)):EJ.includes(o.toLowerCase())?(i=6,ie?(e.consume(L),E):r.interrupt?t(L):$(L)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):a?v(L):w(L))}return L===45||jr(L)?(e.consume(L),o+=String.fromCharCode(L),T):n(L)}function E(L){return L===62?(e.consume(L),r.interrupt?t:$):n(L)}function v(L){return Dt(L)?(e.consume(L),v):P(L)}function w(L){return L===47?(e.consume(L),P):L===58||L===95||ti(L)?(e.consume(L),A):Dt(L)?(e.consume(L),w):P(L)}function A(L){return L===45||L===46||L===58||L===95||jr(L)?(e.consume(L),A):R(L)}function R(L){return L===61?(e.consume(L),k):Dt(L)?(e.consume(L),R):w(L)}function k(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),u=L,N):Dt(L)?(e.consume(L),k):B(L)}function N(L){return L===u?(e.consume(L),u=null,q):L===null||gt(L)?n(L):(e.consume(L),N)}function B(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||gn(L)?R(L):(e.consume(L),B)}function q(L){return L===47||L===62||Dt(L)?w(L):n(L)}function P(L){return L===62?(e.consume(L),Q):n(L)}function Q(L){return L===null||gt(L)?$(L):Dt(L)?(e.consume(L),Q):n(L)}function $(L){return L===45&&i===2?(e.consume(L),De):L===60&&i===1?(e.consume(L),H):L===62&&i===4?(e.consume(L),pe):L===63&&i===3?(e.consume(L),D):L===93&&i===5?(e.consume(L),se):gt(L)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(_J,le,oe)(L)):L===null||gt(L)?(e.exit("htmlFlowData"),oe(L)):(e.consume(L),$)}function oe(L){return e.check(TJ,fe,le)(L)}function fe(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ce}function ce(L){return L===null||gt(L)?oe(L):(e.enter("htmlFlowData"),$(L))}function De(L){return L===45?(e.consume(L),D):$(L)}function H(L){return L===47?(e.consume(L),o="",W):$(L)}function W(L){if(L===62){const ie=o.toLowerCase();return gk.includes(ie)?(e.consume(L),pe):$(L)}return ti(L)&&o.length<8?(e.consume(L),o+=String.fromCharCode(L),W):$(L)}function se(L){return L===93?(e.consume(L),D):$(L)}function D(L){return L===62?(e.consume(L),pe):L===45&&i===2?(e.consume(L),D):$(L)}function pe(L){return L===null||gt(L)?(e.exit("htmlFlowData"),le(L)):(e.consume(L),pe)}function le(L){return e.exit("htmlFlow"),t(L)}}function AJ(e,t,n){const r=this;return i;function i(o){return gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function CJ(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(jp,t,n)}}const kJ={name:"htmlText",tokenize:xJ};function xJ(e,t,n){const r=this;let i,a,o;return s;function s(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),u}function u(D){return D===33?(e.consume(D),c):D===47?(e.consume(D),R):D===63?(e.consume(D),w):ti(D)?(e.consume(D),B):n(D)}function c(D){return D===45?(e.consume(D),p):D===91?(e.consume(D),a=0,b):ti(D)?(e.consume(D),v):n(D)}function p(D){return D===45?(e.consume(D),g):n(D)}function f(D){return D===null?n(D):D===45?(e.consume(D),m):gt(D)?(o=f,H(D)):(e.consume(D),f)}function m(D){return D===45?(e.consume(D),g):f(D)}function g(D){return D===62?De(D):D===45?m(D):f(D)}function b(D){const pe="CDATA[";return D===pe.charCodeAt(a++)?(e.consume(D),a===pe.length?y:b):n(D)}function y(D){return D===null?n(D):D===93?(e.consume(D),T):gt(D)?(o=y,H(D)):(e.consume(D),y)}function T(D){return D===93?(e.consume(D),E):y(D)}function E(D){return D===62?De(D):D===93?(e.consume(D),E):y(D)}function v(D){return D===null||D===62?De(D):gt(D)?(o=v,H(D)):(e.consume(D),v)}function w(D){return D===null?n(D):D===63?(e.consume(D),A):gt(D)?(o=w,H(D)):(e.consume(D),w)}function A(D){return D===62?De(D):w(D)}function R(D){return ti(D)?(e.consume(D),k):n(D)}function k(D){return D===45||jr(D)?(e.consume(D),k):N(D)}function N(D){return gt(D)?(o=N,H(D)):Dt(D)?(e.consume(D),N):De(D)}function B(D){return D===45||jr(D)?(e.consume(D),B):D===47||D===62||gn(D)?q(D):n(D)}function q(D){return D===47?(e.consume(D),De):D===58||D===95||ti(D)?(e.consume(D),P):gt(D)?(o=q,H(D)):Dt(D)?(e.consume(D),q):De(D)}function P(D){return D===45||D===46||D===58||D===95||jr(D)?(e.consume(D),P):Q(D)}function Q(D){return D===61?(e.consume(D),$):gt(D)?(o=Q,H(D)):Dt(D)?(e.consume(D),Q):q(D)}function $(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),i=D,oe):gt(D)?(o=$,H(D)):Dt(D)?(e.consume(D),$):(e.consume(D),fe)}function oe(D){return D===i?(e.consume(D),i=void 0,ce):D===null?n(D):gt(D)?(o=oe,H(D)):(e.consume(D),oe)}function fe(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||gn(D)?q(D):(e.consume(D),fe)}function ce(D){return D===47||D===62||gn(D)?q(D):n(D)}function De(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function H(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),W}function W(D){return Dt(D)?Gt(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):se(D)}function se(D){return e.enter("htmlTextData"),o(D)}}const A9={name:"labelEnd",tokenize:LJ,resolveTo:DJ,resolveAll:OJ},IJ={tokenize:MJ},RJ={tokenize:FJ},NJ={tokenize:PJ};function OJ(e){let t=-1;for(;++t=3&&(c===null||gt(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),Dt(c)?Gt(e,s,"whitespace")(c):s(c))}}const pi={name:"list",tokenize:WJ,continuation:{tokenize:qJ},exit:YJ},GJ={tokenize:XJ,partial:!0},VJ={tokenize:KJ,partial:!0};function WJ(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:ny(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(xh,n,c)(g):c(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return ny(g)&&++o<10?(e.consume(g),u):(!r.interrupt||o<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(jp,r.interrupt?n:p,e.attempt(GJ,m,f))}function p(g){return r.containerState.initialBlankLine=!0,a++,m(g)}function f(g){return Dt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function qJ(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(jp,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Gt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Dt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(VJ,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Gt(e,e.attempt(pi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function KJ(e,t,n){const r=this;return Gt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function YJ(e){e.exit(this.containerState.type)}function XJ(e,t,n){const r=this;return Gt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!Dt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const mk={name:"setextUnderline",tokenize:QJ,resolveTo:ZJ};function ZJ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function QJ(e,t,n){const r=this;let i;return a;function a(c){let p=r.events.length,f;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){f=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Dt(c)?Gt(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||gt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const JJ={tokenize:eee};function eee(e){const t=this,n=e.attempt(jp,r,e.attempt(this.parser.constructs.flowInitial,i,Gt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aJ,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tee={resolveAll:jL()},nee=HL("string"),ree=HL("text");function HL(e){return{tokenize:t,resolveAll:jL(e==="text"?iee:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(p){return c(p)?a(p):s(p)}function s(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return c(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function c(p){if(p===null)return!0;const f=i[p];let m=-1;if(f)for(;++m-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function see(e,t){let n=-1;const r=[];let i;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const _ee=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function VL(e){return e.replace(_ee,Tee)}function Tee(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return GL(n.slice(a?2:1),a?16:10)}return Tp(n)||e}const WL={}.hasOwnProperty,See=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),wee(n)(vee(yee(n).document().write(Eee()(e,t,!0))))};function wee(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xe),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(pt),blockQuote:s(Ze),characterEscape:Q,characterReference:Q,codeFenced:s(We),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(We,u),codeText:s(dt,u),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(ot),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(je),hardBreakEscape:s(U),hardBreakTrailing:s(U),htmlFlow:s(re,u),htmlFlowData:Q,htmlText:s(re,u),htmlTextData:Q,image:s(de),label:u,link:s(xe),listItem:s(Te),listItemValue:b,listOrdered:s(ye,g),listUnordered:s(ye),paragraph:s(Le),reference:Se,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(pt),strong:s(ze),thematicBreak:s(jt)},exit:{atxHeading:p(),atxHeadingSequence:N,autolink:p(),autolinkEmail:Re,autolinkProtocol:Me,blockQuote:p(),characterEscapeValue:$,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:te,codeFenced:p(v),codeFencedFence:E,codeFencedFenceInfo:y,codeFencedFenceMeta:T,codeFlowValue:$,codeIndented:p(w),codeText:p(H),codeTextData:$,data:$,definition:p(),definitionDestinationString:k,definitionLabelString:A,definitionTitleString:R,emphasis:p(),hardBreakEscape:p(fe),hardBreakTrailing:p(fe),htmlFlow:p(ce),htmlFlowData:$,htmlText:p(De),htmlTextData:$,image:p(se),label:pe,labelText:D,lineEnding:oe,link:p(W),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:X,resourceDestinationString:le,resourceTitleString:L,resource:ie,setextHeading:p(P),setextHeadingLineSequence:q,setextHeadingText:B,strong:p(),thematicBreak:p()}};qL(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let Ee={type:"root",children:[]};const qe={stack:[Ee],tokenStack:[],config:t,enter:c,exit:f,buffer:u,resume:m,setData:a,getData:o},j=[];let me=-1;for(;++me0){const Ve=qe.tokenStack[qe.tokenStack.length-1];(Ve[1]||yk).call(qe,void 0,Ve[0])}for(Ee.position={start:Ds(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Ds(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me{const r=this.data("settings");return See(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function kee(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function xee(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` +`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}const lee={42:pi,43:pi,45:pi,48:pi,49:pi,50:pi,51:pi,52:pi,53:pi,54:pi,55:pi,56:pi,57:pi,62:ML},uee={91:cJ},cee={[-2]:F3,[-1]:F3,32:F3},dee={35:mJ,42:xh,45:[mk,xh],60:vJ,61:mk,95:xh,96:hk,126:hk},pee={38:PL,92:FL},fee={[-5]:P3,[-4]:P3,[-3]:P3,33:BJ,38:PL,42:ry,60:[zQ,kJ],91:$J,92:[hJ,FL],93:A9,95:ry,96:eJ},hee={null:[ry,tee]},gee={null:[42,95]},mee={null:[]},bee=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:gee,contentInitial:uee,disable:mee,document:lee,flow:dee,flowInitial:cee,insideSpan:hee,string:pee,text:fee},Symbol.toStringTag,{value:"Module"}));function yee(e){const n=LL([bee,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(LQ),document:i(FQ),flow:i(JJ),string:i(nee),text:i(ree)};return r;function i(a){return o;function o(s){return aee(r,a,s)}}}const bk=/[\0\t\n\r]/g;function Eee(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const u=[];let c,p,f,m,g;for(a=t+a.toString(o),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const _ee=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function VL(e){return e.replace(_ee,Tee)}function Tee(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return GL(n.slice(a?2:1),a?16:10)}return Tp(n)||e}const WL={}.hasOwnProperty,See=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),wee(n)(vee(yee(n).document().write(Eee()(e,t,!0))))};function wee(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xe),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(pt),blockQuote:s(Ye),characterEscape:Q,characterReference:Q,codeFenced:s(We),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(We,u),codeText:s(dt,u),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(ot),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(je),hardBreakEscape:s(U),hardBreakTrailing:s(U),htmlFlow:s(re,u),htmlFlowData:Q,htmlText:s(re,u),htmlTextData:Q,image:s(de),label:u,link:s(xe),listItem:s(Te),listItemValue:b,listOrdered:s(ye,g),listUnordered:s(ye),paragraph:s(Le),reference:Se,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(pt),strong:s(ze),thematicBreak:s(jt)},exit:{atxHeading:p(),atxHeadingSequence:N,autolink:p(),autolinkEmail:Re,autolinkProtocol:Me,blockQuote:p(),characterEscapeValue:$,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:te,codeFenced:p(v),codeFencedFence:E,codeFencedFenceInfo:y,codeFencedFenceMeta:T,codeFlowValue:$,codeIndented:p(w),codeText:p(H),codeTextData:$,data:$,definition:p(),definitionDestinationString:k,definitionLabelString:A,definitionTitleString:R,emphasis:p(),hardBreakEscape:p(fe),hardBreakTrailing:p(fe),htmlFlow:p(ce),htmlFlowData:$,htmlText:p(De),htmlTextData:$,image:p(se),label:pe,labelText:D,lineEnding:oe,link:p(W),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:X,resourceDestinationString:le,resourceTitleString:L,resource:ie,setextHeading:p(P),setextHeadingLineSequence:q,setextHeadingText:B,strong:p(),thematicBreak:p()}};qL(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let Ee={type:"root",children:[]};const qe={stack:[Ee],tokenStack:[],config:t,enter:c,exit:f,buffer:u,resume:m,setData:a,getData:o},j=[];let me=-1;for(;++me0){const Ve=qe.tokenStack[qe.tokenStack.length-1];(Ve[1]||yk).call(qe,void 0,Ve[0])}for(Ee.position={start:Ds(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Ds(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me{const r=this.data("settings");return See(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function kee(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function xee(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` `}]}function Iee(e,t){const n=t.value?t.value+` `:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Ree(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nee(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bc(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function KL(e,t){const n=String(t.identifier).toUpperCase(),r=bc(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=i+1);const o=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function Oee(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},KL(e,{type:"footnoteReference",identifier:i,position:t.position})}function Dee(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lee(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function YL(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Mee(e,t){const n=e.definition(t.identifier);if(!n)return YL(e,t);const r={src:bc(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function Fee(e,t){const n={src:bc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Pee(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Bee(e,t){const n=e.definition(t.identifier);if(!n)return YL(e,t);const r={href:bc(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Uee(e,t){const n={href:bc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $ee(e,t,n){const r=e.all(t),i=n?zee(n):XL(t),a={},o=[];if(typeof t.checked=="boolean"){const p=r[0];let f;p&&p.type==="element"&&p.tagName==="p"?f=p:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++stypeof e=="object"&&e!=null&&e.nodeType===1,bI=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",u4=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,Xue=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var Zue=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:fe=>fe!==f;if(!mI(e))throw new TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,y=[],T=e;for(;mI(T)&&g(T);){if(T=Xue(T),T===b){y.push(T);break}T!=null&&T===document.body&&u4(T)&&!u4(document.documentElement)||T!=null&&u4(T,m)&&y.push(T)}let E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:R,width:k,top:N,right:B,bottom:q,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?N:c==="end"?q:N+R/2,$=p==="center"?P+k/2:p==="end"?B:P,oe=[];for(let fe=0;fe=0&&P>=0&&q<=v&&B<=E&&N>=W&&q<=D&&P>=pe&&B<=se)return oe;let le=getComputedStyle(ce),L=parseInt(le.borderLeftWidth,10),ie=parseInt(le.borderTopWidth,10),Se=parseInt(le.borderRightWidth,10),X=parseInt(le.borderBottomWidth,10),ke=0,te=0,Me="offsetWidth"in ce?ce.offsetWidth-ce.clientWidth-L-Se:0,Re="offsetHeight"in ce?ce.offsetHeight-ce.clientHeight-ie-X:0,Ze="offsetWidth"in ce?ce.offsetWidth===0?0:H/ce.offsetWidth:0,We="offsetHeight"in ce?ce.offsetHeight===0?0:De/ce.offsetHeight:0;if(b===ce)ke=c==="start"?Q:c==="end"?Q-v:c==="nearest"?V0(A,A+v,v,ie,X,A+Q,A+Q+R,R):Q-v/2,te=p==="start"?$:p==="center"?$-E/2:p==="end"?$-E:V0(w,w+E,E,L,Se,w+$,w+$+k,k),ke=Math.max(0,ke+A),te=Math.max(0,te+w);else{ke=c==="start"?Q-W-ie:c==="end"?Q-D+X+Re:c==="nearest"?V0(W,D,De,ie,X+Re,Q,Q+R,R):Q-(W+De/2)+Re/2,te=p==="start"?$-pe-L:p==="center"?$-(pe+H/2)+Me/2:p==="end"?$-se+Se+Me:V0(pe,se,H,L,Se+Me,$,$+k,k);let{scrollLeft:dt,scrollTop:ot}=ce;ke=Math.max(0,Math.min(ot+ke/We,ce.scrollHeight-De/We+Re)),te=Math.max(0,Math.min(dt+te/Ze,ce.scrollWidth-H/Ze+Me)),Q+=ot-ke,$+=dt-te}oe.push({el:ce,top:ke,left:te})}return oe},$g=function(){return $g=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function q0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=Ap(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function Ap(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?Ap(1,0,n,r,!1):Ap(-1,n-1,n,r,!1):-1}function EI(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(yI(i,e,n)||r&&yI(i,n.document.activeElement,n))})}var r1e=LF(function(e){FF(e).textContent=""},500);function i1e(e,t){var n=FF(t);e&&(n.textContent=e,r1e(t))}function FF(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var a1e=["isInitialMount","highlightedIndex","items","environment"],PF={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function o1e(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){s1e(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(nn({type:i},a))}function s1e(e,t,n,r){var i=t.props,a=t.type,o="on"+P7(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](nn({type:a},r))}function l1e(e,t){return t.changes}function u1e(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var c1e=LF(function(e,t){i1e(e(),t)},200),d1e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function p1e(e){var t=e.id,n=t===void 0?"downshift-"+e1e():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function f1e(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function h1e(e){return e?String(e):""}function P7(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function BF(e){var t=C.useRef(e);return t.current=e,t}function g1e(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=my(m,g.props);var b=e(m,g),y=g.props.stateReducer(m,nn({},g,{changes:b}));return y},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=BF(n),p=C.useCallback(function(m){return u(nn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&o1e(f,my(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Kd={itemToString:h1e,stateReducer:l1e,getA11ySelectionMessage:u1e,scrollIntoView:Jue,environment:typeof window>"u"?{}:window};function bo(e,t,n){n===void 0&&(n=PF);var r=e["default"+P7(t)];return r!==void 0?r:n[t]}function K0(e,t,n){n===void 0&&(n=PF);var r=e[t];if(r!==void 0)return r;var i=e["initial"+P7(t)];return i!==void 0?i:bo(e,t,n)}function m1e(e){var t=K0(e,"selectedItem"),n=K0(e,"isOpen"),r=K0(e,"highlightedIndex"),i=K0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Yd(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function b1e(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!EI(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!EI(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var y1e=function(){return DF};function vI(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=C1(n,a1e);C.useEffect(function(){r||c1e(function(){return e(nn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function E1e(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return d1e(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var v1e=DF;function _I(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return nn({isOpen:!1,highlightedIndex:-1},i&&nn({selectedItem:e.items[t],isOpen:bo(e,"isOpen"),highlightedIndex:bo(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function _1e(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Yd(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:bo(i,"highlightedIndex"),isOpen:bo(i,"isOpen"),selectedItem:bo(i,"selectedItem"),inputValue:bo(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return nn({},e,a)}be.array.isRequired,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.func,be.string,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function T1e(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}$g($g({},Kd),{getA11yStatusMessage:T1e});var B7=0,U7=1,$7=2,z7=3,H7=4,j7=5,G7=6,V7=7,W7=8,zg=9,q7=10,UF=11,$F=12,K7=13,zF=14,HF=15,jF=16,GF=17,VF=18,Y7=19,WF=20,qF=21,X7=22,KF=Object.freeze({__proto__:null,InputKeyDownArrowDown:B7,InputKeyDownArrowUp:U7,InputKeyDownEscape:$7,InputKeyDownHome:z7,InputKeyDownEnd:H7,InputKeyDownPageUp:j7,InputKeyDownPageDown:G7,InputKeyDownEnter:V7,InputChange:W7,InputBlur:zg,InputFocus:q7,MenuMouseLeave:UF,ItemMouseMove:$F,ItemClick:K7,ToggleButtonClick:zF,FunctionToggleMenu:HF,FunctionOpenMenu:jF,FunctionCloseMenu:GF,FunctionSetHighlightedIndex:VF,FunctionSelectItem:Y7,FunctionSetInputValue:WF,FunctionReset:qF,ControlledPropUpdatedSelectedItem:X7});function S1e(e){var t=m1e(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),nn({},t,{inputValue:r})}be.array.isRequired,be.func,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.string,be.string,be.string,be.func,be.string,be.string,be.func,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function w1e(e,t,n){var r=C.useRef(),i=g1e(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){MF(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:X7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[my(a,n),o]}var A1e=nn({},Kd,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:t1e});function C1e(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case K7:o={isOpen:bo(i,"isOpen"),highlightedIndex:bo(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case B7:e.isOpen?o={highlightedIndex:q0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Yd(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case U7:e.isOpen?a?o=_I(i,e.highlightedIndex):o={highlightedIndex:q0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Yd(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case V7:o=_I(i,e.highlightedIndex);break;case $7:o=nn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case j7:o={highlightedIndex:q0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case G7:o={highlightedIndex:q0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case z7:o={highlightedIndex:Ap(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case H7:o={highlightedIndex:Ap(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case zg:o=nn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case W7:o={isOpen:!0,highlightedIndex:bo(i,"highlightedIndex"),inputValue:t.inputValue};break;case q7:o={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case Y7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case X7:o={inputValue:t.inputValue};break;default:return _1e(e,t,KF)}return nn({},e,o)}var k1e=["onMouseLeave","refKey","ref"],x1e=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],I1e=["onClick","onPress","refKey","ref"],R1e=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];YF.stateChangeTypes=KF;function YF(e){e===void 0&&(e={});var t=nn({},A1e,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=S1e(t),f=w1e(C1e,p,t),m=f[0],g=f[1],b=m.isOpen,y=m.highlightedIndex,T=m.selectedItem,E=m.inputValue,v=C.useRef(null),w=C.useRef({}),A=C.useRef(null),R=C.useRef(null),k=C.useRef(!0),N=p1e(t),B=C.useRef(),q=BF({state:m,props:t}),P=C.useCallback(function(ke){return w.current[N.getItemId(ke)]},[N]);vI(s,[b,y,E,i],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),vI(u,[T],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=E1e({menuElement:v.current,highlightedIndex:y,isOpen:b,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});v1e({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var ke=n||r||b;ke&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var $=b1e(b,[A,v,R],o,function(){g({type:zg,selectItem:!1})}),oe=y1e();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var ke;if(!b)w.current={};else if(((ke=o.document)==null?void 0:ke.activeElement)!==A.current){var te;A==null||(te=A.current)==null||te.focus()}},[b,o]);var fe=C.useMemo(function(){return{ArrowDown:function(te){te.preventDefault(),g({type:B7,altKey:te.altKey,getItemNodeFromIndex:P})},ArrowUp:function(te){te.preventDefault(),g({type:U7,altKey:te.altKey,getItemNodeFromIndex:P})},Home:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:z7,getItemNodeFromIndex:P}))},End:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:H7,getItemNodeFromIndex:P}))},Escape:function(te){var Me=q.current.state;(Me.isOpen||Me.inputValue||Me.selectedItem||Me.highlightedIndex>-1)&&(te.preventDefault(),g({type:$7}))},Enter:function(te){var Me=q.current.state;!Me.isOpen||te.which===229||(te.preventDefault(),g({type:V7,getItemNodeFromIndex:P}))},PageUp:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:j7,getItemNodeFromIndex:P}))},PageDown:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:G7,getItemNodeFromIndex:P}))}}},[g,q,P]),ce=C.useCallback(function(ke){return nn({id:N.labelId,htmlFor:N.inputId},ke)},[N]),De=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onMouseLeave,We=Re.refKey,dt=We===void 0?"ref":We,ot=Re.ref,je=C1(Re,k1e),pt=te===void 0?{}:te;return pt.suppressRefError,nn((Me={},Me[dt]=W0(ot,function(U){v.current=U}),Me.id=N.menuId,Me.role="listbox",Me["aria-labelledby"]=je&&je["aria-label"]?void 0:""+N.labelId,Me.onMouseLeave=qo(Ze,function(){g({type:UF})}),Me),je)},[g,oe,N]),H=C.useCallback(function(ke){var te,Me,Re=ke===void 0?{}:ke,Ze=Re.item,We=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,je=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,re=Re.onClick;Re.onPress;var de=Re.disabled,xe=C1(Re,x1e),ye=q.current,Te=ye.props,Le=ye.state,ze=f1e(Ze,We,Te.items,"Pass either item or index to getItemProps!"),Ye=ze[1],jt="onClick",ue=re,Ee=function(){Ye!==Le.highlightedIndex&&(Q.current=!1,g({type:$F,index:Ye,disabled:de}))},qe=function(){g({type:K7,index:Ye})},j=function(Ve){return Ve.preventDefault()};return nn((te={},te[ot]=W0(je,function(me){me&&(w.current[N.getItemId(Ye)]=me)}),te.disabled=de,te.role="option",te["aria-selected"]=""+(Ye===Le.highlightedIndex),te.id=N.getItemId(Ye),te),!de&&(Me={},Me[jt]=qo(ue,qe),Me),{onMouseMove:qo(pt,Ee),onMouseDown:qo(U,j)},xe)},[g,q,Q,N]),W=C.useCallback(function(ke){var te,Me=ke===void 0?{}:ke,Re=Me.onClick;Me.onPress;var Ze=Me.refKey,We=Ze===void 0?"ref":Ze,dt=Me.ref,ot=C1(Me,I1e),je=q.current.state,pt=function(){g({type:zF})};return nn((te={},te[We]=W0(dt,function(U){R.current=U}),te["aria-controls"]=N.menuId,te["aria-expanded"]=je.isOpen,te.id=N.toggleButtonId,te.tabIndex=-1,te),!ot.disabled&&nn({},{onClick:qo(Re,pt)}),ot)},[g,q,N]),se=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ze=Re.onKeyDown,We=Re.onChange,dt=Re.onInput,ot=Re.onFocus,je=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,re=Re.ref,de=C1(Re,R1e),xe=te===void 0?{}:te;xe.suppressRefError;var ye=q.current.state,Te=function(j){var me=n1e(j);me&&fe[me]&&fe[me](j)},Le=function(j){g({type:W7,inputValue:j.target.value})},ze=function(j){if(ye.isOpen&&!$.current.isMouseDown){var me=j.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:zg,selectItem:!me})}},Ye=function(){ye.isOpen||g({type:q7})},jt="onChange",ue={};if(!de.disabled){var Ee;ue=(Ee={},Ee[jt]=qo(We,dt,Le),Ee.onKeyDown=qo(Ze,Te),Ee.onBlur=qo(je,ze),Ee.onFocus=qo(ot,Ye),Ee)}return nn((Me={},Me[U]=W0(re,function(qe){A.current=qe}),Me["aria-activedescendant"]=ye.isOpen&&ye.highlightedIndex>-1?N.getItemId(ye.highlightedIndex):"",Me["aria-autocomplete"]="list",Me["aria-controls"]=N.menuId,Me["aria-expanded"]=ye.isOpen,Me["aria-labelledby"]=de&&de["aria-label"]?void 0:""+N.labelId,Me.autoComplete="off",Me.id=N.inputId,Me.role="combobox",Me.value=ye.inputValue,Me),ue,de)},[oe,q,N,fe,g,$,o]),D=C.useCallback(function(){g({type:HF})},[g]),pe=C.useCallback(function(){g({type:GF})},[g]),le=C.useCallback(function(){g({type:jF})},[g]),L=C.useCallback(function(ke){g({type:VF,highlightedIndex:ke})},[g]),ie=C.useCallback(function(ke){g({type:Y7,selectedItem:ke})},[g]),Se=C.useCallback(function(ke){g({type:WF,inputValue:ke})},[g]),X=C.useCallback(function(){g({type:qF})},[g]);return{getItemProps:H,getLabelProps:ce,getMenuProps:De,getInputProps:se,getToggleButtonProps:W,toggleMenu:D,openMenu:le,closeMenu:pe,setHighlightedIndex:L,setInputValue:Se,selectItem:ie,reset:X,highlightedIndex:y,isOpen:b,selectedItem:T,inputValue:E}}function N1e(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}be.array,be.array,be.array,be.func,be.func,be.func,be.number,be.number,be.number,be.func,be.func,be.string,be.string,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});Kd.itemToString,Kd.stateReducer,Kd.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:XF,setPrototypeOf:TI,isFrozen:O1e,getPrototypeOf:D1e,getOwnPropertyDescriptor:ZF}=Object;let{freeze:ii,seal:Ya,create:QF}=Object,{apply:by,construct:yy}=typeof Reflect<"u"&&Reflect;ii||(ii=function(t){return t});Ya||(Ya=function(t){return t});by||(by=function(t,n,r){return t.apply(n,r)});yy||(yy=function(t,n){return new t(...n)});const Y0=va(Array.prototype.forEach),SI=va(Array.prototype.pop),ld=va(Array.prototype.push),Fh=va(String.prototype.toLowerCase),c4=va(String.prototype.toString),L1e=va(String.prototype.match),ud=va(String.prototype.replace),M1e=va(String.prototype.indexOf),F1e=va(String.prototype.trim),Ni=va(RegExp.prototype.test),cd=P1e(TypeError);function va(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Fh;TI&&TI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(O1e(t)||(t[r]=a),i=a)}e[i]=!0}return e}function r1(e){const t=QF(null);for(const[n,r]of XF(e))ZF(e,n)!==void 0&&(t[n]=r);return t}function X0(e,t){for(;e!==null;){const r=ZF(e,t);if(r){if(r.get)return va(r.get);if(typeof r.value=="function")return va(r.value)}e=D1e(e)}function n(r){return console.warn("fallback value for",r),null}return n}const wI=ii(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),d4=ii(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),p4=ii(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B1e=ii(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),f4=ii(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U1e=ii(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),AI=ii(["#text"]),CI=ii(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),h4=ii(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kI=ii(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z0=ii(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$1e=Ya(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z1e=Ya(/<%[\w\W]*|[\w\W]*%>/gm),H1e=Ya(/\${[\w\W]*}/gm),j1e=Ya(/^data-[\-\w.\u00B7-\uFFFF]/),G1e=Ya(/^aria-[\-\w]+$/),JF=Ya(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V1e=Ya(/^(?:\w+script|data):/i),W1e=Ya(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eP=Ya(/^html$/i);var xI=Object.freeze({__proto__:null,MUSTACHE_EXPR:$1e,ERB_EXPR:z1e,TMPLIT_EXPR:H1e,DATA_ATTR:j1e,ARIA_ATTR:G1e,IS_ALLOWED_URI:JF,IS_SCRIPT_OR_DATA:V1e,ATTR_WHITESPACE:W1e,DOCTYPE_NAME:eP});const q1e=function(){return typeof window>"u"?null:window},K1e=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function tP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q1e();const t=Ke=>tP(Ke);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,b=u.prototype,y=X0(b,"cloneNode"),T=X0(b,"nextSibling"),E=X0(b,"childNodes"),v=X0(b,"parentNode");if(typeof o=="function"){const Ke=n.createElement("template");Ke.content&&Ke.content.ownerDocument&&(n=Ke.content.ownerDocument)}let w,A="";const{implementation:R,createNodeIterator:k,createDocumentFragment:N,getElementsByTagName:B}=n,{importNode:q}=r;let P={};t.isSupported=typeof XF=="function"&&typeof v=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:$,TMPLIT_EXPR:oe,DATA_ATTR:fe,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:H}=xI;let{IS_ALLOWED_URI:W}=xI,se=null;const D=At({},[...wI,...d4,...p4,...f4,...AI]);let pe=null;const le=At({},[...CI,...h4,...kI,...Z0]);let L=Object.seal(QF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Se=null,X=!0,ke=!0,te=!1,Me=!0,Re=!1,Ze=!1,We=!1,dt=!1,ot=!1,je=!1,pt=!1,U=!0,re=!1;const de="user-content-";let xe=!0,ye=!1,Te={},Le=null;const ze=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ye=null;const jt=At({},["audio","video","img","source","image","track"]);let ue=null;const Ee=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",j="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let Ve=me,ge=!1,G=null;const K=At({},[qe,j,me],c4);let ne=null;const ve=["application/xhtml+xml","text/html"],Qe="text/html";let Fe=null,at=null;const rt=n.createElement("form"),Je=function(J){return J instanceof RegExp||J instanceof Function},Rt=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(at&&at===J)){if((!J||typeof J!="object")&&(J={}),J=r1(J),ne=ve.indexOf(J.PARSER_MEDIA_TYPE)===-1?ne=Qe:ne=J.PARSER_MEDIA_TYPE,Fe=ne==="application/xhtml+xml"?c4:Fh,se="ALLOWED_TAGS"in J?At({},J.ALLOWED_TAGS,Fe):D,pe="ALLOWED_ATTR"in J?At({},J.ALLOWED_ATTR,Fe):le,G="ALLOWED_NAMESPACES"in J?At({},J.ALLOWED_NAMESPACES,c4):K,ue="ADD_URI_SAFE_ATTR"in J?At(r1(Ee),J.ADD_URI_SAFE_ATTR,Fe):Ee,Ye="ADD_DATA_URI_TAGS"in J?At(r1(jt),J.ADD_DATA_URI_TAGS,Fe):jt,Le="FORBID_CONTENTS"in J?At({},J.FORBID_CONTENTS,Fe):ze,ie="FORBID_TAGS"in J?At({},J.FORBID_TAGS,Fe):{},Se="FORBID_ATTR"in J?At({},J.FORBID_ATTR,Fe):{},Te="USE_PROFILES"in J?J.USE_PROFILES:!1,X=J.ALLOW_ARIA_ATTR!==!1,ke=J.ALLOW_DATA_ATTR!==!1,te=J.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=J.SAFE_FOR_TEMPLATES||!1,Ze=J.WHOLE_DOCUMENT||!1,ot=J.RETURN_DOM||!1,je=J.RETURN_DOM_FRAGMENT||!1,pt=J.RETURN_TRUSTED_TYPE||!1,dt=J.FORCE_BODY||!1,U=J.SANITIZE_DOM!==!1,re=J.SANITIZE_NAMED_PROPS||!1,xe=J.KEEP_CONTENT!==!1,ye=J.IN_PLACE||!1,W=J.ALLOWED_URI_REGEXP||JF,Ve=J.NAMESPACE||me,L=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(ke=!1),je&&(ot=!0),Te&&(se=At({},[...AI]),pe=[],Te.html===!0&&(At(se,wI),At(pe,CI)),Te.svg===!0&&(At(se,d4),At(pe,h4),At(pe,Z0)),Te.svgFilters===!0&&(At(se,p4),At(pe,h4),At(pe,Z0)),Te.mathMl===!0&&(At(se,f4),At(pe,kI),At(pe,Z0))),J.ADD_TAGS&&(se===D&&(se=r1(se)),At(se,J.ADD_TAGS,Fe)),J.ADD_ATTR&&(pe===le&&(pe=r1(pe)),At(pe,J.ADD_ATTR,Fe)),J.ADD_URI_SAFE_ATTR&&At(ue,J.ADD_URI_SAFE_ATTR,Fe),J.FORBID_CONTENTS&&(Le===ze&&(Le=r1(Le)),At(Le,J.FORBID_CONTENTS,Fe)),xe&&(se["#text"]=!0),Ze&&At(se,["html","head","body"]),se.table&&(At(se,["tbody"]),delete ie.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=J.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=K1e(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ii&&ii(J),at=J}},Qt=At({},["mi","mo","mn","ms","mtext"]),kt=At({},["foreignobject","desc","title","annotation-xml"]),rn=At({},["title","style","font","a","script"]),Xt=At({},d4);At(Xt,p4),At(Xt,B1e);const Wr=At({},f4);At(Wr,U1e);const qr=function(J){let Be=v(J);(!Be||!Be.tagName)&&(Be={namespaceURI:Ve,tagName:"template"});const it=Fh(J.tagName),un=Fh(Be.tagName);return G[J.namespaceURI]?J.namespaceURI===j?Be.namespaceURI===me?it==="svg":Be.namespaceURI===qe?it==="svg"&&(un==="annotation-xml"||Qt[un]):!!Xt[it]:J.namespaceURI===qe?Be.namespaceURI===me?it==="math":Be.namespaceURI===j?it==="math"&&kt[un]:!!Wr[it]:J.namespaceURI===me?Be.namespaceURI===j&&!kt[un]||Be.namespaceURI===qe&&!Qt[un]?!1:!Wr[it]&&(rn[it]||!Xt[it]):!!(ne==="application/xhtml+xml"&&G[J.namespaceURI]):!1},Kr=function(J){ld(t.removed,{element:J});try{J.parentNode.removeChild(J)}catch{J.remove()}},Aa=function(J,Be){try{ld(t.removed,{attribute:Be.getAttributeNode(J),from:Be})}catch{ld(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(J),J==="is"&&!pe[J])if(ot||je)try{Kr(Be)}catch{}else try{Be.setAttribute(J,"")}catch{}},si=function(J){let Be=null,it=null;if(dt)J=""+J;else{const or=L1e(J,/^[\r\n\t ]+/);it=or&&or[0]}ne==="application/xhtml+xml"&&Ve===me&&(J=''+J+"");const un=w?w.createHTML(J):J;if(Ve===me)try{Be=new m().parseFromString(un,ne)}catch{}if(!Be||!Be.documentElement){Be=R.createDocument(Ve,"template",null);try{Be.documentElement.innerHTML=ge?A:un}catch{}}const ar=Be.body||Be.documentElement;return J&&it&&ar.insertBefore(n.createTextNode(it),ar.childNodes[0]||null),Ve===me?B.call(Be,Ze?"html":"body")[0]:Ze?Be.documentElement:ar},Or=function(J){return k.call(J.ownerDocument||J,J,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Es=function(J){return J instanceof f&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof p)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},vs=function(J){return typeof s=="function"&&J instanceof s},Yr=function(J,Be,it){P[J]&&Y0(P[J],un=>{un.call(t,Be,it,at)})},_s=function(J){let Be=null;if(Yr("beforeSanitizeElements",J,null),Es(J))return Kr(J),!0;const it=Fe(J.nodeName);if(Yr("uponSanitizeElement",J,{tagName:it,allowedTags:se}),J.hasChildNodes()&&!vs(J.firstElementChild)&&Ni(/<[/\w]/g,J.innerHTML)&&Ni(/<[/\w]/g,J.textContent))return Kr(J),!0;if(!se[it]||ie[it]){if(!ie[it]&&Dr(it)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it)))return!1;if(xe&&!Le[it]){const un=v(J)||J.parentNode,ar=E(J)||J.childNodes;if(ar&&un){const or=ar.length;for(let Zn=or-1;Zn>=0;--Zn)un.insertBefore(y(ar[Zn],!0),T(J))}}return Kr(J),!0}return J instanceof u&&!qr(J)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ni(/<\/no(script|embed|frames)/i,J.innerHTML)?(Kr(J),!0):(Re&&J.nodeType===3&&(Be=J.textContent,Y0([Q,$,oe],un=>{Be=ud(Be,un," ")}),J.textContent!==Be&&(ld(t.removed,{element:J.cloneNode()}),J.textContent=Be)),Yr("afterSanitizeElements",J,null),!1)},qt=function(J,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in rt))return!1;if(!(ke&&!Se[Be]&&Ni(fe,Be))){if(!(X&&Ni(ce,Be))){if(!pe[Be]||Se[Be]){if(!(Dr(J)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,J)||L.tagNameCheck instanceof Function&&L.tagNameCheck(J))&&(L.attributeNameCheck instanceof RegExp&&Ni(L.attributeNameCheck,Be)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(Be))||Be==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ni(W,ud(it,H,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&J!=="script"&&M1e(it,"data:")===0&&Ye[J])){if(!(te&&!Ni(De,ud(it,H,"")))){if(it)return!1}}}}}}return!0},Dr=function(J){return J.indexOf("-")>0},Si=function(J){Yr("beforeSanitizeAttributes",J,null);const{attributes:Be}=J;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};let un=Be.length;for(;un--;){const ar=Be[un],{name:or,namespaceURI:Zn,value:Oo}=ar,no=Fe(or);let Lr=or==="value"?Oo:F1e(Oo);if(it.attrName=no,it.attrValue=Lr,it.keepAttr=!0,it.forceKeepAttr=void 0,Yr("uponSanitizeAttribute",J,it),Lr=it.attrValue,it.forceKeepAttr||(Aa(or,J),!it.keepAttr))continue;if(!Me&&Ni(/\/>/i,Lr)){Aa(or,J);continue}Re&&Y0([Q,$,oe],vf=>{Lr=ud(Lr,vf," ")});const Ef=Fe(J.nodeName);if(qt(Ef,no,Lr)){if(re&&(no==="id"||no==="name")&&(Aa(or,J),Lr=de+Lr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Zn)switch(g.getAttributeType(Ef,no)){case"TrustedHTML":{Lr=w.createHTML(Lr);break}case"TrustedScriptURL":{Lr=w.createScriptURL(Lr);break}}try{Zn?J.setAttributeNS(Zn,or,Lr):J.setAttribute(or,Lr),SI(t.removed)}catch{}}}Yr("afterSanitizeAttributes",J,null)},Nl=function Ke(J){let Be=null;const it=Or(J);for(Yr("beforeSanitizeShadowDOM",J,null);Be=it.nextNode();)Yr("uponSanitizeShadowNode",Be,null),!_s(Be)&&(Be.content instanceof a&&Ke(Be.content),Si(Be));Yr("afterSanitizeShadowDOM",J,null)};return t.sanitize=function(Ke){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,un=null,ar=null;if(ge=!Ke,ge&&(Ke=""),typeof Ke!="string"&&!vs(Ke))if(typeof Ke.toString=="function"){if(Ke=Ke.toString(),typeof Ke!="string")throw cd("dirty is not a string, aborting")}else throw cd("toString is not a function");if(!t.isSupported)return Ke;if(We||Rt(J),t.removed=[],typeof Ke=="string"&&(ye=!1),ye){if(Ke.nodeName){const Oo=Fe(Ke.nodeName);if(!se[Oo]||ie[Oo])throw cd("root node is forbidden and cannot be sanitized in-place")}}else if(Ke instanceof s)Be=si(""),it=Be.ownerDocument.importNode(Ke,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Ze&&Ke.indexOf("<")===-1)return w&&pt?w.createHTML(Ke):Ke;if(Be=si(Ke),!Be)return ot?null:pt?A:""}Be&&dt&&Kr(Be.firstChild);const or=Or(ye?Ke:Be);for(;un=or.nextNode();)_s(un)||(un.content instanceof a&&Nl(un.content),Si(un));if(ye)return Ke;if(ot){if(je)for(ar=N.call(Be.ownerDocument);Be.firstChild;)ar.appendChild(Be.firstChild);else ar=Be;return(pe.shadowroot||pe.shadowrootmode)&&(ar=q.call(r,ar,!0)),ar}let Zn=Ze?Be.outerHTML:Be.innerHTML;return Ze&&se["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ni(eP,Be.ownerDocument.doctype.name)&&(Zn=" + */var R2=60103,N2=60106,nf=60107,rf=60108,af=60114,of=60109,sf=60110,lf=60112,uf=60113,F7=60120,cf=60115,df=60116,xF=60121,IF=60122,RF=60117,NF=60129,OF=60131;if(typeof Symbol=="function"&&Symbol.for){var yr=Symbol.for;R2=yr("react.element"),N2=yr("react.portal"),nf=yr("react.fragment"),rf=yr("react.strict_mode"),af=yr("react.profiler"),of=yr("react.provider"),sf=yr("react.context"),lf=yr("react.forward_ref"),uf=yr("react.suspense"),F7=yr("react.suspense_list"),cf=yr("react.memo"),df=yr("react.lazy"),xF=yr("react.block"),IF=yr("react.server.block"),RF=yr("react.fundamental"),NF=yr("react.debug_trace_mode"),OF=yr("react.legacy_hidden")}function Ja(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R2:switch(e=e.type,e){case nf:case af:case rf:case uf:case F7:return e;default:switch(e=e&&e.$$typeof,e){case sf:case lf:case df:case cf:case of:return e;default:return t}}case N2:return t}}}var $ue=of,zue=R2,Hue=lf,jue=nf,Gue=df,Vue=cf,Wue=N2,que=af,Kue=rf,Yue=uf;yn.ContextConsumer=sf;yn.ContextProvider=$ue;yn.Element=zue;yn.ForwardRef=Hue;yn.Fragment=jue;yn.Lazy=Gue;yn.Memo=Vue;yn.Portal=Wue;yn.Profiler=que;yn.StrictMode=Kue;yn.Suspense=Yue;yn.isAsyncMode=function(){return!1};yn.isConcurrentMode=function(){return!1};yn.isContextConsumer=function(e){return Ja(e)===sf};yn.isContextProvider=function(e){return Ja(e)===of};yn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R2};yn.isForwardRef=function(e){return Ja(e)===lf};yn.isFragment=function(e){return Ja(e)===nf};yn.isLazy=function(e){return Ja(e)===df};yn.isMemo=function(e){return Ja(e)===cf};yn.isPortal=function(e){return Ja(e)===N2};yn.isProfiler=function(e){return Ja(e)===af};yn.isStrictMode=function(e){return Ja(e)===rf};yn.isSuspense=function(e){return Ja(e)===uf};yn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nf||e===af||e===NF||e===rf||e===uf||e===F7||e===OF||typeof e=="object"&&e!==null&&(e.$$typeof===df||e.$$typeof===cf||e.$$typeof===of||e.$$typeof===sf||e.$$typeof===lf||e.$$typeof===RF||e.$$typeof===xF||e[0]===IF)};yn.typeOf=Ja;let mI=e=>typeof e=="object"&&e!=null&&e.nodeType===1,bI=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",u4=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,Xue=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var Zue=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:fe=>fe!==f;if(!mI(e))throw new TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,y=[],T=e;for(;mI(T)&&g(T);){if(T=Xue(T),T===b){y.push(T);break}T!=null&&T===document.body&&u4(T)&&!u4(document.documentElement)||T!=null&&u4(T,m)&&y.push(T)}let E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:R,width:k,top:N,right:B,bottom:q,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?N:c==="end"?q:N+R/2,$=p==="center"?P+k/2:p==="end"?B:P,oe=[];for(let fe=0;fe=0&&P>=0&&q<=v&&B<=E&&N>=W&&q<=D&&P>=pe&&B<=se)return oe;let le=getComputedStyle(ce),L=parseInt(le.borderLeftWidth,10),ie=parseInt(le.borderTopWidth,10),Se=parseInt(le.borderRightWidth,10),X=parseInt(le.borderBottomWidth,10),ke=0,te=0,Me="offsetWidth"in ce?ce.offsetWidth-ce.clientWidth-L-Se:0,Re="offsetHeight"in ce?ce.offsetHeight-ce.clientHeight-ie-X:0,Ye="offsetWidth"in ce?ce.offsetWidth===0?0:H/ce.offsetWidth:0,We="offsetHeight"in ce?ce.offsetHeight===0?0:De/ce.offsetHeight:0;if(b===ce)ke=c==="start"?Q:c==="end"?Q-v:c==="nearest"?V0(A,A+v,v,ie,X,A+Q,A+Q+R,R):Q-v/2,te=p==="start"?$:p==="center"?$-E/2:p==="end"?$-E:V0(w,w+E,E,L,Se,w+$,w+$+k,k),ke=Math.max(0,ke+A),te=Math.max(0,te+w);else{ke=c==="start"?Q-W-ie:c==="end"?Q-D+X+Re:c==="nearest"?V0(W,D,De,ie,X+Re,Q,Q+R,R):Q-(W+De/2)+Re/2,te=p==="start"?$-pe-L:p==="center"?$-(pe+H/2)+Me/2:p==="end"?$-se+Se+Me:V0(pe,se,H,L,Se+Me,$,$+k,k);let{scrollLeft:dt,scrollTop:ot}=ce;ke=Math.max(0,Math.min(ot+ke/We,ce.scrollHeight-De/We+Re)),te=Math.max(0,Math.min(dt+te/Ye,ce.scrollWidth-H/Ye+Me)),Q+=ot-ke,$+=dt-te}oe.push({el:ce,top:ke,left:te})}return oe},$g=function(){return $g=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function q0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=Ap(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function Ap(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?Ap(1,0,n,r,!1):Ap(-1,n-1,n,r,!1):-1}function EI(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(yI(i,e,n)||r&&yI(i,n.document.activeElement,n))})}var r1e=LF(function(e){FF(e).textContent=""},500);function i1e(e,t){var n=FF(t);e&&(n.textContent=e,r1e(t))}function FF(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var a1e=["isInitialMount","highlightedIndex","items","environment"],PF={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function o1e(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){s1e(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(nn({type:i},a))}function s1e(e,t,n,r){var i=t.props,a=t.type,o="on"+P7(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](nn({type:a},r))}function l1e(e,t){return t.changes}function u1e(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var c1e=LF(function(e,t){i1e(e(),t)},200),d1e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function p1e(e){var t=e.id,n=t===void 0?"downshift-"+e1e():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function f1e(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function h1e(e){return e?String(e):""}function P7(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function BF(e){var t=C.useRef(e);return t.current=e,t}function g1e(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=my(m,g.props);var b=e(m,g),y=g.props.stateReducer(m,nn({},g,{changes:b}));return y},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=BF(n),p=C.useCallback(function(m){return u(nn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&o1e(f,my(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Kd={itemToString:h1e,stateReducer:l1e,getA11ySelectionMessage:u1e,scrollIntoView:Jue,environment:typeof window>"u"?{}:window};function bo(e,t,n){n===void 0&&(n=PF);var r=e["default"+P7(t)];return r!==void 0?r:n[t]}function K0(e,t,n){n===void 0&&(n=PF);var r=e[t];if(r!==void 0)return r;var i=e["initial"+P7(t)];return i!==void 0?i:bo(e,t,n)}function m1e(e){var t=K0(e,"selectedItem"),n=K0(e,"isOpen"),r=K0(e,"highlightedIndex"),i=K0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Yd(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function b1e(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!EI(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!EI(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var y1e=function(){return DF};function vI(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=C1(n,a1e);C.useEffect(function(){r||c1e(function(){return e(nn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function E1e(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return d1e(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var v1e=DF;function _I(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return nn({isOpen:!1,highlightedIndex:-1},i&&nn({selectedItem:e.items[t],isOpen:bo(e,"isOpen"),highlightedIndex:bo(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function _1e(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Yd(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:bo(i,"highlightedIndex"),isOpen:bo(i,"isOpen"),selectedItem:bo(i,"selectedItem"),inputValue:bo(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return nn({},e,a)}be.array.isRequired,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.func,be.string,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function T1e(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}$g($g({},Kd),{getA11yStatusMessage:T1e});var B7=0,U7=1,$7=2,z7=3,H7=4,j7=5,G7=6,V7=7,W7=8,zg=9,q7=10,UF=11,$F=12,K7=13,zF=14,HF=15,jF=16,GF=17,VF=18,Y7=19,WF=20,qF=21,X7=22,KF=Object.freeze({__proto__:null,InputKeyDownArrowDown:B7,InputKeyDownArrowUp:U7,InputKeyDownEscape:$7,InputKeyDownHome:z7,InputKeyDownEnd:H7,InputKeyDownPageUp:j7,InputKeyDownPageDown:G7,InputKeyDownEnter:V7,InputChange:W7,InputBlur:zg,InputFocus:q7,MenuMouseLeave:UF,ItemMouseMove:$F,ItemClick:K7,ToggleButtonClick:zF,FunctionToggleMenu:HF,FunctionOpenMenu:jF,FunctionCloseMenu:GF,FunctionSetHighlightedIndex:VF,FunctionSelectItem:Y7,FunctionSetInputValue:WF,FunctionReset:qF,ControlledPropUpdatedSelectedItem:X7});function S1e(e){var t=m1e(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),nn({},t,{inputValue:r})}be.array.isRequired,be.func,be.func,be.func,be.func,be.number,be.number,be.number,be.bool,be.bool,be.bool,be.any,be.any,be.any,be.string,be.string,be.string,be.string,be.string,be.string,be.func,be.string,be.string,be.func,be.func,be.func,be.func,be.func,be.func,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});function w1e(e,t,n){var r=C.useRef(),i=g1e(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){MF(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:X7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[my(a,n),o]}var A1e=nn({},Kd,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:t1e});function C1e(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case K7:o={isOpen:bo(i,"isOpen"),highlightedIndex:bo(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case B7:e.isOpen?o={highlightedIndex:q0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Yd(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case U7:e.isOpen?a?o=_I(i,e.highlightedIndex):o={highlightedIndex:q0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Yd(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case V7:o=_I(i,e.highlightedIndex);break;case $7:o=nn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case j7:o={highlightedIndex:q0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case G7:o={highlightedIndex:q0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case z7:o={highlightedIndex:Ap(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case H7:o={highlightedIndex:Ap(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case zg:o=nn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case W7:o={isOpen:!0,highlightedIndex:bo(i,"highlightedIndex"),inputValue:t.inputValue};break;case q7:o={isOpen:!0,highlightedIndex:Yd(i,e,0)};break;case Y7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case X7:o={inputValue:t.inputValue};break;default:return _1e(e,t,KF)}return nn({},e,o)}var k1e=["onMouseLeave","refKey","ref"],x1e=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],I1e=["onClick","onPress","refKey","ref"],R1e=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];YF.stateChangeTypes=KF;function YF(e){e===void 0&&(e={});var t=nn({},A1e,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=S1e(t),f=w1e(C1e,p,t),m=f[0],g=f[1],b=m.isOpen,y=m.highlightedIndex,T=m.selectedItem,E=m.inputValue,v=C.useRef(null),w=C.useRef({}),A=C.useRef(null),R=C.useRef(null),k=C.useRef(!0),N=p1e(t),B=C.useRef(),q=BF({state:m,props:t}),P=C.useCallback(function(ke){return w.current[N.getItemId(ke)]},[N]);vI(s,[b,y,E,i],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),vI(u,[T],nn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=E1e({menuElement:v.current,highlightedIndex:y,isOpen:b,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});v1e({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var ke=n||r||b;ke&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var $=b1e(b,[A,v,R],o,function(){g({type:zg,selectItem:!1})}),oe=y1e();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var ke;if(!b)w.current={};else if(((ke=o.document)==null?void 0:ke.activeElement)!==A.current){var te;A==null||(te=A.current)==null||te.focus()}},[b,o]);var fe=C.useMemo(function(){return{ArrowDown:function(te){te.preventDefault(),g({type:B7,altKey:te.altKey,getItemNodeFromIndex:P})},ArrowUp:function(te){te.preventDefault(),g({type:U7,altKey:te.altKey,getItemNodeFromIndex:P})},Home:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:z7,getItemNodeFromIndex:P}))},End:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:H7,getItemNodeFromIndex:P}))},Escape:function(te){var Me=q.current.state;(Me.isOpen||Me.inputValue||Me.selectedItem||Me.highlightedIndex>-1)&&(te.preventDefault(),g({type:$7}))},Enter:function(te){var Me=q.current.state;!Me.isOpen||te.which===229||(te.preventDefault(),g({type:V7,getItemNodeFromIndex:P}))},PageUp:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:j7,getItemNodeFromIndex:P}))},PageDown:function(te){q.current.state.isOpen&&(te.preventDefault(),g({type:G7,getItemNodeFromIndex:P}))}}},[g,q,P]),ce=C.useCallback(function(ke){return nn({id:N.labelId,htmlFor:N.inputId},ke)},[N]),De=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ye=Re.onMouseLeave,We=Re.refKey,dt=We===void 0?"ref":We,ot=Re.ref,je=C1(Re,k1e),pt=te===void 0?{}:te;return pt.suppressRefError,nn((Me={},Me[dt]=W0(ot,function(U){v.current=U}),Me.id=N.menuId,Me.role="listbox",Me["aria-labelledby"]=je&&je["aria-label"]?void 0:""+N.labelId,Me.onMouseLeave=qo(Ye,function(){g({type:UF})}),Me),je)},[g,oe,N]),H=C.useCallback(function(ke){var te,Me,Re=ke===void 0?{}:ke,Ye=Re.item,We=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,je=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,re=Re.onClick;Re.onPress;var de=Re.disabled,xe=C1(Re,x1e),ye=q.current,Te=ye.props,Le=ye.state,ze=f1e(Ye,We,Te.items,"Pass either item or index to getItemProps!"),Xe=ze[1],jt="onClick",ue=re,Ee=function(){Xe!==Le.highlightedIndex&&(Q.current=!1,g({type:$F,index:Xe,disabled:de}))},qe=function(){g({type:K7,index:Xe})},j=function(Ve){return Ve.preventDefault()};return nn((te={},te[ot]=W0(je,function(me){me&&(w.current[N.getItemId(Xe)]=me)}),te.disabled=de,te.role="option",te["aria-selected"]=""+(Xe===Le.highlightedIndex),te.id=N.getItemId(Xe),te),!de&&(Me={},Me[jt]=qo(ue,qe),Me),{onMouseMove:qo(pt,Ee),onMouseDown:qo(U,j)},xe)},[g,q,Q,N]),W=C.useCallback(function(ke){var te,Me=ke===void 0?{}:ke,Re=Me.onClick;Me.onPress;var Ye=Me.refKey,We=Ye===void 0?"ref":Ye,dt=Me.ref,ot=C1(Me,I1e),je=q.current.state,pt=function(){g({type:zF})};return nn((te={},te[We]=W0(dt,function(U){R.current=U}),te["aria-controls"]=N.menuId,te["aria-expanded"]=je.isOpen,te.id=N.toggleButtonId,te.tabIndex=-1,te),!ot.disabled&&nn({},{onClick:qo(Re,pt)}),ot)},[g,q,N]),se=C.useCallback(function(ke,te){var Me,Re=ke===void 0?{}:ke,Ye=Re.onKeyDown,We=Re.onChange,dt=Re.onInput,ot=Re.onFocus,je=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,re=Re.ref,de=C1(Re,R1e),xe=te===void 0?{}:te;xe.suppressRefError;var ye=q.current.state,Te=function(j){var me=n1e(j);me&&fe[me]&&fe[me](j)},Le=function(j){g({type:W7,inputValue:j.target.value})},ze=function(j){if(ye.isOpen&&!$.current.isMouseDown){var me=j.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:zg,selectItem:!me})}},Xe=function(){ye.isOpen||g({type:q7})},jt="onChange",ue={};if(!de.disabled){var Ee;ue=(Ee={},Ee[jt]=qo(We,dt,Le),Ee.onKeyDown=qo(Ye,Te),Ee.onBlur=qo(je,ze),Ee.onFocus=qo(ot,Xe),Ee)}return nn((Me={},Me[U]=W0(re,function(qe){A.current=qe}),Me["aria-activedescendant"]=ye.isOpen&&ye.highlightedIndex>-1?N.getItemId(ye.highlightedIndex):"",Me["aria-autocomplete"]="list",Me["aria-controls"]=N.menuId,Me["aria-expanded"]=ye.isOpen,Me["aria-labelledby"]=de&&de["aria-label"]?void 0:""+N.labelId,Me.autoComplete="off",Me.id=N.inputId,Me.role="combobox",Me.value=ye.inputValue,Me),ue,de)},[oe,q,N,fe,g,$,o]),D=C.useCallback(function(){g({type:HF})},[g]),pe=C.useCallback(function(){g({type:GF})},[g]),le=C.useCallback(function(){g({type:jF})},[g]),L=C.useCallback(function(ke){g({type:VF,highlightedIndex:ke})},[g]),ie=C.useCallback(function(ke){g({type:Y7,selectedItem:ke})},[g]),Se=C.useCallback(function(ke){g({type:WF,inputValue:ke})},[g]),X=C.useCallback(function(){g({type:qF})},[g]);return{getItemProps:H,getLabelProps:ce,getMenuProps:De,getInputProps:se,getToggleButtonProps:W,toggleMenu:D,openMenu:le,closeMenu:pe,setHighlightedIndex:L,setInputValue:Se,selectItem:ie,reset:X,highlightedIndex:y,isOpen:b,selectedItem:T,inputValue:E}}function N1e(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}be.array,be.array,be.array,be.func,be.func,be.func,be.number,be.number,be.number,be.func,be.func,be.string,be.string,be.shape({addEventListener:be.func,removeEventListener:be.func,document:be.shape({getElementById:be.func,activeElement:be.any,body:be.any})});Kd.itemToString,Kd.stateReducer,Kd.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:XF,setPrototypeOf:TI,isFrozen:O1e,getPrototypeOf:D1e,getOwnPropertyDescriptor:ZF}=Object;let{freeze:ii,seal:Ya,create:QF}=Object,{apply:by,construct:yy}=typeof Reflect<"u"&&Reflect;ii||(ii=function(t){return t});Ya||(Ya=function(t){return t});by||(by=function(t,n,r){return t.apply(n,r)});yy||(yy=function(t,n){return new t(...n)});const Y0=va(Array.prototype.forEach),SI=va(Array.prototype.pop),ld=va(Array.prototype.push),Fh=va(String.prototype.toLowerCase),c4=va(String.prototype.toString),L1e=va(String.prototype.match),ud=va(String.prototype.replace),M1e=va(String.prototype.indexOf),F1e=va(String.prototype.trim),Ni=va(RegExp.prototype.test),cd=P1e(TypeError);function va(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Fh;TI&&TI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(O1e(t)||(t[r]=a),i=a)}e[i]=!0}return e}function r1(e){const t=QF(null);for(const[n,r]of XF(e))ZF(e,n)!==void 0&&(t[n]=r);return t}function X0(e,t){for(;e!==null;){const r=ZF(e,t);if(r){if(r.get)return va(r.get);if(typeof r.value=="function")return va(r.value)}e=D1e(e)}function n(r){return console.warn("fallback value for",r),null}return n}const wI=ii(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),d4=ii(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),p4=ii(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B1e=ii(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),f4=ii(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U1e=ii(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),AI=ii(["#text"]),CI=ii(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),h4=ii(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kI=ii(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z0=ii(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$1e=Ya(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z1e=Ya(/<%[\w\W]*|[\w\W]*%>/gm),H1e=Ya(/\${[\w\W]*}/gm),j1e=Ya(/^data-[\-\w.\u00B7-\uFFFF]/),G1e=Ya(/^aria-[\-\w]+$/),JF=Ya(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V1e=Ya(/^(?:\w+script|data):/i),W1e=Ya(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eP=Ya(/^html$/i);var xI=Object.freeze({__proto__:null,MUSTACHE_EXPR:$1e,ERB_EXPR:z1e,TMPLIT_EXPR:H1e,DATA_ATTR:j1e,ARIA_ATTR:G1e,IS_ALLOWED_URI:JF,IS_SCRIPT_OR_DATA:V1e,ATTR_WHITESPACE:W1e,DOCTYPE_NAME:eP});const q1e=function(){return typeof window>"u"?null:window},K1e=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function tP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q1e();const t=Ke=>tP(Ke);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,b=u.prototype,y=X0(b,"cloneNode"),T=X0(b,"nextSibling"),E=X0(b,"childNodes"),v=X0(b,"parentNode");if(typeof o=="function"){const Ke=n.createElement("template");Ke.content&&Ke.content.ownerDocument&&(n=Ke.content.ownerDocument)}let w,A="";const{implementation:R,createNodeIterator:k,createDocumentFragment:N,getElementsByTagName:B}=n,{importNode:q}=r;let P={};t.isSupported=typeof XF=="function"&&typeof v=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:$,TMPLIT_EXPR:oe,DATA_ATTR:fe,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:H}=xI;let{IS_ALLOWED_URI:W}=xI,se=null;const D=At({},[...wI,...d4,...p4,...f4,...AI]);let pe=null;const le=At({},[...CI,...h4,...kI,...Z0]);let L=Object.seal(QF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Se=null,X=!0,ke=!0,te=!1,Me=!0,Re=!1,Ye=!1,We=!1,dt=!1,ot=!1,je=!1,pt=!1,U=!0,re=!1;const de="user-content-";let xe=!0,ye=!1,Te={},Le=null;const ze=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Xe=null;const jt=At({},["audio","video","img","source","image","track"]);let ue=null;const Ee=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",j="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let Ve=me,ge=!1,G=null;const K=At({},[qe,j,me],c4);let ne=null;const ve=["application/xhtml+xml","text/html"],Qe="text/html";let Fe=null,at=null;const rt=n.createElement("form"),Je=function(J){return J instanceof RegExp||J instanceof Function},Rt=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(at&&at===J)){if((!J||typeof J!="object")&&(J={}),J=r1(J),ne=ve.indexOf(J.PARSER_MEDIA_TYPE)===-1?ne=Qe:ne=J.PARSER_MEDIA_TYPE,Fe=ne==="application/xhtml+xml"?c4:Fh,se="ALLOWED_TAGS"in J?At({},J.ALLOWED_TAGS,Fe):D,pe="ALLOWED_ATTR"in J?At({},J.ALLOWED_ATTR,Fe):le,G="ALLOWED_NAMESPACES"in J?At({},J.ALLOWED_NAMESPACES,c4):K,ue="ADD_URI_SAFE_ATTR"in J?At(r1(Ee),J.ADD_URI_SAFE_ATTR,Fe):Ee,Xe="ADD_DATA_URI_TAGS"in J?At(r1(jt),J.ADD_DATA_URI_TAGS,Fe):jt,Le="FORBID_CONTENTS"in J?At({},J.FORBID_CONTENTS,Fe):ze,ie="FORBID_TAGS"in J?At({},J.FORBID_TAGS,Fe):{},Se="FORBID_ATTR"in J?At({},J.FORBID_ATTR,Fe):{},Te="USE_PROFILES"in J?J.USE_PROFILES:!1,X=J.ALLOW_ARIA_ATTR!==!1,ke=J.ALLOW_DATA_ATTR!==!1,te=J.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=J.SAFE_FOR_TEMPLATES||!1,Ye=J.WHOLE_DOCUMENT||!1,ot=J.RETURN_DOM||!1,je=J.RETURN_DOM_FRAGMENT||!1,pt=J.RETURN_TRUSTED_TYPE||!1,dt=J.FORCE_BODY||!1,U=J.SANITIZE_DOM!==!1,re=J.SANITIZE_NAMED_PROPS||!1,xe=J.KEEP_CONTENT!==!1,ye=J.IN_PLACE||!1,W=J.ALLOWED_URI_REGEXP||JF,Ve=J.NAMESPACE||me,L=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(ke=!1),je&&(ot=!0),Te&&(se=At({},[...AI]),pe=[],Te.html===!0&&(At(se,wI),At(pe,CI)),Te.svg===!0&&(At(se,d4),At(pe,h4),At(pe,Z0)),Te.svgFilters===!0&&(At(se,p4),At(pe,h4),At(pe,Z0)),Te.mathMl===!0&&(At(se,f4),At(pe,kI),At(pe,Z0))),J.ADD_TAGS&&(se===D&&(se=r1(se)),At(se,J.ADD_TAGS,Fe)),J.ADD_ATTR&&(pe===le&&(pe=r1(pe)),At(pe,J.ADD_ATTR,Fe)),J.ADD_URI_SAFE_ATTR&&At(ue,J.ADD_URI_SAFE_ATTR,Fe),J.FORBID_CONTENTS&&(Le===ze&&(Le=r1(Le)),At(Le,J.FORBID_CONTENTS,Fe)),xe&&(se["#text"]=!0),Ye&&At(se,["html","head","body"]),se.table&&(At(se,["tbody"]),delete ie.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=J.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=K1e(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ii&&ii(J),at=J}},Qt=At({},["mi","mo","mn","ms","mtext"]),kt=At({},["foreignobject","desc","title","annotation-xml"]),rn=At({},["title","style","font","a","script"]),Xt=At({},d4);At(Xt,p4),At(Xt,B1e);const Wr=At({},f4);At(Wr,U1e);const qr=function(J){let Be=v(J);(!Be||!Be.tagName)&&(Be={namespaceURI:Ve,tagName:"template"});const it=Fh(J.tagName),un=Fh(Be.tagName);return G[J.namespaceURI]?J.namespaceURI===j?Be.namespaceURI===me?it==="svg":Be.namespaceURI===qe?it==="svg"&&(un==="annotation-xml"||Qt[un]):!!Xt[it]:J.namespaceURI===qe?Be.namespaceURI===me?it==="math":Be.namespaceURI===j?it==="math"&&kt[un]:!!Wr[it]:J.namespaceURI===me?Be.namespaceURI===j&&!kt[un]||Be.namespaceURI===qe&&!Qt[un]?!1:!Wr[it]&&(rn[it]||!Xt[it]):!!(ne==="application/xhtml+xml"&&G[J.namespaceURI]):!1},Kr=function(J){ld(t.removed,{element:J});try{J.parentNode.removeChild(J)}catch{J.remove()}},Aa=function(J,Be){try{ld(t.removed,{attribute:Be.getAttributeNode(J),from:Be})}catch{ld(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(J),J==="is"&&!pe[J])if(ot||je)try{Kr(Be)}catch{}else try{Be.setAttribute(J,"")}catch{}},si=function(J){let Be=null,it=null;if(dt)J=""+J;else{const or=L1e(J,/^[\r\n\t ]+/);it=or&&or[0]}ne==="application/xhtml+xml"&&Ve===me&&(J=''+J+"");const un=w?w.createHTML(J):J;if(Ve===me)try{Be=new m().parseFromString(un,ne)}catch{}if(!Be||!Be.documentElement){Be=R.createDocument(Ve,"template",null);try{Be.documentElement.innerHTML=ge?A:un}catch{}}const ar=Be.body||Be.documentElement;return J&&it&&ar.insertBefore(n.createTextNode(it),ar.childNodes[0]||null),Ve===me?B.call(Be,Ye?"html":"body")[0]:Ye?Be.documentElement:ar},Or=function(J){return k.call(J.ownerDocument||J,J,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Es=function(J){return J instanceof f&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof p)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},vs=function(J){return typeof s=="function"&&J instanceof s},Yr=function(J,Be,it){P[J]&&Y0(P[J],un=>{un.call(t,Be,it,at)})},_s=function(J){let Be=null;if(Yr("beforeSanitizeElements",J,null),Es(J))return Kr(J),!0;const it=Fe(J.nodeName);if(Yr("uponSanitizeElement",J,{tagName:it,allowedTags:se}),J.hasChildNodes()&&!vs(J.firstElementChild)&&Ni(/<[/\w]/g,J.innerHTML)&&Ni(/<[/\w]/g,J.textContent))return Kr(J),!0;if(!se[it]||ie[it]){if(!ie[it]&&Dr(it)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it)))return!1;if(xe&&!Le[it]){const un=v(J)||J.parentNode,ar=E(J)||J.childNodes;if(ar&&un){const or=ar.length;for(let Zn=or-1;Zn>=0;--Zn)un.insertBefore(y(ar[Zn],!0),T(J))}}return Kr(J),!0}return J instanceof u&&!qr(J)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ni(/<\/no(script|embed|frames)/i,J.innerHTML)?(Kr(J),!0):(Re&&J.nodeType===3&&(Be=J.textContent,Y0([Q,$,oe],un=>{Be=ud(Be,un," ")}),J.textContent!==Be&&(ld(t.removed,{element:J.cloneNode()}),J.textContent=Be)),Yr("afterSanitizeElements",J,null),!1)},qt=function(J,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in rt))return!1;if(!(ke&&!Se[Be]&&Ni(fe,Be))){if(!(X&&Ni(ce,Be))){if(!pe[Be]||Se[Be]){if(!(Dr(J)&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,J)||L.tagNameCheck instanceof Function&&L.tagNameCheck(J))&&(L.attributeNameCheck instanceof RegExp&&Ni(L.attributeNameCheck,Be)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(Be))||Be==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&Ni(L.tagNameCheck,it)||L.tagNameCheck instanceof Function&&L.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ni(W,ud(it,H,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&J!=="script"&&M1e(it,"data:")===0&&Xe[J])){if(!(te&&!Ni(De,ud(it,H,"")))){if(it)return!1}}}}}}return!0},Dr=function(J){return J.indexOf("-")>0},Si=function(J){Yr("beforeSanitizeAttributes",J,null);const{attributes:Be}=J;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};let un=Be.length;for(;un--;){const ar=Be[un],{name:or,namespaceURI:Zn,value:Oo}=ar,no=Fe(or);let Lr=or==="value"?Oo:F1e(Oo);if(it.attrName=no,it.attrValue=Lr,it.keepAttr=!0,it.forceKeepAttr=void 0,Yr("uponSanitizeAttribute",J,it),Lr=it.attrValue,it.forceKeepAttr||(Aa(or,J),!it.keepAttr))continue;if(!Me&&Ni(/\/>/i,Lr)){Aa(or,J);continue}Re&&Y0([Q,$,oe],vf=>{Lr=ud(Lr,vf," ")});const Ef=Fe(J.nodeName);if(qt(Ef,no,Lr)){if(re&&(no==="id"||no==="name")&&(Aa(or,J),Lr=de+Lr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Zn)switch(g.getAttributeType(Ef,no)){case"TrustedHTML":{Lr=w.createHTML(Lr);break}case"TrustedScriptURL":{Lr=w.createScriptURL(Lr);break}}try{Zn?J.setAttributeNS(Zn,or,Lr):J.setAttribute(or,Lr),SI(t.removed)}catch{}}}Yr("afterSanitizeAttributes",J,null)},Nl=function Ke(J){let Be=null;const it=Or(J);for(Yr("beforeSanitizeShadowDOM",J,null);Be=it.nextNode();)Yr("uponSanitizeShadowNode",Be,null),!_s(Be)&&(Be.content instanceof a&&Ke(Be.content),Si(Be));Yr("afterSanitizeShadowDOM",J,null)};return t.sanitize=function(Ke){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,un=null,ar=null;if(ge=!Ke,ge&&(Ke=""),typeof Ke!="string"&&!vs(Ke))if(typeof Ke.toString=="function"){if(Ke=Ke.toString(),typeof Ke!="string")throw cd("dirty is not a string, aborting")}else throw cd("toString is not a function");if(!t.isSupported)return Ke;if(We||Rt(J),t.removed=[],typeof Ke=="string"&&(ye=!1),ye){if(Ke.nodeName){const Oo=Fe(Ke.nodeName);if(!se[Oo]||ie[Oo])throw cd("root node is forbidden and cannot be sanitized in-place")}}else if(Ke instanceof s)Be=si(""),it=Be.ownerDocument.importNode(Ke,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Ye&&Ke.indexOf("<")===-1)return w&&pt?w.createHTML(Ke):Ke;if(Be=si(Ke),!Be)return ot?null:pt?A:""}Be&&dt&&Kr(Be.firstChild);const or=Or(ye?Ke:Be);for(;un=or.nextNode();)_s(un)||(un.content instanceof a&&Nl(un.content),Si(un));if(ye)return Ke;if(ot){if(je)for(ar=N.call(Be.ownerDocument);Be.firstChild;)ar.appendChild(Be.firstChild);else ar=Be;return(pe.shadowroot||pe.shadowrootmode)&&(ar=q.call(r,ar,!0)),ar}let Zn=Ye?Be.outerHTML:Be.innerHTML;return Ye&&se["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ni(eP,Be.ownerDocument.doctype.name)&&(Zn=" `+Zn),Re&&Y0([Q,$,oe],Oo=>{Zn=ud(Zn,Oo," ")}),w&&pt?w.createHTML(Zn):Zn},t.setConfig=function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rt(Ke),We=!0},t.clearConfig=function(){at=null,We=!1},t.isValidAttribute=function(Ke,J,Be){at||Rt({});const it=Fe(Ke),un=Fe(J);return qt(it,un,Be)},t.addHook=function(Ke,J){typeof J=="function"&&(P[Ke]=P[Ke]||[],ld(P[Ke],J))},t.removeHook=function(Ke){if(P[Ke])return SI(P[Ke])},t.removeHooks=function(Ke){P[Ke]&&(P[Ke]=[])},t.removeAllHooks=function(){P={}},t}var Y1e=tP(),Z7={};const X1e={folder:["folder","white"],"karma.conf.js":["karma","green"],"karma.conf.coffee":["karma","green"],"README.md":["info","blue"],"CHANGELOG.md":["clock","blue"],CHANGELOG:["clock","blue"],"CHANGES.md":["clock","blue"],"VERSION.md":["clock","blue"],VERSION:["clock","blue"],mvnw:["maven","red"],"tsconfig.json":["tsconfig","blue"],"swagger.json":["json","green"],"swagger.yml":["json","green"],"swagger.yaml":["json","green"],"mime.types":["config","grey-light"],Jenkinsfile:["jenkins","red"],"babel.config.js":["babel","yellow"],"babel.config.json":["babel","yellow"],"babel.config.cjs":["babel","yellow"],"bower.json":["bower","orange"],"Bower.json":["bower","orange"],"firebase.json":["firebase","orange"],geckodriver:["firefox","orange"],"Gruntfile.js":["grunt","orange"],"gruntfile.babel.js":["grunt","orange"],"Gruntfile.babel.js":["grunt","orange"],"gruntfile.js":["grunt","orange"],"Gruntfile.coffee":["grunt","orange"],"gruntfile.coffee":["grunt","orange"],"ionic.config.json":["ionic","blue"],"Ionic.config.json":["ionic","blue"],"ionic.project":["ionic","blue"],"Ionic.project":["ionic","blue"],"platformio.ini":["platformio","orange"],"rollup.config.js":["rollup","red"],"sass-lint.yml":["sass","pink"],"stylelint.config.js":["stylelint","white"],"stylelint.config.cjs":["stylelint","white"],"yarn.clean":["yarn","blue"],"yarn.lock":["yarn","blue"],"webpack.config.js":["webpack","blue"],"webpack.config.build.js":["webpack","blue"],"webpack.common.js":["webpack","blue"],"webpack.dev.js":["webpack","blue"],"webpack.prod.js":["webpack","blue"],"npm-debug.log":["npm_ignored","ignore"]},Z1e={".bsl":["bsl","red"],".mdo":["mdo","red"],".cls":["salesforce","blue"],".apex":["salesforce","blue"],".asm":["asm","red"],".s":["asm","red"],".bicep":["bicep","blue"],".c":["c","blue"],".h":["c","purple"],".m":["c","yellow"],".cs":["c-sharp","blue"],".cshtml":["html","blue"],".aspx":["html","blue"],".ascx":["html","green"],".asax":["html","yellow"],".master":["html","yellow"],".cc":["cpp","blue"],".cpp":["cpp","blue"],".cxx":["cpp","blue"],".c++":["cpp","blue"],".hh":["cpp","purple"],".hpp":["cpp","purple"],".hxx":["cpp","purple"],".h++":["cpp","purple"],".mm":["cpp","yellow"],".clj":["clojure","green"],".cljs":["clojure","green"],".cljc":["clojure","green"],".edn":["clojure","blue"],".cfc":["coldfusion","blue"],".cfm":["coldfusion","blue"],".coffee":["coffee","yellow"],".litcoffee":["coffee","yellow"],".config":["config","grey-light"],".cfg":["config","grey-light"],".conf":["config","grey-light"],".cr":["crystal","white"],".ecr":["crystal_embedded","white"],".slang":["crystal_embedded","white"],".cson":["json","yellow"],".css":["css","blue"],".css.map":["css","blue"],".sss":["css","blue"],".csv":["csv","green"],".xls":["xls","green"],".xlsx":["xls","green"],".cu":["cu","green"],".cuh":["cu","purple"],".hu":["cu","purple"],".cake":["cake","red"],".ctp":["cake_php","red"],".d":["d","red"],".doc":["word","blue"],".docx":["word","blue"],".ejs":["ejs","yellow"],".ex":["elixir","purple"],".exs":["elixir_script","purple"],".elm":["elm","blue"],".ico":["favicon","yellow"],".fs":["f-sharp","blue"],".fsx":["f-sharp","blue"],".gitignore":["git","ignore"],".gitconfig":["git","ignore"],".gitkeep":["git","ignore"],".gitattributes":["git","ignore"],".gitmodules":["git","ignore"],".go":["go2","blue"],".slide":["go","blue"],".article":["go","blue"],".gd":["godot","blue"],".godot":["godot","red"],".tres":["godot","yellow"],".tscn":["godot","purple"],".gradle":["gradle","blue"],".groovy":["grails","green"],".gsp":["grails","green"],".gql":["graphql","pink"],".graphql":["graphql","pink"],".graphqls":["graphql","pink"],".hack":["hacklang","orange"],".haml":["haml","red"],".handlebars":["mustache","orange"],".hbs":["mustache","orange"],".hjs":["mustache","orange"],".hs":["haskell","purple"],".lhs":["haskell","purple"],".hx":["haxe","orange"],".hxs":["haxe","yellow"],".hxp":["haxe","blue"],".hxml":["haxe","purple"],".html":["html","orange"],".jade":["jade","red"],".java":["java","red"],".class":["java","red"],".classpath":["java","red"],".properties":["java","red"],".js":["javascript","yellow"],".js.map":["javascript","yellow"],".spec.js":["javascript","orange"],".test.js":["javascript","orange"],".es":["javascript","yellow"],".es5":["javascript","yellow"],".es6":["javascript","yellow"],".es7":["javascript","yellow"],".jinja":["jinja","red"],".jinja2":["jinja","red"],".json":["json","yellow"],".jl":["julia","purple"],".kt":["kotlin","orange"],".kts":["kotlin","orange"],".dart":["dart","blue"],".less":["less","blue"],".liquid":["liquid","green"],".ls":["livescript","blue"],".lua":["lua","blue"],".markdown":["markdown","blue"],".md":["markdown","blue"],".argdown":["argdown","blue"],".ad":["argdown","blue"],".mustache":["mustache","orange"],".stache":["mustache","orange"],".nim":["nim","yellow"],".nims":["nim","yellow"],".github-issues":["github","white"],".ipynb":["notebook","blue"],".njk":["nunjucks","green"],".nunjucks":["nunjucks","green"],".nunjs":["nunjucks","green"],".nunj":["nunjucks","green"],".njs":["nunjucks","green"],".nj":["nunjucks","green"],".npm-debug.log":["npm","ignore"],".npmignore":["npm","red"],".npmrc":["npm","red"],".ml":["ocaml","orange"],".mli":["ocaml","orange"],".cmx":["ocaml","orange"],".cmxa":["ocaml","orange"],".odata":["odata","orange"],".pl":["perl","blue"],".php":["php","purple"],".php.inc":["php","purple"],".pipeline":["pipeline","orange"],".pddl":["pddl","purple"],".plan":["plan","green"],".happenings":["happenings","blue"],".ps1":["powershell","blue"],".psd1":["powershell","blue"],".psm1":["powershell","blue"],".prisma":["prisma","blue"],".pug":["pug","red"],".pp":["puppet","yellow"],".epp":["puppet","yellow"],".purs":["purescript","white"],".py":["python","blue"],".jsx":["react","blue"],".spec.jsx":["react","orange"],".test.jsx":["react","orange"],".cjsx":["react","blue"],".spec.tsx":["react","orange"],".test.tsx":["react","orange"],".re":["reasonml","red"],".res":["rescript","red"],".resi":["rescript","pink"],".R":["R","blue"],".rmd":["R","blue"],".rb":["ruby","red"],".erb":["html_erb","red"],".erb.html":["html_erb","red"],".html.erb":["html_erb","red"],".rs":["rust","grey-light"],".sass":["sass","pink"],".scss":["sass","pink"],".springBeans":["spring","green"],".slim":["slim","orange"],".smarty.tpl":["smarty","yellow"],".tpl":["smarty","yellow"],".sbt":["sbt","blue"],".scala":["scala","red"],".sol":["ethereum","blue"],".styl":["stylus","green"],".svelte":["svelte","red"],".swift":["swift","orange"],".sql":["db","pink"],".soql":["db","blue"],".tf":["terraform","purple"],".tf.json":["terraform","purple"],".tfvars":["terraform","purple"],".tex":["tex","blue"],".sty":["tex","yellow"],".dtx":["tex","orange"],".ins":["tex","white"],".txt":["default","white"],".toml":["config","grey-light"],".twig":["twig","green"],".ts":["typescript","blue"],".tsx":["typescript","blue"],".spec.ts":["typescript","orange"],".test.ts":["typescript","orange"],".vala":["vala","grey-light"],".vapi":["vala","grey-light"],".component":["html","orange"],".vue":["vue","green"],".wasm":["wasm","purple"],".wat":["wat","purple"],".xml":["xml","orange"],".yml":["yml","purple"],".yaml":["yml","purple"],".pro":["prolog","orange"],".jar":["zip","red"],".zip":["zip","grey-light"],".wgt":["wgt","blue"],".ai":["illustrator","yellow"],".psd":["photoshop","blue"],".pdf":["pdf","red"],".eot":["font","red"],".ttf":["font","red"],".woff":["font","red"],".woff2":["font","red"],".gif":["image","purple"],".jpg":["image","purple"],".jpeg":["image","purple"],".png":["image","purple"],".pxm":["image","purple"],".svg":["svg","purple"],".svgx":["image","purple"],".tiff":["image","purple"],".webp":["image","purple"],".sublime-project":["sublime","orange"],".sublime-workspace":["sublime","orange"],".code-search":["code-search","purple"],".sh":["shell","green"],".zsh":["shell","green"],".fish":["shell","green"],".zshrc":["shell","green"],".bashrc":["shell","green"],".mov":["video","pink"],".ogv":["video","pink"],".webm":["video","pink"],".avi":["video","pink"],".mpg":["video","pink"],".mp4":["video","pink"],".mp3":["audio","purple"],".ogg":["audio","purple"],".wav":["audio","purple"],".flac":["audio","purple"],".3ds":["svg","blue"],".3dm":["svg","blue"],".stl":["svg","blue"],".obj":["svg","blue"],".dae":["svg","blue"],".bat":["windows","blue"],".cmd":["windows","blue"],".babelrc":["babel","yellow"],".babelrc.js":["babel","yellow"],".babelrc.cjs":["babel","yellow"],".bowerrc":["bower","orange"],".codeclimate.yml":["code-climate","green"],".eslintrc":["eslint","purple"],".eslintrc.js":["eslint","purple"],".eslintrc.cjs":["eslint","purple"],".eslintrc.yaml":["eslint","purple"],".eslintrc.yml":["eslint","purple"],".eslintrc.json":["eslint","purple"],".eslintignore":["eslint","grey"],".firebaserc":["firebase","orange"],".jshintrc":["javascript","blue"],".jscsrc":["javascript","blue"],".stylelintrc":["stylelint","white"],".stylelintrc.json":["stylelint","white"],".stylelintrc.yaml":["stylelint","white"],".stylelintrc.yml":["stylelint","white"],".stylelintrc.js":["stylelint","white"],".stylelintignore":["stylelint","grey"],".direnv":["config","grey-light"],".env":["config","grey-light"],".static":["config","grey-light"],".editorconfig":["config","grey-light"],".slugignore":["config","grey-light"],".tmp":["clock","grey-light"],".htaccess":["config","grey-light"],".key":["lock","green"],".cert":["lock","green"],".cer":["lock","green"],".crt":["lock","green"],".pem":["lock","green"],".DS_Store":["ignored","ignore"]},Q1e=[["TODO",["todo","blue"]],["Procfile",["heroku","purple"]],["cmakelists.txt",["makefile","blue"]],["CMakeLists.txt",["makefile","blue"]],["CMAKELISTS.txt",["makefile","blue"]],["CMAKELISTS.TXT",["makefile","blue"]],["omakefile",["makefile","grey-light"]],["OMakefile",["makefile","grey-light"]],["OMAKEFILE",["makefile","grey-light"]],["qmakefile",["makefile","purple"]],["QMakefile",["makefile","purple"]],["QMAKEFILE",["makefile","purple"]],["makefile",["makefile","orange"]],["Makefile",["makefile","orange"]],["MAKEFILE",["makefile","orange"]],["CONTRIBUTING",["license","red"]],["COMPILING",["license","orange"]],["COPYING",["license","yellow"]],["LICENCE.md",["license","yellow"]],["LICENSE.md",["license","yellow"]],["LICENCE",["license","yellow"]],["LICENSE",["license","yellow"]],["gulpfile.js",["gulp","red"]],["gulpfile",["gulp","red"]],["Gulpfile",["gulp","red"]],["GULPFILE",["gulp","red"]],["docker-compose.override.yaml",["docker","pink"]],["docker-compose.override.yml",["docker","pink"]],["docker-compose.yaml",["docker","pink"]],["docker-compose.yml",["docker","pink"]],["docker-healthcheck",["docker","green"]],[".dockerignore",["docker","grey"]],["DOCKERFILE",["docker","blue"]],["Dockerfile",["docker","blue"]],["dockerfile",["docker","blue"]],["gemfile",["ruby","red"]],["Gemfile",["ruby","red"]],["mix",["hex","red"]]],J1e={files:X1e,extensions:Z1e,partials:Q1e,default:["default","white"]},ece='',tce='',nce='',rce='',ice='',ace='',oce='',sce='',lce='',uce='',cce='',dce='',pce='',fce='',hce='',gce='',mce='',bce='',yce='',Ece='',vce='',_ce='',Tce='',Sce='',wce='',Ace='',Cce='',kce='',xce='',Ice='',Rce='',Nce='',Oce='',Dce='',Lce='',Mce='',Fce='',Pce='',Bce='',Uce='',$ce='',zce='',Hce='',jce='',Gce='',Vce='',Wce='',qce='',Kce='',Yce='',Xce='',Zce='',Qce='',Jce='',ede='',tde='',nde='',rde='',ide='',ade='',ode='',sde='',lde='',ude='',cde='',dde='',pde='',fde='',hde='',gde='',mde='',bde='',yde='',Ede='',vde='',_de='',Tde='',Sde='',wde='',Ade='',Cde='',kde='',xde='',Ide='',Rde='',Nde='',Ode='',Dde='',Lde='',Mde='',Fde='',Pde='',Bde='',Ude='',$de='',zde='',Hde='',jde='',Gde='',Vde='',Wde='',qde='',Kde='',Yde='',Xde='',Zde='',Qde='',Jde='',epe='',tpe='',npe='',rpe='',ipe='',ape='',ope='',spe='',lpe='',upe='',cpe='',dpe='',ppe='',fpe='',hpe='',gpe='',mpe='',bpe='',ype='',Epe='',vpe='',_pe='',Tpe='',Spe='',wpe='',Ape='',Cpe='',kpe='',xpe='',Ipe='',Rpe='',Npe='',Ope='',Dpe='',Lpe='',Mpe={folder:ece,bsl:tce,mdo:nce,salesforce:rce,asm:ice,bicep:ace,c:oce,"c-sharp":'',html:sce,cpp:lce,clojure:uce,coldfusion:cce,coffee:dce,config:pce,crystal:fce,crystal_embedded:hce,json:gce,css:mce,csv:bce,xls:yce,cu:Ece,cake:vce,cake_php:_ce,d:Tce,word:Sce,ejs:wce,elixir:Ace,elixir_script:Cce,hex:kce,elm:xce,favicon:Ice,"f-sharp":'',git:Rce,go2:Nce,go:Oce,godot:Dce,gradle:Lce,grails:Mce,graphql:Fce,hacklang:Pce,haml:Bce,mustache:Uce,haskell:$ce,haxe:zce,jade:Hce,java:jce,javascript:Gce,jinja:Vce,julia:Wce,karma:qce,kotlin:Kce,dart:Yce,less:Xce,liquid:Zce,livescript:Qce,lua:Jce,markdown:ede,argdown:tde,info:nde,clock:rde,maven:ide,nim:ade,github:ode,notebook:sde,nunjucks:lde,npm:ude,ocaml:cde,odata:dde,perl:pde,php:fde,pipeline:hde,pddl:gde,plan:mde,happenings:bde,powershell:yde,prisma:Ede,pug:vde,puppet:_de,purescript:Tde,python:Sde,react:wde,reasonml:Ade,rescript:Cde,R:kde,ruby:xde,html_erb:Ide,rust:Rde,sass:Nde,spring:Ode,slim:Dde,smarty:Lde,sbt:Mde,scala:Fde,ethereum:Pde,stylus:Bde,svelte:Ude,swift:$de,db:zde,terraform:Hde,tex:jde,default:'',twig:Gde,typescript:Vde,tsconfig:Wde,vala:qde,vue:Kde,wasm:Yde,wat:Xde,xml:Zde,yml:Qde,prolog:Jde,zip:epe,wgt:tpe,illustrator:npe,photoshop:rpe,pdf:ipe,font:ape,image:ope,svg:spe,sublime:lpe,"code-search":'',shell:upe,video:cpe,audio:dpe,windows:ppe,jenkins:fpe,babel:hpe,bower:gpe,docker:mpe,"code-climate":'',eslint:bpe,firebase:ype,firefox:Epe,grunt:vpe,gulp:_pe,ionic:Tpe,platformio:Spe,rollup:wpe,stylelint:Ape,yarn:Cpe,webpack:kpe,lock:xpe,license:Ipe,makefile:Rpe,heroku:Npe,todo:Ope,npm_ignored:Dpe,ignored:Lpe};var Hg=Jl&&Jl.__assign||function(){return Hg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return i[1]}return i1.default},nP=function(e){var t=Upe(e),n=t[0],r=t[1];return{svg:Bpe[n],color:r}};Z7.getIcon=nP;var $pe=function(e){return function(t){var n=nP(t);return Hg(Hg({},n),{color:e[n.color]})}},zpe=Z7.themeIcons=$pe;const Ey=({filename:e,height:t,width:n})=>{const r=zpe({blue:"#268bd2",grey:"#657b83","grey-light":"#839496",green:"#859900",orange:"#cb4b16",pink:"#d33682",purple:"#6c71c4",red:"#dc322f",white:"#fdf6e3",yellow:"#b58900",ignore:"#586e75"}),{svg:i,color:a}=r(e),o=Y1e.sanitize(i);return I.jsx("div",{dangerouslySetInnerHTML:{__html:o},style:{width:n,height:t,fill:a}})};var Q7={};Object.defineProperty(Q7,"__esModule",{value:!0});Q7.testFunc=void 0;var Hpe=function(){console.log("test")};Q7.testFunc=Hpe;function jpe(e,t){var n;if(typeof vscode>"u"){if(localStorage.getItem("ide"),window.postIntellijMessage===void 0)throw console.log("Unable to send message: postIntellijMessage is undefined. ",e,t),new Error("postIntellijMessage is undefined");(n=window.postIntellijMessage)==null||n.call(window,e,t);return}vscode.postMessage({type:e,...t})}function qa(e,t,n=0){try{jpe(e,t)}catch(r){n<5?(console.log(`Attempt ${n} failed. Retrying...`),setTimeout(()=>qa(e,t,n+1),Math.pow(2,n)*1e3)):console.error("Max attempts reached. Message could not be sent.",r)}}var rP={exports:{}},iP={};/** * @license React * use-sync-external-store-shim.production.min.js @@ -606,11 +606,11 @@ Hint: It might not be working because maybe you're not up to date with the Meili ${({isLastItem:e})=>e&&"border-bottom: 1px solid gray;"} cursor: pointer; z-index: 500; -`,QI=st.forwardRef((e,t)=>{var Te,Le,ze,Ye,jt,ue,Ee,qe;const n=zt(j=>j.serverState.meilisearchUrl||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const j=new G0e({host:n});i(j)},[n]);const a=C.useContext(to),o=eo(),s=zt(j=>j.config.workspacePaths);zt(j=>j.sessionState.history);const[u,c]=st.useState([]),[p,f]=st.useState(0),[m,g]=st.useState([]),b=st.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Te=b.current)==null?void 0:Te.scrollHeight,(Le=b.current)==null?void 0:Le.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[y,T]=C.useState(!1),[E,v]=C.useState(void 0),[w,A]=C.useState(void 0),R=zt(j=>{var me;return((me=j.serverState.slashCommands)==null?void 0:me.map(Ve=>({name:`/${Ve.name}`,description:Ve.description})))||[]}),k=zt(j=>typeof e.index<"u"?j.sessionState.contextItemsAtIndex[e.index]||[]:j.sessionState.context_items||[]),N=zt(j=>j.sessionState.history),B=zt(j=>j.sessionState.active);C.useEffect(()=>{y||(v(void 0),A(void 0))},[y]);const q=zt(j=>j.serverState.contextProviders),P=()=>{T(!1),v(void 0),A(void 0),H.setInputValue("@")};C.useEffect(()=>{E||g((q==null?void 0:q.map(j=>({name:j.display_title,description:j.description,id:j.title})).sort((j,me)=>j.id==="file"?-1:1))||[])},[E]);const[Q,$]=C.useState(""),oe=C.useCallback(async(j,me)=>{const Ve=await(a==null?void 0:a.getContextItem(j,me));e.isMainInput?o(TP(Ve)):typeof e.index<"u"&&o(SP({item:Ve,index:e.index}))},[a,e.index]),fe=C.useCallback(({inputValue:j,highlightedIndex:me})=>{var Ve;if(!j){g([]),v(void 0),T(!1);return}if(Q===""&&(q!=null&&q.some(ge=>ge.display_title===j))){H.setInputValue(""),$("");return}if($(j),w&&!j.startsWith(`@${w.title}`)&&A(void 0),(Ve=e.onInputValueChange)==null||Ve.call(e,j),j.endsWith("@")||y){const ge=(j==null?void 0:j.split("@"))||[];if(ge.length>1){T(!0);const G=ge[ge.length-1]||"";if(E&&!j.endsWith("@")){const K=G.split(" ");ce(E.title,K.length>1?K[1]:"").then(ne=>{g(ne)})}else{const K=(q==null?void 0:q.filter(ne=>`@${ne.title}`.toLowerCase().startsWith(j.toLowerCase())||`@${ne.display_title}`.toLowerCase().startsWith(j.toLowerCase())).map(ne=>({name:ne.display_title,description:ne.description,id:ne.title})).sort((ne,ve)=>ne.id==="file"?-1:1))||[];g(K),T(!0)}return}else T(!1),v(void 0)}v(void 0),g((R==null?void 0:R.filter(ge=>{const G=ge.name.toLowerCase(),K=j.toLowerCase();return G.startsWith(K)&&G!==K}))||[]),(j.startsWith("/")||j.startsWith("@"))&&o(Ad(null))},[R,y,E,w]),ce=async(j,me)=>{const Ve=s&&s.length>0?`workspace_dir IN [ ${s.map(ge=>`"${ge}"`).join(", ")} ] AND provider_name = '${j}'`:void 0;try{const ge=await(r==null?void 0:r.index(J0e).search(me,{filter:Ve}));return(ge==null?void 0:ge.hits.map(G=>({name:G.name,description:G.description,id:G.id,content:G.content})))||[]}catch(ge){return console.log("Error searching context items",ge),[]}},{getInputProps:De,...H}=YF({onInputValueChange:fe,items:m,itemToString(j){return j?j.name:""}});C.useEffect(()=>{H.highlightedIndex<0&&H.setHighlightedIndex(0)},[H.inputValue]);const W=st.useRef(null),se=st.useRef(null),D=()=>{var j;return(((j=W.current)==null?void 0:j.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>RP};C.useImperativeHandle(t,()=>H,[H]);const pe=st.useRef(null),le=C.useCallback(()=>{var ge;if(ye(!0),!pe.current)return;const j=pe.current.querySelectorAll(`.pill-button-${e.index||"main"}`),me=Array.from(j),Ve=me.findIndex(G=>G===document.activeElement);if(Ve===me.length-1)(ge=b.current)==null||ge.focus();else if(Ve!==-1){const G=me[(Ve+1)%me.length];G==null||G.focus()}else{const G=me[0];G==null||G.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const j=me=>{me.key==="Tab"&&(me.preventDefault(),le())};return b.current.addEventListener("keydown",j),()=>{var me;(me=b.current)==null||me.removeEventListener("keydown",j)}}},[b.current]),C.useEffect(()=>{e.value&&H.setInputValue(e.value)},[e.value,H.setInputValue]);const[L,ie]=C.useState(!1);C.useLayoutEffect(()=>{se.current&&H.setHighlightedIndex(0)},[m,H.setHighlightedIndex,se.current]);const[Se,X]=C.useState(!1),[ke,te]=C.useState(!1);C.useEffect(()=>{const j=Ve=>{Ve.key==="Meta"&&X(!0)},me=Ve=>{Ve.key==="Meta"&&X(!1)};return window.addEventListener("keydown",j),window.addEventListener("keyup",me),()=>{window.removeEventListener("keydown",j),window.removeEventListener("keyup",me)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const j=me=>{var Ve;me.data.type==="focusContinueInput"?(b.current.focus(),o(Ad(null))):me.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(Ve=b.current)!=null&&Ve.value.startsWith("/edit")||H.setInputValue("/edit "),o(Ad(null))):me.data.type==="focusContinueInputWithNewSession"&&(a==null||a.stopSession(),o(uc()),o(Ad(null)))};return window.addEventListener("message",j),()=>{window.removeEventListener("message",j)}},[b.current,e.isMainInput]);const Me=st.useRef(null),Re=C.useCallback(j=>{const me=m[H.highlightedIndex],Ve=me==null?void 0:me.name,ge=q.find(G=>G.display_title===Ve);if(ge){if(ge.dynamic&&ge.requires_query){A(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}else if(ge.dynamic){if(!me.id)return;const G=H.inputValue.split("@"),K=G[G.length-1];if(oe(me.id,K),H.inputValue.includes("@")){const ne=q.find(ve=>ve.title===me.id);!E&&!(ne!=null&&ne.dynamic)?(H.setInputValue(`@${me.id} `),v(ne)):H.setInputValue("")}H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}}else{if(E&&me.id){oe(me.id,""),H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}v(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault(),ce(ge.title,"").then(G=>g(G))},[m,H.highlightedIndex,q,E,H.inputValue,oe]),[Ze,We]=C.useState(!1),[dt,ot]=C.useState(!1),[je,pt]=C.useState(void 0),[U,re]=C.useState(void 0),de=st.useRef(null),[xe,ye]=C.useState(!1);return C.useEffect(()=>{ke||ye(!1)},[ke]),I.jsxs("div",{ref:de,style:{paddingTop:"4px",backgroundColor:Ht},children:[k.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",paddingTop:pr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var j;H.setInputValue("@"),(j=b.current)==null||j.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Ye=H.inputValue)==null?void 0:Ye.startsWith("/edit"))||ke&&Se&&((jt=H.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||k.length>0&&xe?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:pe,style:{backgroundColor:Ht},children:[k.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:j=>{ot(me=>!me)},id:"toggle-context-div",children:dt?I.jsx(gZ,{width:"14px",height:"14px",color:Et}):I.jsx(yZ,{width:"14px",height:"14px",color:Et})}),I.jsx(nhe,{className:k.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var j;o(w4({ids:k.map(me=>me.description.id),index:e.index})),(j=b.current)==null||j.focus(),pt(void 0),re(void 0)},onKeyDown:j=>{var me;j.key==="Backspace"&&(o(w4({ids:k.map(Ve=>Ve.description.id),index:e.index})),(me=b.current)==null||me.focus(),pt(void 0),re(void 0))},children:I.jsx(kL,{width:"1.4em",height:"1.4em"})}),k.map((j,me)=>{var Ve,ge,G,K;return I.jsx(A0e,{inputIndex:e.index,areMultipleItems:k.length>1,item:j,editing:j.editing&&((ge=(Ve=b.current)==null?void 0:Ve.value)==null?void 0:ge.startsWith("/edit")),editingAny:(K=(G=b.current)==null?void 0:G.value)==null?void 0:K.startsWith("/edit"),stepIndex:e.index,index:me,onDelete:()=>{var ne;o(w4({ids:[j.description.id],index:e.index})),(ne=b.current)==null||ne.focus(),(j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name||j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name)&&(pt(void 0),re(void 0))},onClick:ne=>{j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name?re(void 0):re(j)},onBlur:()=>{re(void 0)},toggleViewContent:()=>{pt(ne=>{if(!ne)return j;if(!(ne.description.id.item_id===j.description.id.item_id&&ne.description.id.provider_name===j.description.id.provider_name))return j})},previewing:j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name,focusing:j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name,prefixInputWithEdit:ne=>{var ve,Qe,Fe;!ne&&((ve=b.current)!=null&&ve.value.startsWith("/edit"))&&H.setInputValue((Qe=b.current)==null?void 0:Qe.value.replace("/edit ","")),!H.inputValue.startsWith("/edit")&&(H.setInputValue(`/edit ${H.inputValue}`),(Fe=b.current)==null||Fe.focus())}},`${j.description.id.item_id}${me}`)})]}):k.length>0&&I.jsxs("div",{onClick:()=>{var j;(j=b.current)==null||j.focus(),ye(!0)},style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",cursor:"default",paddingTop:pr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",k.length," ","context item",k.length===1?"":"s"]}),je&&I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(je.description.description)} +`,QI=st.forwardRef((e,t)=>{var Te,Le,ze,Xe,jt,ue,Ee,qe;const n=zt(j=>j.serverState.meilisearchUrl||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const j=new G0e({host:n});i(j)},[n]);const a=C.useContext(to),o=eo(),s=zt(j=>j.config.workspacePaths);zt(j=>j.sessionState.history);const[u,c]=st.useState([]),[p,f]=st.useState(0),[m,g]=st.useState([]),b=st.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Te=b.current)==null?void 0:Te.scrollHeight,(Le=b.current)==null?void 0:Le.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[y,T]=C.useState(!1),[E,v]=C.useState(void 0),[w,A]=C.useState(void 0),R=zt(j=>{var me;return((me=j.serverState.slashCommands)==null?void 0:me.map(Ve=>({name:`/${Ve.name}`,description:Ve.description})))||[]}),k=zt(j=>typeof e.index<"u"?j.sessionState.contextItemsAtIndex[e.index]||[]:j.sessionState.context_items||[]),N=zt(j=>j.sessionState.history),B=zt(j=>j.sessionState.active);C.useEffect(()=>{y||(v(void 0),A(void 0))},[y]);const q=zt(j=>j.serverState.contextProviders),P=()=>{T(!1),v(void 0),A(void 0),H.setInputValue("@")};C.useEffect(()=>{E||g((q==null?void 0:q.map(j=>({name:j.display_title,description:j.description,id:j.title})).sort((j,me)=>j.id==="file"?-1:1))||[])},[E]);const[Q,$]=C.useState(""),oe=C.useCallback(async(j,me)=>{const Ve=await(a==null?void 0:a.getContextItem(j,me));e.isMainInput?o(TP(Ve)):typeof e.index<"u"&&o(SP({item:Ve,index:e.index}))},[a,e.index]),fe=C.useCallback(({inputValue:j,highlightedIndex:me})=>{var Ve;if(!j){g([]),v(void 0),T(!1);return}if(Q===""&&(q!=null&&q.some(ge=>ge.display_title===j))){H.setInputValue(""),$("");return}if($(j),w&&!j.startsWith(`@${w.title}`)&&A(void 0),(Ve=e.onInputValueChange)==null||Ve.call(e,j),j.endsWith("@")||y){const ge=(j==null?void 0:j.split("@"))||[];if(ge.length>1){T(!0);const G=ge[ge.length-1]||"";if(E&&!j.endsWith("@")){const K=G.split(" ");ce(E.title,K.length>1?K[1]:"").then(ne=>{g(ne)})}else{const K=(q==null?void 0:q.filter(ne=>`@${ne.title}`.toLowerCase().startsWith(j.toLowerCase())||`@${ne.display_title}`.toLowerCase().startsWith(j.toLowerCase())).map(ne=>({name:ne.display_title,description:ne.description,id:ne.title})).sort((ne,ve)=>ne.id==="file"?-1:1))||[];g(K),T(!0)}return}else T(!1),v(void 0)}v(void 0),g((R==null?void 0:R.filter(ge=>{const G=ge.name.toLowerCase(),K=j.toLowerCase();return G.startsWith(K)&&G!==K}))||[]),(j.startsWith("/")||j.startsWith("@"))&&o(Ad(null))},[R,y,E,w]),ce=async(j,me)=>{const Ve=s&&s.length>0?`workspace_dir IN [ ${s.map(ge=>`"${ge}"`).join(", ")} ] AND provider_name = '${j}'`:void 0;try{const ge=await(r==null?void 0:r.index(J0e).search(me,{filter:Ve}));return(ge==null?void 0:ge.hits.map(G=>({name:G.name,description:G.description,id:G.id,content:G.content})))||[]}catch(ge){return console.log("Error searching context items",ge),[]}},{getInputProps:De,...H}=YF({onInputValueChange:fe,items:m,itemToString(j){return j?j.name:""}});C.useEffect(()=>{H.highlightedIndex<0&&H.setHighlightedIndex(0)},[H.inputValue]);const W=st.useRef(null),se=st.useRef(null),D=()=>{var j;return(((j=W.current)==null?void 0:j.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>RP};C.useImperativeHandle(t,()=>H,[H]);const pe=st.useRef(null),le=C.useCallback(()=>{var ge;if(ye(!0),!pe.current)return;const j=pe.current.querySelectorAll(`.pill-button-${e.index||"main"}`),me=Array.from(j),Ve=me.findIndex(G=>G===document.activeElement);if(Ve===me.length-1)(ge=b.current)==null||ge.focus();else if(Ve!==-1){const G=me[(Ve+1)%me.length];G==null||G.focus()}else{const G=me[0];G==null||G.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const j=me=>{me.key==="Tab"&&(me.preventDefault(),le())};return b.current.addEventListener("keydown",j),()=>{var me;(me=b.current)==null||me.removeEventListener("keydown",j)}}},[b.current]),C.useEffect(()=>{e.value&&H.setInputValue(e.value)},[e.value,H.setInputValue]);const[L,ie]=C.useState(!1);C.useLayoutEffect(()=>{se.current&&H.setHighlightedIndex(0)},[m,H.setHighlightedIndex,se.current]);const[Se,X]=C.useState(!1),[ke,te]=C.useState(!1);C.useEffect(()=>{const j=Ve=>{Ve.key==="Meta"&&X(!0)},me=Ve=>{Ve.key==="Meta"&&X(!1)};return window.addEventListener("keydown",j),window.addEventListener("keyup",me),()=>{window.removeEventListener("keydown",j),window.removeEventListener("keyup",me)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const j=me=>{var Ve;me.data.type==="focusContinueInput"?(b.current.focus(),o(Ad(null))):me.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(Ve=b.current)!=null&&Ve.value.startsWith("/edit")||H.setInputValue("/edit "),o(Ad(null))):me.data.type==="focusContinueInputWithNewSession"&&(a==null||a.stopSession(),o(uc()),o(Ad(null)))};return window.addEventListener("message",j),()=>{window.removeEventListener("message",j)}},[b.current,e.isMainInput]);const Me=st.useRef(null),Re=C.useCallback(j=>{const me=m[H.highlightedIndex],Ve=me==null?void 0:me.name,ge=q.find(G=>G.display_title===Ve);if(ge){if(ge.dynamic&&ge.requires_query){A(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}else if(ge.dynamic){if(!me.id)return;const G=H.inputValue.split("@"),K=G[G.length-1];if(oe(me.id,K),H.inputValue.includes("@")){const ne=q.find(ve=>ve.title===me.id);!E&&!(ne!=null&&ne.dynamic)?(H.setInputValue(`@${me.id} `),v(ne)):H.setInputValue("")}H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}}else{if(E&&me.id){oe(me.id,""),H.setInputValue(""),T(!1),v(void 0),A(void 0),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault();return}v(ge),H.setInputValue(`@${ge.title} `),j.nativeEvent.preventDownshiftDefault=!0,j.preventDefault(),ce(ge.title,"").then(G=>g(G))},[m,H.highlightedIndex,q,E,H.inputValue,oe]),[Ye,We]=C.useState(!1),[dt,ot]=C.useState(!1),[je,pt]=C.useState(void 0),[U,re]=C.useState(void 0),de=st.useRef(null),[xe,ye]=C.useState(!1);return C.useEffect(()=>{ke||ye(!1)},[ke]),I.jsxs("div",{ref:de,style:{paddingTop:"4px",backgroundColor:Ht},children:[k.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",paddingTop:pr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var j;H.setInputValue("@"),(j=b.current)==null||j.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Xe=H.inputValue)==null?void 0:Xe.startsWith("/edit"))||ke&&Se&&((jt=H.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||k.length>0&&xe?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:pe,style:{backgroundColor:Ht},children:[k.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:j=>{ot(me=>!me)},id:"toggle-context-div",children:dt?I.jsx(gZ,{width:"14px",height:"14px",color:Et}):I.jsx(yZ,{width:"14px",height:"14px",color:Et})}),I.jsx(nhe,{className:k.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var j;o(w4({ids:k.map(me=>me.description.id),index:e.index})),(j=b.current)==null||j.focus(),pt(void 0),re(void 0)},onKeyDown:j=>{var me;j.key==="Backspace"&&(o(w4({ids:k.map(Ve=>Ve.description.id),index:e.index})),(me=b.current)==null||me.focus(),pt(void 0),re(void 0))},children:I.jsx(kL,{width:"1.4em",height:"1.4em"})}),k.map((j,me)=>{var Ve,ge,G,K;return I.jsx(A0e,{inputIndex:e.index,areMultipleItems:k.length>1,item:j,editing:j.editing&&((ge=(Ve=b.current)==null?void 0:Ve.value)==null?void 0:ge.startsWith("/edit")),editingAny:(K=(G=b.current)==null?void 0:G.value)==null?void 0:K.startsWith("/edit"),stepIndex:e.index,index:me,onDelete:()=>{var ne;o(w4({ids:[j.description.id],index:e.index})),(ne=b.current)==null||ne.focus(),(j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name||j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name)&&(pt(void 0),re(void 0))},onClick:ne=>{j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name?re(void 0):re(j)},onBlur:()=>{re(void 0)},toggleViewContent:()=>{pt(ne=>{if(!ne)return j;if(!(ne.description.id.item_id===j.description.id.item_id&&ne.description.id.provider_name===j.description.id.provider_name))return j})},previewing:j.description.id.item_id===(je==null?void 0:je.description.id.item_id)&&(je==null?void 0:je.description.id.provider_name)===j.description.id.provider_name,focusing:j.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===j.description.id.provider_name,prefixInputWithEdit:ne=>{var ve,Qe,Fe;!ne&&((ve=b.current)!=null&&ve.value.startsWith("/edit"))&&H.setInputValue((Qe=b.current)==null?void 0:Qe.value.replace("/edit ","")),!H.inputValue.startsWith("/edit")&&(H.setInputValue(`/edit ${H.inputValue}`),(Fe=b.current)==null||Fe.focus())}},`${j.description.id.item_id}${me}`)})]}):k.length>0&&I.jsxs("div",{onClick:()=>{var j;(j=b.current)==null||j.focus(),ye(!0)},style:{color:Et,fontSize:"10px",backgroundColor:Ht,paddingLeft:"12px",cursor:"default",paddingTop:pr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",k.length," ","context item",k.length===1?"":"s"]}),je&&I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(je.description.description)} ${je.content} \`\`\``,maxHeight:200})}),dt&&I.jsx("div",{children:k.map(j=>I.jsxs(rhe,{children:[I.jsxs(ihe,{children:[I.jsx(Ey,{height:"20px",width:"20px",filename:j.description.name}),j.description.name]}),I.jsx("pre",{className:"m-0",children:I.jsx(Ug,{source:`\`\`\`${WC(j.description.description)} ${j.content} -\`\`\``,maxHeight:200})})]}))}),I.jsxs("div",{className:"flex px-2 relative",style:{backgroundColor:Ht},ref:W,children:[I.jsxs(the,{loading:e.active||!1,isFirst:!1,isLast:!1,borderColor:e.active?void 0:Ht,borderRadius:It,children:[I.jsx(ahe,{onClick:()=>{var j;(j=b.current)==null||j.focus()},onMouseEnter:()=>ie(!0),onMouseLeave:j=>{var me;j.relatedTarget===Me.current||j.relatedTarget instanceof Node&&((me=Me.current)!=null&&me.contains(j.relatedTarget))||ie(!1)},rows:e.isMainInput?void 0:1,inQueryForDynamicProvider:typeof w<"u",fontSize:pr(),disabled:e.disabled,placeholder:"Ask a question, '/' for slash commands, '@' to add context",...De({onCompositionStart:()=>We(!0),onCompositionEnd:()=>We(!1),onChange:j=>{},onFocus:j=>{te(!0),o(pu(void 0))},onBlur:j=>{var me,Ve;(me=de.current)!=null&&me.contains(j.relatedTarget)||(Ve=document.getElementById("toggle-context-div"))!=null&&Ve.contains(j.relatedTarget)||te(!1)},onKeyDown:j=>{var me,Ve;if(o(pu(void 0)),j.key==="Enter"&&j.shiftKey)j.nativeEvent.preventDownshiftDefault=!0,T(!1);else if(j.key==="Enter"&&(!H.isOpen||m.length===0)&&!Ze){const ge=H.inputValue;if(w){const G=ge.split("@");oe(w.title,G[G.length-1]),T(!1),H.setInputValue("");return}else ge!==""&&(f(u.length+1),c([...u,ge])),j.nativeEvent.preventDownshiftDefault=!0,e.onEnter&&e.onEnter(j,ge);T(!1)}else if(j.key==="Enter"&&y)Re(j);else if(j.key==="Tab"&&H.isOpen&&m.length>0&&((me=m[H.highlightedIndex])!=null&&me.name.startsWith("/")))H.setInputValue(m[0].name),j.preventDefault();else if(j.key==="Tab")j.nativeEvent.preventDownshiftDefault=!0;else{if((j.key==="ArrowUp"||j.key==="ArrowDown")&&m.length>0)return;if(j.key==="ArrowUp"){if(p==0||j.currentTarget.selectionStart!==0){j.nativeEvent.preventDownshiftDefault=!0;return}else p==u.length&&(u.length===0||u[u.length-1]!==j.currentTarget.value)&&c([...u,j.currentTarget.value]);H.setInputValue(u[p-1]),f(ge=>ge-1),T(!1)}else if(j.key==="ArrowDown"){if(p===u.length||j.currentTarget.selectionStart!==j.currentTarget.value.length){j.nativeEvent.preventDownshiftDefault=!0;return}pMath.min(ge+1,u.length)),T(!1)}else if(j.key==="Escape"){if(E){P(),j.nativeEvent.preventDownshiftDefault=!0;return}else if(w){P(),j.nativeEvent.preventDownshiftDefault=!0;return}T(!1),H.isOpen&&m.length>0?(H.closeMenu(),j.nativeEvent.preventDownshiftDefault=!0):(j.nativeEvent.preventDownshiftDefault=!0,(Ve=b.current)==null||Ve.blur(),qa("focusEditor",{}))}else j.key==="Home"||j.key==="End"?j.nativeEvent.preventDownshiftDefault=!0:localStorage.getItem("ide")==="jetbrains"&&(Km()==="mac"?Z0e(j,H.inputValue,H.setInputValue):Q0e(j,H.inputValue,H.setInputValue))}},onClick:()=>{o(pu(void 0))},ref:b})}),e.isMainInput||I.jsx(ohe,{ref:Me,children:L&&I.jsx("div",{className:"flex",children:I.jsxs(I.Fragment,{children:[N.filter((j,me)=>{var Ve;return((Ve=e.groupIndices)==null?void 0:Ve.includes(me))&&j.logs}).some(j=>j.logs.length>0)&&I.jsx(zi,{onClick:j=>{if(j.stopPropagation(),e.groupIndices){const me=`This is the exact prompt sent to the LLM: +\`\`\``,maxHeight:200})})]}))}),I.jsxs("div",{className:"flex px-2 relative",style:{backgroundColor:Ht},ref:W,children:[I.jsxs(the,{loading:e.active||!1,isFirst:!1,isLast:!1,borderColor:e.active?void 0:Ht,borderRadius:It,children:[I.jsx(ahe,{onClick:()=>{var j;(j=b.current)==null||j.focus()},onMouseEnter:()=>ie(!0),onMouseLeave:j=>{var me;j.relatedTarget===Me.current||j.relatedTarget instanceof Node&&((me=Me.current)!=null&&me.contains(j.relatedTarget))||ie(!1)},rows:e.isMainInput?void 0:1,inQueryForDynamicProvider:typeof w<"u",fontSize:pr(),disabled:e.disabled,placeholder:"Ask a question, '/' for slash commands, '@' to add context",...De({onCompositionStart:()=>We(!0),onCompositionEnd:()=>We(!1),onChange:j=>{},onFocus:j=>{te(!0),o(pu(void 0))},onBlur:j=>{var me,Ve;(me=de.current)!=null&&me.contains(j.relatedTarget)||(Ve=document.getElementById("toggle-context-div"))!=null&&Ve.contains(j.relatedTarget)||te(!1)},onKeyDown:j=>{var me,Ve;if(!Ye)if(o(pu(void 0)),j.key==="Enter"&&j.shiftKey)j.nativeEvent.preventDownshiftDefault=!0,T(!1);else if(j.key==="Enter"&&(!H.isOpen||m.length===0)&&!Ye){const ge=H.inputValue;if(w){const G=ge.split("@");oe(w.title,G[G.length-1]),T(!1),H.setInputValue("");return}else ge!==""&&(f(u.length+1),c([...u,ge])),j.nativeEvent.preventDownshiftDefault=!0,e.onEnter&&e.onEnter(j,ge);T(!1)}else if(j.key==="Enter"&&y)Re(j);else if(j.key==="Tab"&&H.isOpen&&m.length>0&&((me=m[H.highlightedIndex])!=null&&me.name.startsWith("/")))H.setInputValue(m[0].name),j.preventDefault();else if(j.key==="Tab")j.nativeEvent.preventDownshiftDefault=!0;else{if((j.key==="ArrowUp"||j.key==="ArrowDown")&&m.length>0)return;if(j.key==="ArrowUp"){if(p==0||j.currentTarget.selectionStart!==0){j.nativeEvent.preventDownshiftDefault=!0;return}else p==u.length&&(u.length===0||u[u.length-1]!==j.currentTarget.value)&&c([...u,j.currentTarget.value]);H.setInputValue(u[p-1]),f(ge=>ge-1),T(!1)}else if(j.key==="ArrowDown"){if(p===u.length||j.currentTarget.selectionStart!==j.currentTarget.value.length){j.nativeEvent.preventDownshiftDefault=!0;return}pMath.min(ge+1,u.length)),T(!1)}else if(j.key==="Escape"){if(E){P(),j.nativeEvent.preventDownshiftDefault=!0;return}else if(w){P(),j.nativeEvent.preventDownshiftDefault=!0;return}T(!1),H.isOpen&&m.length>0?(H.closeMenu(),j.nativeEvent.preventDownshiftDefault=!0):(j.nativeEvent.preventDownshiftDefault=!0,(Ve=b.current)==null||Ve.blur(),qa("focusEditor",{}))}else j.key==="Home"||j.key==="End"?j.nativeEvent.preventDownshiftDefault=!0:localStorage.getItem("ide")==="jetbrains"&&(Km()==="mac"?Z0e(j,H.inputValue,H.setInputValue):Q0e(j,H.inputValue,H.setInputValue))}},onClick:()=>{o(pu(void 0))},ref:b})}),e.isMainInput||I.jsx(ohe,{ref:Me,children:L&&I.jsx("div",{className:"flex",children:I.jsxs(I.Fragment,{children:[N.filter((j,me)=>{var Ve;return((Ve=e.groupIndices)==null?void 0:Ve.includes(me))&&j.logs}).some(j=>j.logs.length>0)&&I.jsx(zi,{onClick:j=>{if(j.stopPropagation(),e.groupIndices){const me=`This is the exact prompt sent to the LLM: `+N.filter((Ve,ge)=>{var G;return(G=e.groupIndices)==null?void 0:G.includes(ge)}).flatMap(Ve=>Ve.logs||[]).join(` `);qa("showVirtualFile",{name:"inspect_prompt.md",content:me})}},text:"Inspect Prompt",children:I.jsx(iZ,{width:"1.3em",height:"1.3em"})}),I.jsx(zi,{onClick:j=>{var me;j.stopPropagation(),e.active&&e.groupIndices?a==null||a.stopSession():(me=e.onDelete)==null||me.call(e)},text:e.active?`Stop (${zX()}⌫)`:"Delete",children:e.active?null:I.jsx(w9,{width:"1.4em",height:"1.4em"})})]})})})]}),w&&I.jsxs(she,{children:["Enter ",w.display_title," Query"]}),I.jsxs(lhe,{...H.getMenuProps({ref:se}),isMainInput:e.isMainInput,showAbove:D(),ulHeightPixels:((ue=se.current)==null?void 0:ue.getBoundingClientRect().height)||0,hidden:!H.isOpen||m.length===0||((Ee=b.current)==null?void 0:Ee.value)==="",fontSize:pr(),children:[E&&I.jsxs("div",{style:{backgroundColor:Vt,borderBottom:`0.5px solid ${Et}`,display:"flex",gap:"4px",position:"sticky",top:"0px"},className:"py-2 px-4 my-0",children:[I.jsx(mc,{width:"1.4em",height:"1.4em",className:"cursor-pointer",onClick:j=>{var me;P(),(me=b.current)==null||me.focus()}}),E.display_title," -"," ",E.description]}),H.isOpen&&m.map((j,me)=>I.jsxs(ZI,{style:{borderTop:me===0?"none":`0.5px solid ${Et}`},...H.getItemProps({item:j,index:me}),highlighted:H.highlightedIndex===me,selected:H.selectedItem===j,onClick:Ve=>{var ge;Re(Ve),Ve.stopPropagation(),Ve.preventDefault(),(ge=b.current)==null||ge.focus()},children:[I.jsxs("span",{className:"flex justify-between w-full items-center",children:[I.jsxs("div",{className:"flex items-center justify-center",children:[E&&I.jsx(Ey,{height:"20px",width:"20px",filename:j.name}),j.name," "]}),I.jsx("span",{style:{color:Et,float:"right",textAlign:"right"},children:j.description})]}),(q==null?void 0:q.filter(Ve=>!Ve.dynamic||Ve.requires_query).find(Ve=>Ve.title===j.id))&&I.jsx(tZ,{width:"1.2em",height:"1.2em",color:Et,className:"ml-2 flex-shrink-0"})]},`${j.name}${me}`)),H.isOpen&&m.length===0&&I.jsx(ZI,{highlighted:!1,selected:!1,isLastItem:!1,children:I.jsx("span",{style:{color:Et,float:"right",textAlign:"right",display:"flex",width:"100%",cursor:"default"},children:"No items found"})},"empty-items-li")]})]}),e.isMainInput&&I.jsx(xP,{disabled:!B&&(!((qe=b.current)!=null&&qe.value)||typeof a>"u"),onClick:()=>{var j;B?(a==null||a.stopSession(),o(Zd(!1))):(j=e.onEnter)==null||j.call(e,void 0)},showStop:B})]})});function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t=0||(p[u]=o[u]);return p}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function che(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function OP(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Xg(e);if(t){var i=Xg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return che(this,n)}}function Co(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var a,o,s=[],u=!0,c=!1;try{for(i=i.call(n);!(u=(a=i.next()).done)&&(s.push(a.value),!r||s.length!==r);u=!0);}catch(p){c=!0,o=p}finally{try{u||i.return==null||i.return()}finally{if(c)throw o}}return s}}(e,t)||lT(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. @@ -626,7 +626,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * from https://github.com/LiosK/uuidv7/blob/e501462ea3d23241de13192ceae726956f9b3b7d/src/index.ts */Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e});var tR="0123456789abcdef",dhe=function(){function e(t){if(Un(this,e),this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}return $n(e,[{key:"toString",value:function(){for(var t="",n=0;n>>4)+tR.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(t){return this.compareTo(t)===0}},{key:"compareTo",value:function(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var a=new Uint8Array(16);return a[0]=t/Math.pow(2,40),a[1]=t/Math.pow(2,32),a[2]=t/Math.pow(2,24),a[3]=t/Math.pow(2,16),a[4]=t/Math.pow(2,8),a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}}]),e}(),phe=function(){function e(){Un(this,e),ct(this,"timestamp",0),ct(this,"counter",0),ct(this,"random",new fhe)}return $n(e,[{key:"generate",value:function(){var t=this.generateOrAbort();if(t!==void 0)return t;this.timestamp=0;var n=this.generateOrAbort();if(n===void 0)throw new Error("Could not generate UUID after timestamp reset");return n}},{key:"generateOrAbort",value:function(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return dhe.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),DP=function(e){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t=this.buffer.length&&(DP(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),hhe=function(){return(nR||(nR=new phe)).generate()},LP=Array.prototype,MP=Object.prototype,uT=MP.toString,ghe=MP.hasOwnProperty,ht=typeof window<"u"?window:{},Ql=ht.navigator||{userAgent:""},jn=ht.document||{},aa=Ql.userAgent,mhe=["localhost","127.0.0.1"],rR=LP.forEach,iR=LP.indexOf,bhe=Array.isArray,cT={},In={log:function(){if(ma.DEBUG&&!ja(window.console)&&window.console){for(var e=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r0&&(t[r]=n)}),t},Ehe=["$performance_raw"];function vhe(e,t){return n=e,r=function(a,o){return o&&Ehe.indexOf(o)>-1?a:typeof a=="string"&&t!==null?a.slice(0,t):a},i=new Set,function a(o,s){return o!==Object(o)?r?r(o,s):o:i.has(o)?void 0:(i.add(o),ts(o)?(u=[],os(o,function(c){u.push(a(c))})):(u={},hn(o,function(c,p){i.has(c)||(u[p]=a(c,p))})),u);var u}(n);var n,r,i}function dT(e){var t,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",p=[];if(!e)return e;e=_he(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,p[u++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},aR=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=aa,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return hhe().toString()}},The=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},oR=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{In.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},sR=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Qd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;FP(p)&&(m=p(f));var b=c.call(u,f);return m!==!1&&b!==!1||(g=!1),g}}}(t,r,s)}else In.error("No valid element provided to register_event")}}();function pT(e,t){var n=function(){var r=jn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=jn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):jn.body.appendChild(r)};jn.body?n():jn.addEventListener("DOMContentLoaded",n)}var Sr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return hn(t,function(r){var i=oR(jn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=jn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=Sr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=oR(jn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||fn(e," OPR/")?fn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":fn(e,"IEMobile")||fn(e,"WPDesktop")?"Internet Explorer Mobile":fn(e,"SamsungBrowser/")?"Samsung Internet":fn(e,"Edge")||fn(e,"Edg/")?"Microsoft Edge":fn(e,"FBIOS")?"Facebook Mobile":fn(e,"Chrome")?"Chrome":fn(e,"CriOS")?"Chrome iOS":fn(e,"UCWEB")||fn(e,"UCBrowser")?"UC Browser":fn(e,"FxiOS")?"Firefox iOS":fn(t,"Apple")?fn(e,"Mobile")?"Mobile Safari":"Safari":fn(e,"Android")?"Android Mobile":fn(e,"Konqueror")?"Konqueror":fn(e,"Firefox")?"Firefox":fn(e,"MSIE")||fn(e,"Trident/")?"Internet Explorer":fn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Sr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Ql.language||Ql.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return jn.referrer||"$direct"},referringDomain:function(){if(!jn.referrer)return"$direct";var e=jn.createElement("a");return e.href=jn.referrer,e.host},properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera),$device:Sr.device(aa),$device_type:Sr.deviceType(aa)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera),$browser_language:Sr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:ma.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:BP()/1e3})},people_properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera)}),{$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera)})}};function Zg(e){switch(pl(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Qg(e){var t="";return Ph(e)&&!zP(e)&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){$P(n)&&n.textContent&&(t+=Ry(n.textContent).split(/(\s+)/).filter(N1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Ry(t)}function lR(e){return!!e&&e.nodeType===1}function fu(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function $P(e){return!!e&&e.nodeType===3}function uR(e){return!!e&&e.nodeType===11}var k4=["a","button","form","input","select","textarea","label"];function Ph(e){for(var t=e;t.parentNode&&!fu(t,"body");t=t.parentNode){var n=Zg(t).split(" ");if(fn(n,"ph-sensitive")||fn(n,"ph-no-capture"))return!1}if(fn(Zg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function zP(e){return!!(fu(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||fu(e,"select")||fu(e,"textarea")||e.getAttribute("contenteditable")==="true")}function N1(e){return!(e===null||ja(e)||typeof e=="string"&&(e=Ry(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function cR(e){var t=Qg(e);return N1(t="".concat(t," ").concat(HP(e)).trim())?t:""}function HP(e){var t="";return e&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Qg(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(HP(n)).trim())}catch(a){console.error(a)}}),t}var She=function(){function e(t){Un(this,e),this.clicks=[],this.enabled=t}return $n(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),whe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,yo={is_supported:function(){return!0},error:function(e){In.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=cR(e):i.$el_text=Qg(e));var a=Zg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),hn(e.attributes,function(c){var p;zP(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&N1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return hn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),N1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return hn(this._customProperties,function(r){hn(r.event_selectors,function(i){hn(document.querySelectorAll(i),function(a){fn(e,a)&&Ph(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if($P(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||fu(g,"html")||!lR(g))return!1;if(y!=null&&y.url_allowlist){var T=window.location.href,E=y.url_allowlist;if(E&&!E.some(function($){return T.match($)}))return!1}if(y!=null&&y.dom_event_allowlist){var v=y.dom_event_allowlist;if(v&&!v.some(function($){return b.type===$}))return!1}if(y!=null&&y.element_allowlist){var w=y.element_allowlist;if(w&&!w.some(function($){return g.tagName.toLowerCase()===$}))return!1}if(y!=null&&y.css_selector_allowlist){var A=y.css_selector_allowlist;if(A&&!A.some(function($){return g.matches($)}))return!1}for(var R=!1,k=[g],N=!0,B=g;B.parentNode&&!fu(B,"body");)if(uR(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(N=B.parentNode||!1))break;if(k4.indexOf(N.tagName.toLowerCase())>-1)R=!0;else{var q=window.getComputedStyle(N);q&&q.getPropertyValue("cursor")==="pointer"&&(R=!0)}k.push(N),B=N}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&b.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return b.type==="submit";case"input":case"select":case"textarea":return b.type==="change"||b.type==="click";default:return R?b.type==="click":b.type==="click"&&(k4.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!fu(s,"body");)uR(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(hn(o,function(g){var b=Ph(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=b&&N1(u)&&u),fn(Zg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var y=r._getAugmentPropertiesFromElement(g);$r(p,y)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=cR(a):c[0].$el_text=Qg(a)),u&&(c[0].attr__href=u),f)return!1;var m=$r(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Qd(document,"submit",n,!1,!0),Qd(document,"change",n,!1,!0),Qd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new She(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?In.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},dR,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=ja(t)?10:t,n=ja(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Jg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Jg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Fy);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},Fy,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(D1)||{};this.instance.register(ct({},D1,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(D1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Vs)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=vt(vt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Vs,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Vs)||{};this.instance.register(ct({},Vs,vt(vt({},n),{},ct({},t,{}))))}else this.instance.unregister(Vs)}}]),e}(),Ihe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",bR=2,Rhe=4,GP=3,Nhe=6,Ohe=0,Dhe=5e6,Lhe="rrweb/console@1",fo,Mhe=$n(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Un(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,b;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(b=o.adds)===null||b===void 0?void 0:b.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==GP||o.data.source!==Ohe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,b=Co(i.getNodeOrRelevantParent(p.id),2),y=b[0],T=b[1];return i.mutationBuckets[y]===0?!1:(i.mutationBuckets[y]=(f=i.mutationBuckets[y])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[y]=Math.max(i.mutationBuckets[y]-1,0),i.mutationBuckets[y]===0&&(i.loggedTracker[y]||(i.loggedTracker[y]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,y,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Fhe="/s/",VP="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(fo||(fo={}));var Phe=[fo.MouseMove,fo.MouseInteraction,fo.Scroll,fo.ViewportResize,fo.Input,fo.TouchMove,fo.MediaInteraction,fo.Drag],Bhe=function(){function e(t){var n=this;Un(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Fhe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return $n(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(Ly),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(pR),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(fR);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},Ly,!!t.sessionRecording),ct(o,pR,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,fR,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:BP()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?pT(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(ma.LIB_VERSION),function(r){if(r)return In.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===GP&&Phe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[bR,Rhe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return In.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aDhe){var c,p=hs(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Ihe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&pl(u)==="object"&&u.type===Nhe&&pl(u.data)==="object"&&u.data.plugin===Lhe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:VP,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===bR}})}}]),e}(),lo={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Uhe=["first-input","navigation","paint","resource"],$he=["/s/","/e/"],zhe=function(){function e(t){Un(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return $n(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!mhe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Uhe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else In.log("PostHog Peformance observer not started because we are on localhost.");else In.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if($he.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[lo.timeOrigin]=s,o[lo.timestamp]=Math.floor(s+t.startTime),lo)a[u]!==void 0&&(o[lo[u]]=a[u]);if(this.capturePerformanceEvent(o),Hhe(t)){var c,p=hs(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},lo.timeOrigin,s),ct(f,lo.timestamp,Math.floor(s+t.startTime)),ct(f,lo.name,m.name),ct(f,lo.duration,m.duration),ct(f,lo.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[lo.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Hhe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},jhe=function(){function e(t){Un(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return $n(e,[{key:"call",value:function(){var t=this,n=dT(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(D1),group_properties:this.instance.get_property(Vs),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),Ys.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=hs(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=hs(t.siteApps);try{var m=function(){var g=c.value,b=g.id,y=g.url,T=[p,p[p.length-1]==="/"&&y[0]==="/"?y.substring(1):y].join("");window["__$$ph_site_app_".concat(b)]=a.instance,pT(T,function(E){E&&console.error("Error while initializing PostHog app with config id ".concat(b),E)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Ghe=["https://app.posthog.com","https://eu.posthog.com"],Vhe=["source"],Whe=function(){function e(t){Un(this,e),this.instance=t}return $n(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(vt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=sR(t.hash,"__posthog")||sR(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Ghe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=vt(vt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=uhe(s,Vhe);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),pT(a,function(c){c?In.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Qd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),qhe="__ph_opt_in_out_";function Khe(e,t){qP(!0,e,t)}function Yhe(e,t){qP(!1,e,t)}function Xhe(e,t){return WP(e,t)==="1"}function yR(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return hn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){fn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||WP(e,t)==="0"}function Zhe(e,t){fT(t=t||{}).remove(hT(e,t),!!t.crossSubdomainCookie)}function fT(e){return(e=e||{}).persistenceType==="localStorage"?Kn:e.persistenceType==="localStorage+cookie"?Dy:yo}function hT(e,t){return((t=t||{}).persistencePrefix||qhe)+e}function WP(e,t){return fT(t).get(hT(e,t))}function qP(e,t,n){PP(t)&&t.length?(fT(n=n||{}).set(hT(t,n),e?1:0,yhe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var KP=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Un(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return $n(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),Qhe=function(e){NP(n,KP);var t=OP(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Un(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return $n(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;hn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(xy(a.filter(function(o){return o.url.indexOf("/e")===0})),xy(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,vt(vt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return hn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),Jhe=function(){function e(t){Un(this,e),this.enabled=t,this.metrics={}}return $n(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Ui=Uint8Array,ni=Uint16Array,dc=Uint32Array,gT=new Ui([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mT=new Ui([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ER=new Ui([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),YP=function(e,t){for(var n=new ni(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Sn)<<1;ql=(61680&(ql=(52428&ql)>>>2|(13107&ql)<<2))>>>4|(3855&ql)<<4,zy[Sn]=((65280&ql)>>>8|(255&ql)<<8)>>>1}var Jd=function(e,t,n){for(var r=e.length,i=0,a=new ni(t);i>>u]=c}else for(o=new ni(r),i=0;i>>15-e[i];return o},wu=new Ui(288);for(Sn=0;Sn<144;++Sn)wu[Sn]=8;for(Sn=144;Sn<256;++Sn)wu[Sn]=9;for(Sn=256;Sn<280;++Sn)wu[Sn]=7;for(Sn=280;Sn<288;++Sn)wu[Sn]=8;var em=new Ui(32);for(Sn=0;Sn<32;++Sn)em[Sn]=5;var tu,tge=Jd(wu,9,0),nge=Jd(em,5,0),ZP=function(e){return(e/8>>0)+(7&e&&1)},QP=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof ni?ni:e instanceof dc?dc:Ui)(n-t);return r.set(e.subarray(t,n)),r},Ko=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},dd=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},R4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new ni(m+1),b=rge(n[p-1],g,0);if(b>t){r=0;var y=0,T=b-t,E=1<t))break;y+=E-(1<>>=T;y>0;){var w=a[r].s;g[w]=0&&y;--r){var A=a[r].s;g[A]==t&&(--g[A],++y)}b=t}return[new Ui(g),b]},rge=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},_R=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ni(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},pd=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[ER[$-1]];--$);var oe,fe,ce,De,H=c+5<<3,W=pd(i,wu)+pd(a,em)+o,se=pd(i,m)+pd(a,y)+o+14+3*$+pd(N,P)+(2*N[16]+3*N[17]+7*N[18]);if(H<=W&&H<=se)return Uh(t,p,e.subarray(u,u+c));if(Ko(t,p,1+(se15&&(Ko(t,p,L[B]>>>5&127),p+=L[B]>>>12)}}}else oe=tge,fe=wu,ce=nge,De=em;for(B=0;B255){ie=r[B]>>>18&31,dd(t,p,oe[ie+257]),p+=fe[ie+257],ie>7&&(Ko(t,p,r[B]>>>23&31),p+=gT[ie]);var Se=31&r[B];dd(t,p,ce[Se]),p+=De[Se],Se>3&&(dd(t,p,r[B]>>>5&8191),p+=mT[Se])}else dd(t,p,oe[r[B]]),p+=fe[r[B]];return dd(t,p,oe[256]),p+fe[256]},ige=new dc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),age=new Ui(0),oge=function(){for(var e=new dc(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),sge=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},lge=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Ui(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),b=0;if(!o||f<8)for(var y=0;y<=f;y+=65535){var T=y+65535;T>>13,w=8191&E,A=(1<7e3||ce>24576)&&pe>423){b=TR(a,g,0,P,Q,$,fe,ce,H,y-H,b),ce=oe=fe=0,H=y;for(var le=0;le<286;++le)Q[le]=0;for(le=0;le<30;++le)$[le]=0}var L=2,ie=0,Se=w,X=se-D&32767;if(pe>2&&W==q(y-X))for(var ke=Math.min(v,pe)-1,te=Math.min(32767,y),Me=Math.min(258,pe);X<=te&&--Se&&se!=D;){if(a[y+L]==a[y+L-X]){for(var Re=0;ReL){if(L=Re,ie=X,Re>ke)break;var Ze=Math.min(X,Re-2),We=0;for(le=0;leWe&&(We=ot,D=dt)}}}X+=(se=D)-(D=R[se])+32768&32767}if(ie){P[ce++]=268435456|$y[L]<<18|vR[ie];var je=31&$y[L],pt=31&vR[ie];fe+=gT[je]+mT[pt],++Q[257+je],++$[pt],De=y+L,++oe}else P[ce++]=a[y],++Q[a[y]]}}b=TR(a,g,p,P,Q,$,fe,ce,H,y-H,b),p||(b=Uh(g,b,age))}return QP(m,0,u+ZP(b)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},Hy=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},uge=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&Hy(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},cge=function(e){return 10+(e.filename&&e.filename.length+1||0)};function dge(e,t){t===void 0&&(t={});var n=sge(),r=e.length;n.p(e);var i=lge(e,t,cge(t),8),a=i.length;return uge(i,t),Hy(i,a-8,n.d()),Hy(i,a-4,r),i}function pge(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Ui(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Ui(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return QP(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(tu||(tu={}));var fge=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=ma.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=hs(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return hn(c,function(b,y){p=encodeURIComponent(b.toString()),f=encodeURIComponent(y),g[g.length]=f+"="+p}),g.join(m)}(r)},bT=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},JP=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var b=bT(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),hn(r,function(y,T){g.setRequestHeader(T,y)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var y;try{y=JSON.parse(g.responseText)}catch(T){return void In.error(T)}o(y)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(b)},hge=18e5,gge=function(e){NP(n,KP);var t=OP(n);function n(r,i,a){var o;return Un(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return $n(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(hge,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=hs(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=hs(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))ma.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,bT(s,vt(vt({},u),{},{sendBeacon:!0})))}catch(c){ma.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?ma.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):JP({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),rh=1800,SR=60,mge=864e5,bge=function(){function e(t,n,r){Un(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||rh;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=rh):a>rh?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=Co(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>mge,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),yge=$n(function e(t,n,r,i){Un(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],b={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",b),o})}}),Ege=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},vge=function(){function e(t){Un(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return $n(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function wR(e){return typeof Event<"u"&&eB(e,Event)}function eB(e,t){try{return e instanceof t}catch{return!1}}function AR(e){return e===null||pl(e)!=="object"&&typeof e!="function"}function $h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function N4(e){return $h(e,"DOMError")}var CR=/\(error: (.*)\)/,kR=50,zh="?";function O4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var _ge=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Tge=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Age=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Cge=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` +`)).length,i=0;i127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},aR=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=aa,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return hhe().toString()}},The=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},oR=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{In.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},sR=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Qd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;FP(p)&&(m=p(f));var b=c.call(u,f);return m!==!1&&b!==!1||(g=!1),g}}}(t,r,s)}else In.error("No valid element provided to register_event")}}();function pT(e,t){var n=function(){var r=jn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=jn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):jn.body.appendChild(r)};jn.body?n():jn.addEventListener("DOMContentLoaded",n)}var Sr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return hn(t,function(r){var i=oR(jn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=jn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=Sr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=oR(jn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||fn(e," OPR/")?fn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":fn(e,"IEMobile")||fn(e,"WPDesktop")?"Internet Explorer Mobile":fn(e,"SamsungBrowser/")?"Samsung Internet":fn(e,"Edge")||fn(e,"Edg/")?"Microsoft Edge":fn(e,"FBIOS")?"Facebook Mobile":fn(e,"Chrome")?"Chrome":fn(e,"CriOS")?"Chrome iOS":fn(e,"UCWEB")||fn(e,"UCBrowser")?"UC Browser":fn(e,"FxiOS")?"Firefox iOS":fn(t,"Apple")?fn(e,"Mobile")?"Mobile Safari":"Safari":fn(e,"Android")?"Android Mobile":fn(e,"Konqueror")?"Konqueror":fn(e,"Firefox")?"Firefox":fn(e,"MSIE")||fn(e,"Trident/")?"Internet Explorer":fn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Sr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Ql.language||Ql.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return jn.referrer||"$direct"},referringDomain:function(){if(!jn.referrer)return"$direct";var e=jn.createElement("a");return e.href=jn.referrer,e.host},properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera),$device:Sr.device(aa),$device_type:Sr.deviceType(aa)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera),$browser_language:Sr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:ma.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:BP()/1e3})},people_properties:function(){var e=Sr.os(aa),t=e.os_name,n=e.os_version;return $r(Oy({$os:t,$os_version:n,$browser:Sr.browser(aa,Ql.vendor,ht.opera)}),{$browser_version:Sr.browserVersion(aa,Ql.vendor,ht.opera)})}};function Zg(e){switch(pl(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Qg(e){var t="";return Ph(e)&&!zP(e)&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){$P(n)&&n.textContent&&(t+=Ry(n.textContent).split(/(\s+)/).filter(N1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Ry(t)}function lR(e){return!!e&&e.nodeType===1}function fu(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function $P(e){return!!e&&e.nodeType===3}function uR(e){return!!e&&e.nodeType===11}var k4=["a","button","form","input","select","textarea","label"];function Ph(e){for(var t=e;t.parentNode&&!fu(t,"body");t=t.parentNode){var n=Zg(t).split(" ");if(fn(n,"ph-sensitive")||fn(n,"ph-no-capture"))return!1}if(fn(Zg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function zP(e){return!!(fu(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||fu(e,"select")||fu(e,"textarea")||e.getAttribute("contenteditable")==="true")}function N1(e){return!(e===null||ja(e)||typeof e=="string"&&(e=Ry(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function cR(e){var t=Qg(e);return N1(t="".concat(t," ").concat(HP(e)).trim())?t:""}function HP(e){var t="";return e&&e.childNodes&&e.childNodes.length&&hn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Qg(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(HP(n)).trim())}catch(a){console.error(a)}}),t}var She=function(){function e(t){Un(this,e),this.clicks=[],this.enabled=t}return $n(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),whe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,yo={is_supported:function(){return!0},error:function(e){In.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=cR(e):i.$el_text=Qg(e));var a=Zg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),hn(e.attributes,function(c){var p;zP(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&N1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return hn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),N1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return hn(this._customProperties,function(r){hn(r.event_selectors,function(i){hn(document.querySelectorAll(i),function(a){fn(e,a)&&Ph(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if($P(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||fu(g,"html")||!lR(g))return!1;if(y!=null&&y.url_allowlist){var T=window.location.href,E=y.url_allowlist;if(E&&!E.some(function($){return T.match($)}))return!1}if(y!=null&&y.dom_event_allowlist){var v=y.dom_event_allowlist;if(v&&!v.some(function($){return b.type===$}))return!1}if(y!=null&&y.element_allowlist){var w=y.element_allowlist;if(w&&!w.some(function($){return g.tagName.toLowerCase()===$}))return!1}if(y!=null&&y.css_selector_allowlist){var A=y.css_selector_allowlist;if(A&&!A.some(function($){return g.matches($)}))return!1}for(var R=!1,k=[g],N=!0,B=g;B.parentNode&&!fu(B,"body");)if(uR(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(N=B.parentNode||!1))break;if(k4.indexOf(N.tagName.toLowerCase())>-1)R=!0;else{var q=window.getComputedStyle(N);q&&q.getPropertyValue("cursor")==="pointer"&&(R=!0)}k.push(N),B=N}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&b.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return b.type==="submit";case"input":case"select":case"textarea":return b.type==="change"||b.type==="click";default:return R?b.type==="click":b.type==="click"&&(k4.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!fu(s,"body");)uR(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(hn(o,function(g){var b=Ph(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=b&&N1(u)&&u),fn(Zg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var y=r._getAugmentPropertiesFromElement(g);$r(p,y)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=cR(a):c[0].$el_text=Qg(a)),u&&(c[0].attr__href=u),f)return!1;var m=$r(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Qd(document,"submit",n,!1,!0),Qd(document,"change",n,!1,!0),Qd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new She(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?In.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},dR,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=ja(t)?10:t,n=ja(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Jg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Jg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Fy);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},Fy,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(D1)||{};this.instance.register(ct({},D1,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(D1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Vs)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=vt(vt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Vs,vt(vt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Vs)||{};this.instance.register(ct({},Vs,vt(vt({},n),{},ct({},t,{}))))}else this.instance.unregister(Vs)}}]),e}(),Ihe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",bR=2,Rhe=4,GP=3,Nhe=6,Ohe=0,Dhe=5e6,Lhe="rrweb/console@1",fo,Mhe=$n(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Un(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,b;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(b=o.adds)===null||b===void 0?void 0:b.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==GP||o.data.source!==Ohe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,b=Co(i.getNodeOrRelevantParent(p.id),2),y=b[0],T=b[1];return i.mutationBuckets[y]===0?!1:(i.mutationBuckets[y]=(f=i.mutationBuckets[y])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[y]=Math.max(i.mutationBuckets[y]-1,0),i.mutationBuckets[y]===0&&(i.loggedTracker[y]||(i.loggedTracker[y]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,y,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Fhe="/s/",VP="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(fo||(fo={}));var Phe=[fo.MouseMove,fo.MouseInteraction,fo.Scroll,fo.ViewportResize,fo.Input,fo.TouchMove,fo.MediaInteraction,fo.Drag],Bhe=function(){function e(t){var n=this;Un(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Fhe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return $n(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(Ly),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(pR),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(fR);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},Ly,!!t.sessionRecording),ct(o,pR,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,fR,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:BP()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?pT(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(ma.LIB_VERSION),function(r){if(r)return In.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===GP&&Phe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[bR,Rhe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return In.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aDhe){var c,p=hs(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Ihe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&pl(u)==="object"&&u.type===Nhe&&pl(u.data)==="object"&&u.data.plugin===Lhe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:VP,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===bR}})}}]),e}(),lo={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Uhe=["first-input","navigation","paint","resource"],$he=["/s/","/e/"],zhe=function(){function e(t){Un(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return $n(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!mhe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Uhe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else In.log("PostHog Peformance observer not started because we are on localhost.");else In.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if($he.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[lo.timeOrigin]=s,o[lo.timestamp]=Math.floor(s+t.startTime),lo)a[u]!==void 0&&(o[lo[u]]=a[u]);if(this.capturePerformanceEvent(o),Hhe(t)){var c,p=hs(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},lo.timeOrigin,s),ct(f,lo.timestamp,Math.floor(s+t.startTime)),ct(f,lo.name,m.name),ct(f,lo.duration,m.duration),ct(f,lo.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[lo.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Hhe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},jhe=function(){function e(t){Un(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return $n(e,[{key:"call",value:function(){var t=this,n=dT(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(D1),group_properties:this.instance.get_property(Vs),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),Ys.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=hs(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=hs(t.siteApps);try{var m=function(){var g=c.value,b=g.id,y=g.url,T=[p,p[p.length-1]==="/"&&y[0]==="/"?y.substring(1):y].join("");window["__$$ph_site_app_".concat(b)]=a.instance,pT(T,function(E){E&&console.error("Error while initializing PostHog app with config id ".concat(b),E)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Ghe=["https://app.posthog.com","https://eu.posthog.com"],Vhe=["source"],Whe=function(){function e(t){Un(this,e),this.instance=t}return $n(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(vt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=sR(t.hash,"__posthog")||sR(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Ghe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=vt(vt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=uhe(s,Vhe);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),pT(a,function(c){c?In.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Qd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),qhe="__ph_opt_in_out_";function Khe(e,t){qP(!0,e,t)}function Yhe(e,t){qP(!1,e,t)}function Xhe(e,t){return WP(e,t)==="1"}function yR(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return hn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){fn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||WP(e,t)==="0"}function Zhe(e,t){fT(t=t||{}).remove(hT(e,t),!!t.crossSubdomainCookie)}function fT(e){return(e=e||{}).persistenceType==="localStorage"?Kn:e.persistenceType==="localStorage+cookie"?Dy:yo}function hT(e,t){return((t=t||{}).persistencePrefix||qhe)+e}function WP(e,t){return fT(t).get(hT(e,t))}function qP(e,t,n){PP(t)&&t.length?(fT(n=n||{}).set(hT(t,n),e?1:0,yhe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var KP=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Un(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return $n(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),Qhe=function(e){NP(n,KP);var t=OP(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Un(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return $n(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;hn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(xy(a.filter(function(o){return o.url.indexOf("/e")===0})),xy(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,vt(vt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return hn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),Jhe=function(){function e(t){Un(this,e),this.enabled=t,this.metrics={}}return $n(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Ui=Uint8Array,ni=Uint16Array,dc=Uint32Array,gT=new Ui([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mT=new Ui([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ER=new Ui([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),YP=function(e,t){for(var n=new ni(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Sn)<<1;ql=(61680&(ql=(52428&ql)>>>2|(13107&ql)<<2))>>>4|(3855&ql)<<4,zy[Sn]=((65280&ql)>>>8|(255&ql)<<8)>>>1}var Jd=function(e,t,n){for(var r=e.length,i=0,a=new ni(t);i>>u]=c}else for(o=new ni(r),i=0;i>>15-e[i];return o},wu=new Ui(288);for(Sn=0;Sn<144;++Sn)wu[Sn]=8;for(Sn=144;Sn<256;++Sn)wu[Sn]=9;for(Sn=256;Sn<280;++Sn)wu[Sn]=7;for(Sn=280;Sn<288;++Sn)wu[Sn]=8;var em=new Ui(32);for(Sn=0;Sn<32;++Sn)em[Sn]=5;var tu,tge=Jd(wu,9,0),nge=Jd(em,5,0),ZP=function(e){return(e/8>>0)+(7&e&&1)},QP=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof ni?ni:e instanceof dc?dc:Ui)(n-t);return r.set(e.subarray(t,n)),r},Ko=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},dd=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},R4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new ni(m+1),b=rge(n[p-1],g,0);if(b>t){r=0;var y=0,T=b-t,E=1<t))break;y+=E-(1<>>=T;y>0;){var w=a[r].s;g[w]=0&&y;--r){var A=a[r].s;g[A]==t&&(--g[A],++y)}b=t}return[new Ui(g),b]},rge=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},_R=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ni(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},pd=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[ER[$-1]];--$);var oe,fe,ce,De,H=c+5<<3,W=pd(i,wu)+pd(a,em)+o,se=pd(i,m)+pd(a,y)+o+14+3*$+pd(N,P)+(2*N[16]+3*N[17]+7*N[18]);if(H<=W&&H<=se)return Uh(t,p,e.subarray(u,u+c));if(Ko(t,p,1+(se15&&(Ko(t,p,L[B]>>>5&127),p+=L[B]>>>12)}}}else oe=tge,fe=wu,ce=nge,De=em;for(B=0;B255){ie=r[B]>>>18&31,dd(t,p,oe[ie+257]),p+=fe[ie+257],ie>7&&(Ko(t,p,r[B]>>>23&31),p+=gT[ie]);var Se=31&r[B];dd(t,p,ce[Se]),p+=De[Se],Se>3&&(dd(t,p,r[B]>>>5&8191),p+=mT[Se])}else dd(t,p,oe[r[B]]),p+=fe[r[B]];return dd(t,p,oe[256]),p+fe[256]},ige=new dc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),age=new Ui(0),oge=function(){for(var e=new dc(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),sge=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},lge=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Ui(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),b=0;if(!o||f<8)for(var y=0;y<=f;y+=65535){var T=y+65535;T>>13,w=8191&E,A=(1<7e3||ce>24576)&&pe>423){b=TR(a,g,0,P,Q,$,fe,ce,H,y-H,b),ce=oe=fe=0,H=y;for(var le=0;le<286;++le)Q[le]=0;for(le=0;le<30;++le)$[le]=0}var L=2,ie=0,Se=w,X=se-D&32767;if(pe>2&&W==q(y-X))for(var ke=Math.min(v,pe)-1,te=Math.min(32767,y),Me=Math.min(258,pe);X<=te&&--Se&&se!=D;){if(a[y+L]==a[y+L-X]){for(var Re=0;ReL){if(L=Re,ie=X,Re>ke)break;var Ye=Math.min(X,Re-2),We=0;for(le=0;leWe&&(We=ot,D=dt)}}}X+=(se=D)-(D=R[se])+32768&32767}if(ie){P[ce++]=268435456|$y[L]<<18|vR[ie];var je=31&$y[L],pt=31&vR[ie];fe+=gT[je]+mT[pt],++Q[257+je],++$[pt],De=y+L,++oe}else P[ce++]=a[y],++Q[a[y]]}}b=TR(a,g,p,P,Q,$,fe,ce,H,y-H,b),p||(b=Uh(g,b,age))}return QP(m,0,u+ZP(b)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},Hy=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},uge=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&Hy(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},cge=function(e){return 10+(e.filename&&e.filename.length+1||0)};function dge(e,t){t===void 0&&(t={});var n=sge(),r=e.length;n.p(e);var i=lge(e,t,cge(t),8),a=i.length;return uge(i,t),Hy(i,a-8,n.d()),Hy(i,a-4,r),i}function pge(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Ui(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Ui(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return QP(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(tu||(tu={}));var fge=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=ma.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=hs(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return hn(c,function(b,y){p=encodeURIComponent(b.toString()),f=encodeURIComponent(y),g[g.length]=f+"="+p}),g.join(m)}(r)},bT=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},JP=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var b=bT(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),hn(r,function(y,T){g.setRequestHeader(T,y)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var y;try{y=JSON.parse(g.responseText)}catch(T){return void In.error(T)}o(y)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(b)},hge=18e5,gge=function(e){NP(n,KP);var t=OP(n);function n(r,i,a){var o;return Un(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return $n(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(hge,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=hs(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=hs(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))ma.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,bT(s,vt(vt({},u),{},{sendBeacon:!0})))}catch(c){ma.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?ma.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):JP({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),rh=1800,SR=60,mge=864e5,bge=function(){function e(t,n,r){Un(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||rh;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=rh):a>rh?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=Co(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>mge,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),yge=$n(function e(t,n,r,i){Un(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],b={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",b),o})}}),Ege=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},vge=function(){function e(t){Un(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return $n(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function wR(e){return typeof Event<"u"&&eB(e,Event)}function eB(e,t){try{return e instanceof t}catch{return!1}}function AR(e){return e===null||pl(e)!=="object"&&typeof e!="function"}function $h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function N4(e){return $h(e,"DOMError")}var CR=/\(error: (.*)\)/,kR=50,zh="?";function O4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var _ge=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Tge=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Age=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Cge=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` `),u=a;u1024)){var p=CR.test(c)?c.replace(CR,"$1"):c;if(!p.match(/\S*Error: /)){var f,m=hs(r);try{for(m.s();!(f=m.n()).done;){var g=(0,f.value)(p);if(g){o.push(g);break}}}catch(b){m.e(b)}finally{m.f()}if(o.length>=kR)break}}}return function(b){if(!b.length)return[];var y=b.slice(0,kR);return y.reverse(),y.map(function(T){return vt(vt({},T),{},{filename:T.filename||y[y.length-1].filename,function:T.function||"?"})})}(o)}}).apply(void 0,[[30,function(e){var t=_ge.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){var n=Tge.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=Co(xR(t[1]||zh,t[2]),2),i=r[0];return O4(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=Sge.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=wge.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||zh,a=Co(xR(i,r),2);return i=a[0],O4(r=a[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=Age.exec(e);return t?O4(t[2],t[1]||zh,+t[3],t[4]?+t[4]:void 0):void 0}]]),xR=function(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:zh,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},kge=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,xge=/Minified React error #\d+;/i;function Ige(e){var t=e.stacktrace||e.stack||"",n=function(r){if(r){if(typeof r.framesToPop=="number")return r.framesToPop;if(xge.test(r.message))return 1}return 0}(e);try{return Cge(t,n)}catch{}return[]}function D4(e){var t=Ige(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function Rge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:40,n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:"".concat(i.slice(0,t),"...")}return""}function IR(e){var t=Co(e,5),n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s={};if(o===void 0&&typeof n=="string"){var u="Error",c=n,p=n.match(kge);p&&(u=p[1],c=p[2]),s={$exception_type:u,$exception_message:c}}var f=o||n;if(N4(f)||function(y){return $h(y,"DOMException")}(f)){var m=f;if(function(y){return"stack"in y}(f))s=D4(f);else{var g=m.name||(N4(m)?"DOMError":"DOMException"),b=m.message?"".concat(g,": ").concat(m.message):g;s=function(y){return{$exception_type:"Error",$exception_message:y}}(b),s.$exception_type=N4(m)?"DOMError":"DOMException",s.$exception_message=s.$exception_message||b}"code"in m&&(s.$exception_DOMException_code="".concat(m.code))}else(function(y){return $h(y,"ErrorEvent")})(f)&&f.error?s=D4(f.error):function(y){switch(Object.prototype.toString.call(y)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return eB(y,Error)}}(f)?s=D4(f):function(y){return $h(y,"Object")}(f)||wR(f)?(s=function(y){return{$exception_type:wR(y)?y.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",Rge(y))}}(f),s.$exception_is_synthetic=!0):(s.$exception_type=s.$exception_type||"Error",s.$exception_message=s.$exception_message||f,s.$exception_is_synthetic=!0);return vt(vt(vt(vt({},s),{},{$exception_type:s.$exception_type||"UnknownErrorType",$exception_message:s.$exception_message||""},r?{$exception_source:r}:{}),i?{$exception_lineno:i}:{}),a?{$exception_colno:a}:{})}var RR,NR,Nge=function(){function e(t){Un(this,e),ct(this,"originalOnErrorHandler",void 0),ct(this,"originalOnUnhandledRejectionHandler",void 0),ct(this,"errorsToIgnore",[]),this.instance=t}return $n(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var t,n=arguments.length,r=new Array(n),i=0;i1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(Py);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.surveys;return n.instance.persistence.register(ct({},Py,o)),t(o)})}},{key:"getActiveMatchingSurveys",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(i){var a=i.filter(function(o){return!(!o.start_date||o.end_date)}).filter(function(o){var s,u;if(!o.conditions)return!0;var c=(s=o.conditions)===null||s===void 0||!s.url||window.location.href.indexOf(o.conditions.url)>-1,p=(u=o.conditions)===null||u===void 0||!u.selector||document.querySelector(o.conditions.selector);return c&&p}).filter(function(o){if(!o.linked_flag_key&&!o.targeting_flag_key)return!0;var s=!o.linked_flag_key||n.instance.featureFlags.isFeatureEnabled(o.linked_flag_key),u=!o.targeting_flag_key||n.instance.featureFlags.isFeatureEnabled(o.targeting_flag_key);return s&&u});return t(a)},r)}}]),e}(),Dge={"X-PostHog-Retry-After-Recordings":VP,"X-PostHog-Retry-After-Events":"events"},Lge=function(){function e(){Un(this,e),ct(this,"limits",{})}return $n(e,[{key:"isRateLimited",value:function(t){var n=this.limits[t||"events"]||!1;return n!==!1&&new Date().getTime()1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,c={segmentRegister:!1,syncCode:!1},p=function(A){return function(){c[A]||(c[A]=!0,c.segmentRegister&&c.syncCode&&(s==null||s(i)))}};if(this.set_config($r({},OR(),a,{name:o,token:t,callback_fn:(o===gi?o:gi+"."+o)+"._jsc"})),this.uuidFn=aR(this.config.uuid_version||"og"),this._jsc=function(){},(ht!=null&&(n=ht.rrweb)!==null&&n!==void 0&&n.record||ht!=null&&ht.rrwebRecord)&&(this.__loaded_recorder_version=ht==null||(u=ht.rrweb)===null||u===void 0?void 0:u.version),this.persistence=new hR(this.config),this._captureMetrics=new Jhe(this.get_config("_capture_metrics")),this._requestQueue=new Qhe(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new gge(this._captureMetrics,this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new bge(this.config,this.persistence,this.uuidFn),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new hR(vt(vt({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(p("segmentRegister"))):p("segmentRegister")(),((r=a.bootstrap)===null||r===void 0?void 0:r.distinctID)!==void 0){var f,m,g=this.get_config("get_device_id")(this.uuidFn()),b=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?g:a.bootstrap.distinctID;this.persistence.set_user_state((m=a.bootstrap)!==null&&m!==void 0&&m.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:b})}if(this._hasBootstrappedFeatureFlags()){var y,T,E=Object.keys(((y=a.bootstrap)===null||y===void 0?void 0:y.featureFlags)||{}).filter(function(A){var R,k;return!((R=a.bootstrap)===null||R===void 0||(k=R.featureFlags)===null||k===void 0||!k[A])}).reduce(function(A,R){var k,N;return A[R]=((k=a.bootstrap)===null||k===void 0||(N=k.featureFlags)===null||N===void 0?void 0:N[R])||!1,A},{}),v=Object.keys(((T=a.bootstrap)===null||T===void 0?void 0:T.featureFlagPayloads)||{}).filter(function(A){return E[A]}).reduce(function(A,R){var k,N,B,q;return(k=a.bootstrap)!==null&&k!==void 0&&(N=k.featureFlagPayloads)!==null&&N!==void 0&&N[R]&&(A[R]=(B=a.bootstrap)===null||B===void 0||(q=B.featureFlagPayloads)===null||q===void 0?void 0:q[R]),A},{});this.featureFlags.receivedFeatureFlags({featureFlags:E,featureFlagPayloads:v})}if(!this.get_distinct_id()){var w=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_user_state("anonymous")}ht.addEventListener&&ht.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),p("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(t){console.error("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:jn.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new jhe(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var t=this;this.has_opted_out_capturing()||os(this.__request_queue,function(n){t._send_request.apply(t,xy(n))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(t,n){if(ja(t))return null;if(Hh)return function(o){t(o,n)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],t(o,n)},a}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(t,n,r){var i=JSON.stringify(n);this.__compress_and_send_json_request(t,i,r||ih,jy)}},{key:"__compress_and_send_json_request",value:function(t,n,r,i){var a=function(c,p,f){return c===tu.GZipJS?[dge(pge(p),{mtime:0}),vt(vt({},f),{},{blob:!0,urlQueryArgs:{compression:tu.GZipJS}})]:[{data:dT(p)},f]}(this.compression[tu.GZipJS]?tu.GZipJS:tu.Base64,n,r),o=Co(a,2),s=o[0],u=o[1];this._send_request(t,s,u,i)}},{key:"_send_request",value:function(t,n,r,i){if(this.rateLimiter.isRateLimited(r._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(tB)this.__request_queue.push([t,n,r,i]);else{var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=$r(a,r||{}),Hh||(r.method="GET");var o="sendBeacon"in ht.navigator&&r.transport==="sendBeacon";if(t=fge(t,r.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{ht.navigator.sendBeacon(t,bT(n,vt(vt({},r),{},{sendBeacon:!0})))}catch{}else if(Hh)try{JP({url:t,data:n,headers:this.get_config("xhr_headers"),options:r,captureMetrics:this._captureMetrics,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(p){console.error(p)}else{var s,u=jn.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=t;var c=jn.getElementsByTagName("script")[0];(s=c.parentNode)===null||s===void 0||s.insertBefore(u,c)}}}},{key:"_execute_array",value:function(t){var n,r=this,i=[],a=[],o=[];os(t,function(u){u&&(n=u[0],ts(n)?o.push(u):typeof u=="function"?u.call(r):ts(u)&&n==="alias"?i.push(u):ts(u)&&n.indexOf("capture")!==-1&&typeof r[n]=="function"?o.push(u):a.push(u))});var s=function(u,c){os(u,function(p){if(ts(p[0])){var f=c;hn(p,function(m){f=f[m[0]].apply(f,m.slice(1))})}else this[p[0]].apply(this,p.slice(1))},c)};s(i,this),s(a,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var t,n;return((t=this.config.bootstrap)===null||t===void 0?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)===null||n===void 0?void 0:n.featureFlags).length>0||!1}},{key:"push",value:function(t){this._execute_array([t])}},{key:"captureException",value:function(t,n){var r;(r=this.exceptionAutocapture)===null||r===void 0||r.captureException([t.name,void 0,void 0,void 0,t],n)}},{key:"capture",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ih;if(this.__loaded&&!function(c,p){var f=!1;try{var m=c.get_config("token"),g=c.get_config("respect_dnt"),b=c.get_config("opt_out_capturing_persistence_type"),y=c.get_config("opt_out_capturing_cookie_prefix")||void 0,T=c.get_config("window");m&&(f=yR(m,{respectDnt:g,persistenceType:b,persistencePrefix:y,window:T}))}catch(E){p||console.error("Unexpected error when checking capturing opt-out status: "+E)}return f}(this,!1)){this._captureMetrics.incr("capture"),t==="$snapshot"&&this._captureMetrics.incr("snapshot");var i=(r=r||ih).transport;if(i&&(r.transport=i),ja(t)||typeof t!="string")console.error("No event name provided to posthog.capture");else if(!The(aa)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var a={uuid:this.uuidFn("v7"),event:t,properties:this._calculate_event_properties(t,n||{})};t==="$identify"&&(a.$set=r.$set,a.$set_once=r.$set_once),(a=vhe(a,r._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=r.timestamp||new Date,this.get_config("debug")&&In.log("PostHog.js send",a);var o=JSON.stringify(a),s=this.get_config("api_host")+(r.endpoint||"/e/"),u=r!==ih;return!this.get_config("request_batching")||u&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(s,o,r):this._requestQueue.enqueue(s,a,r),this._invokeCaptureHooks(t,a),a}}}},{key:"_addCaptureHook",value:function(t){this.__captureHooks.push(t)}},{key:"_invokeCaptureHooks",value:function(t,n){this.config._onCapture(t,n),hn(this.__captureHooks,function(r){return r(t)})}},{key:"_calculate_event_properties",value:function(t,n){var r,i=this.persistence.remove_event_timer(t),a=vt({},n);if(a.token=this.get_config("token"),t==="$snapshot"){var o=vt(vt({},this.persistence.properties()),this.sessionPersistence.properties());return a.distinct_id=o.distinct_id,a}var s=Sr.properties();if(this.sessionManager){var u=this.sessionManager.checkAndGetSessionAndWindowId(),c=u.sessionId,p=u.windowId;a.$session_id=c,a.$window_id=p}if((r=this.webPerformance)!==null&&r!==void 0&&r.isEnabled&&(t==="$pageview"&&this.pageViewIdManager.onPageview(),a=$r(a,{$pageview_id:this.pageViewIdManager.getPageViewId()})),t==="$pageview"&&(a.title=jn.title),t==="$performance_event"){var f=this.persistence.properties();return a.distinct_id=f.distinct_id,a.$current_url=s.$current_url,a}if(i!==void 0){var m=new Date().getTime()-i;a.$duration=parseFloat((m/1e3).toFixed(3))}a=$r({},Sr.properties(),this.persistence.properties(),this.sessionPersistence.properties(),a);var g=this.get_config("property_blacklist");ts(g)?hn(g,function(y){delete a[y]}):console.error("Invalid value for property_blacklist config: "+g);var b=this.get_config("sanitize_properties");return b&&(a=b(a,t)),a}},{key:"register",value:function(t,n){this.persistence.register(t,n)}},{key:"register_once",value:function(t,n,r){this.persistence.register_once(t,n,r)}},{key:"register_for_session",value:function(t){this.sessionPersistence.register(t)}},{key:"unregister",value:function(t){this.persistence.unregister(t)}},{key:"unregister_for_session",value:function(t){this.sessionPersistence.unregister(t)}},{key:"_register_single",value:function(t,n){this.register(ct({},t,n))}},{key:"getFeatureFlag",value:function(t,n){return this.featureFlags.getFeatureFlag(t,n)}},{key:"getFeatureFlagPayload",value:function(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}},{key:"isFeatureEnabled",value:function(t,n){return this.featureFlags.isFeatureEnabled(t,n)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}},{key:"getEarlyAccessFeatures",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,n)}},{key:"onFeatureFlags",value:function(t){return this.featureFlags.onFeatureFlags(t)}},{key:"onSessionId",value:function(t){return this.sessionManager.onSessionId(t)}},{key:"getSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(t,n)}},{key:"getActiveMatchingSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(t,n)}},{key:"identify",value:function(t,n,r){if(t){this._captureMetrics.incr("identify");var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var a=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:a},"")}t!==i&&t!==this.get_property(Bh)&&(this.unregister(Bh),this.register({distinct_id:t}));var o=this.persistence.get_user_state()==="anonymous";t!==i&&o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(n||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Jg))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(t,n){(t||n)&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:n||{}}))}},{key:"group",value:function(t,n,r){if(t&&n){this._captureMetrics.incr("group");var i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:vt(vt({},i),{},ct({},t,n))}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags(ct({},t,r))),i[t]===n||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,n)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(t,n)}},{key:"resetGroupPropertiesForFlags",value:function(t){this.featureFlags.resetGroupPropertiesForFlags(t)}},{key:"reset",value:function(t){var n=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var r=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:r,$device_id:t?r:n},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(t){var n=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=r.sessionId,a=r.sessionStartTimestamp,o=n+"/replay/"+i;if(t!=null&&t.withTimestamp&&a){var s,u=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!a)return o;var c=Math.max(Math.floor((new Date().getTime()-a)/1e3)-u,0);o+="?t=".concat(c)}return o}},{key:"alias",value:function(t,n){return t===this.get_property(jP)?(In.critical("Attempting to create alias for existing People user - aborting."),-2):(ja(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(Bh,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(t),-1))}},{key:"set_config",value:function(t){var n=vt({},this.config);Ny(t)&&($r(this.config,t),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),Kn.is_supported()&&Kn.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(ma.DEBUG=!0),this.sessionRecording&&t.disable_session_recording!==void 0&&n.disable_session_recording!==t.disable_session_recording&&(t.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var t;return!((t=this.sessionRecording)===null||t===void 0||!t.started())}},{key:"loadToolbar",value:function(t){return this.toolbar.loadToolbar(t)}},{key:"get_config",value:function(t){var n;return(n=this.config)===null||n===void 0?void 0:n[t]}},{key:"get_property",value:function(t){return this.persistence.props[t]}},{key:"getSessionProperty",value:function(t){return this.sessionPersistence.props[t]}},{key:"toString",value:function(){var t,n=(t=this.get_config("name"))!==null&&t!==void 0?t:gi;return n!==gi&&(n=gi+"."+n),n}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&Kn.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!yo.get("ph_optout")||(yo.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(t){var n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),this.get_config("disable_persistence")||this.sessionPersistence.disabled===n||this.sessionPersistence.set_disabled(n)}},{key:"_gdpr_call_func",value:function(t,n){return n=$r({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},n||{}),Kn.is_supported()||n.persistence_type!=="localStorage"||(n.persistence_type="cookie"),t(this.get_config("token"),{capture:n.capture,captureEventName:n.capture_event_name,captureProperties:n.capture_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieExpiration:n.cookie_expiration,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie})}},{key:"opt_in_capturing",value:function(t){t=$r({enable_persistence:!0},t||{}),this._gdpr_call_func(Khe,t),this._gdpr_update_persistence(t)}},{key:"opt_out_capturing",value:function(t){var n=$r({clear_persistence:!0},t||{});this._gdpr_call_func(Yhe,n),this._gdpr_update_persistence(n)}},{key:"has_opted_in_capturing",value:function(t){return this._gdpr_call_func(Xhe,t)}},{key:"has_opted_out_capturing",value:function(t){return this._gdpr_call_func(yR,t)}},{key:"clear_opt_in_out_capturing",value:function(t){var n=$r({enable_persistence:!0},t??{});this._gdpr_call_func(Zhe,n),this._gdpr_update_persistence(n)}},{key:"debug",value:function(t){t===!1?(ht.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(ht.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();(function(e,t){for(var n=0;np(g,typeof g=="string"?null:g.state,b===0?"default":void 0));let a=u(n??i.length-1),o=Wn.Pop,s=null;function u(g){return Math.min(Math.max(g,0),i.length-1)}function c(){return i[a]}function p(g,b,y){b===void 0&&(b=null);let T=Vy(i?c().pathname:"/",g,b,y);return Au(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(g)),T}function f(g){return typeof g=="string"?g:D2(g)}return{get index(){return a},get action(){return o},get location(){return c()},createHref:f,createURL(g){return new URL(f(g),"http://localhost")},encodeLocation(g){let b=typeof g=="string"?Ro(g):g;return{pathname:b.pathname||"",search:b.search||"",hash:b.hash||""}},push(g,b){o=Wn.Push;let y=p(g,b);a+=1,i.splice(a,i.length,y),r&&s&&s({action:o,location:y,delta:1})},replace(g,b){o=Wn.Replace;let y=p(g,b);i[a]=y,r&&s&&s({action:o,location:y,delta:0})},go(g){o=Wn.Pop;let b=u(a+g),y=i[b];a=b,s&&s({action:o,location:y,delta:g})},listen(g){return s=g,()=>{s=null}}}}function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Au(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Kge(){return Math.random().toString(36).substr(2,8)}function Vy(e,t,n,r){return n===void 0&&(n=null),Nn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ro(t):t,{state:n,key:t&&t.key||r||Kge()})}function D2(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ro(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var tr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tr||(tr={}));const Yge=new Set(["lazy","caseSensitive","path","id","index","children"]);function Xge(e){return e.index===!0}function Wy(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if($t(i.index!==!0||!i.children,"Cannot specify children on an index route"),$t(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Xge(i)){let u=Nn({},i,t(i),{id:s});return r[s]=u,u}else{let u=Nn({},i,t(i),{id:s,children:void 0});return r[s]=u,i.children&&(u.children=Wy(i.children,t,o,r)),u}})}function L1(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ro(t):t,i=hf(r.pathname||"/",n);if(i==null)return null;let a=rB(e);Zge(a);let o=null;for(let s=0;o==null&&s{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};u.relativePath.startsWith("/")&&($t(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=fl([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&($t(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),rB(a.children,t,p,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:ime(c,a.index),routesMeta:p})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let u of iB(a.path))i(a,o,u)}),t}function iB(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=iB(r.join("/")),s=[];return s.push(...o.map(u=>u===""?a:[a,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Zge(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ame(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Qge=/^:\w+$/,Jge=3,eme=2,tme=1,nme=10,rme=-2,DR=e=>e==="*";function ime(e,t){let n=e.split("/"),r=n.length;return n.some(DR)&&(r+=rme),t&&(r+=eme),n.filter(i=>!DR(i)).reduce((i,a)=>i+(Qge.test(a)?Jge:a===""?tme:nme),r)}function ame(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function ome(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(p==="*"){let m=s[f]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}return c[p]=cme(s[f]||"",p),c},{}),pathname:a,pathnameBase:o,pattern:e}}function lme(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Au(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function ume(e){try{return decodeURI(e)}catch(t){return Au(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function cme(e,t){try{return decodeURIComponent(e)}catch(n){return Au(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function hf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function dme(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ro(e):e;return{pathname:n?n.startsWith("/")?n:pme(n,t):t,search:hme(r),hash:gme(i)}}function pme(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function L4(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function vT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function aB(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ro(e):(i=Nn({},e),$t(!i.pathname||!i.pathname.includes("?"),L4("?","pathname","search",i)),$t(!i.pathname||!i.pathname.includes("#"),L4("#","pathname","hash",i)),$t(!i.search||!i.search.includes("#"),L4("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let f=t.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let u=dme(i,s),c=o&&o!=="/"&&o.endsWith("/"),p=(a||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}const fl=e=>e.join("/").replace(/\/\/+/g,"/"),fme=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hme=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gme=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class oB{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function sB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lB=["post","put","patch","delete"],mme=new Set(lB),bme=["get",...lB],yme=new Set(bme),Eme=new Set([301,302,303,307,308]),vme=new Set([307,308]),M4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_me={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},uB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tme=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Sme(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$t(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let G=e.detectErrorBoundary;i=K=>({hasErrorBoundary:G(K)})}else i=Tme;let a={},o=Wy(e.routes,i,void 0,a),s,u=e.basename||"/",c=Nn({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),p=null,f=new Set,m=null,g=null,b=null,y=e.hydrationData!=null,T=L1(o,e.history.location,u),E=null;if(T==null){let G=oa(404,{pathname:e.history.location.pathname}),{matches:K,route:ne}=zR(o);T=K,E={[ne.id]:G}}let v=!T.some(G=>G.route.lazy)&&(!T.some(G=>G.route.loader)||e.hydrationData!=null),w,A={historyAction:e.history.action,location:e.history.location,matches:T,initialized:v,navigation:M4,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},R=Wn.Pop,k=!1,N,B=!1,q=!1,P=[],Q=[],$=new Map,oe=0,fe=-1,ce=new Map,De=new Set,H=new Map,W=new Map,se=new Map,D=!1;function pe(){return p=e.history.listen(G=>{let{action:K,location:ne,delta:ve}=G;if(D){D=!1;return}Au(se.size===0||ve!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Qe=ue({currentLocation:A.location,nextLocation:ne,historyAction:K});if(Qe&&ve!=null){D=!0,e.history.go(ve*-1),jt(Qe,{state:"blocked",location:ne,proceed(){jt(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),e.history.go(ve)},reset(){let Fe=new Map(A.blockers);Fe.set(Qe,fd),ie({blockers:Fe})}});return}return te(K,ne)}),A.initialized||te(Wn.Pop,A.location),w}function le(){p&&p(),f.clear(),N&&N.abort(),A.fetchers.forEach((G,K)=>de(K)),A.blockers.forEach((G,K)=>Ye(K))}function L(G){return f.add(G),()=>f.delete(G)}function ie(G){A=Nn({},A,G),f.forEach(K=>K(A))}function Se(G,K){var ne,ve;let Qe=A.actionData!=null&&A.navigation.formMethod!=null&&Ba(A.navigation.formMethod)&&A.navigation.state==="loading"&&((ne=G.state)==null?void 0:ne._isRedirect)!==!0,Fe;K.actionData?Object.keys(K.actionData).length>0?Fe=K.actionData:Fe=null:Qe?Fe=A.actionData:Fe=null;let at=K.loaderData?$R(A.loaderData,K.loaderData,K.matches||[],K.errors):A.loaderData,rt=A.blockers;rt.size>0&&(rt=new Map(rt),rt.forEach((Rt,Qt)=>rt.set(Qt,fd)));let Je=k===!0||A.navigation.formMethod!=null&&Ba(A.navigation.formMethod)&&((ve=G.state)==null?void 0:ve._isRedirect)!==!0;s&&(o=s,s=void 0),B||R===Wn.Pop||(R===Wn.Push?e.history.push(G,G.state):R===Wn.Replace&&e.history.replace(G,G.state)),ie(Nn({},K,{actionData:Fe,loaderData:at,historyAction:R,location:G,initialized:!0,navigation:M4,revalidation:"idle",restoreScrollPosition:Ve(G,K.matches||A.matches),preventScrollReset:Je,blockers:rt})),R=Wn.Pop,k=!1,B=!1,q=!1,P=[],Q=[]}async function X(G,K){if(typeof G=="number"){e.history.go(G);return}let ne=qy(A.location,A.matches,u,c.v7_prependBasename,G,K==null?void 0:K.fromRouteId,K==null?void 0:K.relative),{path:ve,submission:Qe,error:Fe}=LR(c.v7_normalizeFormMethod,!1,ne,K),at=A.location,rt=Vy(A.location,ve,K&&K.state);rt=Nn({},rt,e.history.encodeLocation(rt));let Je=K&&K.replace!=null?K.replace:void 0,Rt=Wn.Push;Je===!0?Rt=Wn.Replace:Je===!1||Qe!=null&&Ba(Qe.formMethod)&&Qe.formAction===A.location.pathname+A.location.search&&(Rt=Wn.Replace);let Qt=K&&"preventScrollReset"in K?K.preventScrollReset===!0:void 0,kt=ue({currentLocation:at,nextLocation:rt,historyAction:Rt});if(kt){jt(kt,{state:"blocked",location:rt,proceed(){jt(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:rt}),X(G,K)},reset(){let rn=new Map(A.blockers);rn.set(kt,fd),ie({blockers:rn})}});return}return await te(Rt,rt,{submission:Qe,pendingError:Fe,preventScrollReset:Qt,replace:K&&K.replace})}function ke(){if(U(),ie({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){te(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}te(R||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function te(G,K,ne){N&&N.abort(),N=null,R=G,B=(ne&&ne.startUninterruptedRevalidation)===!0,me(A.location,A.matches),k=(ne&&ne.preventScrollReset)===!0;let ve=s||o,Qe=ne&&ne.overrideNavigation,Fe=L1(ve,K,u);if(!Fe){let rn=oa(404,{pathname:K.pathname}),{matches:Xt,route:Wr}=zR(ve);Ee(),Se(K,{matches:Xt,loaderData:{},errors:{[Wr.id]:rn}});return}if(A.initialized&&!q&&xme(A.location,K)&&!(ne&&ne.submission&&Ba(ne.submission.formMethod))){Se(K,{matches:Fe});return}N=new AbortController;let at=gd(e.history,K,N.signal,ne&&ne.submission),rt,Je;if(ne&&ne.pendingError)Je={[M1(Fe).route.id]:ne.pendingError};else if(ne&&ne.submission&&Ba(ne.submission.formMethod)){let rn=await Me(at,K,ne.submission,Fe,{replace:ne.replace});if(rn.shortCircuited)return;rt=rn.pendingActionData,Je=rn.pendingActionError,Qe=ah(K,ne.submission),at=new Request(at.url,{signal:at.signal})}let{shortCircuited:Rt,loaderData:Qt,errors:kt}=await Re(at,K,Fe,Qe,ne&&ne.submission,ne&&ne.fetcherSubmission,ne&&ne.replace,rt,Je);Rt||(N=null,Se(K,Nn({matches:Fe},rt?{actionData:rt}:{},{loaderData:Qt,errors:kt})))}async function Me(G,K,ne,ve,Qe){Qe===void 0&&(Qe={}),U();let Fe=Dme(K,ne);ie({navigation:Fe});let at,rt=Yy(ve,K);if(!rt.route.action&&!rt.route.lazy)at={type:tr.error,error:oa(405,{method:G.method,pathname:K.pathname,routeId:rt.route.id})};else if(at=await hd("action",G,rt,ve,a,i,u),G.signal.aborted)return{shortCircuited:!0};if(K1(at)){let Je;return Qe&&Qe.replace!=null?Je=Qe.replace:Je=at.location===A.location.pathname+A.location.search,await je(A,at,{submission:ne,replace:Je}),{shortCircuited:!0}}if(tp(at)){let Je=M1(ve,rt.route.id);return(Qe&&Qe.replace)!==!0&&(R=Wn.Push),{pendingActionData:{},pendingActionError:{[Je.route.id]:at.error}}}if(su(at))throw oa(400,{type:"defer-action"});return{pendingActionData:{[rt.route.id]:at.data}}}async function Re(G,K,ne,ve,Qe,Fe,at,rt,Je){let Rt=ve||ah(K,Qe),Qt=Qe||Fe||GR(Rt),kt=s||o,[rn,Xt]=MR(e.history,A,ne,Qt,K,q,P,Q,H,De,kt,u,rt,Je);if(Ee(qt=>!(ne&&ne.some(Dr=>Dr.route.id===qt))||rn&&rn.some(Dr=>Dr.route.id===qt)),fe=++oe,rn.length===0&&Xt.length===0){let qt=Te();return Se(K,Nn({matches:ne,loaderData:{},errors:Je||null},rt?{actionData:rt}:{},qt?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!B){Xt.forEach(Dr=>{let Si=A.fetchers.get(Dr.key),Nl=md(void 0,Si?Si.data:void 0);A.fetchers.set(Dr.key,Nl)});let qt=rt||A.actionData;ie(Nn({navigation:Rt},qt?Object.keys(qt).length===0?{actionData:null}:{actionData:qt}:{},Xt.length>0?{fetchers:new Map(A.fetchers)}:{}))}Xt.forEach(qt=>{$.has(qt.key)&&xe(qt.key),qt.controller&&$.set(qt.key,qt.controller)});let Wr=()=>Xt.forEach(qt=>xe(qt.key));N&&N.signal.addEventListener("abort",Wr);let{results:qr,loaderResults:Kr,fetcherResults:Aa}=await pt(A.matches,ne,rn,Xt,G);if(G.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",Wr),Xt.forEach(qt=>$.delete(qt.key));let si=HR(qr);if(si){if(si.idx>=rn.length){let qt=Xt[si.idx-rn.length].key;De.add(qt)}return await je(A,si.result,{replace:at}),{shortCircuited:!0}}let{loaderData:Or,errors:Es}=UR(A,ne,rn,Kr,Je,Xt,Aa,W);W.forEach((qt,Dr)=>{qt.subscribe(Si=>{(Si||qt.done)&&W.delete(Dr)})});let vs=Te(),Yr=Le(fe),_s=vs||Yr||Xt.length>0;return Nn({loaderData:Or,errors:Es},_s?{fetchers:new Map(A.fetchers)}:{})}function Ze(G){return A.fetchers.get(G)||_me}function We(G,K,ne,ve){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$.has(G)&&xe(G);let Qe=s||o,Fe=qy(A.location,A.matches,u,c.v7_prependBasename,ne,K,ve==null?void 0:ve.relative),at=L1(Qe,Fe,u);if(!at){re(G,K,oa(404,{pathname:Fe}));return}let{path:rt,submission:Je,error:Rt}=LR(c.v7_normalizeFormMethod,!0,Fe,ve);if(Rt){re(G,K,Rt);return}let Qt=Yy(at,rt);if(k=(ve&&ve.preventScrollReset)===!0,Je&&Ba(Je.formMethod)){dt(G,K,rt,Qt,at,Je);return}H.set(G,{routeId:K,path:rt}),ot(G,K,rt,Qt,at,Je)}async function dt(G,K,ne,ve,Qe,Fe){if(U(),H.delete(G),!ve.route.action&&!ve.route.lazy){let Ke=oa(405,{method:Fe.formMethod,pathname:ne,routeId:K});re(G,K,Ke);return}let at=A.fetchers.get(G),rt=Lme(Fe,at);A.fetchers.set(G,rt),ie({fetchers:new Map(A.fetchers)});let Je=new AbortController,Rt=gd(e.history,ne,Je.signal,Fe);$.set(G,Je);let Qt=oe,kt=await hd("action",Rt,ve,Qe,a,i,u);if(Rt.signal.aborted){$.get(G)===Je&&$.delete(G);return}if(K1(kt))if($.delete(G),fe>Qt){let Ke=d1(void 0);A.fetchers.set(G,Ke),ie({fetchers:new Map(A.fetchers)});return}else{De.add(G);let Ke=md(Fe);return A.fetchers.set(G,Ke),ie({fetchers:new Map(A.fetchers)}),je(A,kt,{submission:Fe,isFetchActionRedirect:!0})}if(tp(kt)){re(G,K,kt.error);return}if(su(kt))throw oa(400,{type:"defer-action"});let rn=A.navigation.location||A.location,Xt=gd(e.history,rn,Je.signal),Wr=s||o,qr=A.navigation.state!=="idle"?L1(Wr,A.navigation.location,u):A.matches;$t(qr,"Didn't find any matches after fetcher action");let Kr=++oe;ce.set(G,Kr);let Aa=md(Fe,kt.data);A.fetchers.set(G,Aa);let[si,Or]=MR(e.history,A,qr,Fe,rn,q,P,Q,H,De,Wr,u,{[ve.route.id]:kt.data},void 0);Or.filter(Ke=>Ke.key!==G).forEach(Ke=>{let J=Ke.key,Be=A.fetchers.get(J),it=md(void 0,Be?Be.data:void 0);A.fetchers.set(J,it),$.has(J)&&xe(J),Ke.controller&&$.set(J,Ke.controller)}),ie({fetchers:new Map(A.fetchers)});let Es=()=>Or.forEach(Ke=>xe(Ke.key));Je.signal.addEventListener("abort",Es);let{results:vs,loaderResults:Yr,fetcherResults:_s}=await pt(A.matches,qr,si,Or,Xt);if(Je.signal.aborted)return;Je.signal.removeEventListener("abort",Es),ce.delete(G),$.delete(G),Or.forEach(Ke=>$.delete(Ke.key));let qt=HR(vs);if(qt){if(qt.idx>=si.length){let Ke=Or[qt.idx-si.length].key;De.add(Ke)}return je(A,qt.result)}let{loaderData:Dr,errors:Si}=UR(A,A.matches,si,Yr,void 0,Or,_s,W);if(A.fetchers.has(G)){let Ke=d1(kt.data);A.fetchers.set(G,Ke)}let Nl=Le(Kr);A.navigation.state==="loading"&&Kr>fe?($t(R,"Expected pending action"),N&&N.abort(),Se(A.navigation.location,{matches:qr,loaderData:Dr,errors:Si,fetchers:new Map(A.fetchers)})):(ie(Nn({errors:Si,loaderData:$R(A.loaderData,Dr,qr,Si)},Nl||Or.length>0?{fetchers:new Map(A.fetchers)}:{})),q=!1)}async function ot(G,K,ne,ve,Qe,Fe){let at=A.fetchers.get(G),rt=md(Fe,at?at.data:void 0);A.fetchers.set(G,rt),ie({fetchers:new Map(A.fetchers)});let Je=new AbortController,Rt=gd(e.history,ne,Je.signal);$.set(G,Je);let Qt=oe,kt=await hd("loader",Rt,ve,Qe,a,i,u);if(su(kt)&&(kt=await pB(kt,Rt.signal,!0)||kt),$.get(G)===Je&&$.delete(G),Rt.signal.aborted)return;if(K1(kt))if(fe>Qt){let Xt=d1(void 0);A.fetchers.set(G,Xt),ie({fetchers:new Map(A.fetchers)});return}else{De.add(G),await je(A,kt);return}if(tp(kt)){let Xt=M1(A.matches,K);A.fetchers.delete(G),ie({fetchers:new Map(A.fetchers),errors:{[Xt.route.id]:kt.error}});return}$t(!su(kt),"Unhandled fetcher deferred data");let rn=d1(kt.data);A.fetchers.set(G,rn),ie({fetchers:new Map(A.fetchers)})}async function je(G,K,ne){let{submission:ve,replace:Qe,isFetchActionRedirect:Fe}=ne===void 0?{}:ne;K.revalidate&&(q=!0);let at=Vy(G.location,K.location,Nn({_isRedirect:!0},Fe?{_isFetchActionRedirect:!0}:{}));if($t(at,"Expected a location on the redirect navigation"),uB.test(K.location)&&n){let Rt=e.history.createURL(K.location),Qt=hf(Rt.pathname,u)==null;if(t.location.origin!==Rt.origin||Qt){Qe?t.location.replace(K.location):t.location.assign(K.location);return}}N=null;let rt=Qe===!0?Wn.Replace:Wn.Push,Je=ve||GR(G.navigation);if(vme.has(K.status)&&Je&&Ba(Je.formMethod))await te(rt,at,{submission:Nn({},Je,{formAction:K.location}),preventScrollReset:k});else if(Fe)await te(rt,at,{overrideNavigation:ah(at),fetcherSubmission:Je,preventScrollReset:k});else{let Rt=ah(at,Je);await te(rt,at,{overrideNavigation:Rt,preventScrollReset:k})}}async function pt(G,K,ne,ve,Qe){let Fe=await Promise.all([...ne.map(Je=>hd("loader",Qe,Je,K,a,i,u)),...ve.map(Je=>Je.matches&&Je.match&&Je.controller?hd("loader",gd(e.history,Je.path,Je.controller.signal),Je.match,Je.matches,a,i,u):{type:tr.error,error:oa(404,{pathname:Je.path})})]),at=Fe.slice(0,ne.length),rt=Fe.slice(ne.length);return await Promise.all([jR(G,ne,at,at.map(()=>Qe.signal),!1,A.loaderData),jR(G,ve.map(Je=>Je.match),rt,ve.map(Je=>Je.controller?Je.controller.signal:null),!0)]),{results:Fe,loaderResults:at,fetcherResults:rt}}function U(){q=!0,P.push(...Ee()),H.forEach((G,K)=>{$.has(K)&&(Q.push(K),xe(K))})}function re(G,K,ne){let ve=M1(A.matches,K);de(G),ie({errors:{[ve.route.id]:ne},fetchers:new Map(A.fetchers)})}function de(G){let K=A.fetchers.get(G);$.has(G)&&!(K&&K.state==="loading"&&ce.has(G))&&xe(G),H.delete(G),ce.delete(G),De.delete(G),A.fetchers.delete(G)}function xe(G){let K=$.get(G);$t(K,"Expected fetch controller: "+G),K.abort(),$.delete(G)}function ye(G){for(let K of G){let ne=Ze(K),ve=d1(ne.data);A.fetchers.set(K,ve)}}function Te(){let G=[],K=!1;for(let ne of De){let ve=A.fetchers.get(ne);$t(ve,"Expected fetcher: "+ne),ve.state==="loading"&&(De.delete(ne),G.push(ne),K=!0)}return ye(G),K}function Le(G){let K=[];for(let[ne,ve]of ce)if(ve0}function ze(G,K){let ne=A.blockers.get(G)||fd;return se.get(G)!==K&&se.set(G,K),ne}function Ye(G){A.blockers.delete(G),se.delete(G)}function jt(G,K){let ne=A.blockers.get(G)||fd;$t(ne.state==="unblocked"&&K.state==="blocked"||ne.state==="blocked"&&K.state==="blocked"||ne.state==="blocked"&&K.state==="proceeding"||ne.state==="blocked"&&K.state==="unblocked"||ne.state==="proceeding"&&K.state==="unblocked","Invalid blocker state transition: "+ne.state+" -> "+K.state);let ve=new Map(A.blockers);ve.set(G,K),ie({blockers:ve})}function ue(G){let{currentLocation:K,nextLocation:ne,historyAction:ve}=G;if(se.size===0)return;se.size>1&&Au(!1,"A router only supports one blocker at a time");let Qe=Array.from(se.entries()),[Fe,at]=Qe[Qe.length-1],rt=A.blockers.get(Fe);if(!(rt&&rt.state==="proceeding")&&at({currentLocation:K,nextLocation:ne,historyAction:ve}))return Fe}function Ee(G){let K=[];return W.forEach((ne,ve)=>{(!G||G(ve))&&(ne.cancel(),K.push(ve),W.delete(ve))}),K}function qe(G,K,ne){if(m=G,b=K,g=ne||null,!y&&A.navigation===M4){y=!0;let ve=Ve(A.location,A.matches);ve!=null&&ie({restoreScrollPosition:ve})}return()=>{m=null,b=null,g=null}}function j(G,K){return g&&g(G,K.map(ve=>Ome(ve,A.loaderData)))||G.key}function me(G,K){if(m&&b){let ne=j(G,K);m[ne]=b()}}function Ve(G,K){if(m){let ne=j(G,K),ve=m[ne];if(typeof ve=="number")return ve}return null}function ge(G){a={},s=Wy(G,i,void 0,a)}return w={get basename(){return u},get state(){return A},get routes(){return o},initialize:pe,subscribe:L,enableScrollRestoration:qe,navigate:X,fetch:We,revalidate:ke,createHref:G=>e.history.createHref(G),encodeLocation:G=>e.history.encodeLocation(G),getFetcher:Ze,deleteFetcher:de,dispose:le,getBlocker:ze,deleteBlocker:Ye,_internalFetchControllers:$,_internalActiveDeferreds:W,_internalSetRoutes:ge},w}function wme(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function qy(e,t,n,r,i,a,o){let s,u;if(a!=null&&o!=="path"){s=[];for(let p of t)if(s.push(p),p.route.id===a){u=p;break}}else s=t,u=t[t.length-1];let c=aB(i||".",vT(s).map(p=>p.pathnameBase),hf(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!_T(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:fl([n,c.pathname])),D2(c)}function LR(e,t,n,r){if(!r||!wme(r))return{path:n};if(r.formMethod&&!Nme(r.formMethod))return{path:n,error:oa(405,{method:r.formMethod})};let i=()=>({path:n,error:oa(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=dB(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ba(o))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,b)=>{let[y,T]=b;return""+g+y+"="+T+` + */function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var t=1;tp(g,typeof g=="string"?null:g.state,b===0?"default":void 0));let a=u(n??i.length-1),o=Wn.Pop,s=null;function u(g){return Math.min(Math.max(g,0),i.length-1)}function c(){return i[a]}function p(g,b,y){b===void 0&&(b=null);let T=Vy(i?c().pathname:"/",g,b,y);return Au(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(g)),T}function f(g){return typeof g=="string"?g:D2(g)}return{get index(){return a},get action(){return o},get location(){return c()},createHref:f,createURL(g){return new URL(f(g),"http://localhost")},encodeLocation(g){let b=typeof g=="string"?Ro(g):g;return{pathname:b.pathname||"",search:b.search||"",hash:b.hash||""}},push(g,b){o=Wn.Push;let y=p(g,b);a+=1,i.splice(a,i.length,y),r&&s&&s({action:o,location:y,delta:1})},replace(g,b){o=Wn.Replace;let y=p(g,b);i[a]=y,r&&s&&s({action:o,location:y,delta:0})},go(g){o=Wn.Pop;let b=u(a+g),y=i[b];a=b,s&&s({action:o,location:y,delta:g})},listen(g){return s=g,()=>{s=null}}}}function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Au(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Kge(){return Math.random().toString(36).substr(2,8)}function Vy(e,t,n,r){return n===void 0&&(n=null),Nn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ro(t):t,{state:n,key:t&&t.key||r||Kge()})}function D2(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ro(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var tr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tr||(tr={}));const Yge=new Set(["lazy","caseSensitive","path","id","index","children"]);function Xge(e){return e.index===!0}function Wy(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if($t(i.index!==!0||!i.children,"Cannot specify children on an index route"),$t(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Xge(i)){let u=Nn({},i,t(i),{id:s});return r[s]=u,u}else{let u=Nn({},i,t(i),{id:s,children:void 0});return r[s]=u,i.children&&(u.children=Wy(i.children,t,o,r)),u}})}function L1(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ro(t):t,i=hf(r.pathname||"/",n);if(i==null)return null;let a=rB(e);Zge(a);let o=null;for(let s=0;o==null&&s{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};u.relativePath.startsWith("/")&&($t(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=fl([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&($t(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),rB(a.children,t,p,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:ime(c,a.index),routesMeta:p})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let u of iB(a.path))i(a,o,u)}),t}function iB(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=iB(r.join("/")),s=[];return s.push(...o.map(u=>u===""?a:[a,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Zge(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ame(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Qge=/^:\w+$/,Jge=3,eme=2,tme=1,nme=10,rme=-2,DR=e=>e==="*";function ime(e,t){let n=e.split("/"),r=n.length;return n.some(DR)&&(r+=rme),t&&(r+=eme),n.filter(i=>!DR(i)).reduce((i,a)=>i+(Qge.test(a)?Jge:a===""?tme:nme),r)}function ame(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function ome(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(p==="*"){let m=s[f]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}return c[p]=cme(s[f]||"",p),c},{}),pathname:a,pathnameBase:o,pattern:e}}function lme(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Au(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function ume(e){try{return decodeURI(e)}catch(t){return Au(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function cme(e,t){try{return decodeURIComponent(e)}catch(n){return Au(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function hf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function dme(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ro(e):e;return{pathname:n?n.startsWith("/")?n:pme(n,t):t,search:hme(r),hash:gme(i)}}function pme(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function L4(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function vT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function aB(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ro(e):(i=Nn({},e),$t(!i.pathname||!i.pathname.includes("?"),L4("?","pathname","search",i)),$t(!i.pathname||!i.pathname.includes("#"),L4("#","pathname","hash",i)),$t(!i.search||!i.search.includes("#"),L4("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let f=t.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let u=dme(i,s),c=o&&o!=="/"&&o.endsWith("/"),p=(a||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}const fl=e=>e.join("/").replace(/\/\/+/g,"/"),fme=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hme=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gme=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class oB{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function sB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lB=["post","put","patch","delete"],mme=new Set(lB),bme=["get",...lB],yme=new Set(bme),Eme=new Set([301,302,303,307,308]),vme=new Set([307,308]),M4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_me={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},uB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tme=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Sme(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$t(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let G=e.detectErrorBoundary;i=K=>({hasErrorBoundary:G(K)})}else i=Tme;let a={},o=Wy(e.routes,i,void 0,a),s,u=e.basename||"/",c=Nn({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),p=null,f=new Set,m=null,g=null,b=null,y=e.hydrationData!=null,T=L1(o,e.history.location,u),E=null;if(T==null){let G=oa(404,{pathname:e.history.location.pathname}),{matches:K,route:ne}=zR(o);T=K,E={[ne.id]:G}}let v=!T.some(G=>G.route.lazy)&&(!T.some(G=>G.route.loader)||e.hydrationData!=null),w,A={historyAction:e.history.action,location:e.history.location,matches:T,initialized:v,navigation:M4,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},R=Wn.Pop,k=!1,N,B=!1,q=!1,P=[],Q=[],$=new Map,oe=0,fe=-1,ce=new Map,De=new Set,H=new Map,W=new Map,se=new Map,D=!1;function pe(){return p=e.history.listen(G=>{let{action:K,location:ne,delta:ve}=G;if(D){D=!1;return}Au(se.size===0||ve!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Qe=ue({currentLocation:A.location,nextLocation:ne,historyAction:K});if(Qe&&ve!=null){D=!0,e.history.go(ve*-1),jt(Qe,{state:"blocked",location:ne,proceed(){jt(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),e.history.go(ve)},reset(){let Fe=new Map(A.blockers);Fe.set(Qe,fd),ie({blockers:Fe})}});return}return te(K,ne)}),A.initialized||te(Wn.Pop,A.location),w}function le(){p&&p(),f.clear(),N&&N.abort(),A.fetchers.forEach((G,K)=>de(K)),A.blockers.forEach((G,K)=>Xe(K))}function L(G){return f.add(G),()=>f.delete(G)}function ie(G){A=Nn({},A,G),f.forEach(K=>K(A))}function Se(G,K){var ne,ve;let Qe=A.actionData!=null&&A.navigation.formMethod!=null&&Ba(A.navigation.formMethod)&&A.navigation.state==="loading"&&((ne=G.state)==null?void 0:ne._isRedirect)!==!0,Fe;K.actionData?Object.keys(K.actionData).length>0?Fe=K.actionData:Fe=null:Qe?Fe=A.actionData:Fe=null;let at=K.loaderData?$R(A.loaderData,K.loaderData,K.matches||[],K.errors):A.loaderData,rt=A.blockers;rt.size>0&&(rt=new Map(rt),rt.forEach((Rt,Qt)=>rt.set(Qt,fd)));let Je=k===!0||A.navigation.formMethod!=null&&Ba(A.navigation.formMethod)&&((ve=G.state)==null?void 0:ve._isRedirect)!==!0;s&&(o=s,s=void 0),B||R===Wn.Pop||(R===Wn.Push?e.history.push(G,G.state):R===Wn.Replace&&e.history.replace(G,G.state)),ie(Nn({},K,{actionData:Fe,loaderData:at,historyAction:R,location:G,initialized:!0,navigation:M4,revalidation:"idle",restoreScrollPosition:Ve(G,K.matches||A.matches),preventScrollReset:Je,blockers:rt})),R=Wn.Pop,k=!1,B=!1,q=!1,P=[],Q=[]}async function X(G,K){if(typeof G=="number"){e.history.go(G);return}let ne=qy(A.location,A.matches,u,c.v7_prependBasename,G,K==null?void 0:K.fromRouteId,K==null?void 0:K.relative),{path:ve,submission:Qe,error:Fe}=LR(c.v7_normalizeFormMethod,!1,ne,K),at=A.location,rt=Vy(A.location,ve,K&&K.state);rt=Nn({},rt,e.history.encodeLocation(rt));let Je=K&&K.replace!=null?K.replace:void 0,Rt=Wn.Push;Je===!0?Rt=Wn.Replace:Je===!1||Qe!=null&&Ba(Qe.formMethod)&&Qe.formAction===A.location.pathname+A.location.search&&(Rt=Wn.Replace);let Qt=K&&"preventScrollReset"in K?K.preventScrollReset===!0:void 0,kt=ue({currentLocation:at,nextLocation:rt,historyAction:Rt});if(kt){jt(kt,{state:"blocked",location:rt,proceed(){jt(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:rt}),X(G,K)},reset(){let rn=new Map(A.blockers);rn.set(kt,fd),ie({blockers:rn})}});return}return await te(Rt,rt,{submission:Qe,pendingError:Fe,preventScrollReset:Qt,replace:K&&K.replace})}function ke(){if(U(),ie({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){te(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}te(R||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function te(G,K,ne){N&&N.abort(),N=null,R=G,B=(ne&&ne.startUninterruptedRevalidation)===!0,me(A.location,A.matches),k=(ne&&ne.preventScrollReset)===!0;let ve=s||o,Qe=ne&&ne.overrideNavigation,Fe=L1(ve,K,u);if(!Fe){let rn=oa(404,{pathname:K.pathname}),{matches:Xt,route:Wr}=zR(ve);Ee(),Se(K,{matches:Xt,loaderData:{},errors:{[Wr.id]:rn}});return}if(A.initialized&&!q&&xme(A.location,K)&&!(ne&&ne.submission&&Ba(ne.submission.formMethod))){Se(K,{matches:Fe});return}N=new AbortController;let at=gd(e.history,K,N.signal,ne&&ne.submission),rt,Je;if(ne&&ne.pendingError)Je={[M1(Fe).route.id]:ne.pendingError};else if(ne&&ne.submission&&Ba(ne.submission.formMethod)){let rn=await Me(at,K,ne.submission,Fe,{replace:ne.replace});if(rn.shortCircuited)return;rt=rn.pendingActionData,Je=rn.pendingActionError,Qe=ah(K,ne.submission),at=new Request(at.url,{signal:at.signal})}let{shortCircuited:Rt,loaderData:Qt,errors:kt}=await Re(at,K,Fe,Qe,ne&&ne.submission,ne&&ne.fetcherSubmission,ne&&ne.replace,rt,Je);Rt||(N=null,Se(K,Nn({matches:Fe},rt?{actionData:rt}:{},{loaderData:Qt,errors:kt})))}async function Me(G,K,ne,ve,Qe){Qe===void 0&&(Qe={}),U();let Fe=Dme(K,ne);ie({navigation:Fe});let at,rt=Yy(ve,K);if(!rt.route.action&&!rt.route.lazy)at={type:tr.error,error:oa(405,{method:G.method,pathname:K.pathname,routeId:rt.route.id})};else if(at=await hd("action",G,rt,ve,a,i,u),G.signal.aborted)return{shortCircuited:!0};if(K1(at)){let Je;return Qe&&Qe.replace!=null?Je=Qe.replace:Je=at.location===A.location.pathname+A.location.search,await je(A,at,{submission:ne,replace:Je}),{shortCircuited:!0}}if(tp(at)){let Je=M1(ve,rt.route.id);return(Qe&&Qe.replace)!==!0&&(R=Wn.Push),{pendingActionData:{},pendingActionError:{[Je.route.id]:at.error}}}if(su(at))throw oa(400,{type:"defer-action"});return{pendingActionData:{[rt.route.id]:at.data}}}async function Re(G,K,ne,ve,Qe,Fe,at,rt,Je){let Rt=ve||ah(K,Qe),Qt=Qe||Fe||GR(Rt),kt=s||o,[rn,Xt]=MR(e.history,A,ne,Qt,K,q,P,Q,H,De,kt,u,rt,Je);if(Ee(qt=>!(ne&&ne.some(Dr=>Dr.route.id===qt))||rn&&rn.some(Dr=>Dr.route.id===qt)),fe=++oe,rn.length===0&&Xt.length===0){let qt=Te();return Se(K,Nn({matches:ne,loaderData:{},errors:Je||null},rt?{actionData:rt}:{},qt?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!B){Xt.forEach(Dr=>{let Si=A.fetchers.get(Dr.key),Nl=md(void 0,Si?Si.data:void 0);A.fetchers.set(Dr.key,Nl)});let qt=rt||A.actionData;ie(Nn({navigation:Rt},qt?Object.keys(qt).length===0?{actionData:null}:{actionData:qt}:{},Xt.length>0?{fetchers:new Map(A.fetchers)}:{}))}Xt.forEach(qt=>{$.has(qt.key)&&xe(qt.key),qt.controller&&$.set(qt.key,qt.controller)});let Wr=()=>Xt.forEach(qt=>xe(qt.key));N&&N.signal.addEventListener("abort",Wr);let{results:qr,loaderResults:Kr,fetcherResults:Aa}=await pt(A.matches,ne,rn,Xt,G);if(G.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",Wr),Xt.forEach(qt=>$.delete(qt.key));let si=HR(qr);if(si){if(si.idx>=rn.length){let qt=Xt[si.idx-rn.length].key;De.add(qt)}return await je(A,si.result,{replace:at}),{shortCircuited:!0}}let{loaderData:Or,errors:Es}=UR(A,ne,rn,Kr,Je,Xt,Aa,W);W.forEach((qt,Dr)=>{qt.subscribe(Si=>{(Si||qt.done)&&W.delete(Dr)})});let vs=Te(),Yr=Le(fe),_s=vs||Yr||Xt.length>0;return Nn({loaderData:Or,errors:Es},_s?{fetchers:new Map(A.fetchers)}:{})}function Ye(G){return A.fetchers.get(G)||_me}function We(G,K,ne,ve){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$.has(G)&&xe(G);let Qe=s||o,Fe=qy(A.location,A.matches,u,c.v7_prependBasename,ne,K,ve==null?void 0:ve.relative),at=L1(Qe,Fe,u);if(!at){re(G,K,oa(404,{pathname:Fe}));return}let{path:rt,submission:Je,error:Rt}=LR(c.v7_normalizeFormMethod,!0,Fe,ve);if(Rt){re(G,K,Rt);return}let Qt=Yy(at,rt);if(k=(ve&&ve.preventScrollReset)===!0,Je&&Ba(Je.formMethod)){dt(G,K,rt,Qt,at,Je);return}H.set(G,{routeId:K,path:rt}),ot(G,K,rt,Qt,at,Je)}async function dt(G,K,ne,ve,Qe,Fe){if(U(),H.delete(G),!ve.route.action&&!ve.route.lazy){let Ke=oa(405,{method:Fe.formMethod,pathname:ne,routeId:K});re(G,K,Ke);return}let at=A.fetchers.get(G),rt=Lme(Fe,at);A.fetchers.set(G,rt),ie({fetchers:new Map(A.fetchers)});let Je=new AbortController,Rt=gd(e.history,ne,Je.signal,Fe);$.set(G,Je);let Qt=oe,kt=await hd("action",Rt,ve,Qe,a,i,u);if(Rt.signal.aborted){$.get(G)===Je&&$.delete(G);return}if(K1(kt))if($.delete(G),fe>Qt){let Ke=d1(void 0);A.fetchers.set(G,Ke),ie({fetchers:new Map(A.fetchers)});return}else{De.add(G);let Ke=md(Fe);return A.fetchers.set(G,Ke),ie({fetchers:new Map(A.fetchers)}),je(A,kt,{submission:Fe,isFetchActionRedirect:!0})}if(tp(kt)){re(G,K,kt.error);return}if(su(kt))throw oa(400,{type:"defer-action"});let rn=A.navigation.location||A.location,Xt=gd(e.history,rn,Je.signal),Wr=s||o,qr=A.navigation.state!=="idle"?L1(Wr,A.navigation.location,u):A.matches;$t(qr,"Didn't find any matches after fetcher action");let Kr=++oe;ce.set(G,Kr);let Aa=md(Fe,kt.data);A.fetchers.set(G,Aa);let[si,Or]=MR(e.history,A,qr,Fe,rn,q,P,Q,H,De,Wr,u,{[ve.route.id]:kt.data},void 0);Or.filter(Ke=>Ke.key!==G).forEach(Ke=>{let J=Ke.key,Be=A.fetchers.get(J),it=md(void 0,Be?Be.data:void 0);A.fetchers.set(J,it),$.has(J)&&xe(J),Ke.controller&&$.set(J,Ke.controller)}),ie({fetchers:new Map(A.fetchers)});let Es=()=>Or.forEach(Ke=>xe(Ke.key));Je.signal.addEventListener("abort",Es);let{results:vs,loaderResults:Yr,fetcherResults:_s}=await pt(A.matches,qr,si,Or,Xt);if(Je.signal.aborted)return;Je.signal.removeEventListener("abort",Es),ce.delete(G),$.delete(G),Or.forEach(Ke=>$.delete(Ke.key));let qt=HR(vs);if(qt){if(qt.idx>=si.length){let Ke=Or[qt.idx-si.length].key;De.add(Ke)}return je(A,qt.result)}let{loaderData:Dr,errors:Si}=UR(A,A.matches,si,Yr,void 0,Or,_s,W);if(A.fetchers.has(G)){let Ke=d1(kt.data);A.fetchers.set(G,Ke)}let Nl=Le(Kr);A.navigation.state==="loading"&&Kr>fe?($t(R,"Expected pending action"),N&&N.abort(),Se(A.navigation.location,{matches:qr,loaderData:Dr,errors:Si,fetchers:new Map(A.fetchers)})):(ie(Nn({errors:Si,loaderData:$R(A.loaderData,Dr,qr,Si)},Nl||Or.length>0?{fetchers:new Map(A.fetchers)}:{})),q=!1)}async function ot(G,K,ne,ve,Qe,Fe){let at=A.fetchers.get(G),rt=md(Fe,at?at.data:void 0);A.fetchers.set(G,rt),ie({fetchers:new Map(A.fetchers)});let Je=new AbortController,Rt=gd(e.history,ne,Je.signal);$.set(G,Je);let Qt=oe,kt=await hd("loader",Rt,ve,Qe,a,i,u);if(su(kt)&&(kt=await pB(kt,Rt.signal,!0)||kt),$.get(G)===Je&&$.delete(G),Rt.signal.aborted)return;if(K1(kt))if(fe>Qt){let Xt=d1(void 0);A.fetchers.set(G,Xt),ie({fetchers:new Map(A.fetchers)});return}else{De.add(G),await je(A,kt);return}if(tp(kt)){let Xt=M1(A.matches,K);A.fetchers.delete(G),ie({fetchers:new Map(A.fetchers),errors:{[Xt.route.id]:kt.error}});return}$t(!su(kt),"Unhandled fetcher deferred data");let rn=d1(kt.data);A.fetchers.set(G,rn),ie({fetchers:new Map(A.fetchers)})}async function je(G,K,ne){let{submission:ve,replace:Qe,isFetchActionRedirect:Fe}=ne===void 0?{}:ne;K.revalidate&&(q=!0);let at=Vy(G.location,K.location,Nn({_isRedirect:!0},Fe?{_isFetchActionRedirect:!0}:{}));if($t(at,"Expected a location on the redirect navigation"),uB.test(K.location)&&n){let Rt=e.history.createURL(K.location),Qt=hf(Rt.pathname,u)==null;if(t.location.origin!==Rt.origin||Qt){Qe?t.location.replace(K.location):t.location.assign(K.location);return}}N=null;let rt=Qe===!0?Wn.Replace:Wn.Push,Je=ve||GR(G.navigation);if(vme.has(K.status)&&Je&&Ba(Je.formMethod))await te(rt,at,{submission:Nn({},Je,{formAction:K.location}),preventScrollReset:k});else if(Fe)await te(rt,at,{overrideNavigation:ah(at),fetcherSubmission:Je,preventScrollReset:k});else{let Rt=ah(at,Je);await te(rt,at,{overrideNavigation:Rt,preventScrollReset:k})}}async function pt(G,K,ne,ve,Qe){let Fe=await Promise.all([...ne.map(Je=>hd("loader",Qe,Je,K,a,i,u)),...ve.map(Je=>Je.matches&&Je.match&&Je.controller?hd("loader",gd(e.history,Je.path,Je.controller.signal),Je.match,Je.matches,a,i,u):{type:tr.error,error:oa(404,{pathname:Je.path})})]),at=Fe.slice(0,ne.length),rt=Fe.slice(ne.length);return await Promise.all([jR(G,ne,at,at.map(()=>Qe.signal),!1,A.loaderData),jR(G,ve.map(Je=>Je.match),rt,ve.map(Je=>Je.controller?Je.controller.signal:null),!0)]),{results:Fe,loaderResults:at,fetcherResults:rt}}function U(){q=!0,P.push(...Ee()),H.forEach((G,K)=>{$.has(K)&&(Q.push(K),xe(K))})}function re(G,K,ne){let ve=M1(A.matches,K);de(G),ie({errors:{[ve.route.id]:ne},fetchers:new Map(A.fetchers)})}function de(G){let K=A.fetchers.get(G);$.has(G)&&!(K&&K.state==="loading"&&ce.has(G))&&xe(G),H.delete(G),ce.delete(G),De.delete(G),A.fetchers.delete(G)}function xe(G){let K=$.get(G);$t(K,"Expected fetch controller: "+G),K.abort(),$.delete(G)}function ye(G){for(let K of G){let ne=Ye(K),ve=d1(ne.data);A.fetchers.set(K,ve)}}function Te(){let G=[],K=!1;for(let ne of De){let ve=A.fetchers.get(ne);$t(ve,"Expected fetcher: "+ne),ve.state==="loading"&&(De.delete(ne),G.push(ne),K=!0)}return ye(G),K}function Le(G){let K=[];for(let[ne,ve]of ce)if(ve0}function ze(G,K){let ne=A.blockers.get(G)||fd;return se.get(G)!==K&&se.set(G,K),ne}function Xe(G){A.blockers.delete(G),se.delete(G)}function jt(G,K){let ne=A.blockers.get(G)||fd;$t(ne.state==="unblocked"&&K.state==="blocked"||ne.state==="blocked"&&K.state==="blocked"||ne.state==="blocked"&&K.state==="proceeding"||ne.state==="blocked"&&K.state==="unblocked"||ne.state==="proceeding"&&K.state==="unblocked","Invalid blocker state transition: "+ne.state+" -> "+K.state);let ve=new Map(A.blockers);ve.set(G,K),ie({blockers:ve})}function ue(G){let{currentLocation:K,nextLocation:ne,historyAction:ve}=G;if(se.size===0)return;se.size>1&&Au(!1,"A router only supports one blocker at a time");let Qe=Array.from(se.entries()),[Fe,at]=Qe[Qe.length-1],rt=A.blockers.get(Fe);if(!(rt&&rt.state==="proceeding")&&at({currentLocation:K,nextLocation:ne,historyAction:ve}))return Fe}function Ee(G){let K=[];return W.forEach((ne,ve)=>{(!G||G(ve))&&(ne.cancel(),K.push(ve),W.delete(ve))}),K}function qe(G,K,ne){if(m=G,b=K,g=ne||null,!y&&A.navigation===M4){y=!0;let ve=Ve(A.location,A.matches);ve!=null&&ie({restoreScrollPosition:ve})}return()=>{m=null,b=null,g=null}}function j(G,K){return g&&g(G,K.map(ve=>Ome(ve,A.loaderData)))||G.key}function me(G,K){if(m&&b){let ne=j(G,K);m[ne]=b()}}function Ve(G,K){if(m){let ne=j(G,K),ve=m[ne];if(typeof ve=="number")return ve}return null}function ge(G){a={},s=Wy(G,i,void 0,a)}return w={get basename(){return u},get state(){return A},get routes(){return o},initialize:pe,subscribe:L,enableScrollRestoration:qe,navigate:X,fetch:We,revalidate:ke,createHref:G=>e.history.createHref(G),encodeLocation:G=>e.history.encodeLocation(G),getFetcher:Ye,deleteFetcher:de,dispose:le,getBlocker:ze,deleteBlocker:Xe,_internalFetchControllers:$,_internalActiveDeferreds:W,_internalSetRoutes:ge},w}function wme(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function qy(e,t,n,r,i,a,o){let s,u;if(a!=null&&o!=="path"){s=[];for(let p of t)if(s.push(p),p.route.id===a){u=p;break}}else s=t,u=t[t.length-1];let c=aB(i||".",vT(s).map(p=>p.pathnameBase),hf(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!_T(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:fl([n,c.pathname])),D2(c)}function LR(e,t,n,r){if(!r||!wme(r))return{path:n};if(r.formMethod&&!Nme(r.formMethod))return{path:n,error:oa(405,{method:r.formMethod})};let i=()=>({path:n,error:oa(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=dB(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ba(o))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,b)=>{let[y,T]=b;return""+g+y+"="+T+` `},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ba(o))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}$t(typeof FormData=="function","FormData is not available in this environment");let u,c;if(r.formData)u=Ky(r.formData),c=r.formData;else if(r.body instanceof FormData)u=Ky(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=BR(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=BR(u)}catch{return i()}let p={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Ba(p.formMethod))return{path:n,submission:p};let f=Ro(n);return t&&f.search&&_T(f.search)&&u.append("index",""),f.search="?"+u,{path:D2(f),submission:p}}function Ame(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function MR(e,t,n,r,i,a,o,s,u,c,p,f,m,g){let b=g?Object.values(g)[0]:m?Object.values(m)[0]:void 0,y=e.createURL(t.location),T=e.createURL(i),E=g?Object.keys(g)[0]:void 0,w=Ame(n,E).filter((R,k)=>{if(R.route.lazy)return!0;if(R.route.loader==null)return!1;if(Cme(t.loaderData,t.matches[k],R)||o.some(q=>q===R.route.id))return!0;let N=t.matches[k],B=R;return FR(R,Nn({currentUrl:y,currentParams:N.params,nextUrl:T,nextParams:B.params},r,{actionResult:b,defaultShouldRevalidate:a||y.pathname+y.search===T.pathname+T.search||y.search!==T.search||cB(N,B)}))}),A=[];return u.forEach((R,k)=>{if(!n.some(Q=>Q.route.id===R.routeId))return;let N=L1(p,R.path,f);if(!N){A.push({key:k,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let B=t.fetchers.get(k),q=Yy(N,R.path),P=!1;c.has(k)?P=!1:s.includes(k)?P=!0:B&&B.state!=="idle"&&B.data===void 0?P=a:P=FR(q,Nn({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:T,nextParams:n[n.length-1].params},r,{actionResult:b,defaultShouldRevalidate:a})),P&&A.push({key:k,routeId:R.routeId,path:R.path,matches:N,match:q,controller:new AbortController})}),[w,A]}function Cme(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function cB(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function FR(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function PR(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];$t(i,"No route found in manifest");let a={};for(let o in r){let u=i[o]!==void 0&&o!=="hasErrorBoundary";Au(!u,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!u&&!Yge.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Nn({},t(i),{lazy:void 0}))}async function hd(e,t,n,r,i,a,o,s){s===void 0&&(s={});let u,c,p,f=b=>{let y,T=new Promise((E,v)=>y=v);return p=()=>y(),t.signal.addEventListener("abort",p),Promise.race([b({request:t,params:n.params,context:s.requestContext}),T])};try{let b=n.route[e];if(n.route.lazy)if(b)c=(await Promise.all([f(b),PR(n.route,a,i)]))[0];else if(await PR(n.route,a,i),b=n.route[e],b)c=await f(b);else if(e==="action"){let y=new URL(t.url),T=y.pathname+y.search;throw oa(405,{method:t.method,pathname:T,routeId:n.route.id})}else return{type:tr.data,data:void 0};else if(b)c=await f(b);else{let y=new URL(t.url),T=y.pathname+y.search;throw oa(404,{pathname:T})}$t(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(b){u=tr.error,c=b}finally{p&&t.signal.removeEventListener("abort",p)}if(Rme(c)){let b=c.status;if(Eme.has(b)){let E=c.headers.get("Location");if($t(E,"Redirects returned/thrown from loaders/actions must have a Location header"),!uB.test(E))E=qy(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,E);else if(!s.isStaticRequest){let v=new URL(t.url),w=E.startsWith("//")?new URL(v.protocol+E):new URL(E),A=hf(w.pathname,o)!=null;w.origin===v.origin&&A&&(E=w.pathname+w.search+w.hash)}if(s.isStaticRequest)throw c.headers.set("Location",E),c;return{type:tr.redirect,status:b,location:E,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(s.isRouteRequest)throw{type:u||tr.data,response:c};let y,T=c.headers.get("Content-Type");return T&&/\bapplication\/json\b/.test(T)?y=await c.json():y=await c.text(),u===tr.error?{type:u,error:new oB(b,c.statusText,y),headers:c.headers}:{type:tr.data,data:y,statusCode:c.status,headers:c.headers}}if(u===tr.error)return{type:u,error:c};if(Ime(c)){var m,g;return{type:tr.deferred,deferredData:c,statusCode:(m=c.init)==null?void 0:m.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:tr.data,data:c}}function gd(e,t,n,r){let i=e.createURL(dB(t)).toString(),a={signal:n};if(r&&Ba(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=Ky(r.formData):a.body=r.formData}return new Request(i,a)}function Ky(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function BR(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function kme(e,t,n,r,i){let a={},o=null,s,u=!1,c={};return n.forEach((p,f)=>{let m=t[f].route.id;if($t(!K1(p),"Cannot handle redirect results in processLoaderData"),tp(p)){let g=M1(e,m),b=p.error;r&&(b=Object.values(r)[0],r=void 0),o=o||{},o[g.route.id]==null&&(o[g.route.id]=b),a[m]=void 0,u||(u=!0,s=sB(p.error)?p.error.status:500),p.headers&&(c[m]=p.headers)}else su(p)?(i.set(m,p.deferredData),a[m]=p.deferredData.data):a[m]=p.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(s=p.statusCode),p.headers&&(c[m]=p.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function UR(e,t,n,r,i,a,o,s){let{loaderData:u,errors:c}=kme(t,n,r,i,s);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function zR(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function oa(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?s="defer() is not supported in actions":a==="invalid-body"&&(s="Unable to encode submission body")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new oB(e||500,o,new Error(s),!0)}function HR(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(K1(n))return{result:n,idx:t}}}function dB(e){let t=typeof e=="string"?Ro(e):e;return D2(Nn({},t,{hash:""}))}function xme(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function su(e){return e.type===tr.deferred}function tp(e){return e.type===tr.error}function K1(e){return(e&&e.type)===tr.redirect}function Ime(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Rme(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Nme(e){return yme.has(e.toLowerCase())}function Ba(e){return mme.has(e.toLowerCase())}async function jR(e,t,n,r,i,a){for(let o=0;of.route.id===u.route.id),p=c!=null&&!cB(c,u)&&(a&&a[u.route.id])!==void 0;if(su(s)&&(i||p)){let f=r[o];$t(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await pB(s,f,i).then(m=>{m&&(n[o]=m||n[o])})}}}async function pB(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:tr.data,data:e.deferredData.unwrappedData}}catch(i){return{type:tr.error,error:i}}return{type:tr.data,data:e.deferredData.data}}}function _T(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ome(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function Yy(e,t){let n=typeof t=="string"?Ro(t).search:t.search;if(e[e.length-1].route.index&&_T(n||""))return e[e.length-1];let r=vT(e);return r[r.length-1]}function GR(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function ah(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Dme(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function md(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function Lme(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function d1(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** * React Router v6.14.2 * @@ -755,7 +755,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 0; z-index: 100; background-color: ${Ht}; -`;function l2e({error:e,resetErrorBoundary:t}){return I.jsxs("div",{role:"alert",children:[I.jsx("p",{children:"Something went wrong:"}),I.jsx("pre",{style:{color:"red"},children:e.message}),I.jsx(oc,{onClick:t,children:"Restart"})]})}function qR(e){var ce,De;const t=C.useContext(to),n=Bge(),r=eo(),i=No(),a=zt(H=>H.sessionState),o=zt(H=>{var W;return(W=H.serverState.config.models)==null?void 0:W.default}),s=zt(H=>H.misc.serverStatusMessage),u=zt(H=>H.sessionState.title),c=zt(H=>H.sessionState.active),[p,f]=C.useState(!1),[m,g]=C.useState([]);C.useState(!0);const[b,y]=C.useState(!1);C.useEffect(()=>{setTimeout(()=>{y(!0)},5e3)},[]);const T=C.useRef(null),E=C.useRef(null),v=C.useRef(null),w=zt(H=>H.uiState.bottomMessage),A=zt(H=>H.misc.takenAction);C.useEffect(()=>{v.current&&r(W0e(v.current.getBoundingClientRect().top{var W;const H=()=>{var L,ie;const D=((L=E.current)==null?void 0:L.scrollTop)||0,pe=((ie=E.current)==null?void 0:ie.scrollHeight)||0,le=window.innerHeight||0;D+le+-25>=pe?k(!1):k(!0)};return(W=E.current)==null||W.addEventListener("scroll",H),()=>{window.removeEventListener("scroll",H)}},[E.current]),C.useLayoutEffect(()=>{var H,W;R||(W=E.current)==null||W.scrollTo({top:(H=E.current)==null?void 0:H.scrollHeight,behavior:"instant"})},[(ce=E.current)==null?void 0:ce.scrollHeight,a.history]),C.useEffect(()=>{const H=W=>{W.key==="Backspace"&&xg(W)&&!W.shiftKey?(t==null||t.stopSession(),r(Zd(!1))):W.key==="Escape"&&r(pu(void 0))};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[t,c]);const N=C.useCallback(H=>{if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!H.startsWith("/")||H.startsWith("/edit"))){const pe=localStorage.getItem("ftc");if(pe){const le=parseInt(pe);if(localStorage.setItem("ftc",(le+1).toString()),le>=250){console.log(o,"FTC"),r(cc(!0)),r(C4(I.jsx(r2e,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}f(!0);const W=[...a.history,{name:"User Input",description:H,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:H},hide:!1,depth:0}],se={history:W,context_items:a.context_items};for(let pe of a.context_items)r(SP({item:pe,index:W.length-1}));t.runFromState(se),W.push({name:"Generating Response...",description:" ",observations:[],logs:[],step_type:"SimpleChatStep",params:{},hide:!1,depth:0}),r(KI(W)),r(Zd(!0));const D=localStorage.getItem("mainTextEntryCounter");if(D){let pe=parseInt(D);localStorage.setItem("mainTextEntryCounter",(pe+1).toString()),pe===300&&(r(C4(I.jsxs("div",{className:"text-center p-4",children:["👋 Thanks for using Continue. We are a beta product and love working closely with our first users. If you're interested in speaking, enter your name and email. We won't use this information for anything other than reaching out.",I.jsx("br",{}),I.jsx("br",{}),I.jsxs("form",{onSubmit:le=>{le.preventDefault(),n==null||n.capture("user_interest_form",{name:le.target.elements[0].value,email:le.target.elements[1].value}),r(C4(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(V0e(!1)),r(cc(!0)))}else localStorage.setItem("mainTextEntryCounter","1")},[t,a.history,a.context_items,o]);C.useEffect(()=>{const H=W=>{W.data.type==="userInput"&&N(W.data.input)};return window.addEventListener("message",H),()=>window.removeEventListener("message",H)},[N]);const B=H=>{if(r(Ad(null)),T.current&&t){let W=T.current.inputValue;if(W.trim()==="")return;if(W.startsWith("#")&&(W.length===7||W.length===4)){localStorage.setItem("continueButtonColor",W),T.current.setInputValue("");return}H&&xg(H)&&(W=`/edit ${W}`),T.current.setInputValue(""),N(W)}},q=(H,W)=>{t&&t.sendStepUserInput(H,W)},P=C.useCallback(H=>{let W=!1;for(let se=H+1;se{const W=[];let se=-1;for(let D=H;D>=0;D--)if(typeof a.history[D]<"u"&&a.history[D].name==="User Input"&&a.history[D].hide===!1){W.push(D),se=D;break}if(W.length===0)return[];for(let D=se+1;D{const W=Q(H),se=W[0];g(D=>{const pe=[...D];return pe[H]=!pe[H],!W.some((L,ie)=>ie>0&&pe[L])?pe[se]=!1:!W.some((ie,Se)=>Se>0&&!pe[ie])&&(pe[se]=!0),pe})},[Q]);C.useEffect(()=>{u&&fe(u)},[u]);const[oe,fe]=C.useState(u||"New Session");return I.jsxs(i2e,{ref:E,onKeyDown:H=>{H.key==="Enter"&&H.ctrlKey&&B()},children:[I.jsxs(s2e,{children:[I.jsx(a2e,{onClick:H=>{H.target.setSelectionRange(0,H.target.value.length)},value:oe,onChange:H=>fe(H.target.value),onBlur:H=>{H.target.value===u||typeof u>"u"&&H.target.value==="New Session"||r(wP(H.target.value))},onKeyDown:H=>{H.key==="Enter"?(H.preventDefault(),H.target.blur()):H.key==="Escape"&&(fe(u||"New Session"),H.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[I.jsx(zi,{onClick:()=>{t==null||t.stopSession(),r(uc())},text:"New Session (⌥⌘N)",children:I.jsx(CL,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(OZ,{width:"1.4em",height:"1.4em"})})]})]}),A&&b&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(zge,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{qa("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(o2e,{children:(De=a==null?void 0:a.history)==null?void 0:De.map((H,W)=>H.hide?null:I.jsx(C.Fragment,{children:I.jsx(WX,{FallbackComponent:l2e,onReset:()=>{t==null||t.stopSession(),r(uc())},children:H.name==="User Input"?H.hide||I.jsx(QI,{isMainInput:!1,value:H.description,active:c&&P(W),onEnter:(se,D)=>{if(D){t==null||t.stopSession();const pe=[...a.history.slice(0,W),{name:"User Input",description:D,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:D},hide:!1,depth:0}];r(KI(pe)),r(Zd(!0));const le={history:pe,context_items:a.context_items};console.log("State: ",le),t.runFromState(le)}se==null||se.stopPropagation(),se==null||se.preventDefault()},groupIndices:Q(W),onToggle:se=>{g(D=>{const pe=[...D];return Q(W).forEach(le=>{pe[le]=se}),pe})},onToggleAll:se=>{g(D=>D.map(pe=>se))},isToggleOpen:typeof m[W]>"u"?!0:m[W],index:W,onDelete:()=>{Q(W).forEach(se=>{console.log(se),r(S4(se))})}}):I.jsx(Gge,{historyNode:H,iconElement:H.step_type==="DefaultModelEditCodeStep"?I.jsx(wZ,{width:"16px",height:"16px"}):H.error?I.jsx(wL,{width:"16px",height:"16px",color:"red"}):I.jsx(SL,{width:"16px",height:"16px"}),open:typeof m[W]>"u"?!H.error:m[W],onToggle:()=>$(W),children:H.error?I.jsx(Wge,{onClose:()=>$(W),error:H.error,onDelete:()=>{r(S4(W))}}):I.jsx(Uue,{index:W,isLast:W===a.history.length-1,isFirst:W===0,open:typeof m[W]>"u"?!0:m[W],onUserInput:se=>{q(se,W)},step:H,onReverse:()=>{t==null||t.reverseToIndex(W)},onRetry:()=>{t==null||t.retryAtIndex(W),f(!0)},onDelete:()=>{r(S4(W))},noUserInputParent:Q(W).length===0},W)})})},W))}),I.jsx("div",{ref:v}),I.jsx(QI,{isMainInput:!0,ref:T,onEnter:(H,W)=>{B(H),H==null||H.stopPropagation(),H==null||H.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const u2e=Ge.div` +`;function l2e({error:e,resetErrorBoundary:t}){return I.jsxs("div",{role:"alert",children:[I.jsx("p",{children:"Something went wrong:"}),I.jsx("pre",{style:{color:"red"},children:e.message}),I.jsx(oc,{onClick:t,children:"Restart"})]})}function qR(e){var ce,De;const t=C.useContext(to),n=Bge(),r=eo(),i=No(),a=zt(H=>H.sessionState),o=zt(H=>{var W;return(W=H.serverState.config.models)==null?void 0:W.default}),s=zt(H=>H.misc.serverStatusMessage),u=zt(H=>H.sessionState.title),c=zt(H=>H.sessionState.active),[p,f]=C.useState(!1),[m,g]=C.useState([]);C.useState(!0);const[b,y]=C.useState(!1);C.useEffect(()=>{setTimeout(()=>{y(!0)},5e3)},[]);const T=C.useRef(null),E=C.useRef(null),v=C.useRef(null),w=zt(H=>H.uiState.bottomMessage),A=zt(H=>H.misc.takenAction);C.useEffect(()=>{v.current&&r(W0e(v.current.getBoundingClientRect().top{var W;const H=()=>{var L,ie;const D=((L=E.current)==null?void 0:L.scrollTop)||0,pe=((ie=E.current)==null?void 0:ie.scrollHeight)||0,le=window.innerHeight||0;D+le+-25>=pe?k(!1):k(!0)};return(W=E.current)==null||W.addEventListener("scroll",H),()=>{window.removeEventListener("scroll",H)}},[E.current]),C.useLayoutEffect(()=>{var H,W;R||(W=E.current)==null||W.scrollTo({top:(H=E.current)==null?void 0:H.scrollHeight,behavior:"instant"})},[(ce=E.current)==null?void 0:ce.scrollHeight,a.history]),C.useEffect(()=>{const H=W=>{W.key==="Backspace"&&xg(W)&&!W.shiftKey?(t==null||t.stopSession(),r(Zd(!1))):W.key==="Escape"&&r(pu(void 0))};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[t,c]);const N=C.useCallback(H=>{if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!H.startsWith("/")||H.startsWith("/edit"))){const pe=localStorage.getItem("ftc");if(pe){const le=parseInt(pe);if(localStorage.setItem("ftc",(le+1).toString()),le>=250){r(cc(!0)),r(C4(I.jsx(r2e,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}f(!0);const W=[...a.history,{name:"User Input",description:H,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:H},hide:!1,depth:0}],se={history:W,context_items:a.context_items};for(let pe of a.context_items)r(SP({item:pe,index:W.length-1}));t.runFromState(se),W.push({name:"Generating Response...",description:" ",observations:[],logs:[],step_type:"SimpleChatStep",params:{},hide:!1,depth:0}),r(KI(W)),r(Zd(!0));const D=localStorage.getItem("mainTextEntryCounter");if(D){let pe=parseInt(D);localStorage.setItem("mainTextEntryCounter",(pe+1).toString()),pe===300&&(r(C4(I.jsxs("div",{className:"text-center p-4",children:["👋 Thanks for using Continue. We are a beta product and love working closely with our first users. If you're interested in speaking, enter your name and email. We won't use this information for anything other than reaching out.",I.jsx("br",{}),I.jsx("br",{}),I.jsxs("form",{onSubmit:le=>{le.preventDefault(),n==null||n.capture("user_interest_form",{name:le.target.elements[0].value,email:le.target.elements[1].value}),r(C4(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(V0e(!1)),r(cc(!0)))}else localStorage.setItem("mainTextEntryCounter","1")},[t,a.history,a.context_items,o]);C.useEffect(()=>{const H=W=>{W.data.type==="userInput"&&N(W.data.input)};return window.addEventListener("message",H),()=>window.removeEventListener("message",H)},[N]);const B=H=>{if(r(Ad(null)),T.current&&t){let W=T.current.inputValue;if(W.trim()==="")return;if(W.startsWith("#")&&(W.length===7||W.length===4)){localStorage.setItem("continueButtonColor",W),T.current.setInputValue("");return}H&&xg(H)&&(W=`/edit ${W}`),T.current.setInputValue(""),N(W)}},q=(H,W)=>{t&&t.sendStepUserInput(H,W)},P=C.useCallback(H=>{let W=!1;for(let se=H+1;se{const W=[];let se=-1;for(let D=H;D>=0;D--)if(typeof a.history[D]<"u"&&a.history[D].name==="User Input"&&a.history[D].hide===!1){W.push(D),se=D;break}if(W.length===0)return[];for(let D=se+1;D{const W=Q(H),se=W[0];g(D=>{const pe=[...D];return pe[H]=!pe[H],!W.some((L,ie)=>ie>0&&pe[L])?pe[se]=!1:!W.some((ie,Se)=>Se>0&&!pe[ie])&&(pe[se]=!0),pe})},[Q]);C.useEffect(()=>{u&&fe(u)},[u]);const[oe,fe]=C.useState(u||"New Session");return I.jsxs(i2e,{ref:E,onKeyDown:H=>{H.key==="Enter"&&H.ctrlKey&&B()},children:[I.jsxs(s2e,{children:[I.jsx(a2e,{onClick:H=>{H.target.setSelectionRange(0,H.target.value.length)},value:oe,onChange:H=>fe(H.target.value),onBlur:H=>{H.target.value===u||typeof u>"u"&&H.target.value==="New Session"||r(wP(H.target.value))},onKeyDown:H=>{H.key==="Enter"?(H.preventDefault(),H.target.blur()):H.key==="Escape"&&(fe(u||"New Session"),H.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[I.jsx(zi,{onClick:()=>{t==null||t.stopSession(),r(uc())},text:"New Session (⌥⌘N)",children:I.jsx(CL,{width:"1.4em",height:"1.4em"})}),I.jsx(zi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(OZ,{width:"1.4em",height:"1.4em"})})]})]}),A&&b&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(zge,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{qa("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(o2e,{children:(De=a==null?void 0:a.history)==null?void 0:De.map((H,W)=>H.hide?null:I.jsx(C.Fragment,{children:I.jsx(WX,{FallbackComponent:l2e,onReset:()=>{t==null||t.stopSession(),r(uc())},children:H.name==="User Input"?H.hide||I.jsx(QI,{isMainInput:!1,value:H.description,active:c&&P(W),onEnter:(se,D)=>{if(D){t==null||t.stopSession();const pe=[...a.history.slice(0,W),{name:"User Input",description:D,observations:[],logs:[],step_type:"UserInputStep",params:{user_input:D},hide:!1,depth:0}];r(KI(pe)),r(Zd(!0));const le={history:pe,context_items:a.context_items};console.log("State: ",le),t.runFromState(le)}se==null||se.stopPropagation(),se==null||se.preventDefault()},groupIndices:Q(W),onToggle:se=>{g(D=>{const pe=[...D];return Q(W).forEach(le=>{pe[le]=se}),pe})},onToggleAll:se=>{g(D=>D.map(pe=>se))},isToggleOpen:typeof m[W]>"u"?!0:m[W],index:W,onDelete:()=>{Q(W).forEach(se=>{console.log(se),r(S4(se))})}}):I.jsx(Gge,{historyNode:H,iconElement:H.step_type==="DefaultModelEditCodeStep"?I.jsx(wZ,{width:"16px",height:"16px"}):H.error?I.jsx(wL,{width:"16px",height:"16px",color:"red"}):I.jsx(SL,{width:"16px",height:"16px"}),open:typeof m[W]>"u"?!H.error:m[W],onToggle:()=>$(W),children:H.error?I.jsx(Wge,{onClose:()=>$(W),error:H.error,onDelete:()=>{r(S4(W))}}):I.jsx(Uue,{index:W,isLast:W===a.history.length-1,isFirst:W===0,open:typeof m[W]>"u"?!0:m[W],onUserInput:se=>{q(se,W)},step:H,onReverse:()=>{t==null||t.reverseToIndex(W)},onRetry:()=>{t==null||t.retryAtIndex(W),f(!0)},onDelete:()=>{r(S4(W))},noUserInputParent:Q(W).length===0},W)})})},W))}),I.jsx("div",{ref:v}),I.jsx(QI,{isMainInput:!0,ref:T,onEnter:(H,W)=>{B(H),H==null||H.stopPropagation(),H==null||H.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const u2e=Ge.div` display: flex; flex-direction: row; align-items: center; @@ -873,7 +873,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `;Ge.p` color: ${Yt}; margin: 8px auto; -`;const S2e=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),I.jsx(v2e,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(_2e,{onClick:t=>{t.stopPropagation()},children:I.jsx(T2e,{children:typeof e.message=="string"?I.jsx(N9,{children:e.message||""}):st.isValidElement(e.message)?e.message:null})})}));var w2e=Object.defineProperty,A2e=(e,t,n)=>t in e?w2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P4=(e,t,n)=>(A2e(e,typeof t!="symbol"?t+"":t,n),n);let C2e=class{constructor(){P4(this,"current",this.detect()),P4(this,"handoffState","pending"),P4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},hu=new C2e,Gi=(e,t)=>{hu.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function wo(e){let t=C.useRef(e);return Gi(()=>{t.current=e},[e]),t}function yB(e,t){let[n,r]=C.useState(e),i=wo(e);return Gi(()=>r(i.current),[i,r,...t]),n}function k2e(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function vl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return k2e(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=vl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function pc(){let[e]=C.useState(vl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Zt=function(e){let t=wo(e);return st.useCallback((...n)=>t.current(...n),[t])};function x2e(){let e=typeof document>"u";return"useSyncExternalStore"in Q4?(t=>t.useSyncExternalStore)(Q4)(()=>()=>{},()=>!1,()=>!e):!1}function ST(){let e=x2e(),[t,n]=C.useState(hu.isHandoffComplete);return t&&hu.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>hu.handoff(),[]),e?!1:t}var XR;let B2=(XR=st.useId)!=null?XR:function(){let e=ST(),[t,n]=st.useState(e?()=>hu.nextId():null);return Gi(()=>{t===null&&n(hu.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Cr),r}function EB(e){return hu.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZR=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var I2e=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(I2e||{}),R2e=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(R2e||{}),N2e=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(N2e||{}),wT=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wT||{});function vB(e,t=0){var n;return e===((n=EB(e))==null?void 0:n.body)?!1:Cr(t,{0(){return e.matches(ZR)},1(){let r=e;for(;r!==null;){if(r.matches(ZR))return!0;r=r.parentElement}return!1}})}var O2e=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(O2e||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function D2e(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lh(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function L2e(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function M2e(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!vB(u,wT.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);lh("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),lh("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),L2e("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QR(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function F2e(e,t){let[n,r]=C.useState(()=>QR(e));return Gi(()=>{r(QR(e))},[e.type,e.as]),Gi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let P2e=Symbol();function Pu(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Zt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[P2e]))?void 0:n}function B2e(e){throw new Error("Unexpected object: "+e)}var yi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(yi||{});function U2e(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:B2e(e)}})();return a===-1?r:a}function tm(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var nm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(nm||{}),Qs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qs||{});function Rl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=_B(t,e);if(a)return uh(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return uh(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Cr(c?0:1,{0(){return null},1(){return uh({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return uh(s,n,r,o)}function uh(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=B4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,b]of Object.entries(t))typeof b=="boolean"&&(f=!0),b===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(Zy(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(b=>` - ${b}`).join(` +`;const S2e=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),!C.isValidElement(e.message)&&typeof e.message!="string"?null:I.jsx(v2e,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(_2e,{onClick:t=>{t.stopPropagation()},children:I.jsx(T2e,{children:typeof e.message=="string"?I.jsx(N9,{children:e.message||""}):st.isValidElement(e.message)?e.message:null})})}));var w2e=Object.defineProperty,A2e=(e,t,n)=>t in e?w2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P4=(e,t,n)=>(A2e(e,typeof t!="symbol"?t+"":t,n),n);let C2e=class{constructor(){P4(this,"current",this.detect()),P4(this,"handoffState","pending"),P4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},hu=new C2e,Gi=(e,t)=>{hu.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function wo(e){let t=C.useRef(e);return Gi(()=>{t.current=e},[e]),t}function yB(e,t){let[n,r]=C.useState(e),i=wo(e);return Gi(()=>r(i.current),[i,r,...t]),n}function k2e(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function vl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return k2e(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=vl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function pc(){let[e]=C.useState(vl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Zt=function(e){let t=wo(e);return st.useCallback((...n)=>t.current(...n),[t])};function x2e(){let e=typeof document>"u";return"useSyncExternalStore"in Q4?(t=>t.useSyncExternalStore)(Q4)(()=>()=>{},()=>!1,()=>!e):!1}function ST(){let e=x2e(),[t,n]=C.useState(hu.isHandoffComplete);return t&&hu.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>hu.handoff(),[]),e?!1:t}var XR;let B2=(XR=st.useId)!=null?XR:function(){let e=ST(),[t,n]=st.useState(e?()=>hu.nextId():null);return Gi(()=>{t===null&&n(hu.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Cr),r}function EB(e){return hu.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZR=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var I2e=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(I2e||{}),R2e=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(R2e||{}),N2e=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(N2e||{}),wT=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wT||{});function vB(e,t=0){var n;return e===((n=EB(e))==null?void 0:n.body)?!1:Cr(t,{0(){return e.matches(ZR)},1(){let r=e;for(;r!==null;){if(r.matches(ZR))return!0;r=r.parentElement}return!1}})}var O2e=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(O2e||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function D2e(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lh(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function L2e(e,t,n){let r=wo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function M2e(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!vB(u,wT.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);lh("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),lh("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),lh("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),L2e("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QR(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function F2e(e,t){let[n,r]=C.useState(()=>QR(e));return Gi(()=>{r(QR(e))},[e.type,e.as]),Gi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let P2e=Symbol();function Pu(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Zt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[P2e]))?void 0:n}function B2e(e){throw new Error("Unexpected object: "+e)}var yi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(yi||{});function U2e(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:B2e(e)}})();return a===-1?r:a}function tm(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var nm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(nm||{}),Qs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qs||{});function Rl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=_B(t,e);if(a)return uh(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return uh(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Cr(c?0:1,{0(){return null},1(){return uh({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return uh(s,n,r,o)}function uh(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=B4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,b]of Object.entries(t))typeof b=="boolean"&&(f=!0),b===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(Zy(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(b=>` - ${b}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(b=>` - ${b}`).join(` `)].join(` `));let f=c.props,m=typeof(f==null?void 0:f.className)=="function"?(...b)=>tm(f==null?void 0:f.className(...b),s.className):tm(f==null?void 0:f.className,s.className),g=m?{className:m}:{};return C.cloneElement(c,Object.assign({},_B(c.props,Zy(B4(s,["ref"]))),p,u,$2e(c.ref,u.ref),g))}return C.createElement(i,Object.assign({},B4(s,["ref"]),i!==C.Fragment&&u,i!==C.Fragment&&p),c)}function $2e(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function _B(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...a)}}});return t}function ys(e){var t;return Object.assign(C.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Zy(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function B4(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function z2e(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&H2e(n)?!1:r}function H2e(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function TB(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))wB(n,SB(t,r),i);return n}function SB(e,t){return e?e+"["+t+"]":t}function wB(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())wB(e,SB(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):TB(n,t,e)}let j2e="div";var AB=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(AB||{});function G2e(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Rl({ourProps:i,theirProps:r,slot:{},defaultTag:j2e,name:"Hidden"})}let V2e=ys(G2e),AT=C.createContext(null);AT.displayName="OpenClosedContext";var Li=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Li||{});function CT(){return C.useContext(AT)}function CB({value:e,children:t}){return st.createElement(AT.Provider,{value:e},t)}var ur=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ur||{});function W2e(e,t,n){let[r,i]=C.useState(n),a=e!==void 0,o=C.useRef(a),s=C.useRef(!1),u=C.useRef(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!u.current&&(u.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Zt(c=>(a||i(c),t==null?void 0:t(c)))]}function JR(e){return[e.screenX,e.screenY]}function q2e(){let e=C.useRef([-1,-1]);return{wasMoved(t){let n=JR(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=JR(t)}}}function kT(){let e=C.useRef(!1);return Gi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let eN=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tN(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return eN.test(o)&&(o=o.replace(eN,"")),o}function K2e(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():tN(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return tN(e).trim()}function Y2e(e){let t=C.useRef(""),n=C.useRef("");return Zt(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=K2e(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var X2e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(X2e||{}),Z2e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Z2e||{}),Q2e=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Q2e||{}),J2e=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(J2e||{});function U4(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=D2e(t(e.options.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let e5e={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=U4(e),i=U2e(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var s;return!o.dataRef.current.disabled&&((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=U4(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=U4(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},xT=C.createContext(null);xT.displayName="ListboxActionsContext";function gf(e){let t=C.useContext(xT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gf),n}return t}let IT=C.createContext(null);IT.displayName="ListboxDataContext";function mf(e){let t=C.useContext(IT);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,mf),n}return t}function t5e(e,t){return Cr(t.type,e5e,e,t)}let n5e=C.Fragment;function r5e(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(ie,Se)=>ie===Se,disabled:u=!1,horizontal:c=!1,multiple:p=!1,...f}=e;const m=c?"horizontal":"vertical";let g=Pu(t),[b=p?[]:void 0,y]=W2e(n,o,r),[T,E]=C.useReducer(t5e,{dataRef:C.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=C.useRef({static:!1,hold:!1}),w=C.useRef(null),A=C.useRef(null),R=C.useRef(null),k=Zt(typeof s=="string"?(ie,Se)=>{let X=s;return(ie==null?void 0:ie[X])===(Se==null?void 0:Se[X])}:s),N=C.useCallback(ie=>Cr(B.mode,{1:()=>b.some(Se=>k(Se,ie)),0:()=>k(b,ie)}),[b]),B=C.useMemo(()=>({...T,value:b,disabled:u,mode:p?1:0,orientation:m,compare:k,isSelected:N,optionsPropsRef:v,labelRef:w,buttonRef:A,optionsRef:R}),[b,u,p,T]);Gi(()=>{T.dataRef.current=B},[B]),M2e([B.buttonRef,B.optionsRef],(ie,Se)=>{var X;E({type:1}),vB(Se,wT.Loose)||(ie.preventDefault(),(X=B.buttonRef.current)==null||X.focus())},B.listboxState===0);let q=C.useMemo(()=>({open:B.listboxState===0,disabled:u,value:b}),[B,u,b]),P=Zt(ie=>{let Se=B.options.find(X=>X.id===ie);Se&&H(Se.dataRef.current.value)}),Q=Zt(()=>{if(B.activeOptionIndex!==null){let{dataRef:ie,id:Se}=B.options[B.activeOptionIndex];H(ie.current.value),E({type:2,focus:yi.Specific,id:Se})}}),$=Zt(()=>E({type:0})),oe=Zt(()=>E({type:1})),fe=Zt((ie,Se,X)=>ie===yi.Specific?E({type:2,focus:yi.Specific,id:Se,trigger:X}):E({type:2,focus:ie,trigger:X})),ce=Zt((ie,Se)=>(E({type:5,id:ie,dataRef:Se}),()=>E({type:6,id:ie}))),De=Zt(ie=>(E({type:7,id:ie}),()=>E({type:7,id:null}))),H=Zt(ie=>Cr(B.mode,{0(){return y==null?void 0:y(ie)},1(){let Se=B.value.slice(),X=Se.findIndex(ke=>k(ke,ie));return X===-1?Se.push(ie):Se.splice(X,1),y==null?void 0:y(Se)}})),W=Zt(ie=>E({type:3,value:ie})),se=Zt(()=>E({type:4})),D=C.useMemo(()=>({onChange:H,registerOption:ce,registerLabel:De,goToOption:fe,closeListbox:oe,openListbox:$,selectActiveOption:Q,selectOption:P,search:W,clearSearch:se}),[]),pe={ref:g},le=C.useRef(null),L=pc();return C.useEffect(()=>{le.current&&r!==void 0&&L.addEventListener(le.current,"reset",()=>{y==null||y(r)})},[le,y]),st.createElement(xT.Provider,{value:D},st.createElement(IT.Provider,{value:B},st.createElement(CB,{value:Cr(B.listboxState,{0:Li.Open,1:Li.Closed})},a!=null&&b!=null&&TB({[a]:b}).map(([ie,Se],X)=>st.createElement(V2e,{features:AB.Hidden,ref:X===0?ke=>{var te;le.current=(te=ke==null?void 0:ke.closest("form"))!=null?te:null}:void 0,...Zy({key:ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:ie,value:Se})})),Rl({ourProps:pe,theirProps:f,slot:q,defaultTag:n5e,name:"Listbox"}))))}let i5e="button";function a5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-button-${r}`,...a}=e,o=mf("Listbox.Button"),s=gf("Listbox.Button"),u=Pu(o.buttonRef,t),c=pc(),p=Zt(T=>{switch(T.key){case ur.Space:case ur.Enter:case ur.ArrowDown:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.First)});break;case ur.ArrowUp:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(yi.Last)});break}}),f=Zt(T=>{switch(T.key){case ur.Space:T.preventDefault();break}}),m=Zt(T=>{if(z2e(T.currentTarget))return T.preventDefault();o.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var E;return(E=o.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})})):(T.preventDefault(),s.openListbox())}),g=yB(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),b=C.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),y={ref:u,id:i,type:F2e(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":g,disabled:o.disabled,onKeyDown:p,onKeyUp:f,onClick:m};return Rl({ourProps:y,theirProps:a,slot:b,defaultTag:i5e,name:"Listbox.Button"})}let o5e="label";function s5e(e,t){let n=B2(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,a=mf("Listbox.Label"),o=gf("Listbox.Label"),s=Pu(a.labelRef,t);Gi(()=>o.registerLabel(r),[r]);let u=Zt(()=>{var p;return(p=a.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=C.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return Rl({ourProps:{ref:s,id:r,onClick:u},theirProps:i,slot:c,defaultTag:o5e,name:"Listbox.Label"})}let l5e="ul",u5e=nm.RenderStrategy|nm.Static;function c5e(e,t){var n;let r=B2(),{id:i=`headlessui-listbox-options-${r}`,...a}=e,o=mf("Listbox.Options"),s=gf("Listbox.Options"),u=Pu(o.optionsRef,t),c=pc(),p=pc(),f=CT(),m=(()=>f!==null?(f&Li.Open)===Li.Open:o.listboxState===0)();C.useEffect(()=>{var E;let v=o.optionsRef.current;v&&o.listboxState===0&&v!==((E=EB(v))==null?void 0:E.activeElement)&&v.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let g=Zt(E=>{switch(p.dispose(),E.key){case ur.Space:if(o.searchQuery!=="")return E.preventDefault(),E.stopPropagation(),s.search(E.key);case ur.Enter:if(E.preventDefault(),E.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:v}=o.options[o.activeOptionIndex];s.onChange(v.current.value)}o.mode===0&&(s.closeListbox(),vl().nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})}));break;case Cr(o.orientation,{vertical:ur.ArrowDown,horizontal:ur.ArrowRight}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Next);case Cr(o.orientation,{vertical:ur.ArrowUp,horizontal:ur.ArrowLeft}):return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Previous);case ur.Home:case ur.PageUp:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.First);case ur.End:case ur.PageDown:return E.preventDefault(),E.stopPropagation(),s.goToOption(yi.Last);case ur.Escape:return E.preventDefault(),E.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})});case ur.Tab:E.preventDefault(),E.stopPropagation();break;default:E.key.length===1&&(s.search(E.key),p.setTimeout(()=>s.clearSearch(),350));break}}),b=yB(()=>{var E,v,w;return(w=(E=o.labelRef.current)==null?void 0:E.id)!=null?w:(v=o.buttonRef.current)==null?void 0:v.id},[o.labelRef.current,o.buttonRef.current]),y=C.useMemo(()=>({open:o.listboxState===0}),[o]),T={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":b,"aria-orientation":o.orientation,id:i,onKeyDown:g,role:"listbox",tabIndex:0,ref:u};return Rl({ourProps:T,theirProps:a,slot:y,defaultTag:l5e,features:u5e,visible:m,name:"Listbox.Options"})}let d5e="li";function p5e(e,t){let n=B2(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...o}=e,s=mf("Listbox.Option"),u=gf("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===r:!1,p=s.isSelected(a),f=C.useRef(null),m=Y2e(f),g=wo({disabled:i,value:a,domRef:f,get textValue(){return m()}}),b=Pu(t,f);Gi(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let k=vl();return k.requestAnimationFrame(()=>{var N,B;(B=(N=f.current)==null?void 0:N.scrollIntoView)==null||B.call(N,{block:"nearest"})}),k.dispose},[f,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Gi(()=>u.registerOption(r,g),[g,r]);let y=Zt(k=>{if(i)return k.preventDefault();u.onChange(a),s.mode===0&&(u.closeListbox(),vl().nextFrame(()=>{var N;return(N=s.buttonRef.current)==null?void 0:N.focus({preventScroll:!0})}))}),T=Zt(()=>{if(i)return u.goToOption(yi.Nothing);u.goToOption(yi.Specific,r)}),E=q2e(),v=Zt(k=>E.update(k)),w=Zt(k=>{E.wasMoved(k)&&(i||c||u.goToOption(yi.Specific,r,0))}),A=Zt(k=>{E.wasMoved(k)&&(i||c&&u.goToOption(yi.Nothing))}),R=C.useMemo(()=>({active:c,selected:p,disabled:i}),[c,p,i]);return Rl({ourProps:{id:r,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:y,onFocus:T,onPointerEnter:v,onMouseEnter:v,onPointerMove:w,onMouseMove:w,onPointerLeave:A,onMouseLeave:A},theirProps:o,slot:R,defaultTag:d5e,name:"Listbox.Option"})}let f5e=ys(r5e),h5e=ys(a5e),g5e=ys(s5e),m5e=ys(c5e),b5e=ys(p5e),U2=Object.assign(f5e,{Button:h5e,Label:g5e,Options:m5e,Option:b5e});function y5e(e=0){let[t,n]=C.useState(e),r=kT(),i=C.useCallback(u=>{r.current&&n(c=>c|u)},[t,r]),a=C.useCallback(u=>!!(t&u),[t]),o=C.useCallback(u=>{r.current&&n(c=>c&~u)},[n,r]),s=C.useCallback(u=>{r.current&&n(c=>c^u)},[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:s}}function E5e(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function $4(e,...t){e&&t.length>0&&e.classList.add(...t)}function z4(e,...t){e&&t.length>0&&e.classList.remove(...t)}function v5e(e,t){let n=vl();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,f)=>f-p);return c}),s=a+o;if(s!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let u=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return n.add(()=>t()),n.dispose}function _5e(e,t,n,r){let i=n?"enter":"leave",a=vl(),o=r!==void 0?E5e(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Cr(i,{enter:()=>t.enter,leave:()=>t.leave}),u=Cr(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Cr(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return z4(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),$4(e,...t.base,...s,...c),a.nextFrame(()=>{z4(e,...t.base,...s,...c),$4(e,...t.base,...s,...u),v5e(e,()=>(z4(e,...t.base,...s),$4(e,...t.base,...t.entered),o()))}),a.dispose}function T5e({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=kT(),s=pc(),u=wo(n);Gi(()=>{e&&(u.current="enter")},[e]),Gi(()=>{let c=vl();s.add(c.dispose);let p=t.current;if(p&&u.current!=="idle"&&o.current)return c.dispose(),i.current(u.current),c.add(_5e(p,r.current,u.current==="enter",()=>{c.dispose(),a.current(u.current)})),c.dispose},[n])}function Bs(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let $2=C.createContext(null);$2.displayName="TransitionContext";var S5e=(e=>(e.Visible="visible",e.Hidden="hidden",e))(S5e||{});function w5e(){let e=C.useContext($2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function A5e(){let e=C.useContext(z2);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let z2=C.createContext(null);z2.displayName="NestingContext";function H2(e){return"children"in e?H2(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function kB(e,t){let n=wo(e),r=C.useRef([]),i=kT(),a=pc(),o=Zt((g,b=Qs.Hidden)=>{let y=r.current.findIndex(({el:T})=>T===g);y!==-1&&(Cr(b,{[Qs.Unmount](){r.current.splice(y,1)},[Qs.Hidden](){r.current[y].state="hidden"}}),a.microTask(()=>{var T;!H2(r)&&i.current&&((T=n.current)==null||T.call(n))}))}),s=Zt(g=>{let b=r.current.find(({el:y})=>y===g);return b?b.state!=="visible"&&(b.state="visible"):r.current.push({el:g,state:"visible"}),()=>o(g,Qs.Unmount)}),u=C.useRef([]),c=C.useRef(Promise.resolve()),p=C.useRef({enter:[],leave:[],idle:[]}),f=Zt((g,b,y)=>{u.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([T])=>T!==g)),t==null||t.chains.current[b].push([g,new Promise(T=>{u.current.push(T)})]),t==null||t.chains.current[b].push([g,new Promise(T=>{Promise.all(p.current[b].map(([E,v])=>v)).then(()=>T())})]),b==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(b)):y(b)}),m=Zt((g,b,y)=>{Promise.all(p.current[b].splice(0).map(([T,E])=>E)).then(()=>{var T;(T=u.current.shift())==null||T()}).then(()=>y(b))});return C.useMemo(()=>({children:r,register:s,unregister:o,onStart:f,onStop:m,wait:c,chains:p}),[s,o,r,f,m,p,c])}function C5e(){}let k5e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nN(e){var t;let n={};for(let r of k5e)n[r]=(t=e[r])!=null?t:C5e;return n}function x5e(e){let t=C.useRef(nN(e));return C.useEffect(()=>{t.current=nN(e)},[e]),t}let I5e="div",xB=nm.RenderStrategy;function R5e(e,t){var n,r;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s,enter:u,enterFrom:c,enterTo:p,entered:f,leave:m,leaveFrom:g,leaveTo:b,...y}=e,T=C.useRef(null),E=Pu(T,t),v=(n=y.unmount)==null||n?Qs.Unmount:Qs.Hidden,{show:w,appear:A,initial:R}=w5e(),[k,N]=C.useState(w?"visible":"hidden"),B=A5e(),{register:q,unregister:P}=B;C.useEffect(()=>q(T),[q,T]),C.useEffect(()=>{if(v===Qs.Hidden&&T.current){if(w&&k!=="visible"){N("visible");return}return Cr(k,{hidden:()=>P(T),visible:()=>q(T)})}},[k,T,q,P,w,v]);let Q=wo({base:Bs(y.className),enter:Bs(u),enterFrom:Bs(c),enterTo:Bs(p),entered:Bs(f),leave:Bs(m),leaveFrom:Bs(g),leaveTo:Bs(b)}),$=x5e({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s}),oe=ST();C.useEffect(()=>{if(oe&&k==="visible"&&T.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[T,k,oe]);let fe=R&&!A,ce=A&&w&&R,De=(()=>!oe||fe?"idle":w?"enter":"leave")(),H=y5e(0),W=Zt(L=>Cr(L,{enter:()=>{H.addFlag(Li.Opening),$.current.beforeEnter()},leave:()=>{H.addFlag(Li.Closing),$.current.beforeLeave()},idle:()=>{}})),se=Zt(L=>Cr(L,{enter:()=>{H.removeFlag(Li.Opening),$.current.afterEnter()},leave:()=>{H.removeFlag(Li.Closing),$.current.afterLeave()},idle:()=>{}})),D=kB(()=>{N("hidden"),P(T)},B);T5e({immediate:ce,container:T,classes:Q,direction:De,onStart:wo(L=>{D.onStart(T,L,W)}),onStop:wo(L=>{D.onStop(T,L,se),L==="leave"&&!H2(D)&&(N("hidden"),P(T))})});let pe=y,le={ref:E};return ce?pe={...pe,className:tm(y.className,...Q.current.enter,...Q.current.enterFrom)}:(pe.className=tm(y.className,(r=T.current)==null?void 0:r.className),pe.className===""&&delete pe.className),st.createElement(z2.Provider,{value:D},st.createElement(CB,{value:Cr(k,{visible:Li.Open,hidden:Li.Closed})|H.flags},Rl({ourProps:le,theirProps:pe,defaultTag:I5e,features:xB,visible:k==="visible",name:"Transition.Child"})))}function N5e(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=C.useRef(null),s=Pu(o,t);ST();let u=CT();if(n===void 0&&u!==null&&(n=(u&Li.Open)===Li.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,p]=C.useState(n?"visible":"hidden"),f=kB(()=>{p("hidden")}),[m,g]=C.useState(!0),b=C.useRef([n]);Gi(()=>{m!==!1&&b.current[b.current.length-1]!==n&&(b.current.push(n),g(!1))},[b,n]);let y=C.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);C.useEffect(()=>{if(n)p("visible");else if(!H2(f))p("hidden");else{let w=o.current;if(!w)return;let A=w.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&p("hidden")}},[n,f]);let T={unmount:i},E=Zt(()=>{var w;m&&g(!1),(w=e.beforeEnter)==null||w.call(e)}),v=Zt(()=>{var w;m&&g(!1),(w=e.beforeLeave)==null||w.call(e)});return st.createElement(z2.Provider,{value:f},st.createElement($2.Provider,{value:y},Rl({ourProps:{...T,as:C.Fragment,children:st.createElement(IB,{ref:s,...T,...a,beforeEnter:E,beforeLeave:v})},theirProps:{},defaultTag:C.Fragment,features:xB,visible:c==="visible",name:"Transition"})))}function O5e(e,t){let n=C.useContext($2)!==null,r=CT()!==null;return st.createElement(st.Fragment,null,!n&&r?st.createElement(Qy,{ref:t,...e}):st.createElement(IB,{ref:t,...e}))}let Qy=ys(N5e),IB=ys(R5e),D5e=ys(O5e),L5e=Object.assign(Qy,{Child:D5e,Root:Qy});const M5e=Ge.div` @@ -1069,7 +1069,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.4; } } -`;function Y3e(e){const t=window.vscMediaUrl;return I.jsx(K3e,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(AL,{width:e.size||WB})})}const aE=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(MZ,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&u9.createPortal(I.jsx(au,{id:t,place:"bottom",children:e}),n)]})};var bf=e=>e.type==="checkbox",F1=e=>e instanceof Date,ei=e=>e==null;const qB=e=>typeof e=="object";var ir=e=>!ei(e)&&!Array.isArray(e)&&qB(e)&&!F1(e),X3e=e=>ir(e)&&e.target?bf(e.target)?e.target.checked:e.target.value:e,Z3e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Q3e=(e,t)=>e.has(Z3e(t)),J3e=e=>{const t=e.constructor&&e.constructor.prototype;return ir(t)&&t.hasOwnProperty("isPrototypeOf")},FT=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Qo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(FT&&(e instanceof Blob||e instanceof FileList))&&(n||ir(e)))if(t=n?[]:{},!n&&!J3e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Qo(e[r]));else return e;return t}var yf=e=>Array.isArray(e)?e.filter(Boolean):[],qn=e=>e===void 0,ut=(e,t,n)=>{if(!t||!ir(e))return n;const r=yf(t.split(/[,[\].]+?/)).reduce((i,a)=>ei(i)?i:i[a],e);return qn(r)||r===e?qn(e[t])?n:e[t]:r},lu=e=>typeof e=="boolean";const fN={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ha={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Yo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},e4e=st.createContext(null),KB=e=>{const{children:t,...n}=e;return st.createElement(e4e.Provider,{value:n},t)};var t4e=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ha.all&&(t._proxyFormState[o]=!r||Ha.all),n&&(n[o]=!0),e[o]}});return i},sa=e=>ir(e)&&!Object.keys(e).length,n4e=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return sa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ha.all))},V4=e=>Array.isArray(e)?e:[e];function r4e(e){const t=st.useRef(e);t.current=e,st.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var Eo=e=>typeof e=="string",i4e=(e,t,n,r,i)=>Eo(e)?(r&&t.watch.add(e),ut(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ut(n,a))):(r&&(t.watchAll=!0),n),PT=e=>/^\w*$/.test(e),YB=e=>yf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Cn(e,t,n){let r=-1;const i=PT(t)?[t]:YB(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const oE=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=ut(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else ir(o)&&oE(o,t)}}};var hN=e=>({isOnSubmit:!e||e===Ha.onSubmit,isOnBlur:e===Ha.onBlur,isOnChange:e===Ha.onChange,isOnAll:e===Ha.all,isOnTouch:e===Ha.onTouched}),gN=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),o4e=(e,t,n)=>{const r=yf(ut(e,n));return Cn(r,"root",t[n]),Cn(e,n,r),e},BT=e=>e.type==="file",Js=e=>typeof e=="function",rm=e=>{if(!FT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},qh=e=>Eo(e),UT=e=>e.type==="radio",im=e=>e instanceof RegExp;const mN={value:!1,isValid:!1},bN={value:!0,isValid:!0};var XB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qn(e[0].attributes.value)?qn(e[0].value)||e[0].value===""?bN:{value:e[0].value,isValid:!0}:bN:mN}return mN};const yN={isValid:!1,value:null};var ZB=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,yN):yN;function EN(e,t,n="validate"){if(qh(e)||Array.isArray(e)&&e.every(qh)||lu(e)&&!e)return{type:n,message:qh(e)?e:"",ref:t}}var a1=e=>ir(e)&&!im(e)?e:{value:e,message:""},vN=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:b,valueAsNumber:y,mount:T,disabled:E}=e._f,v=ut(t,b);if(!T||E)return{};const w=o?o[0]:a,A=$=>{r&&w.reportValidity&&(w.setCustomValidity(lu($)?"":$||""),w.reportValidity())},R={},k=UT(a),N=bf(a),B=k||N,q=(y||BT(a))&&qn(a.value)&&qn(v)||rm(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,P=a4e.bind(null,b,n,R),Q=($,oe,fe,ce=Yo.maxLength,De=Yo.minLength)=>{const H=$?oe:fe;R[b]={type:$?ce:De,message:H,ref:a,...P($?ce:De,H)}};if(i?!Array.isArray(v)||!v.length:s&&(!B&&(q||ei(v))||lu(v)&&!v||N&&!XB(o).isValid||k&&!ZB(o).isValid)){const{value:$,message:oe}=qh(s)?{value:!!s,message:s}:a1(s);if($&&(R[b]={type:Yo.required,message:oe,ref:w,...P(Yo.required,oe)},!n))return A(oe),R}if(!q&&(!ei(p)||!ei(f))){let $,oe;const fe=a1(f),ce=a1(p);if(!ei(v)&&!isNaN(v)){const De=a.valueAsNumber||v&&+v;ei(fe.value)||($=De>fe.value),ei(ce.value)||(oe=Denew Date(new Date().toDateString()+" "+D),W=a.type=="time",se=a.type=="week";Eo(fe.value)&&v&&($=W?H(v)>H(fe.value):se?v>fe.value:De>new Date(fe.value)),Eo(ce.value)&&v&&(oe=W?H(v)+$.value,ce=!ei(oe.value)&&v.length<+oe.value;if((fe||ce)&&(Q(fe,$.message,oe.message),!n))return A(R[b].message),R}if(m&&!q&&Eo(v)){const{value:$,message:oe}=a1(m);if(im($)&&!v.match($)&&(R[b]={type:Yo.pattern,message:oe,ref:a,...P(Yo.pattern,oe)},!n))return A(oe),R}if(g){if(Js(g)){const $=await g(v,t),oe=EN($,w);if(oe&&(R[b]={...oe,...P(Yo.validate,oe.message)},!n))return A(oe.message),R}else if(ir(g)){let $={};for(const oe in g){if(!sa($)&&!n)break;const fe=EN(await g[oe](v,t),w,oe);fe&&($={...fe,...P(oe,fe.message)},A(fe.message),n&&(R[b]=$))}if(!sa($)&&(R[b]={ref:w,...$},!n))return R}}return A(!0),R};function s4e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var am=e=>ei(e)||!qB(e);function uu(e,t){if(am(e)||am(t))return e===t;if(F1(e)&&F1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(F1(a)&&F1(o)||ir(a)&&ir(o)||Array.isArray(a)&&Array.isArray(o)?!uu(a,o):a!==o)return!1}}return!0}var QB=e=>e.type==="select-multiple",u4e=e=>UT(e)||bf(e),q4=e=>rm(e)&&e.isConnected,JB=e=>{for(const t in e)if(Js(e[t]))return!0;return!1};function om(e,t={}){const n=Array.isArray(e);if(ir(e)||n)for(const r in e)Array.isArray(e[r])||ir(e[r])&&!JB(e[r])?(t[r]=Array.isArray(e[r])?[]:{},om(e[r],t[r])):ei(e[r])||(t[r]=!0);return t}function eU(e,t,n){const r=Array.isArray(e);if(ir(e)||r)for(const i in e)Array.isArray(e[i])||ir(e[i])&&!JB(e[i])?qn(t)||am(n[i])?n[i]=Array.isArray(e[i])?om(e[i],[]):{...om(e[i])}:eU(e[i],ei(t)?{}:t[i],n[i]):n[i]=!uu(e[i],t[i]);return n}var K4=(e,t)=>eU(e,t,om(t)),tU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>qn(e)?e:t?e===""?NaN:e&&+e:n&&Eo(e)?new Date(e):r?r(e):e;function Y4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return BT(t)?t.files:UT(t)?ZB(e.refs).value:QB(t)?[...t.selectedOptions].map(({value:n})=>n):bf(t)?XB(e.refs).value:tU(qn(t.value)?e.ref.value:t.value,e)}var c4e=(e,t,n,r)=>{const i={};for(const a of e){const o=ut(t,a);o&&Cn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},yd=e=>qn(e)?e:im(e)?e.source:ir(e)?im(e.value)?e.value.source:e.value:e,d4e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _N(e,t,n){const r=ut(e,n);if(r||PT(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=ut(t,a),s=ut(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var p4e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,f4e=(e,t)=>!yf(ut(e,t)).length&&vr(e,t);const h4e={mode:Ha.onSubmit,reValidateMode:Ha.onChange,shouldFocusError:!0};function g4e(e={},t){let n={...h4e,...e},r={submitCount:0,isDirty:!1,isLoading:Js(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=ir(n.defaultValues)||ir(n.values)?Qo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:Qo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:W4(),array:W4(),state:W4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,b=hN(n.mode),y=hN(n.reValidateMode),T=n.criteriaMode===Ha.all,E=U=>re=>{clearTimeout(p),p=setTimeout(U,re)},v=async U=>{if(f.isValid||U){const re=n.resolver?sa((await q()).errors):await Q(i,!0);re!==r.isValid&&m.state.next({isValid:re})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,re=[],de,xe,ye=!0,Te=!0)=>{if(xe&&de){if(s.action=!0,Te&&Array.isArray(ut(i,U))){const Le=de(ut(i,U),xe.argA,xe.argB);ye&&Cn(i,U,Le)}if(Te&&Array.isArray(ut(r.errors,U))){const Le=de(ut(r.errors,U),xe.argA,xe.argB);ye&&Cn(r.errors,U,Le),f4e(r.errors,U)}if(f.touchedFields&&Te&&Array.isArray(ut(r.touchedFields,U))){const Le=de(ut(r.touchedFields,U),xe.argA,xe.argB);ye&&Cn(r.touchedFields,U,Le)}f.dirtyFields&&(r.dirtyFields=K4(a,o)),m.state.next({name:U,isDirty:oe(U,re),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Cn(o,U,re)},R=(U,re)=>{Cn(r.errors,U,re),m.state.next({errors:r.errors})},k=(U,re,de,xe)=>{const ye=ut(i,U);if(ye){const Te=ut(o,U,qn(de)?ut(a,U):de);qn(Te)||xe&&xe.defaultChecked||re?Cn(o,U,re?Te:Y4(ye._f)):De(U,Te),s.mount&&v()}},N=(U,re,de,xe,ye)=>{let Te=!1,Le=!1;const ze={name:U};if(!de||xe){f.isDirty&&(Le=r.isDirty,r.isDirty=ze.isDirty=oe(),Te=Le!==ze.isDirty);const Ye=uu(ut(a,U),re);Le=ut(r.dirtyFields,U),Ye?vr(r.dirtyFields,U):Cn(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Te=Te||f.dirtyFields&&Le!==!Ye}if(de){const Ye=ut(r.touchedFields,U);Ye||(Cn(r.touchedFields,U,de),ze.touchedFields=r.touchedFields,Te=Te||f.touchedFields&&Ye!==de)}return Te&&ye&&m.state.next(ze),Te?ze:{}},B=(U,re,de,xe)=>{const ye=ut(r.errors,U),Te=f.isValid&&lu(re)&&r.isValid!==re;if(e.delayError&&de?(c=E(()=>R(U,de)),c(e.delayError)):(clearTimeout(p),c=null,de?Cn(r.errors,U,de):vr(r.errors,U)),(de?!uu(ye,de):ye)||!sa(xe)||Te){const Le={...xe,...Te&&lu(re)?{isValid:re}:{},errors:r.errors,name:U};r={...r,...Le},m.state.next(Le)}w(!1)},q=async U=>n.resolver(o,n.context,c4e(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:re}=await q(U);if(U)for(const de of U){const xe=ut(re,de);xe?Cn(r.errors,de,xe):vr(r.errors,de)}else r.errors=re;return re},Q=async(U,re,de={valid:!0})=>{for(const xe in U){const ye=U[xe];if(ye){const{_f:Te,...Le}=ye;if(Te){const ze=u.array.has(Te.name),Ye=await vN(ye,o,T,n.shouldUseNativeValidation&&!re,ze);if(Ye[Te.name]&&(de.valid=!1,re))break;!re&&(ut(Ye,Te.name)?ze?o4e(r.errors,Ye,Te.name):Cn(r.errors,Te.name,Ye[Te.name]):vr(r.errors,Te.name))}Le&&await Q(Le,re,de)}}return de.valid},$=()=>{for(const U of u.unMount){const re=ut(i,U);re&&(re._f.refs?re._f.refs.every(de=>!q4(de)):!q4(re._f.ref))&&X(U)}u.unMount=new Set},oe=(U,re)=>(U&&re&&Cn(o,U,re),!uu(pe(),a)),fe=(U,re,de)=>i4e(U,u,{...s.mount?o:qn(re)?a:Eo(U)?{[U]:re}:re},de,re),ce=U=>yf(ut(s.mount?o:a,U,e.shouldUnregister?ut(a,U,[]):[])),De=(U,re,de={})=>{const xe=ut(i,U);let ye=re;if(xe){const Te=xe._f;Te&&(!Te.disabled&&Cn(o,U,tU(re,Te)),ye=rm(Te.ref)&&ei(re)?"":re,QB(Te.ref)?[...Te.ref.options].forEach(Le=>Le.selected=ye.includes(Le.value)):Te.refs?bf(Te.ref)?Te.refs.length>1?Te.refs.forEach(Le=>(!Le.defaultChecked||!Le.disabled)&&(Le.checked=Array.isArray(ye)?!!ye.find(ze=>ze===Le.value):ye===Le.value)):Te.refs[0]&&(Te.refs[0].checked=!!ye):Te.refs.forEach(Le=>Le.checked=Le.value===ye):BT(Te.ref)?Te.ref.value="":(Te.ref.value=ye,Te.ref.type||m.values.next({name:U,values:{...o}})))}(de.shouldDirty||de.shouldTouch)&&N(U,ye,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&D(U)},H=(U,re,de)=>{for(const xe in re){const ye=re[xe],Te=`${U}.${xe}`,Le=ut(i,Te);(u.array.has(U)||!am(ye)||Le&&!Le._f)&&!F1(ye)?H(Te,ye,de):De(Te,ye,de)}},W=(U,re,de={})=>{const xe=ut(i,U),ye=u.array.has(U),Te=Qo(re);Cn(o,U,Te),ye?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&de.shouldDirty&&m.state.next({name:U,dirtyFields:K4(a,o),isDirty:oe(U,Te)})):xe&&!xe._f&&!ei(Te)?H(U,Te,de):De(U,Te,de),gN(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},se=async U=>{const re=U.target;let de=re.name,xe=!0;const ye=ut(i,de),Te=()=>re.type?Y4(ye._f):X3e(U);if(ye){let Le,ze;const Ye=Te(),jt=U.type===fN.BLUR||U.type===fN.FOCUS_OUT,ue=!d4e(ye._f)&&!n.resolver&&!ut(r.errors,de)&&!ye._f.deps||p4e(jt,ut(r.touchedFields,de),r.isSubmitted,y,b),Ee=gN(de,u,jt);Cn(o,de,Ye),jt?(ye._f.onBlur&&ye._f.onBlur(U),c&&c(0)):ye._f.onChange&&ye._f.onChange(U);const qe=N(de,Ye,jt,!1),j=!sa(qe)||Ee;if(!jt&&m.values.next({name:de,type:U.type,values:{...o}}),ue)return f.isValid&&v(),j&&m.state.next({name:de,...Ee?{}:qe});if(!jt&&Ee&&m.state.next({...r}),w(!0),n.resolver){const{errors:me}=await q([de]),Ve=_N(r.errors,i,de),ge=_N(me,i,Ve.name||de);Le=ge.error,de=ge.name,ze=sa(me)}else Le=(await vN(ye,o,T,n.shouldUseNativeValidation))[de],xe=Number.isNaN(Ye)||Ye===ut(o,de,Ye),xe&&(Le?ze=!1:f.isValid&&(ze=await Q(i,!0)));xe&&(ye._f.deps&&D(ye._f.deps),B(de,ze,Le,qe))}},D=async(U,re={})=>{let de,xe;const ye=V4(U);if(w(!0),n.resolver){const Te=await P(qn(U)?U:ye);de=sa(Te),xe=U?!ye.some(Le=>ut(Te,Le)):de}else U?(xe=(await Promise.all(ye.map(async Te=>{const Le=ut(i,Te);return await Q(Le&&Le._f?{[Te]:Le}:Le)}))).every(Boolean),!(!xe&&!r.isValid)&&v()):xe=de=await Q(i);return m.state.next({...!Eo(U)||f.isValid&&de!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:de}:{},errors:r.errors,isValidating:!1}),re.shouldFocus&&!xe&&oE(i,Te=>Te&&ut(r.errors,Te),U?ye:u.mount),xe},pe=U=>{const re={...a,...s.mount?o:{}};return qn(U)?re:Eo(U)?ut(re,U):U.map(de=>ut(re,de))},le=(U,re)=>({invalid:!!ut((re||r).errors,U),isDirty:!!ut((re||r).dirtyFields,U),isTouched:!!ut((re||r).touchedFields,U),error:ut((re||r).errors,U)}),L=U=>{U&&V4(U).forEach(re=>vr(r.errors,re)),m.state.next({errors:U?r.errors:{}})},ie=(U,re,de)=>{const xe=(ut(i,U,{_f:{}})._f||{}).ref;Cn(r.errors,U,{...re,ref:xe}),m.state.next({name:U,errors:r.errors,isValid:!1}),de&&de.shouldFocus&&xe&&xe.focus&&xe.focus()},Se=(U,re)=>Js(U)?m.values.subscribe({next:de=>U(fe(void 0,re),de)}):fe(U,re,!0),X=(U,re={})=>{for(const de of U?V4(U):u.mount)u.mount.delete(de),u.array.delete(de),re.keepValue||(vr(i,de),vr(o,de)),!re.keepError&&vr(r.errors,de),!re.keepDirty&&vr(r.dirtyFields,de),!re.keepTouched&&vr(r.touchedFields,de),!n.shouldUnregister&&!re.keepDefaultValue&&vr(a,de);m.values.next({values:{...o}}),m.state.next({...r,...re.keepDirty?{isDirty:oe()}:{}}),!re.keepIsValid&&v()},ke=({disabled:U,name:re,field:de,fields:xe})=>{if(lu(U)){const ye=U?void 0:ut(o,re,Y4(de?de._f:ut(xe,re)._f));Cn(o,re,ye),N(re,ye,!1,!1,!0)}},te=(U,re={})=>{let de=ut(i,U);const xe=lu(re.disabled);return Cn(i,U,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:U}},name:U,mount:!0,...re}}),u.mount.add(U),de?ke({field:de,disabled:re.disabled,name:U}):k(U,!0,re.value),{...xe?{disabled:re.disabled}:{},...n.progressive?{required:!!re.required,min:yd(re.min),max:yd(re.max),minLength:yd(re.minLength),maxLength:yd(re.maxLength),pattern:yd(re.pattern)}:{},name:U,onChange:se,onBlur:se,ref:ye=>{if(ye){te(U,re),de=ut(i,U);const Te=qn(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,Le=u4e(Te),ze=de._f.refs||[];if(Le?ze.find(Ye=>Ye===Te):Te===de._f.ref)return;Cn(i,U,{_f:{...de._f,...Le?{refs:[...ze.filter(q4),Te,...Array.isArray(ut(a,U))?[{}]:[]],ref:{type:Te.type,name:U}}:{ref:Te}}}),k(U,!1,void 0,Te)}else de=ut(i,U,{}),de._f&&(de._f.mount=!1),(n.shouldUnregister||re.shouldUnregister)&&!(Q3e(u.array,U)&&s.action)&&u.unMount.add(U)}}},Me=()=>n.shouldFocusError&&oE(i,U=>U&&ut(r.errors,U),u.mount),Re=(U,re)=>async de=>{de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let xe=Qo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ye,values:Te}=await q();r.errors=ye,xe=Te}else await Q(i);vr(r.errors,"root"),sa(r.errors)?(m.state.next({errors:{}}),await U(xe,de)):(re&&await re({...r.errors},de),Me(),setTimeout(Me)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Ze=(U,re={})=>{ut(i,U)&&(qn(re.defaultValue)?W(U,ut(a,U)):(W(U,re.defaultValue),Cn(a,U,re.defaultValue)),re.keepTouched||vr(r.touchedFields,U),re.keepDirty||(vr(r.dirtyFields,U),r.isDirty=re.defaultValue?oe(U,ut(a,U)):oe()),re.keepError||(vr(r.errors,U),f.isValid&&v()),m.state.next({...r}))},We=(U,re={})=>{const de=U?Qo(U):a,xe=Qo(de),ye=U&&!sa(U)?xe:a;if(re.keepDefaultValues||(a=de),!re.keepValues){if(re.keepDirtyValues||g)for(const Te of u.mount)ut(r.dirtyFields,Te)?Cn(ye,Te,ut(o,Te)):W(Te,ut(ye,Te));else{if(FT&&qn(U))for(const Te of u.mount){const Le=ut(i,Te);if(Le&&Le._f){const ze=Array.isArray(Le._f.refs)?Le._f.refs[0]:Le._f.ref;if(rm(ze)){const Ye=ze.closest("form");if(Ye){Ye.reset();break}}}}i={}}o=e.shouldUnregister?re.keepDefaultValues?Qo(a):{}:Qo(ye),m.array.next({values:{...ye}}),m.values.next({values:{...ye}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!re.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:re.keepSubmitCount?r.submitCount:0,isDirty:re.keepDirty?r.isDirty:!!(re.keepDefaultValues&&!uu(U,a)),isSubmitted:re.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re.keepDirtyValues?r.dirtyFields:re.keepDefaultValues&&U?K4(a,U):{},touchedFields:re.keepTouched?r.touchedFields:{},errors:re.keepErrors?r.errors:{},isSubmitSuccessful:re.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,re)=>We(Js(U)?U(o):U,re);return{control:{register:te,unregister:X,getFieldState:le,handleSubmit:Re,setError:ie,_executeSchema:q,_getWatch:fe,_getDirty:oe,_updateValid:v,_removeUnmounted:$,_updateFieldArray:A,_updateDisabledField:ke,_getFieldArray:ce,_reset:We,_resetDefaultValues:()=>Js(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:D,register:te,handleSubmit:Re,watch:Se,setValue:W,getValues:pe,reset:dt,resetField:Ze,clearErrors:L,unregister:X,setError:ie,setFocus:(U,re={})=>{const de=ut(i,U),xe=de&&de._f;if(xe){const ye=xe.refs?xe.refs[0]:xe.ref;ye.focus&&(ye.focus(),re.shouldSelect&&ye.select())}},getFieldState:le}}function nU(e={}){const t=st.useRef(),n=st.useRef(),[r,i]=st.useState({isDirty:!1,isValidating:!1,isLoading:Js(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Js(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...g4e(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,r4e({subject:a._subjects.state,next:o=>{n4e(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),st.useEffect(()=>{e.values&&!uu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),st.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=t4e(r,a),t.current}const TN=Ge.hr` +`;function Y3e(e){const t=window.vscMediaUrl;return I.jsx(K3e,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(AL,{width:e.size||WB})})}const aE=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(MZ,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&u9.createPortal(I.jsx(au,{id:t,place:"bottom",children:e}),n)]})};var bf=e=>e.type==="checkbox",F1=e=>e instanceof Date,ei=e=>e==null;const qB=e=>typeof e=="object";var ir=e=>!ei(e)&&!Array.isArray(e)&&qB(e)&&!F1(e),X3e=e=>ir(e)&&e.target?bf(e.target)?e.target.checked:e.target.value:e,Z3e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Q3e=(e,t)=>e.has(Z3e(t)),J3e=e=>{const t=e.constructor&&e.constructor.prototype;return ir(t)&&t.hasOwnProperty("isPrototypeOf")},FT=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Qo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(FT&&(e instanceof Blob||e instanceof FileList))&&(n||ir(e)))if(t=n?[]:{},!n&&!J3e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Qo(e[r]));else return e;return t}var yf=e=>Array.isArray(e)?e.filter(Boolean):[],qn=e=>e===void 0,ut=(e,t,n)=>{if(!t||!ir(e))return n;const r=yf(t.split(/[,[\].]+?/)).reduce((i,a)=>ei(i)?i:i[a],e);return qn(r)||r===e?qn(e[t])?n:e[t]:r},lu=e=>typeof e=="boolean";const fN={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ha={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Yo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},e4e=st.createContext(null),KB=e=>{const{children:t,...n}=e;return st.createElement(e4e.Provider,{value:n},t)};var t4e=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ha.all&&(t._proxyFormState[o]=!r||Ha.all),n&&(n[o]=!0),e[o]}});return i},sa=e=>ir(e)&&!Object.keys(e).length,n4e=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return sa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ha.all))},V4=e=>Array.isArray(e)?e:[e];function r4e(e){const t=st.useRef(e);t.current=e,st.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var Eo=e=>typeof e=="string",i4e=(e,t,n,r,i)=>Eo(e)?(r&&t.watch.add(e),ut(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ut(n,a))):(r&&(t.watchAll=!0),n),PT=e=>/^\w*$/.test(e),YB=e=>yf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Cn(e,t,n){let r=-1;const i=PT(t)?[t]:YB(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const oE=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=ut(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else ir(o)&&oE(o,t)}}};var hN=e=>({isOnSubmit:!e||e===Ha.onSubmit,isOnBlur:e===Ha.onBlur,isOnChange:e===Ha.onChange,isOnAll:e===Ha.all,isOnTouch:e===Ha.onTouched}),gN=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),o4e=(e,t,n)=>{const r=yf(ut(e,n));return Cn(r,"root",t[n]),Cn(e,n,r),e},BT=e=>e.type==="file",Js=e=>typeof e=="function",rm=e=>{if(!FT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},qh=e=>Eo(e),UT=e=>e.type==="radio",im=e=>e instanceof RegExp;const mN={value:!1,isValid:!1},bN={value:!0,isValid:!0};var XB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qn(e[0].attributes.value)?qn(e[0].value)||e[0].value===""?bN:{value:e[0].value,isValid:!0}:bN:mN}return mN};const yN={isValid:!1,value:null};var ZB=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,yN):yN;function EN(e,t,n="validate"){if(qh(e)||Array.isArray(e)&&e.every(qh)||lu(e)&&!e)return{type:n,message:qh(e)?e:"",ref:t}}var a1=e=>ir(e)&&!im(e)?e:{value:e,message:""},vN=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:b,valueAsNumber:y,mount:T,disabled:E}=e._f,v=ut(t,b);if(!T||E)return{};const w=o?o[0]:a,A=$=>{r&&w.reportValidity&&(w.setCustomValidity(lu($)?"":$||""),w.reportValidity())},R={},k=UT(a),N=bf(a),B=k||N,q=(y||BT(a))&&qn(a.value)&&qn(v)||rm(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,P=a4e.bind(null,b,n,R),Q=($,oe,fe,ce=Yo.maxLength,De=Yo.minLength)=>{const H=$?oe:fe;R[b]={type:$?ce:De,message:H,ref:a,...P($?ce:De,H)}};if(i?!Array.isArray(v)||!v.length:s&&(!B&&(q||ei(v))||lu(v)&&!v||N&&!XB(o).isValid||k&&!ZB(o).isValid)){const{value:$,message:oe}=qh(s)?{value:!!s,message:s}:a1(s);if($&&(R[b]={type:Yo.required,message:oe,ref:w,...P(Yo.required,oe)},!n))return A(oe),R}if(!q&&(!ei(p)||!ei(f))){let $,oe;const fe=a1(f),ce=a1(p);if(!ei(v)&&!isNaN(v)){const De=a.valueAsNumber||v&&+v;ei(fe.value)||($=De>fe.value),ei(ce.value)||(oe=Denew Date(new Date().toDateString()+" "+D),W=a.type=="time",se=a.type=="week";Eo(fe.value)&&v&&($=W?H(v)>H(fe.value):se?v>fe.value:De>new Date(fe.value)),Eo(ce.value)&&v&&(oe=W?H(v)+$.value,ce=!ei(oe.value)&&v.length<+oe.value;if((fe||ce)&&(Q(fe,$.message,oe.message),!n))return A(R[b].message),R}if(m&&!q&&Eo(v)){const{value:$,message:oe}=a1(m);if(im($)&&!v.match($)&&(R[b]={type:Yo.pattern,message:oe,ref:a,...P(Yo.pattern,oe)},!n))return A(oe),R}if(g){if(Js(g)){const $=await g(v,t),oe=EN($,w);if(oe&&(R[b]={...oe,...P(Yo.validate,oe.message)},!n))return A(oe.message),R}else if(ir(g)){let $={};for(const oe in g){if(!sa($)&&!n)break;const fe=EN(await g[oe](v,t),w,oe);fe&&($={...fe,...P(oe,fe.message)},A(fe.message),n&&(R[b]=$))}if(!sa($)&&(R[b]={ref:w,...$},!n))return R}}return A(!0),R};function s4e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var am=e=>ei(e)||!qB(e);function uu(e,t){if(am(e)||am(t))return e===t;if(F1(e)&&F1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(F1(a)&&F1(o)||ir(a)&&ir(o)||Array.isArray(a)&&Array.isArray(o)?!uu(a,o):a!==o)return!1}}return!0}var QB=e=>e.type==="select-multiple",u4e=e=>UT(e)||bf(e),q4=e=>rm(e)&&e.isConnected,JB=e=>{for(const t in e)if(Js(e[t]))return!0;return!1};function om(e,t={}){const n=Array.isArray(e);if(ir(e)||n)for(const r in e)Array.isArray(e[r])||ir(e[r])&&!JB(e[r])?(t[r]=Array.isArray(e[r])?[]:{},om(e[r],t[r])):ei(e[r])||(t[r]=!0);return t}function eU(e,t,n){const r=Array.isArray(e);if(ir(e)||r)for(const i in e)Array.isArray(e[i])||ir(e[i])&&!JB(e[i])?qn(t)||am(n[i])?n[i]=Array.isArray(e[i])?om(e[i],[]):{...om(e[i])}:eU(e[i],ei(t)?{}:t[i],n[i]):n[i]=!uu(e[i],t[i]);return n}var K4=(e,t)=>eU(e,t,om(t)),tU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>qn(e)?e:t?e===""?NaN:e&&+e:n&&Eo(e)?new Date(e):r?r(e):e;function Y4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return BT(t)?t.files:UT(t)?ZB(e.refs).value:QB(t)?[...t.selectedOptions].map(({value:n})=>n):bf(t)?XB(e.refs).value:tU(qn(t.value)?e.ref.value:t.value,e)}var c4e=(e,t,n,r)=>{const i={};for(const a of e){const o=ut(t,a);o&&Cn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},yd=e=>qn(e)?e:im(e)?e.source:ir(e)?im(e.value)?e.value.source:e.value:e,d4e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _N(e,t,n){const r=ut(e,n);if(r||PT(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=ut(t,a),s=ut(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var p4e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,f4e=(e,t)=>!yf(ut(e,t)).length&&vr(e,t);const h4e={mode:Ha.onSubmit,reValidateMode:Ha.onChange,shouldFocusError:!0};function g4e(e={},t){let n={...h4e,...e},r={submitCount:0,isDirty:!1,isLoading:Js(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=ir(n.defaultValues)||ir(n.values)?Qo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:Qo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:W4(),array:W4(),state:W4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,b=hN(n.mode),y=hN(n.reValidateMode),T=n.criteriaMode===Ha.all,E=U=>re=>{clearTimeout(p),p=setTimeout(U,re)},v=async U=>{if(f.isValid||U){const re=n.resolver?sa((await q()).errors):await Q(i,!0);re!==r.isValid&&m.state.next({isValid:re})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,re=[],de,xe,ye=!0,Te=!0)=>{if(xe&&de){if(s.action=!0,Te&&Array.isArray(ut(i,U))){const Le=de(ut(i,U),xe.argA,xe.argB);ye&&Cn(i,U,Le)}if(Te&&Array.isArray(ut(r.errors,U))){const Le=de(ut(r.errors,U),xe.argA,xe.argB);ye&&Cn(r.errors,U,Le),f4e(r.errors,U)}if(f.touchedFields&&Te&&Array.isArray(ut(r.touchedFields,U))){const Le=de(ut(r.touchedFields,U),xe.argA,xe.argB);ye&&Cn(r.touchedFields,U,Le)}f.dirtyFields&&(r.dirtyFields=K4(a,o)),m.state.next({name:U,isDirty:oe(U,re),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Cn(o,U,re)},R=(U,re)=>{Cn(r.errors,U,re),m.state.next({errors:r.errors})},k=(U,re,de,xe)=>{const ye=ut(i,U);if(ye){const Te=ut(o,U,qn(de)?ut(a,U):de);qn(Te)||xe&&xe.defaultChecked||re?Cn(o,U,re?Te:Y4(ye._f)):De(U,Te),s.mount&&v()}},N=(U,re,de,xe,ye)=>{let Te=!1,Le=!1;const ze={name:U};if(!de||xe){f.isDirty&&(Le=r.isDirty,r.isDirty=ze.isDirty=oe(),Te=Le!==ze.isDirty);const Xe=uu(ut(a,U),re);Le=ut(r.dirtyFields,U),Xe?vr(r.dirtyFields,U):Cn(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Te=Te||f.dirtyFields&&Le!==!Xe}if(de){const Xe=ut(r.touchedFields,U);Xe||(Cn(r.touchedFields,U,de),ze.touchedFields=r.touchedFields,Te=Te||f.touchedFields&&Xe!==de)}return Te&&ye&&m.state.next(ze),Te?ze:{}},B=(U,re,de,xe)=>{const ye=ut(r.errors,U),Te=f.isValid&&lu(re)&&r.isValid!==re;if(e.delayError&&de?(c=E(()=>R(U,de)),c(e.delayError)):(clearTimeout(p),c=null,de?Cn(r.errors,U,de):vr(r.errors,U)),(de?!uu(ye,de):ye)||!sa(xe)||Te){const Le={...xe,...Te&&lu(re)?{isValid:re}:{},errors:r.errors,name:U};r={...r,...Le},m.state.next(Le)}w(!1)},q=async U=>n.resolver(o,n.context,c4e(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:re}=await q(U);if(U)for(const de of U){const xe=ut(re,de);xe?Cn(r.errors,de,xe):vr(r.errors,de)}else r.errors=re;return re},Q=async(U,re,de={valid:!0})=>{for(const xe in U){const ye=U[xe];if(ye){const{_f:Te,...Le}=ye;if(Te){const ze=u.array.has(Te.name),Xe=await vN(ye,o,T,n.shouldUseNativeValidation&&!re,ze);if(Xe[Te.name]&&(de.valid=!1,re))break;!re&&(ut(Xe,Te.name)?ze?o4e(r.errors,Xe,Te.name):Cn(r.errors,Te.name,Xe[Te.name]):vr(r.errors,Te.name))}Le&&await Q(Le,re,de)}}return de.valid},$=()=>{for(const U of u.unMount){const re=ut(i,U);re&&(re._f.refs?re._f.refs.every(de=>!q4(de)):!q4(re._f.ref))&&X(U)}u.unMount=new Set},oe=(U,re)=>(U&&re&&Cn(o,U,re),!uu(pe(),a)),fe=(U,re,de)=>i4e(U,u,{...s.mount?o:qn(re)?a:Eo(U)?{[U]:re}:re},de,re),ce=U=>yf(ut(s.mount?o:a,U,e.shouldUnregister?ut(a,U,[]):[])),De=(U,re,de={})=>{const xe=ut(i,U);let ye=re;if(xe){const Te=xe._f;Te&&(!Te.disabled&&Cn(o,U,tU(re,Te)),ye=rm(Te.ref)&&ei(re)?"":re,QB(Te.ref)?[...Te.ref.options].forEach(Le=>Le.selected=ye.includes(Le.value)):Te.refs?bf(Te.ref)?Te.refs.length>1?Te.refs.forEach(Le=>(!Le.defaultChecked||!Le.disabled)&&(Le.checked=Array.isArray(ye)?!!ye.find(ze=>ze===Le.value):ye===Le.value)):Te.refs[0]&&(Te.refs[0].checked=!!ye):Te.refs.forEach(Le=>Le.checked=Le.value===ye):BT(Te.ref)?Te.ref.value="":(Te.ref.value=ye,Te.ref.type||m.values.next({name:U,values:{...o}})))}(de.shouldDirty||de.shouldTouch)&&N(U,ye,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&D(U)},H=(U,re,de)=>{for(const xe in re){const ye=re[xe],Te=`${U}.${xe}`,Le=ut(i,Te);(u.array.has(U)||!am(ye)||Le&&!Le._f)&&!F1(ye)?H(Te,ye,de):De(Te,ye,de)}},W=(U,re,de={})=>{const xe=ut(i,U),ye=u.array.has(U),Te=Qo(re);Cn(o,U,Te),ye?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&de.shouldDirty&&m.state.next({name:U,dirtyFields:K4(a,o),isDirty:oe(U,Te)})):xe&&!xe._f&&!ei(Te)?H(U,Te,de):De(U,Te,de),gN(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},se=async U=>{const re=U.target;let de=re.name,xe=!0;const ye=ut(i,de),Te=()=>re.type?Y4(ye._f):X3e(U);if(ye){let Le,ze;const Xe=Te(),jt=U.type===fN.BLUR||U.type===fN.FOCUS_OUT,ue=!d4e(ye._f)&&!n.resolver&&!ut(r.errors,de)&&!ye._f.deps||p4e(jt,ut(r.touchedFields,de),r.isSubmitted,y,b),Ee=gN(de,u,jt);Cn(o,de,Xe),jt?(ye._f.onBlur&&ye._f.onBlur(U),c&&c(0)):ye._f.onChange&&ye._f.onChange(U);const qe=N(de,Xe,jt,!1),j=!sa(qe)||Ee;if(!jt&&m.values.next({name:de,type:U.type,values:{...o}}),ue)return f.isValid&&v(),j&&m.state.next({name:de,...Ee?{}:qe});if(!jt&&Ee&&m.state.next({...r}),w(!0),n.resolver){const{errors:me}=await q([de]),Ve=_N(r.errors,i,de),ge=_N(me,i,Ve.name||de);Le=ge.error,de=ge.name,ze=sa(me)}else Le=(await vN(ye,o,T,n.shouldUseNativeValidation))[de],xe=Number.isNaN(Xe)||Xe===ut(o,de,Xe),xe&&(Le?ze=!1:f.isValid&&(ze=await Q(i,!0)));xe&&(ye._f.deps&&D(ye._f.deps),B(de,ze,Le,qe))}},D=async(U,re={})=>{let de,xe;const ye=V4(U);if(w(!0),n.resolver){const Te=await P(qn(U)?U:ye);de=sa(Te),xe=U?!ye.some(Le=>ut(Te,Le)):de}else U?(xe=(await Promise.all(ye.map(async Te=>{const Le=ut(i,Te);return await Q(Le&&Le._f?{[Te]:Le}:Le)}))).every(Boolean),!(!xe&&!r.isValid)&&v()):xe=de=await Q(i);return m.state.next({...!Eo(U)||f.isValid&&de!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:de}:{},errors:r.errors,isValidating:!1}),re.shouldFocus&&!xe&&oE(i,Te=>Te&&ut(r.errors,Te),U?ye:u.mount),xe},pe=U=>{const re={...a,...s.mount?o:{}};return qn(U)?re:Eo(U)?ut(re,U):U.map(de=>ut(re,de))},le=(U,re)=>({invalid:!!ut((re||r).errors,U),isDirty:!!ut((re||r).dirtyFields,U),isTouched:!!ut((re||r).touchedFields,U),error:ut((re||r).errors,U)}),L=U=>{U&&V4(U).forEach(re=>vr(r.errors,re)),m.state.next({errors:U?r.errors:{}})},ie=(U,re,de)=>{const xe=(ut(i,U,{_f:{}})._f||{}).ref;Cn(r.errors,U,{...re,ref:xe}),m.state.next({name:U,errors:r.errors,isValid:!1}),de&&de.shouldFocus&&xe&&xe.focus&&xe.focus()},Se=(U,re)=>Js(U)?m.values.subscribe({next:de=>U(fe(void 0,re),de)}):fe(U,re,!0),X=(U,re={})=>{for(const de of U?V4(U):u.mount)u.mount.delete(de),u.array.delete(de),re.keepValue||(vr(i,de),vr(o,de)),!re.keepError&&vr(r.errors,de),!re.keepDirty&&vr(r.dirtyFields,de),!re.keepTouched&&vr(r.touchedFields,de),!n.shouldUnregister&&!re.keepDefaultValue&&vr(a,de);m.values.next({values:{...o}}),m.state.next({...r,...re.keepDirty?{isDirty:oe()}:{}}),!re.keepIsValid&&v()},ke=({disabled:U,name:re,field:de,fields:xe})=>{if(lu(U)){const ye=U?void 0:ut(o,re,Y4(de?de._f:ut(xe,re)._f));Cn(o,re,ye),N(re,ye,!1,!1,!0)}},te=(U,re={})=>{let de=ut(i,U);const xe=lu(re.disabled);return Cn(i,U,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:U}},name:U,mount:!0,...re}}),u.mount.add(U),de?ke({field:de,disabled:re.disabled,name:U}):k(U,!0,re.value),{...xe?{disabled:re.disabled}:{},...n.progressive?{required:!!re.required,min:yd(re.min),max:yd(re.max),minLength:yd(re.minLength),maxLength:yd(re.maxLength),pattern:yd(re.pattern)}:{},name:U,onChange:se,onBlur:se,ref:ye=>{if(ye){te(U,re),de=ut(i,U);const Te=qn(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,Le=u4e(Te),ze=de._f.refs||[];if(Le?ze.find(Xe=>Xe===Te):Te===de._f.ref)return;Cn(i,U,{_f:{...de._f,...Le?{refs:[...ze.filter(q4),Te,...Array.isArray(ut(a,U))?[{}]:[]],ref:{type:Te.type,name:U}}:{ref:Te}}}),k(U,!1,void 0,Te)}else de=ut(i,U,{}),de._f&&(de._f.mount=!1),(n.shouldUnregister||re.shouldUnregister)&&!(Q3e(u.array,U)&&s.action)&&u.unMount.add(U)}}},Me=()=>n.shouldFocusError&&oE(i,U=>U&&ut(r.errors,U),u.mount),Re=(U,re)=>async de=>{de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let xe=Qo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ye,values:Te}=await q();r.errors=ye,xe=Te}else await Q(i);vr(r.errors,"root"),sa(r.errors)?(m.state.next({errors:{}}),await U(xe,de)):(re&&await re({...r.errors},de),Me(),setTimeout(Me)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Ye=(U,re={})=>{ut(i,U)&&(qn(re.defaultValue)?W(U,ut(a,U)):(W(U,re.defaultValue),Cn(a,U,re.defaultValue)),re.keepTouched||vr(r.touchedFields,U),re.keepDirty||(vr(r.dirtyFields,U),r.isDirty=re.defaultValue?oe(U,ut(a,U)):oe()),re.keepError||(vr(r.errors,U),f.isValid&&v()),m.state.next({...r}))},We=(U,re={})=>{const de=U?Qo(U):a,xe=Qo(de),ye=U&&!sa(U)?xe:a;if(re.keepDefaultValues||(a=de),!re.keepValues){if(re.keepDirtyValues||g)for(const Te of u.mount)ut(r.dirtyFields,Te)?Cn(ye,Te,ut(o,Te)):W(Te,ut(ye,Te));else{if(FT&&qn(U))for(const Te of u.mount){const Le=ut(i,Te);if(Le&&Le._f){const ze=Array.isArray(Le._f.refs)?Le._f.refs[0]:Le._f.ref;if(rm(ze)){const Xe=ze.closest("form");if(Xe){Xe.reset();break}}}}i={}}o=e.shouldUnregister?re.keepDefaultValues?Qo(a):{}:Qo(ye),m.array.next({values:{...ye}}),m.values.next({values:{...ye}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!re.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:re.keepSubmitCount?r.submitCount:0,isDirty:re.keepDirty?r.isDirty:!!(re.keepDefaultValues&&!uu(U,a)),isSubmitted:re.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re.keepDirtyValues?r.dirtyFields:re.keepDefaultValues&&U?K4(a,U):{},touchedFields:re.keepTouched?r.touchedFields:{},errors:re.keepErrors?r.errors:{},isSubmitSuccessful:re.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,re)=>We(Js(U)?U(o):U,re);return{control:{register:te,unregister:X,getFieldState:le,handleSubmit:Re,setError:ie,_executeSchema:q,_getWatch:fe,_getDirty:oe,_updateValid:v,_removeUnmounted:$,_updateFieldArray:A,_updateDisabledField:ke,_getFieldArray:ce,_reset:We,_resetDefaultValues:()=>Js(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:D,register:te,handleSubmit:Re,watch:Se,setValue:W,getValues:pe,reset:dt,resetField:Ye,clearErrors:L,unregister:X,setError:ie,setFocus:(U,re={})=>{const de=ut(i,U),xe=de&&de._f;if(xe){const ye=xe.refs?xe.refs[0]:xe.ref;ye.focus&&(ye.focus(),re.shouldSelect&&ye.select())}},getFieldState:le}}function nU(e={}){const t=st.useRef(),n=st.useRef(),[r,i]=st.useState({isDirty:!1,isValidating:!1,isLoading:Js(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Js(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...g4e(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,r4e({subject:a._subjects.state,next:o=>{n4e(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),st.useEffect(()=>{e.values&&!uu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),st.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=t4e(r,a),t.current}const TN=Ge.hr` border: 0.5px solid ${Et}; `,m4e=Ge(oc)` background-color: transparent; @@ -1132,10 +1132,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */sm.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,b=1,y=2,T=1,E=2,v=4,w=8,A=16,R=32,k=64,N=128,B=256,q=512,P=30,Q="...",$=800,oe=16,fe=1,ce=2,De=3,H=1/0,W=9007199254740991,se=17976931348623157e292,D=0/0,pe=4294967295,le=pe-1,L=pe>>>1,ie=[["ary",N],["bind",T],["bindKey",E],["curry",w],["curryRight",A],["flip",q],["partial",R],["partialRight",k],["rearg",B]],Se="[object Arguments]",X="[object Array]",ke="[object AsyncFunction]",te="[object Boolean]",Me="[object Date]",Re="[object DOMException]",Ze="[object Error]",We="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",je="[object Number]",pt="[object Null]",U="[object Object]",re="[object Promise]",de="[object Proxy]",xe="[object RegExp]",ye="[object Set]",Te="[object String]",Le="[object Symbol]",ze="[object Undefined]",Ye="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",Ee="[object DataView]",qe="[object Float32Array]",j="[object Float64Array]",me="[object Int8Array]",Ve="[object Int16Array]",ge="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",ne="[object Uint16Array]",ve="[object Uint32Array]",Qe=/\b__p \+= '';/g,Fe=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,Je=/[&<>"']/g,Rt=RegExp(rt.source),Qt=RegExp(Je.source),kt=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,Xt=/<%=([\s\S]+?)%>/g,Wr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,Kr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aa=/[\\^$.*+?()[\]{}|]/g,si=RegExp(Aa.source),Or=/^\s+/,Es=/\s/,vs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yr=/\{\n\/\* \[wrapped with (.+)\] \*/,_s=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dr=/[()=,{}\[\]\/\s]/,Si=/\\(\\)?/g,Nl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,J=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,ar=/^(?:0|[1-9]\d*)$/,or=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zn=/($^)/,Oo=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Lr="\\u0300-\\u036f",Ef="\\ufe20-\\ufe2f",vf="\\u20d0-\\u20ff",GT=Lr+Ef+vf,VT="\\u2700-\\u27bf",WT="a-z\\xdf-\\xf6\\xf8-\\xff",yU="\\xac\\xb1\\xd7\\xf7",EU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vU="\\u2000-\\u206f",_U=" \\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",qT="A-Z\\xc0-\\xd6\\xd8-\\xde",KT="\\ufe0e\\ufe0f",YT=yU+EU+vU+_U,G2="['’]",TU="["+no+"]",XT="["+YT+"]",_f="["+GT+"]",ZT="\\d+",SU="["+VT+"]",QT="["+WT+"]",JT="[^"+no+YT+ZT+VT+WT+qT+"]",V2="\\ud83c[\\udffb-\\udfff]",wU="(?:"+_f+"|"+V2+")",eS="[^"+no+"]",W2="(?:\\ud83c[\\udde6-\\uddff]){2}",q2="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+qT+"]",tS="\\u200d",nS="(?:"+QT+"|"+JT+")",AU="(?:"+Bu+"|"+JT+")",rS="(?:"+G2+"(?:d|ll|m|re|s|t|ve))?",iS="(?:"+G2+"(?:D|LL|M|RE|S|T|VE))?",aS=wU+"?",oS="["+KT+"]?",CU="(?:"+tS+"(?:"+[eS,W2,q2].join("|")+")"+oS+aS+")*",kU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sS=oS+aS+CU,IU="(?:"+[SU,W2,q2].join("|")+")"+sS,RU="(?:"+[eS+_f+"?",_f,W2,q2,TU].join("|")+")",NU=RegExp(G2,"g"),OU=RegExp(_f,"g"),K2=RegExp(V2+"(?="+V2+")|"+RU+sS,"g"),DU=RegExp([Bu+"?"+QT+"+"+rS+"(?="+[XT,Bu,"$"].join("|")+")",AU+"+"+iS+"(?="+[XT,Bu+nS,"$"].join("|")+")",Bu+"?"+nS+"+"+rS,Bu+"+"+iS,xU,kU,ZT,IU].join("|"),"g"),LU=RegExp("["+tS+no+GT+KT+"]"),MU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],PU=-1,En={};En[qe]=En[j]=En[me]=En[Ve]=En[ge]=En[G]=En[K]=En[ne]=En[ve]=!0,En[Se]=En[X]=En[ue]=En[te]=En[Ee]=En[Me]=En[Ze]=En[We]=En[ot]=En[je]=En[U]=En[xe]=En[ye]=En[Te]=En[Ye]=!1;var mn={};mn[Se]=mn[X]=mn[ue]=mn[Ee]=mn[te]=mn[Me]=mn[qe]=mn[j]=mn[me]=mn[Ve]=mn[ge]=mn[ot]=mn[je]=mn[U]=mn[xe]=mn[ye]=mn[Te]=mn[Le]=mn[G]=mn[K]=mn[ne]=mn[ve]=!0,mn[Ze]=mn[We]=mn[Ye]=!1;var BU={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},UU={"&":"&","<":"<",">":">",'"':""","'":"'"},$U={"&":"&","<":"<",">":">",""":'"',"'":"'"},zU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HU=parseFloat,jU=parseInt,lS=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,GU=typeof self=="object"&&self&&self.Object===Object&&self,mr=lS||GU||Function("return this")(),Y2=t&&!t.nodeType&&t,Ol=Y2&&!0&&e&&!e.nodeType&&e,uS=Ol&&Ol.exports===Y2,X2=uS&&lS.process,Yi=function(){try{var ee=Ol&&Ol.require&&Ol.require("util").types;return ee||X2&&X2.binding&&X2.binding("util")}catch{}}(),cS=Yi&&Yi.isArrayBuffer,dS=Yi&&Yi.isDate,pS=Yi&&Yi.isMap,fS=Yi&&Yi.isRegExp,hS=Yi&&Yi.isSet,gS=Yi&&Yi.isTypedArray;function wi(ee,_e,he){switch(he.length){case 0:return ee.call(_e);case 1:return ee.call(_e,he[0]);case 2:return ee.call(_e,he[0],he[1]);case 3:return ee.call(_e,he[0],he[1],he[2])}return ee.apply(_e,he)}function VU(ee,_e,he,et){for(var _t=-1,Jt=ee==null?0:ee.length;++_t-1}function Z2(ee,_e,he){for(var et=-1,_t=ee==null?0:ee.length;++et<_t;)if(he(_e,ee[et]))return!0;return!1}function An(ee,_e){for(var he=-1,et=ee==null?0:ee.length,_t=Array(et);++he-1;);return he}function SS(ee,_e){for(var he=ee.length;he--&&Uu(_e,ee[he],0)>-1;);return he}function e$(ee,_e){for(var he=ee.length,et=0;he--;)ee[he]===_e&&++et;return et}var t$=t5(BU),n$=t5(UU);function r$(ee){return"\\"+zU[ee]}function i$(ee,_e){return ee==null?n:ee[_e]}function $u(ee){return LU.test(ee)}function a$(ee){return MU.test(ee)}function o$(ee){for(var _e,he=[];!(_e=ee.next()).done;)he.push(_e.value);return he}function a5(ee){var _e=-1,he=Array(ee.size);return ee.forEach(function(et,_t){he[++_e]=[_t,et]}),he}function wS(ee,_e){return function(he){return ee(_e(he))}}function ws(ee,_e){for(var he=-1,et=ee.length,_t=0,Jt=[];++he-1}function q$(l,d){var h=this.__data__,_=Uf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Do.prototype.clear=j$,Do.prototype.delete=G$,Do.prototype.get=V$,Do.prototype.has=W$,Do.prototype.set=q$;function Lo(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Ji(l,d,h,_,x,F){var z,Z=d&f,ae=d&m,we=d&g;if(h&&(z=x?h(l,_,x,F):h(l)),z!==n)return z;if(!Rn(l))return l;var Ce=Tt(l);if(Ce){if(z=Zz(l),!Z)return li(l,z)}else{var Ie=Fr(l),Xe=Ie==We||Ie==dt;if(Rs(l))return ow(l,Z);if(Ie==U||Ie==Se||Xe&&!x){if(z=ae||Xe?{}:Aw(l),!Z)return ae?$z(l,uz(z,l)):Uz(l,FS(z,l))}else{if(!mn[Ie])return x?l:{};z=Qz(l,Ie,Z)}}F||(F=new ka);var lt=F.get(l);if(lt)return lt;F.set(l,z),eA(l)?l.forEach(function(yt){z.add(Ji(yt,d,h,yt,l,F))}):Qw(l)&&l.forEach(function(yt,Nt){z.set(Nt,Ji(yt,d,h,Nt,l,F))});var bt=we?ae?N5:R5:ae?ci:sr,wt=Ce?n:bt(l);return Xi(wt||l,function(yt,Nt){wt&&(Nt=yt,yt=l[Nt]),Pc(z,Nt,Ji(yt,d,h,Nt,l,F))}),z}function cz(l){var d=sr(l);return function(h){return PS(h,l,d)}}function PS(l,d,h){var _=h.length;if(l==null)return!_;for(l=pn(l);_--;){var x=h[_],F=d[x],z=l[x];if(z===n&&!(x in l)||!F(z))return!1}return!0}function BS(l,d,h){if(typeof l!="function")throw new Zi(o);return Gc(function(){l.apply(n,h)},d)}function Bc(l,d,h,_){var x=-1,F=Tf,z=!0,Z=l.length,ae=[],we=d.length;if(!Z)return ae;h&&(d=An(d,Ai(h))),_?(F=Z2,z=!1):d.length>=i&&(F=Nc,z=!1,d=new Ml(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:nA(_);h<_;)l[h++]=d;return l}function $S(l,d){var h=[];return Cs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function br(l,d,h,_,x){var F=-1,z=l.length;for(h||(h=eH),x||(x=[]);++F0&&h(Z)?d>1?br(Z,d-1,h,_,x):Ss(x,Z):_||(x[x.length]=Z)}return x}var p5=pw(),zS=pw(!0);function ro(l,d){return l&&p5(l,d,sr)}function f5(l,d){return l&&zS(l,d,sr)}function zf(l,d){return Ts(d,function(h){return Uo(l[h])})}function Pl(l,d){d=xs(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[ao(d[h++])];return h&&h==_?l:n}function HS(l,d,h){var _=d(l);return Tt(l)?_:Ss(_,h(l))}function Xr(l){return l==null?l===n?ze:pt:Dl&&Dl in pn(l)?Kz(l):sH(l)}function h5(l,d){return l>d}function fz(l,d){return l!=null&&an.call(l,d)}function hz(l,d){return l!=null&&d in pn(l)}function gz(l,d,h){return l>=Mr(d,h)&&l=120&&Ce.length>=120)?new Ml(z&&Ce):n}Ce=l[0];var Ie=-1,Xe=Z[0];e:for(;++Ie-1;)Z!==l&&Of.call(Z,ae,1),Of.call(l,ae,1);return l}function QS(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Bo(x)?Of.call(l,x,1):S5(l,x)}}return l}function v5(l,d){return l+Mf(OS()*(d-l+1))}function xz(l,d,h,_){for(var x=-1,F=Jn(Lf((d-l)/(h||1)),0),z=he(F);F--;)z[_?F:++x]=l,l+=h;return z}function _5(l,d){var h="";if(!l||d<1||d>W)return h;do d%2&&(h+=l),d=Mf(d/2),d&&(l+=l);while(d);return h}function xt(l,d){return B5(xw(l,d,di),l+"")}function Iz(l){return MS(Zu(l))}function Rz(l,d){var h=Zu(l);return Qf(h,Fl(d,0,h.length))}function zc(l,d,h,_){if(!Rn(l))return l;d=xs(d,l);for(var x=-1,F=d.length,z=F-1,Z=l;Z!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=he(x);++_>>1,z=l[F];z!==null&&!ki(z)&&(h?z<=d:z=i){var we=d?null:Gz(l);if(we)return wf(we);z=!1,x=Nc,ae=new Ml}else ae=d?[]:Z;e:for(;++_=_?l:ea(l,d,h)}var aw=_$||function(l){return mr.clearTimeout(l)};function ow(l,d){if(d)return l.slice();var h=l.length,_=kS?kS(h):new l.constructor(h);return l.copy(_),_}function k5(l){var d=new l.constructor(l.byteLength);return new Rf(d).set(new Rf(l)),d}function Mz(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function Fz(l){var d=new l.constructor(l.source,Ke.exec(l));return d.lastIndex=l.lastIndex,d}function Pz(l){return Fc?pn(Fc.call(l)):{}}function sw(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function lw(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=ki(l),z=d!==n,Z=d===null,ae=d===d,we=ki(d);if(!Z&&!we&&!F&&l>d||F&&z&&ae&&!Z&&!we||_&&z&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=Z)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function uw(l,d,h,_){for(var x=-1,F=l.length,z=h.length,Z=-1,ae=d.length,we=Jn(F-z,0),Ce=he(ae+we),Ie=!_;++Z1?h[x-1]:n,z=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,z&&Zr(h[0],h[1],z)&&(F=x<3?n:F,x=1),d=pn(d);++_-1?x[F?d[z]:z]:n}}function gw(l){return Po(function(d){var h=d.length,_=h,x=Qi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Zi(o);if(x&&!z&&Xf(F)=="wrapper")var z=new Qi([],!0)}for(_=z?_:h;++_1&&Bt.reverse(),Ce&&aeZ))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Xe=!0,lt=h&y?new Ml:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(vs,`{ + */sm.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,b=1,y=2,T=1,E=2,v=4,w=8,A=16,R=32,k=64,N=128,B=256,q=512,P=30,Q="...",$=800,oe=16,fe=1,ce=2,De=3,H=1/0,W=9007199254740991,se=17976931348623157e292,D=0/0,pe=4294967295,le=pe-1,L=pe>>>1,ie=[["ary",N],["bind",T],["bindKey",E],["curry",w],["curryRight",A],["flip",q],["partial",R],["partialRight",k],["rearg",B]],Se="[object Arguments]",X="[object Array]",ke="[object AsyncFunction]",te="[object Boolean]",Me="[object Date]",Re="[object DOMException]",Ye="[object Error]",We="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",je="[object Number]",pt="[object Null]",U="[object Object]",re="[object Promise]",de="[object Proxy]",xe="[object RegExp]",ye="[object Set]",Te="[object String]",Le="[object Symbol]",ze="[object Undefined]",Xe="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",Ee="[object DataView]",qe="[object Float32Array]",j="[object Float64Array]",me="[object Int8Array]",Ve="[object Int16Array]",ge="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",ne="[object Uint16Array]",ve="[object Uint32Array]",Qe=/\b__p \+= '';/g,Fe=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,Je=/[&<>"']/g,Rt=RegExp(rt.source),Qt=RegExp(Je.source),kt=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,Xt=/<%=([\s\S]+?)%>/g,Wr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,Kr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aa=/[\\^$.*+?()[\]{}|]/g,si=RegExp(Aa.source),Or=/^\s+/,Es=/\s/,vs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yr=/\{\n\/\* \[wrapped with (.+)\] \*/,_s=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dr=/[()=,{}\[\]\/\s]/,Si=/\\(\\)?/g,Nl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,J=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,ar=/^(?:0|[1-9]\d*)$/,or=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zn=/($^)/,Oo=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Lr="\\u0300-\\u036f",Ef="\\ufe20-\\ufe2f",vf="\\u20d0-\\u20ff",GT=Lr+Ef+vf,VT="\\u2700-\\u27bf",WT="a-z\\xdf-\\xf6\\xf8-\\xff",yU="\\xac\\xb1\\xd7\\xf7",EU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vU="\\u2000-\\u206f",_U=" \\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",qT="A-Z\\xc0-\\xd6\\xd8-\\xde",KT="\\ufe0e\\ufe0f",YT=yU+EU+vU+_U,G2="['’]",TU="["+no+"]",XT="["+YT+"]",_f="["+GT+"]",ZT="\\d+",SU="["+VT+"]",QT="["+WT+"]",JT="[^"+no+YT+ZT+VT+WT+qT+"]",V2="\\ud83c[\\udffb-\\udfff]",wU="(?:"+_f+"|"+V2+")",eS="[^"+no+"]",W2="(?:\\ud83c[\\udde6-\\uddff]){2}",q2="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+qT+"]",tS="\\u200d",nS="(?:"+QT+"|"+JT+")",AU="(?:"+Bu+"|"+JT+")",rS="(?:"+G2+"(?:d|ll|m|re|s|t|ve))?",iS="(?:"+G2+"(?:D|LL|M|RE|S|T|VE))?",aS=wU+"?",oS="["+KT+"]?",CU="(?:"+tS+"(?:"+[eS,W2,q2].join("|")+")"+oS+aS+")*",kU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sS=oS+aS+CU,IU="(?:"+[SU,W2,q2].join("|")+")"+sS,RU="(?:"+[eS+_f+"?",_f,W2,q2,TU].join("|")+")",NU=RegExp(G2,"g"),OU=RegExp(_f,"g"),K2=RegExp(V2+"(?="+V2+")|"+RU+sS,"g"),DU=RegExp([Bu+"?"+QT+"+"+rS+"(?="+[XT,Bu,"$"].join("|")+")",AU+"+"+iS+"(?="+[XT,Bu+nS,"$"].join("|")+")",Bu+"?"+nS+"+"+rS,Bu+"+"+iS,xU,kU,ZT,IU].join("|"),"g"),LU=RegExp("["+tS+no+GT+KT+"]"),MU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],PU=-1,En={};En[qe]=En[j]=En[me]=En[Ve]=En[ge]=En[G]=En[K]=En[ne]=En[ve]=!0,En[Se]=En[X]=En[ue]=En[te]=En[Ee]=En[Me]=En[Ye]=En[We]=En[ot]=En[je]=En[U]=En[xe]=En[ye]=En[Te]=En[Xe]=!1;var mn={};mn[Se]=mn[X]=mn[ue]=mn[Ee]=mn[te]=mn[Me]=mn[qe]=mn[j]=mn[me]=mn[Ve]=mn[ge]=mn[ot]=mn[je]=mn[U]=mn[xe]=mn[ye]=mn[Te]=mn[Le]=mn[G]=mn[K]=mn[ne]=mn[ve]=!0,mn[Ye]=mn[We]=mn[Xe]=!1;var BU={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},UU={"&":"&","<":"<",">":">",'"':""","'":"'"},$U={"&":"&","<":"<",">":">",""":'"',"'":"'"},zU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HU=parseFloat,jU=parseInt,lS=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,GU=typeof self=="object"&&self&&self.Object===Object&&self,mr=lS||GU||Function("return this")(),Y2=t&&!t.nodeType&&t,Ol=Y2&&!0&&e&&!e.nodeType&&e,uS=Ol&&Ol.exports===Y2,X2=uS&&lS.process,Yi=function(){try{var ee=Ol&&Ol.require&&Ol.require("util").types;return ee||X2&&X2.binding&&X2.binding("util")}catch{}}(),cS=Yi&&Yi.isArrayBuffer,dS=Yi&&Yi.isDate,pS=Yi&&Yi.isMap,fS=Yi&&Yi.isRegExp,hS=Yi&&Yi.isSet,gS=Yi&&Yi.isTypedArray;function wi(ee,_e,he){switch(he.length){case 0:return ee.call(_e);case 1:return ee.call(_e,he[0]);case 2:return ee.call(_e,he[0],he[1]);case 3:return ee.call(_e,he[0],he[1],he[2])}return ee.apply(_e,he)}function VU(ee,_e,he,et){for(var _t=-1,Jt=ee==null?0:ee.length;++_t-1}function Z2(ee,_e,he){for(var et=-1,_t=ee==null?0:ee.length;++et<_t;)if(he(_e,ee[et]))return!0;return!1}function An(ee,_e){for(var he=-1,et=ee==null?0:ee.length,_t=Array(et);++he-1;);return he}function SS(ee,_e){for(var he=ee.length;he--&&Uu(_e,ee[he],0)>-1;);return he}function e$(ee,_e){for(var he=ee.length,et=0;he--;)ee[he]===_e&&++et;return et}var t$=t5(BU),n$=t5(UU);function r$(ee){return"\\"+zU[ee]}function i$(ee,_e){return ee==null?n:ee[_e]}function $u(ee){return LU.test(ee)}function a$(ee){return MU.test(ee)}function o$(ee){for(var _e,he=[];!(_e=ee.next()).done;)he.push(_e.value);return he}function a5(ee){var _e=-1,he=Array(ee.size);return ee.forEach(function(et,_t){he[++_e]=[_t,et]}),he}function wS(ee,_e){return function(he){return ee(_e(he))}}function ws(ee,_e){for(var he=-1,et=ee.length,_t=0,Jt=[];++he-1}function q$(l,d){var h=this.__data__,_=Uf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Do.prototype.clear=j$,Do.prototype.delete=G$,Do.prototype.get=V$,Do.prototype.has=W$,Do.prototype.set=q$;function Lo(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Ji(l,d,h,_,x,F){var z,Z=d&f,ae=d&m,we=d&g;if(h&&(z=x?h(l,_,x,F):h(l)),z!==n)return z;if(!Rn(l))return l;var Ce=Tt(l);if(Ce){if(z=Zz(l),!Z)return li(l,z)}else{var Ie=Fr(l),Ze=Ie==We||Ie==dt;if(Rs(l))return ow(l,Z);if(Ie==U||Ie==Se||Ze&&!x){if(z=ae||Ze?{}:Aw(l),!Z)return ae?$z(l,uz(z,l)):Uz(l,FS(z,l))}else{if(!mn[Ie])return x?l:{};z=Qz(l,Ie,Z)}}F||(F=new ka);var lt=F.get(l);if(lt)return lt;F.set(l,z),eA(l)?l.forEach(function(yt){z.add(Ji(yt,d,h,yt,l,F))}):Qw(l)&&l.forEach(function(yt,Nt){z.set(Nt,Ji(yt,d,h,Nt,l,F))});var bt=we?ae?N5:R5:ae?ci:sr,wt=Ce?n:bt(l);return Xi(wt||l,function(yt,Nt){wt&&(Nt=yt,yt=l[Nt]),Pc(z,Nt,Ji(yt,d,h,Nt,l,F))}),z}function cz(l){var d=sr(l);return function(h){return PS(h,l,d)}}function PS(l,d,h){var _=h.length;if(l==null)return!_;for(l=pn(l);_--;){var x=h[_],F=d[x],z=l[x];if(z===n&&!(x in l)||!F(z))return!1}return!0}function BS(l,d,h){if(typeof l!="function")throw new Zi(o);return Gc(function(){l.apply(n,h)},d)}function Bc(l,d,h,_){var x=-1,F=Tf,z=!0,Z=l.length,ae=[],we=d.length;if(!Z)return ae;h&&(d=An(d,Ai(h))),_?(F=Z2,z=!1):d.length>=i&&(F=Nc,z=!1,d=new Ml(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:nA(_);h<_;)l[h++]=d;return l}function $S(l,d){var h=[];return Cs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function br(l,d,h,_,x){var F=-1,z=l.length;for(h||(h=eH),x||(x=[]);++F0&&h(Z)?d>1?br(Z,d-1,h,_,x):Ss(x,Z):_||(x[x.length]=Z)}return x}var p5=pw(),zS=pw(!0);function ro(l,d){return l&&p5(l,d,sr)}function f5(l,d){return l&&zS(l,d,sr)}function zf(l,d){return Ts(d,function(h){return Uo(l[h])})}function Pl(l,d){d=xs(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[ao(d[h++])];return h&&h==_?l:n}function HS(l,d,h){var _=d(l);return Tt(l)?_:Ss(_,h(l))}function Xr(l){return l==null?l===n?ze:pt:Dl&&Dl in pn(l)?Kz(l):sH(l)}function h5(l,d){return l>d}function fz(l,d){return l!=null&&an.call(l,d)}function hz(l,d){return l!=null&&d in pn(l)}function gz(l,d,h){return l>=Mr(d,h)&&l=120&&Ce.length>=120)?new Ml(z&&Ce):n}Ce=l[0];var Ie=-1,Ze=Z[0];e:for(;++Ie-1;)Z!==l&&Of.call(Z,ae,1),Of.call(l,ae,1);return l}function QS(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Bo(x)?Of.call(l,x,1):S5(l,x)}}return l}function v5(l,d){return l+Mf(OS()*(d-l+1))}function xz(l,d,h,_){for(var x=-1,F=Jn(Lf((d-l)/(h||1)),0),z=he(F);F--;)z[_?F:++x]=l,l+=h;return z}function _5(l,d){var h="";if(!l||d<1||d>W)return h;do d%2&&(h+=l),d=Mf(d/2),d&&(l+=l);while(d);return h}function xt(l,d){return B5(xw(l,d,di),l+"")}function Iz(l){return MS(Zu(l))}function Rz(l,d){var h=Zu(l);return Qf(h,Fl(d,0,h.length))}function zc(l,d,h,_){if(!Rn(l))return l;d=xs(d,l);for(var x=-1,F=d.length,z=F-1,Z=l;Z!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=he(x);++_>>1,z=l[F];z!==null&&!ki(z)&&(h?z<=d:z=i){var we=d?null:Gz(l);if(we)return wf(we);z=!1,x=Nc,ae=new Ml}else ae=d?[]:Z;e:for(;++_=_?l:ea(l,d,h)}var aw=_$||function(l){return mr.clearTimeout(l)};function ow(l,d){if(d)return l.slice();var h=l.length,_=kS?kS(h):new l.constructor(h);return l.copy(_),_}function k5(l){var d=new l.constructor(l.byteLength);return new Rf(d).set(new Rf(l)),d}function Mz(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function Fz(l){var d=new l.constructor(l.source,Ke.exec(l));return d.lastIndex=l.lastIndex,d}function Pz(l){return Fc?pn(Fc.call(l)):{}}function sw(l,d){var h=d?k5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function lw(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=ki(l),z=d!==n,Z=d===null,ae=d===d,we=ki(d);if(!Z&&!we&&!F&&l>d||F&&z&&ae&&!Z&&!we||_&&z&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=Z)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function uw(l,d,h,_){for(var x=-1,F=l.length,z=h.length,Z=-1,ae=d.length,we=Jn(F-z,0),Ce=he(ae+we),Ie=!_;++Z1?h[x-1]:n,z=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,z&&Zr(h[0],h[1],z)&&(F=x<3?n:F,x=1),d=pn(d);++_-1?x[F?d[z]:z]:n}}function gw(l){return Po(function(d){var h=d.length,_=h,x=Qi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Zi(o);if(x&&!z&&Xf(F)=="wrapper")var z=new Qi([],!0)}for(_=z?_:h;++_1&&Bt.reverse(),Ce&&aeZ))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Ze=!0,lt=h&y?new Ml:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(vs,`{ /* [wrapped with `+d+`] */ -`)}function eH(l){return Tt(l)||$l(l)||!!(RS&&l&&l[RS])}function Bo(l,d){var h=typeof l;return d=d??W,!!d&&(h=="number"||h!="symbol"&&ar.test(l))&&l>-1&&l%1==0&&l0){if(++d>=$)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Qf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,$w(l,h)});function zw(l){var d=M(l);return d.__chain__=!0,d}function dj(l,d){return d(l),l}function Jf(l,d){return d(l)}var pj=Po(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return d5(F,l)};return d>1||this.__actions__.length||!(_ instanceof Mt)||!Bo(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Jf,args:[x],thisArg:n}),new Qi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function fj(){return zw(this)}function hj(){return new Qi(this.value(),this.__chain__)}function gj(){this.__values__===n&&(this.__values__=tA(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function mj(){return this}function bj(l){for(var d,h=this;h instanceof Bf;){var _=Lw(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function yj(){var l=this.__wrapped__;if(l instanceof Mt){var d=l;return this.__actions__.length&&(d=new Mt(this)),d=d.reverse(),d.__actions__.push({func:Jf,args:[U5],thisArg:n}),new Qi(d,this.__chain__)}return this.thru(U5)}function Ej(){return rw(this.__wrapped__,this.__actions__)}var vj=Vf(function(l,d,h){an.call(l,h)?++l[h]:Mo(l,h,1)});function _j(l,d,h){var _=Tt(l)?mS:dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}function Tj(l,d){var h=Tt(l)?Ts:$S;return h(l,mt(d,3))}var Sj=hw(Mw),wj=hw(Fw);function Aj(l,d){return br(e0(l,d),1)}function Cj(l,d){return br(e0(l,d),H)}function kj(l,d,h){return h=h===n?1:St(h),br(e0(l,d),h)}function Hw(l,d){var h=Tt(l)?Xi:Cs;return h(l,mt(d,3))}function jw(l,d){var h=Tt(l)?WU:US;return h(l,mt(d,3))}var xj=Vf(function(l,d,h){an.call(l,h)?l[h].push(d):Mo(l,h,[d])});function Ij(l,d,h,_){l=ui(l)?l:Zu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Jn(x+h,0)),a0(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Uu(l,d,h)>-1}var Rj=xt(function(l,d,h){var _=-1,x=typeof d=="function",F=ui(l)?he(l.length):[];return Cs(l,function(z){F[++_]=x?wi(d,z,h):Uc(z,d,h)}),F}),Nj=Vf(function(l,d,h){Mo(l,h,d)});function e0(l,d){var h=Tt(l)?An:WS;return h(l,mt(d,3))}function Oj(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),XS(l,d,h))}var Dj=Vf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Lj(l,d,h){var _=Tt(l)?Q2:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,Cs)}function Mj(l,d,h){var _=Tt(l)?qU:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,US)}function Fj(l,d){var h=Tt(l)?Ts:$S;return h(l,r0(mt(d,3)))}function Pj(l){var d=Tt(l)?MS:Iz;return d(l)}function Bj(l,d,h){(h?Zr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?oz:Rz;return _(l,d)}function Uj(l){var d=Tt(l)?sz:Oz;return d(l)}function $j(l){if(l==null)return 0;if(ui(l))return a0(l)?zu(l):l.length;var d=Fr(l);return d==ot||d==ye?l.size:b5(l).length}function zj(l,d,h){var _=Tt(l)?J2:Dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}var Hj=xt(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Zr(l,d[0],d[1])?d=[]:h>2&&Zr(d[0],d[1],d[2])&&(d=[d[0]]),XS(l,br(d,1),[])}),t0=T$||function(){return mr.Date.now()};function jj(l,d){if(typeof d!="function")throw new Zi(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function Gw(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,Fo(l,N,n,n,n,n,d)}function Vw(l,d){var h;if(typeof d!="function")throw new Zi(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var z5=xt(function(l,d,h){var _=T;if(h.length){var x=ws(h,Yu(z5));_|=R}return Fo(l,_,d,h,x)}),Ww=xt(function(l,d,h){var _=T|E;if(h.length){var x=ws(h,Yu(Ww));_|=R}return Fo(d,_,l,h,x)});function qw(l,d,h){d=h?n:d;var _=Fo(l,w,n,n,n,n,n,d);return _.placeholder=qw.placeholder,_}function Kw(l,d,h){d=h?n:d;var _=Fo(l,A,n,n,n,n,n,d);return _.placeholder=Kw.placeholder,_}function Yw(l,d,h){var _,x,F,z,Z,ae,we=0,Ce=!1,Ie=!1,Xe=!0;if(typeof l!="function")throw new Zi(o);d=na(d)||0,Rn(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Jn(na(h.maxWait)||0,d):F,Xe="trailing"in h?!!h.trailing:Xe);function lt(Hn){var Ia=_,zo=x;return _=x=n,we=Hn,z=l.apply(zo,Ia),z}function bt(Hn){return we=Hn,Z=Gc(Nt,d),Ce?lt(Hn):z}function wt(Hn){var Ia=Hn-ae,zo=Hn-we,hA=d-Ia;return Ie?Mr(hA,F-zo):hA}function yt(Hn){var Ia=Hn-ae,zo=Hn-we;return ae===n||Ia>=d||Ia<0||Ie&&zo>=F}function Nt(){var Hn=t0();if(yt(Hn))return Bt(Hn);Z=Gc(Nt,wt(Hn))}function Bt(Hn){return Z=n,Xe&&_?lt(Hn):(_=x=n,z)}function xi(){Z!==n&&aw(Z),we=0,_=ae=x=Z=n}function Qr(){return Z===n?z:Bt(t0())}function Ii(){var Hn=t0(),Ia=yt(Hn);if(_=arguments,x=this,ae=Hn,Ia){if(Z===n)return bt(ae);if(Ie)return aw(Z),Z=Gc(Nt,d),lt(ae)}return Z===n&&(Z=Gc(Nt,d)),z}return Ii.cancel=xi,Ii.flush=Qr,Ii}var Gj=xt(function(l,d){return BS(l,1,d)}),Vj=xt(function(l,d,h){return BS(l,na(d)||0,h)});function Wj(l){return Fo(l,q)}function n0(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Zi(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var z=l.apply(this,_);return h.cache=F.set(x,z)||F,z};return h.cache=new(n0.Cache||Lo),h}n0.Cache=Lo;function r0(l){if(typeof l!="function")throw new Zi(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function qj(l){return Vw(2,l)}var Kj=Lz(function(l,d){d=d.length==1&&Tt(d[0])?An(d[0],Ai(mt())):An(br(d,1),Ai(mt()));var h=d.length;return xt(function(_){for(var x=-1,F=Mr(_.length,h);++x=d}),$l=jS(function(){return arguments}())?jS:function(l){return Mn(l)&&an.call(l,"callee")&&!IS.call(l,"callee")},Tt=he.isArray,uG=cS?Ai(cS):bz;function ui(l){return l!=null&&i0(l.length)&&!Uo(l)}function zn(l){return Mn(l)&&ui(l)}function cG(l){return l===!0||l===!1||Mn(l)&&Xr(l)==te}var Rs=w$||J5,dG=dS?Ai(dS):yz;function pG(l){return Mn(l)&&l.nodeType===1&&!Vc(l)}function fG(l){if(l==null)return!0;if(ui(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Rs(l)||Xu(l)||$l(l)))return!l.length;var d=Fr(l);if(d==ot||d==ye)return!l.size;if(jc(l))return!b5(l).length;for(var h in l)if(an.call(l,h))return!1;return!0}function hG(l,d){return $c(l,d)}function gG(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?$c(l,d,n,h):!!_}function j5(l){if(!Mn(l))return!1;var d=Xr(l);return d==Ze||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Vc(l)}function mG(l){return typeof l=="number"&&NS(l)}function Uo(l){if(!Rn(l))return!1;var d=Xr(l);return d==We||d==dt||d==ke||d==de}function Zw(l){return typeof l=="number"&&l==St(l)}function i0(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Rn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Mn(l){return l!=null&&typeof l=="object"}var Qw=pS?Ai(pS):vz;function bG(l,d){return l===d||m5(l,d,D5(d))}function yG(l,d,h){return h=typeof h=="function"?h:n,m5(l,d,D5(d),h)}function EG(l){return Jw(l)&&l!=+l}function vG(l){if(rH(l))throw new _t(a);return GS(l)}function _G(l){return l===null}function TG(l){return l==null}function Jw(l){return typeof l=="number"||Mn(l)&&Xr(l)==je}function Vc(l){if(!Mn(l)||Xr(l)!=U)return!1;var d=Nf(l);if(d===null)return!0;var h=an.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&kf.call(h)==y$}var G5=fS?Ai(fS):_z;function SG(l){return Zw(l)&&l>=-W&&l<=W}var eA=hS?Ai(hS):Tz;function a0(l){return typeof l=="string"||!Tt(l)&&Mn(l)&&Xr(l)==Te}function ki(l){return typeof l=="symbol"||Mn(l)&&Xr(l)==Le}var Xu=gS?Ai(gS):Sz;function wG(l){return l===n}function AG(l){return Mn(l)&&Fr(l)==Ye}function CG(l){return Mn(l)&&Xr(l)==jt}var kG=Yf(y5),xG=Yf(function(l,d){return l<=d});function tA(l){if(!l)return[];if(ui(l))return a0(l)?Ca(l):li(l);if(Oc&&l[Oc])return o$(l[Oc]());var d=Fr(l),h=d==ot?a5:d==ye?wf:Zu;return h(l)}function $o(l){if(!l)return l===0?l:0;if(l=na(l),l===H||l===-H){var d=l<0?-1:1;return d*se}return l===l?l:0}function St(l){var d=$o(l),h=d%1;return d===d?h?d-h:d:0}function nA(l){return l?Fl(St(l),0,pe):0}function na(l){if(typeof l=="number")return l;if(ki(l))return D;if(Rn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Rn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=_S(l);var h=Be.test(l);return h||un.test(l)?jU(l.slice(2),h?2:8):J.test(l)?D:+l}function rA(l){return io(l,ci(l))}function IG(l){return l?Fl(St(l),-W,W):l===0?l:0}function en(l){return l==null?"":Ci(l)}var RG=qu(function(l,d){if(jc(d)||ui(d)){io(d,sr(d),l);return}for(var h in d)an.call(d,h)&&Pc(l,h,d[h])}),iA=qu(function(l,d){io(d,ci(d),l)}),o0=qu(function(l,d,h,_){io(d,ci(d),l,_)}),NG=qu(function(l,d,h,_){io(d,sr(d),l,_)}),OG=Po(d5);function DG(l,d){var h=Wu(l);return d==null?h:FS(h,d)}var LG=xt(function(l,d){l=pn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Zr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],z=ci(F),Z=-1,ae=z.length;++Z1),F}),io(l,N5(l),h),_&&(h=Ji(h,f|m|g,Vz));for(var x=d.length;x--;)S5(h,d[x]);return h});function QG(l,d){return oA(l,r0(mt(d)))}var JG=Po(function(l,d){return l==null?{}:Cz(l,d)});function oA(l,d){if(l==null)return{};var h=An(N5(l),function(_){return[_]});return d=mt(d),ZS(l,h,function(_,x){return d(_,x[0])})}function eV(l,d,h){d=xs(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=OS();return Mr(l+x*(d-l+HU("1e-"+((x+"").length-1))),d)}return v5(l,d)}var dV=Ku(function(l,d,h){return d=d.toLowerCase(),l+(h?uA(d):d)});function uA(l){return q5(en(l).toLowerCase())}function cA(l){return l=en(l),l&&l.replace(or,t$).replace(OU,"")}function pV(l,d,h){l=en(l),d=Ci(d);var _=l.length;h=h===n?_:Fl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function fV(l){return l=en(l),l&&Qt.test(l)?l.replace(Je,n$):l}function hV(l){return l=en(l),l&&si.test(l)?l.replace(Aa,"\\$&"):l}var gV=Ku(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),mV=Ku(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),bV=fw("toLowerCase");function yV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Kf(Mf(x),h)+l+Kf(Lf(x),h)}function EV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;return d&&_>>0,h?(l=en(l),l&&(typeof d=="string"||d!=null&&!G5(d))&&(d=Ci(d),!d&&$u(l))?Is(Ca(l),0,h):l.split(d,h)):[]}var CV=Ku(function(l,d,h){return l+(h?" ":"")+q5(d)});function kV(l,d,h){return l=en(l),h=h==null?0:Fl(St(h),0,l.length),d=Ci(d),l.slice(h,h+d.length)==d}function xV(l,d,h){var _=M.templateSettings;h&&Zr(l,d,h)&&(d=n),l=en(l),d=o0({},d,_,vw);var x=o0({},d.imports,_.imports,vw),F=sr(x),z=i5(x,F),Z,ae,we=0,Ce=d.interpolate||Zn,Ie="__p += '",Xe=o5((d.escape||Zn).source+"|"+Ce.source+"|"+(Ce===Xt?Nl:Zn).source+"|"+(d.evaluate||Zn).source+"|$","g"),lt="//# sourceURL="+(an.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++PU+"]")+` -`;l.replace(Xe,function(yt,Nt,Bt,xi,Qr,Ii){return Bt||(Bt=xi),Ie+=l.slice(we,Ii).replace(Oo,r$),Nt&&(Z=!0,Ie+=`' + +`)}function eH(l){return Tt(l)||$l(l)||!!(RS&&l&&l[RS])}function Bo(l,d){var h=typeof l;return d=d??W,!!d&&(h=="number"||h!="symbol"&&ar.test(l))&&l>-1&&l%1==0&&l0){if(++d>=$)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Qf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,$w(l,h)});function zw(l){var d=M(l);return d.__chain__=!0,d}function dj(l,d){return d(l),l}function Jf(l,d){return d(l)}var pj=Po(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return d5(F,l)};return d>1||this.__actions__.length||!(_ instanceof Mt)||!Bo(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Jf,args:[x],thisArg:n}),new Qi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function fj(){return zw(this)}function hj(){return new Qi(this.value(),this.__chain__)}function gj(){this.__values__===n&&(this.__values__=tA(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function mj(){return this}function bj(l){for(var d,h=this;h instanceof Bf;){var _=Lw(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function yj(){var l=this.__wrapped__;if(l instanceof Mt){var d=l;return this.__actions__.length&&(d=new Mt(this)),d=d.reverse(),d.__actions__.push({func:Jf,args:[U5],thisArg:n}),new Qi(d,this.__chain__)}return this.thru(U5)}function Ej(){return rw(this.__wrapped__,this.__actions__)}var vj=Vf(function(l,d,h){an.call(l,h)?++l[h]:Mo(l,h,1)});function _j(l,d,h){var _=Tt(l)?mS:dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}function Tj(l,d){var h=Tt(l)?Ts:$S;return h(l,mt(d,3))}var Sj=hw(Mw),wj=hw(Fw);function Aj(l,d){return br(e0(l,d),1)}function Cj(l,d){return br(e0(l,d),H)}function kj(l,d,h){return h=h===n?1:St(h),br(e0(l,d),h)}function Hw(l,d){var h=Tt(l)?Xi:Cs;return h(l,mt(d,3))}function jw(l,d){var h=Tt(l)?WU:US;return h(l,mt(d,3))}var xj=Vf(function(l,d,h){an.call(l,h)?l[h].push(d):Mo(l,h,[d])});function Ij(l,d,h,_){l=ui(l)?l:Zu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Jn(x+h,0)),a0(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Uu(l,d,h)>-1}var Rj=xt(function(l,d,h){var _=-1,x=typeof d=="function",F=ui(l)?he(l.length):[];return Cs(l,function(z){F[++_]=x?wi(d,z,h):Uc(z,d,h)}),F}),Nj=Vf(function(l,d,h){Mo(l,h,d)});function e0(l,d){var h=Tt(l)?An:WS;return h(l,mt(d,3))}function Oj(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),XS(l,d,h))}var Dj=Vf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Lj(l,d,h){var _=Tt(l)?Q2:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,Cs)}function Mj(l,d,h){var _=Tt(l)?qU:vS,x=arguments.length<3;return _(l,mt(d,4),h,x,US)}function Fj(l,d){var h=Tt(l)?Ts:$S;return h(l,r0(mt(d,3)))}function Pj(l){var d=Tt(l)?MS:Iz;return d(l)}function Bj(l,d,h){(h?Zr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?oz:Rz;return _(l,d)}function Uj(l){var d=Tt(l)?sz:Oz;return d(l)}function $j(l){if(l==null)return 0;if(ui(l))return a0(l)?zu(l):l.length;var d=Fr(l);return d==ot||d==ye?l.size:b5(l).length}function zj(l,d,h){var _=Tt(l)?J2:Dz;return h&&Zr(l,d,h)&&(d=n),_(l,mt(d,3))}var Hj=xt(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Zr(l,d[0],d[1])?d=[]:h>2&&Zr(d[0],d[1],d[2])&&(d=[d[0]]),XS(l,br(d,1),[])}),t0=T$||function(){return mr.Date.now()};function jj(l,d){if(typeof d!="function")throw new Zi(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function Gw(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,Fo(l,N,n,n,n,n,d)}function Vw(l,d){var h;if(typeof d!="function")throw new Zi(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var z5=xt(function(l,d,h){var _=T;if(h.length){var x=ws(h,Yu(z5));_|=R}return Fo(l,_,d,h,x)}),Ww=xt(function(l,d,h){var _=T|E;if(h.length){var x=ws(h,Yu(Ww));_|=R}return Fo(d,_,l,h,x)});function qw(l,d,h){d=h?n:d;var _=Fo(l,w,n,n,n,n,n,d);return _.placeholder=qw.placeholder,_}function Kw(l,d,h){d=h?n:d;var _=Fo(l,A,n,n,n,n,n,d);return _.placeholder=Kw.placeholder,_}function Yw(l,d,h){var _,x,F,z,Z,ae,we=0,Ce=!1,Ie=!1,Ze=!0;if(typeof l!="function")throw new Zi(o);d=na(d)||0,Rn(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Jn(na(h.maxWait)||0,d):F,Ze="trailing"in h?!!h.trailing:Ze);function lt(Hn){var Ia=_,zo=x;return _=x=n,we=Hn,z=l.apply(zo,Ia),z}function bt(Hn){return we=Hn,Z=Gc(Nt,d),Ce?lt(Hn):z}function wt(Hn){var Ia=Hn-ae,zo=Hn-we,hA=d-Ia;return Ie?Mr(hA,F-zo):hA}function yt(Hn){var Ia=Hn-ae,zo=Hn-we;return ae===n||Ia>=d||Ia<0||Ie&&zo>=F}function Nt(){var Hn=t0();if(yt(Hn))return Bt(Hn);Z=Gc(Nt,wt(Hn))}function Bt(Hn){return Z=n,Ze&&_?lt(Hn):(_=x=n,z)}function xi(){Z!==n&&aw(Z),we=0,_=ae=x=Z=n}function Qr(){return Z===n?z:Bt(t0())}function Ii(){var Hn=t0(),Ia=yt(Hn);if(_=arguments,x=this,ae=Hn,Ia){if(Z===n)return bt(ae);if(Ie)return aw(Z),Z=Gc(Nt,d),lt(ae)}return Z===n&&(Z=Gc(Nt,d)),z}return Ii.cancel=xi,Ii.flush=Qr,Ii}var Gj=xt(function(l,d){return BS(l,1,d)}),Vj=xt(function(l,d,h){return BS(l,na(d)||0,h)});function Wj(l){return Fo(l,q)}function n0(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Zi(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var z=l.apply(this,_);return h.cache=F.set(x,z)||F,z};return h.cache=new(n0.Cache||Lo),h}n0.Cache=Lo;function r0(l){if(typeof l!="function")throw new Zi(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function qj(l){return Vw(2,l)}var Kj=Lz(function(l,d){d=d.length==1&&Tt(d[0])?An(d[0],Ai(mt())):An(br(d,1),Ai(mt()));var h=d.length;return xt(function(_){for(var x=-1,F=Mr(_.length,h);++x=d}),$l=jS(function(){return arguments}())?jS:function(l){return Mn(l)&&an.call(l,"callee")&&!IS.call(l,"callee")},Tt=he.isArray,uG=cS?Ai(cS):bz;function ui(l){return l!=null&&i0(l.length)&&!Uo(l)}function zn(l){return Mn(l)&&ui(l)}function cG(l){return l===!0||l===!1||Mn(l)&&Xr(l)==te}var Rs=w$||J5,dG=dS?Ai(dS):yz;function pG(l){return Mn(l)&&l.nodeType===1&&!Vc(l)}function fG(l){if(l==null)return!0;if(ui(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Rs(l)||Xu(l)||$l(l)))return!l.length;var d=Fr(l);if(d==ot||d==ye)return!l.size;if(jc(l))return!b5(l).length;for(var h in l)if(an.call(l,h))return!1;return!0}function hG(l,d){return $c(l,d)}function gG(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?$c(l,d,n,h):!!_}function j5(l){if(!Mn(l))return!1;var d=Xr(l);return d==Ye||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Vc(l)}function mG(l){return typeof l=="number"&&NS(l)}function Uo(l){if(!Rn(l))return!1;var d=Xr(l);return d==We||d==dt||d==ke||d==de}function Zw(l){return typeof l=="number"&&l==St(l)}function i0(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Rn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Mn(l){return l!=null&&typeof l=="object"}var Qw=pS?Ai(pS):vz;function bG(l,d){return l===d||m5(l,d,D5(d))}function yG(l,d,h){return h=typeof h=="function"?h:n,m5(l,d,D5(d),h)}function EG(l){return Jw(l)&&l!=+l}function vG(l){if(rH(l))throw new _t(a);return GS(l)}function _G(l){return l===null}function TG(l){return l==null}function Jw(l){return typeof l=="number"||Mn(l)&&Xr(l)==je}function Vc(l){if(!Mn(l)||Xr(l)!=U)return!1;var d=Nf(l);if(d===null)return!0;var h=an.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&kf.call(h)==y$}var G5=fS?Ai(fS):_z;function SG(l){return Zw(l)&&l>=-W&&l<=W}var eA=hS?Ai(hS):Tz;function a0(l){return typeof l=="string"||!Tt(l)&&Mn(l)&&Xr(l)==Te}function ki(l){return typeof l=="symbol"||Mn(l)&&Xr(l)==Le}var Xu=gS?Ai(gS):Sz;function wG(l){return l===n}function AG(l){return Mn(l)&&Fr(l)==Xe}function CG(l){return Mn(l)&&Xr(l)==jt}var kG=Yf(y5),xG=Yf(function(l,d){return l<=d});function tA(l){if(!l)return[];if(ui(l))return a0(l)?Ca(l):li(l);if(Oc&&l[Oc])return o$(l[Oc]());var d=Fr(l),h=d==ot?a5:d==ye?wf:Zu;return h(l)}function $o(l){if(!l)return l===0?l:0;if(l=na(l),l===H||l===-H){var d=l<0?-1:1;return d*se}return l===l?l:0}function St(l){var d=$o(l),h=d%1;return d===d?h?d-h:d:0}function nA(l){return l?Fl(St(l),0,pe):0}function na(l){if(typeof l=="number")return l;if(ki(l))return D;if(Rn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Rn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=_S(l);var h=Be.test(l);return h||un.test(l)?jU(l.slice(2),h?2:8):J.test(l)?D:+l}function rA(l){return io(l,ci(l))}function IG(l){return l?Fl(St(l),-W,W):l===0?l:0}function en(l){return l==null?"":Ci(l)}var RG=qu(function(l,d){if(jc(d)||ui(d)){io(d,sr(d),l);return}for(var h in d)an.call(d,h)&&Pc(l,h,d[h])}),iA=qu(function(l,d){io(d,ci(d),l)}),o0=qu(function(l,d,h,_){io(d,ci(d),l,_)}),NG=qu(function(l,d,h,_){io(d,sr(d),l,_)}),OG=Po(d5);function DG(l,d){var h=Wu(l);return d==null?h:FS(h,d)}var LG=xt(function(l,d){l=pn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Zr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],z=ci(F),Z=-1,ae=z.length;++Z1),F}),io(l,N5(l),h),_&&(h=Ji(h,f|m|g,Vz));for(var x=d.length;x--;)S5(h,d[x]);return h});function QG(l,d){return oA(l,r0(mt(d)))}var JG=Po(function(l,d){return l==null?{}:Cz(l,d)});function oA(l,d){if(l==null)return{};var h=An(N5(l),function(_){return[_]});return d=mt(d),ZS(l,h,function(_,x){return d(_,x[0])})}function eV(l,d,h){d=xs(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=OS();return Mr(l+x*(d-l+HU("1e-"+((x+"").length-1))),d)}return v5(l,d)}var dV=Ku(function(l,d,h){return d=d.toLowerCase(),l+(h?uA(d):d)});function uA(l){return q5(en(l).toLowerCase())}function cA(l){return l=en(l),l&&l.replace(or,t$).replace(OU,"")}function pV(l,d,h){l=en(l),d=Ci(d);var _=l.length;h=h===n?_:Fl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function fV(l){return l=en(l),l&&Qt.test(l)?l.replace(Je,n$):l}function hV(l){return l=en(l),l&&si.test(l)?l.replace(Aa,"\\$&"):l}var gV=Ku(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),mV=Ku(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),bV=fw("toLowerCase");function yV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Kf(Mf(x),h)+l+Kf(Lf(x),h)}function EV(l,d,h){l=en(l),d=St(d);var _=d?zu(l):0;return d&&_>>0,h?(l=en(l),l&&(typeof d=="string"||d!=null&&!G5(d))&&(d=Ci(d),!d&&$u(l))?Is(Ca(l),0,h):l.split(d,h)):[]}var CV=Ku(function(l,d,h){return l+(h?" ":"")+q5(d)});function kV(l,d,h){return l=en(l),h=h==null?0:Fl(St(h),0,l.length),d=Ci(d),l.slice(h,h+d.length)==d}function xV(l,d,h){var _=M.templateSettings;h&&Zr(l,d,h)&&(d=n),l=en(l),d=o0({},d,_,vw);var x=o0({},d.imports,_.imports,vw),F=sr(x),z=i5(x,F),Z,ae,we=0,Ce=d.interpolate||Zn,Ie="__p += '",Ze=o5((d.escape||Zn).source+"|"+Ce.source+"|"+(Ce===Xt?Nl:Zn).source+"|"+(d.evaluate||Zn).source+"|$","g"),lt="//# sourceURL="+(an.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++PU+"]")+` +`;l.replace(Ze,function(yt,Nt,Bt,xi,Qr,Ii){return Bt||(Bt=xi),Ie+=l.slice(we,Ii).replace(Oo,r$),Nt&&(Z=!0,Ie+=`' + __e(`+Nt+`) + '`),Qr&&(ae=!0,Ie+=`'; `+Qr+`; @@ -1151,7 +1151,7 @@ __p += '`),Bt&&(Ie+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Ie+`return __p -}`;var wt=pA(function(){return Jt(F,lt+"return "+Ie).apply(n,z)});if(wt.source=Ie,j5(wt))throw wt;return wt}function IV(l){return en(l).toLowerCase()}function RV(l){return en(l).toUpperCase()}function NV(l,d,h){if(l=en(l),l&&(h||d===n))return _S(l);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=Ca(d),F=TS(_,x),z=SS(_,x)+1;return Is(_,F,z).join("")}function OV(l,d,h){if(l=en(l),l&&(h||d===n))return l.slice(0,AS(l)+1);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=SS(_,Ca(d))+1;return Is(_,0,x).join("")}function DV(l,d,h){if(l=en(l),l&&(h||d===n))return l.replace(Or,"");if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=TS(_,Ca(d));return Is(_,x).join("")}function LV(l,d){var h=P,_=Q;if(Rn(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?Ci(d.omission):_}l=en(l);var F=l.length;if($u(l)){var z=Ca(l);F=z.length}if(h>=F)return l;var Z=h-zu(_);if(Z<1)return _;var ae=z?Is(z,0,Z).join(""):l.slice(0,Z);if(x===n)return ae+_;if(z&&(Z+=ae.length-Z),G5(x)){if(l.slice(Z).search(x)){var we,Ce=ae;for(x.global||(x=o5(x.source,en(Ke.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?Z:Ie)}}else if(l.indexOf(Ci(x),Z)!=Z){var Xe=ae.lastIndexOf(x);Xe>-1&&(ae=ae.slice(0,Xe))}return ae+_}function MV(l){return l=en(l),l&&Rt.test(l)?l.replace(rt,c$):l}var FV=Ku(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),q5=fw("toUpperCase");function dA(l,d,h){return l=en(l),d=h?n:d,d===n?a$(l)?f$(l):XU(l):l.match(d)||[]}var pA=xt(function(l,d){try{return wi(l,n,d)}catch(h){return j5(h)?h:new _t(h)}}),PV=Po(function(l,d){return Xi(d,function(h){h=ao(h),Mo(l,h,z5(l[h],l))}),l});function BV(l){var d=l==null?0:l.length,h=mt();return l=d?An(l,function(_){if(typeof _[1]!="function")throw new Zi(o);return[h(_[0]),_[1]]}):[],xt(function(_){for(var x=-1;++xW)return[];var h=pe,_=Mr(l,pe);d=mt(d),l-=pe;for(var x=r5(_,d);++h0||d<0)?new Mt(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Mt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Mt.prototype.toArray=function(){return this.take(pe)},ro(Mt.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var z=this.__wrapped__,Z=_?[1]:arguments,ae=z instanceof Mt,we=Z[0],Ce=ae||Tt(z),Ie=function(Nt){var Bt=x.apply(M,Ss([Nt],Z));return _&&Xe?Bt[0]:Bt};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Xe=this.__chain__,lt=!!this.__actions__.length,bt=F&&!Xe,wt=ae&&!lt;if(!F&&Ce){z=wt?z:new Mt(this);var yt=l.apply(z,Z);return yt.__actions__.push({func:Jf,args:[Ie],thisArg:n}),new Qi(yt,Xe)}return bt&&wt?l.apply(this,Z):(yt=this.thru(Ie),bt?_?yt.value()[0]:yt.value():yt)})}),Xi(["pop","push","shift","sort","splice","unshift"],function(l){var d=Af[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(z){return d.apply(Tt(z)?z:[],x)})}}),ro(Mt.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";an.call(Vu,_)||(Vu[_]=[]),Vu[_].push({name:d,func:h})}}),Vu[Wf(n,E).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=M$,Mt.prototype.reverse=F$,Mt.prototype.value=P$,M.prototype.at=pj,M.prototype.chain=fj,M.prototype.commit=hj,M.prototype.next=gj,M.prototype.plant=bj,M.prototype.reverse=yj,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Ej,M.prototype.first=M.prototype.head,Oc&&(M.prototype[Oc]=mj),M},Hu=h$();Ol?((Ol.exports=Hu)._=Hu,Y2._=Hu):mr._=Hu}).call(Jl)})(sm,sm.exports);var v4e=sm.exports;const el=Vi(v4e);function uo(e,t){const n=el.cloneDeep(e);for(const r in t)typeof t[r]=="function"?el.updateWith(n,r,t[r]):el.updateWith(n,r,i=>t[r]);return n}const Rc={};Rc["Requires API Key"]="#FF0000";Rc.Local="#00bb00";Rc["Open-Source"]="#0033FF";Rc.Free="#ffff00";const _4e={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},T4e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},S4e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},w4e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},A4e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},C4e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Da=[_4e,T4e,w4e,S4e,A4e,C4e],SN={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},sE={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},lE={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},uE={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},rU={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},cE={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},iU={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},k4e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},o1=[sE,lE,uE,rU,iU,cE,k4e],wN={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},AN={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},x4e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function CN(e){return x4e[e]||e}const aU={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[wN,AN],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Da]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Da],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: +}`;var wt=pA(function(){return Jt(F,lt+"return "+Ie).apply(n,z)});if(wt.source=Ie,j5(wt))throw wt;return wt}function IV(l){return en(l).toLowerCase()}function RV(l){return en(l).toUpperCase()}function NV(l,d,h){if(l=en(l),l&&(h||d===n))return _S(l);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=Ca(d),F=TS(_,x),z=SS(_,x)+1;return Is(_,F,z).join("")}function OV(l,d,h){if(l=en(l),l&&(h||d===n))return l.slice(0,AS(l)+1);if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=SS(_,Ca(d))+1;return Is(_,0,x).join("")}function DV(l,d,h){if(l=en(l),l&&(h||d===n))return l.replace(Or,"");if(!l||!(d=Ci(d)))return l;var _=Ca(l),x=TS(_,Ca(d));return Is(_,x).join("")}function LV(l,d){var h=P,_=Q;if(Rn(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?Ci(d.omission):_}l=en(l);var F=l.length;if($u(l)){var z=Ca(l);F=z.length}if(h>=F)return l;var Z=h-zu(_);if(Z<1)return _;var ae=z?Is(z,0,Z).join(""):l.slice(0,Z);if(x===n)return ae+_;if(z&&(Z+=ae.length-Z),G5(x)){if(l.slice(Z).search(x)){var we,Ce=ae;for(x.global||(x=o5(x.source,en(Ke.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?Z:Ie)}}else if(l.indexOf(Ci(x),Z)!=Z){var Ze=ae.lastIndexOf(x);Ze>-1&&(ae=ae.slice(0,Ze))}return ae+_}function MV(l){return l=en(l),l&&Rt.test(l)?l.replace(rt,c$):l}var FV=Ku(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),q5=fw("toUpperCase");function dA(l,d,h){return l=en(l),d=h?n:d,d===n?a$(l)?f$(l):XU(l):l.match(d)||[]}var pA=xt(function(l,d){try{return wi(l,n,d)}catch(h){return j5(h)?h:new _t(h)}}),PV=Po(function(l,d){return Xi(d,function(h){h=ao(h),Mo(l,h,z5(l[h],l))}),l});function BV(l){var d=l==null?0:l.length,h=mt();return l=d?An(l,function(_){if(typeof _[1]!="function")throw new Zi(o);return[h(_[0]),_[1]]}):[],xt(function(_){for(var x=-1;++xW)return[];var h=pe,_=Mr(l,pe);d=mt(d),l-=pe;for(var x=r5(_,d);++h0||d<0)?new Mt(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Mt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Mt.prototype.toArray=function(){return this.take(pe)},ro(Mt.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var z=this.__wrapped__,Z=_?[1]:arguments,ae=z instanceof Mt,we=Z[0],Ce=ae||Tt(z),Ie=function(Nt){var Bt=x.apply(M,Ss([Nt],Z));return _&&Ze?Bt[0]:Bt};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Ze=this.__chain__,lt=!!this.__actions__.length,bt=F&&!Ze,wt=ae&&!lt;if(!F&&Ce){z=wt?z:new Mt(this);var yt=l.apply(z,Z);return yt.__actions__.push({func:Jf,args:[Ie],thisArg:n}),new Qi(yt,Ze)}return bt&&wt?l.apply(this,Z):(yt=this.thru(Ie),bt?_?yt.value()[0]:yt.value():yt)})}),Xi(["pop","push","shift","sort","splice","unshift"],function(l){var d=Af[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(z){return d.apply(Tt(z)?z:[],x)})}}),ro(Mt.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";an.call(Vu,_)||(Vu[_]=[]),Vu[_].push({name:d,func:h})}}),Vu[Wf(n,E).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=M$,Mt.prototype.reverse=F$,Mt.prototype.value=P$,M.prototype.at=pj,M.prototype.chain=fj,M.prototype.commit=hj,M.prototype.next=gj,M.prototype.plant=bj,M.prototype.reverse=yj,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Ej,M.prototype.first=M.prototype.head,Oc&&(M.prototype[Oc]=mj),M},Hu=h$();Ol?((Ol.exports=Hu)._=Hu,Y2._=Hu):mr._=Hu}).call(Jl)})(sm,sm.exports);var v4e=sm.exports;const el=Vi(v4e);function uo(e,t){const n=el.cloneDeep(e);for(const r in t)typeof t[r]=="function"?el.updateWith(n,r,t[r]):el.updateWith(n,r,i=>t[r]);return n}const Rc={};Rc["Requires API Key"]="#FF0000";Rc.Local="#00bb00";Rc["Open-Source"]="#0033FF";Rc.Free="#ffff00";const _4e={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},T4e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},S4e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},w4e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},A4e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},C4e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Da=[_4e,T4e,w4e,S4e,A4e,C4e],SN={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},sE={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},lE={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},uE={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},rU={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},cE={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},iU={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},k4e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},o1=[sE,lE,uE,rU,iU,cE,k4e],wN={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},AN={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},x4e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function CN(e){return x4e[e]||e}const aU={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[wN,AN],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Da]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Da],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:o1,collectInputFor:[...Da]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: 1. Obtain an API key from [here](https://together.ai) 2. Paste below 3. Select a model preset`,tags:["Requires API Key","Open-Source"],params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your TogetherAI API key",required:!0},...Da],packages:[uo(lE,{"dimensions[0].options":e=>el.mapValues(e,t=>el.assign({},t,{model:"togethercomputer/"+t.model.replace("llama2","llama-2").replace(":","-")}))}),uo(sE,{"dimensions[0].options":e=>el.mapValues(e,t=>el.assign({},t,{model:"togethercomputer/"+t.model.replace("codellama","CodeLlama").replace(":","-").replace("instruct","Instruct")}))}),uo(uE,{"params.model":"WizardLM/WizardCoder-15B-V1.0","params.title":"WizardCoder-15b","dimensions[0].options":{"15b":{model:"WizardLM/WizardCoder-15B-V1.0",title:"WizardCoder-15b"},"34b (Python)":{model:"WizardLM/WizardCoder-Python-34B-V1.0",title:"WizardCoder-34b-Python"}}}),uo(rU,{"params.model":"Phind/Phind-CodeLlama-34B-Python-v1"}),uo(cE,{"params.model":"mistralai/Mistral-7B-Instruct-v0.1"})].map(e=>(e.params.context_length=4096,e))},lmstudio:{title:"LM Studio",class:"GGML",description:"One of the fastest ways to get started with local models on Mac or Windows",longDescription:`LMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started: diff --git a/extensions/vscode/src/continueIdeClient.ts b/extensions/vscode/src/continueIdeClient.ts index bb6937a58..41ed97a28 100644 --- a/extensions/vscode/src/continueIdeClient.ts +++ b/extensions/vscode/src/continueIdeClient.ts @@ -719,7 +719,7 @@ class IdeProtocolClient { } async debugTerminal() { - const contents = await this.getTerminalContents(); + const contents = (await this.getTerminalContents()).trim(); this.send("debugTerminal", v4(), { contents }); } } diff --git a/server/continuedev/server/protocols/gui.py b/server/continuedev/server/protocols/gui.py index a279ff491..833b0bae1 100644 --- a/server/continuedev/server/protocols/gui.py +++ b/server/continuedev/server/protocols/gui.py @@ -288,7 +288,7 @@ class GUIProtocolServer: "step run", { "step_name": step_to_log.name, - "params": step_to_log.params, + "params": step_to_log.params if step is None else step.dict(), "context": list( map( lambda item: item.dict(), diff --git a/server/continuedev/server/window_manager.py b/server/continuedev/server/window_manager.py index 6414e7567..a2a89bf37 100644 --- a/server/continuedev/server/window_manager.py +++ b/server/continuedev/server/window_manager.py @@ -65,11 +65,12 @@ class Window: async def reload_config(self): self.config = self.load_config() - await self.config.models.start( - self.ide.window_info.unique_id, - self.config.system_message, - self.config.temperature, - ) + if self.ide is not None: + await self.config.models.start( + self.ide.window_info.unique_id, + self.config.system_message, + self.config.temperature, + ) async def load( self, config: Optional[ContinueConfig] = None, only_reloading: bool = False